]> sourceware.org Git - lvm2.git/blame - configure
Based on auto-detection or user requested cluster managers for clvmd,
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
ec6a6fbe 3# Generated by GNU Autoconf 2.63.
795ca3e5 4#
7a197a62 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
795ca3e5
AK
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
ad6254c5
AK
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
25fbec5b
AK
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
ec6a6fbe 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
21 setopt NO_GLOB_SUBST
22else
25fbec5b
AK
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
7a197a62 27fi
25fbec5b
AK
28
29
7a197a62
AK
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
ec6a6fbe
AK
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
68f2de6d 54 else
ec6a6fbe
AK
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 67 fi
ec6a6fbe
AK
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
ad6254c5
AK
79fi
80
81# Support unset when possible.
8a2fc586 82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
83 as_unset=unset
84else
85 as_unset=false
86fi
87
88
7a197a62
AK
89# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
7a197a62
AK
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
ec6a6fbe 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
117 { (exit 1); exit 1; }
118fi
119
ad6254c5 120# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
ad6254c5
AK
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
ec6a6fbe
AK
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
ad6254c5
AK
133
134# Required to use basename.
7a197a62
AK
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
137 as_expr=expr
138else
139 as_expr=false
140fi
141
7a197a62 142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
7a197a62 150as_me=`$as_basename -- "$0" ||
ad6254c5
AK
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
7a197a62 153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 154$as_echo X/"$0" |
7a197a62
AK
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
ad6254c5 168
7a197a62
AK
169# CDPATH.
170$as_unset CDPATH
ad6254c5 171
ad6254c5 172
7a197a62
AK
173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
ad6254c5
AK
178fi
179
ec6a6fbe 180 if test $as_have_required = yes && (eval ":
7a197a62
AK
181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
ad6254c5 196
7a197a62
AK
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
ad6254c5 204
7a197a62
AK
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
ad6254c5 240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25fbec5b 241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
ad6254c5
AK
242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
7a197a62 245 case $as_dir in
ad6254c5 246 /*)
7a197a62
AK
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251done
252IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
ec6a6fbe 262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7a197a62
AK
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
25fbec5b
AK
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
7a197a62 271fi
25fbec5b 272
7a197a62
AK
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
ec6a6fbe 283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7a197a62
AK
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
25fbec5b
AK
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
7a197a62 292fi
25fbec5b 293
7a197a62
AK
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
ad6254c5
AK
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
ad6254c5 349 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62
AK
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
ec6a6fbe
AK
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
7a197a62
AK
367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
ec6a6fbe
AK
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
7a197a62
AK
439}
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
ad6254c5
AK
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
ad6254c5 455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
ad6254c5 462 sed '
7a197a62
AK
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
ad6254c5 467 N
7a197a62
AK
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 470 t loop
7a197a62 471 s/-\n.*//
ad6254c5 472 ' >$as_me.lineno &&
7a197a62 473 chmod +x "$as_me.lineno" ||
ec6a6fbe 474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
ad6254c5
AK
481 # Exit status is that of the last command.
482 exit
483}
795ca3e5 484
ad6254c5 485
7a197a62
AK
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499*)
500 ECHO_N='-n';;
ad6254c5 501esac
7a197a62
AK
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
ec6a6fbe
AK
514 mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
ad6254c5 528 as_ln_s='cp -p'
ec6a6fbe 529 fi
ad6254c5
AK
530else
531 as_ln_s='cp -p'
532fi
7a197a62
AK
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
ad6254c5
AK
535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
8a2fc586 539 test -d ./-p && rmdir ./-p
ad6254c5
AK
540 as_mkdir_p=false
541fi
542
25fbec5b
AK
543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
7a197a62 545else
25fbec5b
AK
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
ec6a6fbe 554 test -d "$1/.";
25fbec5b
AK
555 else
556 case $1 in
ec6a6fbe 557 -*)set "./$1";;
25fbec5b
AK
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
7a197a62 563fi
25fbec5b 564as_executable_p=$as_test_x
ad6254c5
AK
565
566# Sed expression to map a string onto a valid CPP name.
8a2fc586 567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
568
569# Sed expression to map a string onto a valid variable name.
8a2fc586 570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
571
572
ad6254c5 573
7a197a62 574exec 7<&0 </dev/null 6>&1
ad6254c5
AK
575
576# Name of the host.
577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578# so uname gets run too.
579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
ad6254c5
AK
581#
582# Initializations.
583#
795ca3e5 584ac_default_prefix=/usr/local
7a197a62 585ac_clean_files=
ad6254c5 586ac_config_libobj_dir=.
7a197a62 587LIBOBJS=
ad6254c5
AK
588cross_compiling=no
589subdirs=
590MFLAGS=
591MAKEFLAGS=
592SHELL=${CONFIG_SHELL-/bin/sh}
593
ad6254c5
AK
594# Identity of this package.
595PACKAGE_NAME=
596PACKAGE_TARNAME=
597PACKAGE_VERSION=
598PACKAGE_STRING=
599PACKAGE_BUGREPORT=
600
601ac_unique_file="lib/device/dev-cache.h"
602# Factoring default headers for most tests.
603ac_includes_default="\
604#include <stdio.h>
25fbec5b 605#ifdef HAVE_SYS_TYPES_H
ad6254c5
AK
606# include <sys/types.h>
607#endif
25fbec5b 608#ifdef HAVE_SYS_STAT_H
ad6254c5
AK
609# include <sys/stat.h>
610#endif
25fbec5b 611#ifdef STDC_HEADERS
ad6254c5
AK
612# include <stdlib.h>
613# include <stddef.h>
614#else
25fbec5b 615# ifdef HAVE_STDLIB_H
ad6254c5
AK
616# include <stdlib.h>
617# endif
618#endif
25fbec5b
AK
619#ifdef HAVE_STRING_H
620# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ad6254c5
AK
621# include <memory.h>
622# endif
623# include <string.h>
624#endif
25fbec5b 625#ifdef HAVE_STRINGS_H
ad6254c5
AK
626# include <strings.h>
627#endif
25fbec5b 628#ifdef HAVE_INTTYPES_H
ad6254c5 629# include <inttypes.h>
ad6254c5 630#endif
25fbec5b 631#ifdef HAVE_STDINT_H
7a197a62
AK
632# include <stdint.h>
633#endif
25fbec5b 634#ifdef HAVE_UNISTD_H
ad6254c5
AK
635# include <unistd.h>
636#endif"
637
795ca3e5 638ac_default_prefix=/usr
ec6a6fbe 639ac_subst_vars='LTLIBOBJS
68f2de6d 640usrsbindir
ec6a6fbe 641usrlibdir
a5f46f6a
AK
642udevdir
643udev_prefix
ec6a6fbe
AK
644tmpdir
645kernelvsn
646missingkernel
647kerneldir
648interface
23b059e7 649WRITE_INSTALL
0878503f 650UDEV_SYNC
a5f46f6a 651UDEV_RULES
f7f0854e 652UDEV_PC
db724a44 653UDEV_LIBS
54b362f9 654TESTING
ec6a6fbe
AK
655STATIC_LINK
656STATICDIR
657SNAPSHOTS
f7f0854e 658SELINUX_PC
e1b8a236 659SELINUX_LIBS
539f4a77 660READLINE_LIBS
f30875db 661PTHREAD_LIBS
ec6a6fbe
AK
662POOL
663PKGCONFIG
8fea97b7 664REPLICATORS
ec6a6fbe
AK
665MIRRORS
666LVM_RELEASE_DATE
667LVM_RELEASE
668LVM_PATCHLEVEL
669LVM_MINOR
670LVM_MAJOR
bf456146 671LVM_LIBAPI
ec6a6fbe 672LVM_VERSION
ec6a6fbe
AK
673LVM1_FALLBACK
674LVM1
675LOCALEDIR
676LIB_SUFFIX
677LDDEPS
678JOBS
679INTL_PACKAGE
680INTL
ec6a6fbe
AK
681HAVE_REALTIME
682HAVE_LIBDL
ec6a6fbe
AK
683FSADM
684DM_LIB_PATCHLEVEL
685DM_LIB_VERSION
686DM_IOCTLS
687DM_DEVICE_UID
688DM_DEVICE_MODE
689DM_DEVICE_GID
690DM_COMPAT
d1e8046f 691DMEVENTD_PATH
ec6a6fbe 692DMEVENTD
19a2c6e0 693DL_LIBS
ec6a6fbe 694DEVMAPPER
b1f08e51 695DEFAULT_RUN_DIR
3399ae32 696DEFAULT_LOCK_DIR
fea55602 697DEFAULT_DATA_ALIGNMENT
3399ae32
AK
698DEFAULT_CACHE_SUBDIR
699DEFAULT_BACKUP_SUBDIR
700DEFAULT_ARCHIVE_SUBDIR
701DEFAULT_SYS_DIR
ec6a6fbe
AK
702DEBUG
703COPTIMISE_FLAG
e2997b73 704CONFDIR
ec6a6fbe
AK
705CMDLIB
706CLVMD
707CLUSTER
708CLDWHOLEARCHIVE
709CLDNOWHOLEARCHIVE
710CLDFLAGS
711BUILD_DMEVENTD
66fd4529 712BUILD_CMIRRORD
572fefeb 713APPLIB
ec6a6fbe
AK
714MODPROBE_CMD
715MSGFMT
716LVM2CMD_LIB
572fefeb 717LVM2APP_LIB
54b362f9
AK
718VALGRIND
719RUBY19
fd4728e1 720GENPNG
ec6a6fbe
AK
721GENHTML
722LCOV
90c80887
AK
723SACKPT_LIBS
724SACKPT_CFLAGS
a946372e
AK
725DLM_LIBS
726DLM_CFLAGS
e2997b73
AK
727CPG_LIBS
728CPG_CFLAGS
729CONFDB_LIBS
730CONFDB_CFLAGS
a946372e
AK
731SALCK_LIBS
732SALCK_CFLAGS
e2997b73
AK
733QUORUM_LIBS
734QUORUM_CFLAGS
a946372e
AK
735COROSYNC_LIBS
736COROSYNC_CFLAGS
737CMAN_LIBS
738CMAN_CFLAGS
739GULM_LIBS
740GULM_CFLAGS
741CCS_LIBS
742CCS_CFLAGS
743PKGCONFIGINIT_LIBS
744PKGCONFIGINIT_CFLAGS
e2997b73 745PKG_CONFIG
ec6a6fbe
AK
746POW_LIB
747LIBOBJS
748ALLOCA
749CSCOPE_CMD
750CFLOW_CMD
751RANLIB
752MKDIR_P
753SET_MAKE
754LN_S
755INSTALL_DATA
756INSTALL_SCRIPT
757INSTALL_PROGRAM
758EGREP
759GREP
760CPP
761OBJEXT
762EXEEXT
763ac_ct_CC
764CPPFLAGS
765LDFLAGS
766CFLAGS
767CC
768AWK
769SED
770target_os
771target_vendor
772target_cpu
773target
774host_os
775host_vendor
776host_cpu
777host
778build_os
779build_vendor
780build_cpu
781build
782target_alias
783host_alias
784build_alias
785LIBS
786ECHO_T
787ECHO_N
788ECHO_C
789DEFS
790mandir
791localedir
792libdir
793psdir
794pdfdir
795dvidir
796htmldir
797infodir
798docdir
799oldincludedir
800includedir
801localstatedir
802sharedstatedir
803sysconfdir
804datadir
805datarootdir
806libexecdir
807sbindir
808bindir
809program_transform_name
810prefix
811exec_prefix
812PACKAGE_BUGREPORT
813PACKAGE_STRING
814PACKAGE_VERSION
815PACKAGE_TARNAME
816PACKAGE_NAME
817PATH_SEPARATOR
818SHELL'
ad6254c5 819ac_subst_files=''
ec6a6fbe
AK
820ac_user_opts='
821enable_option_checking
822enable_static_link
823with_user
824with_group
825with_device_uid
826with_device_gid
827with_device_mode
828enable_lvm1_fallback
829with_lvm1
830with_pool
831with_cluster
832with_snapshots
833with_mirrors
8fea97b7 834with_replicators
ec6a6fbe
AK
835enable_readline
836enable_realtime
837with_clvmd
8c4e8a18 838with_clvmd_pidfile
66fd4529
AK
839enable_cmirrord
840with_cmirrord_pidfile
ec6a6fbe
AK
841enable_debug
842with_optimisation
843enable_profiling
54b362f9 844enable_testing
d1e8046f 845enable_valgrind_pool
ec6a6fbe 846enable_devmapper
a5f46f6a
AK
847enable_udev_sync
848enable_udev_rules
ec6a6fbe 849enable_compat
95eaa683 850enable_units_compat
ec6a6fbe
AK
851enable_ioctl
852enable_o_direct
572fefeb 853enable_applib
ec6a6fbe
AK
854enable_cmdlib
855enable_pkgconfig
23b059e7 856enable_write_install
ec6a6fbe
AK
857enable_fsadm
858enable_dmeventd
859enable_selinux
860enable_nls
861with_localedir
862with_confdir
863with_staticdir
864with_usrlibdir
865with_usrsbindir
a5f46f6a 866with_udev_prefix
78ce7acc 867with_udevdir
ec6a6fbe
AK
868with_dmeventd_pidfile
869with_dmeventd_path
8bae0a1e 870with_default_run_dir
3399ae32
AK
871with_default_system_dir
872with_default_archive_subdir
873with_default_backup_subdir
874with_default_cache_subdir
875with_default_locking_dir
fea55602 876with_default_data_alignment
ec6a6fbe
AK
877with_interface
878'
7a197a62
AK
879 ac_precious_vars='build_alias
880host_alias
881target_alias
882CC
883CFLAGS
884LDFLAGS
25fbec5b 885LIBS
7a197a62 886CPPFLAGS
e2997b73
AK
887CPP
888PKG_CONFIG
a946372e
AK
889PKGCONFIGINIT_CFLAGS
890PKGCONFIGINIT_LIBS
891CCS_CFLAGS
892CCS_LIBS
893GULM_CFLAGS
894GULM_LIBS
895CMAN_CFLAGS
896CMAN_LIBS
897COROSYNC_CFLAGS
898COROSYNC_LIBS
e2997b73
AK
899QUORUM_CFLAGS
900QUORUM_LIBS
a946372e
AK
901SALCK_CFLAGS
902SALCK_LIBS
e2997b73
AK
903CONFDB_CFLAGS
904CONFDB_LIBS
905CPG_CFLAGS
a946372e
AK
906CPG_LIBS
907DLM_CFLAGS
90c80887
AK
908DLM_LIBS
909SACKPT_CFLAGS
910SACKPT_LIBS'
7a197a62 911
795ca3e5
AK
912
913# Initialize some variables set by options.
ad6254c5
AK
914ac_init_help=
915ac_init_version=false
ec6a6fbe
AK
916ac_unrecognized_opts=
917ac_unrecognized_sep=
795ca3e5
AK
918# The variables have the same names as the options, with
919# dashes changed to underlines.
ad6254c5 920cache_file=/dev/null
795ca3e5 921exec_prefix=NONE
795ca3e5 922no_create=
795ca3e5
AK
923no_recursion=
924prefix=NONE
925program_prefix=NONE
926program_suffix=NONE
927program_transform_name=s,x,x,
928silent=
929site=
930srcdir=
795ca3e5
AK
931verbose=
932x_includes=NONE
933x_libraries=NONE
ad6254c5
AK
934
935# Installation directory options.
936# These are left unexpanded so users can "make install exec_prefix=/foo"
937# and all the variables that are supposed to be based on exec_prefix
938# by default will actually change.
939# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 940# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
941bindir='${exec_prefix}/bin'
942sbindir='${exec_prefix}/sbin'
943libexecdir='${exec_prefix}/libexec'
7a197a62
AK
944datarootdir='${prefix}/share'
945datadir='${datarootdir}'
795ca3e5
AK
946sysconfdir='${prefix}/etc'
947sharedstatedir='${prefix}/com'
948localstatedir='${prefix}/var'
795ca3e5
AK
949includedir='${prefix}/include'
950oldincludedir='/usr/include'
7a197a62
AK
951docdir='${datarootdir}/doc/${PACKAGE}'
952infodir='${datarootdir}/info'
953htmldir='${docdir}'
954dvidir='${docdir}'
955pdfdir='${docdir}'
956psdir='${docdir}'
957libdir='${exec_prefix}/lib'
958localedir='${datarootdir}/locale'
959mandir='${datarootdir}/man'
795ca3e5 960
795ca3e5 961ac_prev=
7a197a62 962ac_dashdash=
795ca3e5
AK
963for ac_option
964do
795ca3e5
AK
965 # If the previous option needs an argument, assign it.
966 if test -n "$ac_prev"; then
7a197a62 967 eval $ac_prev=\$ac_option
795ca3e5
AK
968 ac_prev=
969 continue
970 fi
971
7a197a62
AK
972 case $ac_option in
973 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
974 *) ac_optarg=yes ;;
975 esac
795ca3e5
AK
976
977 # Accept the important Cygnus configure options, so we can diagnose typos.
978
7a197a62
AK
979 case $ac_dashdash$ac_option in
980 --)
981 ac_dashdash=yes ;;
795ca3e5
AK
982
983 -bindir | --bindir | --bindi | --bind | --bin | --bi)
984 ac_prev=bindir ;;
985 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 986 bindir=$ac_optarg ;;
795ca3e5
AK
987
988 -build | --build | --buil | --bui | --bu)
ad6254c5 989 ac_prev=build_alias ;;
795ca3e5 990 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 991 build_alias=$ac_optarg ;;
795ca3e5
AK
992
993 -cache-file | --cache-file | --cache-fil | --cache-fi \
994 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995 ac_prev=cache_file ;;
996 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
998 cache_file=$ac_optarg ;;
999
1000 --config-cache | -C)
1001 cache_file=config.cache ;;
795ca3e5 1002
7a197a62 1003 -datadir | --datadir | --datadi | --datad)
795ca3e5 1004 ac_prev=datadir ;;
7a197a62 1005 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 1006 datadir=$ac_optarg ;;
795ca3e5 1007
7a197a62
AK
1008 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009 | --dataroo | --dataro | --datar)
1010 ac_prev=datarootdir ;;
1011 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013 datarootdir=$ac_optarg ;;
1014
795ca3e5 1015 -disable-* | --disable-*)
ec6a6fbe 1016 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 1017 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1020 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1021 ac_useropt_orig=$ac_useropt
1022 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023 case $ac_user_opts in
1024 *"
1025"enable_$ac_useropt"
1026"*) ;;
1027 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1028 ac_unrecognized_sep=', ';;
1029 esac
1030 eval enable_$ac_useropt=no ;;
7a197a62
AK
1031
1032 -docdir | --docdir | --docdi | --doc | --do)
1033 ac_prev=docdir ;;
1034 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1035 docdir=$ac_optarg ;;
1036
1037 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1038 ac_prev=dvidir ;;
1039 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1040 dvidir=$ac_optarg ;;
795ca3e5
AK
1041
1042 -enable-* | --enable-*)
ec6a6fbe 1043 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1044 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1047 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1051 *"
1052"enable_$ac_useropt"
1053"*) ;;
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
1056 esac
1057 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1058
1059 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1060 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1061 | --exec | --exe | --ex)
1062 ac_prev=exec_prefix ;;
1063 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1064 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1065 | --exec=* | --exe=* | --ex=*)
ad6254c5 1066 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1067
1068 -gas | --gas | --ga | --g)
1069 # Obsolete; use --with-gas.
1070 with_gas=yes ;;
1071
ad6254c5
AK
1072 -help | --help | --hel | --he | -h)
1073 ac_init_help=long ;;
1074 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1075 ac_init_help=recursive ;;
1076 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1077 ac_init_help=short ;;
795ca3e5
AK
1078
1079 -host | --host | --hos | --ho)
ad6254c5 1080 ac_prev=host_alias ;;
795ca3e5 1081 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1082 host_alias=$ac_optarg ;;
795ca3e5 1083
7a197a62
AK
1084 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1085 ac_prev=htmldir ;;
1086 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1087 | --ht=*)
1088 htmldir=$ac_optarg ;;
1089
795ca3e5
AK
1090 -includedir | --includedir | --includedi | --included | --include \
1091 | --includ | --inclu | --incl | --inc)
1092 ac_prev=includedir ;;
1093 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1094 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1095 includedir=$ac_optarg ;;
795ca3e5
AK
1096
1097 -infodir | --infodir | --infodi | --infod | --info | --inf)
1098 ac_prev=infodir ;;
1099 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1100 infodir=$ac_optarg ;;
795ca3e5
AK
1101
1102 -libdir | --libdir | --libdi | --libd)
1103 ac_prev=libdir ;;
1104 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1105 libdir=$ac_optarg ;;
795ca3e5
AK
1106
1107 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1108 | --libexe | --libex | --libe)
1109 ac_prev=libexecdir ;;
1110 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1111 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1112 libexecdir=$ac_optarg ;;
795ca3e5 1113
7a197a62
AK
1114 -localedir | --localedir | --localedi | --localed | --locale)
1115 ac_prev=localedir ;;
1116 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1117 localedir=$ac_optarg ;;
1118
795ca3e5 1119 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1120 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1121 ac_prev=localstatedir ;;
1122 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1123 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1124 localstatedir=$ac_optarg ;;
795ca3e5
AK
1125
1126 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1127 ac_prev=mandir ;;
1128 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1129 mandir=$ac_optarg ;;
795ca3e5
AK
1130
1131 -nfp | --nfp | --nf)
1132 # Obsolete; use --without-fp.
1133 with_fp=no ;;
1134
1135 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1136 | --no-cr | --no-c | -n)
795ca3e5
AK
1137 no_create=yes ;;
1138
1139 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1140 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1141 no_recursion=yes ;;
1142
1143 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1144 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1145 | --oldin | --oldi | --old | --ol | --o)
1146 ac_prev=oldincludedir ;;
1147 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1148 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1149 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1150 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1151
1152 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1153 ac_prev=prefix ;;
1154 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1155 prefix=$ac_optarg ;;
795ca3e5
AK
1156
1157 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1158 | --program-pre | --program-pr | --program-p)
1159 ac_prev=program_prefix ;;
1160 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1161 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1162 program_prefix=$ac_optarg ;;
795ca3e5
AK
1163
1164 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1165 | --program-suf | --program-su | --program-s)
1166 ac_prev=program_suffix ;;
1167 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1168 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1169 program_suffix=$ac_optarg ;;
795ca3e5
AK
1170
1171 -program-transform-name | --program-transform-name \
1172 | --program-transform-nam | --program-transform-na \
1173 | --program-transform-n | --program-transform- \
1174 | --program-transform | --program-transfor \
1175 | --program-transfo | --program-transf \
1176 | --program-trans | --program-tran \
1177 | --progr-tra | --program-tr | --program-t)
1178 ac_prev=program_transform_name ;;
1179 -program-transform-name=* | --program-transform-name=* \
1180 | --program-transform-nam=* | --program-transform-na=* \
1181 | --program-transform-n=* | --program-transform-=* \
1182 | --program-transform=* | --program-transfor=* \
1183 | --program-transfo=* | --program-transf=* \
1184 | --program-trans=* | --program-tran=* \
1185 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1186 program_transform_name=$ac_optarg ;;
795ca3e5 1187
7a197a62
AK
1188 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1189 ac_prev=pdfdir ;;
1190 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1191 pdfdir=$ac_optarg ;;
1192
1193 -psdir | --psdir | --psdi | --psd | --ps)
1194 ac_prev=psdir ;;
1195 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1196 psdir=$ac_optarg ;;
1197
795ca3e5
AK
1198 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1199 | -silent | --silent | --silen | --sile | --sil)
1200 silent=yes ;;
1201
1202 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1203 ac_prev=sbindir ;;
1204 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1205 | --sbi=* | --sb=*)
ad6254c5 1206 sbindir=$ac_optarg ;;
795ca3e5
AK
1207
1208 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1209 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1210 | --sharedst | --shareds | --shared | --share | --shar \
1211 | --sha | --sh)
1212 ac_prev=sharedstatedir ;;
1213 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1214 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1215 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1216 | --sha=* | --sh=*)
ad6254c5 1217 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1218
1219 -site | --site | --sit)
1220 ac_prev=site ;;
1221 -site=* | --site=* | --sit=*)
ad6254c5 1222 site=$ac_optarg ;;
795ca3e5
AK
1223
1224 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1225 ac_prev=srcdir ;;
1226 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1227 srcdir=$ac_optarg ;;
795ca3e5
AK
1228
1229 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1230 | --syscon | --sysco | --sysc | --sys | --sy)
1231 ac_prev=sysconfdir ;;
1232 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1233 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1234 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1235
1236 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1237 ac_prev=target_alias ;;
795ca3e5 1238 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1239 target_alias=$ac_optarg ;;
795ca3e5
AK
1240
1241 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1242 verbose=yes ;;
1243
ad6254c5
AK
1244 -version | --version | --versio | --versi | --vers | -V)
1245 ac_init_version=: ;;
795ca3e5
AK
1246
1247 -with-* | --with-*)
ec6a6fbe 1248 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1249 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1252 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1253 ac_useropt_orig=$ac_useropt
1254 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255 case $ac_user_opts in
1256 *"
1257"with_$ac_useropt"
1258"*) ;;
1259 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1260 ac_unrecognized_sep=', ';;
1261 esac
1262 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1263
1264 -without-* | --without-*)
ec6a6fbe 1265 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1266 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1267 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1268 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1269 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1270 ac_useropt_orig=$ac_useropt
1271 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1273 *"
1274"with_$ac_useropt"
1275"*) ;;
1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1277 ac_unrecognized_sep=', ';;
1278 esac
1279 eval with_$ac_useropt=no ;;
795ca3e5
AK
1280
1281 --x)
1282 # Obsolete; use --with-x.
1283 with_x=yes ;;
1284
1285 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1286 | --x-incl | --x-inc | --x-in | --x-i)
1287 ac_prev=x_includes ;;
1288 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1289 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1290 x_includes=$ac_optarg ;;
795ca3e5
AK
1291
1292 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1293 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1294 ac_prev=x_libraries ;;
1295 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1296 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1297 x_libraries=$ac_optarg ;;
795ca3e5 1298
ec6a6fbe 1299 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1300Try \`$0 --help' for more information." >&2
1301 { (exit 1); exit 1; }; }
795ca3e5
AK
1302 ;;
1303
ad6254c5
AK
1304 *=*)
1305 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306 # Reject names that are not valid shell variable names.
1307 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1308 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1309 { (exit 1); exit 1; }; }
7a197a62 1310 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1311 export $ac_envvar ;;
1312
795ca3e5 1313 *)
ad6254c5 1314 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1315 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1316 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1317 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1318 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1319 ;;
1320
1321 esac
1322done
1323
1324if test -n "$ac_prev"; then
ad6254c5 1325 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec6a6fbe 1326 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1327 { (exit 1); exit 1; }; }
795ca3e5 1328fi
795ca3e5 1329
ec6a6fbe
AK
1330if test -n "$ac_unrecognized_opts"; then
1331 case $enable_option_checking in
1332 no) ;;
1333 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1334 { (exit 1); exit 1; }; } ;;
1335 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1336 esac
1337fi
1338
1339# Check all directory arguments for consistency.
7a197a62
AK
1340for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1341 datadir sysconfdir sharedstatedir localstatedir includedir \
1342 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1343 libdir localedir mandir
795ca3e5 1344do
7a197a62 1345 eval ac_val=\$$ac_var
ec6a6fbe
AK
1346 # Remove trailing slashes.
1347 case $ac_val in
1348 */ )
1349 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1350 eval $ac_var=\$ac_val;;
1351 esac
1352 # Be sure to have absolute directory names.
ad6254c5 1353 case $ac_val in
7a197a62
AK
1354 [\\/$]* | ?:[\\/]* ) continue;;
1355 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1356 esac
ec6a6fbe 1357 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1358 { (exit 1); exit 1; }; }
795ca3e5
AK
1359done
1360
ad6254c5
AK
1361# There might be people who depend on the old broken behavior: `$host'
1362# used to hold the argument of --host etc.
1363# FIXME: To remove some day.
1364build=$build_alias
1365host=$host_alias
1366target=$target_alias
1367
1368# FIXME: To remove some day.
1369if test "x$host_alias" != x; then
1370 if test "x$build_alias" = x; then
1371 cross_compiling=maybe
ec6a6fbe 1372 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1373 If a cross compiler is detected then cross compile mode will be used." >&2
1374 elif test "x$build_alias" != "x$host_alias"; then
1375 cross_compiling=yes
1376 fi
1377fi
8106cdd5 1378
ad6254c5
AK
1379ac_tool_prefix=
1380test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381
1382test "$silent" = yes && exec 6>/dev/null
795ca3e5 1383
795ca3e5 1384
7a197a62
AK
1385ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386ac_ls_di=`ls -di .` &&
1387ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec6a6fbe 1388 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7a197a62
AK
1389 { (exit 1); exit 1; }; }
1390test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec6a6fbe 1391 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1392 { (exit 1); exit 1; }; }
1393
1394
795ca3e5
AK
1395# Find the source files, if location was not specified.
1396if test -z "$srcdir"; then
1397 ac_srcdir_defaulted=yes
7a197a62 1398 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1399 ac_confdir=`$as_dirname -- "$as_myself" ||
1400$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1401 X"$as_myself" : 'X\(//\)[^/]' \| \
1402 X"$as_myself" : 'X\(//\)$' \| \
1403 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1404$as_echo X"$as_myself" |
7a197a62
AK
1405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406 s//\1/
1407 q
1408 }
1409 /^X\(\/\/\)[^/].*/{
1410 s//\1/
1411 q
1412 }
1413 /^X\(\/\/\)$/{
1414 s//\1/
1415 q
1416 }
1417 /^X\(\/\).*/{
1418 s//\1/
1419 q
1420 }
1421 s/.*/./; q'`
795ca3e5 1422 srcdir=$ac_confdir
7a197a62 1423 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1424 srcdir=..
1425 fi
1426else
1427 ac_srcdir_defaulted=no
1428fi
7a197a62
AK
1429if test ! -r "$srcdir/$ac_unique_file"; then
1430 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec6a6fbe 1431 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1432 { (exit 1); exit 1; }; }
795ca3e5 1433fi
7a197a62
AK
1434ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1435ac_abs_confdir=`(
ec6a6fbe 1436 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1437 { (exit 1); exit 1; }; }
7a197a62
AK
1438 pwd)`
1439# When building in place, set srcdir=.
1440if test "$ac_abs_confdir" = "$ac_pwd"; then
1441 srcdir=.
1442fi
1443# Remove unnecessary trailing slashes from srcdir.
1444# Double slashes in file names in object file debugging info
1445# mess up M-x gdb in Emacs.
1446case $srcdir in
1447*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448esac
1449for ac_var in $ac_precious_vars; do
1450 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_env_${ac_var}_value=\$${ac_var}
1452 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454done
ad6254c5
AK
1455
1456#
1457# Report the --help message.
1458#
1459if test "$ac_init_help" = "long"; then
1460 # Omit some internal or obsolete options to make the list less imposing.
1461 # This message is too long to be a string in the A/UX 3.1 sh.
1462 cat <<_ACEOF
1463\`configure' configures this package to adapt to many kinds of systems.
1464
1465Usage: $0 [OPTION]... [VAR=VALUE]...
1466
1467To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468VAR=VALUE. See below for descriptions of some of the useful variables.
1469
1470Defaults for the options are specified in brackets.
1471
1472Configuration:
1473 -h, --help display this help and exit
1474 --help=short display options specific to this package
1475 --help=recursive display the short help of all the included packages
1476 -V, --version display version information and exit
1477 -q, --quiet, --silent do not print \`checking...' messages
1478 --cache-file=FILE cache test results in FILE [disabled]
1479 -C, --config-cache alias for \`--cache-file=config.cache'
1480 -n, --no-create do not create output files
1481 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1482
ad6254c5
AK
1483Installation directories:
1484 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1485 [$ac_default_prefix]
ad6254c5 1486 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1487 [PREFIX]
ad6254c5
AK
1488
1489By default, \`make install' will install all the files in
1490\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1491an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492for instance \`--prefix=\$HOME'.
1493
1494For better control, use the options below.
1495
1496Fine tuning of the installation directories:
ec6a6fbe
AK
1497 --bindir=DIR user executables [EPREFIX/bin]
1498 --sbindir=DIR system admin executables [EPREFIX/sbin]
1499 --libexecdir=DIR program executables [EPREFIX/libexec]
1500 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1501 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1502 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1503 --libdir=DIR object code libraries [EPREFIX/lib]
1504 --includedir=DIR C header files [PREFIX/include]
1505 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1506 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1507 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1508 --infodir=DIR info documentation [DATAROOTDIR/info]
1509 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1510 --mandir=DIR man documentation [DATAROOTDIR/man]
1511 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1512 --htmldir=DIR html documentation [DOCDIR]
1513 --dvidir=DIR dvi documentation [DOCDIR]
1514 --pdfdir=DIR pdf documentation [DOCDIR]
1515 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1516_ACEOF
1517
1518 cat <<\_ACEOF
1519
1520System types:
1521 --build=BUILD configure for building on BUILD [guessed]
1522 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1523 --target=TARGET configure for building compilers for TARGET [HOST]
1524_ACEOF
1525fi
1526
1527if test -n "$ac_init_help"; then
1528
1529 cat <<\_ACEOF
1530
1531Optional Features:
ec6a6fbe 1532 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1533 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1534 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
71082be4
ZK
1535 --enable-static_link use this to link the tools to their libraries
1536 statically (default is dynamic linking
1537 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
ad6254c5 1538 device-mapper is missing from the kernel
71082be4
ZK
1539 --disable-readline disable readline support
1540 --enable-realtime enable realtime clock support
1541 --enable-cmirrord enable the cluster mirror log daemon
1542 --enable-debug enable debugging
1543 --enable-profiling gather gcov profiling data
54b362f9 1544 --enable-testing enable testing targets in the makefile
d1e8046f 1545 --enable-valgrind-pool enable valgrind awareness of pools
71082be4
ZK
1546 --disable-devmapper disable LVM2 device-mapper interaction
1547 --enable-udev_sync enable synchronisation with udev processing
1548 --enable-udev_rules install rule files needed for udev synchronisation
1549 --enable-compat enable support for old device-mapper versions
1550 --enable-units-compat enable output compatibility with old versions that
1551 that do not use KiB-style unit suffixes
1552 --disable-driver disable calls to device-mapper in the kernel
1553 --disable-o_direct disable O_DIRECT
1554 --enable-applib build application library
1555 --enable-cmdlib build shared command library
1556 --enable-pkgconfig install pkgconfig support
1557 --enable-write_install install user writable files
1558 --disable-fsadm disable fsadm
1559 --enable-dmeventd enable the device-mapper event daemon
1560 --disable-selinux disable selinux support
1561 --enable-nls enable Native Language Support
ad6254c5
AK
1562
1563Optional Packages:
1564 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1565 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
71082be4
ZK
1566 --with-user=USER set the owner of installed files [USER=]
1567 --with-group=GROUP set the group owner of installed files [GROUP=]
1568 --with-device-uid=UID set the owner used for new device nodes [UID=0]
1569 --with-device-gid=GID set the group used for new device nodes [GID=0]
1570 --with-device-mode=MODE set the mode used for new device nodes [MODE=0600]
ad6254c5 1571 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
71082be4 1572 [TYPE=internal]
ad6254c5 1573 --with-pool=TYPE GFS pool read-only support: internal/shared/none
71082be4
ZK
1574 [TYPE=internal]
1575 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
1576 [TYPE=internal]
1577 --with-snapshots=TYPE snapshot support: internal/shared/none
1578 [TYPE=internal]
1579 --with-mirrors=TYPE mirror support: internal/shared/none
1580 [TYPE=internal]
1581 --with-replicators=TYPE replicator support: internal/shared/none
1582 [TYPE=none]
1583 --with-clvmd=TYPE build cluster LVM Daemon
8c222979 1584 The following cluster manager combinations are valid:
a946372e
AK
1585 * cman,gulm (RHEL4 or equivalent)
1586 * cman (RHEL5 or equivalent)
1587 * cman,corosync,openais (or selection of them)
1091650a 1588 * singlenode (localhost only)
a946372e
AK
1589 * all (autodetect)
1590 * none (disable build)
71082be4 1591 [TYPE=none]
8c4e8a18
FDN
1592 --with-clvmd-pidfile=PATH
1593 clvmd pidfile [/var/run/clvmd.pid]
71082be4
ZK
1594 --with-cmirrord-pidfile=PATH
1595 cmirrord pidfile [/var/run/cmirrord.pid]
d0191583 1596 --with-optimisation=OPT C optimisation flag [OPT=-O2]
71082be4
ZK
1597 --with-localedir=DIR translation files in DIR [PREFIX/share/locale]
1598 --with-confdir=DIR configuration files in DIR [/etc]
1599 --with-staticdir=DIR static binaries in DIR [EPREFIX/sbin]
1600 --with-usrlibdir=DIR usrlib in DIR [PREFIX/lib]
1601 --with-usrsbindir=DIR usrsbin executables in DIR [PREFIX/sbin]
1602 --with-udev-prefix=UPREFIX
1603 install udev rule files in UPREFIX [EPREFIX]
78ce7acc 1604 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
71082be4
ZK
1605 --with-dmeventd-pidfile=PATH
1606 dmeventd pidfile [/var/run/dmeventd.pid]
1607 --with-dmeventd-path=PATH
1608 dmeventd path [EPREFIX/sbin/dmeventd]
8bae0a1e 1609 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
71082be4
ZK
1610 --with-default-system-dir=DIR
1611 default LVM system directory [/etc/lvm]
1612 --with-default-archive-subdir=SUBDIR
1613 default metadata archive subdir [archive]
1614 --with-default-backup-subdir=SUBDIR
1615 default metadata backup subdir [backup]
1616 --with-default-cache-subdir=SUBDIR
1617 default metadata cache subdir [cache]
1618 --with-default-locking-dir=DIR
1619 default locking directory [/var/lock/lvm]
fea55602
DW
1620 --with-default-data-alignment=NUM
1621 set the default data alignment in MiB [1]
71082be4 1622 --with-interface=IFACE choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1623
1624Some influential environment variables:
1625 CC C compiler command
1626 CFLAGS C compiler flags
1627 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1628 nonstandard directory <lib dir>
25fbec5b 1629 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1630 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1631 you have headers in a nonstandard directory <include dir>
ad6254c5 1632 CPP C preprocessor
e2997b73 1633 PKG_CONFIG path to pkg-config utility
a946372e
AK
1634 PKGCONFIGINIT_CFLAGS
1635 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1636 PKGCONFIGINIT_LIBS
1637 linker flags for PKGCONFIGINIT, overriding pkg-config
1638 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1639 CCS_LIBS linker flags for CCS, overriding pkg-config
1640 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1641 GULM_LIBS linker flags for GULM, overriding pkg-config
1642 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1643 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1644 COROSYNC_CFLAGS
1645 C compiler flags for COROSYNC, overriding pkg-config
1646 COROSYNC_LIBS
1647 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1648 QUORUM_CFLAGS
1649 C compiler flags for QUORUM, overriding pkg-config
1650 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1651 SALCK_CFLAGS
1652 C compiler flags for SALCK, overriding pkg-config
1653 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1654 CONFDB_CFLAGS
1655 C compiler flags for CONFDB, overriding pkg-config
1656 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1657 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1658 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1659 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1660 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1661 SACKPT_CFLAGS
1662 C compiler flags for SACKPT, overriding pkg-config
1663 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
ad6254c5
AK
1664
1665Use these variables to override the choices made by `configure' or to help
1666it to find libraries and programs with nonstandard names/locations.
1667
1668_ACEOF
7a197a62 1669ac_status=$?
ad6254c5
AK
1670fi
1671
1672if test "$ac_init_help" = "recursive"; then
1673 # If there are subdirs, report their specific --help.
ad6254c5 1674 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1675 test -d "$ac_dir" ||
1676 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1677 continue
ad6254c5
AK
1678 ac_builddir=.
1679
7a197a62
AK
1680case "$ac_dir" in
1681.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1682*)
ec6a6fbe 1683 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1684 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1685 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1686 case $ac_top_builddir_sub in
1687 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1688 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1689 esac ;;
1690esac
1691ac_abs_top_builddir=$ac_pwd
1692ac_abs_builddir=$ac_pwd$ac_dir_suffix
1693# for backward compatibility:
1694ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1695
1696case $srcdir in
7a197a62 1697 .) # We are building in place.
ad6254c5 1698 ac_srcdir=.
7a197a62
AK
1699 ac_top_srcdir=$ac_top_builddir_sub
1700 ac_abs_top_srcdir=$ac_pwd ;;
1701 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1702 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1703 ac_top_srcdir=$srcdir
1704 ac_abs_top_srcdir=$srcdir ;;
1705 *) # Relative name.
1706 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1707 ac_top_srcdir=$ac_top_build_prefix$srcdir
1708 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1709esac
7a197a62
AK
1710ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1711
1712 cd "$ac_dir" || { ac_status=$?; continue; }
1713 # Check for guested configure.
1714 if test -f "$ac_srcdir/configure.gnu"; then
1715 echo &&
1716 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1717 elif test -f "$ac_srcdir/configure"; then
1718 echo &&
1719 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1720 else
ec6a6fbe 1721 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1722 fi || ac_status=$?
1723 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1724 done
1725fi
1726
7a197a62 1727test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1728if $ac_init_version; then
1729 cat <<\_ACEOF
7a197a62 1730configure
ec6a6fbe 1731generated by GNU Autoconf 2.63
ad6254c5 1732
7a197a62 1733Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 17342002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1735This configure script is free software; the Free Software Foundation
1736gives unlimited permission to copy, distribute and modify it.
1737_ACEOF
7a197a62 1738 exit
ad6254c5 1739fi
7a197a62 1740cat >config.log <<_ACEOF
ad6254c5
AK
1741This file contains any messages produced by compilers while
1742running configure, to aid debugging if configure makes a mistake.
1743
1744It was created by $as_me, which was
ec6a6fbe 1745generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
1746
1747 $ $0 $@
1748
1749_ACEOF
7a197a62 1750exec 5>>config.log
ad6254c5
AK
1751{
1752cat <<_ASUNAME
1753## --------- ##
1754## Platform. ##
1755## --------- ##
1756
1757hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1758uname -m = `(uname -m) 2>/dev/null || echo unknown`
1759uname -r = `(uname -r) 2>/dev/null || echo unknown`
1760uname -s = `(uname -s) 2>/dev/null || echo unknown`
1761uname -v = `(uname -v) 2>/dev/null || echo unknown`
1762
1763/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1764/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1765
1766/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1767/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1768/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1769/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1770/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1771/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1772/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1773
1774_ASUNAME
1775
1776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777for as_dir in $PATH
1778do
1779 IFS=$as_save_IFS
1780 test -z "$as_dir" && as_dir=.
ec6a6fbe 1781 $as_echo "PATH: $as_dir"
ad6254c5 1782done
7a197a62 1783IFS=$as_save_IFS
ad6254c5
AK
1784
1785} >&5
1786
1787cat >&5 <<_ACEOF
1788
1789
1790## ----------- ##
1791## Core tests. ##
1792## ----------- ##
1793
1794_ACEOF
1795
1796
1797# Keep a trace of the command line.
1798# Strip out --no-create and --no-recursion so they do not pile up.
1799# Strip out --silent because we don't want to record it for future runs.
1800# Also quote any args containing shell meta-characters.
1801# Make two passes to allow for proper duplicate-argument suppression.
1802ac_configure_args=
1803ac_configure_args0=
1804ac_configure_args1=
ad6254c5
AK
1805ac_must_keep_next=false
1806for ac_pass in 1 2
1807do
1808 for ac_arg
1809 do
1810 case $ac_arg in
1811 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1812 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1813 | -silent | --silent | --silen | --sile | --sil)
1814 continue ;;
7a197a62 1815 *\'*)
ec6a6fbe 1816 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1817 esac
1818 case $ac_pass in
1819 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1820 2)
1821 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1822 if test $ac_must_keep_next = true; then
8a2fc586 1823 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1824 else
8a2fc586
AK
1825 case $ac_arg in
1826 *=* | --config-cache | -C | -disable-* | --disable-* \
1827 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1828 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1829 | -with-* | --with-* | -without-* | --without-* | --x)
1830 case "$ac_configure_args0 " in
1831 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1832 esac
1833 ;;
1834 -* ) ac_must_keep_next=true ;;
1835 esac
ad6254c5 1836 fi
7a197a62 1837 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1838 ;;
1839 esac
1840 done
1841done
1842$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1843$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1844
1845# When interrupted or exit'd, cleanup temporary files, and complete
1846# config.log. We remove comments because anyway the quotes in there
1847# would cause problems or look ugly.
7a197a62
AK
1848# WARNING: Use '\'' to represent an apostrophe within the trap.
1849# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1850trap 'exit_status=$?
1851 # Save into config.log some information that might help in debugging.
1852 {
1853 echo
1854
1855 cat <<\_ASBOX
1856## ---------------- ##
1857## Cache variables. ##
1858## ---------------- ##
1859_ASBOX
1860 echo
1861 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1862(
1863 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1864 eval ac_val=\$$ac_var
1865 case $ac_val in #(
1866 *${as_nl}*)
1867 case $ac_var in #(
ec6a6fbe
AK
1868 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1869$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
1870 esac
1871 case $ac_var in #(
1872 _ | IFS | as_nl) ;; #(
ec6a6fbe 1873 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1874 *) $as_unset $ac_var ;;
1875 esac ;;
1876 esac
1877 done
ad6254c5 1878 (set) 2>&1 |
7a197a62
AK
1879 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1880 *${as_nl}ac_space=\ *)
ad6254c5 1881 sed -n \
7a197a62
AK
1882 "s/'\''/'\''\\\\'\'''\''/g;
1883 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1884 ;; #(
ad6254c5 1885 *)
7a197a62 1886 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1887 ;;
7a197a62
AK
1888 esac |
1889 sort
1890)
ad6254c5
AK
1891 echo
1892
1893 cat <<\_ASBOX
1894## ----------------- ##
1895## Output variables. ##
1896## ----------------- ##
1897_ASBOX
1898 echo
1899 for ac_var in $ac_subst_vars
1900 do
7a197a62
AK
1901 eval ac_val=\$$ac_var
1902 case $ac_val in
ec6a6fbe 1903 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1904 esac
ec6a6fbe 1905 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1906 done | sort
1907 echo
1908
1909 if test -n "$ac_subst_files"; then
1910 cat <<\_ASBOX
7a197a62
AK
1911## ------------------- ##
1912## File substitutions. ##
1913## ------------------- ##
ad6254c5
AK
1914_ASBOX
1915 echo
1916 for ac_var in $ac_subst_files
1917 do
7a197a62
AK
1918 eval ac_val=\$$ac_var
1919 case $ac_val in
ec6a6fbe 1920 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1921 esac
ec6a6fbe 1922 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1923 done | sort
1924 echo
1925 fi
1926
1927 if test -s confdefs.h; then
1928 cat <<\_ASBOX
1929## ----------- ##
1930## confdefs.h. ##
1931## ----------- ##
1932_ASBOX
1933 echo
7a197a62 1934 cat confdefs.h
ad6254c5
AK
1935 echo
1936 fi
1937 test "$ac_signal" != 0 &&
ec6a6fbe
AK
1938 $as_echo "$as_me: caught signal $ac_signal"
1939 $as_echo "$as_me: exit $exit_status"
ad6254c5 1940 } >&5
7a197a62
AK
1941 rm -f core *.core core.conftest.* &&
1942 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1943 exit $exit_status
7a197a62 1944' 0
ad6254c5
AK
1945for ac_signal in 1 2 13 15; do
1946 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1947done
1948ac_signal=0
1949
1950# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1951rm -f -r conftest* confdefs.h
ad6254c5
AK
1952
1953# Predefined preprocessor variables.
1954
1955cat >>confdefs.h <<_ACEOF
1956#define PACKAGE_NAME "$PACKAGE_NAME"
1957_ACEOF
1958
1959
1960cat >>confdefs.h <<_ACEOF
1961#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1962_ACEOF
1963
1964
1965cat >>confdefs.h <<_ACEOF
1966#define PACKAGE_VERSION "$PACKAGE_VERSION"
1967_ACEOF
8106cdd5 1968
ad6254c5
AK
1969
1970cat >>confdefs.h <<_ACEOF
1971#define PACKAGE_STRING "$PACKAGE_STRING"
1972_ACEOF
1973
1974
1975cat >>confdefs.h <<_ACEOF
1976#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1977_ACEOF
1978
1979
1980# Let the site file select an alternate cache file if it wants to.
ec6a6fbe
AK
1981# Prefer an explicitly selected file to automatically selected ones.
1982ac_site_file1=NONE
1983ac_site_file2=NONE
7a197a62 1984if test -n "$CONFIG_SITE"; then
ec6a6fbe 1985 ac_site_file1=$CONFIG_SITE
7a197a62 1986elif test "x$prefix" != xNONE; then
ec6a6fbe
AK
1987 ac_site_file1=$prefix/share/config.site
1988 ac_site_file2=$prefix/etc/config.site
7a197a62 1989else
ec6a6fbe
AK
1990 ac_site_file1=$ac_default_prefix/share/config.site
1991 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1992fi
ec6a6fbe 1993for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1994do
ec6a6fbe 1995 test "x$ac_site_file" = xNONE && continue
795ca3e5 1996 if test -r "$ac_site_file"; then
ec6a6fbe
AK
1997 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1998$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1999 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
2000 . "$ac_site_file"
2001 fi
2002done
2003
2004if test -r "$cache_file"; then
ad6254c5
AK
2005 # Some versions of bash will fail to source /dev/null (special
2006 # files actually), so we avoid doing that.
2007 if test -f "$cache_file"; then
ec6a6fbe
AK
2008 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2009$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 2010 case $cache_file in
7a197a62
AK
2011 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2012 *) . "./$cache_file";;
ad6254c5
AK
2013 esac
2014 fi
795ca3e5 2015else
ec6a6fbe
AK
2016 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2017$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
2018 >$cache_file
2019fi
2020
2021# Check that the precious variables saved in the cache have kept the same
2022# value.
2023ac_cache_corrupted=false
7a197a62 2024for ac_var in $ac_precious_vars; do
ad6254c5
AK
2025 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2026 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
2027 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2028 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
2029 case $ac_old_set,$ac_new_set in
2030 set,)
ec6a6fbe
AK
2031 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2032$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
2033 ac_cache_corrupted=: ;;
2034 ,set)
ec6a6fbe
AK
2035 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2036$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
2037 ac_cache_corrupted=: ;;
2038 ,);;
2039 *)
2040 if test "x$ac_old_val" != "x$ac_new_val"; then
ec6a6fbe
AK
2041 # differences in whitespace do not lead to failure.
2042 ac_old_val_w=`echo x $ac_old_val`
2043 ac_new_val_w=`echo x $ac_new_val`
2044 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2045 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2046$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2047 ac_cache_corrupted=:
2048 else
2049 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2050$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2051 eval $ac_var=\$ac_old_val
2052 fi
2053 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2054$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2055 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2056$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
2057 fi;;
2058 esac
2059 # Pass precious variables to config.status.
2060 if test "$ac_new_set" = set; then
2061 case $ac_new_val in
ec6a6fbe 2062 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
2063 *) ac_arg=$ac_var=$ac_new_val ;;
2064 esac
2065 case " $ac_configure_args " in
2066 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2067 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2068 esac
2069 fi
2070done
2071if $ac_cache_corrupted; then
ec6a6fbe
AK
2072 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2073$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2074 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2075$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2076 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2077$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 2078 { (exit 1); exit 1; }; }
795ca3e5
AK
2079fi
2080
ad6254c5
AK
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
7a197a62
AK
2097ac_ext=c
2098ac_cpp='$CPP $CPPFLAGS'
2099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2101ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2102
795ca3e5
AK
2103
2104
7a197a62 2105ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
2106
2107
80992638 2108################################################################################
795ca3e5 2109ac_aux_dir=
7a197a62
AK
2110for ac_dir in autoconf "$srcdir"/autoconf; do
2111 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
2112 ac_aux_dir=$ac_dir
2113 ac_install_sh="$ac_aux_dir/install-sh -c"
2114 break
7a197a62 2115 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
2116 ac_aux_dir=$ac_dir
2117 ac_install_sh="$ac_aux_dir/install.sh -c"
2118 break
7a197a62 2119 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
2120 ac_aux_dir=$ac_dir
2121 ac_install_sh="$ac_aux_dir/shtool install -c"
2122 break
795ca3e5
AK
2123 fi
2124done
2125if test -z "$ac_aux_dir"; then
ec6a6fbe
AK
2126 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2127$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 2128 { (exit 1); exit 1; }; }
795ca3e5 2129fi
7a197a62
AK
2130
2131# These three variables are undocumented and unsupported,
2132# and are intended to be withdrawn in a future Autoconf release.
2133# They can cause serious problems if a builder's source tree is in a directory
2134# whose full name contains unusual characters.
2135ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2136ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2137ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2138
8ce0cbda
AK
2139
2140
ad6254c5 2141################################################################################
8ce0cbda 2142# Make sure we can run config.sub.
7a197a62 2143$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec6a6fbe
AK
2144 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2145$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
2146 { (exit 1); exit 1; }; }
2147
ec6a6fbe
AK
2148{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2149$as_echo_n "checking build system type... " >&6; }
ad6254c5 2150if test "${ac_cv_build+set}" = set; then
ec6a6fbe 2151 $as_echo_n "(cached) " >&6
ad6254c5 2152else
7a197a62
AK
2153 ac_build_alias=$build_alias
2154test "x$ac_build_alias" = x &&
2155 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2156test "x$ac_build_alias" = x &&
ec6a6fbe
AK
2157 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2158$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 2159 { (exit 1); exit 1; }; }
7a197a62 2160ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec6a6fbe
AK
2161 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2162$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
2163 { (exit 1); exit 1; }; }
2164
2165fi
ec6a6fbe
AK
2166{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2167$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
2168case $ac_cv_build in
2169*-*-*) ;;
ec6a6fbe
AK
2170*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2171$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
2172 { (exit 1); exit 1; }; };;
2173esac
ad6254c5 2174build=$ac_cv_build
7a197a62
AK
2175ac_save_IFS=$IFS; IFS='-'
2176set x $ac_cv_build
2177shift
2178build_cpu=$1
2179build_vendor=$2
2180shift; shift
2181# Remember, the first character of IFS is used to create $*,
2182# except with old shells:
2183build_os=$*
2184IFS=$ac_save_IFS
2185case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2186
2187
ec6a6fbe
AK
2188{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2189$as_echo_n "checking host system type... " >&6; }
ad6254c5 2190if test "${ac_cv_host+set}" = set; then
ec6a6fbe 2191 $as_echo_n "(cached) " >&6
ad6254c5 2192else
7a197a62
AK
2193 if test "x$host_alias" = x; then
2194 ac_cv_host=$ac_cv_build
2195else
2196 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec6a6fbe
AK
2197 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2198$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2199 { (exit 1); exit 1; }; }
7a197a62 2200fi
ad6254c5
AK
2201
2202fi
ec6a6fbe
AK
2203{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2204$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2205case $ac_cv_host in
2206*-*-*) ;;
ec6a6fbe
AK
2207*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2208$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2209 { (exit 1); exit 1; }; };;
2210esac
ad6254c5 2211host=$ac_cv_host
7a197a62
AK
2212ac_save_IFS=$IFS; IFS='-'
2213set x $ac_cv_host
2214shift
2215host_cpu=$1
2216host_vendor=$2
2217shift; shift
2218# Remember, the first character of IFS is used to create $*,
2219# except with old shells:
2220host_os=$*
2221IFS=$ac_save_IFS
2222case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2223
2224
ec6a6fbe
AK
2225{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2226$as_echo_n "checking target system type... " >&6; }
ad6254c5 2227if test "${ac_cv_target+set}" = set; then
ec6a6fbe 2228 $as_echo_n "(cached) " >&6
ad6254c5 2229else
7a197a62
AK
2230 if test "x$target_alias" = x; then
2231 ac_cv_target=$ac_cv_host
2232else
2233 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec6a6fbe
AK
2234 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2235$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2236 { (exit 1); exit 1; }; }
7a197a62 2237fi
8ce0cbda 2238
ad6254c5 2239fi
ec6a6fbe
AK
2240{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2241$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2242case $ac_cv_target in
2243*-*-*) ;;
ec6a6fbe
AK
2244*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2245$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2246 { (exit 1); exit 1; }; };;
2247esac
ad6254c5 2248target=$ac_cv_target
7a197a62
AK
2249ac_save_IFS=$IFS; IFS='-'
2250set x $ac_cv_target
2251shift
2252target_cpu=$1
2253target_vendor=$2
2254shift; shift
2255# Remember, the first character of IFS is used to create $*,
2256# except with old shells:
2257target_os=$*
2258IFS=$ac_save_IFS
2259case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2260
8ce0cbda 2261
ad6254c5
AK
2262# The aliases save the names the user supplied, while $host etc.
2263# will get canonicalized.
2264test -n "$target_alias" &&
8ce0cbda
AK
2265 test "$program_prefix$program_suffix$program_transform_name" = \
2266 NONENONEs,x,x, &&
2267 program_prefix=${target_alias}-
2268
8ce0cbda
AK
2269case "$host_os" in
2270 linux*)
7f54ef36 2271 CFLAGS="$CFLAGS"
8ce0cbda
AK
2272 COPTIMISE_FLAG="-O2"
2273 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2274 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2275 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2276 LDDEPS="$LDDEPS .export.sym"
2277 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2278 LIB_SUFFIX=so
8ce0cbda
AK
2279 DEVMAPPER=yes
2280 ODIRECT=yes
d0191583 2281 DM_IOCTLS=yes
8ce0cbda
AK
2282 SELINUX=yes
2283 CLUSTER=internal
93bd259b 2284 FSADM=yes
d0191583 2285 ;;
8ce0cbda
AK
2286 darwin*)
2287 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2288 COPTIMISE_FLAG="-O2"
2289 CLDFLAGS="$CLDFLAGS"
2290 CLDWHOLEARCHIVE="-all_load"
2291 CLDNOWHOLEARCHIVE=
d0191583 2292 LIB_SUFFIX=dylib
a653923f 2293 DEVMAPPER=yes
8ce0cbda 2294 ODIRECT=no
d0191583 2295 DM_IOCTLS=no
8ce0cbda
AK
2296 SELINUX=no
2297 CLUSTER=none
d0191583
JM
2298 FSADM=no
2299 ;;
8ce0cbda
AK
2300esac
2301
80992638 2302################################################################################
ec6a6fbe
AK
2303{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2304$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2305if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2306 $as_echo_n "(cached) " >&6
5951ef33
AK
2307else
2308 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2309 for ac_i in 1 2 3 4 5 6 7; do
2310 ac_script="$ac_script$as_nl$ac_script"
2311 done
ec6a6fbe 2312 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2313 $as_unset ac_script || ac_script=
ec6a6fbe 2314 if test -z "$SED"; then
5951ef33 2315 ac_path_SED_found=false
ec6a6fbe
AK
2316 # Loop through the user's path and test for each of PROGNAME-LIST
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2318for as_dir in $PATH
2319do
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
2322 for ac_prog in sed gsed; do
ec6a6fbe
AK
2323 for ac_exec_ext in '' $ac_executable_extensions; do
2324 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2325 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2326# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2327 # Check for GNU $ac_path_SED
2328case `"$ac_path_SED" --version 2>&1` in
2329*GNU*)
2330 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2331*)
2332 ac_count=0
ec6a6fbe 2333 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2334 while :
2335 do
2336 cat "conftest.in" "conftest.in" >"conftest.tmp"
2337 mv "conftest.tmp" "conftest.in"
2338 cp "conftest.in" "conftest.nl"
ec6a6fbe 2339 $as_echo '' >> "conftest.nl"
5951ef33
AK
2340 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2341 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2342 ac_count=`expr $ac_count + 1`
2343 if test $ac_count -gt ${ac_path_SED_max-0}; then
2344 # Best one so far, save it but keep looking for a better one
2345 ac_cv_path_SED="$ac_path_SED"
2346 ac_path_SED_max=$ac_count
2347 fi
2348 # 10*(2^10) chars as input seems more than enough
2349 test $ac_count -gt 10 && break
2350 done
2351 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2352esac
2353
ec6a6fbe
AK
2354 $ac_path_SED_found && break 3
2355 done
5951ef33
AK
2356 done
2357done
5951ef33 2358IFS=$as_save_IFS
ec6a6fbe
AK
2359 if test -z "$ac_cv_path_SED"; then
2360 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2361$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2362 { (exit 1); exit 1; }; }
ec6a6fbe 2363 fi
5951ef33
AK
2364else
2365 ac_cv_path_SED=$SED
2366fi
2367
2368fi
ec6a6fbe
AK
2369{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2370$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2371 SED="$ac_cv_path_SED"
2372 rm -f conftest.sed
2373
ad6254c5 2374for ac_prog in gawk mawk nawk awk
795ca3e5 2375do
ad6254c5 2376 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2377set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2378{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2379$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2380if test "${ac_cv_prog_AWK+set}" = set; then
ec6a6fbe 2381 $as_echo_n "(cached) " >&6
795ca3e5
AK
2382else
2383 if test -n "$AWK"; then
2384 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2385else
ad6254c5
AK
2386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387for as_dir in $PATH
2388do
2389 IFS=$as_save_IFS
2390 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2393 ac_cv_prog_AWK="$ac_prog"
ec6a6fbe 2394 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2395 break 2
2396 fi
2397done
2398done
7a197a62 2399IFS=$as_save_IFS
ad6254c5 2400
795ca3e5
AK
2401fi
2402fi
ad6254c5 2403AWK=$ac_cv_prog_AWK
795ca3e5 2404if test -n "$AWK"; then
ec6a6fbe
AK
2405 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2406$as_echo "$AWK" >&6; }
795ca3e5 2407else
ec6a6fbe
AK
2408 { $as_echo "$as_me:$LINENO: result: no" >&5
2409$as_echo "no" >&6; }
795ca3e5
AK
2410fi
2411
7a197a62 2412
ad6254c5
AK
2413 test -n "$AWK" && break
2414done
2415
2416ac_ext=c
2417ac_cpp='$CPP $CPPFLAGS'
2418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2420ac_compiler_gnu=$ac_cv_c_compiler_gnu
2421if test -n "$ac_tool_prefix"; then
2422 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2423set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2424{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2425$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2426if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2427 $as_echo_n "(cached) " >&6
ad6254c5
AK
2428else
2429 if test -n "$CC"; then
2430 ac_cv_prog_CC="$CC" # Let the user override the test.
2431else
2432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433for as_dir in $PATH
2434do
2435 IFS=$as_save_IFS
2436 test -z "$as_dir" && as_dir=.
2437 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2439 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2440 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2441 break 2
2442 fi
2443done
8106cdd5 2444done
7a197a62 2445IFS=$as_save_IFS
8106cdd5 2446
ad6254c5
AK
2447fi
2448fi
2449CC=$ac_cv_prog_CC
2450if test -n "$CC"; then
ec6a6fbe
AK
2451 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2452$as_echo "$CC" >&6; }
ad6254c5 2453else
ec6a6fbe
AK
2454 { $as_echo "$as_me:$LINENO: result: no" >&5
2455$as_echo "no" >&6; }
ad6254c5
AK
2456fi
2457
7a197a62 2458
ad6254c5
AK
2459fi
2460if test -z "$ac_cv_prog_CC"; then
2461 ac_ct_CC=$CC
2462 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2463set dummy gcc; ac_word=$2
ec6a6fbe
AK
2464{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2465$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2466if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2467 $as_echo_n "(cached) " >&6
ad6254c5
AK
2468else
2469 if test -n "$ac_ct_CC"; then
2470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2471else
2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473for as_dir in $PATH
2474do
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2479 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2480 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2481 break 2
2482 fi
2483done
2484done
7a197a62 2485IFS=$as_save_IFS
ad6254c5
AK
2486
2487fi
2488fi
2489ac_ct_CC=$ac_cv_prog_ac_ct_CC
2490if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2491 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2492$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2493else
ec6a6fbe
AK
2494 { $as_echo "$as_me:$LINENO: result: no" >&5
2495$as_echo "no" >&6; }
ad6254c5
AK
2496fi
2497
7a197a62
AK
2498 if test "x$ac_ct_CC" = x; then
2499 CC=""
2500 else
2501 case $cross_compiling:$ac_tool_warned in
2502yes:)
ec6a6fbe
AK
2503{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2505ac_tool_warned=yes ;;
2506esac
2507 CC=$ac_ct_CC
2508 fi
ad6254c5
AK
2509else
2510 CC="$ac_cv_prog_CC"
2511fi
2512
2513if test -z "$CC"; then
7a197a62
AK
2514 if test -n "$ac_tool_prefix"; then
2515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2516set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2517{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2518$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2519if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2520 $as_echo_n "(cached) " >&6
8106cdd5
AK
2521else
2522 if test -n "$CC"; then
2523 ac_cv_prog_CC="$CC" # Let the user override the test.
2524else
ad6254c5
AK
2525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526for as_dir in $PATH
2527do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2532 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec6a6fbe 2533 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2534 break 2
2535 fi
2536done
2537done
7a197a62 2538IFS=$as_save_IFS
ad6254c5 2539
8106cdd5
AK
2540fi
2541fi
ad6254c5 2542CC=$ac_cv_prog_CC
8106cdd5 2543if test -n "$CC"; then
ec6a6fbe
AK
2544 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2545$as_echo "$CC" >&6; }
ad6254c5 2546else
ec6a6fbe
AK
2547 { $as_echo "$as_me:$LINENO: result: no" >&5
2548$as_echo "no" >&6; }
ad6254c5
AK
2549fi
2550
8106cdd5 2551
7a197a62 2552 fi
ad6254c5 2553fi
795ca3e5
AK
2554if test -z "$CC"; then
2555 # Extract the first word of "cc", so it can be a program name with args.
2556set dummy cc; ac_word=$2
ec6a6fbe
AK
2557{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2558$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2559if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2560 $as_echo_n "(cached) " >&6
795ca3e5
AK
2561else
2562 if test -n "$CC"; then
2563 ac_cv_prog_CC="$CC" # Let the user override the test.
2564else
795ca3e5 2565 ac_prog_rejected=no
ad6254c5
AK
2566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567for as_dir in $PATH
2568do
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2573 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2574 ac_prog_rejected=yes
2575 continue
2576 fi
2577 ac_cv_prog_CC="cc"
ec6a6fbe 2578 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2579 break 2
2580 fi
2581done
2582done
7a197a62 2583IFS=$as_save_IFS
ad6254c5 2584
795ca3e5
AK
2585if test $ac_prog_rejected = yes; then
2586 # We found a bogon in the path, so make sure we never use it.
2587 set dummy $ac_cv_prog_CC
2588 shift
ad6254c5 2589 if test $# != 0; then
795ca3e5
AK
2590 # We chose a different compiler from the bogus one.
2591 # However, it has the same basename, so the bogon will be chosen
2592 # first if we set CC to just the basename; use the full file name.
2593 shift
ad6254c5 2594 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2595 fi
2596fi
2597fi
2598fi
ad6254c5 2599CC=$ac_cv_prog_CC
795ca3e5 2600if test -n "$CC"; then
ec6a6fbe
AK
2601 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2602$as_echo "$CC" >&6; }
795ca3e5 2603else
ec6a6fbe
AK
2604 { $as_echo "$as_me:$LINENO: result: no" >&5
2605$as_echo "no" >&6; }
795ca3e5
AK
2606fi
2607
7a197a62 2608
ad6254c5
AK
2609fi
2610if test -z "$CC"; then
2611 if test -n "$ac_tool_prefix"; then
7a197a62 2612 for ac_prog in cl.exe
ad6254c5
AK
2613 do
2614 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2615set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2616{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2617$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2618if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2619 $as_echo_n "(cached) " >&6
795ca3e5
AK
2620else
2621 if test -n "$CC"; then
2622 ac_cv_prog_CC="$CC" # Let the user override the test.
2623else
ad6254c5
AK
2624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625for as_dir in $PATH
2626do
2627 IFS=$as_save_IFS
2628 test -z "$as_dir" && as_dir=.
2629 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2631 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2632 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2633 break 2
2634 fi
2635done
2636done
7a197a62 2637IFS=$as_save_IFS
ad6254c5 2638
795ca3e5
AK
2639fi
2640fi
ad6254c5 2641CC=$ac_cv_prog_CC
795ca3e5 2642if test -n "$CC"; then
ec6a6fbe
AK
2643 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2644$as_echo "$CC" >&6; }
795ca3e5 2645else
ec6a6fbe
AK
2646 { $as_echo "$as_me:$LINENO: result: no" >&5
2647$as_echo "no" >&6; }
795ca3e5 2648fi
ad6254c5 2649
7a197a62 2650
ad6254c5
AK
2651 test -n "$CC" && break
2652 done
2653fi
2654if test -z "$CC"; then
2655 ac_ct_CC=$CC
7a197a62 2656 for ac_prog in cl.exe
ad6254c5
AK
2657do
2658 # Extract the first word of "$ac_prog", so it can be a program name with args.
2659set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2660{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2661$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2662if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2663 $as_echo_n "(cached) " >&6
ad6254c5
AK
2664else
2665 if test -n "$ac_ct_CC"; then
2666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2667else
2668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669for as_dir in $PATH
2670do
2671 IFS=$as_save_IFS
2672 test -z "$as_dir" && as_dir=.
2673 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2675 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2676 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2677 break 2
795ca3e5 2678 fi
ad6254c5
AK
2679done
2680done
7a197a62 2681IFS=$as_save_IFS
ad6254c5
AK
2682
2683fi
2684fi
2685ac_ct_CC=$ac_cv_prog_ac_ct_CC
2686if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2687 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2688$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2689else
ec6a6fbe
AK
2690 { $as_echo "$as_me:$LINENO: result: no" >&5
2691$as_echo "no" >&6; }
795ca3e5
AK
2692fi
2693
7a197a62 2694
ad6254c5
AK
2695 test -n "$ac_ct_CC" && break
2696done
795ca3e5 2697
7a197a62
AK
2698 if test "x$ac_ct_CC" = x; then
2699 CC=""
2700 else
2701 case $cross_compiling:$ac_tool_warned in
2702yes:)
ec6a6fbe
AK
2703{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2705ac_tool_warned=yes ;;
2706esac
2707 CC=$ac_ct_CC
2708 fi
ad6254c5
AK
2709fi
2710
2711fi
2712
2713
ec6a6fbe
AK
2714test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2716{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2717See \`config.log' for more details." >&5
ec6a6fbe 2718$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2719See \`config.log' for more details." >&2;}
ec6a6fbe 2720 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2721
2722# Provide some information about the compiler.
ec6a6fbe
AK
2723$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2724set X $ac_compile
2725ac_compiler=$2
7a197a62
AK
2726{ (ac_try="$ac_compiler --version >&5"
2727case "(($ac_try" in
2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2730esac
ec6a6fbe
AK
2731eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2732$as_echo "$ac_try_echo") >&5
7a197a62 2733 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2734 ac_status=$?
ec6a6fbe 2735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2736 (exit $ac_status); }
7a197a62
AK
2737{ (ac_try="$ac_compiler -v >&5"
2738case "(($ac_try" in
2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2741esac
ec6a6fbe
AK
2742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2743$as_echo "$ac_try_echo") >&5
7a197a62 2744 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2745 ac_status=$?
ec6a6fbe 2746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2747 (exit $ac_status); }
7a197a62
AK
2748{ (ac_try="$ac_compiler -V >&5"
2749case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2752esac
ec6a6fbe
AK
2753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2754$as_echo "$ac_try_echo") >&5
7a197a62 2755 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2756 ac_status=$?
ec6a6fbe 2757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2758 (exit $ac_status); }
2759
2760cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2761/* confdefs.h. */
2762_ACEOF
2763cat confdefs.h >>conftest.$ac_ext
2764cat >>conftest.$ac_ext <<_ACEOF
2765/* end confdefs.h. */
2766
2767int
2768main ()
2769{
2770
2771 ;
2772 return 0;
2773}
2774_ACEOF
2775ac_clean_files_save=$ac_clean_files
ec6a6fbe 2776ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2777# Try to create an executable without -o first, disregard a.out.
2778# It will help us diagnose broken compilers, and finding out an intuition
2779# of exeext.
ec6a6fbe
AK
2780{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2781$as_echo_n "checking for C compiler default output file name... " >&6; }
2782ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2783
2784# The possible output files:
2785ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2786
7a197a62
AK
2787ac_rmfiles=
2788for ac_file in $ac_files
2789do
2790 case $ac_file in
ec6a6fbe 2791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2792 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2793 esac
2794done
2795rm -f $ac_rmfiles
2796
2797if { (ac_try="$ac_link_default"
2798case "(($ac_try" in
2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800 *) ac_try_echo=$ac_try;;
2801esac
ec6a6fbe
AK
2802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2803$as_echo "$ac_try_echo") >&5
7a197a62 2804 (eval "$ac_link_default") 2>&5
ad6254c5 2805 ac_status=$?
ec6a6fbe 2806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2807 (exit $ac_status); }; then
7a197a62
AK
2808 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2809# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2810# in a Makefile. We should not override ac_cv_exeext if it was cached,
2811# so that the user can short-circuit this test for compilers unknown to
2812# Autoconf.
25fbec5b 2813for ac_file in $ac_files ''
ad6254c5
AK
2814do
2815 test -f "$ac_file" || continue
2816 case $ac_file in
ec6a6fbe 2817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2818 ;;
ad6254c5 2819 [ab].out )
8a2fc586
AK
2820 # We found the default executable, but exeext='' is most
2821 # certainly right.
2822 break;;
ad6254c5 2823 *.* )
7a197a62
AK
2824 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2825 then :; else
2826 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2827 fi
2828 # We set ac_cv_exeext here because the later test for it is not
2829 # safe: cross compilers may not add the suffix if given an `-o'
2830 # argument, so we may need to know it at that point already.
2831 # Even if this section looks crufty: it has the advantage of
2832 # actually working.
8a2fc586 2833 break;;
ad6254c5 2834 * )
8a2fc586 2835 break;;
ad6254c5
AK
2836 esac
2837done
7a197a62
AK
2838test "$ac_cv_exeext" = no && ac_cv_exeext=
2839
ad6254c5 2840else
25fbec5b
AK
2841 ac_file=''
2842fi
2843
ec6a6fbe
AK
2844{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2845$as_echo "$ac_file" >&6; }
25fbec5b 2846if test -z "$ac_file"; then
ec6a6fbe 2847 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2848sed 's/^/| /' conftest.$ac_ext >&5
2849
ec6a6fbe
AK
2850{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2852{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2853See \`config.log' for more details." >&5
ec6a6fbe 2854$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2855See \`config.log' for more details." >&2;}
ec6a6fbe 2856 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2857fi
2858
2859ac_exeext=$ac_cv_exeext
ad6254c5 2860
7a197a62 2861# Check that the compiler produces executables we can run. If not, either
ad6254c5 2862# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2863{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2864$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2865# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2866# If not cross compiling, check that we can run a simple program.
2867if test "$cross_compiling" != yes; then
2868 if { ac_try='./$ac_file'
7a197a62
AK
2869 { (case "(($ac_try" in
2870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871 *) ac_try_echo=$ac_try;;
2872esac
ec6a6fbe
AK
2873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2874$as_echo "$ac_try_echo") >&5
7a197a62 2875 (eval "$ac_try") 2>&5
ad6254c5 2876 ac_status=$?
ec6a6fbe 2877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2878 (exit $ac_status); }; }; then
2879 cross_compiling=no
795ca3e5 2880 else
ad6254c5
AK
2881 if test "$cross_compiling" = maybe; then
2882 cross_compiling=yes
2883 else
ec6a6fbe
AK
2884 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2885$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2886{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2887If you meant to cross compile, use \`--host'.
2888See \`config.log' for more details." >&5
ec6a6fbe 2889$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2890If you meant to cross compile, use \`--host'.
2891See \`config.log' for more details." >&2;}
ec6a6fbe 2892 { (exit 1); exit 1; }; }; }
ad6254c5 2893 fi
795ca3e5 2894 fi
80992638 2895fi
ec6a6fbe
AK
2896{ $as_echo "$as_me:$LINENO: result: yes" >&5
2897$as_echo "yes" >&6; }
ad6254c5 2898
ec6a6fbe 2899rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2900ac_clean_files=$ac_clean_files_save
7a197a62 2901# Check that the compiler produces executables we can run. If not, either
ad6254c5 2902# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2903{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2904$as_echo_n "checking whether we are cross compiling... " >&6; }
2905{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2906$as_echo "$cross_compiling" >&6; }
7a197a62 2907
ec6a6fbe
AK
2908{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2909$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2910if { (ac_try="$ac_link"
2911case "(($ac_try" in
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2914esac
ec6a6fbe
AK
2915eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2916$as_echo "$ac_try_echo") >&5
7a197a62 2917 (eval "$ac_link") 2>&5
ad6254c5 2918 ac_status=$?
ec6a6fbe 2919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2920 (exit $ac_status); }; then
2921 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2922# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2923# work properly (i.e., refer to `conftest.exe'), while it won't with
2924# `rm'.
2925for ac_file in conftest.exe conftest conftest.*; do
2926 test -f "$ac_file" || continue
2927 case $ac_file in
ec6a6fbe 2928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2929 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2930 break;;
ad6254c5
AK
2931 * ) break;;
2932 esac
2933done
80992638 2934else
ec6a6fbe
AK
2935 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2936$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2937{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2938See \`config.log' for more details." >&5
ec6a6fbe 2939$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2940See \`config.log' for more details." >&2;}
ec6a6fbe 2941 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2942fi
2943
2944rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2945{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2946$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2947
2948rm -f conftest.$ac_ext
2949EXEEXT=$ac_cv_exeext
2950ac_exeext=$EXEEXT
ec6a6fbe
AK
2951{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2952$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2953if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2954 $as_echo_n "(cached) " >&6
795ca3e5 2955else
ad6254c5 2956 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2957/* confdefs.h. */
2958_ACEOF
2959cat confdefs.h >>conftest.$ac_ext
2960cat >>conftest.$ac_ext <<_ACEOF
2961/* end confdefs.h. */
2962
2963int
2964main ()
2965{
2966
2967 ;
2968 return 0;
2969}
2970_ACEOF
2971rm -f conftest.o conftest.obj
7a197a62
AK
2972if { (ac_try="$ac_compile"
2973case "(($ac_try" in
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2976esac
ec6a6fbe
AK
2977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2978$as_echo "$ac_try_echo") >&5
7a197a62 2979 (eval "$ac_compile") 2>&5
ad6254c5 2980 ac_status=$?
ec6a6fbe 2981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2982 (exit $ac_status); }; then
7a197a62
AK
2983 for ac_file in conftest.o conftest.obj conftest.*; do
2984 test -f "$ac_file" || continue;
ad6254c5 2985 case $ac_file in
ec6a6fbe 2986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2987 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2988 break;;
2989 esac
2990done
2991else
ec6a6fbe 2992 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2993sed 's/^/| /' conftest.$ac_ext >&5
2994
ec6a6fbe
AK
2995{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2997{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2998See \`config.log' for more details." >&5
ec6a6fbe 2999$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 3000See \`config.log' for more details." >&2;}
ec6a6fbe 3001 { (exit 1); exit 1; }; }; }
ad6254c5
AK
3002fi
3003
3004rm -f conftest.$ac_cv_objext conftest.$ac_ext
3005fi
ec6a6fbe
AK
3006{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3007$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
3008OBJEXT=$ac_cv_objext
3009ac_objext=$OBJEXT
ec6a6fbe
AK
3010{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3011$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 3012if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 3013 $as_echo_n "(cached) " >&6
ad6254c5
AK
3014else
3015 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3016/* confdefs.h. */
3017_ACEOF
3018cat confdefs.h >>conftest.$ac_ext
3019cat >>conftest.$ac_ext <<_ACEOF
3020/* end confdefs.h. */
3021
3022int
3023main ()
3024{
3025#ifndef __GNUC__
3026 choke me
3027#endif
80992638 3028
ad6254c5
AK
3029 ;
3030 return 0;
3031}
3032_ACEOF
3033rm -f conftest.$ac_objext
7a197a62
AK
3034if { (ac_try="$ac_compile"
3035case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038esac
ec6a6fbe
AK
3039eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3040$as_echo "$ac_try_echo") >&5
7a197a62 3041 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3042 ac_status=$?
8a2fc586
AK
3043 grep -v '^ *+' conftest.er1 >conftest.err
3044 rm -f conftest.er1
3045 cat conftest.err >&5
ec6a6fbe 3046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3047 (exit $ac_status); } && {
3048 test -z "$ac_c_werror_flag" ||
3049 test ! -s conftest.err
3050 } && test -s conftest.$ac_objext; then
ad6254c5 3051 ac_compiler_gnu=yes
80992638 3052else
ec6a6fbe 3053 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3054sed 's/^/| /' conftest.$ac_ext >&5
3055
7a197a62 3056 ac_compiler_gnu=no
8106cdd5 3057fi
7a197a62
AK
3058
3059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 3060ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 3061
ad6254c5 3062fi
ec6a6fbe
AK
3063{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3064$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3065if test $ac_compiler_gnu = yes; then
3066 GCC=yes
3067else
3068 GCC=
3069fi
ad6254c5
AK
3070ac_test_CFLAGS=${CFLAGS+set}
3071ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
3072{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3073$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 3074if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 3075 $as_echo_n "(cached) " >&6
795ca3e5 3076else
7a197a62
AK
3077 ac_save_c_werror_flag=$ac_c_werror_flag
3078 ac_c_werror_flag=yes
3079 ac_cv_prog_cc_g=no
3080 CFLAGS="-g"
3081 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3082/* confdefs.h. */
3083_ACEOF
3084cat confdefs.h >>conftest.$ac_ext
3085cat >>conftest.$ac_ext <<_ACEOF
3086/* end confdefs.h. */
3087
3088int
3089main ()
3090{
3091
3092 ;
3093 return 0;
3094}
3095_ACEOF
3096rm -f conftest.$ac_objext
7a197a62
AK
3097if { (ac_try="$ac_compile"
3098case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101esac
ec6a6fbe
AK
3102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3103$as_echo "$ac_try_echo") >&5
7a197a62 3104 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3105 ac_status=$?
8a2fc586
AK
3106 grep -v '^ *+' conftest.er1 >conftest.err
3107 rm -f conftest.er1
3108 cat conftest.err >&5
ec6a6fbe 3109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3110 (exit $ac_status); } && {
3111 test -z "$ac_c_werror_flag" ||
3112 test ! -s conftest.err
3113 } && test -s conftest.$ac_objext; then
7a197a62
AK
3114 ac_cv_prog_cc_g=yes
3115else
ec6a6fbe 3116 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3117sed 's/^/| /' conftest.$ac_ext >&5
3118
3119 CFLAGS=""
3120 cat >conftest.$ac_ext <<_ACEOF
3121/* confdefs.h. */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
3125/* end confdefs.h. */
3126
3127int
3128main ()
3129{
3130
3131 ;
3132 return 0;
3133}
3134_ACEOF
3135rm -f conftest.$ac_objext
3136if { (ac_try="$ac_compile"
3137case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140esac
ec6a6fbe
AK
3141eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3142$as_echo "$ac_try_echo") >&5
7a197a62 3143 (eval "$ac_compile") 2>conftest.er1
8a2fc586 3144 ac_status=$?
7a197a62
AK
3145 grep -v '^ *+' conftest.er1 >conftest.err
3146 rm -f conftest.er1
3147 cat conftest.err >&5
ec6a6fbe 3148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3149 (exit $ac_status); } && {
3150 test -z "$ac_c_werror_flag" ||
3151 test ! -s conftest.err
3152 } && test -s conftest.$ac_objext; then
7a197a62
AK
3153 :
3154else
ec6a6fbe 3155 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3156sed 's/^/| /' conftest.$ac_ext >&5
3157
3158 ac_c_werror_flag=$ac_save_c_werror_flag
3159 CFLAGS="-g"
3160 cat >conftest.$ac_ext <<_ACEOF
3161/* confdefs.h. */
3162_ACEOF
3163cat confdefs.h >>conftest.$ac_ext
3164cat >>conftest.$ac_ext <<_ACEOF
3165/* end confdefs.h. */
3166
3167int
3168main ()
3169{
3170
3171 ;
3172 return 0;
3173}
3174_ACEOF
3175rm -f conftest.$ac_objext
3176if { (ac_try="$ac_compile"
3177case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3180esac
ec6a6fbe
AK
3181eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3182$as_echo "$ac_try_echo") >&5
7a197a62 3183 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3184 ac_status=$?
7a197a62
AK
3185 grep -v '^ *+' conftest.er1 >conftest.err
3186 rm -f conftest.er1
3187 cat conftest.err >&5
ec6a6fbe 3188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3189 (exit $ac_status); } && {
3190 test -z "$ac_c_werror_flag" ||
3191 test ! -s conftest.err
3192 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3193 ac_cv_prog_cc_g=yes
3194else
ec6a6fbe 3195 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3196sed 's/^/| /' conftest.$ac_ext >&5
80992638 3197
7a197a62
AK
3198
3199fi
3200
3201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202fi
3203
3204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3205fi
7a197a62
AK
3206
3207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3209fi
ec6a6fbe
AK
3210{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3211$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3212if test "$ac_test_CFLAGS" = set; then
ad6254c5 3213 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3214elif test $ac_cv_prog_cc_g = yes; then
3215 if test "$GCC" = yes; then
3216 CFLAGS="-g -O2"
3217 else
3218 CFLAGS="-g"
3219 fi
3220else
3221 if test "$GCC" = yes; then
3222 CFLAGS="-O2"
3223 else
3224 CFLAGS=
3225 fi
3226fi
ec6a6fbe
AK
3227{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3228$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3229if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3230 $as_echo_n "(cached) " >&6
ad6254c5 3231else
7a197a62 3232 ac_cv_prog_cc_c89=no
ad6254c5
AK
3233ac_save_CC=$CC
3234cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3235/* confdefs.h. */
3236_ACEOF
3237cat confdefs.h >>conftest.$ac_ext
3238cat >>conftest.$ac_ext <<_ACEOF
3239/* end confdefs.h. */
3240#include <stdarg.h>
3241#include <stdio.h>
3242#include <sys/types.h>
3243#include <sys/stat.h>
3244/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3245struct buf { int x; };
3246FILE * (*rcsopen) (struct buf *, struct stat *, int);
3247static char *e (p, i)
3248 char **p;
3249 int i;
3250{
3251 return p[i];
3252}
3253static char *f (char * (*g) (char **, int), char **p, ...)
3254{
3255 char *s;
3256 va_list v;
3257 va_start (v,p);
3258 s = g (p, va_arg (v,int));
3259 va_end (v);
3260 return s;
3261}
8a2fc586
AK
3262
3263/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3264 function prototypes and stuff, but not '\xHH' hex character constants.
3265 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3266 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3267 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3268 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3269 that's true only with -std. */
8a2fc586
AK
3270int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3271
7a197a62
AK
3272/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3273 inside strings and character constants. */
3274#define FOO(x) 'x'
3275int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3276
ad6254c5
AK
3277int test (int i, double x);
3278struct s1 {int (*f) (int a);};
3279struct s2 {int (*f) (double a);};
3280int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3281int argc;
3282char **argv;
3283int
3284main ()
3285{
3286return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3287 ;
3288 return 0;
3289}
3290_ACEOF
7a197a62
AK
3291for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3292 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3293do
3294 CC="$ac_save_CC $ac_arg"
3295 rm -f conftest.$ac_objext
7a197a62
AK
3296if { (ac_try="$ac_compile"
3297case "(($ac_try" in
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3300esac
ec6a6fbe
AK
3301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3302$as_echo "$ac_try_echo") >&5
7a197a62 3303 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3304 ac_status=$?
8a2fc586
AK
3305 grep -v '^ *+' conftest.er1 >conftest.err
3306 rm -f conftest.er1
3307 cat conftest.err >&5
ec6a6fbe 3308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3309 (exit $ac_status); } && {
3310 test -z "$ac_c_werror_flag" ||
3311 test ! -s conftest.err
3312 } && test -s conftest.$ac_objext; then
7a197a62 3313 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3314else
ec6a6fbe 3315 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3316sed 's/^/| /' conftest.$ac_ext >&5
3317
7a197a62 3318
ad6254c5 3319fi
7a197a62
AK
3320
3321rm -f core conftest.err conftest.$ac_objext
3322 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3323done
7a197a62 3324rm -f conftest.$ac_ext
ad6254c5
AK
3325CC=$ac_save_CC
3326
3327fi
7a197a62
AK
3328# AC_CACHE_VAL
3329case "x$ac_cv_prog_cc_c89" in
3330 x)
ec6a6fbe
AK
3331 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3332$as_echo "none needed" >&6; } ;;
7a197a62 3333 xno)
ec6a6fbe
AK
3334 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3335$as_echo "unsupported" >&6; } ;;
ad6254c5 3336 *)
7a197a62 3337 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3338 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3339$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3340esac
3341
ad6254c5 3342
ad6254c5
AK
3343ac_ext=c
3344ac_cpp='$CPP $CPPFLAGS'
3345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3347ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3348
d0191583
JM
3349
3350
3351ac_ext=c
3352ac_cpp='$CPP $CPPFLAGS'
3353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3356{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3357$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3358# On Suns, sometimes $CPP names a directory.
3359if test -n "$CPP" && test -d "$CPP"; then
3360 CPP=
3361fi
3362if test -z "$CPP"; then
3363 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3364 $as_echo_n "(cached) " >&6
ad6254c5 3365else
d0191583
JM
3366 # Double quotes because CPP needs to be expanded
3367 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3368 do
3369 ac_preproc_ok=false
3370for ac_c_preproc_warn_flag in '' yes
ad6254c5 3371do
d0191583
JM
3372 # Use a header file that comes with gcc, so configuring glibc
3373 # with a fresh cross-compiler works.
3374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3375 # <limits.h> exists even on freestanding compilers.
3376 # On the NeXT, cc -E runs the code through the compiler's parser,
3377 # not just through cpp. "Syntax error" is here to catch this case.
3378 cat >conftest.$ac_ext <<_ACEOF
3379/* confdefs.h. */
3380_ACEOF
3381cat confdefs.h >>conftest.$ac_ext
3382cat >>conftest.$ac_ext <<_ACEOF
3383/* end confdefs.h. */
3384#ifdef __STDC__
3385# include <limits.h>
3386#else
3387# include <assert.h>
3388#endif
3389 Syntax error
3390_ACEOF
3391if { (ac_try="$ac_cpp conftest.$ac_ext"
3392case "(($ac_try" in
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
ad6254c5 3395esac
ec6a6fbe
AK
3396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3397$as_echo "$ac_try_echo") >&5
d0191583
JM
3398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3399 ac_status=$?
3400 grep -v '^ *+' conftest.er1 >conftest.err
3401 rm -f conftest.er1
3402 cat conftest.err >&5
ec6a6fbe 3403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3404 (exit $ac_status); } >/dev/null && {
3405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3406 test ! -s conftest.err
3407 }; then
3408 :
3409else
ec6a6fbe 3410 $as_echo "$as_me: failed program was:" >&5
d0191583 3411sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3412
d0191583
JM
3413 # Broken: fails on valid input.
3414continue
795ca3e5 3415fi
795ca3e5 3416
d0191583 3417rm -f conftest.err conftest.$ac_ext
795ca3e5 3418
d0191583
JM
3419 # OK, works on sane cases. Now check whether nonexistent headers
3420 # can be detected and how.
3421 cat >conftest.$ac_ext <<_ACEOF
3422/* confdefs.h. */
3423_ACEOF
3424cat confdefs.h >>conftest.$ac_ext
3425cat >>conftest.$ac_ext <<_ACEOF
3426/* end confdefs.h. */
3427#include <ac_nonexistent.h>
3428_ACEOF
3429if { (ac_try="$ac_cpp conftest.$ac_ext"
3430case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433esac
ec6a6fbe
AK
3434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3435$as_echo "$ac_try_echo") >&5
d0191583
JM
3436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3437 ac_status=$?
3438 grep -v '^ *+' conftest.er1 >conftest.err
3439 rm -f conftest.er1
3440 cat conftest.err >&5
ec6a6fbe 3441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3442 (exit $ac_status); } >/dev/null && {
3443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3444 test ! -s conftest.err
3445 }; then
3446 # Broken: success on invalid input.
3447continue
3448else
ec6a6fbe 3449 $as_echo "$as_me: failed program was:" >&5
d0191583 3450sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3451
d0191583
JM
3452 # Passes both tests.
3453ac_preproc_ok=:
3454break
3455fi
795ca3e5 3456
d0191583
JM
3457rm -f conftest.err conftest.$ac_ext
3458
3459done
3460# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3461rm -f conftest.err conftest.$ac_ext
3462if $ac_preproc_ok; then
3463 break
795ca3e5
AK
3464fi
3465
d0191583
JM
3466 done
3467 ac_cv_prog_CPP=$CPP
3468
3469fi
3470 CPP=$ac_cv_prog_CPP
795ca3e5 3471else
d0191583
JM
3472 ac_cv_prog_CPP=$CPP
3473fi
ec6a6fbe
AK
3474{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3475$as_echo "$CPP" >&6; }
d0191583
JM
3476ac_preproc_ok=false
3477for ac_c_preproc_warn_flag in '' yes
3478do
3479 # Use a header file that comes with gcc, so configuring glibc
3480 # with a fresh cross-compiler works.
3481 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3482 # <limits.h> exists even on freestanding compilers.
3483 # On the NeXT, cc -E runs the code through the compiler's parser,
3484 # not just through cpp. "Syntax error" is here to catch this case.
3485 cat >conftest.$ac_ext <<_ACEOF
3486/* confdefs.h. */
ad6254c5 3487_ACEOF
d0191583
JM
3488cat confdefs.h >>conftest.$ac_ext
3489cat >>conftest.$ac_ext <<_ACEOF
3490/* end confdefs.h. */
3491#ifdef __STDC__
3492# include <limits.h>
3493#else
3494# include <assert.h>
3495#endif
3496 Syntax error
3497_ACEOF
3498if { (ac_try="$ac_cpp conftest.$ac_ext"
3499case "(($ac_try" in
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
7a197a62 3502esac
ec6a6fbe
AK
3503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3504$as_echo "$ac_try_echo") >&5
d0191583
JM
3505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3506 ac_status=$?
3507 grep -v '^ *+' conftest.er1 >conftest.err
3508 rm -f conftest.er1
3509 cat conftest.err >&5
ec6a6fbe 3510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3511 (exit $ac_status); } >/dev/null && {
3512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3513 test ! -s conftest.err
3514 }; then
3515 :
795ca3e5 3516else
ec6a6fbe 3517 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3518sed 's/^/| /' conftest.$ac_ext >&5
3519
3520 # Broken: fails on valid input.
3521continue
795ca3e5
AK
3522fi
3523
d0191583
JM
3524rm -f conftest.err conftest.$ac_ext
3525
3526 # OK, works on sane cases. Now check whether nonexistent headers
3527 # can be detected and how.
3528 cat >conftest.$ac_ext <<_ACEOF
3529/* confdefs.h. */
3530_ACEOF
3531cat confdefs.h >>conftest.$ac_ext
3532cat >>conftest.$ac_ext <<_ACEOF
3533/* end confdefs.h. */
3534#include <ac_nonexistent.h>
3535_ACEOF
3536if { (ac_try="$ac_cpp conftest.$ac_ext"
3537case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3540esac
ec6a6fbe
AK
3541eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3542$as_echo "$ac_try_echo") >&5
d0191583
JM
3543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3544 ac_status=$?
3545 grep -v '^ *+' conftest.er1 >conftest.err
3546 rm -f conftest.er1
3547 cat conftest.err >&5
ec6a6fbe 3548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3549 (exit $ac_status); } >/dev/null && {
3550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3551 test ! -s conftest.err
3552 }; then
3553 # Broken: success on invalid input.
3554continue
795ca3e5 3555else
ec6a6fbe 3556 $as_echo "$as_me: failed program was:" >&5
d0191583 3557sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3558
d0191583
JM
3559 # Passes both tests.
3560ac_preproc_ok=:
3561break
795ca3e5 3562fi
d0191583
JM
3563
3564rm -f conftest.err conftest.$ac_ext
3565
3566done
3567# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3568rm -f conftest.err conftest.$ac_ext
3569if $ac_preproc_ok; then
3570 :
8106cdd5 3571else
ec6a6fbe
AK
3572 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3574{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3575See \`config.log' for more details." >&5
ec6a6fbe 3576$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3577See \`config.log' for more details." >&2;}
ec6a6fbe 3578 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3579fi
3580
d0191583
JM
3581ac_ext=c
3582ac_cpp='$CPP $CPPFLAGS'
3583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586
7a197a62 3587
ec6a6fbe
AK
3588{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3589$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3590if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3591 $as_echo_n "(cached) " >&6
ad6254c5 3592else
ec6a6fbe 3593 if test -z "$GREP"; then
d0191583 3594 ac_path_GREP_found=false
ec6a6fbe
AK
3595 # Loop through the user's path and test for each of PROGNAME-LIST
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3597for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3598do
3599 IFS=$as_save_IFS
3600 test -z "$as_dir" && as_dir=.
d0191583 3601 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3604 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3605# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3606 # Check for GNU $ac_path_GREP
3607case `"$ac_path_GREP" --version 2>&1` in
3608*GNU*)
3609 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3610*)
3611 ac_count=0
ec6a6fbe 3612 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3613 while :
3614 do
3615 cat "conftest.in" "conftest.in" >"conftest.tmp"
3616 mv "conftest.tmp" "conftest.in"
3617 cp "conftest.in" "conftest.nl"
ec6a6fbe 3618 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3619 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3620 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3621 ac_count=`expr $ac_count + 1`
3622 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3623 # Best one so far, save it but keep looking for a better one
3624 ac_cv_path_GREP="$ac_path_GREP"
3625 ac_path_GREP_max=$ac_count
3626 fi
3627 # 10*(2^10) chars as input seems more than enough
3628 test $ac_count -gt 10 && break
3629 done
3630 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3631esac
3632
ec6a6fbe
AK
3633 $ac_path_GREP_found && break 3
3634 done
d0191583 3635 done
ad6254c5 3636done
7a197a62 3637IFS=$as_save_IFS
ec6a6fbe
AK
3638 if test -z "$ac_cv_path_GREP"; then
3639 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3640$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3641 { (exit 1); exit 1; }; }
ec6a6fbe 3642 fi
80992638 3643else
d0191583 3644 ac_cv_path_GREP=$GREP
8106cdd5 3645fi
8106cdd5 3646
80992638 3647fi
ec6a6fbe
AK
3648{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3649$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3650 GREP="$ac_cv_path_GREP"
795ca3e5 3651
d0191583 3652
ec6a6fbe
AK
3653{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3654$as_echo_n "checking for egrep... " >&6; }
d0191583 3655if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3656 $as_echo_n "(cached) " >&6
8a2fc586 3657else
d0191583
JM
3658 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3659 then ac_cv_path_EGREP="$GREP -E"
3660 else
ec6a6fbe 3661 if test -z "$EGREP"; then
d0191583 3662 ac_path_EGREP_found=false
ec6a6fbe
AK
3663 # Loop through the user's path and test for each of PROGNAME-LIST
3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3665for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3666do
3667 IFS=$as_save_IFS
3668 test -z "$as_dir" && as_dir=.
d0191583 3669 for ac_prog in egrep; do
ec6a6fbe
AK
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3672 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3673# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3674 # Check for GNU $ac_path_EGREP
3675case `"$ac_path_EGREP" --version 2>&1` in
3676*GNU*)
3677 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3678*)
3679 ac_count=0
ec6a6fbe 3680 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3681 while :
3682 do
3683 cat "conftest.in" "conftest.in" >"conftest.tmp"
3684 mv "conftest.tmp" "conftest.in"
3685 cp "conftest.in" "conftest.nl"
ec6a6fbe 3686 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3687 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3688 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3689 ac_count=`expr $ac_count + 1`
3690 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3691 # Best one so far, save it but keep looking for a better one
3692 ac_cv_path_EGREP="$ac_path_EGREP"
3693 ac_path_EGREP_max=$ac_count
3694 fi
3695 # 10*(2^10) chars as input seems more than enough
3696 test $ac_count -gt 10 && break
3697 done
3698 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3699esac
8a2fc586 3700
ec6a6fbe
AK
3701 $ac_path_EGREP_found && break 3
3702 done
d0191583 3703 done
8a2fc586 3704done
7a197a62 3705IFS=$as_save_IFS
ec6a6fbe
AK
3706 if test -z "$ac_cv_path_EGREP"; then
3707 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3708$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3709 { (exit 1); exit 1; }; }
ec6a6fbe 3710 fi
d0191583
JM
3711else
3712 ac_cv_path_EGREP=$EGREP
3713fi
ad6254c5 3714
d0191583
JM
3715 fi
3716fi
ec6a6fbe
AK
3717{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3718$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3719 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3720
3721
d0191583 3722if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3723 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3724$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3725if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3726 $as_echo_n "(cached) " >&6
8106cdd5 3727else
d0191583 3728 ac_pattern="Autoconf.*'x'"
ad6254c5 3729 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3730/* confdefs.h. */
3731_ACEOF
3732cat confdefs.h >>conftest.$ac_ext
3733cat >>conftest.$ac_ext <<_ACEOF
3734/* end confdefs.h. */
d0191583
JM
3735#include <sgtty.h>
3736Autoconf TIOCGETP
ad6254c5 3737_ACEOF
d0191583
JM
3738if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3739 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3740 ac_cv_prog_gcc_traditional=yes
8106cdd5 3741else
d0191583 3742 ac_cv_prog_gcc_traditional=no
80992638 3743fi
d0191583 3744rm -f conftest*
ad6254c5 3745
8106cdd5 3746
d0191583
JM
3747 if test $ac_cv_prog_gcc_traditional = no; then
3748 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3749/* confdefs.h. */
3750_ACEOF
3751cat confdefs.h >>conftest.$ac_ext
3752cat >>conftest.$ac_ext <<_ACEOF
3753/* end confdefs.h. */
d0191583
JM
3754#include <termio.h>
3755Autoconf TCGETA
ad6254c5 3756_ACEOF
d0191583
JM
3757if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3758 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3759 ac_cv_prog_gcc_traditional=yes
7a197a62 3760fi
d0191583 3761rm -f conftest*
795ca3e5 3762
d0191583 3763 fi
795ca3e5 3764fi
ec6a6fbe
AK
3765{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3766$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3767 if test $ac_cv_prog_gcc_traditional = yes; then
3768 CC="$CC -traditional"
3769 fi
795ca3e5
AK
3770fi
3771
d0191583
JM
3772# Find a good install program. We prefer a C program (faster),
3773# so one script is as good as another. But avoid the broken or
3774# incompatible versions:
3775# SysV /etc/install, /usr/sbin/install
3776# SunOS /usr/etc/install
3777# IRIX /sbin/install
3778# AIX /bin/install
3779# AmigaOS /C/install, which installs bootblocks on floppy discs
3780# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3781# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3782# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3783# OS/2's system install, which has a completely different semantic
3784# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3785# Reject install programs that cannot install multiple files.
3786{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3787$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3788if test -z "$INSTALL"; then
3789if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3790 $as_echo_n "(cached) " >&6
ad6254c5 3791else
d0191583
JM
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793for as_dir in $PATH
3794do
3795 IFS=$as_save_IFS
3796 test -z "$as_dir" && as_dir=.
3797 # Account for people who put trailing slashes in PATH elements.
3798case $as_dir/ in
3799 ./ | .// | /cC/* | \
3800 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3801 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3802 /usr/ucb/* ) ;;
3803 *)
3804 # OSF1 and SCO ODT 3.0 have their own names for install.
3805 # Don't use installbsd from OSF since it installs stuff as root
3806 # by default.
3807 for ac_prog in ginstall scoinst install; do
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3810 if test $ac_prog = install &&
3811 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3812 # AIX install. It has an incompatible calling convention.
3813 :
3814 elif test $ac_prog = install &&
3815 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3816 # program-specific install script used by HP pwplus--don't use.
3817 :
3818 else
ec6a6fbe
AK
3819 rm -rf conftest.one conftest.two conftest.dir
3820 echo one > conftest.one
3821 echo two > conftest.two
3822 mkdir conftest.dir
3823 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3824 test -s conftest.one && test -s conftest.two &&
3825 test -s conftest.dir/conftest.one &&
3826 test -s conftest.dir/conftest.two
3827 then
3828 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3829 break 3
3830 fi
d0191583
JM
3831 fi
3832 fi
3833 done
3834 done
3835 ;;
3836esac
ec6a6fbe 3837
d0191583
JM
3838done
3839IFS=$as_save_IFS
80992638 3840
ec6a6fbe 3841rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3842
3843fi
3844 if test "${ac_cv_path_install+set}" = set; then
3845 INSTALL=$ac_cv_path_install
7a197a62 3846 else
d0191583
JM
3847 # As a last resort, use the slow shell script. Don't cache a
3848 # value for INSTALL within a source directory, because that will
3849 # break other packages using the cache if that directory is
3850 # removed, or if the value is a relative name.
3851 INSTALL=$ac_install_sh
7a197a62 3852 fi
d0191583 3853fi
ec6a6fbe
AK
3854{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3855$as_echo "$INSTALL" >&6; }
ad6254c5 3856
d0191583
JM
3857# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3858# It thinks the first close brace ends the variable substitution.
3859test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3860
d0191583 3861test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3862
d0191583
JM
3863test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3864
ec6a6fbe
AK
3865{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3866$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3867LN_S=$as_ln_s
3868if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3869 { $as_echo "$as_me:$LINENO: result: yes" >&5
3870$as_echo "yes" >&6; }
d0191583 3871else
ec6a6fbe
AK
3872 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3873$as_echo "no, using $LN_S" >&6; }
795ca3e5 3874fi
d0191583 3875
ec6a6fbe
AK
3876{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3877$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3878set x ${MAKE-make}
3879ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3880if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3881 $as_echo_n "(cached) " >&6
7a197a62 3882else
d0191583
JM
3883 cat >conftest.make <<\_ACEOF
3884SHELL = /bin/sh
3885all:
3886 @echo '@@@%%%=$(MAKE)=@@@%%%'
3887_ACEOF
3888# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3889case `${MAKE-make} -f conftest.make 2>/dev/null` in
3890 *@@@%%%=?*=@@@%%%*)
3891 eval ac_cv_prog_make_${ac_make}_set=yes;;
3892 *)
3893 eval ac_cv_prog_make_${ac_make}_set=no;;
3894esac
3895rm -f conftest.make
ad6254c5 3896fi
d0191583 3897if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3898 { $as_echo "$as_me:$LINENO: result: yes" >&5
3899$as_echo "yes" >&6; }
d0191583
JM
3900 SET_MAKE=
3901else
ec6a6fbe
AK
3902 { $as_echo "$as_me:$LINENO: result: no" >&5
3903$as_echo "no" >&6; }
d0191583 3904 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3905fi
8106cdd5 3906
ec6a6fbe
AK
3907{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3908$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3909if test -z "$MKDIR_P"; then
3910 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3911 $as_echo_n "(cached) " >&6
5556819a
AK
3912else
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3915do
3916 IFS=$as_save_IFS
3917 test -z "$as_dir" && as_dir=.
3918 for ac_prog in mkdir gmkdir; do
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3921 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3922 'mkdir (GNU coreutils) '* | \
3923 'mkdir (coreutils) '* | \
3924 'mkdir (fileutils) '4.1*)
3925 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3926 break 3;;
3927 esac
3928 done
3929 done
3930done
3931IFS=$as_save_IFS
3932
3933fi
3934
3935 if test "${ac_cv_path_mkdir+set}" = set; then
3936 MKDIR_P="$ac_cv_path_mkdir -p"
3937 else
3938 # As a last resort, use the slow shell script. Don't cache a
3939 # value for MKDIR_P within a source directory, because that will
3940 # break other packages using the cache if that directory is
3941 # removed, or if the value is a relative name.
3942 test -d ./--version && rmdir ./--version
3943 MKDIR_P="$ac_install_sh -d"
3944 fi
3945fi
ec6a6fbe
AK
3946{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3947$as_echo "$MKDIR_P" >&6; }
5556819a 3948
d0191583
JM
3949if test -n "$ac_tool_prefix"; then
3950 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3951set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3952{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3953$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3954if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3955 $as_echo_n "(cached) " >&6
d0191583
JM
3956else
3957 if test -n "$RANLIB"; then
3958 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3959else
3960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961for as_dir in $PATH
3962do
3963 IFS=$as_save_IFS
3964 test -z "$as_dir" && as_dir=.
3965 for ac_exec_ext in '' $ac_executable_extensions; do
3966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3967 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3968 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3969 break 2
3970 fi
3971done
3972done
3973IFS=$as_save_IFS
8106cdd5 3974
795ca3e5 3975fi
d0191583
JM
3976fi
3977RANLIB=$ac_cv_prog_RANLIB
3978if test -n "$RANLIB"; then
ec6a6fbe
AK
3979 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3980$as_echo "$RANLIB" >&6; }
d0191583 3981else
ec6a6fbe
AK
3982 { $as_echo "$as_me:$LINENO: result: no" >&5
3983$as_echo "no" >&6; }
d0191583
JM
3984fi
3985
8106cdd5 3986
ad6254c5 3987fi
d0191583
JM
3988if test -z "$ac_cv_prog_RANLIB"; then
3989 ac_ct_RANLIB=$RANLIB
3990 # Extract the first word of "ranlib", so it can be a program name with args.
3991set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3992{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3993$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3994if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 3995 $as_echo_n "(cached) " >&6
ad6254c5 3996else
d0191583
JM
3997 if test -n "$ac_ct_RANLIB"; then
3998 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3999else
4000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001for as_dir in $PATH
8106cdd5 4002do
d0191583
JM
4003 IFS=$as_save_IFS
4004 test -z "$as_dir" && as_dir=.
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4007 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 4008 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4009 break 2
4010 fi
4011done
4012done
4013IFS=$as_save_IFS
4014
4015fi
4016fi
4017ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4018if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
4019 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4020$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 4021else
ec6a6fbe
AK
4022 { $as_echo "$as_me:$LINENO: result: no" >&5
4023$as_echo "no" >&6; }
d0191583 4024fi
ad6254c5 4025
d0191583
JM
4026 if test "x$ac_ct_RANLIB" = x; then
4027 RANLIB=":"
4028 else
4029 case $cross_compiling:$ac_tool_warned in
4030yes:)
ec6a6fbe
AK
4031{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4032$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
4033ac_tool_warned=yes ;;
4034esac
4035 RANLIB=$ac_ct_RANLIB
4036 fi
4037else
4038 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 4039fi
7a197a62 4040
d0191583
JM
4041# Extract the first word of "cflow", so it can be a program name with args.
4042set dummy cflow; ac_word=$2
ec6a6fbe
AK
4043{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4044$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4045if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 4046 $as_echo_n "(cached) " >&6
d0191583
JM
4047else
4048 case $CFLOW_CMD in
4049 [\\/]* | ?:[\\/]*)
4050 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4051 ;;
4052 *)
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054for as_dir in $PATH
4055do
4056 IFS=$as_save_IFS
4057 test -z "$as_dir" && as_dir=.
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4060 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4061 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4062 break 2
4063 fi
4064done
4065done
4066IFS=$as_save_IFS
ad6254c5 4067
d0191583 4068 ;;
7a197a62 4069esac
d0191583
JM
4070fi
4071CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4072if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
4073 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4074$as_echo "$CFLOW_CMD" >&6; }
80992638 4075else
ec6a6fbe
AK
4076 { $as_echo "$as_me:$LINENO: result: no" >&5
4077$as_echo "no" >&6; }
795ca3e5 4078fi
7a197a62 4079
ad6254c5 4080
d0191583
JM
4081# Extract the first word of "cscope", so it can be a program name with args.
4082set dummy cscope; ac_word=$2
ec6a6fbe
AK
4083{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4084$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4085if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 4086 $as_echo_n "(cached) " >&6
d0191583
JM
4087else
4088 case $CSCOPE_CMD in
4089 [\\/]* | ?:[\\/]*)
4090 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4091 ;;
4092 *)
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094for as_dir in $PATH
4095do
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4100 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4101 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4102 break 2
4103 fi
795ca3e5 4104done
d0191583
JM
4105done
4106IFS=$as_save_IFS
795ca3e5 4107
d0191583
JM
4108 ;;
4109esac
ad6254c5 4110fi
d0191583
JM
4111CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4112if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
4113 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4114$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 4115else
ec6a6fbe
AK
4116 { $as_echo "$as_me:$LINENO: result: no" >&5
4117$as_echo "no" >&6; }
795ca3e5 4118fi
ad6254c5 4119
7a197a62 4120
ad6254c5 4121
d0191583
JM
4122################################################################################
4123
4124
4125
4126
4127
4128ac_header_dirent=no
4129for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
4130 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4131{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4132$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 4133if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4134 $as_echo_n "(cached) " >&6
d0191583 4135else
ad6254c5 4136 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4137/* confdefs.h. */
4138_ACEOF
4139cat confdefs.h >>conftest.$ac_ext
4140cat >>conftest.$ac_ext <<_ACEOF
4141/* end confdefs.h. */
d0191583
JM
4142#include <sys/types.h>
4143#include <$ac_hdr>
4144
4145int
4146main ()
4147{
4148if ((DIR *) 0)
4149return 0;
4150 ;
4151 return 0;
4152}
ad6254c5 4153_ACEOF
d0191583
JM
4154rm -f conftest.$ac_objext
4155if { (ac_try="$ac_compile"
7a197a62
AK
4156case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4159esac
ec6a6fbe
AK
4160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4161$as_echo "$ac_try_echo") >&5
d0191583 4162 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4163 ac_status=$?
4164 grep -v '^ *+' conftest.er1 >conftest.err
4165 rm -f conftest.er1
4166 cat conftest.err >&5
ec6a6fbe 4167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4168 (exit $ac_status); } && {
4169 test -z "$ac_c_werror_flag" ||
25fbec5b 4170 test ! -s conftest.err
d0191583
JM
4171 } && test -s conftest.$ac_objext; then
4172 eval "$as_ac_Header=yes"
ad6254c5 4173else
ec6a6fbe 4174 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4175sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4176
d0191583 4177 eval "$as_ac_Header=no"
795ca3e5 4178fi
7a197a62 4179
d0191583 4180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4181fi
ec6a6fbe
AK
4182ac_res=`eval 'as_val=${'$as_ac_Header'}
4183 $as_echo "$as_val"'`
4184 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4185$as_echo "$ac_res" >&6; }
4186as_val=`eval 'as_val=${'$as_ac_Header'}
4187 $as_echo "$as_val"'`
4188 if test "x$as_val" = x""yes; then
d0191583 4189 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4190#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4191_ACEOF
795ca3e5 4192
d0191583
JM
4193ac_header_dirent=$ac_hdr; break
4194fi
ad6254c5 4195
d0191583
JM
4196done
4197# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4198if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4199 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4200$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4201if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4202 $as_echo_n "(cached) " >&6
ad6254c5 4203else
d0191583
JM
4204 ac_func_search_save_LIBS=$LIBS
4205cat >conftest.$ac_ext <<_ACEOF
4206/* confdefs.h. */
4207_ACEOF
4208cat confdefs.h >>conftest.$ac_ext
4209cat >>conftest.$ac_ext <<_ACEOF
4210/* end confdefs.h. */
ad6254c5 4211
d0191583
JM
4212/* Override any GCC internal prototype to avoid an error.
4213 Use char because int might match the return type of a GCC
4214 builtin and then its argument prototype would still apply. */
4215#ifdef __cplusplus
4216extern "C"
4217#endif
4218char opendir ();
4219int
4220main ()
4221{
4222return opendir ();
4223 ;
4224 return 0;
4225}
4226_ACEOF
4227for ac_lib in '' dir; do
4228 if test -z "$ac_lib"; then
4229 ac_res="none required"
4230 else
4231 ac_res=-l$ac_lib
4232 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4233 fi
4234 rm -f conftest.$ac_objext conftest$ac_exeext
4235if { (ac_try="$ac_link"
4236case "(($ac_try" in
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4239esac
ec6a6fbe
AK
4240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4241$as_echo "$ac_try_echo") >&5
d0191583
JM
4242 (eval "$ac_link") 2>conftest.er1
4243 ac_status=$?
4244 grep -v '^ *+' conftest.er1 >conftest.err
4245 rm -f conftest.er1
4246 cat conftest.err >&5
ec6a6fbe 4247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4248 (exit $ac_status); } && {
4249 test -z "$ac_c_werror_flag" ||
4250 test ! -s conftest.err
ec6a6fbe
AK
4251 } && test -s conftest$ac_exeext && {
4252 test "$cross_compiling" = yes ||
4253 $as_test_x conftest$ac_exeext
4254 }; then
d0191583
JM
4255 ac_cv_search_opendir=$ac_res
4256else
ec6a6fbe 4257 $as_echo "$as_me: failed program was:" >&5
d0191583 4258sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4259
ad6254c5 4260
795ca3e5 4261fi
ad6254c5 4262
ec6a6fbe 4263rm -rf conftest.dSYM
d0191583
JM
4264rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4265 conftest$ac_exeext
4266 if test "${ac_cv_search_opendir+set}" = set; then
4267 break
7a197a62 4268fi
d0191583
JM
4269done
4270if test "${ac_cv_search_opendir+set}" = set; then
4271 :
7a197a62 4272else
d0191583 4273 ac_cv_search_opendir=no
7a197a62 4274fi
d0191583
JM
4275rm conftest.$ac_ext
4276LIBS=$ac_func_search_save_LIBS
7a197a62 4277fi
ec6a6fbe
AK
4278{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4279$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4280ac_res=$ac_cv_search_opendir
4281if test "$ac_res" != no; then
4282 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4283
d0191583 4284fi
7a197a62 4285
7a197a62 4286else
ec6a6fbe
AK
4287 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4288$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4289if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4290 $as_echo_n "(cached) " >&6
7a197a62 4291else
d0191583
JM
4292 ac_func_search_save_LIBS=$LIBS
4293cat >conftest.$ac_ext <<_ACEOF
4294/* confdefs.h. */
4295_ACEOF
4296cat confdefs.h >>conftest.$ac_ext
4297cat >>conftest.$ac_ext <<_ACEOF
4298/* end confdefs.h. */
7a197a62 4299
d0191583
JM
4300/* Override any GCC internal prototype to avoid an error.
4301 Use char because int might match the return type of a GCC
4302 builtin and then its argument prototype would still apply. */
4303#ifdef __cplusplus
4304extern "C"
4305#endif
4306char opendir ();
4307int
4308main ()
4309{
4310return opendir ();
4311 ;
4312 return 0;
4313}
4314_ACEOF
4315for ac_lib in '' x; do
4316 if test -z "$ac_lib"; then
4317 ac_res="none required"
4318 else
4319 ac_res=-l$ac_lib
4320 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4321 fi
4322 rm -f conftest.$ac_objext conftest$ac_exeext
4323if { (ac_try="$ac_link"
4324case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4327esac
ec6a6fbe
AK
4328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4329$as_echo "$ac_try_echo") >&5
d0191583
JM
4330 (eval "$ac_link") 2>conftest.er1
4331 ac_status=$?
4332 grep -v '^ *+' conftest.er1 >conftest.err
4333 rm -f conftest.er1
4334 cat conftest.err >&5
ec6a6fbe 4335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4336 (exit $ac_status); } && {
4337 test -z "$ac_c_werror_flag" ||
4338 test ! -s conftest.err
ec6a6fbe
AK
4339 } && test -s conftest$ac_exeext && {
4340 test "$cross_compiling" = yes ||
4341 $as_test_x conftest$ac_exeext
4342 }; then
d0191583
JM
4343 ac_cv_search_opendir=$ac_res
4344else
ec6a6fbe 4345 $as_echo "$as_me: failed program was:" >&5
d0191583 4346sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4347
4348
4349fi
4350
ec6a6fbe 4351rm -rf conftest.dSYM
d0191583
JM
4352rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4353 conftest$ac_exeext
4354 if test "${ac_cv_search_opendir+set}" = set; then
4355 break
7a197a62 4356fi
d0191583
JM
4357done
4358if test "${ac_cv_search_opendir+set}" = set; then
4359 :
7a197a62 4360else
d0191583 4361 ac_cv_search_opendir=no
7a197a62 4362fi
d0191583
JM
4363rm conftest.$ac_ext
4364LIBS=$ac_func_search_save_LIBS
4365fi
ec6a6fbe
AK
4366{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4367$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4368ac_res=$ac_cv_search_opendir
4369if test "$ac_res" != no; then
4370 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4371
7a197a62 4372fi
7a197a62 4373
d0191583 4374fi
7a197a62 4375
ec6a6fbe
AK
4376{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4377$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4378if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4379 $as_echo_n "(cached) " >&6
7a197a62
AK
4380else
4381 cat >conftest.$ac_ext <<_ACEOF
4382/* confdefs.h. */
4383_ACEOF
4384cat confdefs.h >>conftest.$ac_ext
4385cat >>conftest.$ac_ext <<_ACEOF
4386/* end confdefs.h. */
4387#include <stdlib.h>
4388#include <stdarg.h>
4389#include <string.h>
4390#include <float.h>
4391
4392int
4393main ()
4394{
4395
4396 ;
4397 return 0;
4398}
4399_ACEOF
4400rm -f conftest.$ac_objext
4401if { (ac_try="$ac_compile"
4402case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4405esac
ec6a6fbe
AK
4406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4407$as_echo "$ac_try_echo") >&5
7a197a62
AK
4408 (eval "$ac_compile") 2>conftest.er1
4409 ac_status=$?
4410 grep -v '^ *+' conftest.er1 >conftest.err
4411 rm -f conftest.er1
4412 cat conftest.err >&5
ec6a6fbe 4413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4414 (exit $ac_status); } && {
4415 test -z "$ac_c_werror_flag" ||
4416 test ! -s conftest.err
4417 } && test -s conftest.$ac_objext; then
7a197a62
AK
4418 ac_cv_header_stdc=yes
4419else
ec6a6fbe 4420 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4421sed 's/^/| /' conftest.$ac_ext >&5
4422
4423 ac_cv_header_stdc=no
4424fi
4425
4426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4427
4428if test $ac_cv_header_stdc = yes; then
4429 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4430 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4431/* confdefs.h. */
4432_ACEOF
4433cat confdefs.h >>conftest.$ac_ext
4434cat >>conftest.$ac_ext <<_ACEOF
4435/* end confdefs.h. */
4436#include <string.h>
8106cdd5 4437
ad6254c5
AK
4438_ACEOF
4439if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4440 $EGREP "memchr" >/dev/null 2>&1; then
4441 :
4442else
4443 ac_cv_header_stdc=no
80992638 4444fi
ad6254c5 4445rm -f conftest*
795ca3e5
AK
4446
4447fi
4448
ad6254c5
AK
4449if test $ac_cv_header_stdc = yes; then
4450 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4451 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4452/* confdefs.h. */
4453_ACEOF
4454cat confdefs.h >>conftest.$ac_ext
4455cat >>conftest.$ac_ext <<_ACEOF
4456/* end confdefs.h. */
80992638 4457#include <stdlib.h>
ad6254c5
AK
4458
4459_ACEOF
80992638 4460if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4461 $EGREP "free" >/dev/null 2>&1; then
4462 :
795ca3e5 4463else
ad6254c5 4464 ac_cv_header_stdc=no
795ca3e5 4465fi
80992638 4466rm -f conftest*
8106cdd5 4467
795ca3e5
AK
4468fi
4469
ad6254c5
AK
4470if test $ac_cv_header_stdc = yes; then
4471 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4472 if test "$cross_compiling" = yes; then
4473 :
795ca3e5 4474else
ad6254c5 4475 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4476/* confdefs.h. */
4477_ACEOF
4478cat confdefs.h >>conftest.$ac_ext
4479cat >>conftest.$ac_ext <<_ACEOF
4480/* end confdefs.h. */
4481#include <ctype.h>
7a197a62 4482#include <stdlib.h>
ad6254c5
AK
4483#if ((' ' & 0x0FF) == 0x020)
4484# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4485# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4486#else
4487# define ISLOWER(c) \
8a2fc586
AK
4488 (('a' <= (c) && (c) <= 'i') \
4489 || ('j' <= (c) && (c) <= 'r') \
4490 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4491# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4492#endif
ad6254c5
AK
4493
4494#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4495int
4496main ()
4497{
4498 int i;
4499 for (i = 0; i < 256; i++)
4500 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4501 || toupper (i) != TOUPPER (i))
7a197a62
AK
4502 return 2;
4503 return 0;
ad6254c5
AK
4504}
4505_ACEOF
4506rm -f conftest$ac_exeext
7a197a62
AK
4507if { (ac_try="$ac_link"
4508case "(($ac_try" in
4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4511esac
ec6a6fbe
AK
4512eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4513$as_echo "$ac_try_echo") >&5
7a197a62 4514 (eval "$ac_link") 2>&5
ad6254c5 4515 ac_status=$?
ec6a6fbe 4516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4518 { (case "(($ac_try" in
4519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4520 *) ac_try_echo=$ac_try;;
4521esac
ec6a6fbe
AK
4522eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4523$as_echo "$ac_try_echo") >&5
7a197a62 4524 (eval "$ac_try") 2>&5
ad6254c5 4525 ac_status=$?
ec6a6fbe 4526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4527 (exit $ac_status); }; }; then
4528 :
795ca3e5 4529else
ec6a6fbe
AK
4530 $as_echo "$as_me: program exited with status $ac_status" >&5
4531$as_echo "$as_me: failed program was:" >&5
ad6254c5 4532sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4533
ad6254c5
AK
4534( exit $ac_status )
4535ac_cv_header_stdc=no
80992638 4536fi
ec6a6fbe 4537rm -rf conftest.dSYM
7a197a62 4538rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4539fi
7a197a62
AK
4540
4541
ad6254c5
AK
4542fi
4543fi
ec6a6fbe
AK
4544{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4545$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4546if test $ac_cv_header_stdc = yes; then
4547
4548cat >>confdefs.h <<\_ACEOF
4549#define STDC_HEADERS 1
4550_ACEOF
795ca3e5
AK
4551
4552fi
4553
d911ec67 4554# On IRIX 5.3, sys/types and inttypes.h are conflicting.
ad6254c5 4555
ad6254c5 4556
7a197a62 4557
8106cdd5 4558
795ca3e5 4559
795ca3e5 4560
d911ec67
AK
4561
4562
4563
4564for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4565 inttypes.h stdint.h unistd.h
4566do
4567as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4568{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4569$as_echo_n "checking for $ac_header... " >&6; }
4570if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4571 $as_echo_n "(cached) " >&6
795ca3e5 4572else
ad6254c5 4573 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4574/* confdefs.h. */
4575_ACEOF
4576cat confdefs.h >>conftest.$ac_ext
4577cat >>conftest.$ac_ext <<_ACEOF
4578/* end confdefs.h. */
d911ec67 4579$ac_includes_default
ad6254c5 4580
d911ec67 4581#include <$ac_header>
ad6254c5
AK
4582_ACEOF
4583rm -f conftest.$ac_objext
7a197a62
AK
4584if { (ac_try="$ac_compile"
4585case "(($ac_try" in
4586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587 *) ac_try_echo=$ac_try;;
4588esac
ec6a6fbe
AK
4589eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4590$as_echo "$ac_try_echo") >&5
7a197a62 4591 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4592 ac_status=$?
8a2fc586
AK
4593 grep -v '^ *+' conftest.er1 >conftest.err
4594 rm -f conftest.er1
4595 cat conftest.err >&5
ec6a6fbe 4596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4597 (exit $ac_status); } && {
4598 test -z "$ac_c_werror_flag" ||
4599 test ! -s conftest.err
4600 } && test -s conftest.$ac_objext; then
d911ec67 4601 eval "$as_ac_Header=yes"
795ca3e5 4602else
ec6a6fbe 4603 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4604sed 's/^/| /' conftest.$ac_ext >&5
4605
d911ec67 4606 eval "$as_ac_Header=no"
795ca3e5 4607fi
7a197a62
AK
4608
4609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4610fi
d911ec67
AK
4611ac_res=`eval 'as_val=${'$as_ac_Header'}
4612 $as_echo "$as_val"'`
4613 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4614$as_echo "$ac_res" >&6; }
4615as_val=`eval 'as_val=${'$as_ac_Header'}
4616 $as_echo "$as_val"'`
4617 if test "x$as_val" = x""yes; then
4618 cat >>confdefs.h <<_ACEOF
4619#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4620_ACEOF
b896caa1 4621
8106cdd5 4622fi
b896caa1 4623
d911ec67 4624done
d0191583
JM
4625
4626
d911ec67
AK
4627{ $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
4628$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4629if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
ec6a6fbe 4630 $as_echo_n "(cached) " >&6
d0191583
JM
4631else
4632 cat >conftest.$ac_ext <<_ACEOF
4633/* confdefs.h. */
4634_ACEOF
4635cat confdefs.h >>conftest.$ac_ext
4636cat >>conftest.$ac_ext <<_ACEOF
4637/* end confdefs.h. */
d911ec67
AK
4638#include <sys/types.h>
4639int
4640main ()
4641{
4642return makedev(0, 0);
4643 ;
4644 return 0;
4645}
d0191583 4646_ACEOF
d911ec67
AK
4647rm -f conftest.$ac_objext conftest$ac_exeext
4648if { (ac_try="$ac_link"
d0191583
JM
4649case "(($ac_try" in
4650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651 *) ac_try_echo=$ac_try;;
4652esac
ec6a6fbe
AK
4653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4654$as_echo "$ac_try_echo") >&5
d911ec67 4655 (eval "$ac_link") 2>conftest.er1
d0191583
JM
4656 ac_status=$?
4657 grep -v '^ *+' conftest.er1 >conftest.err
4658 rm -f conftest.er1
4659 cat conftest.err >&5
ec6a6fbe 4660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4661 (exit $ac_status); } && {
4662 test -z "$ac_c_werror_flag" ||
4663 test ! -s conftest.err
d911ec67
AK
4664 } && test -s conftest$ac_exeext && {
4665 test "$cross_compiling" = yes ||
4666 $as_test_x conftest$ac_exeext
4667 }; then
4668 ac_cv_header_sys_types_h_makedev=yes
d0191583 4669else
ec6a6fbe 4670 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4671sed 's/^/| /' conftest.$ac_ext >&5
4672
d911ec67 4673 ac_cv_header_sys_types_h_makedev=no
d0191583
JM
4674fi
4675
d911ec67
AK
4676rm -rf conftest.dSYM
4677rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4678 conftest$ac_exeext conftest.$ac_ext
d0191583
JM
4679
4680fi
d911ec67
AK
4681{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
4682$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
d0191583 4683
d911ec67
AK
4684if test $ac_cv_header_sys_types_h_makedev = no; then
4685if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4686 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4687$as_echo_n "checking for sys/mkdev.h... " >&6; }
4688if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
ec6a6fbe 4689 $as_echo_n "(cached) " >&6
d0191583 4690fi
d911ec67
AK
4691{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4692$as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
ad6254c5 4693else
d0191583 4694 # Is the header compilable?
d911ec67
AK
4695{ $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
4696$as_echo_n "checking sys/mkdev.h usability... " >&6; }
d0191583 4697cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4698/* confdefs.h. */
4699_ACEOF
4700cat confdefs.h >>conftest.$ac_ext
4701cat >>conftest.$ac_ext <<_ACEOF
4702/* end confdefs.h. */
4703$ac_includes_default
d911ec67 4704#include <sys/mkdev.h>
ad6254c5
AK
4705_ACEOF
4706rm -f conftest.$ac_objext
7a197a62
AK
4707if { (ac_try="$ac_compile"
4708case "(($ac_try" in
4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4711esac
ec6a6fbe
AK
4712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4713$as_echo "$ac_try_echo") >&5
7a197a62 4714 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4715 ac_status=$?
8a2fc586
AK
4716 grep -v '^ *+' conftest.er1 >conftest.err
4717 rm -f conftest.er1
4718 cat conftest.err >&5
ec6a6fbe 4719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4720 (exit $ac_status); } && {
4721 test -z "$ac_c_werror_flag" ||
4722 test ! -s conftest.err
4723 } && test -s conftest.$ac_objext; then
d0191583 4724 ac_header_compiler=yes
ad6254c5 4725else
ec6a6fbe 4726 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4727sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4728
d0191583 4729 ac_header_compiler=no
ad6254c5 4730fi
7a197a62
AK
4731
4732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4733{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4734$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4735
4736# Is the header present?
d911ec67
AK
4737{ $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
4738$as_echo_n "checking sys/mkdev.h presence... " >&6; }
d0191583
JM
4739cat >conftest.$ac_ext <<_ACEOF
4740/* confdefs.h. */
4741_ACEOF
4742cat confdefs.h >>conftest.$ac_ext
4743cat >>conftest.$ac_ext <<_ACEOF
4744/* end confdefs.h. */
d911ec67 4745#include <sys/mkdev.h>
d0191583
JM
4746_ACEOF
4747if { (ac_try="$ac_cpp conftest.$ac_ext"
4748case "(($ac_try" in
4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750 *) ac_try_echo=$ac_try;;
4751esac
ec6a6fbe
AK
4752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4753$as_echo "$ac_try_echo") >&5
d0191583
JM
4754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4755 ac_status=$?
4756 grep -v '^ *+' conftest.er1 >conftest.err
4757 rm -f conftest.er1
4758 cat conftest.err >&5
ec6a6fbe 4759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4760 (exit $ac_status); } >/dev/null && {
4761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4762 test ! -s conftest.err
4763 }; then
4764 ac_header_preproc=yes
4765else
ec6a6fbe 4766 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4767sed 's/^/| /' conftest.$ac_ext >&5
4768
4769 ac_header_preproc=no
4770fi
4771
4772rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4773{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4774$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4775
4776# So? What about this header?
4777case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4778 yes:no: )
d911ec67
AK
4779 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
4780$as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4781 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
4782$as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
d0191583
JM
4783 ac_header_preproc=yes
4784 ;;
4785 no:yes:* )
d911ec67
AK
4786 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
4787$as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
4788 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
4789$as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
4790 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
4791$as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
4792 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
4793$as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
4794 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4795$as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
4796 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
4797$as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4798
4799 ;;
4800esac
d911ec67
AK
4801{ $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4802$as_echo_n "checking for sys/mkdev.h... " >&6; }
4803if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
ec6a6fbe 4804 $as_echo_n "(cached) " >&6
d0191583 4805else
d911ec67 4806 ac_cv_header_sys_mkdev_h=$ac_header_preproc
a38df97f 4807fi
d911ec67
AK
4808{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4809$as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
d0191583
JM
4810
4811fi
d911ec67
AK
4812if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
4813
4814cat >>confdefs.h <<\_ACEOF
4815#define MAJOR_IN_MKDEV 1
ad6254c5 4816_ACEOF
a38df97f 4817
80992638
AK
4818fi
4819
80992638 4820
5a52dca9 4821
d911ec67
AK
4822 if test $ac_cv_header_sys_mkdev_h = no; then
4823 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4824 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4825$as_echo_n "checking for sys/sysmacros.h... " >&6; }
4826if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
ec6a6fbe 4827 $as_echo_n "(cached) " >&6
ad6254c5 4828fi
d911ec67
AK
4829{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4830$as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
ad6254c5
AK
4831else
4832 # Is the header compilable?
d911ec67
AK
4833{ $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
4834$as_echo_n "checking sys/sysmacros.h usability... " >&6; }
ad6254c5 4835cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4836/* confdefs.h. */
4837_ACEOF
4838cat confdefs.h >>conftest.$ac_ext
4839cat >>conftest.$ac_ext <<_ACEOF
4840/* end confdefs.h. */
4841$ac_includes_default
d911ec67 4842#include <sys/sysmacros.h>
ad6254c5
AK
4843_ACEOF
4844rm -f conftest.$ac_objext
7a197a62
AK
4845if { (ac_try="$ac_compile"
4846case "(($ac_try" in
4847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4848 *) ac_try_echo=$ac_try;;
4849esac
ec6a6fbe
AK
4850eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4851$as_echo "$ac_try_echo") >&5
7a197a62 4852 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4853 ac_status=$?
8a2fc586
AK
4854 grep -v '^ *+' conftest.er1 >conftest.err
4855 rm -f conftest.er1
4856 cat conftest.err >&5
ec6a6fbe 4857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4858 (exit $ac_status); } && {
4859 test -z "$ac_c_werror_flag" ||
4860 test ! -s conftest.err
4861 } && test -s conftest.$ac_objext; then
fc54be10
AK
4862 ac_header_compiler=yes
4863else
ec6a6fbe 4864 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4865sed 's/^/| /' conftest.$ac_ext >&5
4866
4867 ac_header_compiler=no
4868fi
4869
4870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4871{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4872$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4873
4874# Is the header present?
d911ec67
AK
4875{ $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
4876$as_echo_n "checking sys/sysmacros.h presence... " >&6; }
ad6254c5 4877cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4878/* confdefs.h. */
4879_ACEOF
4880cat confdefs.h >>conftest.$ac_ext
4881cat >>conftest.$ac_ext <<_ACEOF
4882/* end confdefs.h. */
d911ec67 4883#include <sys/sysmacros.h>
ad6254c5 4884_ACEOF
7a197a62
AK
4885if { (ac_try="$ac_cpp conftest.$ac_ext"
4886case "(($ac_try" in
4887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4888 *) ac_try_echo=$ac_try;;
4889esac
ec6a6fbe
AK
4890eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4891$as_echo "$ac_try_echo") >&5
7a197a62 4892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4893 ac_status=$?
4894 grep -v '^ *+' conftest.er1 >conftest.err
4895 rm -f conftest.er1
4896 cat conftest.err >&5
ec6a6fbe 4897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4898 (exit $ac_status); } >/dev/null && {
4899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4900 test ! -s conftest.err
4901 }; then
ad6254c5
AK
4902 ac_header_preproc=yes
4903else
ec6a6fbe 4904 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4905sed 's/^/| /' conftest.$ac_ext >&5
4906
4907 ac_header_preproc=no
4908fi
7a197a62 4909
ad6254c5 4910rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4911{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4912$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4913
4914# So? What about this header?
8a2fc586
AK
4915case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4916 yes:no: )
d911ec67
AK
4917 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
4918$as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4919 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
4920$as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
8a2fc586 4921 ac_header_preproc=yes
ad6254c5 4922 ;;
8a2fc586 4923 no:yes:* )
d911ec67
AK
4924 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
4925$as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
4926 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
4927$as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
4928 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
4929$as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
4930 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
4931$as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
4932 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4933$as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
4934 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
4935$as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
7a197a62 4936
ad6254c5
AK
4937 ;;
4938esac
d911ec67
AK
4939{ $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4940$as_echo_n "checking for sys/sysmacros.h... " >&6; }
4941if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
ec6a6fbe 4942 $as_echo_n "(cached) " >&6
ad6254c5 4943else
d911ec67 4944 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
b896caa1 4945fi
d911ec67
AK
4946{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4947$as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
ad6254c5
AK
4948
4949fi
d911ec67
AK
4950if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
4951
4952cat >>confdefs.h <<\_ACEOF
4953#define MAJOR_IN_SYSMACROS 1
ad6254c5 4954_ACEOF
b896caa1 4955
80992638
AK
4956fi
4957
d8ac0fbc 4958
d911ec67
AK
4959 fi
4960fi
d8ac0fbc 4961
d911ec67
AK
4962{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4963$as_echo_n "checking for ANSI C header files... " >&6; }
4964if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4965 $as_echo_n "(cached) " >&6
ad6254c5 4966else
d911ec67 4967 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4968/* confdefs.h. */
4969_ACEOF
4970cat confdefs.h >>conftest.$ac_ext
4971cat >>conftest.$ac_ext <<_ACEOF
4972/* end confdefs.h. */
d911ec67
AK
4973#include <stdlib.h>
4974#include <stdarg.h>
4975#include <string.h>
4976#include <float.h>
4977
4978int
4979main ()
4980{
4981
4982 ;
4983 return 0;
4984}
ad6254c5
AK
4985_ACEOF
4986rm -f conftest.$ac_objext
7a197a62
AK
4987if { (ac_try="$ac_compile"
4988case "(($ac_try" in
4989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4990 *) ac_try_echo=$ac_try;;
4991esac
ec6a6fbe
AK
4992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4993$as_echo "$ac_try_echo") >&5
7a197a62 4994 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4995 ac_status=$?
8a2fc586
AK
4996 grep -v '^ *+' conftest.er1 >conftest.err
4997 rm -f conftest.er1
4998 cat conftest.err >&5
ec6a6fbe 4999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5000 (exit $ac_status); } && {
5001 test -z "$ac_c_werror_flag" ||
5002 test ! -s conftest.err
5003 } && test -s conftest.$ac_objext; then
d911ec67 5004 ac_cv_header_stdc=yes
ad6254c5 5005else
ec6a6fbe 5006 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5007sed 's/^/| /' conftest.$ac_ext >&5
5008
d911ec67 5009 ac_cv_header_stdc=no
ad6254c5 5010fi
7a197a62
AK
5011
5012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5013
d911ec67
AK
5014if test $ac_cv_header_stdc = yes; then
5015 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5016 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5017/* confdefs.h. */
5018_ACEOF
5019cat confdefs.h >>conftest.$ac_ext
5020cat >>conftest.$ac_ext <<_ACEOF
5021/* end confdefs.h. */
d911ec67
AK
5022#include <string.h>
5023
ad6254c5 5024_ACEOF
d911ec67
AK
5025if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5026 $EGREP "memchr" >/dev/null 2>&1; then
5027 :
5028else
5029 ac_cv_header_stdc=no
5030fi
5031rm -f conftest*
5032
5033fi
5034
5035if test $ac_cv_header_stdc = yes; then
5036 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5037 cat >conftest.$ac_ext <<_ACEOF
5038/* confdefs.h. */
5039_ACEOF
5040cat confdefs.h >>conftest.$ac_ext
5041cat >>conftest.$ac_ext <<_ACEOF
5042/* end confdefs.h. */
5043#include <stdlib.h>
5044
5045_ACEOF
5046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5047 $EGREP "free" >/dev/null 2>&1; then
5048 :
5049else
5050 ac_cv_header_stdc=no
5051fi
5052rm -f conftest*
5053
5054fi
5055
5056if test $ac_cv_header_stdc = yes; then
5057 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5058 if test "$cross_compiling" = yes; then
5059 :
5060else
5061 cat >conftest.$ac_ext <<_ACEOF
5062/* confdefs.h. */
5063_ACEOF
5064cat confdefs.h >>conftest.$ac_ext
5065cat >>conftest.$ac_ext <<_ACEOF
5066/* end confdefs.h. */
5067#include <ctype.h>
5068#include <stdlib.h>
5069#if ((' ' & 0x0FF) == 0x020)
5070# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5071# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5072#else
5073# define ISLOWER(c) \
5074 (('a' <= (c) && (c) <= 'i') \
5075 || ('j' <= (c) && (c) <= 'r') \
5076 || ('s' <= (c) && (c) <= 'z'))
5077# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5078#endif
5079
5080#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5081int
5082main ()
5083{
5084 int i;
5085 for (i = 0; i < 256; i++)
5086 if (XOR (islower (i), ISLOWER (i))
5087 || toupper (i) != TOUPPER (i))
5088 return 2;
5089 return 0;
5090}
5091_ACEOF
5092rm -f conftest$ac_exeext
5093if { (ac_try="$ac_link"
7a197a62
AK
5094case "(($ac_try" in
5095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5096 *) ac_try_echo=$ac_try;;
5097esac
ec6a6fbe
AK
5098eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5099$as_echo "$ac_try_echo") >&5
d911ec67
AK
5100 (eval "$ac_link") 2>&5
5101 ac_status=$?
5102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5104 { (case "(($ac_try" in
5105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5106 *) ac_try_echo=$ac_try;;
5107esac
5108eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5109$as_echo "$ac_try_echo") >&5
5110 (eval "$ac_try") 2>&5
5111 ac_status=$?
5112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); }; }; then
5114 :
5115else
5116 $as_echo "$as_me: program exited with status $ac_status" >&5
5117$as_echo "$as_me: failed program was:" >&5
5118sed 's/^/| /' conftest.$ac_ext >&5
5119
5120( exit $ac_status )
5121ac_cv_header_stdc=no
5122fi
5123rm -rf conftest.dSYM
5124rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5125fi
5126
5127
5128fi
5129fi
5130{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5131$as_echo "$ac_cv_header_stdc" >&6; }
5132if test $ac_cv_header_stdc = yes; then
5133
5134cat >>confdefs.h <<\_ACEOF
5135#define STDC_HEADERS 1
5136_ACEOF
5137
5138fi
5139
5140{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5141$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5142if test "${ac_cv_header_sys_wait_h+set}" = set; then
5143 $as_echo_n "(cached) " >&6
5144else
5145 cat >conftest.$ac_ext <<_ACEOF
5146/* confdefs.h. */
5147_ACEOF
5148cat confdefs.h >>conftest.$ac_ext
5149cat >>conftest.$ac_ext <<_ACEOF
5150/* end confdefs.h. */
5151#include <sys/types.h>
5152#include <sys/wait.h>
5153#ifndef WEXITSTATUS
5154# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5155#endif
5156#ifndef WIFEXITED
5157# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5158#endif
5159
5160int
5161main ()
5162{
5163 int s;
5164 wait (&s);
5165 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5166 ;
5167 return 0;
5168}
5169_ACEOF
5170rm -f conftest.$ac_objext
5171if { (ac_try="$ac_compile"
5172case "(($ac_try" in
5173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5174 *) ac_try_echo=$ac_try;;
5175esac
5176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5177$as_echo "$ac_try_echo") >&5
5178 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
5179 ac_status=$?
5180 grep -v '^ *+' conftest.er1 >conftest.err
5181 rm -f conftest.er1
5182 cat conftest.err >&5
ec6a6fbe 5183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d911ec67
AK
5184 (exit $ac_status); } && {
5185 test -z "$ac_c_werror_flag" ||
25fbec5b 5186 test ! -s conftest.err
d911ec67
AK
5187 } && test -s conftest.$ac_objext; then
5188 ac_cv_header_sys_wait_h=yes
ad6254c5 5189else
ec6a6fbe 5190 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5191sed 's/^/| /' conftest.$ac_ext >&5
5192
d911ec67 5193 ac_cv_header_sys_wait_h=no
ad6254c5 5194fi
7a197a62 5195
d911ec67
AK
5196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5197fi
5198{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5199$as_echo "$ac_cv_header_sys_wait_h" >&6; }
5200if test $ac_cv_header_sys_wait_h = yes; then
5201
5202cat >>confdefs.h <<\_ACEOF
5203#define HAVE_SYS_WAIT_H 1
5204_ACEOF
5205
5206fi
5207
5208{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5209$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5210if test "${ac_cv_header_time+set}" = set; then
5211 $as_echo_n "(cached) " >&6
5212else
5213 cat >conftest.$ac_ext <<_ACEOF
5214/* confdefs.h. */
5215_ACEOF
5216cat confdefs.h >>conftest.$ac_ext
5217cat >>conftest.$ac_ext <<_ACEOF
5218/* end confdefs.h. */
5219#include <sys/types.h>
5220#include <sys/time.h>
5221#include <time.h>
5222
5223int
5224main ()
5225{
5226if ((struct tm *) 0)
5227return 0;
5228 ;
5229 return 0;
5230}
5231_ACEOF
5232rm -f conftest.$ac_objext
5233if { (ac_try="$ac_compile"
5234case "(($ac_try" in
5235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5236 *) ac_try_echo=$ac_try;;
5237esac
5238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5239$as_echo "$ac_try_echo") >&5
5240 (eval "$ac_compile") 2>conftest.er1
5241 ac_status=$?
5242 grep -v '^ *+' conftest.er1 >conftest.err
5243 rm -f conftest.er1
5244 cat conftest.err >&5
5245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); } && {
5247 test -z "$ac_c_werror_flag" ||
5248 test ! -s conftest.err
5249 } && test -s conftest.$ac_objext; then
5250 ac_cv_header_time=yes
5251else
5252 $as_echo "$as_me: failed program was:" >&5
5253sed 's/^/| /' conftest.$ac_ext >&5
5254
5255 ac_cv_header_time=no
5256fi
5257
5258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5259fi
5260{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5261$as_echo "$ac_cv_header_time" >&6; }
5262if test $ac_cv_header_time = yes; then
5263
5264cat >>confdefs.h <<\_ACEOF
5265#define TIME_WITH_SYS_TIME 1
5266_ACEOF
5267
5268fi
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
5286 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
5287 sys/wait.h time.h
5288do
5289as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5290if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5291 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5292$as_echo_n "checking for $ac_header... " >&6; }
5293if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5294 $as_echo_n "(cached) " >&6
5295fi
5296ac_res=`eval 'as_val=${'$as_ac_Header'}
5297 $as_echo "$as_val"'`
5298 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5299$as_echo "$ac_res" >&6; }
5300else
5301 # Is the header compilable?
5302{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5303$as_echo_n "checking $ac_header usability... " >&6; }
5304cat >conftest.$ac_ext <<_ACEOF
5305/* confdefs.h. */
5306_ACEOF
5307cat confdefs.h >>conftest.$ac_ext
5308cat >>conftest.$ac_ext <<_ACEOF
5309/* end confdefs.h. */
5310$ac_includes_default
5311#include <$ac_header>
5312_ACEOF
5313rm -f conftest.$ac_objext
5314if { (ac_try="$ac_compile"
5315case "(($ac_try" in
5316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5317 *) ac_try_echo=$ac_try;;
5318esac
5319eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5320$as_echo "$ac_try_echo") >&5
5321 (eval "$ac_compile") 2>conftest.er1
5322 ac_status=$?
5323 grep -v '^ *+' conftest.er1 >conftest.err
5324 rm -f conftest.er1
5325 cat conftest.err >&5
5326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); } && {
5328 test -z "$ac_c_werror_flag" ||
5329 test ! -s conftest.err
5330 } && test -s conftest.$ac_objext; then
5331 ac_header_compiler=yes
5332else
5333 $as_echo "$as_me: failed program was:" >&5
5334sed 's/^/| /' conftest.$ac_ext >&5
5335
5336 ac_header_compiler=no
5337fi
5338
5339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5340{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5341$as_echo "$ac_header_compiler" >&6; }
5342
5343# Is the header present?
5344{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5345$as_echo_n "checking $ac_header presence... " >&6; }
5346cat >conftest.$ac_ext <<_ACEOF
5347/* confdefs.h. */
5348_ACEOF
5349cat confdefs.h >>conftest.$ac_ext
5350cat >>conftest.$ac_ext <<_ACEOF
5351/* end confdefs.h. */
5352#include <$ac_header>
5353_ACEOF
5354if { (ac_try="$ac_cpp conftest.$ac_ext"
5355case "(($ac_try" in
5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5358esac
5359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5360$as_echo "$ac_try_echo") >&5
5361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5362 ac_status=$?
5363 grep -v '^ *+' conftest.er1 >conftest.err
5364 rm -f conftest.er1
5365 cat conftest.err >&5
5366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } >/dev/null && {
5368 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5369 test ! -s conftest.err
5370 }; then
5371 ac_header_preproc=yes
5372else
5373 $as_echo "$as_me: failed program was:" >&5
5374sed 's/^/| /' conftest.$ac_ext >&5
5375
5376 ac_header_preproc=no
5377fi
5378
5379rm -f conftest.err conftest.$ac_ext
5380{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5381$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5382
5383# So? What about this header?
8a2fc586
AK
5384case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5385 yes:no: )
ec6a6fbe
AK
5386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5387$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5389$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5390 ac_header_preproc=yes
ad6254c5 5391 ;;
8a2fc586 5392 no:yes:* )
ec6a6fbe
AK
5393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5394$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5396$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5398$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5400$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5402$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5404$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5405
ad6254c5
AK
5406 ;;
5407esac
d911ec67
AK
5408{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5409$as_echo_n "checking for $ac_header... " >&6; }
5410if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5411 $as_echo_n "(cached) " >&6
5412else
5413 eval "$as_ac_Header=\$ac_header_preproc"
5414fi
5415ac_res=`eval 'as_val=${'$as_ac_Header'}
5416 $as_echo "$as_val"'`
5417 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5418$as_echo "$ac_res" >&6; }
5419
5420fi
5421as_val=`eval 'as_val=${'$as_ac_Header'}
5422 $as_echo "$as_val"'`
5423 if test "x$as_val" = x""yes; then
5424 cat >>confdefs.h <<_ACEOF
5425#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5426_ACEOF
5427
5428else
5429 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5430$as_echo "$as_me: error: bailing out" >&2;}
5431 { (exit 1); exit 1; }; }
5432fi
5433
5434done
5435
5436
5437case "$host_os" in
5438 linux*)
5439
5440
5441
5442for ac_header in asm/byteorder.h linux/fs.h malloc.h
5443do
5444as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5445if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5446 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5447$as_echo_n "checking for $ac_header... " >&6; }
5448if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5449 $as_echo_n "(cached) " >&6
5450fi
5451ac_res=`eval 'as_val=${'$as_ac_Header'}
5452 $as_echo "$as_val"'`
5453 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5454$as_echo "$ac_res" >&6; }
5455else
5456 # Is the header compilable?
5457{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5458$as_echo_n "checking $ac_header usability... " >&6; }
5459cat >conftest.$ac_ext <<_ACEOF
5460/* confdefs.h. */
5461_ACEOF
5462cat confdefs.h >>conftest.$ac_ext
5463cat >>conftest.$ac_ext <<_ACEOF
5464/* end confdefs.h. */
5465$ac_includes_default
5466#include <$ac_header>
5467_ACEOF
5468rm -f conftest.$ac_objext
5469if { (ac_try="$ac_compile"
5470case "(($ac_try" in
5471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472 *) ac_try_echo=$ac_try;;
5473esac
5474eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5475$as_echo "$ac_try_echo") >&5
5476 (eval "$ac_compile") 2>conftest.er1
5477 ac_status=$?
5478 grep -v '^ *+' conftest.er1 >conftest.err
5479 rm -f conftest.er1
5480 cat conftest.err >&5
5481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } && {
5483 test -z "$ac_c_werror_flag" ||
5484 test ! -s conftest.err
5485 } && test -s conftest.$ac_objext; then
5486 ac_header_compiler=yes
5487else
5488 $as_echo "$as_me: failed program was:" >&5
5489sed 's/^/| /' conftest.$ac_ext >&5
5490
5491 ac_header_compiler=no
5492fi
5493
5494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5495{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5496$as_echo "$ac_header_compiler" >&6; }
5497
5498# Is the header present?
5499{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5500$as_echo_n "checking $ac_header presence... " >&6; }
5501cat >conftest.$ac_ext <<_ACEOF
5502/* confdefs.h. */
5503_ACEOF
5504cat confdefs.h >>conftest.$ac_ext
5505cat >>conftest.$ac_ext <<_ACEOF
5506/* end confdefs.h. */
5507#include <$ac_header>
5508_ACEOF
5509if { (ac_try="$ac_cpp conftest.$ac_ext"
5510case "(($ac_try" in
5511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512 *) ac_try_echo=$ac_try;;
5513esac
5514eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5515$as_echo "$ac_try_echo") >&5
5516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5517 ac_status=$?
5518 grep -v '^ *+' conftest.er1 >conftest.err
5519 rm -f conftest.er1
5520 cat conftest.err >&5
5521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); } >/dev/null && {
5523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5524 test ! -s conftest.err
5525 }; then
5526 ac_header_preproc=yes
5527else
5528 $as_echo "$as_me: failed program was:" >&5
5529sed 's/^/| /' conftest.$ac_ext >&5
5530
5531 ac_header_preproc=no
5532fi
5533
5534rm -f conftest.err conftest.$ac_ext
5535{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5536$as_echo "$ac_header_preproc" >&6; }
5537
5538# So? What about this header?
5539case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5540 yes:no: )
5541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5542$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5544$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5545 ac_header_preproc=yes
5546 ;;
5547 no:yes:* )
5548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5549$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5551$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5553$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5555$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5557$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5559$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5560
5561 ;;
5562esac
5563{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5564$as_echo_n "checking for $ac_header... " >&6; }
5565if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5566 $as_echo_n "(cached) " >&6
5567else
5568 eval "$as_ac_Header=\$ac_header_preproc"
5569fi
5570ac_res=`eval 'as_val=${'$as_ac_Header'}
5571 $as_echo "$as_val"'`
5572 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5573$as_echo "$ac_res" >&6; }
5574
5575fi
5576as_val=`eval 'as_val=${'$as_ac_Header'}
5577 $as_echo "$as_val"'`
5578 if test "x$as_val" = x""yes; then
5579 cat >>confdefs.h <<_ACEOF
5580#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5581_ACEOF
5582
5583else
5584 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5585$as_echo "$as_me: error: bailing out" >&2;}
5586 { (exit 1); exit 1; }; }
5587fi
5588
5589done
5590 ;;
5591 darwin*)
5592
5593
5594for ac_header in machine/endian.h sys/disk.h
5595do
5596as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5597if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5598 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5599$as_echo_n "checking for $ac_header... " >&6; }
5600if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5601 $as_echo_n "(cached) " >&6
5602fi
5603ac_res=`eval 'as_val=${'$as_ac_Header'}
5604 $as_echo "$as_val"'`
5605 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5606$as_echo "$ac_res" >&6; }
5607else
5608 # Is the header compilable?
5609{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5610$as_echo_n "checking $ac_header usability... " >&6; }
5611cat >conftest.$ac_ext <<_ACEOF
5612/* confdefs.h. */
5613_ACEOF
5614cat confdefs.h >>conftest.$ac_ext
5615cat >>conftest.$ac_ext <<_ACEOF
5616/* end confdefs.h. */
5617$ac_includes_default
5618#include <$ac_header>
5619_ACEOF
5620rm -f conftest.$ac_objext
5621if { (ac_try="$ac_compile"
5622case "(($ac_try" in
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5625esac
5626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5627$as_echo "$ac_try_echo") >&5
5628 (eval "$ac_compile") 2>conftest.er1
5629 ac_status=$?
5630 grep -v '^ *+' conftest.er1 >conftest.err
5631 rm -f conftest.er1
5632 cat conftest.err >&5
5633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } && {
5635 test -z "$ac_c_werror_flag" ||
5636 test ! -s conftest.err
5637 } && test -s conftest.$ac_objext; then
5638 ac_header_compiler=yes
5639else
5640 $as_echo "$as_me: failed program was:" >&5
5641sed 's/^/| /' conftest.$ac_ext >&5
5642
5643 ac_header_compiler=no
5644fi
5645
5646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5648$as_echo "$ac_header_compiler" >&6; }
5649
5650# Is the header present?
5651{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5652$as_echo_n "checking $ac_header presence... " >&6; }
5653cat >conftest.$ac_ext <<_ACEOF
5654/* confdefs.h. */
5655_ACEOF
5656cat confdefs.h >>conftest.$ac_ext
5657cat >>conftest.$ac_ext <<_ACEOF
5658/* end confdefs.h. */
5659#include <$ac_header>
5660_ACEOF
5661if { (ac_try="$ac_cpp conftest.$ac_ext"
5662case "(($ac_try" in
5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5665esac
5666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5667$as_echo "$ac_try_echo") >&5
5668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5669 ac_status=$?
5670 grep -v '^ *+' conftest.er1 >conftest.err
5671 rm -f conftest.er1
5672 cat conftest.err >&5
5673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } >/dev/null && {
5675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5676 test ! -s conftest.err
5677 }; then
5678 ac_header_preproc=yes
5679else
5680 $as_echo "$as_me: failed program was:" >&5
5681sed 's/^/| /' conftest.$ac_ext >&5
5682
5683 ac_header_preproc=no
5684fi
5685
5686rm -f conftest.err conftest.$ac_ext
5687{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5688$as_echo "$ac_header_preproc" >&6; }
5689
5690# So? What about this header?
5691case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5692 yes:no: )
5693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5694$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5696$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5697 ac_header_preproc=yes
5698 ;;
5699 no:yes:* )
5700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5701$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5703$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5705$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5707$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5709$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5711$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5712
5713 ;;
5714esac
5715{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5716$as_echo_n "checking for $ac_header... " >&6; }
5717if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5718 $as_echo_n "(cached) " >&6
5719else
5720 eval "$as_ac_Header=\$ac_header_preproc"
5721fi
5722ac_res=`eval 'as_val=${'$as_ac_Header'}
5723 $as_echo "$as_val"'`
5724 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5725$as_echo "$ac_res" >&6; }
5726
5727fi
5728as_val=`eval 'as_val=${'$as_ac_Header'}
5729 $as_echo "$as_val"'`
5730 if test "x$as_val" = x""yes; then
5731 cat >>confdefs.h <<_ACEOF
5732#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5733_ACEOF
5734
5735else
5736 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5737$as_echo "$as_me: error: bailing out" >&2;}
5738 { (exit 1); exit 1; }; }
5739fi
5740
5741done
5742 ;;
5743esac
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5762 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5763 sys/types.h unistd.h
5764do
5765as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5767 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5768$as_echo_n "checking for $ac_header... " >&6; }
5769if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5770 $as_echo_n "(cached) " >&6
5771fi
5772ac_res=`eval 'as_val=${'$as_ac_Header'}
5773 $as_echo "$as_val"'`
5774 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5775$as_echo "$ac_res" >&6; }
5776else
5777 # Is the header compilable?
5778{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5779$as_echo_n "checking $ac_header usability... " >&6; }
5780cat >conftest.$ac_ext <<_ACEOF
5781/* confdefs.h. */
5782_ACEOF
5783cat confdefs.h >>conftest.$ac_ext
5784cat >>conftest.$ac_ext <<_ACEOF
5785/* end confdefs.h. */
5786$ac_includes_default
5787#include <$ac_header>
5788_ACEOF
5789rm -f conftest.$ac_objext
5790if { (ac_try="$ac_compile"
5791case "(($ac_try" in
5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793 *) ac_try_echo=$ac_try;;
5794esac
5795eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5796$as_echo "$ac_try_echo") >&5
5797 (eval "$ac_compile") 2>conftest.er1
5798 ac_status=$?
5799 grep -v '^ *+' conftest.er1 >conftest.err
5800 rm -f conftest.er1
5801 cat conftest.err >&5
5802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } && {
5804 test -z "$ac_c_werror_flag" ||
5805 test ! -s conftest.err
5806 } && test -s conftest.$ac_objext; then
5807 ac_header_compiler=yes
5808else
5809 $as_echo "$as_me: failed program was:" >&5
5810sed 's/^/| /' conftest.$ac_ext >&5
5811
5812 ac_header_compiler=no
5813fi
5814
5815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5816{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5817$as_echo "$ac_header_compiler" >&6; }
5818
5819# Is the header present?
5820{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5821$as_echo_n "checking $ac_header presence... " >&6; }
5822cat >conftest.$ac_ext <<_ACEOF
5823/* confdefs.h. */
5824_ACEOF
5825cat confdefs.h >>conftest.$ac_ext
5826cat >>conftest.$ac_ext <<_ACEOF
5827/* end confdefs.h. */
5828#include <$ac_header>
5829_ACEOF
5830if { (ac_try="$ac_cpp conftest.$ac_ext"
5831case "(($ac_try" in
5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833 *) ac_try_echo=$ac_try;;
5834esac
5835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5836$as_echo "$ac_try_echo") >&5
5837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5838 ac_status=$?
5839 grep -v '^ *+' conftest.er1 >conftest.err
5840 rm -f conftest.er1
5841 cat conftest.err >&5
5842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } >/dev/null && {
5844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5845 test ! -s conftest.err
5846 }; then
5847 ac_header_preproc=yes
5848else
5849 $as_echo "$as_me: failed program was:" >&5
5850sed 's/^/| /' conftest.$ac_ext >&5
5851
5852 ac_header_preproc=no
5853fi
5854
5855rm -f conftest.err conftest.$ac_ext
5856{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5857$as_echo "$ac_header_preproc" >&6; }
5858
5859# So? What about this header?
5860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5861 yes:no: )
5862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5863$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5865$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5866 ac_header_preproc=yes
5867 ;;
5868 no:yes:* )
5869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5870$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5872$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5874$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5876$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5878$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5880$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5881
5882 ;;
5883esac
5884{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5885$as_echo_n "checking for $ac_header... " >&6; }
5886if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5887 $as_echo_n "(cached) " >&6
5888else
5889 eval "$as_ac_Header=\$ac_header_preproc"
5890fi
5891ac_res=`eval 'as_val=${'$as_ac_Header'}
5892 $as_echo "$as_val"'`
5893 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5894$as_echo "$ac_res" >&6; }
5895
5896fi
5897as_val=`eval 'as_val=${'$as_ac_Header'}
5898 $as_echo "$as_val"'`
5899 if test "x$as_val" = x""yes; then
5900 cat >>confdefs.h <<_ACEOF
5901#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5902_ACEOF
5903
5904else
5905 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5906$as_echo "$as_me: error: bailing out" >&2;}
5907 { (exit 1); exit 1; }; }
5908fi
5909
5910done
5911
5912
5913
5914for ac_header in termios.h sys/statvfs.h
5915do
5916as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5918 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5919$as_echo_n "checking for $ac_header... " >&6; }
5920if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5921 $as_echo_n "(cached) " >&6
5922fi
5923ac_res=`eval 'as_val=${'$as_ac_Header'}
5924 $as_echo "$as_val"'`
5925 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5926$as_echo "$ac_res" >&6; }
5927else
5928 # Is the header compilable?
5929{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5930$as_echo_n "checking $ac_header usability... " >&6; }
5931cat >conftest.$ac_ext <<_ACEOF
5932/* confdefs.h. */
5933_ACEOF
5934cat confdefs.h >>conftest.$ac_ext
5935cat >>conftest.$ac_ext <<_ACEOF
5936/* end confdefs.h. */
5937$ac_includes_default
5938#include <$ac_header>
5939_ACEOF
5940rm -f conftest.$ac_objext
5941if { (ac_try="$ac_compile"
5942case "(($ac_try" in
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5945esac
5946eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5947$as_echo "$ac_try_echo") >&5
5948 (eval "$ac_compile") 2>conftest.er1
5949 ac_status=$?
5950 grep -v '^ *+' conftest.er1 >conftest.err
5951 rm -f conftest.er1
5952 cat conftest.err >&5
5953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } && {
5955 test -z "$ac_c_werror_flag" ||
5956 test ! -s conftest.err
5957 } && test -s conftest.$ac_objext; then
5958 ac_header_compiler=yes
5959else
5960 $as_echo "$as_me: failed program was:" >&5
5961sed 's/^/| /' conftest.$ac_ext >&5
5962
5963 ac_header_compiler=no
5964fi
5965
5966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5968$as_echo "$ac_header_compiler" >&6; }
5969
5970# Is the header present?
5971{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5972$as_echo_n "checking $ac_header presence... " >&6; }
5973cat >conftest.$ac_ext <<_ACEOF
5974/* confdefs.h. */
5975_ACEOF
5976cat confdefs.h >>conftest.$ac_ext
5977cat >>conftest.$ac_ext <<_ACEOF
5978/* end confdefs.h. */
5979#include <$ac_header>
5980_ACEOF
5981if { (ac_try="$ac_cpp conftest.$ac_ext"
5982case "(($ac_try" in
5983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984 *) ac_try_echo=$ac_try;;
5985esac
5986eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5987$as_echo "$ac_try_echo") >&5
5988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5989 ac_status=$?
5990 grep -v '^ *+' conftest.er1 >conftest.err
5991 rm -f conftest.er1
5992 cat conftest.err >&5
5993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } >/dev/null && {
5995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5996 test ! -s conftest.err
5997 }; then
5998 ac_header_preproc=yes
5999else
6000 $as_echo "$as_me: failed program was:" >&5
6001sed 's/^/| /' conftest.$ac_ext >&5
6002
6003 ac_header_preproc=no
6004fi
6005
6006rm -f conftest.err conftest.$ac_ext
6007{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6008$as_echo "$ac_header_preproc" >&6; }
6009
6010# So? What about this header?
6011case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6012 yes:no: )
6013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6014$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6016$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6017 ac_header_preproc=yes
6018 ;;
6019 no:yes:* )
6020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6021$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6023$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6025$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6027$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6029$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6031$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6032
6033 ;;
6034esac
6035{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6036$as_echo_n "checking for $ac_header... " >&6; }
6037if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6038 $as_echo_n "(cached) " >&6
6039else
6040 eval "$as_ac_Header=\$ac_header_preproc"
6041fi
6042ac_res=`eval 'as_val=${'$as_ac_Header'}
6043 $as_echo "$as_val"'`
6044 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6045$as_echo "$ac_res" >&6; }
6046
6047fi
6048as_val=`eval 'as_val=${'$as_ac_Header'}
6049 $as_echo "$as_val"'`
6050 if test "x$as_val" = x""yes; then
6051 cat >>confdefs.h <<_ACEOF
6052#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6053_ACEOF
6054
6055fi
6056
6057done
6058
6059
6060################################################################################
6061{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6062$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6063if test "${ac_cv_c_const+set}" = set; then
6064 $as_echo_n "(cached) " >&6
6065else
6066 cat >conftest.$ac_ext <<_ACEOF
6067/* confdefs.h. */
6068_ACEOF
6069cat confdefs.h >>conftest.$ac_ext
6070cat >>conftest.$ac_ext <<_ACEOF
6071/* end confdefs.h. */
6072
6073int
6074main ()
6075{
6076/* FIXME: Include the comments suggested by Paul. */
6077#ifndef __cplusplus
6078 /* Ultrix mips cc rejects this. */
6079 typedef int charset[2];
6080 const charset cs;
6081 /* SunOS 4.1.1 cc rejects this. */
6082 char const *const *pcpcc;
6083 char **ppc;
6084 /* NEC SVR4.0.2 mips cc rejects this. */
6085 struct point {int x, y;};
6086 static struct point const zero = {0,0};
6087 /* AIX XL C 1.02.0.0 rejects this.
6088 It does not let you subtract one const X* pointer from another in
6089 an arm of an if-expression whose if-part is not a constant
6090 expression */
6091 const char *g = "string";
6092 pcpcc = &g + (g ? g-g : 0);
6093 /* HPUX 7.0 cc rejects these. */
6094 ++pcpcc;
6095 ppc = (char**) pcpcc;
6096 pcpcc = (char const *const *) ppc;
6097 { /* SCO 3.2v4 cc rejects this. */
6098 char *t;
6099 char const *s = 0 ? (char *) 0 : (char const *) 0;
6100
6101 *t++ = 0;
6102 if (s) return 0;
6103 }
6104 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6105 int x[] = {25, 17};
6106 const int *foo = &x[0];
6107 ++foo;
6108 }
6109 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6110 typedef const int *iptr;
6111 iptr p = 0;
6112 ++p;
6113 }
6114 { /* AIX XL C 1.02.0.0 rejects this saying
6115 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6116 struct s { int j; const int *ap[3]; };
6117 struct s *b; b->j = 5;
6118 }
6119 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6120 const int foo = 10;
6121 if (!foo) return 0;
6122 }
6123 return !cs[0] && !zero.x;
6124#endif
6125
6126 ;
6127 return 0;
6128}
6129_ACEOF
6130rm -f conftest.$ac_objext
6131if { (ac_try="$ac_compile"
6132case "(($ac_try" in
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6135esac
6136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6137$as_echo "$ac_try_echo") >&5
6138 (eval "$ac_compile") 2>conftest.er1
6139 ac_status=$?
6140 grep -v '^ *+' conftest.er1 >conftest.err
6141 rm -f conftest.er1
6142 cat conftest.err >&5
6143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } && {
6145 test -z "$ac_c_werror_flag" ||
6146 test ! -s conftest.err
6147 } && test -s conftest.$ac_objext; then
6148 ac_cv_c_const=yes
6149else
6150 $as_echo "$as_me: failed program was:" >&5
6151sed 's/^/| /' conftest.$ac_ext >&5
6152
6153 ac_cv_c_const=no
6154fi
6155
6156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6157fi
6158{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6159$as_echo "$ac_cv_c_const" >&6; }
6160if test $ac_cv_c_const = no; then
6161
6162cat >>confdefs.h <<\_ACEOF
6163#define const /**/
6164_ACEOF
6165
6166fi
6167
6168{ $as_echo "$as_me:$LINENO: checking for inline" >&5
6169$as_echo_n "checking for inline... " >&6; }
6170if test "${ac_cv_c_inline+set}" = set; then
6171 $as_echo_n "(cached) " >&6
6172else
6173 ac_cv_c_inline=no
6174for ac_kw in inline __inline__ __inline; do
6175 cat >conftest.$ac_ext <<_ACEOF
6176/* confdefs.h. */
6177_ACEOF
6178cat confdefs.h >>conftest.$ac_ext
6179cat >>conftest.$ac_ext <<_ACEOF
6180/* end confdefs.h. */
6181#ifndef __cplusplus
6182typedef int foo_t;
6183static $ac_kw foo_t static_foo () {return 0; }
6184$ac_kw foo_t foo () {return 0; }
6185#endif
6186
6187_ACEOF
6188rm -f conftest.$ac_objext
6189if { (ac_try="$ac_compile"
6190case "(($ac_try" in
6191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192 *) ac_try_echo=$ac_try;;
6193esac
6194eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6195$as_echo "$ac_try_echo") >&5
6196 (eval "$ac_compile") 2>conftest.er1
6197 ac_status=$?
6198 grep -v '^ *+' conftest.er1 >conftest.err
6199 rm -f conftest.er1
6200 cat conftest.err >&5
6201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } && {
6203 test -z "$ac_c_werror_flag" ||
6204 test ! -s conftest.err
6205 } && test -s conftest.$ac_objext; then
6206 ac_cv_c_inline=$ac_kw
6207else
6208 $as_echo "$as_me: failed program was:" >&5
6209sed 's/^/| /' conftest.$ac_ext >&5
6210
6211
6212fi
6213
6214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215 test "$ac_cv_c_inline" != no && break
6216done
6217
6218fi
6219{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6220$as_echo "$ac_cv_c_inline" >&6; }
6221
6222
6223case $ac_cv_c_inline in
6224 inline | yes) ;;
6225 *)
6226 case $ac_cv_c_inline in
6227 no) ac_val=;;
6228 *) ac_val=$ac_cv_c_inline;;
6229 esac
6230 cat >>confdefs.h <<_ACEOF
6231#ifndef __cplusplus
6232#define inline $ac_val
6233#endif
6234_ACEOF
6235 ;;
6236esac
6237
6238{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6239$as_echo_n "checking for struct stat.st_rdev... " >&6; }
6240if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6241 $as_echo_n "(cached) " >&6
6242else
6243 cat >conftest.$ac_ext <<_ACEOF
6244/* confdefs.h. */
6245_ACEOF
6246cat confdefs.h >>conftest.$ac_ext
6247cat >>conftest.$ac_ext <<_ACEOF
6248/* end confdefs.h. */
6249$ac_includes_default
6250int
6251main ()
6252{
6253static struct stat ac_aggr;
6254if (ac_aggr.st_rdev)
6255return 0;
6256 ;
6257 return 0;
6258}
6259_ACEOF
6260rm -f conftest.$ac_objext
6261if { (ac_try="$ac_compile"
6262case "(($ac_try" in
6263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264 *) ac_try_echo=$ac_try;;
6265esac
6266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6267$as_echo "$ac_try_echo") >&5
6268 (eval "$ac_compile") 2>conftest.er1
6269 ac_status=$?
6270 grep -v '^ *+' conftest.er1 >conftest.err
6271 rm -f conftest.er1
6272 cat conftest.err >&5
6273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); } && {
6275 test -z "$ac_c_werror_flag" ||
6276 test ! -s conftest.err
6277 } && test -s conftest.$ac_objext; then
6278 ac_cv_member_struct_stat_st_rdev=yes
6279else
6280 $as_echo "$as_me: failed program was:" >&5
6281sed 's/^/| /' conftest.$ac_ext >&5
6282
6283 cat >conftest.$ac_ext <<_ACEOF
6284/* confdefs.h. */
6285_ACEOF
6286cat confdefs.h >>conftest.$ac_ext
6287cat >>conftest.$ac_ext <<_ACEOF
6288/* end confdefs.h. */
6289$ac_includes_default
6290int
6291main ()
6292{
6293static struct stat ac_aggr;
6294if (sizeof ac_aggr.st_rdev)
6295return 0;
6296 ;
6297 return 0;
6298}
6299_ACEOF
6300rm -f conftest.$ac_objext
6301if { (ac_try="$ac_compile"
6302case "(($ac_try" in
6303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304 *) ac_try_echo=$ac_try;;
6305esac
6306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6307$as_echo "$ac_try_echo") >&5
6308 (eval "$ac_compile") 2>conftest.er1
6309 ac_status=$?
6310 grep -v '^ *+' conftest.er1 >conftest.err
6311 rm -f conftest.er1
6312 cat conftest.err >&5
6313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } && {
6315 test -z "$ac_c_werror_flag" ||
6316 test ! -s conftest.err
6317 } && test -s conftest.$ac_objext; then
6318 ac_cv_member_struct_stat_st_rdev=yes
6319else
6320 $as_echo "$as_me: failed program was:" >&5
6321sed 's/^/| /' conftest.$ac_ext >&5
6322
6323 ac_cv_member_struct_stat_st_rdev=no
6324fi
6325
6326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6327fi
6328
6329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330fi
6331{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6332$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6333if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6334
6335cat >>confdefs.h <<_ACEOF
6336#define HAVE_STRUCT_STAT_ST_RDEV 1
6337_ACEOF
6338
6339
6340fi
6341
6342{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
6343$as_echo_n "checking for off_t... " >&6; }
6344if test "${ac_cv_type_off_t+set}" = set; then
6345 $as_echo_n "(cached) " >&6
6346else
6347 ac_cv_type_off_t=no
6348cat >conftest.$ac_ext <<_ACEOF
6349/* confdefs.h. */
6350_ACEOF
6351cat confdefs.h >>conftest.$ac_ext
6352cat >>conftest.$ac_ext <<_ACEOF
6353/* end confdefs.h. */
6354$ac_includes_default
6355int
6356main ()
6357{
6358if (sizeof (off_t))
6359 return 0;
6360 ;
6361 return 0;
6362}
6363_ACEOF
6364rm -f conftest.$ac_objext
6365if { (ac_try="$ac_compile"
6366case "(($ac_try" in
6367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368 *) ac_try_echo=$ac_try;;
6369esac
6370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6371$as_echo "$ac_try_echo") >&5
6372 (eval "$ac_compile") 2>conftest.er1
6373 ac_status=$?
6374 grep -v '^ *+' conftest.er1 >conftest.err
6375 rm -f conftest.er1
6376 cat conftest.err >&5
6377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); } && {
6379 test -z "$ac_c_werror_flag" ||
6380 test ! -s conftest.err
6381 } && test -s conftest.$ac_objext; then
6382 cat >conftest.$ac_ext <<_ACEOF
6383/* confdefs.h. */
6384_ACEOF
6385cat confdefs.h >>conftest.$ac_ext
6386cat >>conftest.$ac_ext <<_ACEOF
6387/* end confdefs.h. */
6388$ac_includes_default
6389int
6390main ()
6391{
6392if (sizeof ((off_t)))
6393 return 0;
6394 ;
6395 return 0;
6396}
6397_ACEOF
6398rm -f conftest.$ac_objext
6399if { (ac_try="$ac_compile"
6400case "(($ac_try" in
6401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6402 *) ac_try_echo=$ac_try;;
6403esac
6404eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6405$as_echo "$ac_try_echo") >&5
6406 (eval "$ac_compile") 2>conftest.er1
6407 ac_status=$?
6408 grep -v '^ *+' conftest.er1 >conftest.err
6409 rm -f conftest.er1
6410 cat conftest.err >&5
6411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } && {
6413 test -z "$ac_c_werror_flag" ||
6414 test ! -s conftest.err
6415 } && test -s conftest.$ac_objext; then
6416 :
6417else
6418 $as_echo "$as_me: failed program was:" >&5
6419sed 's/^/| /' conftest.$ac_ext >&5
6420
6421 ac_cv_type_off_t=yes
6422fi
6423
6424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425else
6426 $as_echo "$as_me: failed program was:" >&5
6427sed 's/^/| /' conftest.$ac_ext >&5
6428
6429
6430fi
6431
6432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6433fi
6434{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6435$as_echo "$ac_cv_type_off_t" >&6; }
6436if test "x$ac_cv_type_off_t" = x""yes; then
6437 :
6438else
6439
6440cat >>confdefs.h <<_ACEOF
6441#define off_t long int
6442_ACEOF
6443
6444fi
6445
6446{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
6447$as_echo_n "checking for pid_t... " >&6; }
6448if test "${ac_cv_type_pid_t+set}" = set; then
6449 $as_echo_n "(cached) " >&6
6450else
6451 ac_cv_type_pid_t=no
6452cat >conftest.$ac_ext <<_ACEOF
6453/* confdefs.h. */
6454_ACEOF
6455cat confdefs.h >>conftest.$ac_ext
6456cat >>conftest.$ac_ext <<_ACEOF
6457/* end confdefs.h. */
6458$ac_includes_default
6459int
6460main ()
6461{
6462if (sizeof (pid_t))
6463 return 0;
6464 ;
6465 return 0;
6466}
6467_ACEOF
6468rm -f conftest.$ac_objext
6469if { (ac_try="$ac_compile"
6470case "(($ac_try" in
6471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6472 *) ac_try_echo=$ac_try;;
6473esac
6474eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6475$as_echo "$ac_try_echo") >&5
6476 (eval "$ac_compile") 2>conftest.er1
6477 ac_status=$?
6478 grep -v '^ *+' conftest.er1 >conftest.err
6479 rm -f conftest.er1
6480 cat conftest.err >&5
6481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } && {
6483 test -z "$ac_c_werror_flag" ||
6484 test ! -s conftest.err
6485 } && test -s conftest.$ac_objext; then
6486 cat >conftest.$ac_ext <<_ACEOF
6487/* confdefs.h. */
6488_ACEOF
6489cat confdefs.h >>conftest.$ac_ext
6490cat >>conftest.$ac_ext <<_ACEOF
6491/* end confdefs.h. */
6492$ac_includes_default
6493int
6494main ()
6495{
6496if (sizeof ((pid_t)))
6497 return 0;
6498 ;
6499 return 0;
6500}
6501_ACEOF
6502rm -f conftest.$ac_objext
6503if { (ac_try="$ac_compile"
6504case "(($ac_try" in
6505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6506 *) ac_try_echo=$ac_try;;
6507esac
6508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6509$as_echo "$ac_try_echo") >&5
6510 (eval "$ac_compile") 2>conftest.er1
6511 ac_status=$?
6512 grep -v '^ *+' conftest.er1 >conftest.err
6513 rm -f conftest.er1
6514 cat conftest.err >&5
6515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); } && {
6517 test -z "$ac_c_werror_flag" ||
6518 test ! -s conftest.err
6519 } && test -s conftest.$ac_objext; then
6520 :
6521else
6522 $as_echo "$as_me: failed program was:" >&5
6523sed 's/^/| /' conftest.$ac_ext >&5
6524
6525 ac_cv_type_pid_t=yes
6526fi
6527
6528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6529else
6530 $as_echo "$as_me: failed program was:" >&5
6531sed 's/^/| /' conftest.$ac_ext >&5
6532
6533
6534fi
6535
6536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537fi
6538{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6539$as_echo "$ac_cv_type_pid_t" >&6; }
6540if test "x$ac_cv_type_pid_t" = x""yes; then
6541 :
6542else
6543
6544cat >>confdefs.h <<_ACEOF
6545#define pid_t int
6546_ACEOF
6547
6548fi
6549
6550{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6551$as_echo_n "checking return type of signal handlers... " >&6; }
6552if test "${ac_cv_type_signal+set}" = set; then
6553 $as_echo_n "(cached) " >&6
6554else
6555 cat >conftest.$ac_ext <<_ACEOF
6556/* confdefs.h. */
6557_ACEOF
6558cat confdefs.h >>conftest.$ac_ext
6559cat >>conftest.$ac_ext <<_ACEOF
6560/* end confdefs.h. */
6561#include <sys/types.h>
6562#include <signal.h>
6563
6564int
6565main ()
6566{
6567return *(signal (0, 0)) (0) == 1;
6568 ;
6569 return 0;
6570}
6571_ACEOF
6572rm -f conftest.$ac_objext
6573if { (ac_try="$ac_compile"
6574case "(($ac_try" in
6575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576 *) ac_try_echo=$ac_try;;
6577esac
6578eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6579$as_echo "$ac_try_echo") >&5
6580 (eval "$ac_compile") 2>conftest.er1
6581 ac_status=$?
6582 grep -v '^ *+' conftest.er1 >conftest.err
6583 rm -f conftest.er1
6584 cat conftest.err >&5
6585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } && {
6587 test -z "$ac_c_werror_flag" ||
6588 test ! -s conftest.err
6589 } && test -s conftest.$ac_objext; then
6590 ac_cv_type_signal=int
6591else
6592 $as_echo "$as_me: failed program was:" >&5
6593sed 's/^/| /' conftest.$ac_ext >&5
6594
6595 ac_cv_type_signal=void
6596fi
6597
6598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6599fi
6600{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6601$as_echo "$ac_cv_type_signal" >&6; }
6602
6603cat >>confdefs.h <<_ACEOF
6604#define RETSIGTYPE $ac_cv_type_signal
6605_ACEOF
6606
6607
6608{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
6609$as_echo_n "checking for size_t... " >&6; }
6610if test "${ac_cv_type_size_t+set}" = set; then
6611 $as_echo_n "(cached) " >&6
6612else
6613 ac_cv_type_size_t=no
6614cat >conftest.$ac_ext <<_ACEOF
6615/* confdefs.h. */
6616_ACEOF
6617cat confdefs.h >>conftest.$ac_ext
6618cat >>conftest.$ac_ext <<_ACEOF
6619/* end confdefs.h. */
6620$ac_includes_default
6621int
6622main ()
6623{
6624if (sizeof (size_t))
6625 return 0;
6626 ;
6627 return 0;
6628}
6629_ACEOF
6630rm -f conftest.$ac_objext
6631if { (ac_try="$ac_compile"
6632case "(($ac_try" in
6633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634 *) ac_try_echo=$ac_try;;
6635esac
6636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6637$as_echo "$ac_try_echo") >&5
6638 (eval "$ac_compile") 2>conftest.er1
6639 ac_status=$?
6640 grep -v '^ *+' conftest.er1 >conftest.err
6641 rm -f conftest.er1
6642 cat conftest.err >&5
6643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); } && {
6645 test -z "$ac_c_werror_flag" ||
6646 test ! -s conftest.err
6647 } && test -s conftest.$ac_objext; then
6648 cat >conftest.$ac_ext <<_ACEOF
6649/* confdefs.h. */
6650_ACEOF
6651cat confdefs.h >>conftest.$ac_ext
6652cat >>conftest.$ac_ext <<_ACEOF
6653/* end confdefs.h. */
6654$ac_includes_default
6655int
6656main ()
6657{
6658if (sizeof ((size_t)))
6659 return 0;
6660 ;
6661 return 0;
6662}
6663_ACEOF
6664rm -f conftest.$ac_objext
6665if { (ac_try="$ac_compile"
6666case "(($ac_try" in
6667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6668 *) ac_try_echo=$ac_try;;
6669esac
6670eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6671$as_echo "$ac_try_echo") >&5
6672 (eval "$ac_compile") 2>conftest.er1
6673 ac_status=$?
6674 grep -v '^ *+' conftest.er1 >conftest.err
6675 rm -f conftest.er1
6676 cat conftest.err >&5
6677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } && {
6679 test -z "$ac_c_werror_flag" ||
6680 test ! -s conftest.err
6681 } && test -s conftest.$ac_objext; then
6682 :
ad6254c5 6683else
d911ec67
AK
6684 $as_echo "$as_me: failed program was:" >&5
6685sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 6686
d911ec67 6687 ac_cv_type_size_t=yes
ad6254c5 6688fi
4922197a 6689
d911ec67 6690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922197a 6691else
d911ec67
AK
6692 $as_echo "$as_me: failed program was:" >&5
6693sed 's/^/| /' conftest.$ac_ext >&5
d0191583
JM
6694
6695
d911ec67 6696fi
d0191583 6697
d911ec67
AK
6698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6699fi
6700{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6701$as_echo "$ac_cv_type_size_t" >&6; }
6702if test "x$ac_cv_type_size_t" = x""yes; then
6703 :
6704else
d0191583 6705
d911ec67
AK
6706cat >>confdefs.h <<_ACEOF
6707#define size_t unsigned int
6708_ACEOF
d0191583 6709
d911ec67 6710fi
d0191583 6711
d911ec67
AK
6712{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6713$as_echo_n "checking for mode_t... " >&6; }
6714if test "${ac_cv_type_mode_t+set}" = set; then
ec6a6fbe 6715 $as_echo_n "(cached) " >&6
795ca3e5 6716else
d911ec67 6717 ac_cv_type_mode_t=no
ad6254c5 6718cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6719/* confdefs.h. */
6720_ACEOF
6721cat confdefs.h >>conftest.$ac_ext
6722cat >>conftest.$ac_ext <<_ACEOF
6723/* end confdefs.h. */
6724$ac_includes_default
d911ec67
AK
6725int
6726main ()
6727{
6728if (sizeof (mode_t))
6729 return 0;
6730 ;
6731 return 0;
6732}
ad6254c5
AK
6733_ACEOF
6734rm -f conftest.$ac_objext
7a197a62
AK
6735if { (ac_try="$ac_compile"
6736case "(($ac_try" in
6737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6738 *) ac_try_echo=$ac_try;;
6739esac
ec6a6fbe
AK
6740eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6741$as_echo "$ac_try_echo") >&5
7a197a62 6742 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6743 ac_status=$?
8a2fc586
AK
6744 grep -v '^ *+' conftest.er1 >conftest.err
6745 rm -f conftest.er1
6746 cat conftest.err >&5
ec6a6fbe 6747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6748 (exit $ac_status); } && {
6749 test -z "$ac_c_werror_flag" ||
6750 test ! -s conftest.err
6751 } && test -s conftest.$ac_objext; then
d911ec67 6752 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6753/* confdefs.h. */
6754_ACEOF
6755cat confdefs.h >>conftest.$ac_ext
6756cat >>conftest.$ac_ext <<_ACEOF
6757/* end confdefs.h. */
d911ec67
AK
6758$ac_includes_default
6759int
6760main ()
6761{
6762if (sizeof ((mode_t)))
6763 return 0;
6764 ;
6765 return 0;
6766}
ad6254c5 6767_ACEOF
d911ec67
AK
6768rm -f conftest.$ac_objext
6769if { (ac_try="$ac_compile"
7a197a62
AK
6770case "(($ac_try" in
6771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6772 *) ac_try_echo=$ac_try;;
6773esac
ec6a6fbe
AK
6774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6775$as_echo "$ac_try_echo") >&5
d911ec67 6776 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
6777 ac_status=$?
6778 grep -v '^ *+' conftest.er1 >conftest.err
6779 rm -f conftest.er1
6780 cat conftest.err >&5
ec6a6fbe 6781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d911ec67
AK
6782 (exit $ac_status); } && {
6783 test -z "$ac_c_werror_flag" ||
25fbec5b 6784 test ! -s conftest.err
d911ec67
AK
6785 } && test -s conftest.$ac_objext; then
6786 :
ad6254c5 6787else
ec6a6fbe 6788 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6789sed 's/^/| /' conftest.$ac_ext >&5
6790
d911ec67 6791 ac_cv_type_mode_t=yes
ad6254c5 6792fi
7a197a62 6793
d911ec67
AK
6794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6795else
6796 $as_echo "$as_me: failed program was:" >&5
6797sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 6798
7a197a62 6799
80992638
AK
6800fi
6801
d911ec67 6802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6803fi
d911ec67
AK
6804{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6805$as_echo "$ac_cv_type_mode_t" >&6; }
6806if test "x$ac_cv_type_mode_t" = x""yes; then
6807 :
795ca3e5 6808else
80992638 6809
d911ec67
AK
6810cat >>confdefs.h <<_ACEOF
6811#define mode_t int
6812_ACEOF
ad6254c5 6813
d911ec67 6814fi
795ca3e5 6815
d0191583 6816
d911ec67
AK
6817 { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
6818$as_echo_n "checking for int8_t... " >&6; }
6819if test "${ac_cv_c_int8_t+set}" = set; then
ec6a6fbe 6820 $as_echo_n "(cached) " >&6
ad6254c5 6821else
d911ec67
AK
6822 ac_cv_c_int8_t=no
6823 for ac_type in 'int8_t' 'int' 'long int' \
6824 'long long int' 'short int' 'signed char'; do
6825 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6826/* confdefs.h. */
6827_ACEOF
6828cat confdefs.h >>conftest.$ac_ext
6829cat >>conftest.$ac_ext <<_ACEOF
6830/* end confdefs.h. */
6831$ac_includes_default
d911ec67
AK
6832int
6833main ()
6834{
6835static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
6836test_array [0] = 0
6837
6838 ;
6839 return 0;
6840}
ad6254c5
AK
6841_ACEOF
6842rm -f conftest.$ac_objext
7a197a62
AK
6843if { (ac_try="$ac_compile"
6844case "(($ac_try" in
6845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6846 *) ac_try_echo=$ac_try;;
6847esac
ec6a6fbe
AK
6848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6849$as_echo "$ac_try_echo") >&5
7a197a62 6850 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6851 ac_status=$?
8a2fc586
AK
6852 grep -v '^ *+' conftest.er1 >conftest.err
6853 rm -f conftest.er1
6854 cat conftest.err >&5
ec6a6fbe 6855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6856 (exit $ac_status); } && {
6857 test -z "$ac_c_werror_flag" ||
6858 test ! -s conftest.err
6859 } && test -s conftest.$ac_objext; then
d911ec67 6860 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6861/* confdefs.h. */
6862_ACEOF
6863cat confdefs.h >>conftest.$ac_ext
6864cat >>conftest.$ac_ext <<_ACEOF
6865/* end confdefs.h. */
d911ec67
AK
6866$ac_includes_default
6867int
6868main ()
6869{
6870static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
6871 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
6872test_array [0] = 0
6873
6874 ;
6875 return 0;
6876}
ad6254c5 6877_ACEOF
d911ec67
AK
6878rm -f conftest.$ac_objext
6879if { (ac_try="$ac_compile"
7a197a62
AK
6880case "(($ac_try" in
6881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6882 *) ac_try_echo=$ac_try;;
6883esac
ec6a6fbe
AK
6884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6885$as_echo "$ac_try_echo") >&5
d911ec67 6886 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
6887 ac_status=$?
6888 grep -v '^ *+' conftest.er1 >conftest.err
6889 rm -f conftest.er1
6890 cat conftest.err >&5
ec6a6fbe 6891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d911ec67
AK
6892 (exit $ac_status); } && {
6893 test -z "$ac_c_werror_flag" ||
25fbec5b 6894 test ! -s conftest.err
d911ec67
AK
6895 } && test -s conftest.$ac_objext; then
6896 :
ad6254c5 6897else
ec6a6fbe 6898 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6899sed 's/^/| /' conftest.$ac_ext >&5
6900
d911ec67
AK
6901 case $ac_type in
6902 int8_t) ac_cv_c_int8_t=yes ;;
6903 *) ac_cv_c_int8_t=$ac_type ;;
6904esac
ad6254c5 6905
d911ec67 6906fi
7a197a62 6907
d911ec67 6908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6909else
d911ec67
AK
6910 $as_echo "$as_me: failed program was:" >&5
6911sed 's/^/| /' conftest.$ac_ext >&5
6912
b896caa1 6913
ad6254c5 6914fi
ad6254c5 6915
d911ec67
AK
6916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6917 test "$ac_cv_c_int8_t" != no && break
6918 done
80992638 6919fi
d911ec67
AK
6920{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
6921$as_echo "$ac_cv_c_int8_t" >&6; }
6922 case $ac_cv_c_int8_t in #(
6923 no|yes) ;; #(
6924 *)
80992638 6925
d911ec67
AK
6926cat >>confdefs.h <<_ACEOF
6927#define int8_t $ac_cv_c_int8_t
6928_ACEOF
6929;;
6930 esac
d0191583 6931
d3c8211f 6932
d911ec67
AK
6933 { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
6934$as_echo_n "checking for int16_t... " >&6; }
6935if test "${ac_cv_c_int16_t+set}" = set; then
ec6a6fbe 6936 $as_echo_n "(cached) " >&6
d3c8211f 6937else
d911ec67
AK
6938 ac_cv_c_int16_t=no
6939 for ac_type in 'int16_t' 'int' 'long int' \
6940 'long long int' 'short int' 'signed char'; do
6941 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6942/* confdefs.h. */
6943_ACEOF
6944cat confdefs.h >>conftest.$ac_ext
6945cat >>conftest.$ac_ext <<_ACEOF
6946/* end confdefs.h. */
d911ec67 6947$ac_includes_default
ad6254c5
AK
6948int
6949main ()
6950{
d911ec67
AK
6951static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
6952test_array [0] = 0
ad6254c5
AK
6953
6954 ;
6955 return 0;
6956}
6957_ACEOF
6958rm -f conftest.$ac_objext
7a197a62
AK
6959if { (ac_try="$ac_compile"
6960case "(($ac_try" in
6961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6962 *) ac_try_echo=$ac_try;;
6963esac
ec6a6fbe
AK
6964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6965$as_echo "$ac_try_echo") >&5
7a197a62 6966 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6967 ac_status=$?
8a2fc586
AK
6968 grep -v '^ *+' conftest.er1 >conftest.err
6969 rm -f conftest.er1
6970 cat conftest.err >&5
ec6a6fbe 6971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6972 (exit $ac_status); } && {
6973 test -z "$ac_c_werror_flag" ||
6974 test ! -s conftest.err
6975 } && test -s conftest.$ac_objext; then
ad6254c5 6976 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6977/* confdefs.h. */
6978_ACEOF
6979cat confdefs.h >>conftest.$ac_ext
6980cat >>conftest.$ac_ext <<_ACEOF
6981/* end confdefs.h. */
d911ec67
AK
6982$ac_includes_default
6983int
6984main ()
6985{
6986static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
6987 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
6988test_array [0] = 0
80992638 6989
d911ec67
AK
6990 ;
6991 return 0;
6992}
ad6254c5
AK
6993_ACEOF
6994rm -f conftest.$ac_objext
7a197a62
AK
6995if { (ac_try="$ac_compile"
6996case "(($ac_try" in
6997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6998 *) ac_try_echo=$ac_try;;
6999esac
ec6a6fbe
AK
7000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7001$as_echo "$ac_try_echo") >&5
7a197a62 7002 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7003 ac_status=$?
8a2fc586
AK
7004 grep -v '^ *+' conftest.er1 >conftest.err
7005 rm -f conftest.er1
7006 cat conftest.err >&5
ec6a6fbe 7007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7008 (exit $ac_status); } && {
7009 test -z "$ac_c_werror_flag" ||
7010 test ! -s conftest.err
7011 } && test -s conftest.$ac_objext; then
d911ec67 7012 :
ad6254c5 7013else
ec6a6fbe 7014 $as_echo "$as_me: failed program was:" >&5
ad6254c5 7015sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 7016
d911ec67
AK
7017 case $ac_type in
7018 int16_t) ac_cv_c_int16_t=yes ;;
7019 *) ac_cv_c_int16_t=$ac_type ;;
7020esac
7a197a62 7021
8ce0cbda 7022fi
7a197a62
AK
7023
7024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7025else
7026 $as_echo "$as_me: failed program was:" >&5
7027sed 's/^/| /' conftest.$ac_ext >&5
8ce0cbda 7028
8a2fc586 7029
d911ec67 7030fi
8a2fc586 7031
d911ec67
AK
7032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7033 test "$ac_cv_c_int16_t" != no && break
7034 done
7035fi
7036{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
7037$as_echo "$ac_cv_c_int16_t" >&6; }
7038 case $ac_cv_c_int16_t in #(
7039 no|yes) ;; #(
8a2fc586 7040 *)
d911ec67
AK
7041
7042cat >>confdefs.h <<_ACEOF
7043#define int16_t $ac_cv_c_int16_t
c1c065a3 7044_ACEOF
d911ec67
AK
7045;;
7046 esac
d0191583 7047
d911ec67
AK
7048
7049 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
7050$as_echo_n "checking for int32_t... " >&6; }
7051if test "${ac_cv_c_int32_t+set}" = set; then
ec6a6fbe 7052 $as_echo_n "(cached) " >&6
d0191583 7053else
d911ec67
AK
7054 ac_cv_c_int32_t=no
7055 for ac_type in 'int32_t' 'int' 'long int' \
7056 'long long int' 'short int' 'signed char'; do
7057 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
7058/* confdefs.h. */
7059_ACEOF
7060cat confdefs.h >>conftest.$ac_ext
7061cat >>conftest.$ac_ext <<_ACEOF
7062/* end confdefs.h. */
7063$ac_includes_default
7064int
7065main ()
7066{
d911ec67
AK
7067static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7068test_array [0] = 0
7069
d0191583
JM
7070 ;
7071 return 0;
7072}
7073_ACEOF
7074rm -f conftest.$ac_objext
7075if { (ac_try="$ac_compile"
7076case "(($ac_try" in
7077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7078 *) ac_try_echo=$ac_try;;
7079esac
ec6a6fbe
AK
7080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7081$as_echo "$ac_try_echo") >&5
7082 (eval "$ac_compile") 2>conftest.er1
7083 ac_status=$?
7084 grep -v '^ *+' conftest.er1 >conftest.err
7085 rm -f conftest.er1
7086 cat conftest.err >&5
7087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); } && {
7089 test -z "$ac_c_werror_flag" ||
7090 test ! -s conftest.err
7091 } && test -s conftest.$ac_objext; then
d911ec67 7092 cat >conftest.$ac_ext <<_ACEOF
ec6a6fbe
AK
7093/* confdefs.h. */
7094_ACEOF
7095cat confdefs.h >>conftest.$ac_ext
7096cat >>conftest.$ac_ext <<_ACEOF
7097/* end confdefs.h. */
7098$ac_includes_default
7099int
7100main ()
7101{
d911ec67
AK
7102static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7103 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7104test_array [0] = 0
7105
ec6a6fbe
AK
7106 ;
7107 return 0;
7108}
7109_ACEOF
7110rm -f conftest.$ac_objext
7111if { (ac_try="$ac_compile"
7112case "(($ac_try" in
7113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7114 *) ac_try_echo=$ac_try;;
7115esac
7116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7117$as_echo "$ac_try_echo") >&5
7118 (eval "$ac_compile") 2>conftest.er1
7119 ac_status=$?
7120 grep -v '^ *+' conftest.er1 >conftest.err
7121 rm -f conftest.er1
7122 cat conftest.err >&5
7123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } && {
7125 test -z "$ac_c_werror_flag" ||
7126 test ! -s conftest.err
7127 } && test -s conftest.$ac_objext; then
d911ec67 7128 :
ec6a6fbe
AK
7129else
7130 $as_echo "$as_me: failed program was:" >&5
7131sed 's/^/| /' conftest.$ac_ext >&5
7132
d911ec67
AK
7133 case $ac_type in
7134 int32_t) ac_cv_c_int32_t=yes ;;
7135 *) ac_cv_c_int32_t=$ac_type ;;
7136esac
7137
ec6a6fbe
AK
7138fi
7139
7140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7141else
7142 $as_echo "$as_me: failed program was:" >&5
7143sed 's/^/| /' conftest.$ac_ext >&5
7144
7145
ec6a6fbe
AK
7146fi
7147
7148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7149 test "$ac_cv_c_int32_t" != no && break
7150 done
ec6a6fbe 7151fi
d911ec67
AK
7152{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7153$as_echo "$ac_cv_c_int32_t" >&6; }
7154 case $ac_cv_c_int32_t in #(
7155 no|yes) ;; #(
7156 *)
ec6a6fbe
AK
7157
7158cat >>confdefs.h <<_ACEOF
d911ec67 7159#define int32_t $ac_cv_c_int32_t
ec6a6fbe 7160_ACEOF
d911ec67
AK
7161;;
7162 esac
ec6a6fbe
AK
7163
7164
d911ec67
AK
7165 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
7166$as_echo_n "checking for int64_t... " >&6; }
7167if test "${ac_cv_c_int64_t+set}" = set; then
ec6a6fbe
AK
7168 $as_echo_n "(cached) " >&6
7169else
d911ec67
AK
7170 ac_cv_c_int64_t=no
7171 for ac_type in 'int64_t' 'int' 'long int' \
7172 'long long int' 'short int' 'signed char'; do
7173 cat >conftest.$ac_ext <<_ACEOF
ec6a6fbe
AK
7174/* confdefs.h. */
7175_ACEOF
7176cat confdefs.h >>conftest.$ac_ext
7177cat >>conftest.$ac_ext <<_ACEOF
7178/* end confdefs.h. */
7179$ac_includes_default
7180int
7181main ()
7182{
d911ec67
AK
7183static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7184test_array [0] = 0
7185
ec6a6fbe
AK
7186 ;
7187 return 0;
7188}
7189_ACEOF
7190rm -f conftest.$ac_objext
7191if { (ac_try="$ac_compile"
7192case "(($ac_try" in
7193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7194 *) ac_try_echo=$ac_try;;
7195esac
7196eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7197$as_echo "$ac_try_echo") >&5
7198 (eval "$ac_compile") 2>conftest.er1
7199 ac_status=$?
7200 grep -v '^ *+' conftest.er1 >conftest.err
7201 rm -f conftest.er1
7202 cat conftest.err >&5
7203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } && {
7205 test -z "$ac_c_werror_flag" ||
7206 test ! -s conftest.err
7207 } && test -s conftest.$ac_objext; then
7208 cat >conftest.$ac_ext <<_ACEOF
7209/* confdefs.h. */
7210_ACEOF
7211cat confdefs.h >>conftest.$ac_ext
7212cat >>conftest.$ac_ext <<_ACEOF
7213/* end confdefs.h. */
7214$ac_includes_default
7215int
7216main ()
7217{
d911ec67
AK
7218static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7219 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7220test_array [0] = 0
7221
ec6a6fbe
AK
7222 ;
7223 return 0;
7224}
7225_ACEOF
7226rm -f conftest.$ac_objext
7227if { (ac_try="$ac_compile"
7228case "(($ac_try" in
7229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7230 *) ac_try_echo=$ac_try;;
7231esac
7232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7233$as_echo "$ac_try_echo") >&5
7234 (eval "$ac_compile") 2>conftest.er1
7235 ac_status=$?
7236 grep -v '^ *+' conftest.er1 >conftest.err
7237 rm -f conftest.er1
7238 cat conftest.err >&5
7239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); } && {
7241 test -z "$ac_c_werror_flag" ||
7242 test ! -s conftest.err
7243 } && test -s conftest.$ac_objext; then
7244 :
7245else
7246 $as_echo "$as_me: failed program was:" >&5
7247sed 's/^/| /' conftest.$ac_ext >&5
7248
d911ec67
AK
7249 case $ac_type in
7250 int64_t) ac_cv_c_int64_t=yes ;;
7251 *) ac_cv_c_int64_t=$ac_type ;;
7252esac
7253
ec6a6fbe
AK
7254fi
7255
7256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257else
7258 $as_echo "$as_me: failed program was:" >&5
7259sed 's/^/| /' conftest.$ac_ext >&5
7260
7261
7262fi
7263
7264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7265 test "$ac_cv_c_int64_t" != no && break
7266 done
ec6a6fbe 7267fi
d911ec67
AK
7268{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7269$as_echo "$ac_cv_c_int64_t" >&6; }
7270 case $ac_cv_c_int64_t in #(
7271 no|yes) ;; #(
7272 *)
ec6a6fbe
AK
7273
7274cat >>confdefs.h <<_ACEOF
d911ec67 7275#define int64_t $ac_cv_c_int64_t
ec6a6fbe 7276_ACEOF
d911ec67
AK
7277;;
7278 esac
ec6a6fbe 7279
d911ec67
AK
7280{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
7281$as_echo_n "checking for ssize_t... " >&6; }
7282if test "${ac_cv_type_ssize_t+set}" = set; then
ec6a6fbe
AK
7283 $as_echo_n "(cached) " >&6
7284else
d911ec67 7285 ac_cv_type_ssize_t=no
ec6a6fbe
AK
7286cat >conftest.$ac_ext <<_ACEOF
7287/* confdefs.h. */
7288_ACEOF
7289cat confdefs.h >>conftest.$ac_ext
7290cat >>conftest.$ac_ext <<_ACEOF
7291/* end confdefs.h. */
7292$ac_includes_default
7293int
7294main ()
7295{
d911ec67 7296if (sizeof (ssize_t))
ec6a6fbe
AK
7297 return 0;
7298 ;
7299 return 0;
7300}
7301_ACEOF
7302rm -f conftest.$ac_objext
7303if { (ac_try="$ac_compile"
7304case "(($ac_try" in
7305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7306 *) ac_try_echo=$ac_try;;
7307esac
7308eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7309$as_echo "$ac_try_echo") >&5
d0191583
JM
7310 (eval "$ac_compile") 2>conftest.er1
7311 ac_status=$?
7312 grep -v '^ *+' conftest.er1 >conftest.err
7313 rm -f conftest.er1
7314 cat conftest.err >&5
ec6a6fbe 7315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
7316 (exit $ac_status); } && {
7317 test -z "$ac_c_werror_flag" ||
7318 test ! -s conftest.err
7319 } && test -s conftest.$ac_objext; then
ec6a6fbe 7320 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
7321/* confdefs.h. */
7322_ACEOF
7323cat confdefs.h >>conftest.$ac_ext
7324cat >>conftest.$ac_ext <<_ACEOF
7325/* end confdefs.h. */
7326$ac_includes_default
7327int
7328main ()
7329{
d911ec67 7330if (sizeof ((ssize_t)))
ec6a6fbe 7331 return 0;
d0191583
JM
7332 ;
7333 return 0;
7334}
7335_ACEOF
7336rm -f conftest.$ac_objext
7337if { (ac_try="$ac_compile"
7338case "(($ac_try" in
7339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7340 *) ac_try_echo=$ac_try;;
7341esac
ec6a6fbe
AK
7342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7343$as_echo "$ac_try_echo") >&5
d0191583
JM
7344 (eval "$ac_compile") 2>conftest.er1
7345 ac_status=$?
7346 grep -v '^ *+' conftest.er1 >conftest.err
7347 rm -f conftest.er1
7348 cat conftest.err >&5
ec6a6fbe 7349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
7350 (exit $ac_status); } && {
7351 test -z "$ac_c_werror_flag" ||
7352 test ! -s conftest.err
7353 } && test -s conftest.$ac_objext; then
ec6a6fbe 7354 :
d0191583 7355else
ec6a6fbe 7356 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
7357sed 's/^/| /' conftest.$ac_ext >&5
7358
d911ec67 7359 ac_cv_type_ssize_t=yes
d0191583
JM
7360fi
7361
7362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7363else
7364 $as_echo "$as_me: failed program was:" >&5
7365sed 's/^/| /' conftest.$ac_ext >&5
7366
7367
d0191583
JM
7368fi
7369
7370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7371fi
d911ec67
AK
7372{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7373$as_echo "$ac_cv_type_ssize_t" >&6; }
7374if test "x$ac_cv_type_ssize_t" = x""yes; then
ec6a6fbe
AK
7375 :
7376else
d0191583
JM
7377
7378cat >>confdefs.h <<_ACEOF
d911ec67 7379#define ssize_t int
d0191583
JM
7380_ACEOF
7381
d0191583 7382fi
8ce0cbda 7383
d911ec67
AK
7384{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7385$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7386if test "${ac_cv_type_uid_t+set}" = set; then
ec6a6fbe 7387 $as_echo_n "(cached) " >&6
ad6254c5 7388else
b145d876
ZK
7389 cat >conftest.$ac_ext <<_ACEOF
7390/* confdefs.h. */
7391_ACEOF
7392cat confdefs.h >>conftest.$ac_ext
7393cat >>conftest.$ac_ext <<_ACEOF
7394/* end confdefs.h. */
ec6a6fbe 7395#include <sys/types.h>
ec6a6fbe 7396
ad6254c5 7397_ACEOF
d911ec67
AK
7398if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7399 $EGREP "uid_t" >/dev/null 2>&1; then
7400 ac_cv_type_uid_t=yes
b145d876 7401else
d911ec67 7402 ac_cv_type_uid_t=no
ad6254c5 7403fi
d911ec67 7404rm -f conftest*
b145d876 7405
b145d876 7406fi
d911ec67
AK
7407{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7408$as_echo "$ac_cv_type_uid_t" >&6; }
7409if test $ac_cv_type_uid_t = no; then
80992638 7410
d911ec67
AK
7411cat >>confdefs.h <<\_ACEOF
7412#define uid_t int
ad6254c5 7413_ACEOF
199e490e 7414
b896caa1 7415
d911ec67
AK
7416cat >>confdefs.h <<\_ACEOF
7417#define gid_t int
7418_ACEOF
7419
7420fi
7421
7422
7423 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
7424$as_echo_n "checking for uint8_t... " >&6; }
7425if test "${ac_cv_c_uint8_t+set}" = set; then
ec6a6fbe 7426 $as_echo_n "(cached) " >&6
ad6254c5 7427else
d911ec67
AK
7428 ac_cv_c_uint8_t=no
7429 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
7430 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7431 cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
7432/* confdefs.h. */
7433_ACEOF
7434cat confdefs.h >>conftest.$ac_ext
7435cat >>conftest.$ac_ext <<_ACEOF
7436/* end confdefs.h. */
7437$ac_includes_default
7438int
7439main ()
7440{
d911ec67
AK
7441static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
7442test_array [0] = 0
7443
ad6254c5
AK
7444 ;
7445 return 0;
7446}
7447_ACEOF
7448rm -f conftest.$ac_objext
7a197a62
AK
7449if { (ac_try="$ac_compile"
7450case "(($ac_try" in
7451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7452 *) ac_try_echo=$ac_try;;
7453esac
ec6a6fbe
AK
7454eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7455$as_echo "$ac_try_echo") >&5
7a197a62 7456 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7457 ac_status=$?
8a2fc586
AK
7458 grep -v '^ *+' conftest.er1 >conftest.err
7459 rm -f conftest.er1
7460 cat conftest.err >&5
ec6a6fbe 7461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7462 (exit $ac_status); } && {
7463 test -z "$ac_c_werror_flag" ||
7464 test ! -s conftest.err
7465 } && test -s conftest.$ac_objext; then
d911ec67
AK
7466 case $ac_type in
7467 uint8_t) ac_cv_c_uint8_t=yes ;;
7468 *) ac_cv_c_uint8_t=$ac_type ;;
7469esac
7470
7471else
7472 $as_echo "$as_me: failed program was:" >&5
7473sed 's/^/| /' conftest.$ac_ext >&5
7474
7475
7476fi
7477
7478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7479 test "$ac_cv_c_uint8_t" != no && break
7480 done
7481fi
7482{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
7483$as_echo "$ac_cv_c_uint8_t" >&6; }
7484 case $ac_cv_c_uint8_t in #(
7485 no|yes) ;; #(
7486 *)
7487
7488cat >>confdefs.h <<\_ACEOF
7489#define _UINT8_T 1
7490_ACEOF
7491
7492
7493cat >>confdefs.h <<_ACEOF
7494#define uint8_t $ac_cv_c_uint8_t
7495_ACEOF
7496;;
7497 esac
7498
7499
7500 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
7501$as_echo_n "checking for uint16_t... " >&6; }
7502if test "${ac_cv_c_uint16_t+set}" = set; then
7503 $as_echo_n "(cached) " >&6
7504else
7505 ac_cv_c_uint16_t=no
7506 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
7507 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7508 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
7509/* confdefs.h. */
7510_ACEOF
7511cat confdefs.h >>conftest.$ac_ext
7512cat >>conftest.$ac_ext <<_ACEOF
7513/* end confdefs.h. */
ec6a6fbe 7514$ac_includes_default
d0191583
JM
7515int
7516main ()
7517{
d911ec67
AK
7518static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
7519test_array [0] = 0
7520
d0191583
JM
7521 ;
7522 return 0;
7523}
7524_ACEOF
7525rm -f conftest.$ac_objext
7526if { (ac_try="$ac_compile"
7527case "(($ac_try" in
7528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7529 *) ac_try_echo=$ac_try;;
7530esac
ec6a6fbe
AK
7531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7532$as_echo "$ac_try_echo") >&5
d0191583
JM
7533 (eval "$ac_compile") 2>conftest.er1
7534 ac_status=$?
7535 grep -v '^ *+' conftest.er1 >conftest.err
7536 rm -f conftest.er1
7537 cat conftest.err >&5
ec6a6fbe 7538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
7539 (exit $ac_status); } && {
7540 test -z "$ac_c_werror_flag" ||
7541 test ! -s conftest.err
7542 } && test -s conftest.$ac_objext; then
d911ec67
AK
7543 case $ac_type in
7544 uint16_t) ac_cv_c_uint16_t=yes ;;
7545 *) ac_cv_c_uint16_t=$ac_type ;;
7546esac
ec6a6fbe 7547
ec6a6fbe
AK
7548else
7549 $as_echo "$as_me: failed program was:" >&5
7550sed 's/^/| /' conftest.$ac_ext >&5
7551
7552
d0191583
JM
7553fi
7554
7555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7556 test "$ac_cv_c_uint16_t" != no && break
7557 done
d0191583 7558fi
d911ec67
AK
7559{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
7560$as_echo "$ac_cv_c_uint16_t" >&6; }
7561 case $ac_cv_c_uint16_t in #(
7562 no|yes) ;; #(
7563 *)
7564
d0191583
JM
7565
7566cat >>confdefs.h <<_ACEOF
d911ec67 7567#define uint16_t $ac_cv_c_uint16_t
d0191583 7568_ACEOF
d911ec67
AK
7569;;
7570 esac
d0191583
JM
7571
7572
d911ec67
AK
7573 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
7574$as_echo_n "checking for uint32_t... " >&6; }
7575if test "${ac_cv_c_uint32_t+set}" = set; then
ec6a6fbe 7576 $as_echo_n "(cached) " >&6
8106cdd5 7577else
d911ec67
AK
7578 ac_cv_c_uint32_t=no
7579 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7580 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7581 cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
7582/* confdefs.h. */
7583_ACEOF
7584cat confdefs.h >>conftest.$ac_ext
7585cat >>conftest.$ac_ext <<_ACEOF
7586/* end confdefs.h. */
7587$ac_includes_default
7588int
7589main ()
7590{
d911ec67
AK
7591static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7592test_array [0] = 0
7593
ad6254c5
AK
7594 ;
7595 return 0;
7596}
7597_ACEOF
7598rm -f conftest.$ac_objext
7a197a62
AK
7599if { (ac_try="$ac_compile"
7600case "(($ac_try" in
7601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7602 *) ac_try_echo=$ac_try;;
7603esac
ec6a6fbe
AK
7604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7605$as_echo "$ac_try_echo") >&5
7a197a62 7606 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7607 ac_status=$?
8a2fc586
AK
7608 grep -v '^ *+' conftest.er1 >conftest.err
7609 rm -f conftest.er1
7610 cat conftest.err >&5
ec6a6fbe 7611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7612 (exit $ac_status); } && {
7613 test -z "$ac_c_werror_flag" ||
7614 test ! -s conftest.err
7615 } && test -s conftest.$ac_objext; then
d911ec67
AK
7616 case $ac_type in
7617 uint32_t) ac_cv_c_uint32_t=yes ;;
7618 *) ac_cv_c_uint32_t=$ac_type ;;
7619esac
7620
7621else
7622 $as_echo "$as_me: failed program was:" >&5
7623sed 's/^/| /' conftest.$ac_ext >&5
7624
7625
7626fi
7627
7628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7629 test "$ac_cv_c_uint32_t" != no && break
7630 done
7631fi
7632{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7633$as_echo "$ac_cv_c_uint32_t" >&6; }
7634 case $ac_cv_c_uint32_t in #(
7635 no|yes) ;; #(
7636 *)
7637
7638cat >>confdefs.h <<\_ACEOF
7639#define _UINT32_T 1
7640_ACEOF
7641
7642
7643cat >>confdefs.h <<_ACEOF
7644#define uint32_t $ac_cv_c_uint32_t
7645_ACEOF
7646;;
7647 esac
7648
7649
7650 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
7651$as_echo_n "checking for uint64_t... " >&6; }
7652if test "${ac_cv_c_uint64_t+set}" = set; then
7653 $as_echo_n "(cached) " >&6
7654else
7655 ac_cv_c_uint64_t=no
7656 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7657 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7658 cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
7659/* confdefs.h. */
7660_ACEOF
7661cat confdefs.h >>conftest.$ac_ext
7662cat >>conftest.$ac_ext <<_ACEOF
7663/* end confdefs.h. */
7664$ac_includes_default
7665int
7666main ()
7667{
d911ec67
AK
7668static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7669test_array [0] = 0
7670
ad6254c5
AK
7671 ;
7672 return 0;
7673}
7674_ACEOF
7675rm -f conftest.$ac_objext
7a197a62
AK
7676if { (ac_try="$ac_compile"
7677case "(($ac_try" in
7678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679 *) ac_try_echo=$ac_try;;
7680esac
ec6a6fbe
AK
7681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7682$as_echo "$ac_try_echo") >&5
7a197a62 7683 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7684 ac_status=$?
8a2fc586
AK
7685 grep -v '^ *+' conftest.er1 >conftest.err
7686 rm -f conftest.er1
7687 cat conftest.err >&5
ec6a6fbe 7688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7689 (exit $ac_status); } && {
7690 test -z "$ac_c_werror_flag" ||
7691 test ! -s conftest.err
7692 } && test -s conftest.$ac_objext; then
d911ec67
AK
7693 case $ac_type in
7694 uint64_t) ac_cv_c_uint64_t=yes ;;
7695 *) ac_cv_c_uint64_t=$ac_type ;;
7696esac
ec6a6fbe 7697
fddafd51 7698else
ec6a6fbe 7699 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
7700sed 's/^/| /' conftest.$ac_ext >&5
7701
ec6a6fbe 7702
80992638 7703fi
7a197a62
AK
7704
7705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7706 test "$ac_cv_c_uint64_t" != no && break
7707 done
ad6254c5 7708fi
d911ec67
AK
7709{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7710$as_echo "$ac_cv_c_uint64_t" >&6; }
7711 case $ac_cv_c_uint64_t in #(
7712 no|yes) ;; #(
7713 *)
80992638 7714
d911ec67
AK
7715cat >>confdefs.h <<\_ACEOF
7716#define _UINT64_T 1
ad6254c5
AK
7717_ACEOF
7718
d911ec67
AK
7719
7720cat >>confdefs.h <<_ACEOF
7721#define uint64_t $ac_cv_c_uint64_t
7722_ACEOF
7723;;
7724 esac
ad6254c5 7725
ec6a6fbe
AK
7726{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
7727$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 7728if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 7729 $as_echo_n "(cached) " >&6
ad6254c5
AK
7730else
7731 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7732/* confdefs.h. */
7733_ACEOF
7734cat confdefs.h >>conftest.$ac_ext
7735cat >>conftest.$ac_ext <<_ACEOF
7736/* end confdefs.h. */
7737$ac_includes_default
7738int
7739main ()
7740{
7741static struct stat ac_aggr;
7742if (ac_aggr.st_rdev)
7743return 0;
7744 ;
7745 return 0;
7746}
7747_ACEOF
7748rm -f conftest.$ac_objext
7a197a62
AK
7749if { (ac_try="$ac_compile"
7750case "(($ac_try" in
7751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7752 *) ac_try_echo=$ac_try;;
7753esac
ec6a6fbe
AK
7754eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7755$as_echo "$ac_try_echo") >&5
7a197a62 7756 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7757 ac_status=$?
8a2fc586
AK
7758 grep -v '^ *+' conftest.er1 >conftest.err
7759 rm -f conftest.er1
7760 cat conftest.err >&5
ec6a6fbe 7761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7762 (exit $ac_status); } && {
7763 test -z "$ac_c_werror_flag" ||
7764 test ! -s conftest.err
7765 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7766 ac_cv_member_struct_stat_st_rdev=yes
7767else
ec6a6fbe 7768 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7769sed 's/^/| /' conftest.$ac_ext >&5
7770
7a197a62 7771 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7772/* confdefs.h. */
7773_ACEOF
7774cat confdefs.h >>conftest.$ac_ext
7775cat >>conftest.$ac_ext <<_ACEOF
7776/* end confdefs.h. */
7777$ac_includes_default
7778int
7779main ()
7780{
7781static struct stat ac_aggr;
7782if (sizeof ac_aggr.st_rdev)
7783return 0;
7784 ;
7785 return 0;
7786}
7787_ACEOF
7788rm -f conftest.$ac_objext
7a197a62
AK
7789if { (ac_try="$ac_compile"
7790case "(($ac_try" in
7791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7792 *) ac_try_echo=$ac_try;;
7793esac
ec6a6fbe
AK
7794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7795$as_echo "$ac_try_echo") >&5
7a197a62 7796 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7797 ac_status=$?
8a2fc586
AK
7798 grep -v '^ *+' conftest.er1 >conftest.err
7799 rm -f conftest.er1
7800 cat conftest.err >&5
ec6a6fbe 7801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7802 (exit $ac_status); } && {
7803 test -z "$ac_c_werror_flag" ||
7804 test ! -s conftest.err
7805 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7806 ac_cv_member_struct_stat_st_rdev=yes
7807else
ec6a6fbe 7808 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7809sed 's/^/| /' conftest.$ac_ext >&5
7810
7a197a62 7811 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 7812fi
7a197a62
AK
7813
7814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 7815fi
7a197a62
AK
7816
7817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 7818fi
ec6a6fbe
AK
7819{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7820$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
7821if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
ad6254c5
AK
7822
7823cat >>confdefs.h <<_ACEOF
7824#define HAVE_STRUCT_STAT_ST_RDEV 1
7825_ACEOF
7826
7827
ad6254c5
AK
7828fi
7829
ec6a6fbe
AK
7830{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7831$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 7832if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 7833 $as_echo_n "(cached) " >&6
ad6254c5
AK
7834else
7835 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7836/* confdefs.h. */
7837_ACEOF
7838cat confdefs.h >>conftest.$ac_ext
7839cat >>conftest.$ac_ext <<_ACEOF
7840/* end confdefs.h. */
7841#include <sys/types.h>
7842#include <time.h>
7843
7844int
7845main ()
7846{
25fbec5b
AK
7847struct tm tm;
7848 int *p = &tm.tm_sec;
ec6a6fbe 7849 return !p;
ad6254c5
AK
7850 ;
7851 return 0;
7852}
7853_ACEOF
7854rm -f conftest.$ac_objext
7a197a62
AK
7855if { (ac_try="$ac_compile"
7856case "(($ac_try" in
7857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7859esac
ec6a6fbe
AK
7860eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7861$as_echo "$ac_try_echo") >&5
7a197a62 7862 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7863 ac_status=$?
8a2fc586
AK
7864 grep -v '^ *+' conftest.er1 >conftest.err
7865 rm -f conftest.er1
7866 cat conftest.err >&5
ec6a6fbe 7867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7868 (exit $ac_status); } && {
7869 test -z "$ac_c_werror_flag" ||
7870 test ! -s conftest.err
d911ec67
AK
7871 } && test -s conftest.$ac_objext; then
7872 ac_cv_struct_tm=time.h
7873else
7874 $as_echo "$as_me: failed program was:" >&5
7875sed 's/^/| /' conftest.$ac_ext >&5
7876
7877 ac_cv_struct_tm=sys/time.h
7878fi
7879
7880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7881fi
7882{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7883$as_echo "$ac_cv_struct_tm" >&6; }
7884if test $ac_cv_struct_tm = sys/time.h; then
7885
7886cat >>confdefs.h <<\_ACEOF
7887#define TM_IN_SYS_TIME 1
7888_ACEOF
7889
7890fi
7891
7892
7893################################################################################
7894{ $as_echo "$as_me:$LINENO: checking for library containing floor" >&5
7895$as_echo_n "checking for library containing floor... " >&6; }
7896if test "${ac_cv_search_floor+set}" = set; then
7897 $as_echo_n "(cached) " >&6
7898else
7899 ac_func_search_save_LIBS=$LIBS
7900cat >conftest.$ac_ext <<_ACEOF
7901/* confdefs.h. */
7902_ACEOF
7903cat confdefs.h >>conftest.$ac_ext
7904cat >>conftest.$ac_ext <<_ACEOF
7905/* end confdefs.h. */
7906
7907/* Override any GCC internal prototype to avoid an error.
7908 Use char because int might match the return type of a GCC
7909 builtin and then its argument prototype would still apply. */
7910#ifdef __cplusplus
7911extern "C"
7912#endif
7913char floor ();
7914int
7915main ()
7916{
7917return floor ();
7918 ;
7919 return 0;
7920}
7921_ACEOF
7922for ac_lib in '' m; do
7923 if test -z "$ac_lib"; then
7924 ac_res="none required"
7925 else
7926 ac_res=-l$ac_lib
7927 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7928 fi
7929 rm -f conftest.$ac_objext conftest$ac_exeext
7930if { (ac_try="$ac_link"
7931case "(($ac_try" in
7932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933 *) ac_try_echo=$ac_try;;
7934esac
7935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7936$as_echo "$ac_try_echo") >&5
7937 (eval "$ac_link") 2>conftest.er1
7938 ac_status=$?
7939 grep -v '^ *+' conftest.er1 >conftest.err
7940 rm -f conftest.er1
7941 cat conftest.err >&5
7942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } && {
7944 test -z "$ac_c_werror_flag" ||
7945 test ! -s conftest.err
7946 } && test -s conftest$ac_exeext && {
7947 test "$cross_compiling" = yes ||
7948 $as_test_x conftest$ac_exeext
7949 }; then
7950 ac_cv_search_floor=$ac_res
ad6254c5 7951else
ec6a6fbe 7952 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7953sed 's/^/| /' conftest.$ac_ext >&5
7954
7a197a62 7955
ad6254c5 7956fi
ad6254c5 7957
d911ec67
AK
7958rm -rf conftest.dSYM
7959rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7960 conftest$ac_exeext
7961 if test "${ac_cv_search_floor+set}" = set; then
7962 break
7963fi
7964done
7965if test "${ac_cv_search_floor+set}" = set; then
7966 :
7967else
7968 ac_cv_search_floor=no
7969fi
7970rm conftest.$ac_ext
7971LIBS=$ac_func_search_save_LIBS
7972fi
7973{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_floor" >&5
7974$as_echo "$ac_cv_search_floor" >&6; }
7975ac_res=$ac_cv_search_floor
7976if test "$ac_res" != no; then
7977 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
ad6254c5 7978
d911ec67
AK
7979else
7980 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
7981$as_echo "$as_me: error: bailing out" >&2;}
7982 { (exit 1); exit 1; }; }
ad6254c5 7983fi
809fae91 7984
795ca3e5 7985
ad6254c5
AK
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
d0191583
JM
8000
8001
8002
d911ec67
AK
8003
8004
8005
8006
8007
8008
8009
8010for ac_func in floor ftruncate gethostname getpagesize \
8011 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
8012 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
8013 strstr strtol strtoul uname
ad6254c5 8014do
ec6a6fbe
AK
8015as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8016{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8017$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8018if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8019 $as_echo_n "(cached) " >&6
795ca3e5 8020else
ad6254c5 8021 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8022/* confdefs.h. */
8023_ACEOF
8024cat confdefs.h >>conftest.$ac_ext
8025cat >>conftest.$ac_ext <<_ACEOF
8026/* end confdefs.h. */
8a2fc586
AK
8027/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8029#define $ac_func innocuous_$ac_func
8030
ad6254c5
AK
8031/* System header to define __stub macros and hopefully few prototypes,
8032 which can conflict with char $ac_func (); below.
8033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8034 <limits.h> exists even on freestanding compilers. */
8a2fc586 8035
ad6254c5
AK
8036#ifdef __STDC__
8037# include <limits.h>
8038#else
8039# include <assert.h>
8040#endif
8a2fc586
AK
8041
8042#undef $ac_func
8043
7a197a62
AK
8044/* Override any GCC internal prototype to avoid an error.
8045 Use char because int might match the return type of a GCC
8046 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8047#ifdef __cplusplus
8048extern "C"
ad6254c5 8049#endif
ad6254c5
AK
8050char $ac_func ();
8051/* The GNU C library defines this for functions which it implements
8052 to always fail with ENOSYS. Some functions are actually named
8053 something starting with __ and the normal name is an alias. */
7a197a62 8054#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8055choke me
ad6254c5
AK
8056#endif
8057
8058int
8059main ()
8060{
7a197a62 8061return $ac_func ();
ad6254c5
AK
8062 ;
8063 return 0;
8064}
8065_ACEOF
8066rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8067if { (ac_try="$ac_link"
8068case "(($ac_try" in
8069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070 *) ac_try_echo=$ac_try;;
8071esac
ec6a6fbe
AK
8072eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8073$as_echo "$ac_try_echo") >&5
7a197a62 8074 (eval "$ac_link") 2>conftest.er1
ad6254c5 8075 ac_status=$?
8a2fc586
AK
8076 grep -v '^ *+' conftest.er1 >conftest.err
8077 rm -f conftest.er1
8078 cat conftest.err >&5
ec6a6fbe 8079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8080 (exit $ac_status); } && {
8081 test -z "$ac_c_werror_flag" ||
8082 test ! -s conftest.err
ec6a6fbe
AK
8083 } && test -s conftest$ac_exeext && {
8084 test "$cross_compiling" = yes ||
8085 $as_test_x conftest$ac_exeext
8086 }; then
fc54be10
AK
8087 eval "$as_ac_var=yes"
8088else
ec6a6fbe 8089 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
8090sed 's/^/| /' conftest.$ac_ext >&5
8091
8092 eval "$as_ac_var=no"
8093fi
8094
ec6a6fbe 8095rm -rf conftest.dSYM
25fbec5b 8096rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
8097 conftest$ac_exeext conftest.$ac_ext
8098fi
ec6a6fbe
AK
8099ac_res=`eval 'as_val=${'$as_ac_var'}
8100 $as_echo "$as_val"'`
8101 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8102$as_echo "$ac_res" >&6; }
8103as_val=`eval 'as_val=${'$as_ac_var'}
8104 $as_echo "$as_val"'`
8105 if test "x$as_val" = x""yes; then
ad6254c5 8106 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8107#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8108_ACEOF
8109
8110else
ec6a6fbe
AK
8111 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
8112$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
8113 { (exit 1); exit 1; }; }
8114fi
8115done
795ca3e5 8116
a0f9708e
AK
8117
8118for ac_func in siginterrupt
8119do
8120as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8121{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8122$as_echo_n "checking for $ac_func... " >&6; }
8123if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8124 $as_echo_n "(cached) " >&6
8125else
8126 cat >conftest.$ac_ext <<_ACEOF
8127/* confdefs.h. */
8128_ACEOF
8129cat confdefs.h >>conftest.$ac_ext
8130cat >>conftest.$ac_ext <<_ACEOF
8131/* end confdefs.h. */
8132/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8134#define $ac_func innocuous_$ac_func
8135
8136/* System header to define __stub macros and hopefully few prototypes,
8137 which can conflict with char $ac_func (); below.
8138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8139 <limits.h> exists even on freestanding compilers. */
8140
8141#ifdef __STDC__
8142# include <limits.h>
8143#else
8144# include <assert.h>
8145#endif
8146
8147#undef $ac_func
8148
8149/* Override any GCC internal prototype to avoid an error.
8150 Use char because int might match the return type of a GCC
8151 builtin and then its argument prototype would still apply. */
8152#ifdef __cplusplus
8153extern "C"
8154#endif
8155char $ac_func ();
8156/* The GNU C library defines this for functions which it implements
8157 to always fail with ENOSYS. Some functions are actually named
8158 something starting with __ and the normal name is an alias. */
8159#if defined __stub_$ac_func || defined __stub___$ac_func
8160choke me
8161#endif
8162
8163int
8164main ()
8165{
8166return $ac_func ();
8167 ;
8168 return 0;
8169}
8170_ACEOF
8171rm -f conftest.$ac_objext conftest$ac_exeext
8172if { (ac_try="$ac_link"
8173case "(($ac_try" in
8174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8175 *) ac_try_echo=$ac_try;;
8176esac
8177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8178$as_echo "$ac_try_echo") >&5
8179 (eval "$ac_link") 2>conftest.er1
8180 ac_status=$?
8181 grep -v '^ *+' conftest.er1 >conftest.err
8182 rm -f conftest.er1
8183 cat conftest.err >&5
8184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } && {
8186 test -z "$ac_c_werror_flag" ||
8187 test ! -s conftest.err
8188 } && test -s conftest$ac_exeext && {
8189 test "$cross_compiling" = yes ||
8190 $as_test_x conftest$ac_exeext
8191 }; then
8192 eval "$as_ac_var=yes"
8193else
8194 $as_echo "$as_me: failed program was:" >&5
8195sed 's/^/| /' conftest.$ac_ext >&5
8196
8197 eval "$as_ac_var=no"
8198fi
8199
8200rm -rf conftest.dSYM
8201rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8202 conftest$ac_exeext conftest.$ac_ext
8203fi
8204ac_res=`eval 'as_val=${'$as_ac_var'}
8205 $as_echo "$as_val"'`
8206 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8207$as_echo "$ac_res" >&6; }
8208as_val=`eval 'as_val=${'$as_ac_var'}
8209 $as_echo "$as_val"'`
8210 if test "x$as_val" = x""yes; then
8211 cat >>confdefs.h <<_ACEOF
8212#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8213_ACEOF
8214
8215fi
8216done
8217
ad6254c5
AK
8218# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8219# for constant arguments. Useless!
ec6a6fbe
AK
8220{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
8221$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 8222if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 8223 $as_echo_n "(cached) " >&6
ad6254c5
AK
8224else
8225 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8226/* confdefs.h. */
8227_ACEOF
8228cat confdefs.h >>conftest.$ac_ext
8229cat >>conftest.$ac_ext <<_ACEOF
8230/* end confdefs.h. */
8231#include <alloca.h>
8232int
8233main ()
8234{
8235char *p = (char *) alloca (2 * sizeof (int));
7a197a62 8236 if (p) return 0;
ad6254c5
AK
8237 ;
8238 return 0;
8239}
8240_ACEOF
8241rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8242if { (ac_try="$ac_link"
8243case "(($ac_try" in
8244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8245 *) ac_try_echo=$ac_try;;
8246esac
ec6a6fbe
AK
8247eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8248$as_echo "$ac_try_echo") >&5
7a197a62 8249 (eval "$ac_link") 2>conftest.er1
ad6254c5 8250 ac_status=$?
8a2fc586
AK
8251 grep -v '^ *+' conftest.er1 >conftest.err
8252 rm -f conftest.er1
8253 cat conftest.err >&5
ec6a6fbe 8254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8255 (exit $ac_status); } && {
8256 test -z "$ac_c_werror_flag" ||
8257 test ! -s conftest.err
ec6a6fbe
AK
8258 } && test -s conftest$ac_exeext && {
8259 test "$cross_compiling" = yes ||
8260 $as_test_x conftest$ac_exeext
8261 }; then
ad6254c5
AK
8262 ac_cv_working_alloca_h=yes
8263else
ec6a6fbe 8264 $as_echo "$as_me: failed program was:" >&5
ad6254c5 8265sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 8266
7a197a62 8267 ac_cv_working_alloca_h=no
ad6254c5 8268fi
7a197a62 8269
ec6a6fbe 8270rm -rf conftest.dSYM
25fbec5b 8271rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8272 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8273fi
ec6a6fbe
AK
8274{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8275$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
8276if test $ac_cv_working_alloca_h = yes; then
8277
8278cat >>confdefs.h <<\_ACEOF
8279#define HAVE_ALLOCA_H 1
8280_ACEOF
8281
8282fi
8283
ec6a6fbe
AK
8284{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
8285$as_echo_n "checking for alloca... " >&6; }
ad6254c5 8286if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 8287 $as_echo_n "(cached) " >&6
ad6254c5
AK
8288else
8289 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8290/* confdefs.h. */
8291_ACEOF
8292cat confdefs.h >>conftest.$ac_ext
8293cat >>conftest.$ac_ext <<_ACEOF
8294/* end confdefs.h. */
8295#ifdef __GNUC__
8296# define alloca __builtin_alloca
8297#else
8298# ifdef _MSC_VER
8299# include <malloc.h>
8300# define alloca _alloca
8301# else
25fbec5b 8302# ifdef HAVE_ALLOCA_H
ad6254c5
AK
8303# include <alloca.h>
8304# else
8305# ifdef _AIX
8306 #pragma alloca
8307# else
8308# ifndef alloca /* predefined by HP cc +Olibcalls */
8309char *alloca ();
8310# endif
8311# endif
8312# endif
8313# endif
8314#endif
8315
8316int
8317main ()
8318{
8319char *p = (char *) alloca (1);
7a197a62 8320 if (p) return 0;
ad6254c5
AK
8321 ;
8322 return 0;
8323}
8324_ACEOF
8325rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8326if { (ac_try="$ac_link"
8327case "(($ac_try" in
8328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8329 *) ac_try_echo=$ac_try;;
8330esac
ec6a6fbe
AK
8331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8332$as_echo "$ac_try_echo") >&5
7a197a62 8333 (eval "$ac_link") 2>conftest.er1
ad6254c5 8334 ac_status=$?
8a2fc586
AK
8335 grep -v '^ *+' conftest.er1 >conftest.err
8336 rm -f conftest.er1
8337 cat conftest.err >&5
ec6a6fbe 8338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8339 (exit $ac_status); } && {
8340 test -z "$ac_c_werror_flag" ||
8341 test ! -s conftest.err
ec6a6fbe
AK
8342 } && test -s conftest$ac_exeext && {
8343 test "$cross_compiling" = yes ||
8344 $as_test_x conftest$ac_exeext
8345 }; then
ad6254c5
AK
8346 ac_cv_func_alloca_works=yes
8347else
ec6a6fbe 8348 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8349sed 's/^/| /' conftest.$ac_ext >&5
8350
7a197a62 8351 ac_cv_func_alloca_works=no
ad6254c5 8352fi
7a197a62 8353
ec6a6fbe 8354rm -rf conftest.dSYM
25fbec5b 8355rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8356 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8357fi
ec6a6fbe
AK
8358{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8359$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
8360
8361if test $ac_cv_func_alloca_works = yes; then
8362
8363cat >>confdefs.h <<\_ACEOF
8364#define HAVE_ALLOCA 1
8365_ACEOF
8366
8367else
8368 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8369# that cause trouble. Some versions do not even contain alloca or
8370# contain a buggy version. If you still want to use their alloca,
8371# use ar to extract alloca.o from them instead of compiling alloca.c.
8372
7a197a62 8373ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
8374
8375cat >>confdefs.h <<\_ACEOF
8376#define C_ALLOCA 1
8377_ACEOF
8378
8379
ec6a6fbe
AK
8380{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8381$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 8382if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 8383 $as_echo_n "(cached) " >&6
ad6254c5
AK
8384else
8385 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8386/* confdefs.h. */
8387_ACEOF
8388cat confdefs.h >>conftest.$ac_ext
8389cat >>conftest.$ac_ext <<_ACEOF
8390/* end confdefs.h. */
7a197a62 8391#if defined CRAY && ! defined CRAY2
ad6254c5
AK
8392webecray
8393#else
8394wenotbecray
8395#endif
8396
8397_ACEOF
795ca3e5 8398if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
8399 $EGREP "webecray" >/dev/null 2>&1; then
8400 ac_cv_os_cray=yes
8401else
8402 ac_cv_os_cray=no
795ca3e5
AK
8403fi
8404rm -f conftest*
8405
795ca3e5 8406fi
ec6a6fbe
AK
8407{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8408$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
8409if test $ac_cv_os_cray = yes; then
8410 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
8411 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8412{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8413$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8414if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8415 $as_echo_n "(cached) " >&6
ad6254c5
AK
8416else
8417 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8418/* confdefs.h. */
8419_ACEOF
8420cat confdefs.h >>conftest.$ac_ext
8421cat >>conftest.$ac_ext <<_ACEOF
8422/* end confdefs.h. */
8a2fc586
AK
8423/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8425#define $ac_func innocuous_$ac_func
8426
ad6254c5
AK
8427/* System header to define __stub macros and hopefully few prototypes,
8428 which can conflict with char $ac_func (); below.
8429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8430 <limits.h> exists even on freestanding compilers. */
8a2fc586 8431
ad6254c5
AK
8432#ifdef __STDC__
8433# include <limits.h>
8434#else
8435# include <assert.h>
8436#endif
8a2fc586
AK
8437
8438#undef $ac_func
8439
7a197a62
AK
8440/* Override any GCC internal prototype to avoid an error.
8441 Use char because int might match the return type of a GCC
8442 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8443#ifdef __cplusplus
8444extern "C"
ad6254c5 8445#endif
ad6254c5
AK
8446char $ac_func ();
8447/* The GNU C library defines this for functions which it implements
8448 to always fail with ENOSYS. Some functions are actually named
8449 something starting with __ and the normal name is an alias. */
7a197a62 8450#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8451choke me
ad6254c5
AK
8452#endif
8453
8454int
8455main ()
8456{
7a197a62 8457return $ac_func ();
ad6254c5
AK
8458 ;
8459 return 0;
8460}
8461_ACEOF
8462rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8463if { (ac_try="$ac_link"
8464case "(($ac_try" in
8465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466 *) ac_try_echo=$ac_try;;
8467esac
ec6a6fbe
AK
8468eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8469$as_echo "$ac_try_echo") >&5
7a197a62 8470 (eval "$ac_link") 2>conftest.er1
ad6254c5 8471 ac_status=$?
8a2fc586
AK
8472 grep -v '^ *+' conftest.er1 >conftest.err
8473 rm -f conftest.er1
8474 cat conftest.err >&5
ec6a6fbe 8475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8476 (exit $ac_status); } && {
8477 test -z "$ac_c_werror_flag" ||
8478 test ! -s conftest.err
ec6a6fbe
AK
8479 } && test -s conftest$ac_exeext && {
8480 test "$cross_compiling" = yes ||
8481 $as_test_x conftest$ac_exeext
8482 }; then
ad6254c5
AK
8483 eval "$as_ac_var=yes"
8484else
ec6a6fbe 8485 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8486sed 's/^/| /' conftest.$ac_ext >&5
8487
7a197a62 8488 eval "$as_ac_var=no"
ad6254c5 8489fi
7a197a62 8490
ec6a6fbe 8491rm -rf conftest.dSYM
25fbec5b 8492rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8493 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8494fi
ec6a6fbe
AK
8495ac_res=`eval 'as_val=${'$as_ac_var'}
8496 $as_echo "$as_val"'`
8497 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8498$as_echo "$ac_res" >&6; }
8499as_val=`eval 'as_val=${'$as_ac_var'}
8500 $as_echo "$as_val"'`
8501 if test "x$as_val" = x""yes; then
80992638 8502
ad6254c5
AK
8503cat >>confdefs.h <<_ACEOF
8504#define CRAY_STACKSEG_END $ac_func
8505_ACEOF
8506
8507 break
8508fi
8509
8510 done
8511fi
8512
ec6a6fbe
AK
8513{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8514$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 8515if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 8516 $as_echo_n "(cached) " >&6
ad6254c5
AK
8517else
8518 if test "$cross_compiling" = yes; then
8519 ac_cv_c_stack_direction=0
8520else
8521 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8522/* confdefs.h. */
8523_ACEOF
8524cat confdefs.h >>conftest.$ac_ext
8525cat >>conftest.$ac_ext <<_ACEOF
8526/* end confdefs.h. */
7a197a62 8527$ac_includes_default
ad6254c5
AK
8528int
8529find_stack_direction ()
8530{
8531 static char *addr = 0;
8532 auto char dummy;
8533 if (addr == 0)
8534 {
8535 addr = &dummy;
8536 return find_stack_direction ();
8537 }
8538 else
8539 return (&dummy > addr) ? 1 : -1;
8540}
8541
8542int
8543main ()
8544{
7a197a62 8545 return find_stack_direction () < 0;
ad6254c5
AK
8546}
8547_ACEOF
8548rm -f conftest$ac_exeext
7a197a62
AK
8549if { (ac_try="$ac_link"
8550case "(($ac_try" in
8551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8552 *) ac_try_echo=$ac_try;;
8553esac
ec6a6fbe
AK
8554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8555$as_echo "$ac_try_echo") >&5
7a197a62 8556 (eval "$ac_link") 2>&5
ad6254c5 8557 ac_status=$?
ec6a6fbe 8558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8560 { (case "(($ac_try" in
8561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562 *) ac_try_echo=$ac_try;;
8563esac
ec6a6fbe
AK
8564eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8565$as_echo "$ac_try_echo") >&5
7a197a62 8566 (eval "$ac_try") 2>&5
ad6254c5 8567 ac_status=$?
ec6a6fbe 8568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8569 (exit $ac_status); }; }; then
8570 ac_cv_c_stack_direction=1
8571else
ec6a6fbe
AK
8572 $as_echo "$as_me: program exited with status $ac_status" >&5
8573$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8574sed 's/^/| /' conftest.$ac_ext >&5
8575
8576( exit $ac_status )
8577ac_cv_c_stack_direction=-1
8578fi
ec6a6fbe 8579rm -rf conftest.dSYM
7a197a62 8580rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8581fi
7a197a62
AK
8582
8583
ad6254c5 8584fi
ec6a6fbe
AK
8585{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8586$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5 8587
d911ec67
AK
8588cat >>confdefs.h <<_ACEOF
8589#define STACK_DIRECTION $ac_cv_c_stack_direction
8590_ACEOF
8591
8592
8593fi
8594
8595{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
8596$as_echo_n "checking whether closedir returns void... " >&6; }
8597if test "${ac_cv_func_closedir_void+set}" = set; then
8598 $as_echo_n "(cached) " >&6
8599else
8600 if test "$cross_compiling" = yes; then
8601 ac_cv_func_closedir_void=yes
8602else
8603 cat >conftest.$ac_ext <<_ACEOF
8604/* confdefs.h. */
8605_ACEOF
8606cat confdefs.h >>conftest.$ac_ext
8607cat >>conftest.$ac_ext <<_ACEOF
8608/* end confdefs.h. */
8609$ac_includes_default
8610#include <$ac_header_dirent>
8611#ifndef __cplusplus
8612int closedir ();
8613#endif
8614
8615int
8616main ()
8617{
8618return closedir (opendir (".")) != 0;
8619 ;
8620 return 0;
8621}
8622_ACEOF
8623rm -f conftest$ac_exeext
8624if { (ac_try="$ac_link"
8625case "(($ac_try" in
8626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627 *) ac_try_echo=$ac_try;;
8628esac
8629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8630$as_echo "$ac_try_echo") >&5
8631 (eval "$ac_link") 2>&5
8632 ac_status=$?
8633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8635 { (case "(($ac_try" in
8636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8638esac
8639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8640$as_echo "$ac_try_echo") >&5
8641 (eval "$ac_try") 2>&5
8642 ac_status=$?
8643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; }; then
8645 ac_cv_func_closedir_void=no
8646else
8647 $as_echo "$as_me: program exited with status $ac_status" >&5
8648$as_echo "$as_me: failed program was:" >&5
8649sed 's/^/| /' conftest.$ac_ext >&5
8650
8651( exit $ac_status )
8652ac_cv_func_closedir_void=yes
8653fi
8654rm -rf conftest.dSYM
8655rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8656fi
8657
8658
8659fi
8660{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
8661$as_echo "$ac_cv_func_closedir_void" >&6; }
8662if test $ac_cv_func_closedir_void = yes; then
8663
8664cat >>confdefs.h <<\_ACEOF
8665#define CLOSEDIR_VOID 1
8666_ACEOF
8667
8668fi
8669
8670
8671for ac_header in unistd.h
8672do
8673as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8674if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8675 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8676$as_echo_n "checking for $ac_header... " >&6; }
8677if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8678 $as_echo_n "(cached) " >&6
8679fi
8680ac_res=`eval 'as_val=${'$as_ac_Header'}
8681 $as_echo "$as_val"'`
8682 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8683$as_echo "$ac_res" >&6; }
8684else
8685 # Is the header compilable?
8686{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8687$as_echo_n "checking $ac_header usability... " >&6; }
8688cat >conftest.$ac_ext <<_ACEOF
8689/* confdefs.h. */
8690_ACEOF
8691cat confdefs.h >>conftest.$ac_ext
8692cat >>conftest.$ac_ext <<_ACEOF
8693/* end confdefs.h. */
8694$ac_includes_default
8695#include <$ac_header>
8696_ACEOF
8697rm -f conftest.$ac_objext
8698if { (ac_try="$ac_compile"
8699case "(($ac_try" in
8700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8701 *) ac_try_echo=$ac_try;;
8702esac
8703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8704$as_echo "$ac_try_echo") >&5
8705 (eval "$ac_compile") 2>conftest.er1
8706 ac_status=$?
8707 grep -v '^ *+' conftest.er1 >conftest.err
8708 rm -f conftest.er1
8709 cat conftest.err >&5
8710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); } && {
8712 test -z "$ac_c_werror_flag" ||
8713 test ! -s conftest.err
8714 } && test -s conftest.$ac_objext; then
8715 ac_header_compiler=yes
8716else
8717 $as_echo "$as_me: failed program was:" >&5
8718sed 's/^/| /' conftest.$ac_ext >&5
8719
8720 ac_header_compiler=no
8721fi
8722
8723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8724{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8725$as_echo "$ac_header_compiler" >&6; }
8726
8727# Is the header present?
8728{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8729$as_echo_n "checking $ac_header presence... " >&6; }
8730cat >conftest.$ac_ext <<_ACEOF
8731/* confdefs.h. */
8732_ACEOF
8733cat confdefs.h >>conftest.$ac_ext
8734cat >>conftest.$ac_ext <<_ACEOF
8735/* end confdefs.h. */
8736#include <$ac_header>
8737_ACEOF
8738if { (ac_try="$ac_cpp conftest.$ac_ext"
8739case "(($ac_try" in
8740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8741 *) ac_try_echo=$ac_try;;
8742esac
8743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8744$as_echo "$ac_try_echo") >&5
8745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8746 ac_status=$?
8747 grep -v '^ *+' conftest.er1 >conftest.err
8748 rm -f conftest.er1
8749 cat conftest.err >&5
8750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } >/dev/null && {
8752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8753 test ! -s conftest.err
8754 }; then
8755 ac_header_preproc=yes
8756else
8757 $as_echo "$as_me: failed program was:" >&5
8758sed 's/^/| /' conftest.$ac_ext >&5
8759
8760 ac_header_preproc=no
8761fi
8762
8763rm -f conftest.err conftest.$ac_ext
8764{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8765$as_echo "$ac_header_preproc" >&6; }
8766
8767# So? What about this header?
8768case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8769 yes:no: )
8770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8771$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8773$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8774 ac_header_preproc=yes
8775 ;;
8776 no:yes:* )
8777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8778$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8780$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8782$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8784$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8786$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8788$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8789
8790 ;;
8791esac
8792{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8793$as_echo_n "checking for $ac_header... " >&6; }
8794if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8795 $as_echo_n "(cached) " >&6
8796else
8797 eval "$as_ac_Header=\$ac_header_preproc"
8798fi
8799ac_res=`eval 'as_val=${'$as_ac_Header'}
8800 $as_echo "$as_val"'`
8801 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8802$as_echo "$ac_res" >&6; }
8803
8804fi
8805as_val=`eval 'as_val=${'$as_ac_Header'}
8806 $as_echo "$as_val"'`
8807 if test "x$as_val" = x""yes; then
8808 cat >>confdefs.h <<_ACEOF
8809#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8810_ACEOF
8811
ad6254c5
AK
8812fi
8813
d911ec67
AK
8814done
8815
8816{ $as_echo "$as_me:$LINENO: checking for working chown" >&5
8817$as_echo_n "checking for working chown... " >&6; }
8818if test "${ac_cv_func_chown_works+set}" = set; then
ec6a6fbe 8819 $as_echo_n "(cached) " >&6
ad6254c5
AK
8820else
8821 if test "$cross_compiling" = yes; then
d911ec67 8822 ac_cv_func_chown_works=no
ad6254c5
AK
8823else
8824 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8825/* confdefs.h. */
8826_ACEOF
8827cat confdefs.h >>conftest.$ac_ext
8828cat >>conftest.$ac_ext <<_ACEOF
8829/* end confdefs.h. */
8830$ac_includes_default
d911ec67 8831#include <fcntl.h>
ad6254c5
AK
8832
8833int
8834main ()
8835{
d911ec67
AK
8836 char *f = "conftest.chown";
8837 struct stat before, after;
8838
8839 if (creat (f, 0600) < 0)
8840 return 1;
8841 if (stat (f, &before) < 0)
8842 return 1;
8843 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
8844 return 1;
8845 if (stat (f, &after) < 0)
8846 return 1;
8847 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
8848
ad6254c5
AK
8849 ;
8850 return 0;
8851}
8852_ACEOF
8853rm -f conftest$ac_exeext
7a197a62
AK
8854if { (ac_try="$ac_link"
8855case "(($ac_try" in
8856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8857 *) ac_try_echo=$ac_try;;
8858esac
ec6a6fbe
AK
8859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8860$as_echo "$ac_try_echo") >&5
7a197a62 8861 (eval "$ac_link") 2>&5
ad6254c5 8862 ac_status=$?
ec6a6fbe 8863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8865 { (case "(($ac_try" in
8866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867 *) ac_try_echo=$ac_try;;
8868esac
ec6a6fbe
AK
8869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8870$as_echo "$ac_try_echo") >&5
7a197a62 8871 (eval "$ac_try") 2>&5
ad6254c5 8872 ac_status=$?
ec6a6fbe 8873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8874 (exit $ac_status); }; }; then
d911ec67 8875 ac_cv_func_chown_works=yes
ad6254c5 8876else
ec6a6fbe
AK
8877 $as_echo "$as_me: program exited with status $ac_status" >&5
8878$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8879sed 's/^/| /' conftest.$ac_ext >&5
8880
8881( exit $ac_status )
d911ec67 8882ac_cv_func_chown_works=no
ad6254c5 8883fi
ec6a6fbe 8884rm -rf conftest.dSYM
7a197a62 8885rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8886fi
7a197a62
AK
8887
8888
d911ec67
AK
8889rm -f conftest.chown
8890
ad6254c5 8891fi
d911ec67
AK
8892{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
8893$as_echo "$ac_cv_func_chown_works" >&6; }
8894if test $ac_cv_func_chown_works = yes; then
ad6254c5
AK
8895
8896cat >>confdefs.h <<\_ACEOF
d911ec67 8897#define HAVE_CHOWN 1
ad6254c5
AK
8898_ACEOF
8899
8900fi
8901
8902
7a197a62 8903for ac_header in vfork.h
ad6254c5 8904do
ec6a6fbe 8905as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 8906if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
8907 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8908$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8909if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8910 $as_echo_n "(cached) " >&6
ad6254c5 8911fi
ec6a6fbe
AK
8912ac_res=`eval 'as_val=${'$as_ac_Header'}
8913 $as_echo "$as_val"'`
8914 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8915$as_echo "$ac_res" >&6; }
ad6254c5
AK
8916else
8917 # Is the header compilable?
ec6a6fbe
AK
8918{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8919$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 8920cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8921/* confdefs.h. */
8922_ACEOF
8923cat confdefs.h >>conftest.$ac_ext
8924cat >>conftest.$ac_ext <<_ACEOF
8925/* end confdefs.h. */
8926$ac_includes_default
8927#include <$ac_header>
8928_ACEOF
8929rm -f conftest.$ac_objext
7a197a62
AK
8930if { (ac_try="$ac_compile"
8931case "(($ac_try" in
8932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8933 *) ac_try_echo=$ac_try;;
8934esac
ec6a6fbe
AK
8935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8936$as_echo "$ac_try_echo") >&5
7a197a62 8937 (eval "$ac_compile") 2>conftest.er1
ad6254c5 8938 ac_status=$?
8a2fc586
AK
8939 grep -v '^ *+' conftest.er1 >conftest.err
8940 rm -f conftest.er1
8941 cat conftest.err >&5
ec6a6fbe 8942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8943 (exit $ac_status); } && {
8944 test -z "$ac_c_werror_flag" ||
8945 test ! -s conftest.err
8946 } && test -s conftest.$ac_objext; then
ad6254c5
AK
8947 ac_header_compiler=yes
8948else
ec6a6fbe 8949 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8950sed 's/^/| /' conftest.$ac_ext >&5
8951
7a197a62 8952 ac_header_compiler=no
ad6254c5 8953fi
7a197a62
AK
8954
8955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
8956{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8957$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
8958
8959# Is the header present?
ec6a6fbe
AK
8960{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8961$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 8962cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8963/* confdefs.h. */
8964_ACEOF
8965cat confdefs.h >>conftest.$ac_ext
8966cat >>conftest.$ac_ext <<_ACEOF
8967/* end confdefs.h. */
8968#include <$ac_header>
8969_ACEOF
7a197a62
AK
8970if { (ac_try="$ac_cpp conftest.$ac_ext"
8971case "(($ac_try" in
8972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8973 *) ac_try_echo=$ac_try;;
8974esac
ec6a6fbe
AK
8975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8976$as_echo "$ac_try_echo") >&5
7a197a62 8977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
8978 ac_status=$?
8979 grep -v '^ *+' conftest.er1 >conftest.err
8980 rm -f conftest.er1
8981 cat conftest.err >&5
ec6a6fbe 8982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8983 (exit $ac_status); } >/dev/null && {
8984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8985 test ! -s conftest.err
8986 }; then
ad6254c5
AK
8987 ac_header_preproc=yes
8988else
ec6a6fbe 8989 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8990sed 's/^/| /' conftest.$ac_ext >&5
8991
8992 ac_header_preproc=no
8993fi
7a197a62 8994
ad6254c5 8995rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
8996{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8997$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
8998
8999# So? What about this header?
8a2fc586
AK
9000case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9001 yes:no: )
ec6a6fbe
AK
9002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9003$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9005$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9006 ac_header_preproc=yes
ad6254c5 9007 ;;
8a2fc586 9008 no:yes:* )
ec6a6fbe
AK
9009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9010$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9012$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9014$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9016$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9018$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9020$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9021
ad6254c5
AK
9022 ;;
9023esac
ec6a6fbe
AK
9024{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9025$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9026if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9027 $as_echo_n "(cached) " >&6
ad6254c5 9028else
8a2fc586 9029 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9030fi
ec6a6fbe
AK
9031ac_res=`eval 'as_val=${'$as_ac_Header'}
9032 $as_echo "$as_val"'`
9033 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9034$as_echo "$ac_res" >&6; }
ad6254c5 9035
795ca3e5 9036fi
ec6a6fbe
AK
9037as_val=`eval 'as_val=${'$as_ac_Header'}
9038 $as_echo "$as_val"'`
9039 if test "x$as_val" = x""yes; then
ad6254c5 9040 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9041#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
9042_ACEOF
9043
9044fi
9045
9046done
795ca3e5 9047
ad6254c5
AK
9048
9049
9050for ac_func in fork vfork
9051do
ec6a6fbe
AK
9052as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9053{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9054$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 9055if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9056 $as_echo_n "(cached) " >&6
795ca3e5 9057else
ad6254c5 9058 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9059/* confdefs.h. */
9060_ACEOF
9061cat confdefs.h >>conftest.$ac_ext
9062cat >>conftest.$ac_ext <<_ACEOF
9063/* end confdefs.h. */
8a2fc586
AK
9064/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9066#define $ac_func innocuous_$ac_func
9067
ad6254c5
AK
9068/* System header to define __stub macros and hopefully few prototypes,
9069 which can conflict with char $ac_func (); below.
9070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9071 <limits.h> exists even on freestanding compilers. */
8a2fc586 9072
ad6254c5
AK
9073#ifdef __STDC__
9074# include <limits.h>
9075#else
9076# include <assert.h>
795ca3e5 9077#endif
8a2fc586
AK
9078
9079#undef $ac_func
9080
7a197a62
AK
9081/* Override any GCC internal prototype to avoid an error.
9082 Use char because int might match the return type of a GCC
9083 builtin and then its argument prototype would still apply. */
795ca3e5 9084#ifdef __cplusplus
ad6254c5 9085extern "C"
ad6254c5 9086#endif
ad6254c5
AK
9087char $ac_func ();
9088/* The GNU C library defines this for functions which it implements
9089 to always fail with ENOSYS. Some functions are actually named
9090 something starting with __ and the normal name is an alias. */
7a197a62 9091#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 9092choke me
795ca3e5
AK
9093#endif
9094
ad6254c5
AK
9095int
9096main ()
9097{
7a197a62 9098return $ac_func ();
ad6254c5
AK
9099 ;
9100 return 0;
9101}
9102_ACEOF
9103rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9104if { (ac_try="$ac_link"
9105case "(($ac_try" in
9106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9107 *) ac_try_echo=$ac_try;;
9108esac
ec6a6fbe
AK
9109eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9110$as_echo "$ac_try_echo") >&5
7a197a62 9111 (eval "$ac_link") 2>conftest.er1
ad6254c5 9112 ac_status=$?
8a2fc586
AK
9113 grep -v '^ *+' conftest.er1 >conftest.err
9114 rm -f conftest.er1
9115 cat conftest.err >&5
ec6a6fbe 9116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9117 (exit $ac_status); } && {
9118 test -z "$ac_c_werror_flag" ||
9119 test ! -s conftest.err
ec6a6fbe
AK
9120 } && test -s conftest$ac_exeext && {
9121 test "$cross_compiling" = yes ||
9122 $as_test_x conftest$ac_exeext
9123 }; then
ad6254c5 9124 eval "$as_ac_var=yes"
795ca3e5 9125else
ec6a6fbe 9126 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9127sed 's/^/| /' conftest.$ac_ext >&5
9128
7a197a62 9129 eval "$as_ac_var=no"
795ca3e5 9130fi
7a197a62 9131
ec6a6fbe 9132rm -rf conftest.dSYM
25fbec5b 9133rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9134 conftest$ac_exeext conftest.$ac_ext
ad6254c5 9135fi
ec6a6fbe
AK
9136ac_res=`eval 'as_val=${'$as_ac_var'}
9137 $as_echo "$as_val"'`
9138 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9139$as_echo "$ac_res" >&6; }
9140as_val=`eval 'as_val=${'$as_ac_var'}
9141 $as_echo "$as_val"'`
9142 if test "x$as_val" = x""yes; then
ad6254c5 9143 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9144#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
9145_ACEOF
9146
9147fi
9148done
9149
9150if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
9151 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
9152$as_echo_n "checking for working fork... " >&6; }
ad6254c5 9153if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 9154 $as_echo_n "(cached) " >&6
ad6254c5
AK
9155else
9156 if test "$cross_compiling" = yes; then
9157 ac_cv_func_fork_works=cross
9158else
9159 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
9160/* confdefs.h. */
9161_ACEOF
9162cat confdefs.h >>conftest.$ac_ext
9163cat >>conftest.$ac_ext <<_ACEOF
9164/* end confdefs.h. */
9165$ac_includes_default
9166int
9167main ()
9168{
9169
9170 /* By Ruediger Kuhlmann. */
9171 return fork () < 0;
9172
9173 ;
9174 return 0;
9175}
ad6254c5
AK
9176_ACEOF
9177rm -f conftest$ac_exeext
7a197a62
AK
9178if { (ac_try="$ac_link"
9179case "(($ac_try" in
9180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181 *) ac_try_echo=$ac_try;;
9182esac
ec6a6fbe
AK
9183eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9184$as_echo "$ac_try_echo") >&5
7a197a62 9185 (eval "$ac_link") 2>&5
ad6254c5 9186 ac_status=$?
ec6a6fbe 9187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9189 { (case "(($ac_try" in
9190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9191 *) ac_try_echo=$ac_try;;
9192esac
ec6a6fbe
AK
9193eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9194$as_echo "$ac_try_echo") >&5
7a197a62 9195 (eval "$ac_try") 2>&5
ad6254c5 9196 ac_status=$?
ec6a6fbe 9197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9198 (exit $ac_status); }; }; then
9199 ac_cv_func_fork_works=yes
9200else
ec6a6fbe
AK
9201 $as_echo "$as_me: program exited with status $ac_status" >&5
9202$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9203sed 's/^/| /' conftest.$ac_ext >&5
9204
9205( exit $ac_status )
9206ac_cv_func_fork_works=no
9207fi
ec6a6fbe 9208rm -rf conftest.dSYM
7a197a62 9209rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9210fi
7a197a62
AK
9211
9212
ad6254c5 9213fi
ec6a6fbe
AK
9214{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9215$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
9216
9217else
9218 ac_cv_func_fork_works=$ac_cv_func_fork
9219fi
9220if test "x$ac_cv_func_fork_works" = xcross; then
9221 case $host in
9222 *-*-amigaos* | *-*-msdosdjgpp*)
9223 # Override, as these systems have only a dummy fork() stub
9224 ac_cv_func_fork_works=no
9225 ;;
9226 *)
9227 ac_cv_func_fork_works=yes
9228 ;;
9229 esac
ec6a6fbe
AK
9230 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9231$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
9232fi
9233ac_cv_func_vfork_works=$ac_cv_func_vfork
9234if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
9235 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
9236$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 9237if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 9238 $as_echo_n "(cached) " >&6
ad6254c5
AK
9239else
9240 if test "$cross_compiling" = yes; then
9241 ac_cv_func_vfork_works=cross
9242else
9243 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9244/* confdefs.h. */
9245_ACEOF
9246cat confdefs.h >>conftest.$ac_ext
9247cat >>conftest.$ac_ext <<_ACEOF
9248/* end confdefs.h. */
9249/* Thanks to Paul Eggert for this test. */
7a197a62 9250$ac_includes_default
ad6254c5 9251#include <sys/wait.h>
25fbec5b 9252#ifdef HAVE_VFORK_H
ad6254c5
AK
9253# include <vfork.h>
9254#endif
9255/* On some sparc systems, changes by the child to local and incoming
9256 argument registers are propagated back to the parent. The compiler
9257 is told about this with #include <vfork.h>, but some compilers
9258 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9259 static variable whose address is put into a register that is
9260 clobbered by the vfork. */
9261static void
9262#ifdef __cplusplus
9263sparc_address_test (int arg)
9264# else
9265sparc_address_test (arg) int arg;
9266#endif
9267{
9268 static pid_t child;
9269 if (!child) {
9270 child = vfork ();
9271 if (child < 0) {
9272 perror ("vfork");
9273 _exit(2);
9274 }
9275 if (!child) {
9276 arg = getpid();
9277 write(-1, "", 0);
9278 _exit (arg);
9279 }
9280 }
9281}
9282
9283int
9284main ()
9285{
9286 pid_t parent = getpid ();
9287 pid_t child;
9288
9289 sparc_address_test (0);
9290
9291 child = vfork ();
9292
9293 if (child == 0) {
9294 /* Here is another test for sparc vfork register problems. This
9295 test uses lots of local variables, at least as many local
9296 variables as main has allocated so far including compiler
9297 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9298 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9299 reuse the register of parent for one of the local variables,
9300 since it will think that parent can't possibly be used any more
9301 in this routine. Assigning to the local variable will thus
9302 munge parent in the parent process. */
9303 pid_t
9304 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9305 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9306 /* Convince the compiler that p..p7 are live; otherwise, it might
9307 use the same hardware register for all 8 local variables. */
9308 if (p != p1 || p != p2 || p != p3 || p != p4
9309 || p != p5 || p != p6 || p != p7)
9310 _exit(1);
9311
9312 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9313 from child file descriptors. If the child closes a descriptor
9314 before it execs or exits, this munges the parent's descriptor
9315 as well. Test for this by closing stdout in the child. */
9316 _exit(close(fileno(stdout)) != 0);
9317 } else {
9318 int status;
9319 struct stat st;
9320
9321 while (wait(&status) != child)
9322 ;
7a197a62 9323 return (
ad6254c5
AK
9324 /* Was there some problem with vforking? */
9325 child < 0
9326
9327 /* Did the child fail? (This shouldn't happen.) */
9328 || status
9329
9330 /* Did the vfork/compiler bug occur? */
9331 || parent != getpid()
9332
9333 /* Did the file descriptor bug occur? */
9334 || fstat(fileno(stdout), &st) != 0
9335 );
9336 }
9337}
9338_ACEOF
9339rm -f conftest$ac_exeext
7a197a62
AK
9340if { (ac_try="$ac_link"
9341case "(($ac_try" in
9342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9343 *) ac_try_echo=$ac_try;;
9344esac
ec6a6fbe
AK
9345eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9346$as_echo "$ac_try_echo") >&5
7a197a62 9347 (eval "$ac_link") 2>&5
ad6254c5 9348 ac_status=$?
ec6a6fbe 9349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9351 { (case "(($ac_try" in
9352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9353 *) ac_try_echo=$ac_try;;
9354esac
ec6a6fbe
AK
9355eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9356$as_echo "$ac_try_echo") >&5
7a197a62 9357 (eval "$ac_try") 2>&5
ad6254c5 9358 ac_status=$?
ec6a6fbe 9359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9360 (exit $ac_status); }; }; then
9361 ac_cv_func_vfork_works=yes
9362else
ec6a6fbe
AK
9363 $as_echo "$as_me: program exited with status $ac_status" >&5
9364$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9365sed 's/^/| /' conftest.$ac_ext >&5
9366
9367( exit $ac_status )
9368ac_cv_func_vfork_works=no
9369fi
ec6a6fbe 9370rm -rf conftest.dSYM
7a197a62 9371rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9372fi
7a197a62
AK
9373
9374
ad6254c5 9375fi
ec6a6fbe
AK
9376{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9377$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
9378
9379fi;
9380if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 9381 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
9382 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9383$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
9384fi
9385
9386if test "x$ac_cv_func_vfork_works" = xyes; then
9387
9388cat >>confdefs.h <<\_ACEOF
9389#define HAVE_WORKING_VFORK 1
9390_ACEOF
9391
9392else
9393
9394cat >>confdefs.h <<\_ACEOF
9395#define vfork fork
9396_ACEOF
9397
9398fi
9399if test "x$ac_cv_func_fork_works" = xyes; then
9400
9401cat >>confdefs.h <<\_ACEOF
9402#define HAVE_WORKING_FORK 1
9403_ACEOF
9404
9405fi
9406
ec6a6fbe
AK
9407{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
9408$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 9409if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 9410 $as_echo_n "(cached) " >&6
ad6254c5
AK
9411else
9412 rm -f conftest.sym conftest.file
9413echo >conftest.file
9414if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9415 if test "$cross_compiling" = yes; then
9416 ac_cv_func_lstat_dereferences_slashed_symlink=no
9417else
9418 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9419/* confdefs.h. */
9420_ACEOF
9421cat confdefs.h >>conftest.$ac_ext
9422cat >>conftest.$ac_ext <<_ACEOF
9423/* end confdefs.h. */
9424$ac_includes_default
9425int
9426main ()
9427{
9428struct stat sbuf;
9429 /* Linux will dereference the symlink and fail.
8a2fc586
AK
9430 That is better in the sense that it means we will not
9431 have to compile and use the lstat wrapper. */
7a197a62 9432 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
9433 ;
9434 return 0;
9435}
9436_ACEOF
9437rm -f conftest$ac_exeext
7a197a62
AK
9438if { (ac_try="$ac_link"
9439case "(($ac_try" in
9440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9441 *) ac_try_echo=$ac_try;;
9442esac
ec6a6fbe
AK
9443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9444$as_echo "$ac_try_echo") >&5
7a197a62 9445 (eval "$ac_link") 2>&5
ad6254c5 9446 ac_status=$?
ec6a6fbe 9447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9449 { (case "(($ac_try" in
9450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9451 *) ac_try_echo=$ac_try;;
9452esac
ec6a6fbe
AK
9453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9454$as_echo "$ac_try_echo") >&5
7a197a62 9455 (eval "$ac_try") 2>&5
ad6254c5 9456 ac_status=$?
ec6a6fbe 9457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9458 (exit $ac_status); }; }; then
9459 ac_cv_func_lstat_dereferences_slashed_symlink=yes
9460else
ec6a6fbe
AK
9461 $as_echo "$as_me: program exited with status $ac_status" >&5
9462$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9463sed 's/^/| /' conftest.$ac_ext >&5
9464
9465( exit $ac_status )
9466ac_cv_func_lstat_dereferences_slashed_symlink=no
9467fi
ec6a6fbe 9468rm -rf conftest.dSYM
7a197a62 9469rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9470fi
7a197a62
AK
9471
9472
ad6254c5
AK
9473else
9474 # If the `ln -s' command failed, then we probably don't even
9475 # have an lstat function.
9476 ac_cv_func_lstat_dereferences_slashed_symlink=no
9477fi
9478rm -f conftest.sym conftest.file
9479
9480fi
ec6a6fbe
AK
9481{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
9482$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
9483
9484test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
9485
9486cat >>confdefs.h <<_ACEOF
9487#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9488_ACEOF
9489
9490
9491if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 9492 case " $LIBOBJS " in
8a2fc586 9493 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
9494 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9495 ;;
8a2fc586
AK
9496esac
9497
ad6254c5
AK
9498fi
9499
ec6a6fbe
AK
9500{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
9501$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 9502if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 9503 $as_echo_n "(cached) " >&6
ad6254c5
AK
9504else
9505 if test "$cross_compiling" = yes; then
9506 ac_cv_func_lstat_empty_string_bug=yes
9507else
9508 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9509/* confdefs.h. */
9510_ACEOF
9511cat confdefs.h >>conftest.$ac_ext
9512cat >>conftest.$ac_ext <<_ACEOF
9513/* end confdefs.h. */
9514$ac_includes_default
9515int
9516main ()
9517{
9518struct stat sbuf;
7a197a62 9519 return lstat ("", &sbuf) == 0;
ad6254c5
AK
9520 ;
9521 return 0;
9522}
9523_ACEOF
9524rm -f conftest$ac_exeext
7a197a62
AK
9525if { (ac_try="$ac_link"
9526case "(($ac_try" in
9527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9528 *) ac_try_echo=$ac_try;;
9529esac
ec6a6fbe
AK
9530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9531$as_echo "$ac_try_echo") >&5
7a197a62 9532 (eval "$ac_link") 2>&5
ad6254c5 9533 ac_status=$?
ec6a6fbe 9534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9536 { (case "(($ac_try" in
9537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9538 *) ac_try_echo=$ac_try;;
9539esac
ec6a6fbe
AK
9540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9541$as_echo "$ac_try_echo") >&5
7a197a62 9542 (eval "$ac_try") 2>&5
ad6254c5 9543 ac_status=$?
ec6a6fbe 9544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9545 (exit $ac_status); }; }; then
7a197a62 9546 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 9547else
ec6a6fbe
AK
9548 $as_echo "$as_me: program exited with status $ac_status" >&5
9549$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9550sed 's/^/| /' conftest.$ac_ext >&5
9551
9552( exit $ac_status )
7a197a62 9553ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 9554fi
ec6a6fbe 9555rm -rf conftest.dSYM
7a197a62 9556rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9557fi
7a197a62
AK
9558
9559
ad6254c5 9560fi
ec6a6fbe
AK
9561{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
9562$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 9563if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 9564 case " $LIBOBJS " in
8a2fc586 9565 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
9566 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9567 ;;
8a2fc586
AK
9568esac
9569
ad6254c5
AK
9570
9571cat >>confdefs.h <<_ACEOF
9572#define HAVE_LSTAT_EMPTY_STRING_BUG 1
9573_ACEOF
9574
9575fi
9576
9577
9578for ac_header in stdlib.h
9579do
ec6a6fbe 9580as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9581if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
9582 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9583$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9584if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9585 $as_echo_n "(cached) " >&6
ad6254c5 9586fi
ec6a6fbe
AK
9587ac_res=`eval 'as_val=${'$as_ac_Header'}
9588 $as_echo "$as_val"'`
9589 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9590$as_echo "$ac_res" >&6; }
ad6254c5
AK
9591else
9592 # Is the header compilable?
ec6a6fbe
AK
9593{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9594$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 9595cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9596/* confdefs.h. */
9597_ACEOF
9598cat confdefs.h >>conftest.$ac_ext
9599cat >>conftest.$ac_ext <<_ACEOF
9600/* end confdefs.h. */
9601$ac_includes_default
9602#include <$ac_header>
9603_ACEOF
9604rm -f conftest.$ac_objext
7a197a62
AK
9605if { (ac_try="$ac_compile"
9606case "(($ac_try" in
9607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9608 *) ac_try_echo=$ac_try;;
9609esac
ec6a6fbe
AK
9610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9611$as_echo "$ac_try_echo") >&5
7a197a62 9612 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9613 ac_status=$?
8a2fc586
AK
9614 grep -v '^ *+' conftest.er1 >conftest.err
9615 rm -f conftest.er1
9616 cat conftest.err >&5
ec6a6fbe 9617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9618 (exit $ac_status); } && {
9619 test -z "$ac_c_werror_flag" ||
9620 test ! -s conftest.err
9621 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9622 ac_header_compiler=yes
9623else
ec6a6fbe 9624 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9625sed 's/^/| /' conftest.$ac_ext >&5
9626
7a197a62 9627 ac_header_compiler=no
ad6254c5 9628fi
7a197a62
AK
9629
9630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
9631{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9632$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
9633
9634# Is the header present?
ec6a6fbe
AK
9635{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9636$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 9637cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9638/* confdefs.h. */
9639_ACEOF
9640cat confdefs.h >>conftest.$ac_ext
9641cat >>conftest.$ac_ext <<_ACEOF
9642/* end confdefs.h. */
9643#include <$ac_header>
9644_ACEOF
7a197a62
AK
9645if { (ac_try="$ac_cpp conftest.$ac_ext"
9646case "(($ac_try" in
9647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648 *) ac_try_echo=$ac_try;;
9649esac
ec6a6fbe
AK
9650eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9651$as_echo "$ac_try_echo") >&5
7a197a62 9652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9653 ac_status=$?
9654 grep -v '^ *+' conftest.er1 >conftest.err
9655 rm -f conftest.er1
9656 cat conftest.err >&5
ec6a6fbe 9657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9658 (exit $ac_status); } >/dev/null && {
9659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9660 test ! -s conftest.err
9661 }; then
ad6254c5
AK
9662 ac_header_preproc=yes
9663else
ec6a6fbe 9664 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9665sed 's/^/| /' conftest.$ac_ext >&5
9666
9667 ac_header_preproc=no
9668fi
7a197a62 9669
ad6254c5 9670rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
9671{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9672$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
9673
9674# So? What about this header?
8a2fc586
AK
9675case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9676 yes:no: )
ec6a6fbe
AK
9677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9678$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9680$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9681 ac_header_preproc=yes
ad6254c5 9682 ;;
8a2fc586 9683 no:yes:* )
ec6a6fbe
AK
9684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9685$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9687$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9689$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9691$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9693$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9695$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9696
ad6254c5
AK
9697 ;;
9698esac
ec6a6fbe
AK
9699{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9700$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9701if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9702 $as_echo_n "(cached) " >&6
ad6254c5 9703else
8a2fc586 9704 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9705fi
ec6a6fbe
AK
9706ac_res=`eval 'as_val=${'$as_ac_Header'}
9707 $as_echo "$as_val"'`
9708 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9709$as_echo "$ac_res" >&6; }
ad6254c5
AK
9710
9711fi
ec6a6fbe
AK
9712as_val=`eval 'as_val=${'$as_ac_Header'}
9713 $as_echo "$as_val"'`
9714 if test "x$as_val" = x""yes; then
ad6254c5 9715 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9716#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
9717_ACEOF
9718
9719fi
9720
9721done
9722
ec6a6fbe
AK
9723{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9724$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 9725if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 9726 $as_echo_n "(cached) " >&6
ad6254c5
AK
9727else
9728 if test "$cross_compiling" = yes; then
9729 ac_cv_func_malloc_0_nonnull=no
9730else
9731 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9732/* confdefs.h. */
9733_ACEOF
9734cat confdefs.h >>conftest.$ac_ext
9735cat >>conftest.$ac_ext <<_ACEOF
9736/* end confdefs.h. */
25fbec5b 9737#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
9738# include <stdlib.h>
9739#else
9740char *malloc ();
9741#endif
9742
9743int
9744main ()
9745{
7a197a62 9746return ! malloc (0);
ad6254c5
AK
9747 ;
9748 return 0;
9749}
9750_ACEOF
9751rm -f conftest$ac_exeext
7a197a62
AK
9752if { (ac_try="$ac_link"
9753case "(($ac_try" in
9754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9755 *) ac_try_echo=$ac_try;;
9756esac
ec6a6fbe
AK
9757eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9758$as_echo "$ac_try_echo") >&5
7a197a62 9759 (eval "$ac_link") 2>&5
ad6254c5 9760 ac_status=$?
ec6a6fbe 9761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9763 { (case "(($ac_try" in
9764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765 *) ac_try_echo=$ac_try;;
9766esac
ec6a6fbe
AK
9767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9768$as_echo "$ac_try_echo") >&5
7a197a62 9769 (eval "$ac_try") 2>&5
ad6254c5 9770 ac_status=$?
ec6a6fbe 9771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9772 (exit $ac_status); }; }; then
9773 ac_cv_func_malloc_0_nonnull=yes
9774else
ec6a6fbe
AK
9775 $as_echo "$as_me: program exited with status $ac_status" >&5
9776$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9777sed 's/^/| /' conftest.$ac_ext >&5
9778
9779( exit $ac_status )
9780ac_cv_func_malloc_0_nonnull=no
9781fi
ec6a6fbe 9782rm -rf conftest.dSYM
7a197a62 9783rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9784fi
7a197a62
AK
9785
9786
ad6254c5 9787fi
ec6a6fbe
AK
9788{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9789$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
9790if test $ac_cv_func_malloc_0_nonnull = yes; then
9791
9792cat >>confdefs.h <<\_ACEOF
9793#define HAVE_MALLOC 1
9794_ACEOF
9795
9796else
9797 cat >>confdefs.h <<\_ACEOF
9798#define HAVE_MALLOC 0
9799_ACEOF
9800
7a197a62 9801 case " $LIBOBJS " in
8a2fc586 9802 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
9803 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
9804 ;;
8a2fc586
AK
9805esac
9806
ad6254c5
AK
9807
9808cat >>confdefs.h <<\_ACEOF
9809#define malloc rpl_malloc
9810_ACEOF
9811
9812fi
9813
9814
9815
ec6a6fbe
AK
9816{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
9817$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 9818if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 9819 $as_echo_n "(cached) " >&6
ad6254c5
AK
9820else
9821 if test "$cross_compiling" = yes; then
9822 ac_cv_func_memcmp_working=no
9823else
9824 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9825/* confdefs.h. */
9826_ACEOF
9827cat confdefs.h >>conftest.$ac_ext
9828cat >>conftest.$ac_ext <<_ACEOF
9829/* end confdefs.h. */
8a2fc586 9830$ac_includes_default
ad6254c5
AK
9831int
9832main ()
9833{
9834
9835 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 9836 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 9837 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 9838 return 1;
ad6254c5
AK
9839
9840 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9841 or more and with at least one buffer not starting on a 4-byte boundary.
9842 William Lewis provided this test program. */
9843 {
9844 char foo[21];
9845 char bar[21];
9846 int i;
9847 for (i = 0; i < 4; i++)
9848 {
8a2fc586
AK
9849 char *a = foo + i;
9850 char *b = bar + i;
9851 strcpy (a, "--------01111111");
9852 strcpy (b, "--------10000000");
9853 if (memcmp (a, b, 16) >= 0)
7a197a62 9854 return 1;
ad6254c5 9855 }
7a197a62 9856 return 0;
ad6254c5
AK
9857 }
9858
9859 ;
9860 return 0;
9861}
9862_ACEOF
9863rm -f conftest$ac_exeext
7a197a62
AK
9864if { (ac_try="$ac_link"
9865case "(($ac_try" in
9866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867 *) ac_try_echo=$ac_try;;
9868esac
ec6a6fbe
AK
9869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9870$as_echo "$ac_try_echo") >&5
7a197a62 9871 (eval "$ac_link") 2>&5
ad6254c5 9872 ac_status=$?
ec6a6fbe 9873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9875 { (case "(($ac_try" in
9876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9877 *) ac_try_echo=$ac_try;;
9878esac
ec6a6fbe
AK
9879eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9880$as_echo "$ac_try_echo") >&5
7a197a62 9881 (eval "$ac_try") 2>&5
ad6254c5 9882 ac_status=$?
ec6a6fbe 9883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9884 (exit $ac_status); }; }; then
9885 ac_cv_func_memcmp_working=yes
9886else
ec6a6fbe
AK
9887 $as_echo "$as_me: program exited with status $ac_status" >&5
9888$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9889sed 's/^/| /' conftest.$ac_ext >&5
9890
9891( exit $ac_status )
9892ac_cv_func_memcmp_working=no
9893fi
ec6a6fbe 9894rm -rf conftest.dSYM
7a197a62 9895rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9896fi
7a197a62
AK
9897
9898
ad6254c5 9899fi
ec6a6fbe
AK
9900{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9901$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 9902test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 9903 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
9904 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9905 ;;
8a2fc586
AK
9906esac
9907
ad6254c5
AK
9908
9909
9910
9911for ac_header in stdlib.h unistd.h
9912do
ec6a6fbe 9913as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
9915 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9916$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9918 $as_echo_n "(cached) " >&6
ad6254c5 9919fi
ec6a6fbe
AK
9920ac_res=`eval 'as_val=${'$as_ac_Header'}
9921 $as_echo "$as_val"'`
9922 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9923$as_echo "$ac_res" >&6; }
ad6254c5
AK
9924else
9925 # Is the header compilable?
ec6a6fbe
AK
9926{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9927$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 9928cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9929/* confdefs.h. */
9930_ACEOF
9931cat confdefs.h >>conftest.$ac_ext
9932cat >>conftest.$ac_ext <<_ACEOF
9933/* end confdefs.h. */
9934$ac_includes_default
9935#include <$ac_header>
9936_ACEOF
9937rm -f conftest.$ac_objext
7a197a62
AK
9938if { (ac_try="$ac_compile"
9939case "(($ac_try" in
9940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941 *) ac_try_echo=$ac_try;;
9942esac
ec6a6fbe
AK
9943eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9944$as_echo "$ac_try_echo") >&5
7a197a62 9945 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9946 ac_status=$?
8a2fc586
AK
9947 grep -v '^ *+' conftest.er1 >conftest.err
9948 rm -f conftest.er1
9949 cat conftest.err >&5
ec6a6fbe 9950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9951 (exit $ac_status); } && {
9952 test -z "$ac_c_werror_flag" ||
9953 test ! -s conftest.err
9954 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9955 ac_header_compiler=yes
9956else
ec6a6fbe 9957 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9958sed 's/^/| /' conftest.$ac_ext >&5
9959
7a197a62 9960 ac_header_compiler=no
ad6254c5 9961fi
7a197a62
AK
9962
9963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
9964{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9965$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
9966
9967# Is the header present?
ec6a6fbe
AK
9968{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9969$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 9970cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9971/* confdefs.h. */
9972_ACEOF
9973cat confdefs.h >>conftest.$ac_ext
9974cat >>conftest.$ac_ext <<_ACEOF
9975/* end confdefs.h. */
9976#include <$ac_header>
9977_ACEOF
7a197a62
AK
9978if { (ac_try="$ac_cpp conftest.$ac_ext"
9979case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9982esac
ec6a6fbe
AK
9983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9984$as_echo "$ac_try_echo") >&5
7a197a62 9985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9986 ac_status=$?
9987 grep -v '^ *+' conftest.er1 >conftest.err
9988 rm -f conftest.er1
9989 cat conftest.err >&5
ec6a6fbe 9990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9991 (exit $ac_status); } >/dev/null && {
9992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9993 test ! -s conftest.err
9994 }; then
ad6254c5
AK
9995 ac_header_preproc=yes
9996else
ec6a6fbe 9997 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9998sed 's/^/| /' conftest.$ac_ext >&5
9999
10000 ac_header_preproc=no
10001fi
7a197a62 10002
ad6254c5 10003rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
10004{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10005$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
10006
10007# So? What about this header?
8a2fc586
AK
10008case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10009 yes:no: )
ec6a6fbe
AK
10010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10011$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10013$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10014 ac_header_preproc=yes
ad6254c5 10015 ;;
8a2fc586 10016 no:yes:* )
ec6a6fbe
AK
10017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10018$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10020$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10022$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10024$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10026$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10028$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10029
ad6254c5
AK
10030 ;;
10031esac
ec6a6fbe
AK
10032{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10033$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10034if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10035 $as_echo_n "(cached) " >&6
ad6254c5 10036else
8a2fc586 10037 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10038fi
ec6a6fbe
AK
10039ac_res=`eval 'as_val=${'$as_ac_Header'}
10040 $as_echo "$as_val"'`
10041 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10042$as_echo "$ac_res" >&6; }
ad6254c5
AK
10043
10044fi
ec6a6fbe
AK
10045as_val=`eval 'as_val=${'$as_ac_Header'}
10046 $as_echo "$as_val"'`
10047 if test "x$as_val" = x""yes; then
ad6254c5 10048 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10049#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10050_ACEOF
10051
10052fi
10053
10054done
10055
10056
10057for ac_func in getpagesize
10058do
ec6a6fbe
AK
10059as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10060{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10061$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 10062if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10063 $as_echo_n "(cached) " >&6
ad6254c5
AK
10064else
10065 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10066/* confdefs.h. */
10067_ACEOF
10068cat confdefs.h >>conftest.$ac_ext
10069cat >>conftest.$ac_ext <<_ACEOF
10070/* end confdefs.h. */
8a2fc586
AK
10071/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10073#define $ac_func innocuous_$ac_func
10074
ad6254c5
AK
10075/* System header to define __stub macros and hopefully few prototypes,
10076 which can conflict with char $ac_func (); below.
10077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10078 <limits.h> exists even on freestanding compilers. */
8a2fc586 10079
ad6254c5
AK
10080#ifdef __STDC__
10081# include <limits.h>
10082#else
10083# include <assert.h>
10084#endif
8a2fc586
AK
10085
10086#undef $ac_func
10087
7a197a62
AK
10088/* Override any GCC internal prototype to avoid an error.
10089 Use char because int might match the return type of a GCC
10090 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10091#ifdef __cplusplus
10092extern "C"
ad6254c5 10093#endif
ad6254c5
AK
10094char $ac_func ();
10095/* The GNU C library defines this for functions which it implements
10096 to always fail with ENOSYS. Some functions are actually named
10097 something starting with __ and the normal name is an alias. */
7a197a62 10098#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 10099choke me
ad6254c5
AK
10100#endif
10101
10102int
10103main ()
10104{
7a197a62 10105return $ac_func ();
ad6254c5
AK
10106 ;
10107 return 0;
10108}
10109_ACEOF
10110rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10111if { (ac_try="$ac_link"
10112case "(($ac_try" in
10113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114 *) ac_try_echo=$ac_try;;
10115esac
ec6a6fbe
AK
10116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10117$as_echo "$ac_try_echo") >&5
7a197a62 10118 (eval "$ac_link") 2>conftest.er1
ad6254c5 10119 ac_status=$?
8a2fc586
AK
10120 grep -v '^ *+' conftest.er1 >conftest.err
10121 rm -f conftest.er1
10122 cat conftest.err >&5
ec6a6fbe 10123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10124 (exit $ac_status); } && {
10125 test -z "$ac_c_werror_flag" ||
10126 test ! -s conftest.err
ec6a6fbe
AK
10127 } && test -s conftest$ac_exeext && {
10128 test "$cross_compiling" = yes ||
10129 $as_test_x conftest$ac_exeext
10130 }; then
ad6254c5
AK
10131 eval "$as_ac_var=yes"
10132else
ec6a6fbe 10133 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10134sed 's/^/| /' conftest.$ac_ext >&5
10135
7a197a62 10136 eval "$as_ac_var=no"
ad6254c5 10137fi
7a197a62 10138
ec6a6fbe 10139rm -rf conftest.dSYM
25fbec5b 10140rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10141 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10142fi
ec6a6fbe
AK
10143ac_res=`eval 'as_val=${'$as_ac_var'}
10144 $as_echo "$as_val"'`
10145 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10146$as_echo "$ac_res" >&6; }
10147as_val=`eval 'as_val=${'$as_ac_var'}
10148 $as_echo "$as_val"'`
10149 if test "x$as_val" = x""yes; then
ad6254c5 10150 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10151#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
10152_ACEOF
10153
10154fi
10155done
10156
ec6a6fbe
AK
10157{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10158$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 10159if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 10160 $as_echo_n "(cached) " >&6
ad6254c5
AK
10161else
10162 if test "$cross_compiling" = yes; then
10163 ac_cv_func_mmap_fixed_mapped=no
10164else
10165 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10166/* confdefs.h. */
10167_ACEOF
10168cat confdefs.h >>conftest.$ac_ext
10169cat >>conftest.$ac_ext <<_ACEOF
10170/* end confdefs.h. */
10171$ac_includes_default
10172/* malloc might have been renamed as rpl_malloc. */
10173#undef malloc
10174
10175/* Thanks to Mike Haertel and Jim Avera for this test.
10176 Here is a matrix of mmap possibilities:
10177 mmap private not fixed
10178 mmap private fixed at somewhere currently unmapped
10179 mmap private fixed at somewhere already mapped
10180 mmap shared not fixed
10181 mmap shared fixed at somewhere currently unmapped
10182 mmap shared fixed at somewhere already mapped
10183 For private mappings, we should verify that changes cannot be read()
10184 back from the file, nor mmap's back from the file at a different
10185 address. (There have been systems where private was not correctly
10186 implemented like the infamous i386 svr4.0, and systems where the
10187 VM page cache was not coherent with the file system buffer cache
10188 like early versions of FreeBSD and possibly contemporary NetBSD.)
10189 For shared mappings, we should conversely verify that changes get
10190 propagated back to all the places they're supposed to be.
10191
10192 Grep wants private fixed already mapped.
10193 The main things grep needs to know about mmap are:
10194 * does it exist and is it safe to write into the mmap'd area
10195 * how to use it (BSD variants) */
10196
10197#include <fcntl.h>
10198#include <sys/mman.h>
10199
25fbec5b 10200#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
10201char *malloc ();
10202#endif
10203
10204/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 10205#ifndef HAVE_GETPAGESIZE
ad6254c5 10206/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 10207# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
10208# define HAVE_SYS_PARAM_H 1
10209# endif
10210
10211# ifdef _SC_PAGESIZE
10212# define getpagesize() sysconf(_SC_PAGESIZE)
10213# else /* no _SC_PAGESIZE */
25fbec5b 10214# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
10215# include <sys/param.h>
10216# ifdef EXEC_PAGESIZE
10217# define getpagesize() EXEC_PAGESIZE
10218# else /* no EXEC_PAGESIZE */
10219# ifdef NBPG
10220# define getpagesize() NBPG * CLSIZE
10221# ifndef CLSIZE
10222# define CLSIZE 1
10223# endif /* no CLSIZE */
10224# else /* no NBPG */
10225# ifdef NBPC
10226# define getpagesize() NBPC
10227# else /* no NBPC */
10228# ifdef PAGESIZE
10229# define getpagesize() PAGESIZE
10230# endif /* PAGESIZE */
10231# endif /* no NBPC */
10232# endif /* no NBPG */
10233# endif /* no EXEC_PAGESIZE */
10234# else /* no HAVE_SYS_PARAM_H */
10235# define getpagesize() 8192 /* punt totally */
10236# endif /* no HAVE_SYS_PARAM_H */
10237# endif /* no _SC_PAGESIZE */
10238
10239#endif /* no HAVE_GETPAGESIZE */
10240
10241int
10242main ()
10243{
10244 char *data, *data2, *data3;
10245 int i, pagesize;
10246 int fd;
10247
10248 pagesize = getpagesize ();
10249
10250 /* First, make a file with some known garbage in it. */
10251 data = (char *) malloc (pagesize);
10252 if (!data)
7a197a62 10253 return 1;
ad6254c5
AK
10254 for (i = 0; i < pagesize; ++i)
10255 *(data + i) = rand ();
10256 umask (0);
10257 fd = creat ("conftest.mmap", 0600);
10258 if (fd < 0)
7a197a62 10259 return 1;
ad6254c5 10260 if (write (fd, data, pagesize) != pagesize)
7a197a62 10261 return 1;
ad6254c5
AK
10262 close (fd);
10263
10264 /* Next, try to mmap the file at a fixed address which already has
10265 something else allocated at it. If we can, also make sure that
10266 we see the same garbage. */
10267 fd = open ("conftest.mmap", O_RDWR);
10268 if (fd < 0)
7a197a62 10269 return 1;
ad6254c5
AK
10270 data2 = (char *) malloc (2 * pagesize);
10271 if (!data2)
7a197a62
AK
10272 return 1;
10273 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 10274 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 10275 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 10276 return 1;
ad6254c5
AK
10277 for (i = 0; i < pagesize; ++i)
10278 if (*(data + i) != *(data2 + i))
7a197a62 10279 return 1;
ad6254c5 10280
d911ec67
AK
10281 /* Finally, make sure that changes to the mapped area do not
10282 percolate back to the file as seen by read(). (This is a bug on
10283 some variants of i386 svr4.0.) */
10284 for (i = 0; i < pagesize; ++i)
10285 *(data2 + i) = *(data2 + i) + 1;
10286 data3 = (char *) malloc (pagesize);
10287 if (!data3)
10288 return 1;
10289 if (read (fd, data3, pagesize) != pagesize)
10290 return 1;
10291 for (i = 0; i < pagesize; ++i)
10292 if (*(data + i) != *(data3 + i))
10293 return 1;
10294 close (fd);
10295 return 0;
10296}
10297_ACEOF
10298rm -f conftest$ac_exeext
10299if { (ac_try="$ac_link"
10300case "(($ac_try" in
10301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302 *) ac_try_echo=$ac_try;;
10303esac
10304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10305$as_echo "$ac_try_echo") >&5
10306 (eval "$ac_link") 2>&5
10307 ac_status=$?
10308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10310 { (case "(($ac_try" in
10311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312 *) ac_try_echo=$ac_try;;
10313esac
10314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10315$as_echo "$ac_try_echo") >&5
10316 (eval "$ac_try") 2>&5
10317 ac_status=$?
10318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); }; }; then
10320 ac_cv_func_mmap_fixed_mapped=yes
10321else
10322 $as_echo "$as_me: program exited with status $ac_status" >&5
10323$as_echo "$as_me: failed program was:" >&5
10324sed 's/^/| /' conftest.$ac_ext >&5
10325
10326( exit $ac_status )
10327ac_cv_func_mmap_fixed_mapped=no
10328fi
10329rm -rf conftest.dSYM
10330rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10331fi
10332
10333
10334fi
10335{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10336$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10337if test $ac_cv_func_mmap_fixed_mapped = yes; then
10338
10339cat >>confdefs.h <<\_ACEOF
10340#define HAVE_MMAP 1
10341_ACEOF
10342
10343fi
10344rm -f conftest.mmap
10345
10346
10347for ac_header in stdlib.h
10348do
10349as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10350if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10351 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10352$as_echo_n "checking for $ac_header... " >&6; }
10353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10354 $as_echo_n "(cached) " >&6
10355fi
10356ac_res=`eval 'as_val=${'$as_ac_Header'}
10357 $as_echo "$as_val"'`
10358 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10359$as_echo "$ac_res" >&6; }
10360else
10361 # Is the header compilable?
10362{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10363$as_echo_n "checking $ac_header usability... " >&6; }
10364cat >conftest.$ac_ext <<_ACEOF
10365/* confdefs.h. */
10366_ACEOF
10367cat confdefs.h >>conftest.$ac_ext
10368cat >>conftest.$ac_ext <<_ACEOF
10369/* end confdefs.h. */
10370$ac_includes_default
10371#include <$ac_header>
10372_ACEOF
10373rm -f conftest.$ac_objext
10374if { (ac_try="$ac_compile"
10375case "(($ac_try" in
10376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377 *) ac_try_echo=$ac_try;;
10378esac
10379eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10380$as_echo "$ac_try_echo") >&5
10381 (eval "$ac_compile") 2>conftest.er1
10382 ac_status=$?
10383 grep -v '^ *+' conftest.er1 >conftest.err
10384 rm -f conftest.er1
10385 cat conftest.err >&5
10386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } && {
10388 test -z "$ac_c_werror_flag" ||
10389 test ! -s conftest.err
10390 } && test -s conftest.$ac_objext; then
10391 ac_header_compiler=yes
10392else
10393 $as_echo "$as_me: failed program was:" >&5
10394sed 's/^/| /' conftest.$ac_ext >&5
10395
10396 ac_header_compiler=no
10397fi
10398
10399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10400{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10401$as_echo "$ac_header_compiler" >&6; }
10402
10403# Is the header present?
10404{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10405$as_echo_n "checking $ac_header presence... " >&6; }
10406cat >conftest.$ac_ext <<_ACEOF
10407/* confdefs.h. */
10408_ACEOF
10409cat confdefs.h >>conftest.$ac_ext
10410cat >>conftest.$ac_ext <<_ACEOF
10411/* end confdefs.h. */
10412#include <$ac_header>
10413_ACEOF
10414if { (ac_try="$ac_cpp conftest.$ac_ext"
10415case "(($ac_try" in
10416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10417 *) ac_try_echo=$ac_try;;
10418esac
10419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10420$as_echo "$ac_try_echo") >&5
10421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10422 ac_status=$?
10423 grep -v '^ *+' conftest.er1 >conftest.err
10424 rm -f conftest.er1
10425 cat conftest.err >&5
10426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); } >/dev/null && {
10428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10429 test ! -s conftest.err
10430 }; then
10431 ac_header_preproc=yes
10432else
10433 $as_echo "$as_me: failed program was:" >&5
10434sed 's/^/| /' conftest.$ac_ext >&5
10435
10436 ac_header_preproc=no
10437fi
10438
10439rm -f conftest.err conftest.$ac_ext
10440{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10441$as_echo "$ac_header_preproc" >&6; }
10442
10443# So? What about this header?
10444case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10445 yes:no: )
10446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10447$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10449$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10450 ac_header_preproc=yes
10451 ;;
10452 no:yes:* )
10453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10454$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10456$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10458$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10460$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10462$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10464$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10465
10466 ;;
10467esac
10468{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10469$as_echo_n "checking for $ac_header... " >&6; }
10470if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10471 $as_echo_n "(cached) " >&6
10472else
10473 eval "$as_ac_Header=\$ac_header_preproc"
10474fi
10475ac_res=`eval 'as_val=${'$as_ac_Header'}
10476 $as_echo "$as_val"'`
10477 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10478$as_echo "$ac_res" >&6; }
10479
10480fi
10481as_val=`eval 'as_val=${'$as_ac_Header'}
10482 $as_echo "$as_val"'`
10483 if test "x$as_val" = x""yes; then
10484 cat >>confdefs.h <<_ACEOF
10485#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10486_ACEOF
10487
10488fi
10489
10490done
10491
10492{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
10493$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
10494if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
10495 $as_echo_n "(cached) " >&6
10496else
10497 if test "$cross_compiling" = yes; then
10498 ac_cv_func_realloc_0_nonnull=no
10499else
10500 cat >conftest.$ac_ext <<_ACEOF
10501/* confdefs.h. */
10502_ACEOF
10503cat confdefs.h >>conftest.$ac_ext
10504cat >>conftest.$ac_ext <<_ACEOF
10505/* end confdefs.h. */
10506#if defined STDC_HEADERS || defined HAVE_STDLIB_H
10507# include <stdlib.h>
10508#else
10509char *realloc ();
10510#endif
10511
10512int
10513main ()
10514{
10515return ! realloc (0, 0);
10516 ;
7a197a62 10517 return 0;
ad6254c5
AK
10518}
10519_ACEOF
10520rm -f conftest$ac_exeext
7a197a62
AK
10521if { (ac_try="$ac_link"
10522case "(($ac_try" in
10523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524 *) ac_try_echo=$ac_try;;
10525esac
ec6a6fbe
AK
10526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10527$as_echo "$ac_try_echo") >&5
7a197a62 10528 (eval "$ac_link") 2>&5
ad6254c5 10529 ac_status=$?
ec6a6fbe 10530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
10532 { (case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10535esac
ec6a6fbe
AK
10536eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10537$as_echo "$ac_try_echo") >&5
7a197a62 10538 (eval "$ac_try") 2>&5
ad6254c5 10539 ac_status=$?
ec6a6fbe 10540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10541 (exit $ac_status); }; }; then
d911ec67 10542 ac_cv_func_realloc_0_nonnull=yes
ad6254c5 10543else
ec6a6fbe
AK
10544 $as_echo "$as_me: program exited with status $ac_status" >&5
10545$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10546sed 's/^/| /' conftest.$ac_ext >&5
10547
10548( exit $ac_status )
d911ec67 10549ac_cv_func_realloc_0_nonnull=no
ad6254c5 10550fi
ec6a6fbe 10551rm -rf conftest.dSYM
7a197a62 10552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 10553fi
7a197a62
AK
10554
10555
ad6254c5 10556fi
d911ec67
AK
10557{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
10558$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
10559if test $ac_cv_func_realloc_0_nonnull = yes; then
ad6254c5
AK
10560
10561cat >>confdefs.h <<\_ACEOF
d911ec67
AK
10562#define HAVE_REALLOC 1
10563_ACEOF
10564
10565else
10566 cat >>confdefs.h <<\_ACEOF
10567#define HAVE_REALLOC 0
10568_ACEOF
10569
10570 case " $LIBOBJS " in
10571 *" realloc.$ac_objext "* ) ;;
10572 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
10573 ;;
10574esac
10575
10576
10577cat >>confdefs.h <<\_ACEOF
10578#define realloc rpl_realloc
ad6254c5
AK
10579_ACEOF
10580
10581fi
d911ec67
AK
10582
10583
ad6254c5 10584
ec6a6fbe
AK
10585{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
10586$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 10587if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 10588 $as_echo_n "(cached) " >&6
ad6254c5
AK
10589else
10590 if test "$cross_compiling" = yes; then
10591 ac_cv_func_stat_empty_string_bug=yes
10592else
10593 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10594/* confdefs.h. */
10595_ACEOF
10596cat confdefs.h >>conftest.$ac_ext
10597cat >>conftest.$ac_ext <<_ACEOF
10598/* end confdefs.h. */
10599$ac_includes_default
10600int
10601main ()
10602{
10603struct stat sbuf;
7a197a62 10604 return stat ("", &sbuf) == 0;
ad6254c5
AK
10605 ;
10606 return 0;
10607}
10608_ACEOF
10609rm -f conftest$ac_exeext
7a197a62
AK
10610if { (ac_try="$ac_link"
10611case "(($ac_try" in
10612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613 *) ac_try_echo=$ac_try;;
10614esac
ec6a6fbe
AK
10615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10616$as_echo "$ac_try_echo") >&5
7a197a62 10617 (eval "$ac_link") 2>&5
ad6254c5 10618 ac_status=$?
ec6a6fbe 10619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
10621 { (case "(($ac_try" in
10622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623 *) ac_try_echo=$ac_try;;
10624esac
ec6a6fbe
AK
10625eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10626$as_echo "$ac_try_echo") >&5
7a197a62 10627 (eval "$ac_try") 2>&5
ad6254c5 10628 ac_status=$?
ec6a6fbe 10629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10630 (exit $ac_status); }; }; then
7a197a62 10631 ac_cv_func_stat_empty_string_bug=no
ad6254c5 10632else
ec6a6fbe
AK
10633 $as_echo "$as_me: program exited with status $ac_status" >&5
10634$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10635sed 's/^/| /' conftest.$ac_ext >&5
10636
10637( exit $ac_status )
7a197a62 10638ac_cv_func_stat_empty_string_bug=yes
ad6254c5 10639fi
ec6a6fbe 10640rm -rf conftest.dSYM
7a197a62 10641rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 10642fi
7a197a62
AK
10643
10644
ad6254c5 10645fi
ec6a6fbe
AK
10646{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
10647$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 10648if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 10649 case " $LIBOBJS " in
8a2fc586 10650 *" stat.$ac_objext "* ) ;;
7a197a62
AK
10651 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
10652 ;;
8a2fc586
AK
10653esac
10654
ad6254c5
AK
10655
10656cat >>confdefs.h <<_ACEOF
10657#define HAVE_STAT_EMPTY_STRING_BUG 1
10658_ACEOF
10659
10660fi
10661
ec6a6fbe
AK
10662{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
10663$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 10664if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 10665 $as_echo_n "(cached) " >&6
ad6254c5
AK
10666else
10667 if test "$cross_compiling" = yes; then
10668 ac_cv_func_strtod=no
10669else
10670 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10671/* confdefs.h. */
10672_ACEOF
10673cat confdefs.h >>conftest.$ac_ext
10674cat >>conftest.$ac_ext <<_ACEOF
10675/* end confdefs.h. */
10676
7a197a62
AK
10677$ac_includes_default
10678#ifndef strtod
ad6254c5 10679double strtod ();
7a197a62 10680#endif
ad6254c5
AK
10681int
10682main()
10683{
10684 {
10685 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
10686 char *string = " +69";
10687 char *term;
10688 double value;
10689 value = strtod (string, &term);
10690 if (value != 69 || term != (string + 4))
7a197a62 10691 return 1;
ad6254c5
AK
10692 }
10693
10694 {
10695 /* Under Solaris 2.4, strtod returns the wrong value for the
10696 terminating character under some conditions. */
10697 char *string = "NaN";
10698 char *term;
10699 strtod (string, &term);
10700 if (term != string && *(term - 1) == 0)
7a197a62 10701 return 1;
ad6254c5 10702 }
7a197a62 10703 return 0;
ad6254c5
AK
10704}
10705
10706_ACEOF
10707rm -f conftest$ac_exeext
7a197a62
AK
10708if { (ac_try="$ac_link"
10709case "(($ac_try" in
10710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10711 *) ac_try_echo=$ac_try;;
10712esac
ec6a6fbe
AK
10713eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10714$as_echo "$ac_try_echo") >&5
7a197a62 10715 (eval "$ac_link") 2>&5
ad6254c5 10716 ac_status=$?
ec6a6fbe 10717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
10719 { (case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10722esac
ec6a6fbe
AK
10723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10724$as_echo "$ac_try_echo") >&5
7a197a62 10725 (eval "$ac_try") 2>&5
ad6254c5 10726 ac_status=$?
ec6a6fbe 10727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
10728 (exit $ac_status); }; }; then
10729 ac_cv_func_strtod=yes
10730else
ec6a6fbe
AK
10731 $as_echo "$as_me: program exited with status $ac_status" >&5
10732$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10733sed 's/^/| /' conftest.$ac_ext >&5
10734
10735( exit $ac_status )
10736ac_cv_func_strtod=no
10737fi
ec6a6fbe 10738rm -rf conftest.dSYM
7a197a62 10739rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 10740fi
7a197a62
AK
10741
10742
ad6254c5 10743fi
ec6a6fbe
AK
10744{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
10745$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 10746if test $ac_cv_func_strtod = no; then
7a197a62 10747 case " $LIBOBJS " in
8a2fc586 10748 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
10749 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
10750 ;;
8a2fc586
AK
10751esac
10752
ec6a6fbe
AK
10753{ $as_echo "$as_me:$LINENO: checking for pow" >&5
10754$as_echo_n "checking for pow... " >&6; }
ad6254c5 10755if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 10756 $as_echo_n "(cached) " >&6
ad6254c5
AK
10757else
10758 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10759/* confdefs.h. */
10760_ACEOF
10761cat confdefs.h >>conftest.$ac_ext
10762cat >>conftest.$ac_ext <<_ACEOF
10763/* end confdefs.h. */
8a2fc586
AK
10764/* Define pow to an innocuous variant, in case <limits.h> declares pow.
10765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10766#define pow innocuous_pow
10767
ad6254c5
AK
10768/* System header to define __stub macros and hopefully few prototypes,
10769 which can conflict with char pow (); below.
10770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10771 <limits.h> exists even on freestanding compilers. */
8a2fc586 10772
ad6254c5
AK
10773#ifdef __STDC__
10774# include <limits.h>
10775#else
10776# include <assert.h>
10777#endif
8a2fc586
AK
10778
10779#undef pow
10780
7a197a62
AK
10781/* Override any GCC internal prototype to avoid an error.
10782 Use char because int might match the return type of a GCC
10783 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10784#ifdef __cplusplus
10785extern "C"
ad6254c5 10786#endif
ad6254c5
AK
10787char pow ();
10788/* The GNU C library defines this for functions which it implements
10789 to always fail with ENOSYS. Some functions are actually named
10790 something starting with __ and the normal name is an alias. */
7a197a62 10791#if defined __stub_pow || defined __stub___pow
ad6254c5 10792choke me
ad6254c5
AK
10793#endif
10794
10795int
10796main ()
10797{
7a197a62 10798return pow ();
ad6254c5
AK
10799 ;
10800 return 0;
10801}
10802_ACEOF
10803rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10804if { (ac_try="$ac_link"
10805case "(($ac_try" in
10806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807 *) ac_try_echo=$ac_try;;
10808esac
ec6a6fbe
AK
10809eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10810$as_echo "$ac_try_echo") >&5
7a197a62 10811 (eval "$ac_link") 2>conftest.er1
ad6254c5 10812 ac_status=$?
8a2fc586
AK
10813 grep -v '^ *+' conftest.er1 >conftest.err
10814 rm -f conftest.er1
10815 cat conftest.err >&5
ec6a6fbe 10816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10817 (exit $ac_status); } && {
10818 test -z "$ac_c_werror_flag" ||
10819 test ! -s conftest.err
ec6a6fbe
AK
10820 } && test -s conftest$ac_exeext && {
10821 test "$cross_compiling" = yes ||
10822 $as_test_x conftest$ac_exeext
10823 }; then
ad6254c5
AK
10824 ac_cv_func_pow=yes
10825else
ec6a6fbe 10826 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10827sed 's/^/| /' conftest.$ac_ext >&5
10828
7a197a62 10829 ac_cv_func_pow=no
ad6254c5 10830fi
7a197a62 10831
ec6a6fbe 10832rm -rf conftest.dSYM
25fbec5b 10833rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10834 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10835fi
ec6a6fbe
AK
10836{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
10837$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
10838
10839if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
10840 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
10841$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 10842if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 10843 $as_echo_n "(cached) " >&6
ad6254c5
AK
10844else
10845 ac_check_lib_save_LIBS=$LIBS
10846LIBS="-lm $LIBS"
10847cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10848/* confdefs.h. */
10849_ACEOF
10850cat confdefs.h >>conftest.$ac_ext
10851cat >>conftest.$ac_ext <<_ACEOF
10852/* end confdefs.h. */
10853
7a197a62
AK
10854/* Override any GCC internal prototype to avoid an error.
10855 Use char because int might match the return type of a GCC
10856 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10857#ifdef __cplusplus
10858extern "C"
10859#endif
ad6254c5
AK
10860char pow ();
10861int
10862main ()
10863{
7a197a62 10864return pow ();
ad6254c5
AK
10865 ;
10866 return 0;
10867}
10868_ACEOF
10869rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10870if { (ac_try="$ac_link"
10871case "(($ac_try" in
10872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10873 *) ac_try_echo=$ac_try;;
10874esac
ec6a6fbe
AK
10875eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10876$as_echo "$ac_try_echo") >&5
7a197a62 10877 (eval "$ac_link") 2>conftest.er1
ad6254c5 10878 ac_status=$?
8a2fc586
AK
10879 grep -v '^ *+' conftest.er1 >conftest.err
10880 rm -f conftest.er1
10881 cat conftest.err >&5
ec6a6fbe 10882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10883 (exit $ac_status); } && {
10884 test -z "$ac_c_werror_flag" ||
10885 test ! -s conftest.err
ec6a6fbe
AK
10886 } && test -s conftest$ac_exeext && {
10887 test "$cross_compiling" = yes ||
10888 $as_test_x conftest$ac_exeext
10889 }; then
ad6254c5
AK
10890 ac_cv_lib_m_pow=yes
10891else
ec6a6fbe 10892 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10893sed 's/^/| /' conftest.$ac_ext >&5
10894
7a197a62 10895 ac_cv_lib_m_pow=no
ad6254c5 10896fi
7a197a62 10897
ec6a6fbe 10898rm -rf conftest.dSYM
25fbec5b 10899rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10900 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10901LIBS=$ac_check_lib_save_LIBS
d0191583 10902fi
ec6a6fbe
AK
10903{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
10904$as_echo "$ac_cv_lib_m_pow" >&6; }
10905if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
10906 POW_LIB=-lm
10907else
ec6a6fbe
AK
10908 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
10909$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 10910fi
72b2cb61 10911
d0191583 10912fi
72b2cb61 10913
ad6254c5
AK
10914fi
10915
ad6254c5 10916
d0191583
JM
10917for ac_func in vprintf
10918do
ec6a6fbe
AK
10919as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10920{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10921$as_echo_n "checking for $ac_func... " >&6; }
d0191583 10922if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10923 $as_echo_n "(cached) " >&6
ad6254c5 10924else
d0191583
JM
10925 cat >conftest.$ac_ext <<_ACEOF
10926/* confdefs.h. */
10927_ACEOF
10928cat confdefs.h >>conftest.$ac_ext
10929cat >>conftest.$ac_ext <<_ACEOF
10930/* end confdefs.h. */
10931/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10933#define $ac_func innocuous_$ac_func
7a197a62 10934
d0191583
JM
10935/* System header to define __stub macros and hopefully few prototypes,
10936 which can conflict with char $ac_func (); below.
10937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10938 <limits.h> exists even on freestanding compilers. */
ad6254c5 10939
d0191583
JM
10940#ifdef __STDC__
10941# include <limits.h>
10942#else
10943# include <assert.h>
10944#endif
ad6254c5 10945
d0191583 10946#undef $ac_func
72b2cb61 10947
d0191583
JM
10948/* Override any GCC internal prototype to avoid an error.
10949 Use char because int might match the return type of a GCC
10950 builtin and then its argument prototype would still apply. */
10951#ifdef __cplusplus
10952extern "C"
10953#endif
10954char $ac_func ();
10955/* The GNU C library defines this for functions which it implements
10956 to always fail with ENOSYS. Some functions are actually named
10957 something starting with __ and the normal name is an alias. */
10958#if defined __stub_$ac_func || defined __stub___$ac_func
10959choke me
10960#endif
10961
10962int
10963main ()
10964{
10965return $ac_func ();
10966 ;
10967 return 0;
10968}
72b2cb61 10969_ACEOF
d0191583
JM
10970rm -f conftest.$ac_objext conftest$ac_exeext
10971if { (ac_try="$ac_link"
10972case "(($ac_try" in
10973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974 *) ac_try_echo=$ac_try;;
10975esac
ec6a6fbe
AK
10976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10977$as_echo "$ac_try_echo") >&5
d0191583
JM
10978 (eval "$ac_link") 2>conftest.er1
10979 ac_status=$?
10980 grep -v '^ *+' conftest.er1 >conftest.err
10981 rm -f conftest.er1
10982 cat conftest.err >&5
ec6a6fbe 10983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
10984 (exit $ac_status); } && {
10985 test -z "$ac_c_werror_flag" ||
10986 test ! -s conftest.err
ec6a6fbe
AK
10987 } && test -s conftest$ac_exeext && {
10988 test "$cross_compiling" = yes ||
10989 $as_test_x conftest$ac_exeext
10990 }; then
d0191583
JM
10991 eval "$as_ac_var=yes"
10992else
ec6a6fbe 10993 $as_echo "$as_me: failed program was:" >&5
d0191583 10994sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 10995
d0191583 10996 eval "$as_ac_var=no"
ad6254c5
AK
10997fi
10998
ec6a6fbe 10999rm -rf conftest.dSYM
d0191583
JM
11000rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11001 conftest$ac_exeext conftest.$ac_ext
7a197a62 11002fi
ec6a6fbe
AK
11003ac_res=`eval 'as_val=${'$as_ac_var'}
11004 $as_echo "$as_val"'`
11005 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11006$as_echo "$ac_res" >&6; }
11007as_val=`eval 'as_val=${'$as_ac_var'}
11008 $as_echo "$as_val"'`
11009 if test "x$as_val" = x""yes; then
d0191583 11010 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11011#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 11012_ACEOF
7a197a62 11013
ec6a6fbe
AK
11014{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
11015$as_echo_n "checking for _doprnt... " >&6; }
d0191583 11016if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 11017 $as_echo_n "(cached) " >&6
ad6254c5 11018else
d0191583
JM
11019 cat >conftest.$ac_ext <<_ACEOF
11020/* confdefs.h. */
11021_ACEOF
11022cat confdefs.h >>conftest.$ac_ext
11023cat >>conftest.$ac_ext <<_ACEOF
11024/* end confdefs.h. */
11025/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11027#define _doprnt innocuous__doprnt
7a197a62 11028
d0191583
JM
11029/* System header to define __stub macros and hopefully few prototypes,
11030 which can conflict with char _doprnt (); below.
11031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11032 <limits.h> exists even on freestanding compilers. */
ad6254c5 11033
d0191583
JM
11034#ifdef __STDC__
11035# include <limits.h>
11036#else
11037# include <assert.h>
11038#endif
72b2cb61 11039
d0191583
JM
11040#undef _doprnt
11041
11042/* Override any GCC internal prototype to avoid an error.
11043 Use char because int might match the return type of a GCC
11044 builtin and then its argument prototype would still apply. */
11045#ifdef __cplusplus
11046extern "C"
11047#endif
11048char _doprnt ();
11049/* The GNU C library defines this for functions which it implements
11050 to always fail with ENOSYS. Some functions are actually named
11051 something starting with __ and the normal name is an alias. */
11052#if defined __stub__doprnt || defined __stub____doprnt
11053choke me
11054#endif
11055
11056int
11057main ()
11058{
11059return _doprnt ();
11060 ;
11061 return 0;
11062}
72b2cb61 11063_ACEOF
d0191583
JM
11064rm -f conftest.$ac_objext conftest$ac_exeext
11065if { (ac_try="$ac_link"
11066case "(($ac_try" in
11067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11068 *) ac_try_echo=$ac_try;;
11069esac
ec6a6fbe
AK
11070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11071$as_echo "$ac_try_echo") >&5
d0191583
JM
11072 (eval "$ac_link") 2>conftest.er1
11073 ac_status=$?
11074 grep -v '^ *+' conftest.er1 >conftest.err
11075 rm -f conftest.er1
11076 cat conftest.err >&5
ec6a6fbe 11077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
11078 (exit $ac_status); } && {
11079 test -z "$ac_c_werror_flag" ||
11080 test ! -s conftest.err
ec6a6fbe
AK
11081 } && test -s conftest$ac_exeext && {
11082 test "$cross_compiling" = yes ||
11083 $as_test_x conftest$ac_exeext
11084 }; then
d0191583
JM
11085 ac_cv_func__doprnt=yes
11086else
ec6a6fbe 11087 $as_echo "$as_me: failed program was:" >&5
d0191583 11088sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 11089
d0191583 11090 ac_cv_func__doprnt=no
ad6254c5
AK
11091fi
11092
ec6a6fbe 11093rm -rf conftest.dSYM
d0191583
JM
11094rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11095 conftest$ac_exeext conftest.$ac_ext
7a197a62 11096fi
ec6a6fbe
AK
11097{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11098$as_echo "$ac_cv_func__doprnt" >&6; }
11099if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 11100
d0191583
JM
11101cat >>confdefs.h <<\_ACEOF
11102#define HAVE_DOPRNT 1
11103_ACEOF
ad6254c5 11104
7a197a62
AK
11105fi
11106
d0191583
JM
11107fi
11108done
8b1a3214 11109
ad6254c5 11110
7a197a62 11111
9c961554 11112################################################################################
ec6a6fbe
AK
11113{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
11114$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
11115# Check whether --enable-static_link was given.
11116if test "${enable_static_link+set}" = set; then
11117 enableval=$enable_static_link; STATIC_LINK=$enableval
11118else
11119 STATIC_LINK=no
11120fi
11121
ec6a6fbe
AK
11122{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
11123$as_echo "$STATIC_LINK" >&6; }
9c961554 11124
d0191583 11125################################################################################
ad6254c5 11126
ad6254c5
AK
11127
11128################################################################################
ec6a6fbe
AK
11129{ $as_echo "$as_me:$LINENO: checking file owner" >&5
11130$as_echo_n "checking file owner... " >&6; }
d0191583
JM
11131
11132# Check whether --with-user was given.
11133if test "${with_user+set}" = set; then
71082be4 11134 withval=$with_user; OWNER=$withval
7a197a62
AK
11135fi
11136
ec6a6fbe
AK
11137{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
11138$as_echo "$OWNER" >&6; }
ad6254c5 11139
d0191583 11140if test x$OWNER != x; then
23b059e7 11141 INSTALL="$INSTALL -o $OWNER"
ad6254c5
AK
11142fi
11143
11144################################################################################
ec6a6fbe
AK
11145{ $as_echo "$as_me:$LINENO: checking group owner" >&5
11146$as_echo_n "checking group owner... " >&6; }
ad6254c5 11147
d0191583
JM
11148# Check whether --with-group was given.
11149if test "${with_group+set}" = set; then
71082be4 11150 withval=$with_group; GROUP=$withval
7a197a62
AK
11151fi
11152
ec6a6fbe
AK
11153{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
11154$as_echo "$GROUP" >&6; }
d0191583
JM
11155
11156if test x$GROUP != x; then
23b059e7 11157 INSTALL="$INSTALL -g $GROUP"
d0191583 11158fi
ad6254c5 11159
24bbc4d7 11160################################################################################
ec6a6fbe
AK
11161{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
11162$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
11163
11164
11165# Check whether --with-device-uid was given.
11166if test "${with_device_uid+set}" = set; then
71082be4 11167 withval=$with_device_uid; DM_DEVICE_UID=$withval
24bbc4d7 11168else
71082be4 11169 DM_DEVICE_UID=0
24bbc4d7
AK
11170fi
11171
ec6a6fbe
AK
11172{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
11173$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
11174
11175################################################################################
ec6a6fbe
AK
11176{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
11177$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
11178
11179
11180# Check whether --with-device-gid was given.
11181if test "${with_device_gid+set}" = set; then
71082be4 11182 withval=$with_device_gid; DM_DEVICE_GID=$withval
24bbc4d7 11183else
71082be4 11184 DM_DEVICE_GID=0
24bbc4d7
AK
11185fi
11186
ec6a6fbe
AK
11187{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
11188$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 11189
93bd259b 11190################################################################################
ec6a6fbe
AK
11191{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
11192$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
11193
11194
11195# Check whether --with-device-mode was given.
11196if test "${with_device_mode+set}" = set; then
71082be4 11197 withval=$with_device_mode; DM_DEVICE_MODE=$withval
93bd259b 11198else
71082be4 11199 DM_DEVICE_MODE=0600
93bd259b
AK
11200fi
11201
ec6a6fbe
AK
11202{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
11203$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 11204
ad6254c5 11205################################################################################
ec6a6fbe
AK
11206{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
11207$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
11208# Check whether --enable-lvm1_fallback was given.
11209if test "${enable_lvm1_fallback+set}" = set; then
11210 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
11211else
11212 LVM1_FALLBACK=no
7a197a62
AK
11213fi
11214
ec6a6fbe
AK
11215{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
11216$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 11217
d0191583 11218if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
11219
11220cat >>confdefs.h <<\_ACEOF
d0191583 11221#define LVM1_FALLBACK 1
72b2cb61
AK
11222_ACEOF
11223
ad6254c5
AK
11224fi
11225
11226################################################################################
ec6a6fbe
AK
11227{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
11228$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
11229
11230# Check whether --with-lvm1 was given.
11231if test "${with_lvm1+set}" = set; then
71082be4 11232 withval=$with_lvm1; LVM1=$withval
d0191583 11233else
71082be4 11234 LVM1=internal
7a197a62
AK
11235fi
11236
ec6a6fbe
AK
11237{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
11238$as_echo "$LVM1" >&6; }
ad6254c5 11239
d0191583 11240if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 11241 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 11242" >&5
ec6a6fbe 11243$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
11244" >&2;}
11245 { (exit 1); exit 1; }; }
11246fi;
11247
11248if test x$LVM1 = xinternal; then
72b2cb61
AK
11249
11250cat >>confdefs.h <<\_ACEOF
d0191583 11251#define LVM1_INTERNAL 1
72b2cb61
AK
11252_ACEOF
11253
ad6254c5
AK
11254fi
11255
11256################################################################################
ec6a6fbe
AK
11257{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
11258$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
11259
11260# Check whether --with-pool was given.
11261if test "${with_pool+set}" = set; then
71082be4 11262 withval=$with_pool; POOL=$withval
ad6254c5 11263else
71082be4 11264 POOL=internal
7a197a62
AK
11265fi
11266
ec6a6fbe
AK
11267{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
11268$as_echo "$POOL" >&6; }
ad6254c5 11269
d0191583 11270if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 11271 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 11272" >&5
ec6a6fbe 11273$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
11274" >&2;}
11275 { (exit 1); exit 1; }; }
11276fi;
7a197a62 11277
d0191583
JM
11278if test x$POOL = xinternal; then
11279
11280cat >>confdefs.h <<\_ACEOF
11281#define POOL_INTERNAL 1
11282_ACEOF
11283
11284fi
ad6254c5 11285
06f62ad1 11286################################################################################
ec6a6fbe
AK
11287{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
11288$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
11289
11290# Check whether --with-cluster was given.
11291if test "${with_cluster+set}" = set; then
71082be4 11292 withval=$with_cluster; CLUSTER=$withval
7a197a62
AK
11293fi
11294
ec6a6fbe
AK
11295{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
11296$as_echo "$CLUSTER" >&6; }
06f62ad1 11297
d0191583 11298if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 11299 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 11300" >&5
ec6a6fbe 11301$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
11302" >&2;}
11303 { (exit 1); exit 1; }; }
d0191583 11304fi;
06f62ad1 11305
d0191583 11306if test x$CLUSTER = xinternal; then
72b2cb61
AK
11307
11308cat >>confdefs.h <<\_ACEOF
d0191583 11309#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
11310_ACEOF
11311
15d91f5a 11312fi
ad6254c5
AK
11313
11314################################################################################
ec6a6fbe
AK
11315{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
11316$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 11317
d0191583
JM
11318# Check whether --with-snapshots was given.
11319if test "${with_snapshots+set}" = set; then
71082be4 11320 withval=$with_snapshots; SNAPSHOTS=$withval
d0191583 11321else
71082be4 11322 SNAPSHOTS=internal
ad6254c5
AK
11323fi
11324
ec6a6fbe
AK
11325{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
11326$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 11327
d0191583 11328if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 11329 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 11330" >&5
ec6a6fbe 11331$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
11332" >&2;}
11333 { (exit 1); exit 1; }; }
11334fi;
11335
11336if test x$SNAPSHOTS = xinternal; then
11337
11338cat >>confdefs.h <<\_ACEOF
11339#define SNAPSHOT_INTERNAL 1
11340_ACEOF
ad6254c5 11341
ad6254c5 11342fi
7a197a62 11343
d0191583 11344################################################################################
ec6a6fbe
AK
11345{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
11346$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
11347
11348# Check whether --with-mirrors was given.
11349if test "${with_mirrors+set}" = set; then
71082be4 11350 withval=$with_mirrors; MIRRORS=$withval
d0191583 11351else
71082be4 11352 MIRRORS=internal
ad6254c5 11353fi
ad6254c5 11354
ec6a6fbe
AK
11355{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
11356$as_echo "$MIRRORS" >&6; }
ad6254c5 11357
d0191583 11358if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 11359 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 11360" >&5
ec6a6fbe 11361$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
11362" >&2;}
11363 { (exit 1); exit 1; }; }
11364fi;
ad6254c5 11365
d0191583 11366if test x$MIRRORS = xinternal; then
ad6254c5 11367
d0191583
JM
11368cat >>confdefs.h <<\_ACEOF
11369#define MIRRORED_INTERNAL 1
ad6254c5 11370_ACEOF
8a2fc586 11371
d0191583 11372fi
8a2fc586 11373
8fea97b7
ZK
11374################################################################################
11375{ $as_echo "$as_me:$LINENO: checking whether to include replicators" >&5
11376$as_echo_n "checking whether to include replicators... " >&6; }
11377
11378# Check whether --with-replicators was given.
11379if test "${with_replicators+set}" = set; then
11380 withval=$with_replicators; REPLICATORS=$withval
11381else
71082be4 11382 REPLICATORS=none
8fea97b7
ZK
11383fi
11384
11385{ $as_echo "$as_me:$LINENO: result: $REPLICATORS" >&5
11386$as_echo "$REPLICATORS" >&6; }
11387
11388case "$REPLICATORS" in
11389 none|shared) ;;
11390 internal)
11391cat >>confdefs.h <<\_ACEOF
11392#define REPLICATOR_INTERNAL 1
11393_ACEOF
11394 ;;
11395 *) { { $as_echo "$as_me:$LINENO: error: --with-replicators parameter invalid ($REPLICATORS)" >&5
11396$as_echo "$as_me: error: --with-replicators parameter invalid ($REPLICATORS)" >&2;}
11397 { (exit 1); exit 1; }; } ;;
11398esac
11399
d0191583 11400################################################################################
ec6a6fbe
AK
11401{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
11402$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
11403# Check whether --enable-readline was given.
11404if test "${enable_readline+set}" = set; then
11405 enableval=$enable_readline; READLINE=$enableval
11406else
06e459df 11407 READLINE=maybe
d0191583 11408fi
8a2fc586 11409
ec6a6fbe
AK
11410{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
11411$as_echo "$READLINE" >&6; }
8a2fc586 11412
d0191583 11413################################################################################
ec6a6fbe
AK
11414{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
11415$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
11416# Check whether --enable-realtime was given.
11417if test "${enable_realtime+set}" = set; then
11418 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 11419fi
ad6254c5 11420
ec6a6fbe
AK
11421{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
11422$as_echo "$REALTIME" >&6; }
d0191583
JM
11423
11424################################################################################
90c80887 11425pkg_config_init() {
e2997b73
AK
11426
11427
11428if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11429 if test -n "$ac_tool_prefix"; then
11430 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11431set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11432{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11433$as_echo_n "checking for $ac_word... " >&6; }
11434if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11435 $as_echo_n "(cached) " >&6
11436else
11437 case $PKG_CONFIG in
11438 [\\/]* | ?:[\\/]*)
11439 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11440 ;;
11441 *)
11442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11443for as_dir in $PATH
11444do
11445 IFS=$as_save_IFS
11446 test -z "$as_dir" && as_dir=.
11447 for ac_exec_ext in '' $ac_executable_extensions; do
11448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11449 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11450 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11451 break 2
11452 fi
11453done
11454done
11455IFS=$as_save_IFS
11456
11457 ;;
11458esac
11459fi
11460PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11461if test -n "$PKG_CONFIG"; then
11462 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11463$as_echo "$PKG_CONFIG" >&6; }
11464else
11465 { $as_echo "$as_me:$LINENO: result: no" >&5
11466$as_echo "no" >&6; }
11467fi
11468
11469
11470fi
11471if test -z "$ac_cv_path_PKG_CONFIG"; then
11472 ac_pt_PKG_CONFIG=$PKG_CONFIG
11473 # Extract the first word of "pkg-config", so it can be a program name with args.
11474set dummy pkg-config; ac_word=$2
11475{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11476$as_echo_n "checking for $ac_word... " >&6; }
11477if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11478 $as_echo_n "(cached) " >&6
11479else
11480 case $ac_pt_PKG_CONFIG in
11481 [\\/]* | ?:[\\/]*)
11482 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11483 ;;
11484 *)
11485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11486for as_dir in $PATH
11487do
11488 IFS=$as_save_IFS
11489 test -z "$as_dir" && as_dir=.
11490 for ac_exec_ext in '' $ac_executable_extensions; do
11491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11492 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11494 break 2
11495 fi
11496done
11497done
11498IFS=$as_save_IFS
11499
11500 ;;
11501esac
11502fi
11503ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11504if test -n "$ac_pt_PKG_CONFIG"; then
11505 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11506$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11507else
11508 { $as_echo "$as_me:$LINENO: result: no" >&5
11509$as_echo "no" >&6; }
11510fi
11511
11512 if test "x$ac_pt_PKG_CONFIG" = x; then
11513 PKG_CONFIG=""
11514 else
11515 case $cross_compiling:$ac_tool_warned in
11516yes:)
11517{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11518$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11519ac_tool_warned=yes ;;
11520esac
11521 PKG_CONFIG=$ac_pt_PKG_CONFIG
11522 fi
11523else
11524 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11525fi
11526
11527fi
11528if test -n "$PKG_CONFIG"; then
11529 _pkg_min_version=0.9.0
11530 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11531$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11532 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11533 { $as_echo "$as_me:$LINENO: result: yes" >&5
11534$as_echo "yes" >&6; }
11535 else
11536 { $as_echo "$as_me:$LINENO: result: no" >&5
11537$as_echo "no" >&6; }
11538 PKG_CONFIG=""
11539 fi
8c4e8a18 11540
e2997b73
AK
11541fi
11542
11543pkg_failed=no
a946372e
AK
11544{ $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
11545$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
e2997b73 11546
a946372e
AK
11547if test -n "$PKGCONFIGINIT_CFLAGS"; then
11548 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
e2997b73
AK
11549 elif test -n "$PKG_CONFIG"; then
11550 if test -n "$PKG_CONFIG" && \
a946372e
AK
11551 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
11552 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
11553 ac_status=$?
11554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); }; then
a946372e 11556 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
e2997b73
AK
11557else
11558 pkg_failed=yes
11559fi
11560 else
11561 pkg_failed=untried
11562fi
a946372e
AK
11563if test -n "$PKGCONFIGINIT_LIBS"; then
11564 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
e2997b73
AK
11565 elif test -n "$PKG_CONFIG"; then
11566 if test -n "$PKG_CONFIG" && \
a946372e
AK
11567 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
11568 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
11569 ac_status=$?
11570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; then
a946372e 11572 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
e2997b73
AK
11573else
11574 pkg_failed=yes
11575fi
11576 else
11577 pkg_failed=untried
11578fi
11579
11580
11581
11582if test $pkg_failed = yes; then
11583
11584if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11585 _pkg_short_errors_supported=yes
11586else
11587 _pkg_short_errors_supported=no
11588fi
11589 if test $_pkg_short_errors_supported = yes; then
a946372e 11590 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
e2997b73 11591 else
a946372e 11592 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
e2997b73
AK
11593 fi
11594 # Put the nasty error message in config.log where it belongs
a946372e 11595 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
e2997b73 11596
8c4e8a18
FDN
11597 { $as_echo "$as_me:$LINENO: result: no" >&5
11598$as_echo "no" >&6; }
11599 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
a946372e 11600$as_echo "pkg-config initialized" >&6; }
e2997b73 11601elif test $pkg_failed = untried; then
a946372e
AK
11602 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
11603$as_echo "pkg-config initialized" >&6; }
e2997b73 11604else
a946372e
AK
11605 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
11606 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
e2997b73
AK
11607 { $as_echo "$as_me:$LINENO: result: yes" >&5
11608$as_echo "yes" >&6; }
8c4e8a18 11609 :
e2997b73 11610fi
90c80887
AK
11611 PKGCONFIG_INIT=1
11612}
11613
11614################################################################################
11615{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
11616$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
11617
11618# Check whether --with-clvmd was given.
11619if test "${with_clvmd+set}" = set; then
71082be4 11620 withval=$with_clvmd; CLVMD=$withval
90c80887 11621else
71082be4 11622 CLVMD=none
90c80887
AK
11623fi
11624
11625if test x$CLVMD = xyes; then
11626 CLVMD=all
11627fi
11628{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
11629$as_echo "$CLVMD" >&6; }
11630
11631if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
11632 CLUSTER=internal
11633fi
11634
11635if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
11636 pkg_config_init
11637fi
11638
11639
11640if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
11641 BUILDGULM=yes
11642fi
11643if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
11644 BUILDCOROSYNC=yes
11645fi
11646if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
11647 BUILDOPENAIS=yes
11648fi
11649if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
11650 BUILDCMAN=yes
11651fi
11652
11653if test x$BUILDGULM = xyes; then
11654 if test x$BUILDCOROSYNC = xyes || \
11655 test x$BUILDOPENAIS = xyes; then
11656 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
11657$as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
11658 { (exit 1); exit 1; }; }
11659 fi
a946372e 11660fi
e2997b73 11661
a946372e
AK
11662soft_bailout() {
11663 NOTFOUND=1
11664}
e2997b73 11665
a946372e
AK
11666hard_bailout() {
11667 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11668$as_echo "$as_me: error: bailing out" >&2;}
11669 { (exit 1); exit 1; }; }
11670}
11671
11672if test x$CLVMD = xall; then
11673 bailout=soft_bailout
11674 BUILDGULM=yes
11675 BUILDCMAN=yes
11676 BUILDCOROSYNC=yes
11677 BUILDOPENAIS=yes
e2997b73 11678else
a946372e 11679 bailout=hard_bailout
e2997b73 11680fi
a946372e
AK
11681
11682check_lib_no_libs() {
11683 lib_no_libs_arg1=$1
11684 shift
11685 lib_no_libs_arg2=$1
11686 shift
11687 lib_no_libs_args=$@
11688
11689as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
11690{ $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
11691$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
11692if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
11693 $as_echo_n "(cached) " >&6
11694else
11695 ac_check_lib_save_LIBS=$LIBS
11696LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
11697cat >conftest.$ac_ext <<_ACEOF
11698/* confdefs.h. */
11699_ACEOF
11700cat confdefs.h >>conftest.$ac_ext
11701cat >>conftest.$ac_ext <<_ACEOF
11702/* end confdefs.h. */
11703
11704/* Override any GCC internal prototype to avoid an error.
11705 Use char because int might match the return type of a GCC
11706 builtin and then its argument prototype would still apply. */
11707#ifdef __cplusplus
11708extern "C"
11709#endif
11710char $lib_no_libs_arg2 ();
11711int
11712main ()
11713{
11714return $lib_no_libs_arg2 ();
11715 ;
11716 return 0;
11717}
11718_ACEOF
11719rm -f conftest.$ac_objext conftest$ac_exeext
11720if { (ac_try="$ac_link"
11721case "(($ac_try" in
11722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11723 *) ac_try_echo=$ac_try;;
11724esac
11725eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11726$as_echo "$ac_try_echo") >&5
11727 (eval "$ac_link") 2>conftest.er1
e2997b73 11728 ac_status=$?
a946372e
AK
11729 grep -v '^ *+' conftest.er1 >conftest.err
11730 rm -f conftest.er1
11731 cat conftest.err >&5
e2997b73 11732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a946372e
AK
11733 (exit $ac_status); } && {
11734 test -z "$ac_c_werror_flag" ||
11735 test ! -s conftest.err
11736 } && test -s conftest$ac_exeext && {
11737 test "$cross_compiling" = yes ||
11738 $as_test_x conftest$ac_exeext
11739 }; then
11740 eval "$as_ac_Lib=yes"
e2997b73 11741else
a946372e
AK
11742 $as_echo "$as_me: failed program was:" >&5
11743sed 's/^/| /' conftest.$ac_ext >&5
e2997b73 11744
a946372e
AK
11745 eval "$as_ac_Lib=no"
11746fi
e2997b73 11747
a946372e
AK
11748rm -rf conftest.dSYM
11749rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11750 conftest$ac_exeext conftest.$ac_ext
11751LIBS=$ac_check_lib_save_LIBS
11752fi
11753ac_res=`eval 'as_val=${'$as_ac_Lib'}
11754 $as_echo "$as_val"'`
11755 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11756$as_echo "$ac_res" >&6; }
11757as_val=`eval 'as_val=${'$as_ac_Lib'}
11758 $as_echo "$as_val"'`
11759 if test "x$as_val" = x""yes; then
11760 cat >>confdefs.h <<_ACEOF
11761#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
11762_ACEOF
e2997b73 11763
a946372e 11764 LIBS="-l$lib_no_libs_arg1 $LIBS"
e2997b73 11765
e2997b73 11766else
a946372e 11767 $bailout
e2997b73 11768fi
e2997b73 11769
a946372e
AK
11770 LIBS=$ac_check_lib_save_LIBS
11771}
11772
11773if test x$BUILDGULM = xyes; then
e2997b73
AK
11774
11775pkg_failed=no
a946372e
AK
11776{ $as_echo "$as_me:$LINENO: checking for CCS" >&5
11777$as_echo_n "checking for CCS... " >&6; }
e2997b73 11778
a946372e
AK
11779if test -n "$CCS_CFLAGS"; then
11780 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
e2997b73
AK
11781 elif test -n "$PKG_CONFIG"; then
11782 if test -n "$PKG_CONFIG" && \
a946372e
AK
11783 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
11784 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
11785 ac_status=$?
11786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); }; then
a946372e 11788 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
e2997b73
AK
11789else
11790 pkg_failed=yes
11791fi
11792 else
11793 pkg_failed=untried
11794fi
a946372e
AK
11795if test -n "$CCS_LIBS"; then
11796 pkg_cv_CCS_LIBS="$CCS_LIBS"
e2997b73
AK
11797 elif test -n "$PKG_CONFIG"; then
11798 if test -n "$PKG_CONFIG" && \
a946372e
AK
11799 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
11800 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
11801 ac_status=$?
11802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; then
a946372e 11804 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
e2997b73
AK
11805else
11806 pkg_failed=yes
11807fi
11808 else
11809 pkg_failed=untried
11810fi
11811
11812
11813
11814if test $pkg_failed = yes; then
11815
11816if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11817 _pkg_short_errors_supported=yes
11818else
11819 _pkg_short_errors_supported=no
11820fi
11821 if test $_pkg_short_errors_supported = yes; then
a946372e 11822 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
e2997b73 11823 else
a946372e 11824 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
e2997b73
AK
11825 fi
11826 # Put the nasty error message in config.log where it belongs
a946372e 11827 echo "$CCS_PKG_ERRORS" >&5
e2997b73 11828
8c4e8a18
FDN
11829 { $as_echo "$as_me:$LINENO: result: no" >&5
11830$as_echo "no" >&6; }
11831 NOTFOUND=0
e2997b73 11832
a946372e
AK
11833for ac_header in ccs.h
11834do
11835as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11836if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11837 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11838$as_echo_n "checking for $ac_header... " >&6; }
11839if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11840 $as_echo_n "(cached) " >&6
d0191583 11841fi
a946372e
AK
11842ac_res=`eval 'as_val=${'$as_ac_Header'}
11843 $as_echo "$as_val"'`
11844 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11845$as_echo "$ac_res" >&6; }
fc54be10 11846else
a946372e
AK
11847 # Is the header compilable?
11848{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11849$as_echo_n "checking $ac_header usability... " >&6; }
11850cat >conftest.$ac_ext <<_ACEOF
11851/* confdefs.h. */
11852_ACEOF
11853cat confdefs.h >>conftest.$ac_ext
11854cat >>conftest.$ac_ext <<_ACEOF
11855/* end confdefs.h. */
11856$ac_includes_default
11857#include <$ac_header>
11858_ACEOF
11859rm -f conftest.$ac_objext
11860if { (ac_try="$ac_compile"
11861case "(($ac_try" in
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863 *) ac_try_echo=$ac_try;;
11864esac
11865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11866$as_echo "$ac_try_echo") >&5
11867 (eval "$ac_compile") 2>conftest.er1
11868 ac_status=$?
11869 grep -v '^ *+' conftest.er1 >conftest.err
11870 rm -f conftest.er1
11871 cat conftest.err >&5
11872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); } && {
11874 test -z "$ac_c_werror_flag" ||
11875 test ! -s conftest.err
11876 } && test -s conftest.$ac_objext; then
11877 ac_header_compiler=yes
11878else
11879 $as_echo "$as_me: failed program was:" >&5
11880sed 's/^/| /' conftest.$ac_ext >&5
d0191583 11881
a946372e 11882 ac_header_compiler=no
d0191583
JM
11883fi
11884
a946372e
AK
11885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11886{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11887$as_echo "$ac_header_compiler" >&6; }
fddafd51 11888
a946372e
AK
11889# Is the header present?
11890{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11891$as_echo_n "checking $ac_header presence... " >&6; }
11892cat >conftest.$ac_ext <<_ACEOF
11893/* confdefs.h. */
11894_ACEOF
11895cat confdefs.h >>conftest.$ac_ext
11896cat >>conftest.$ac_ext <<_ACEOF
11897/* end confdefs.h. */
11898#include <$ac_header>
11899_ACEOF
11900if { (ac_try="$ac_cpp conftest.$ac_ext"
11901case "(($ac_try" in
11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11904esac
11905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11906$as_echo "$ac_try_echo") >&5
11907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11908 ac_status=$?
11909 grep -v '^ *+' conftest.er1 >conftest.err
11910 rm -f conftest.er1
11911 cat conftest.err >&5
11912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } >/dev/null && {
11914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11915 test ! -s conftest.err
11916 }; then
11917 ac_header_preproc=yes
11918else
11919 $as_echo "$as_me: failed program was:" >&5
11920sed 's/^/| /' conftest.$ac_ext >&5
11921
11922 ac_header_preproc=no
11923fi
11924
11925rm -f conftest.err conftest.$ac_ext
11926{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11927$as_echo "$ac_header_preproc" >&6; }
11928
11929# So? What about this header?
11930case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11931 yes:no: )
11932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11933$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11935$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11936 ac_header_preproc=yes
11937 ;;
11938 no:yes:* )
11939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11940$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11942$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11944$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11946$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11947 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11948$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11949 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11950$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11951
11952 ;;
11953esac
11954{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11955$as_echo_n "checking for $ac_header... " >&6; }
11956if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11957 $as_echo_n "(cached) " >&6
11958else
11959 eval "$as_ac_Header=\$ac_header_preproc"
11960fi
11961ac_res=`eval 'as_val=${'$as_ac_Header'}
11962 $as_echo "$as_val"'`
11963 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11964$as_echo "$ac_res" >&6; }
11965
11966fi
11967as_val=`eval 'as_val=${'$as_ac_Header'}
11968 $as_echo "$as_val"'`
11969 if test "x$as_val" = x""yes; then
11970 cat >>confdefs.h <<_ACEOF
11971#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11972_ACEOF
11973
11974else
11975 $bailout
11976fi
11977
11978done
11979
11980 check_lib_no_libs ccs ccs_connect
11981 if test $NOTFOUND = 0; then
11982 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
11983$as_echo "no pkg for libccs, using -lccs" >&6; }
11984 CCS_LIBS="-lccs"
11985 HAVE_CCS=yes
11986 fi
11987elif test $pkg_failed = untried; then
11988 NOTFOUND=0
11989
11990for ac_header in ccs.h
11991do
11992as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11993if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11994 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11995$as_echo_n "checking for $ac_header... " >&6; }
11996if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11997 $as_echo_n "(cached) " >&6
11998fi
11999ac_res=`eval 'as_val=${'$as_ac_Header'}
12000 $as_echo "$as_val"'`
12001 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12002$as_echo "$ac_res" >&6; }
12003else
12004 # Is the header compilable?
12005{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12006$as_echo_n "checking $ac_header usability... " >&6; }
12007cat >conftest.$ac_ext <<_ACEOF
12008/* confdefs.h. */
12009_ACEOF
12010cat confdefs.h >>conftest.$ac_ext
12011cat >>conftest.$ac_ext <<_ACEOF
12012/* end confdefs.h. */
12013$ac_includes_default
12014#include <$ac_header>
12015_ACEOF
12016rm -f conftest.$ac_objext
12017if { (ac_try="$ac_compile"
12018case "(($ac_try" in
12019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12020 *) ac_try_echo=$ac_try;;
12021esac
12022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12023$as_echo "$ac_try_echo") >&5
12024 (eval "$ac_compile") 2>conftest.er1
12025 ac_status=$?
12026 grep -v '^ *+' conftest.er1 >conftest.err
12027 rm -f conftest.er1
12028 cat conftest.err >&5
12029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); } && {
12031 test -z "$ac_c_werror_flag" ||
12032 test ! -s conftest.err
12033 } && test -s conftest.$ac_objext; then
12034 ac_header_compiler=yes
12035else
12036 $as_echo "$as_me: failed program was:" >&5
12037sed 's/^/| /' conftest.$ac_ext >&5
12038
12039 ac_header_compiler=no
12040fi
12041
12042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12043{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12044$as_echo "$ac_header_compiler" >&6; }
12045
12046# Is the header present?
12047{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12048$as_echo_n "checking $ac_header presence... " >&6; }
12049cat >conftest.$ac_ext <<_ACEOF
12050/* confdefs.h. */
12051_ACEOF
12052cat confdefs.h >>conftest.$ac_ext
12053cat >>conftest.$ac_ext <<_ACEOF
12054/* end confdefs.h. */
12055#include <$ac_header>
12056_ACEOF
12057if { (ac_try="$ac_cpp conftest.$ac_ext"
12058case "(($ac_try" in
12059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12060 *) ac_try_echo=$ac_try;;
12061esac
12062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12063$as_echo "$ac_try_echo") >&5
12064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12065 ac_status=$?
12066 grep -v '^ *+' conftest.er1 >conftest.err
12067 rm -f conftest.er1
12068 cat conftest.err >&5
12069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); } >/dev/null && {
12071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12072 test ! -s conftest.err
12073 }; then
12074 ac_header_preproc=yes
12075else
12076 $as_echo "$as_me: failed program was:" >&5
12077sed 's/^/| /' conftest.$ac_ext >&5
12078
12079 ac_header_preproc=no
12080fi
12081
12082rm -f conftest.err conftest.$ac_ext
12083{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12084$as_echo "$ac_header_preproc" >&6; }
12085
12086# So? What about this header?
12087case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12088 yes:no: )
12089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12090$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12092$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12093 ac_header_preproc=yes
12094 ;;
12095 no:yes:* )
12096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12097$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12099$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12101$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12103$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12105$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12107$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12108
12109 ;;
12110esac
12111{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12112$as_echo_n "checking for $ac_header... " >&6; }
12113if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12114 $as_echo_n "(cached) " >&6
12115else
12116 eval "$as_ac_Header=\$ac_header_preproc"
12117fi
12118ac_res=`eval 'as_val=${'$as_ac_Header'}
12119 $as_echo "$as_val"'`
12120 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12121$as_echo "$ac_res" >&6; }
12122
12123fi
12124as_val=`eval 'as_val=${'$as_ac_Header'}
12125 $as_echo "$as_val"'`
12126 if test "x$as_val" = x""yes; then
12127 cat >>confdefs.h <<_ACEOF
12128#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12129_ACEOF
12130
12131else
12132 $bailout
12133fi
12134
12135done
12136
12137 check_lib_no_libs ccs ccs_connect
12138 if test $NOTFOUND = 0; then
12139 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
12140$as_echo "no pkg for libccs, using -lccs" >&6; }
12141 CCS_LIBS="-lccs"
12142 HAVE_CCS=yes
12143 fi
12144else
12145 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
12146 CCS_LIBS=$pkg_cv_CCS_LIBS
12147 { $as_echo "$as_me:$LINENO: result: yes" >&5
12148$as_echo "yes" >&6; }
12149 HAVE_CCS=yes
12150fi
12151
12152pkg_failed=no
12153{ $as_echo "$as_me:$LINENO: checking for GULM" >&5
12154$as_echo_n "checking for GULM... " >&6; }
12155
12156if test -n "$GULM_CFLAGS"; then
12157 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
12158 elif test -n "$PKG_CONFIG"; then
12159 if test -n "$PKG_CONFIG" && \
12160 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
12161 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
12162 ac_status=$?
12163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; then
12165 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
12166else
12167 pkg_failed=yes
12168fi
12169 else
12170 pkg_failed=untried
12171fi
12172if test -n "$GULM_LIBS"; then
12173 pkg_cv_GULM_LIBS="$GULM_LIBS"
12174 elif test -n "$PKG_CONFIG"; then
12175 if test -n "$PKG_CONFIG" && \
12176 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
12177 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
12178 ac_status=$?
12179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); }; then
12181 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
12182else
12183 pkg_failed=yes
12184fi
12185 else
12186 pkg_failed=untried
12187fi
12188
12189
12190
12191if test $pkg_failed = yes; then
12192
12193if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12194 _pkg_short_errors_supported=yes
12195else
12196 _pkg_short_errors_supported=no
12197fi
12198 if test $_pkg_short_errors_supported = yes; then
12199 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
12200 else
12201 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
12202 fi
12203 # Put the nasty error message in config.log where it belongs
12204 echo "$GULM_PKG_ERRORS" >&5
12205
8c4e8a18
FDN
12206 { $as_echo "$as_me:$LINENO: result: no" >&5
12207$as_echo "no" >&6; }
12208 NOTFOUND=0
a946372e
AK
12209
12210for ac_header in libgulm.h
12211do
12212as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12213if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12214 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12215$as_echo_n "checking for $ac_header... " >&6; }
12216if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12217 $as_echo_n "(cached) " >&6
12218fi
12219ac_res=`eval 'as_val=${'$as_ac_Header'}
12220 $as_echo "$as_val"'`
12221 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12222$as_echo "$ac_res" >&6; }
12223else
12224 # Is the header compilable?
12225{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12226$as_echo_n "checking $ac_header usability... " >&6; }
12227cat >conftest.$ac_ext <<_ACEOF
12228/* confdefs.h. */
12229_ACEOF
12230cat confdefs.h >>conftest.$ac_ext
12231cat >>conftest.$ac_ext <<_ACEOF
12232/* end confdefs.h. */
12233$ac_includes_default
12234#include <$ac_header>
12235_ACEOF
12236rm -f conftest.$ac_objext
12237if { (ac_try="$ac_compile"
12238case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12241esac
12242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12243$as_echo "$ac_try_echo") >&5
12244 (eval "$ac_compile") 2>conftest.er1
12245 ac_status=$?
12246 grep -v '^ *+' conftest.er1 >conftest.err
12247 rm -f conftest.er1
12248 cat conftest.err >&5
12249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } && {
12251 test -z "$ac_c_werror_flag" ||
12252 test ! -s conftest.err
12253 } && test -s conftest.$ac_objext; then
12254 ac_header_compiler=yes
12255else
12256 $as_echo "$as_me: failed program was:" >&5
12257sed 's/^/| /' conftest.$ac_ext >&5
12258
12259 ac_header_compiler=no
12260fi
12261
12262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12263{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12264$as_echo "$ac_header_compiler" >&6; }
12265
12266# Is the header present?
12267{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12268$as_echo_n "checking $ac_header presence... " >&6; }
12269cat >conftest.$ac_ext <<_ACEOF
12270/* confdefs.h. */
12271_ACEOF
12272cat confdefs.h >>conftest.$ac_ext
12273cat >>conftest.$ac_ext <<_ACEOF
12274/* end confdefs.h. */
12275#include <$ac_header>
12276_ACEOF
12277if { (ac_try="$ac_cpp conftest.$ac_ext"
12278case "(($ac_try" in
12279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280 *) ac_try_echo=$ac_try;;
12281esac
12282eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12283$as_echo "$ac_try_echo") >&5
12284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12285 ac_status=$?
12286 grep -v '^ *+' conftest.er1 >conftest.err
12287 rm -f conftest.er1
12288 cat conftest.err >&5
12289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); } >/dev/null && {
12291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12292 test ! -s conftest.err
12293 }; then
12294 ac_header_preproc=yes
12295else
12296 $as_echo "$as_me: failed program was:" >&5
12297sed 's/^/| /' conftest.$ac_ext >&5
12298
12299 ac_header_preproc=no
12300fi
12301
12302rm -f conftest.err conftest.$ac_ext
12303{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12304$as_echo "$ac_header_preproc" >&6; }
12305
12306# So? What about this header?
12307case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12308 yes:no: )
12309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12310$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12312$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12313 ac_header_preproc=yes
12314 ;;
12315 no:yes:* )
12316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12317$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12319$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12321$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12323$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12325$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12327$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12328
12329 ;;
12330esac
12331{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12332$as_echo_n "checking for $ac_header... " >&6; }
12333if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12334 $as_echo_n "(cached) " >&6
12335else
12336 eval "$as_ac_Header=\$ac_header_preproc"
12337fi
12338ac_res=`eval 'as_val=${'$as_ac_Header'}
12339 $as_echo "$as_val"'`
12340 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12341$as_echo "$ac_res" >&6; }
12342
12343fi
12344as_val=`eval 'as_val=${'$as_ac_Header'}
12345 $as_echo "$as_val"'`
12346 if test "x$as_val" = x""yes; then
12347 cat >>confdefs.h <<_ACEOF
12348#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12349_ACEOF
12350
12351else
12352 $bailout
12353fi
12354
12355done
12356
12357 check_lib_no_libs gulm lg_core_login
12358 if test $NOTFOUND = 0; then
12359 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
12360$as_echo "no pkg for libgulm, using -lgulm" >&6; }
12361 GULM_LIBS="-lgulm"
12362 HAVE_GULM=yes
12363 fi
12364elif test $pkg_failed = untried; then
12365 NOTFOUND=0
12366
12367for ac_header in libgulm.h
12368do
12369as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12370if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12371 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12372$as_echo_n "checking for $ac_header... " >&6; }
12373if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12374 $as_echo_n "(cached) " >&6
12375fi
12376ac_res=`eval 'as_val=${'$as_ac_Header'}
12377 $as_echo "$as_val"'`
12378 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12379$as_echo "$ac_res" >&6; }
12380else
12381 # Is the header compilable?
12382{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12383$as_echo_n "checking $ac_header usability... " >&6; }
12384cat >conftest.$ac_ext <<_ACEOF
12385/* confdefs.h. */
12386_ACEOF
12387cat confdefs.h >>conftest.$ac_ext
12388cat >>conftest.$ac_ext <<_ACEOF
12389/* end confdefs.h. */
12390$ac_includes_default
12391#include <$ac_header>
12392_ACEOF
12393rm -f conftest.$ac_objext
12394if { (ac_try="$ac_compile"
12395case "(($ac_try" in
12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397 *) ac_try_echo=$ac_try;;
12398esac
12399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12400$as_echo "$ac_try_echo") >&5
12401 (eval "$ac_compile") 2>conftest.er1
12402 ac_status=$?
12403 grep -v '^ *+' conftest.er1 >conftest.err
12404 rm -f conftest.er1
12405 cat conftest.err >&5
12406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } && {
12408 test -z "$ac_c_werror_flag" ||
12409 test ! -s conftest.err
12410 } && test -s conftest.$ac_objext; then
12411 ac_header_compiler=yes
12412else
12413 $as_echo "$as_me: failed program was:" >&5
12414sed 's/^/| /' conftest.$ac_ext >&5
12415
12416 ac_header_compiler=no
12417fi
12418
12419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12420{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12421$as_echo "$ac_header_compiler" >&6; }
12422
12423# Is the header present?
12424{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12425$as_echo_n "checking $ac_header presence... " >&6; }
12426cat >conftest.$ac_ext <<_ACEOF
12427/* confdefs.h. */
12428_ACEOF
12429cat confdefs.h >>conftest.$ac_ext
12430cat >>conftest.$ac_ext <<_ACEOF
12431/* end confdefs.h. */
12432#include <$ac_header>
12433_ACEOF
12434if { (ac_try="$ac_cpp conftest.$ac_ext"
12435case "(($ac_try" in
12436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12437 *) ac_try_echo=$ac_try;;
12438esac
12439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12440$as_echo "$ac_try_echo") >&5
12441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12442 ac_status=$?
12443 grep -v '^ *+' conftest.er1 >conftest.err
12444 rm -f conftest.er1
12445 cat conftest.err >&5
12446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } >/dev/null && {
12448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12449 test ! -s conftest.err
12450 }; then
12451 ac_header_preproc=yes
12452else
12453 $as_echo "$as_me: failed program was:" >&5
12454sed 's/^/| /' conftest.$ac_ext >&5
12455
12456 ac_header_preproc=no
12457fi
12458
12459rm -f conftest.err conftest.$ac_ext
12460{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12461$as_echo "$ac_header_preproc" >&6; }
12462
12463# So? What about this header?
12464case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12465 yes:no: )
12466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12467$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12469$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12470 ac_header_preproc=yes
12471 ;;
12472 no:yes:* )
12473 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12474$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12475 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12476$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12477 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12478$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12480$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12482$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12484$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12485
12486 ;;
12487esac
12488{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12489$as_echo_n "checking for $ac_header... " >&6; }
12490if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12491 $as_echo_n "(cached) " >&6
12492else
12493 eval "$as_ac_Header=\$ac_header_preproc"
12494fi
12495ac_res=`eval 'as_val=${'$as_ac_Header'}
12496 $as_echo "$as_val"'`
12497 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12498$as_echo "$ac_res" >&6; }
12499
12500fi
12501as_val=`eval 'as_val=${'$as_ac_Header'}
12502 $as_echo "$as_val"'`
12503 if test "x$as_val" = x""yes; then
12504 cat >>confdefs.h <<_ACEOF
12505#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12506_ACEOF
12507
12508else
12509 $bailout
12510fi
12511
12512done
12513
12514 check_lib_no_libs gulm lg_core_login
12515 if test $NOTFOUND = 0; then
12516 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
12517$as_echo "no pkg for libgulm, using -lgulm" >&6; }
12518 GULM_LIBS="-lgulm"
12519 HAVE_GULM=yes
12520 fi
12521else
12522 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
12523 GULM_LIBS=$pkg_cv_GULM_LIBS
12524 { $as_echo "$as_me:$LINENO: result: yes" >&5
12525$as_echo "yes" >&6; }
12526 HAVE_GULM=yes
12527fi
12528fi
12529
12530if test x$BUILDCMAN = xyes; then
12531
12532pkg_failed=no
12533{ $as_echo "$as_me:$LINENO: checking for CMAN" >&5
12534$as_echo_n "checking for CMAN... " >&6; }
12535
12536if test -n "$CMAN_CFLAGS"; then
12537 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
12538 elif test -n "$PKG_CONFIG"; then
12539 if test -n "$PKG_CONFIG" && \
12540 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
12541 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
12542 ac_status=$?
12543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; then
12545 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
12546else
12547 pkg_failed=yes
12548fi
12549 else
12550 pkg_failed=untried
12551fi
12552if test -n "$CMAN_LIBS"; then
12553 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
12554 elif test -n "$PKG_CONFIG"; then
12555 if test -n "$PKG_CONFIG" && \
12556 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
12557 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
12558 ac_status=$?
12559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; then
12561 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
12562else
12563 pkg_failed=yes
12564fi
12565 else
12566 pkg_failed=untried
12567fi
12568
12569
12570
12571if test $pkg_failed = yes; then
12572
12573if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12574 _pkg_short_errors_supported=yes
12575else
12576 _pkg_short_errors_supported=no
12577fi
12578 if test $_pkg_short_errors_supported = yes; then
12579 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
12580 else
12581 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
12582 fi
12583 # Put the nasty error message in config.log where it belongs
12584 echo "$CMAN_PKG_ERRORS" >&5
12585
8c4e8a18
FDN
12586 { $as_echo "$as_me:$LINENO: result: no" >&5
12587$as_echo "no" >&6; }
12588 NOTFOUND=0
a946372e
AK
12589
12590for ac_header in libcman.h
12591do
12592as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12593if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12594 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12595$as_echo_n "checking for $ac_header... " >&6; }
12596if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12597 $as_echo_n "(cached) " >&6
12598fi
12599ac_res=`eval 'as_val=${'$as_ac_Header'}
12600 $as_echo "$as_val"'`
12601 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12602$as_echo "$ac_res" >&6; }
12603else
12604 # Is the header compilable?
12605{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12606$as_echo_n "checking $ac_header usability... " >&6; }
12607cat >conftest.$ac_ext <<_ACEOF
12608/* confdefs.h. */
12609_ACEOF
12610cat confdefs.h >>conftest.$ac_ext
12611cat >>conftest.$ac_ext <<_ACEOF
12612/* end confdefs.h. */
12613$ac_includes_default
12614#include <$ac_header>
12615_ACEOF
12616rm -f conftest.$ac_objext
12617if { (ac_try="$ac_compile"
12618case "(($ac_try" in
12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12621esac
12622eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12623$as_echo "$ac_try_echo") >&5
12624 (eval "$ac_compile") 2>conftest.er1
12625 ac_status=$?
12626 grep -v '^ *+' conftest.er1 >conftest.err
12627 rm -f conftest.er1
12628 cat conftest.err >&5
12629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); } && {
12631 test -z "$ac_c_werror_flag" ||
12632 test ! -s conftest.err
12633 } && test -s conftest.$ac_objext; then
12634 ac_header_compiler=yes
12635else
12636 $as_echo "$as_me: failed program was:" >&5
12637sed 's/^/| /' conftest.$ac_ext >&5
12638
12639 ac_header_compiler=no
12640fi
12641
12642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12643{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12644$as_echo "$ac_header_compiler" >&6; }
12645
12646# Is the header present?
12647{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12648$as_echo_n "checking $ac_header presence... " >&6; }
12649cat >conftest.$ac_ext <<_ACEOF
12650/* confdefs.h. */
12651_ACEOF
12652cat confdefs.h >>conftest.$ac_ext
12653cat >>conftest.$ac_ext <<_ACEOF
12654/* end confdefs.h. */
12655#include <$ac_header>
12656_ACEOF
12657if { (ac_try="$ac_cpp conftest.$ac_ext"
12658case "(($ac_try" in
12659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12660 *) ac_try_echo=$ac_try;;
12661esac
12662eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12663$as_echo "$ac_try_echo") >&5
12664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12665 ac_status=$?
12666 grep -v '^ *+' conftest.er1 >conftest.err
12667 rm -f conftest.er1
12668 cat conftest.err >&5
12669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); } >/dev/null && {
12671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12672 test ! -s conftest.err
12673 }; then
12674 ac_header_preproc=yes
12675else
12676 $as_echo "$as_me: failed program was:" >&5
12677sed 's/^/| /' conftest.$ac_ext >&5
12678
12679 ac_header_preproc=no
12680fi
12681
12682rm -f conftest.err conftest.$ac_ext
12683{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12684$as_echo "$ac_header_preproc" >&6; }
12685
12686# So? What about this header?
12687case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12688 yes:no: )
12689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12690$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12692$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12693 ac_header_preproc=yes
12694 ;;
12695 no:yes:* )
12696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12697$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12699$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12701$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12703$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12705$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12707$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12708
12709 ;;
12710esac
12711{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12712$as_echo_n "checking for $ac_header... " >&6; }
12713if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12714 $as_echo_n "(cached) " >&6
12715else
12716 eval "$as_ac_Header=\$ac_header_preproc"
12717fi
12718ac_res=`eval 'as_val=${'$as_ac_Header'}
12719 $as_echo "$as_val"'`
12720 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12721$as_echo "$ac_res" >&6; }
12722
12723fi
12724as_val=`eval 'as_val=${'$as_ac_Header'}
12725 $as_echo "$as_val"'`
12726 if test "x$as_val" = x""yes; then
12727 cat >>confdefs.h <<_ACEOF
12728#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12729_ACEOF
12730
12731else
12732 $bailout
12733fi
12734
12735done
12736
12737 check_lib_no_libs cman cman_init
12738 if test $NOTFOUND = 0; then
12739 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
12740$as_echo "no pkg for libcman, using -lcman" >&6; }
12741 CMAN_LIBS="-lcman"
12742 HAVE_CMAN=yes
12743 fi
12744elif test $pkg_failed = untried; then
12745 NOTFOUND=0
12746
12747for ac_header in libcman.h
12748do
12749as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12750if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12751 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12752$as_echo_n "checking for $ac_header... " >&6; }
12753if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12754 $as_echo_n "(cached) " >&6
12755fi
12756ac_res=`eval 'as_val=${'$as_ac_Header'}
12757 $as_echo "$as_val"'`
12758 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12759$as_echo "$ac_res" >&6; }
12760else
12761 # Is the header compilable?
12762{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12763$as_echo_n "checking $ac_header usability... " >&6; }
12764cat >conftest.$ac_ext <<_ACEOF
12765/* confdefs.h. */
12766_ACEOF
12767cat confdefs.h >>conftest.$ac_ext
12768cat >>conftest.$ac_ext <<_ACEOF
12769/* end confdefs.h. */
12770$ac_includes_default
12771#include <$ac_header>
12772_ACEOF
12773rm -f conftest.$ac_objext
12774if { (ac_try="$ac_compile"
12775case "(($ac_try" in
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12778esac
12779eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12780$as_echo "$ac_try_echo") >&5
12781 (eval "$ac_compile") 2>conftest.er1
12782 ac_status=$?
12783 grep -v '^ *+' conftest.er1 >conftest.err
12784 rm -f conftest.er1
12785 cat conftest.err >&5
12786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } && {
12788 test -z "$ac_c_werror_flag" ||
12789 test ! -s conftest.err
12790 } && test -s conftest.$ac_objext; then
12791 ac_header_compiler=yes
12792else
12793 $as_echo "$as_me: failed program was:" >&5
12794sed 's/^/| /' conftest.$ac_ext >&5
12795
12796 ac_header_compiler=no
12797fi
12798
12799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12800{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12801$as_echo "$ac_header_compiler" >&6; }
12802
12803# Is the header present?
12804{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12805$as_echo_n "checking $ac_header presence... " >&6; }
12806cat >conftest.$ac_ext <<_ACEOF
12807/* confdefs.h. */
12808_ACEOF
12809cat confdefs.h >>conftest.$ac_ext
12810cat >>conftest.$ac_ext <<_ACEOF
12811/* end confdefs.h. */
12812#include <$ac_header>
12813_ACEOF
12814if { (ac_try="$ac_cpp conftest.$ac_ext"
12815case "(($ac_try" in
12816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12817 *) ac_try_echo=$ac_try;;
12818esac
12819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12820$as_echo "$ac_try_echo") >&5
12821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12822 ac_status=$?
12823 grep -v '^ *+' conftest.er1 >conftest.err
12824 rm -f conftest.er1
12825 cat conftest.err >&5
12826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } >/dev/null && {
12828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12829 test ! -s conftest.err
12830 }; then
12831 ac_header_preproc=yes
12832else
12833 $as_echo "$as_me: failed program was:" >&5
12834sed 's/^/| /' conftest.$ac_ext >&5
12835
12836 ac_header_preproc=no
12837fi
12838
12839rm -f conftest.err conftest.$ac_ext
12840{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12841$as_echo "$ac_header_preproc" >&6; }
12842
12843# So? What about this header?
12844case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12845 yes:no: )
12846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12847$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12849$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12850 ac_header_preproc=yes
12851 ;;
12852 no:yes:* )
12853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12854$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12856$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12858$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12860$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12862$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12864$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12865
12866 ;;
12867esac
12868{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12869$as_echo_n "checking for $ac_header... " >&6; }
12870if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12871 $as_echo_n "(cached) " >&6
12872else
12873 eval "$as_ac_Header=\$ac_header_preproc"
12874fi
12875ac_res=`eval 'as_val=${'$as_ac_Header'}
12876 $as_echo "$as_val"'`
12877 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12878$as_echo "$ac_res" >&6; }
12879
12880fi
12881as_val=`eval 'as_val=${'$as_ac_Header'}
12882 $as_echo "$as_val"'`
12883 if test "x$as_val" = x""yes; then
12884 cat >>confdefs.h <<_ACEOF
12885#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12886_ACEOF
12887
12888else
12889 $bailout
12890fi
12891
12892done
12893
12894 check_lib_no_libs cman cman_init
12895 if test $NOTFOUND = 0; then
12896 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
12897$as_echo "no pkg for libcman, using -lcman" >&6; }
12898 CMAN_LIBS="-lcman"
12899 HAVE_CMAN=yes
12900 fi
12901else
12902 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
12903 CMAN_LIBS=$pkg_cv_CMAN_LIBS
12904 { $as_echo "$as_me:$LINENO: result: yes" >&5
12905$as_echo "yes" >&6; }
12906 HAVE_CMAN=yes
12907fi
12908 CHECKCONFDB=yes
12909 CHECKDLM=yes
12910fi
12911
12912if test x$BUILDCOROSYNC = xyes || \
12913 test x$BUILDOPENAIS = xyes; then
12914
12915pkg_failed=no
12916{ $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
12917$as_echo_n "checking for COROSYNC... " >&6; }
12918
12919if test -n "$COROSYNC_CFLAGS"; then
12920 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
12921 elif test -n "$PKG_CONFIG"; then
12922 if test -n "$PKG_CONFIG" && \
12923 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
12924 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
12925 ac_status=$?
12926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; then
12928 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
12929else
12930 pkg_failed=yes
12931fi
12932 else
12933 pkg_failed=untried
12934fi
12935if test -n "$COROSYNC_LIBS"; then
12936 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
12937 elif test -n "$PKG_CONFIG"; then
12938 if test -n "$PKG_CONFIG" && \
12939 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
12940 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
12941 ac_status=$?
12942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; then
12944 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
12945else
12946 pkg_failed=yes
12947fi
12948 else
12949 pkg_failed=untried
12950fi
12951
12952
12953
12954if test $pkg_failed = yes; then
12955
12956if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12957 _pkg_short_errors_supported=yes
12958else
12959 _pkg_short_errors_supported=no
12960fi
12961 if test $_pkg_short_errors_supported = yes; then
12962 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
12963 else
12964 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
12965 fi
12966 # Put the nasty error message in config.log where it belongs
12967 echo "$COROSYNC_PKG_ERRORS" >&5
12968
8c4e8a18 12969 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 12970$as_echo "no" >&6; }
8c4e8a18
FDN
12971 $bailout
12972elif test $pkg_failed = untried; then
a946372e
AK
12973 $bailout
12974else
12975 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
12976 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
12977 { $as_echo "$as_me:$LINENO: result: yes" >&5
12978$as_echo "yes" >&6; }
12979 HAVE_COROSYNC=yes
12980fi
12981 CHECKCONFDB=yes
12982fi
12983
12984if test x$BUILDCOROSYNC = xyes; then
12985
12986pkg_failed=no
12987{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
12988$as_echo_n "checking for QUORUM... " >&6; }
12989
12990if test -n "$QUORUM_CFLAGS"; then
12991 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
12992 elif test -n "$PKG_CONFIG"; then
12993 if test -n "$PKG_CONFIG" && \
12994 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
12995 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
12996 ac_status=$?
12997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; then
12999 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
13000else
13001 pkg_failed=yes
13002fi
13003 else
13004 pkg_failed=untried
13005fi
13006if test -n "$QUORUM_LIBS"; then
13007 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
13008 elif test -n "$PKG_CONFIG"; then
13009 if test -n "$PKG_CONFIG" && \
13010 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
13011 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
13012 ac_status=$?
13013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }; then
13015 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
13016else
13017 pkg_failed=yes
13018fi
13019 else
13020 pkg_failed=untried
13021fi
13022
13023
13024
13025if test $pkg_failed = yes; then
13026
13027if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13028 _pkg_short_errors_supported=yes
13029else
13030 _pkg_short_errors_supported=no
13031fi
13032 if test $_pkg_short_errors_supported = yes; then
13033 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
13034 else
13035 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
13036 fi
13037 # Put the nasty error message in config.log where it belongs
13038 echo "$QUORUM_PKG_ERRORS" >&5
13039
8c4e8a18 13040 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 13041$as_echo "no" >&6; }
8c4e8a18
FDN
13042 $bailout
13043elif test $pkg_failed = untried; then
a946372e
AK
13044 $bailout
13045else
13046 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
13047 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
13048 { $as_echo "$as_me:$LINENO: result: yes" >&5
13049$as_echo "yes" >&6; }
13050 HAVE_QUORUM=yes
13051fi
13052 CHECKCPG=yes
13053 CHECKDLM=yes
13054fi
13055
13056if test x$BUILDOPENAIS = xyes; then
13057
13058pkg_failed=no
13059{ $as_echo "$as_me:$LINENO: checking for SALCK" >&5
13060$as_echo_n "checking for SALCK... " >&6; }
13061
13062if test -n "$SALCK_CFLAGS"; then
13063 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
13064 elif test -n "$PKG_CONFIG"; then
13065 if test -n "$PKG_CONFIG" && \
13066 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
13067 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
13068 ac_status=$?
13069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; then
13071 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
13072else
13073 pkg_failed=yes
13074fi
13075 else
13076 pkg_failed=untried
13077fi
13078if test -n "$SALCK_LIBS"; then
13079 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
13080 elif test -n "$PKG_CONFIG"; then
13081 if test -n "$PKG_CONFIG" && \
13082 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
13083 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
13084 ac_status=$?
13085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; then
13087 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
13088else
13089 pkg_failed=yes
13090fi
13091 else
13092 pkg_failed=untried
13093fi
13094
13095
13096
13097if test $pkg_failed = yes; then
13098
13099if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13100 _pkg_short_errors_supported=yes
13101else
13102 _pkg_short_errors_supported=no
13103fi
13104 if test $_pkg_short_errors_supported = yes; then
13105 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
13106 else
13107 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
13108 fi
13109 # Put the nasty error message in config.log where it belongs
13110 echo "$SALCK_PKG_ERRORS" >&5
13111
8c4e8a18 13112 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 13113$as_echo "no" >&6; }
8c4e8a18
FDN
13114 $bailout
13115elif test $pkg_failed = untried; then
a946372e
AK
13116 $bailout
13117else
13118 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
13119 SALCK_LIBS=$pkg_cv_SALCK_LIBS
13120 { $as_echo "$as_me:$LINENO: result: yes" >&5
13121$as_echo "yes" >&6; }
13122 HAVE_SALCK=yes
13123fi
13124 CHECKCPG=yes
13125fi
13126
13127
13128
13129if test x$CHECKCONFDB = xyes; then
13130
13131pkg_failed=no
13132{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
13133$as_echo_n "checking for CONFDB... " >&6; }
13134
13135if test -n "$CONFDB_CFLAGS"; then
13136 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
13137 elif test -n "$PKG_CONFIG"; then
13138 if test -n "$PKG_CONFIG" && \
13139 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
13140 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
13141 ac_status=$?
13142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; then
13144 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
13145else
13146 pkg_failed=yes
13147fi
13148 else
13149 pkg_failed=untried
13150fi
13151if test -n "$CONFDB_LIBS"; then
13152 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
13153 elif test -n "$PKG_CONFIG"; then
13154 if test -n "$PKG_CONFIG" && \
13155 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
13156 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
13157 ac_status=$?
13158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; then
13160 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
13161else
13162 pkg_failed=yes
13163fi
13164 else
13165 pkg_failed=untried
13166fi
13167
13168
13169
13170if test $pkg_failed = yes; then
13171
13172if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13173 _pkg_short_errors_supported=yes
13174else
13175 _pkg_short_errors_supported=no
13176fi
13177 if test $_pkg_short_errors_supported = yes; then
13178 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
13179 else
13180 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
13181 fi
13182 # Put the nasty error message in config.log where it belongs
13183 echo "$CONFDB_PKG_ERRORS" >&5
13184
8c4e8a18 13185 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 13186$as_echo "no" >&6; }
8c4e8a18
FDN
13187 HAVE_CONFDB=no
13188elif test $pkg_failed = untried; then
a946372e
AK
13189 HAVE_CONFDB=no
13190else
13191 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
13192 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
13193 { $as_echo "$as_me:$LINENO: result: yes" >&5
13194$as_echo "yes" >&6; }
13195 HAVE_CONFDB=yes
13196fi
13197
13198
13199for ac_header in corosync/confdb.h
13200do
13201as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13202if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13203 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13204$as_echo_n "checking for $ac_header... " >&6; }
13205if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13206 $as_echo_n "(cached) " >&6
13207fi
13208ac_res=`eval 'as_val=${'$as_ac_Header'}
13209 $as_echo "$as_val"'`
13210 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13211$as_echo "$ac_res" >&6; }
13212else
13213 # Is the header compilable?
13214{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13215$as_echo_n "checking $ac_header usability... " >&6; }
13216cat >conftest.$ac_ext <<_ACEOF
13217/* confdefs.h. */
13218_ACEOF
13219cat confdefs.h >>conftest.$ac_ext
13220cat >>conftest.$ac_ext <<_ACEOF
13221/* end confdefs.h. */
13222$ac_includes_default
13223#include <$ac_header>
13224_ACEOF
13225rm -f conftest.$ac_objext
13226if { (ac_try="$ac_compile"
13227case "(($ac_try" in
13228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229 *) ac_try_echo=$ac_try;;
13230esac
13231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13232$as_echo "$ac_try_echo") >&5
13233 (eval "$ac_compile") 2>conftest.er1
13234 ac_status=$?
13235 grep -v '^ *+' conftest.er1 >conftest.err
13236 rm -f conftest.er1
13237 cat conftest.err >&5
13238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); } && {
13240 test -z "$ac_c_werror_flag" ||
13241 test ! -s conftest.err
13242 } && test -s conftest.$ac_objext; then
13243 ac_header_compiler=yes
13244else
13245 $as_echo "$as_me: failed program was:" >&5
13246sed 's/^/| /' conftest.$ac_ext >&5
13247
13248 ac_header_compiler=no
13249fi
13250
13251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13252{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13253$as_echo "$ac_header_compiler" >&6; }
13254
13255# Is the header present?
13256{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13257$as_echo_n "checking $ac_header presence... " >&6; }
13258cat >conftest.$ac_ext <<_ACEOF
13259/* confdefs.h. */
13260_ACEOF
13261cat confdefs.h >>conftest.$ac_ext
13262cat >>conftest.$ac_ext <<_ACEOF
13263/* end confdefs.h. */
13264#include <$ac_header>
13265_ACEOF
13266if { (ac_try="$ac_cpp conftest.$ac_ext"
13267case "(($ac_try" in
13268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269 *) ac_try_echo=$ac_try;;
13270esac
13271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13272$as_echo "$ac_try_echo") >&5
13273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13274 ac_status=$?
13275 grep -v '^ *+' conftest.er1 >conftest.err
13276 rm -f conftest.er1
13277 cat conftest.err >&5
13278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); } >/dev/null && {
13280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13281 test ! -s conftest.err
13282 }; then
13283 ac_header_preproc=yes
13284else
13285 $as_echo "$as_me: failed program was:" >&5
13286sed 's/^/| /' conftest.$ac_ext >&5
13287
13288 ac_header_preproc=no
13289fi
13290
13291rm -f conftest.err conftest.$ac_ext
13292{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13293$as_echo "$ac_header_preproc" >&6; }
13294
13295# So? What about this header?
13296case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13297 yes:no: )
13298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13299$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13301$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13302 ac_header_preproc=yes
13303 ;;
13304 no:yes:* )
13305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13306$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13308$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13310$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13312$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13314$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13316$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13317
13318 ;;
13319esac
13320{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13321$as_echo_n "checking for $ac_header... " >&6; }
13322if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13323 $as_echo_n "(cached) " >&6
13324else
13325 eval "$as_ac_Header=\$ac_header_preproc"
13326fi
13327ac_res=`eval 'as_val=${'$as_ac_Header'}
13328 $as_echo "$as_val"'`
13329 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13330$as_echo "$ac_res" >&6; }
13331
13332fi
13333as_val=`eval 'as_val=${'$as_ac_Header'}
13334 $as_echo "$as_val"'`
13335 if test "x$as_val" = x""yes; then
13336 cat >>confdefs.h <<_ACEOF
13337#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13338_ACEOF
13339 HAVE_CONFDB_H=yes
13340else
13341 HAVE_CONFDB_H=no
13342fi
13343
13344done
13345
13346
13347 if test x$HAVE_CONFDB != xyes && \
13348 test x$HAVE_CONFDB_H = xyes; then
13349 check_lib_no_libs confdb confdb_initialize
13350 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
13351$as_echo "no pkg for confdb, using -lconfdb" >&6; }
13352 CONFDB_LIBS="-lconfdb"
13353 HAVE_CONFDB=yes
13354 fi
13355
13356 if test x$BUILDCOROSYNC = xyes && \
13357 test x$HAVE_CONFDB != xyes &&
13358 test x$CLVMD != xall; then
13359 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
13360$as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
13361 { (exit 1); exit 1; }; }
13362 fi
13363fi
13364
13365if test x$CHECKCPG = xyes; then
13366
13367pkg_failed=no
13368{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
13369$as_echo_n "checking for CPG... " >&6; }
13370
13371if test -n "$CPG_CFLAGS"; then
13372 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
13373 elif test -n "$PKG_CONFIG"; then
13374 if test -n "$PKG_CONFIG" && \
13375 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13376 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13377 ac_status=$?
13378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); }; then
13380 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
13381else
13382 pkg_failed=yes
13383fi
13384 else
13385 pkg_failed=untried
13386fi
13387if test -n "$CPG_LIBS"; then
13388 pkg_cv_CPG_LIBS="$CPG_LIBS"
13389 elif test -n "$PKG_CONFIG"; then
13390 if test -n "$PKG_CONFIG" && \
13391 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13392 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13393 ac_status=$?
13394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; then
13396 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
13397else
13398 pkg_failed=yes
13399fi
13400 else
13401 pkg_failed=untried
13402fi
13403
13404
13405
13406if test $pkg_failed = yes; then
13407
13408if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13409 _pkg_short_errors_supported=yes
13410else
13411 _pkg_short_errors_supported=no
13412fi
13413 if test $_pkg_short_errors_supported = yes; then
13414 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
13415 else
13416 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
13417 fi
13418 # Put the nasty error message in config.log where it belongs
13419 echo "$CPG_PKG_ERRORS" >&5
13420
8c4e8a18 13421 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 13422$as_echo "no" >&6; }
8c4e8a18
FDN
13423 $bailout
13424elif test $pkg_failed = untried; then
a946372e
AK
13425 $bailout
13426else
13427 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
13428 CPG_LIBS=$pkg_cv_CPG_LIBS
13429 { $as_echo "$as_me:$LINENO: result: yes" >&5
13430$as_echo "yes" >&6; }
13431 HAVE_CPG=yes
13432fi
13433fi
13434
13435if test x$CHECKDLM = xyes; then
13436
13437pkg_failed=no
13438{ $as_echo "$as_me:$LINENO: checking for DLM" >&5
13439$as_echo_n "checking for DLM... " >&6; }
13440
13441if test -n "$DLM_CFLAGS"; then
13442 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
13443 elif test -n "$PKG_CONFIG"; then
13444 if test -n "$PKG_CONFIG" && \
13445 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
13446 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
13447 ac_status=$?
13448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; then
13450 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
13451else
13452 pkg_failed=yes
13453fi
13454 else
13455 pkg_failed=untried
13456fi
13457if test -n "$DLM_LIBS"; then
13458 pkg_cv_DLM_LIBS="$DLM_LIBS"
13459 elif test -n "$PKG_CONFIG"; then
13460 if test -n "$PKG_CONFIG" && \
13461 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
13462 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
13463 ac_status=$?
13464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); }; then
13466 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
13467else
13468 pkg_failed=yes
13469fi
13470 else
13471 pkg_failed=untried
13472fi
13473
13474
13475
13476if test $pkg_failed = yes; then
13477
13478if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13479 _pkg_short_errors_supported=yes
13480else
13481 _pkg_short_errors_supported=no
13482fi
13483 if test $_pkg_short_errors_supported = yes; then
13484 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
13485 else
13486 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
13487 fi
13488 # Put the nasty error message in config.log where it belongs
13489 echo "$DLM_PKG_ERRORS" >&5
13490
8c4e8a18
FDN
13491 { $as_echo "$as_me:$LINENO: result: no" >&5
13492$as_echo "no" >&6; }
13493 NOTFOUND=0
a946372e
AK
13494
13495for ac_header in libdlm.h
13496do
13497as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13498if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13499 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13500$as_echo_n "checking for $ac_header... " >&6; }
13501if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13502 $as_echo_n "(cached) " >&6
13503fi
13504ac_res=`eval 'as_val=${'$as_ac_Header'}
13505 $as_echo "$as_val"'`
13506 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13507$as_echo "$ac_res" >&6; }
13508else
13509 # Is the header compilable?
13510{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13511$as_echo_n "checking $ac_header usability... " >&6; }
13512cat >conftest.$ac_ext <<_ACEOF
13513/* confdefs.h. */
13514_ACEOF
13515cat confdefs.h >>conftest.$ac_ext
13516cat >>conftest.$ac_ext <<_ACEOF
13517/* end confdefs.h. */
13518$ac_includes_default
13519#include <$ac_header>
13520_ACEOF
13521rm -f conftest.$ac_objext
13522if { (ac_try="$ac_compile"
13523case "(($ac_try" in
13524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13525 *) ac_try_echo=$ac_try;;
13526esac
13527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13528$as_echo "$ac_try_echo") >&5
13529 (eval "$ac_compile") 2>conftest.er1
13530 ac_status=$?
13531 grep -v '^ *+' conftest.er1 >conftest.err
13532 rm -f conftest.er1
13533 cat conftest.err >&5
13534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); } && {
13536 test -z "$ac_c_werror_flag" ||
13537 test ! -s conftest.err
13538 } && test -s conftest.$ac_objext; then
13539 ac_header_compiler=yes
13540else
13541 $as_echo "$as_me: failed program was:" >&5
13542sed 's/^/| /' conftest.$ac_ext >&5
13543
13544 ac_header_compiler=no
13545fi
13546
13547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13548{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13549$as_echo "$ac_header_compiler" >&6; }
13550
13551# Is the header present?
13552{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13553$as_echo_n "checking $ac_header presence... " >&6; }
13554cat >conftest.$ac_ext <<_ACEOF
13555/* confdefs.h. */
13556_ACEOF
13557cat confdefs.h >>conftest.$ac_ext
13558cat >>conftest.$ac_ext <<_ACEOF
13559/* end confdefs.h. */
13560#include <$ac_header>
13561_ACEOF
13562if { (ac_try="$ac_cpp conftest.$ac_ext"
13563case "(($ac_try" in
13564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565 *) ac_try_echo=$ac_try;;
13566esac
13567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13568$as_echo "$ac_try_echo") >&5
13569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13570 ac_status=$?
13571 grep -v '^ *+' conftest.er1 >conftest.err
13572 rm -f conftest.er1
13573 cat conftest.err >&5
13574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } >/dev/null && {
13576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13577 test ! -s conftest.err
13578 }; then
13579 ac_header_preproc=yes
13580else
13581 $as_echo "$as_me: failed program was:" >&5
13582sed 's/^/| /' conftest.$ac_ext >&5
13583
13584 ac_header_preproc=no
13585fi
13586
13587rm -f conftest.err conftest.$ac_ext
13588{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13589$as_echo "$ac_header_preproc" >&6; }
13590
13591# So? What about this header?
13592case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13593 yes:no: )
13594 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13595$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13596 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13597$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13598 ac_header_preproc=yes
13599 ;;
13600 no:yes:* )
13601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13602$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13604$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13606$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13608$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13610$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13612$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13613
13614 ;;
13615esac
13616{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13617$as_echo_n "checking for $ac_header... " >&6; }
13618if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13619 $as_echo_n "(cached) " >&6
13620else
13621 eval "$as_ac_Header=\$ac_header_preproc"
13622fi
13623ac_res=`eval 'as_val=${'$as_ac_Header'}
13624 $as_echo "$as_val"'`
13625 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13626$as_echo "$ac_res" >&6; }
13627
13628fi
13629as_val=`eval 'as_val=${'$as_ac_Header'}
13630 $as_echo "$as_val"'`
13631 if test "x$as_val" = x""yes; then
13632 cat >>confdefs.h <<_ACEOF
13633#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13634_ACEOF
13635
13636else
13637 $bailout
13638fi
13639
13640done
13641
13642 check_lib_no_libs dlm dlm_lock -lpthread
13643 if test $NOTFOUND = 0; then
13644 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
13645$as_echo "no pkg for libdlm, using -ldlm" >&6; }
13646 DLM_LIBS="-ldlm -lpthread"
13647 HAVE_DLM=yes
13648 fi
13649elif test $pkg_failed = untried; then
13650 NOTFOUND=0
13651
13652for ac_header in libdlm.h
13653do
13654as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13655if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13656 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13657$as_echo_n "checking for $ac_header... " >&6; }
13658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13659 $as_echo_n "(cached) " >&6
13660fi
13661ac_res=`eval 'as_val=${'$as_ac_Header'}
13662 $as_echo "$as_val"'`
13663 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13664$as_echo "$ac_res" >&6; }
13665else
13666 # Is the header compilable?
13667{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13668$as_echo_n "checking $ac_header usability... " >&6; }
13669cat >conftest.$ac_ext <<_ACEOF
13670/* confdefs.h. */
13671_ACEOF
13672cat confdefs.h >>conftest.$ac_ext
13673cat >>conftest.$ac_ext <<_ACEOF
13674/* end confdefs.h. */
13675$ac_includes_default
13676#include <$ac_header>
13677_ACEOF
13678rm -f conftest.$ac_objext
13679if { (ac_try="$ac_compile"
13680case "(($ac_try" in
13681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682 *) ac_try_echo=$ac_try;;
13683esac
13684eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13685$as_echo "$ac_try_echo") >&5
13686 (eval "$ac_compile") 2>conftest.er1
13687 ac_status=$?
13688 grep -v '^ *+' conftest.er1 >conftest.err
13689 rm -f conftest.er1
13690 cat conftest.err >&5
13691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } && {
13693 test -z "$ac_c_werror_flag" ||
13694 test ! -s conftest.err
13695 } && test -s conftest.$ac_objext; then
13696 ac_header_compiler=yes
13697else
13698 $as_echo "$as_me: failed program was:" >&5
13699sed 's/^/| /' conftest.$ac_ext >&5
13700
13701 ac_header_compiler=no
13702fi
13703
13704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13705{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13706$as_echo "$ac_header_compiler" >&6; }
13707
13708# Is the header present?
13709{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13710$as_echo_n "checking $ac_header presence... " >&6; }
13711cat >conftest.$ac_ext <<_ACEOF
13712/* confdefs.h. */
13713_ACEOF
13714cat confdefs.h >>conftest.$ac_ext
13715cat >>conftest.$ac_ext <<_ACEOF
13716/* end confdefs.h. */
13717#include <$ac_header>
13718_ACEOF
13719if { (ac_try="$ac_cpp conftest.$ac_ext"
13720case "(($ac_try" in
13721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13722 *) ac_try_echo=$ac_try;;
13723esac
13724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13725$as_echo "$ac_try_echo") >&5
13726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13727 ac_status=$?
13728 grep -v '^ *+' conftest.er1 >conftest.err
13729 rm -f conftest.er1
13730 cat conftest.err >&5
13731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); } >/dev/null && {
13733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13734 test ! -s conftest.err
13735 }; then
13736 ac_header_preproc=yes
13737else
13738 $as_echo "$as_me: failed program was:" >&5
13739sed 's/^/| /' conftest.$ac_ext >&5
13740
13741 ac_header_preproc=no
13742fi
13743
13744rm -f conftest.err conftest.$ac_ext
13745{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13746$as_echo "$ac_header_preproc" >&6; }
13747
13748# So? What about this header?
13749case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13750 yes:no: )
13751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13752$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13754$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13755 ac_header_preproc=yes
13756 ;;
13757 no:yes:* )
13758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13759$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13761$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13762 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13763$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13764 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13765$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13766 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13767$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13769$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13770
13771 ;;
13772esac
13773{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13774$as_echo_n "checking for $ac_header... " >&6; }
13775if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13776 $as_echo_n "(cached) " >&6
13777else
13778 eval "$as_ac_Header=\$ac_header_preproc"
13779fi
13780ac_res=`eval 'as_val=${'$as_ac_Header'}
13781 $as_echo "$as_val"'`
13782 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13783$as_echo "$ac_res" >&6; }
13784
13785fi
13786as_val=`eval 'as_val=${'$as_ac_Header'}
13787 $as_echo "$as_val"'`
13788 if test "x$as_val" = x""yes; then
13789 cat >>confdefs.h <<_ACEOF
13790#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13791_ACEOF
13792
13793else
13794 $bailout
13795fi
13796
13797done
13798
13799 check_lib_no_libs dlm dlm_lock -lpthread
13800 if test $NOTFOUND = 0; then
13801 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
13802$as_echo "no pkg for libdlm, using -ldlm" >&6; }
13803 DLM_LIBS="-ldlm -lpthread"
13804 HAVE_DLM=yes
13805 fi
13806else
13807 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
13808 DLM_LIBS=$pkg_cv_DLM_LIBS
13809 { $as_echo "$as_me:$LINENO: result: yes" >&5
13810$as_echo "yes" >&6; }
13811 HAVE_DLM=yes
13812fi
13813fi
13814
13815if test x$CLVMD = xall; then
8c222979 13816 CLVMD=none
a946372e
AK
13817 if test x$HAVE_CCS = xyes && \
13818 test x$HAVE_GULM = xyes; then
8c222979
FDN
13819 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
13820$as_echo "Enabling clvmd gulm cluster manager" >&6; }
13821 CLVMD="$CLVMD,gulm"
a946372e
AK
13822 fi
13823 if test x$HAVE_CMAN = xyes && \
13824 test x$HAVE_DLM = xyes; then
8c222979
FDN
13825 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
13826$as_echo "Enabling clvmd cman cluster manager" >&6; }
13827 CLVMD="$CLVMD,cman"
a946372e
AK
13828 fi
13829 if test x$HAVE_COROSYNC = xyes && \
13830 test x$HAVE_QUORUM = xyes && \
13831 test x$HAVE_CPG = xyes && \
13832 test x$HAVE_DLM = xyes && \
13833 test x$HAVE_CONFDB = xyes; then
8c222979
FDN
13834 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
13835$as_echo "Enabling clvmd corosync cluster manager" >&6; }
13836 CLVMD="$CLVMD,corosync"
a946372e
AK
13837 fi
13838 if test x$HAVE_COROSYNC = xyes && \
13839 test x$HAVE_CPG = xyes && \
13840 test x$HAVE_SALCK = xyes; then
8c222979
FDN
13841 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
13842$as_echo "Enabling clvmd openais cluster manager" >&6; }
13843 CLVMD="$CLVMD,openais"
13844 fi
13845 if test x$CLVMD = xnone; then
13846 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
13847$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
a946372e 13848 fi
a946372e
AK
13849fi
13850
8c4e8a18
FDN
13851################################################################################
13852if test "x$CLVMD" != xnone; then
13853
13854# Check whether --with-clvmd-pidfile was given.
13855if test "${with_clvmd_pidfile+set}" = set; then
13856 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
13857else
13858 CLVMD_PIDFILE="/var/run/clvmd.pid"
13859fi
13860
13861
13862cat >>confdefs.h <<_ACEOF
13863#define CLVMD_PIDFILE "$CLVMD_PIDFILE"
13864_ACEOF
13865
13866fi
13867
a946372e 13868################################################################################
66fd4529
AK
13869{ $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
13870$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
13871# Check whether --enable-cmirrord was given.
13872if test "${enable_cmirrord+set}" = set; then
13873 enableval=$enable_cmirrord; CMIRRORD=$enableval
13874else
13875 CMIRRORD=no
13876fi
13877
13878{ $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
13879$as_echo "$CMIRRORD" >&6; }
13880
13881BUILD_CMIRRORD=$CMIRRORD
13882
13883################################################################################
66fd4529
AK
13884if test "x$BUILD_CMIRRORD" = xyes; then
13885
13886# Check whether --with-cmirrord-pidfile was given.
13887if test "${with_cmirrord_pidfile+set}" = set; then
71082be4 13888 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
66fd4529 13889else
71082be4 13890 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
a946372e
AK
13891fi
13892
71082be4
ZK
13893
13894cat >>confdefs.h <<_ACEOF
13895#define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
13896_ACEOF
13897
66fd4529 13898fi
a946372e 13899
66fd4529
AK
13900################################################################################
13901if [ "x$BUILD_CMIRRORD" = xyes ]; then
90c80887
AK
13902 if test x$PKGCONFIG_INIT != x1; then
13903 pkg_config_init
13904 fi
13905
13906pkg_failed=no
13907{ $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
13908$as_echo_n "checking for SACKPT... " >&6; }
13909
13910if test -n "$SACKPT_CFLAGS"; then
13911 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
13912 elif test -n "$PKG_CONFIG"; then
13913 if test -n "$PKG_CONFIG" && \
13914 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
13915 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
13916 ac_status=$?
13917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; then
13919 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
13920else
13921 pkg_failed=yes
13922fi
13923 else
13924 pkg_failed=untried
13925fi
13926if test -n "$SACKPT_LIBS"; then
13927 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
13928 elif test -n "$PKG_CONFIG"; then
13929 if test -n "$PKG_CONFIG" && \
13930 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
13931 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
13932 ac_status=$?
13933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; then
13935 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
13936else
13937 pkg_failed=yes
13938fi
13939 else
13940 pkg_failed=untried
13941fi
13942
13943
13944
13945if test $pkg_failed = yes; then
13946
13947if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13948 _pkg_short_errors_supported=yes
13949else
13950 _pkg_short_errors_supported=no
13951fi
13952 if test $_pkg_short_errors_supported = yes; then
13953 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
13954 else
13955 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
13956 fi
13957 # Put the nasty error message in config.log where it belongs
13958 echo "$SACKPT_PKG_ERRORS" >&5
13959
13960 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
13961
13962$SACKPT_PKG_ERRORS
13963
13964Consider adjusting the PKG_CONFIG_PATH environment variable if you
13965installed software in a non-standard prefix.
13966
13967Alternatively, you may set the environment variables SACKPT_CFLAGS
13968and SACKPT_LIBS to avoid the need to call pkg-config.
8c4e8a18
FDN
13969See the pkg-config man page for more details.
13970" >&5
90c80887
AK
13971$as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
13972
13973$SACKPT_PKG_ERRORS
13974
13975Consider adjusting the PKG_CONFIG_PATH environment variable if you
13976installed software in a non-standard prefix.
13977
13978Alternatively, you may set the environment variables SACKPT_CFLAGS
13979and SACKPT_LIBS to avoid the need to call pkg-config.
8c4e8a18
FDN
13980See the pkg-config man page for more details.
13981" >&2;}
90c80887
AK
13982 { (exit 1); exit 1; }; }
13983elif test $pkg_failed = untried; then
13984 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13985$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13986{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
13987is in your PATH or set the PKG_CONFIG environment variable to the full
13988path to pkg-config.
13989
13990Alternatively, you may set the environment variables SACKPT_CFLAGS
13991and SACKPT_LIBS to avoid the need to call pkg-config.
13992See the pkg-config man page for more details.
13993
13994To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13995See \`config.log' for more details." >&5
13996$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
13997is in your PATH or set the PKG_CONFIG environment variable to the full
13998path to pkg-config.
13999
14000Alternatively, you may set the environment variables SACKPT_CFLAGS
14001and SACKPT_LIBS to avoid the need to call pkg-config.
14002See the pkg-config man page for more details.
14003
14004To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14005See \`config.log' for more details." >&2;}
14006 { (exit 1); exit 1; }; }; }
14007else
14008 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
14009 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
14010 { $as_echo "$as_me:$LINENO: result: yes" >&5
14011$as_echo "yes" >&6; }
8c4e8a18 14012 :
90c80887
AK
14013fi
14014 if test x$HAVE_CPG != xyes; then
a946372e
AK
14015
14016pkg_failed=no
14017{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
14018$as_echo_n "checking for CPG... " >&6; }
14019
14020if test -n "$CPG_CFLAGS"; then
14021 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
14022 elif test -n "$PKG_CONFIG"; then
14023 if test -n "$PKG_CONFIG" && \
14024 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
14025 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
14026 ac_status=$?
14027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); }; then
14029 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
14030else
14031 pkg_failed=yes
14032fi
14033 else
14034 pkg_failed=untried
14035fi
14036if test -n "$CPG_LIBS"; then
14037 pkg_cv_CPG_LIBS="$CPG_LIBS"
14038 elif test -n "$PKG_CONFIG"; then
14039 if test -n "$PKG_CONFIG" && \
14040 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
14041 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
14042 ac_status=$?
14043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; then
14045 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
14046else
14047 pkg_failed=yes
14048fi
14049 else
14050 pkg_failed=untried
14051fi
14052
14053
14054
14055if test $pkg_failed = yes; then
14056
14057if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14058 _pkg_short_errors_supported=yes
14059else
14060 _pkg_short_errors_supported=no
14061fi
14062 if test $_pkg_short_errors_supported = yes; then
14063 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
14064 else
14065 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
14066 fi
14067 # Put the nasty error message in config.log where it belongs
14068 echo "$CPG_PKG_ERRORS" >&5
14069
90c80887
AK
14070 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
14071
14072$CPG_PKG_ERRORS
14073
14074Consider adjusting the PKG_CONFIG_PATH environment variable if you
14075installed software in a non-standard prefix.
14076
14077Alternatively, you may set the environment variables CPG_CFLAGS
14078and CPG_LIBS to avoid the need to call pkg-config.
8c4e8a18
FDN
14079See the pkg-config man page for more details.
14080" >&5
90c80887
AK
14081$as_echo "$as_me: error: Package requirements (libcpg) were not met:
14082
14083$CPG_PKG_ERRORS
14084
14085Consider adjusting the PKG_CONFIG_PATH environment variable if you
14086installed software in a non-standard prefix.
14087
14088Alternatively, you may set the environment variables CPG_CFLAGS
14089and CPG_LIBS to avoid the need to call pkg-config.
8c4e8a18
FDN
14090See the pkg-config man page for more details.
14091" >&2;}
90c80887 14092 { (exit 1); exit 1; }; }
a946372e 14093elif test $pkg_failed = untried; then
90c80887
AK
14094 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14095$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14096{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14097is in your PATH or set the PKG_CONFIG environment variable to the full
14098path to pkg-config.
14099
14100Alternatively, you may set the environment variables CPG_CFLAGS
14101and CPG_LIBS to avoid the need to call pkg-config.
14102See the pkg-config man page for more details.
14103
14104To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14105See \`config.log' for more details." >&5
14106$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14107is in your PATH or set the PKG_CONFIG environment variable to the full
14108path to pkg-config.
14109
14110Alternatively, you may set the environment variables CPG_CFLAGS
14111and CPG_LIBS to avoid the need to call pkg-config.
14112See the pkg-config man page for more details.
14113
14114To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14115See \`config.log' for more details." >&2;}
14116 { (exit 1); exit 1; }; }; }
a946372e
AK
14117else
14118 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
14119 CPG_LIBS=$pkg_cv_CPG_LIBS
14120 { $as_echo "$as_me:$LINENO: result: yes" >&5
14121$as_echo "yes" >&6; }
8c4e8a18 14122 :
a946372e 14123fi
90c80887 14124 fi
a946372e
AK
14125fi
14126
14127################################################################################
14128{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
14129$as_echo_n "checking whether to enable debugging... " >&6; }
14130# Check whether --enable-debug was given.
14131if test "${enable_debug+set}" = set; then
14132 enableval=$enable_debug; DEBUG=$enableval
14133else
14134 DEBUG=no
14135fi
14136
14137{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
14138$as_echo "$DEBUG" >&6; }
14139
14140if test x$DEBUG = xyes; then
14141 COPTIMISE_FLAG=
14142else
14143 CSCOPE_CMD=
14144fi
14145
14146################################################################################
14147{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
14148$as_echo_n "checking for C optimisation flag... " >&6; }
14149
14150# Check whether --with-optimisation was given.
14151if test "${with_optimisation+set}" = set; then
71082be4 14152 withval=$with_optimisation; COPTIMISE_FLAG=$withval
a946372e
AK
14153fi
14154
14155{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
14156$as_echo "$COPTIMISE_FLAG" >&6; }
14157
14158################################################################################
14159{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
14160$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
14161# Check whether --enable-profiling was given.
14162if test "${enable_profiling+set}" = set; then
5556819a 14163 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 14164else
5556819a 14165 PROFILING=no
fddafd51
ZK
14166fi
14167
ec6a6fbe
AK
14168{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
14169$as_echo "$PROFILING" >&6; }
5556819a
AK
14170
14171if test "x$PROFILING" = xyes; then
14172 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
14173 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 14174set dummy lcov; ac_word=$2
ec6a6fbe
AK
14175{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14176$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 14177if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 14178 $as_echo_n "(cached) " >&6
fddafd51
ZK
14179else
14180 case $LCOV in
14181 [\\/]* | ?:[\\/]*)
14182 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
14183 ;;
14184 *)
14185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14186for as_dir in $PATH
14187do
14188 IFS=$as_save_IFS
14189 test -z "$as_dir" && as_dir=.
14190 for ac_exec_ext in '' $ac_executable_extensions; do
14191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14192 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 14193 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
14194 break 2
14195 fi
14196done
14197done
14198IFS=$as_save_IFS
14199
14200 ;;
14201esac
14202fi
14203LCOV=$ac_cv_path_LCOV
14204if test -n "$LCOV"; then
ec6a6fbe
AK
14205 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
14206$as_echo "$LCOV" >&6; }
fddafd51 14207else
ec6a6fbe
AK
14208 { $as_echo "$as_me:$LINENO: result: no" >&5
14209$as_echo "no" >&6; }
fddafd51
ZK
14210fi
14211
14212
5556819a 14213 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 14214set dummy genhtml; ac_word=$2
ec6a6fbe
AK
14215{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14216$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 14217if test "${ac_cv_path_GENHTML+set}" = set; then
ec6a6fbe 14218 $as_echo_n "(cached) " >&6
fddafd51
ZK
14219else
14220 case $GENHTML in
14221 [\\/]* | ?:[\\/]*)
14222 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
14223 ;;
14224 *)
14225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14226for as_dir in $PATH
14227do
14228 IFS=$as_save_IFS
14229 test -z "$as_dir" && as_dir=.
14230 for ac_exec_ext in '' $ac_executable_extensions; do
14231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14232 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 14233 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
14234 break 2
14235 fi
14236done
14237done
14238IFS=$as_save_IFS
14239
14240 ;;
14241esac
14242fi
14243GENHTML=$ac_cv_path_GENHTML
14244if test -n "$GENHTML"; then
ec6a6fbe
AK
14245 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
14246$as_echo "$GENHTML" >&6; }
fddafd51 14247else
ec6a6fbe
AK
14248 { $as_echo "$as_me:$LINENO: result: no" >&5
14249$as_echo "no" >&6; }
fddafd51
ZK
14250fi
14251
14252
fd4728e1 14253 if test -z "$LCOV" -o -z "$GENHTML"; then
ec6a6fbe
AK
14254 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
14255$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
14256 { (exit 1); exit 1; }; }
14257 fi
fd4728e1
ZK
14258 # Extract the first word of "genpng", so it can be a program name with args.
14259set dummy genpng; ac_word=$2
14260{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14261$as_echo_n "checking for $ac_word... " >&6; }
14262if test "${ac_cv_path_GENPNG+set}" = set; then
14263 $as_echo_n "(cached) " >&6
14264else
14265 case $GENPNG in
14266 [\\/]* | ?:[\\/]*)
14267 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
14268 ;;
14269 *)
14270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14271for as_dir in $PATH
14272do
14273 IFS=$as_save_IFS
14274 test -z "$as_dir" && as_dir=.
14275 for ac_exec_ext in '' $ac_executable_extensions; do
14276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14277 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
14278 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14279 break 2
14280 fi
14281done
14282done
14283IFS=$as_save_IFS
14284
14285 ;;
14286esac
14287fi
14288GENPNG=$ac_cv_path_GENPNG
14289if test -n "$GENPNG"; then
14290 { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5
14291$as_echo "$GENPNG" >&6; }
14292else
14293 { $as_echo "$as_me:$LINENO: result: no" >&5
14294$as_echo "no" >&6; }
14295fi
14296
14297
14298 if test -n "$GENPNG"; then
14299 { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5
14300$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
14301 if $GENPNG --help > /dev/null 2>&1 ; then
14302 { $as_echo "$as_me:$LINENO: result: ok" >&5
14303$as_echo "ok" >&6; }
14304 GENHTML="$GENHTML --frames"
14305 else
14306 { $as_echo "$as_me:$LINENO: result: not supported" >&5
14307$as_echo "not supported" >&6; }
14308 { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5
14309$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
14310 GENPNG=
14311 fi
14312 fi
5556819a 14313fi
d0191583 14314
54b362f9
AK
14315################################################################################
14316{ $as_echo "$as_me:$LINENO: checking whether to enable unit testing" >&5
14317$as_echo_n "checking whether to enable unit testing... " >&6; }
14318# Check whether --enable-testing was given.
14319if test "${enable_testing+set}" = set; then
14320 enableval=$enable_testing; TESTING=$enableval
14321else
14322 TESTING=no
14323fi
14324
14325{ $as_echo "$as_me:$LINENO: result: $TESTING" >&5
14326$as_echo "$TESTING" >&6; }
14327
14328if test "$TESTING" = yes; then
14329 # Extract the first word of "ruby1.9", so it can be a program name with args.
14330set dummy ruby1.9; ac_word=$2
14331{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14332$as_echo_n "checking for $ac_word... " >&6; }
14333if test "${ac_cv_path_RUBY19+set}" = set; then
14334 $as_echo_n "(cached) " >&6
14335else
14336 case $RUBY19 in
14337 [\\/]* | ?:[\\/]*)
14338 ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path.
14339 ;;
14340 *)
14341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14342for as_dir in $PATH
14343do
14344 IFS=$as_save_IFS
14345 test -z "$as_dir" && as_dir=.
14346 for ac_exec_ext in '' $ac_executable_extensions; do
14347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14348 ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext"
14349 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14350 break 2
14351 fi
14352done
14353done
14354IFS=$as_save_IFS
14355
14356 ;;
14357esac
14358fi
14359RUBY19=$ac_cv_path_RUBY19
14360if test -n "$RUBY19"; then
14361 { $as_echo "$as_me:$LINENO: result: $RUBY19" >&5
14362$as_echo "$RUBY19" >&6; }
14363else
14364 { $as_echo "$as_me:$LINENO: result: no" >&5
14365$as_echo "no" >&6; }
14366fi
14367
14368
14369 # Extract the first word of "valgrind", so it can be a program name with args.
14370set dummy valgrind; ac_word=$2
14371{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14372$as_echo_n "checking for $ac_word... " >&6; }
14373if test "${ac_cv_path_VALGRIND+set}" = set; then
14374 $as_echo_n "(cached) " >&6
14375else
14376 case $VALGRIND in
14377 [\\/]* | ?:[\\/]*)
14378 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
14379 ;;
14380 *)
14381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14382for as_dir in $PATH
14383do
14384 IFS=$as_save_IFS
14385 test -z "$as_dir" && as_dir=.
14386 for ac_exec_ext in '' $ac_executable_extensions; do
14387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14388 ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
14389 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14390 break 2
14391 fi
14392done
14393done
14394IFS=$as_save_IFS
14395
14396 ;;
14397esac
14398fi
14399VALGRIND=$ac_cv_path_VALGRIND
14400if test -n "$VALGRIND"; then
14401 { $as_echo "$as_me:$LINENO: result: $VALGRIND" >&5
14402$as_echo "$VALGRIND" >&6; }
14403else
14404 { $as_echo "$as_me:$LINENO: result: no" >&5
14405$as_echo "no" >&6; }
14406fi
14407
14408
14409 if test -z "$RUBY19" -o -z "$VALGRIND"; then
14410 { { $as_echo "$as_me:$LINENO: error: ruby1.9 and valgrind are required for testing" >&5
14411$as_echo "$as_me: error: ruby1.9 and valgrind are required for testing" >&2;}
14412 { (exit 1); exit 1; }; }
14413 fi
14414fi
14415
d1e8046f
AK
14416################################################################################
14417{ $as_echo "$as_me:$LINENO: checking whether to enable valgrind awareness of pools" >&5
14418$as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
14419# Check whether --enable-valgrind_pool was given.
14420if test "${enable_valgrind_pool+set}" = set; then
14421 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
14422else
14423 VALGRIND_POOL=no
14424fi
14425
14426{ $as_echo "$as_me:$LINENO: result: $VALGRIND_POOL" >&5
14427$as_echo "$VALGRIND_POOL" >&6; }
14428
14429if test "$VALGRIND_POOL" = yes; then
14430
14431for ac_header in valgrind/memcheck.h
14432do
14433as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14434if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14435 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14436$as_echo_n "checking for $ac_header... " >&6; }
14437if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14438 $as_echo_n "(cached) " >&6
14439fi
14440ac_res=`eval 'as_val=${'$as_ac_Header'}
14441 $as_echo "$as_val"'`
14442 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14443$as_echo "$ac_res" >&6; }
14444else
14445 # Is the header compilable?
14446{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14447$as_echo_n "checking $ac_header usability... " >&6; }
14448cat >conftest.$ac_ext <<_ACEOF
14449/* confdefs.h. */
14450_ACEOF
14451cat confdefs.h >>conftest.$ac_ext
14452cat >>conftest.$ac_ext <<_ACEOF
14453/* end confdefs.h. */
14454$ac_includes_default
14455#include <$ac_header>
14456_ACEOF
14457rm -f conftest.$ac_objext
14458if { (ac_try="$ac_compile"
14459case "(($ac_try" in
14460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14461 *) ac_try_echo=$ac_try;;
14462esac
14463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14464$as_echo "$ac_try_echo") >&5
14465 (eval "$ac_compile") 2>conftest.er1
14466 ac_status=$?
14467 grep -v '^ *+' conftest.er1 >conftest.err
14468 rm -f conftest.er1
14469 cat conftest.err >&5
14470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); } && {
14472 test -z "$ac_c_werror_flag" ||
14473 test ! -s conftest.err
14474 } && test -s conftest.$ac_objext; then
14475 ac_header_compiler=yes
14476else
14477 $as_echo "$as_me: failed program was:" >&5
14478sed 's/^/| /' conftest.$ac_ext >&5
14479
14480 ac_header_compiler=no
14481fi
14482
14483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14484{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14485$as_echo "$ac_header_compiler" >&6; }
14486
14487# Is the header present?
14488{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14489$as_echo_n "checking $ac_header presence... " >&6; }
14490cat >conftest.$ac_ext <<_ACEOF
14491/* confdefs.h. */
14492_ACEOF
14493cat confdefs.h >>conftest.$ac_ext
14494cat >>conftest.$ac_ext <<_ACEOF
14495/* end confdefs.h. */
14496#include <$ac_header>
14497_ACEOF
14498if { (ac_try="$ac_cpp conftest.$ac_ext"
14499case "(($ac_try" in
14500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14501 *) ac_try_echo=$ac_try;;
14502esac
14503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14504$as_echo "$ac_try_echo") >&5
14505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14506 ac_status=$?
14507 grep -v '^ *+' conftest.er1 >conftest.err
14508 rm -f conftest.er1
14509 cat conftest.err >&5
14510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); } >/dev/null && {
14512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14513 test ! -s conftest.err
14514 }; then
14515 ac_header_preproc=yes
14516else
14517 $as_echo "$as_me: failed program was:" >&5
14518sed 's/^/| /' conftest.$ac_ext >&5
14519
14520 ac_header_preproc=no
14521fi
14522
14523rm -f conftest.err conftest.$ac_ext
14524{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14525$as_echo "$ac_header_preproc" >&6; }
14526
14527# So? What about this header?
14528case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14529 yes:no: )
14530 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14531$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14532 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14533$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14534 ac_header_preproc=yes
14535 ;;
14536 no:yes:* )
14537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14538$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14540$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14542$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14544$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14545 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14546$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14548$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14549
14550 ;;
14551esac
14552{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14553$as_echo_n "checking for $ac_header... " >&6; }
14554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14555 $as_echo_n "(cached) " >&6
14556else
14557 eval "$as_ac_Header=\$ac_header_preproc"
14558fi
14559ac_res=`eval 'as_val=${'$as_ac_Header'}
14560 $as_echo "$as_val"'`
14561 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14562$as_echo "$ac_res" >&6; }
14563
14564fi
14565as_val=`eval 'as_val=${'$as_ac_Header'}
14566 $as_echo "$as_val"'`
14567 if test "x$as_val" = x""yes; then
14568 cat >>confdefs.h <<_ACEOF
14569#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14570_ACEOF
14571
14572else
14573 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14574$as_echo "$as_me: error: bailing out" >&2;}
14575 { (exit 1); exit 1; }; }
14576fi
14577
14578done
14579
14580
14581cat >>confdefs.h <<\_ACEOF
14582#define VALGRIND_POOL 1
14583_ACEOF
14584
14585fi
14586
d0191583 14587################################################################################
ec6a6fbe
AK
14588{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
14589$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
14590# Check whether --enable-devmapper was given.
14591if test "${enable_devmapper+set}" = set; then
14592 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
14593fi
14594
ec6a6fbe
AK
14595{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
14596$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
14597
14598if test x$DEVMAPPER = xyes; then
ad6254c5
AK
14599
14600cat >>confdefs.h <<\_ACEOF
d0191583 14601#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
14602_ACEOF
14603
14604fi
14605
a5f46f6a
AK
14606################################################################################
14607{ $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
14608$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
14609# Check whether --enable-udev_sync was given.
14610if test "${enable_udev_sync+set}" = set; then
14611 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
14612else
14613 UDEV_SYNC=no
14614fi
14615
14616{ $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
14617$as_echo "$UDEV_SYNC" >&6; }
14618
90c80887
AK
14619if test x$UDEV_SYNC = xyes; then
14620 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
14621$as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
14622if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
14623 $as_echo_n "(cached) " >&6
14624else
14625 ac_check_lib_save_LIBS=$LIBS
14626LIBS="-ludev $LIBS"
14627cat >conftest.$ac_ext <<_ACEOF
14628/* confdefs.h. */
14629_ACEOF
14630cat confdefs.h >>conftest.$ac_ext
14631cat >>conftest.$ac_ext <<_ACEOF
14632/* end confdefs.h. */
14633
14634/* Override any GCC internal prototype to avoid an error.
14635 Use char because int might match the return type of a GCC
14636 builtin and then its argument prototype would still apply. */
14637#ifdef __cplusplus
14638extern "C"
14639#endif
14640char udev_queue_get_udev_is_active ();
14641int
14642main ()
14643{
14644return udev_queue_get_udev_is_active ();
14645 ;
14646 return 0;
14647}
14648_ACEOF
14649rm -f conftest.$ac_objext conftest$ac_exeext
14650if { (ac_try="$ac_link"
14651case "(($ac_try" in
14652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14653 *) ac_try_echo=$ac_try;;
14654esac
14655eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14656$as_echo "$ac_try_echo") >&5
14657 (eval "$ac_link") 2>conftest.er1
14658 ac_status=$?
14659 grep -v '^ *+' conftest.er1 >conftest.err
14660 rm -f conftest.er1
14661 cat conftest.err >&5
14662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); } && {
14664 test -z "$ac_c_werror_flag" ||
14665 test ! -s conftest.err
14666 } && test -s conftest$ac_exeext && {
14667 test "$cross_compiling" = yes ||
14668 $as_test_x conftest$ac_exeext
14669 }; then
14670 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
14671else
14672 $as_echo "$as_me: failed program was:" >&5
14673sed 's/^/| /' conftest.$ac_ext >&5
14674
14675 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
14676fi
14677
14678rm -rf conftest.dSYM
14679rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14680 conftest$ac_exeext conftest.$ac_ext
14681LIBS=$ac_check_lib_save_LIBS
14682fi
14683{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
14684$as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
14685if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
f7f0854e 14686 UDEV_PC="libudev"; UDEV_LIBS="-ludev"
90c80887 14687else
5161ecb9
PR
14688 { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5
14689$as_echo "$as_me: error: bailing out... libudev library is required" >&2;}
14690 { (exit 1); exit 1; }; }
90c80887
AK
14691fi
14692
14693
90c80887 14694cat >>confdefs.h <<\_ACEOF
5161ecb9 14695#define UDEV_SYNC_SUPPORT 1
90c80887
AK
14696_ACEOF
14697
90c80887
AK
14698fi
14699
5161ecb9
PR
14700{ $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
14701$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
14702# Check whether --enable-udev_rules was given.
14703if test "${enable_udev_rules+set}" = set; then
14704 enableval=$enable_udev_rules; UDEV_RULES=$enableval
14705else
14706 UDEV_RULES=$UDEV_SYNC
14707fi
14708
14709{ $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
14710$as_echo "$UDEV_RULES" >&6; }
14711
93bd259b
AK
14712################################################################################
14713# Check whether --enable-compat was given.
14714if test "${enable_compat+set}" = set; then
14715 enableval=$enable_compat; DM_COMPAT=$enableval
14716else
14717 DM_COMPAT=no
14718fi
14719
14720
95eaa683
AK
14721################################################################################
14722# Check whether --enable-units-compat was given.
14723if test "${enable_units_compat+set}" = set; then
14724 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
14725else
14726 UNITS_COMPAT=no
14727fi
14728
14729
14730if test x$UNITS_COMPAT = xyes; then
14731
14732cat >>confdefs.h <<\_ACEOF
14733#define DEFAULT_SI_UNIT_CONSISTENCY 0
14734_ACEOF
14735
14736fi
14737
93bd259b
AK
14738################################################################################
14739# Check whether --enable-ioctl was given.
14740if test "${enable_ioctl+set}" = set; then
14741 enableval=$enable_ioctl; DM_IOCTLS=$enableval
14742fi
14743
14744
d0191583 14745################################################################################
ec6a6fbe
AK
14746{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
14747$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
14748# Check whether --enable-o_direct was given.
14749if test "${enable_o_direct+set}" = set; then
14750 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 14751fi
ad6254c5 14752
ec6a6fbe
AK
14753{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
14754$as_echo "$ODIRECT" >&6; }
ad6254c5 14755
d0191583 14756if test x$ODIRECT = xyes; then
ad6254c5 14757
d0191583
JM
14758cat >>confdefs.h <<\_ACEOF
14759#define O_DIRECT_SUPPORT 1
14760_ACEOF
ad6254c5 14761
d0191583 14762fi
ad6254c5 14763
572fefeb
AK
14764################################################################################
14765{ $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
14766$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
14767# Check whether --enable-applib was given.
14768if test "${enable_applib+set}" = set; then
14769 enableval=$enable_applib; APPLIB=$enableval
14770else
14771 APPLIB=no
14772fi
14773
14774{ $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
14775$as_echo "$APPLIB" >&6; }
14776
14777test x$APPLIB = xyes \
14778 && LVM2APP_LIB=-llvm2app \
14779 || LVM2APP_LIB=
14780
d0191583 14781################################################################################
ec6a6fbe
AK
14782{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
14783$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
14784# Check whether --enable-cmdlib was given.
14785if test "${enable_cmdlib+set}" = set; then
14786 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 14787else
d0191583
JM
14788 CMDLIB=no
14789fi
8a2fc586 14790
ec6a6fbe
AK
14791{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
14792$as_echo "$CMDLIB" >&6; }
8a2fc586 14793
2a9a80c9 14794test x$CMDLIB = xyes \
d179cc7a
JM
14795 && LVM2CMD_LIB=-llvm2cmd \
14796 || LVM2CMD_LIB=
14797
93bd259b
AK
14798################################################################################
14799# Check whether --enable-pkgconfig was given.
14800if test "${enable_pkgconfig+set}" = set; then
14801 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
14802else
14803 PKGCONFIG=no
14804fi
14805
2a9a80c9 14806
23b059e7
ZK
14807################################################################################
14808# Check whether --enable-write_install was given.
14809if test "${enable_write_install+set}" = set; then
14810 enableval=$enable_write_install; WRITE_INSTALL=$enableval
14811else
14812 WRITE_INSTALL=no
14813fi
14814
14815
d0191583 14816################################################################################
ec6a6fbe
AK
14817{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
14818$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
14819# Check whether --enable-fsadm was given.
14820if test "${enable_fsadm+set}" = set; then
14821 enableval=$enable_fsadm; FSADM=$enableval
14822fi
8a2fc586 14823
ec6a6fbe
AK
14824{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
14825$as_echo "$FSADM" >&6; }
8a2fc586 14826
d0191583 14827################################################################################
ec6a6fbe
AK
14828{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
14829$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
14830# Check whether --enable-dmeventd was given.
14831if test "${enable_dmeventd+set}" = set; then
14832 enableval=$enable_dmeventd; DMEVENTD=$enableval
14833fi
ad6254c5 14834
ec6a6fbe
AK
14835{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
14836$as_echo "$DMEVENTD" >&6; }
ad6254c5 14837
93bd259b
AK
14838BUILD_DMEVENTD=$DMEVENTD
14839
2a9a80c9
PR
14840if test x$DMEVENTD = xyes; then
14841 if test x$MIRRORS != xinternal; then
ec6a6fbe 14842 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 14843 " >&5
ec6a6fbe 14844$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 14845 " >&2;}
d0191583 14846 { (exit 1); exit 1; }; }
2a9a80c9
PR
14847 fi
14848 if test x$CMDLIB = xno; then
ec6a6fbe 14849 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 14850 " >&5
ec6a6fbe 14851$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
14852 " >&2;}
14853 { (exit 1); exit 1; }; }
14854 fi
ad6254c5 14855fi
7a197a62 14856
d0191583
JM
14857if test x$DMEVENTD = xyes; then
14858
14859cat >>confdefs.h <<\_ACEOF
14860#define DMEVENTD 1
ad6254c5
AK
14861_ACEOF
14862
ad6254c5 14863fi
93bd259b
AK
14864
14865################################################################################
14866
ec6a6fbe
AK
14867{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
14868$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 14869if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 14870 $as_echo_n "(cached) " >&6
93bd259b
AK
14871else
14872 ac_check_lib_save_LIBS=$LIBS
14873LIBS="-lc $LIBS"
14874cat >conftest.$ac_ext <<_ACEOF
14875/* confdefs.h. */
14876_ACEOF
14877cat confdefs.h >>conftest.$ac_ext
14878cat >>conftest.$ac_ext <<_ACEOF
14879/* end confdefs.h. */
14880
14881/* Override any GCC internal prototype to avoid an error.
14882 Use char because int might match the return type of a GCC
14883 builtin and then its argument prototype would still apply. */
14884#ifdef __cplusplus
14885extern "C"
14886#endif
14887char getline ();
14888int
14889main ()
14890{
14891return getline ();
14892 ;
14893 return 0;
14894}
14895_ACEOF
14896rm -f conftest.$ac_objext conftest$ac_exeext
14897if { (ac_try="$ac_link"
14898case "(($ac_try" in
14899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14900 *) ac_try_echo=$ac_try;;
14901esac
ec6a6fbe
AK
14902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14903$as_echo "$ac_try_echo") >&5
93bd259b
AK
14904 (eval "$ac_link") 2>conftest.er1
14905 ac_status=$?
14906 grep -v '^ *+' conftest.er1 >conftest.err
14907 rm -f conftest.er1
14908 cat conftest.err >&5
ec6a6fbe 14909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
14910 (exit $ac_status); } && {
14911 test -z "$ac_c_werror_flag" ||
14912 test ! -s conftest.err
ec6a6fbe
AK
14913 } && test -s conftest$ac_exeext && {
14914 test "$cross_compiling" = yes ||
14915 $as_test_x conftest$ac_exeext
14916 }; then
93bd259b
AK
14917 ac_cv_lib_c_getline=yes
14918else
ec6a6fbe 14919 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
14920sed 's/^/| /' conftest.$ac_ext >&5
14921
14922 ac_cv_lib_c_getline=no
14923fi
14924
ec6a6fbe 14925rm -rf conftest.dSYM
93bd259b
AK
14926rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14927 conftest$ac_exeext conftest.$ac_ext
14928LIBS=$ac_check_lib_save_LIBS
14929fi
ec6a6fbe
AK
14930{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
14931$as_echo "$ac_cv_lib_c_getline" >&6; }
14932if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
14933
14934cat >>confdefs.h <<\_ACEOF
14935#define HAVE_GETLINE 1
14936_ACEOF
14937
14938fi
14939
14940
14941################################################################################
14942
ec6a6fbe
AK
14943{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
14944$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 14945if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 14946 $as_echo_n "(cached) " >&6
93bd259b
AK
14947else
14948 ac_check_lib_save_LIBS=$LIBS
14949LIBS="-lc $LIBS"
14950cat >conftest.$ac_ext <<_ACEOF
14951/* confdefs.h. */
14952_ACEOF
14953cat confdefs.h >>conftest.$ac_ext
14954cat >>conftest.$ac_ext <<_ACEOF
14955/* end confdefs.h. */
14956
14957/* Override any GCC internal prototype to avoid an error.
14958 Use char because int might match the return type of a GCC
14959 builtin and then its argument prototype would still apply. */
14960#ifdef __cplusplus
14961extern "C"
14962#endif
14963char canonicalize_file_name ();
14964int
14965main ()
14966{
14967return canonicalize_file_name ();
14968 ;
14969 return 0;
14970}
14971_ACEOF
14972rm -f conftest.$ac_objext conftest$ac_exeext
14973if { (ac_try="$ac_link"
14974case "(($ac_try" in
14975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14976 *) ac_try_echo=$ac_try;;
14977esac
ec6a6fbe
AK
14978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14979$as_echo "$ac_try_echo") >&5
93bd259b
AK
14980 (eval "$ac_link") 2>conftest.er1
14981 ac_status=$?
14982 grep -v '^ *+' conftest.er1 >conftest.err
14983 rm -f conftest.er1
14984 cat conftest.err >&5
ec6a6fbe 14985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
14986 (exit $ac_status); } && {
14987 test -z "$ac_c_werror_flag" ||
14988 test ! -s conftest.err
ec6a6fbe
AK
14989 } && test -s conftest$ac_exeext && {
14990 test "$cross_compiling" = yes ||
14991 $as_test_x conftest$ac_exeext
14992 }; then
93bd259b
AK
14993 ac_cv_lib_c_canonicalize_file_name=yes
14994else
ec6a6fbe 14995 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
14996sed 's/^/| /' conftest.$ac_ext >&5
14997
14998 ac_cv_lib_c_canonicalize_file_name=no
14999fi
15000
ec6a6fbe 15001rm -rf conftest.dSYM
93bd259b
AK
15002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15003 conftest$ac_exeext conftest.$ac_ext
15004LIBS=$ac_check_lib_save_LIBS
15005fi
ec6a6fbe
AK
15006{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
15007$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
15008if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
15009
15010cat >>confdefs.h <<\_ACEOF
15011#define HAVE_CANONICALIZE_FILE_NAME 1
15012_ACEOF
15013
15014fi
15015
15016
d0191583
JM
15017################################################################################
15018if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
15019 then exec_prefix="";
15020fi;
ad6254c5 15021
ad6254c5 15022################################################################################
ec6a6fbe
AK
15023{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15024$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 15025if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 15026 $as_echo_n "(cached) " >&6
ad6254c5
AK
15027else
15028 ac_check_lib_save_LIBS=$LIBS
15029LIBS="-ldl $LIBS"
15030cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15031/* confdefs.h. */
15032_ACEOF
15033cat confdefs.h >>conftest.$ac_ext
15034cat >>conftest.$ac_ext <<_ACEOF
15035/* end confdefs.h. */
15036
7a197a62
AK
15037/* Override any GCC internal prototype to avoid an error.
15038 Use char because int might match the return type of a GCC
15039 builtin and then its argument prototype would still apply. */
ad6254c5
AK
15040#ifdef __cplusplus
15041extern "C"
15042#endif
ad6254c5
AK
15043char dlopen ();
15044int
15045main ()
15046{
7a197a62 15047return dlopen ();
ad6254c5
AK
15048 ;
15049 return 0;
15050}
15051_ACEOF
15052rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15053if { (ac_try="$ac_link"
15054case "(($ac_try" in
15055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15056 *) ac_try_echo=$ac_try;;
15057esac
ec6a6fbe
AK
15058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15059$as_echo "$ac_try_echo") >&5
7a197a62 15060 (eval "$ac_link") 2>conftest.er1
ad6254c5 15061 ac_status=$?
8a2fc586
AK
15062 grep -v '^ *+' conftest.er1 >conftest.err
15063 rm -f conftest.er1
15064 cat conftest.err >&5
ec6a6fbe 15065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15066 (exit $ac_status); } && {
15067 test -z "$ac_c_werror_flag" ||
15068 test ! -s conftest.err
ec6a6fbe
AK
15069 } && test -s conftest$ac_exeext && {
15070 test "$cross_compiling" = yes ||
15071 $as_test_x conftest$ac_exeext
15072 }; then
ad6254c5
AK
15073 ac_cv_lib_dl_dlopen=yes
15074else
ec6a6fbe 15075 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15076sed 's/^/| /' conftest.$ac_ext >&5
15077
7a197a62 15078 ac_cv_lib_dl_dlopen=no
ad6254c5 15079fi
7a197a62 15080
ec6a6fbe 15081rm -rf conftest.dSYM
25fbec5b 15082rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 15083 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
15084LIBS=$ac_check_lib_save_LIBS
15085fi
ec6a6fbe
AK
15086{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15087$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15088if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5 15089
72b2cb61
AK
15090
15091cat >>confdefs.h <<\_ACEOF
15092#define HAVE_LIBDL 1
15093_ACEOF
15094
19a2c6e0
ZK
15095 DL_LIBS="-ldl"
15096 HAVE_LIBDL=yes
ad6254c5 15097else
19a2c6e0
ZK
15098
15099 DL_LIBS=
ad6254c5
AK
15100 HAVE_LIBDL=no
15101fi
15102
19a2c6e0 15103
ad6254c5
AK
15104################################################################################
15105if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
15106 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
15107 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 15108 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 15109" >&5
ec6a6fbe 15110$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
15111" >&2;}
15112 { (exit 1); exit 1; }; }
15113fi
15114
f30875db
ZK
15115################################################################################
15116if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
15117 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
15118$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
15119if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
15120 $as_echo_n "(cached) " >&6
15121else
15122 ac_check_lib_save_LIBS=$LIBS
15123LIBS="-lpthread $LIBS"
15124cat >conftest.$ac_ext <<_ACEOF
15125/* confdefs.h. */
15126_ACEOF
15127cat confdefs.h >>conftest.$ac_ext
15128cat >>conftest.$ac_ext <<_ACEOF
15129/* end confdefs.h. */
15130
15131/* Override any GCC internal prototype to avoid an error.
15132 Use char because int might match the return type of a GCC
15133 builtin and then its argument prototype would still apply. */
15134#ifdef __cplusplus
15135extern "C"
15136#endif
15137char pthread_mutex_lock ();
15138int
15139main ()
15140{
15141return pthread_mutex_lock ();
15142 ;
15143 return 0;
15144}
15145_ACEOF
15146rm -f conftest.$ac_objext conftest$ac_exeext
15147if { (ac_try="$ac_link"
15148case "(($ac_try" in
15149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15150 *) ac_try_echo=$ac_try;;
15151esac
15152eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15153$as_echo "$ac_try_echo") >&5
15154 (eval "$ac_link") 2>conftest.er1
15155 ac_status=$?
15156 grep -v '^ *+' conftest.er1 >conftest.err
15157 rm -f conftest.er1
15158 cat conftest.err >&5
15159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); } && {
15161 test -z "$ac_c_werror_flag" ||
15162 test ! -s conftest.err
15163 } && test -s conftest$ac_exeext && {
15164 test "$cross_compiling" = yes ||
15165 $as_test_x conftest$ac_exeext
15166 }; then
15167 ac_cv_lib_pthread_pthread_mutex_lock=yes
15168else
15169 $as_echo "$as_me: failed program was:" >&5
15170sed 's/^/| /' conftest.$ac_ext >&5
15171
15172 ac_cv_lib_pthread_pthread_mutex_lock=no
15173fi
15174
15175rm -rf conftest.dSYM
15176rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15177 conftest$ac_exeext conftest.$ac_ext
15178LIBS=$ac_check_lib_save_LIBS
15179fi
15180{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
15181$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
15182if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
15183 PTHREAD_LIBS="-lpthread"
15184else
15185 hard_bailout
15186fi
15187
15188fi
15189
d0191583 15190################################################################################
ec6a6fbe
AK
15191{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
15192$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
15193# Check whether --enable-selinux was given.
15194if test "${enable_selinux+set}" = set; then
15195 enableval=$enable_selinux; SELINUX=$enableval
15196fi
15197
ec6a6fbe
AK
15198{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
15199$as_echo "$SELINUX" >&6; }
d0191583 15200
ad6254c5
AK
15201################################################################################
15202if test x$SELINUX = xyes; then
ec6a6fbe
AK
15203 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
15204$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 15205if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 15206 $as_echo_n "(cached) " >&6
8a2fc586
AK
15207else
15208 ac_check_lib_save_LIBS=$LIBS
15209LIBS="-lsepol $LIBS"
15210cat >conftest.$ac_ext <<_ACEOF
15211/* confdefs.h. */
15212_ACEOF
15213cat confdefs.h >>conftest.$ac_ext
15214cat >>conftest.$ac_ext <<_ACEOF
15215/* end confdefs.h. */
15216
7a197a62
AK
15217/* Override any GCC internal prototype to avoid an error.
15218 Use char because int might match the return type of a GCC
15219 builtin and then its argument prototype would still apply. */
8a2fc586
AK
15220#ifdef __cplusplus
15221extern "C"
15222#endif
8a2fc586
AK
15223char sepol_check_context ();
15224int
15225main ()
15226{
7a197a62 15227return sepol_check_context ();
8a2fc586
AK
15228 ;
15229 return 0;
15230}
15231_ACEOF
15232rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15233if { (ac_try="$ac_link"
15234case "(($ac_try" in
15235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15236 *) ac_try_echo=$ac_try;;
15237esac
ec6a6fbe
AK
15238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15239$as_echo "$ac_try_echo") >&5
7a197a62 15240 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
15241 ac_status=$?
15242 grep -v '^ *+' conftest.er1 >conftest.err
15243 rm -f conftest.er1
15244 cat conftest.err >&5
ec6a6fbe 15245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15246 (exit $ac_status); } && {
15247 test -z "$ac_c_werror_flag" ||
15248 test ! -s conftest.err
ec6a6fbe
AK
15249 } && test -s conftest$ac_exeext && {
15250 test "$cross_compiling" = yes ||
15251 $as_test_x conftest$ac_exeext
15252 }; then
8a2fc586
AK
15253 ac_cv_lib_sepol_sepol_check_context=yes
15254else
ec6a6fbe 15255 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
15256sed 's/^/| /' conftest.$ac_ext >&5
15257
7a197a62 15258 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 15259fi
7a197a62 15260
ec6a6fbe 15261rm -rf conftest.dSYM
25fbec5b 15262rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
15263 conftest$ac_exeext conftest.$ac_ext
15264LIBS=$ac_check_lib_save_LIBS
15265fi
ec6a6fbe
AK
15266{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
15267$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
15268if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586 15269
d0191583
JM
15270
15271cat >>confdefs.h <<\_ACEOF
15272#define HAVE_SEPOL 1
15273_ACEOF
15274
f8f6ec92
ZK
15275 SELINUX_LIBS="-lsepol"
15276fi
15277
8a2fc586 15278
ec6a6fbe
AK
15279 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
15280$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 15281if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 15282 $as_echo_n "(cached) " >&6
ad6254c5
AK
15283else
15284 ac_check_lib_save_LIBS=$LIBS
15285LIBS="-lselinux $LIBS"
15286cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15287/* confdefs.h. */
15288_ACEOF
15289cat confdefs.h >>conftest.$ac_ext
15290cat >>conftest.$ac_ext <<_ACEOF
15291/* end confdefs.h. */
15292
7a197a62
AK
15293/* Override any GCC internal prototype to avoid an error.
15294 Use char because int might match the return type of a GCC
15295 builtin and then its argument prototype would still apply. */
ad6254c5
AK
15296#ifdef __cplusplus
15297extern "C"
15298#endif
ad6254c5
AK
15299char is_selinux_enabled ();
15300int
15301main ()
15302{
7a197a62 15303return is_selinux_enabled ();
ad6254c5
AK
15304 ;
15305 return 0;
15306}
15307_ACEOF
15308rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15309if { (ac_try="$ac_link"
15310case "(($ac_try" in
15311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312 *) ac_try_echo=$ac_try;;
15313esac
ec6a6fbe
AK
15314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15315$as_echo "$ac_try_echo") >&5
7a197a62 15316 (eval "$ac_link") 2>conftest.er1
ad6254c5 15317 ac_status=$?
8a2fc586
AK
15318 grep -v '^ *+' conftest.er1 >conftest.err
15319 rm -f conftest.er1
15320 cat conftest.err >&5
ec6a6fbe 15321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15322 (exit $ac_status); } && {
15323 test -z "$ac_c_werror_flag" ||
15324 test ! -s conftest.err
ec6a6fbe
AK
15325 } && test -s conftest$ac_exeext && {
15326 test "$cross_compiling" = yes ||
15327 $as_test_x conftest$ac_exeext
15328 }; then
ad6254c5
AK
15329 ac_cv_lib_selinux_is_selinux_enabled=yes
15330else
ec6a6fbe 15331 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15332sed 's/^/| /' conftest.$ac_ext >&5
15333
7a197a62 15334 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 15335fi
7a197a62 15336
ec6a6fbe 15337rm -rf conftest.dSYM
25fbec5b 15338rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 15339 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
15340LIBS=$ac_check_lib_save_LIBS
15341fi
ec6a6fbe
AK
15342{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
15343$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
15344if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5 15345
72b2cb61 15346
f8f6ec92
ZK
15347for ac_header in selinux/selinux.h
15348do
15349as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15350if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15351 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15352$as_echo_n "checking for $ac_header... " >&6; }
15353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15354 $as_echo_n "(cached) " >&6
f8f6ec92
ZK
15355fi
15356ac_res=`eval 'as_val=${'$as_ac_Header'}
15357 $as_echo "$as_val"'`
15358 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15359$as_echo "$ac_res" >&6; }
66e941e8 15360else
f8f6ec92
ZK
15361 # Is the header compilable?
15362{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15363$as_echo_n "checking $ac_header usability... " >&6; }
66e941e8
JM
15364cat >conftest.$ac_ext <<_ACEOF
15365/* confdefs.h. */
15366_ACEOF
15367cat confdefs.h >>conftest.$ac_ext
15368cat >>conftest.$ac_ext <<_ACEOF
15369/* end confdefs.h. */
f8f6ec92
ZK
15370$ac_includes_default
15371#include <$ac_header>
66e941e8 15372_ACEOF
f8f6ec92
ZK
15373rm -f conftest.$ac_objext
15374if { (ac_try="$ac_compile"
66e941e8
JM
15375case "(($ac_try" in
15376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377 *) ac_try_echo=$ac_try;;
15378esac
ec6a6fbe
AK
15379eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15380$as_echo "$ac_try_echo") >&5
f8f6ec92 15381 (eval "$ac_compile") 2>conftest.er1
66e941e8
JM
15382 ac_status=$?
15383 grep -v '^ *+' conftest.er1 >conftest.err
15384 rm -f conftest.er1
15385 cat conftest.err >&5
ec6a6fbe 15386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15387 (exit $ac_status); } && {
15388 test -z "$ac_c_werror_flag" ||
15389 test ! -s conftest.err
f8f6ec92
ZK
15390 } && test -s conftest.$ac_objext; then
15391 ac_header_compiler=yes
15392else
15393 $as_echo "$as_me: failed program was:" >&5
15394sed 's/^/| /' conftest.$ac_ext >&5
15395
15396 ac_header_compiler=no
15397fi
15398
15399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15400{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15401$as_echo "$ac_header_compiler" >&6; }
15402
15403# Is the header present?
15404{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15405$as_echo_n "checking $ac_header presence... " >&6; }
15406cat >conftest.$ac_ext <<_ACEOF
15407/* confdefs.h. */
15408_ACEOF
15409cat confdefs.h >>conftest.$ac_ext
15410cat >>conftest.$ac_ext <<_ACEOF
15411/* end confdefs.h. */
15412#include <$ac_header>
15413_ACEOF
15414if { (ac_try="$ac_cpp conftest.$ac_ext"
15415case "(($ac_try" in
15416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417 *) ac_try_echo=$ac_try;;
15418esac
15419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15420$as_echo "$ac_try_echo") >&5
15421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15422 ac_status=$?
15423 grep -v '^ *+' conftest.er1 >conftest.err
15424 rm -f conftest.er1
15425 cat conftest.err >&5
15426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); } >/dev/null && {
15428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15429 test ! -s conftest.err
ec6a6fbe 15430 }; then
f8f6ec92 15431 ac_header_preproc=yes
66e941e8 15432else
ec6a6fbe 15433 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
15434sed 's/^/| /' conftest.$ac_ext >&5
15435
f8f6ec92
ZK
15436 ac_header_preproc=no
15437fi
15438
15439rm -f conftest.err conftest.$ac_ext
15440{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15441$as_echo "$ac_header_preproc" >&6; }
15442
15443# So? What about this header?
15444case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15445 yes:no: )
15446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15447$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15449$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15450 ac_header_preproc=yes
15451 ;;
15452 no:yes:* )
15453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15454$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15456$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15458$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15460$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15462$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15464$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66e941e8 15465
f8f6ec92
ZK
15466 ;;
15467esac
15468{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15469$as_echo_n "checking for $ac_header... " >&6; }
15470if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15471 $as_echo_n "(cached) " >&6
15472else
15473 eval "$as_ac_Header=\$ac_header_preproc"
66e941e8 15474fi
f8f6ec92
ZK
15475ac_res=`eval 'as_val=${'$as_ac_Header'}
15476 $as_echo "$as_val"'`
15477 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15478$as_echo "$ac_res" >&6; }
66e941e8 15479
66e941e8 15480fi
f8f6ec92
ZK
15481as_val=`eval 'as_val=${'$as_ac_Header'}
15482 $as_echo "$as_val"'`
15483 if test "x$as_val" = x""yes; then
15484 cat >>confdefs.h <<_ACEOF
15485#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15486_ACEOF
15487
66e941e8 15488else
f8f6ec92 15489 hard_bailout
66e941e8 15490fi
f8f6ec92
ZK
15491
15492done
15493
15494
15495cat >>confdefs.h <<\_ACEOF
15496#define HAVE_SELINUX 1
15497_ACEOF
15498
15499 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
f7f0854e 15500 SELINUX_PC="libselinux"
f8f6ec92
ZK
15501 HAVE_SELINUX=yes
15502else
15503
15504 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
15505$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
15506 SELINUX_LIBS=
f7f0854e 15507 SELINUX_PC=
f8f6ec92 15508 HAVE_SELINUX=no
66e941e8
JM
15509fi
15510
ad6254c5
AK
15511fi
15512
8b1a3214
AK
15513################################################################################
15514if test x$REALTIME = xyes; then
ec6a6fbe
AK
15515 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
15516$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 15517if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 15518 $as_echo_n "(cached) " >&6
8b1a3214
AK
15519else
15520 ac_check_lib_save_LIBS=$LIBS
15521LIBS="-lrt $LIBS"
15522cat >conftest.$ac_ext <<_ACEOF
15523/* confdefs.h. */
15524_ACEOF
15525cat confdefs.h >>conftest.$ac_ext
15526cat >>conftest.$ac_ext <<_ACEOF
15527/* end confdefs.h. */
15528
7a197a62
AK
15529/* Override any GCC internal prototype to avoid an error.
15530 Use char because int might match the return type of a GCC
15531 builtin and then its argument prototype would still apply. */
8b1a3214
AK
15532#ifdef __cplusplus
15533extern "C"
15534#endif
8b1a3214
AK
15535char clock_gettime ();
15536int
15537main ()
15538{
7a197a62 15539return clock_gettime ();
8b1a3214
AK
15540 ;
15541 return 0;
15542}
15543_ACEOF
15544rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15545if { (ac_try="$ac_link"
15546case "(($ac_try" in
15547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548 *) ac_try_echo=$ac_try;;
15549esac
ec6a6fbe
AK
15550eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15551$as_echo "$ac_try_echo") >&5
7a197a62 15552 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
15553 ac_status=$?
15554 grep -v '^ *+' conftest.er1 >conftest.err
15555 rm -f conftest.er1
15556 cat conftest.err >&5
ec6a6fbe 15557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15558 (exit $ac_status); } && {
15559 test -z "$ac_c_werror_flag" ||
15560 test ! -s conftest.err
ec6a6fbe
AK
15561 } && test -s conftest$ac_exeext && {
15562 test "$cross_compiling" = yes ||
15563 $as_test_x conftest$ac_exeext
15564 }; then
8b1a3214
AK
15565 ac_cv_lib_rt_clock_gettime=yes
15566else
ec6a6fbe 15567 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
15568sed 's/^/| /' conftest.$ac_ext >&5
15569
7a197a62 15570 ac_cv_lib_rt_clock_gettime=no
8b1a3214 15571fi
7a197a62 15572
ec6a6fbe 15573rm -rf conftest.dSYM
25fbec5b 15574rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
15575 conftest$ac_exeext conftest.$ac_ext
15576LIBS=$ac_check_lib_save_LIBS
15577fi
ec6a6fbe
AK
15578{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
15579$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15580if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
15581 HAVE_REALTIME=yes
15582else
15583 HAVE_REALTIME=no
15584fi
15585
8b1a3214
AK
15586
15587 if test x$HAVE_REALTIME = xyes; then
15588
15589cat >>confdefs.h <<\_ACEOF
15590#define HAVE_REALTIME 1
15591_ACEOF
15592
15593 LIBS="-lrt $LIBS"
15594 else
ec6a6fbe
AK
15595 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
15596$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
15597 fi
15598fi
15599
ad6254c5
AK
15600################################################################################
15601
15602for ac_header in getopt.h
15603do
ec6a6fbe 15604as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 15605if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
15606 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15607$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15608if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15609 $as_echo_n "(cached) " >&6
ad6254c5 15610fi
ec6a6fbe
AK
15611ac_res=`eval 'as_val=${'$as_ac_Header'}
15612 $as_echo "$as_val"'`
15613 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15614$as_echo "$ac_res" >&6; }
ad6254c5
AK
15615else
15616 # Is the header compilable?
ec6a6fbe
AK
15617{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15618$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 15619cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15620/* confdefs.h. */
15621_ACEOF
15622cat confdefs.h >>conftest.$ac_ext
15623cat >>conftest.$ac_ext <<_ACEOF
15624/* end confdefs.h. */
15625$ac_includes_default
15626#include <$ac_header>
15627_ACEOF
15628rm -f conftest.$ac_objext
7a197a62
AK
15629if { (ac_try="$ac_compile"
15630case "(($ac_try" in
15631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15632 *) ac_try_echo=$ac_try;;
15633esac
ec6a6fbe
AK
15634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15635$as_echo "$ac_try_echo") >&5
7a197a62 15636 (eval "$ac_compile") 2>conftest.er1
ad6254c5 15637 ac_status=$?
8a2fc586
AK
15638 grep -v '^ *+' conftest.er1 >conftest.err
15639 rm -f conftest.er1
15640 cat conftest.err >&5
ec6a6fbe 15641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15642 (exit $ac_status); } && {
15643 test -z "$ac_c_werror_flag" ||
15644 test ! -s conftest.err
15645 } && test -s conftest.$ac_objext; then
ad6254c5
AK
15646 ac_header_compiler=yes
15647else
ec6a6fbe 15648 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15649sed 's/^/| /' conftest.$ac_ext >&5
15650
7a197a62 15651 ac_header_compiler=no
ad6254c5 15652fi
7a197a62
AK
15653
15654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
15655{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15656$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
15657
15658# Is the header present?
ec6a6fbe
AK
15659{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15660$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 15661cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15662/* confdefs.h. */
15663_ACEOF
15664cat confdefs.h >>conftest.$ac_ext
15665cat >>conftest.$ac_ext <<_ACEOF
15666/* end confdefs.h. */
15667#include <$ac_header>
15668_ACEOF
7a197a62
AK
15669if { (ac_try="$ac_cpp conftest.$ac_ext"
15670case "(($ac_try" in
15671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672 *) ac_try_echo=$ac_try;;
15673esac
ec6a6fbe
AK
15674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15675$as_echo "$ac_try_echo") >&5
7a197a62 15676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
15677 ac_status=$?
15678 grep -v '^ *+' conftest.er1 >conftest.err
15679 rm -f conftest.er1
15680 cat conftest.err >&5
ec6a6fbe 15681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15682 (exit $ac_status); } >/dev/null && {
15683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15684 test ! -s conftest.err
15685 }; then
ad6254c5
AK
15686 ac_header_preproc=yes
15687else
ec6a6fbe 15688 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15689sed 's/^/| /' conftest.$ac_ext >&5
15690
15691 ac_header_preproc=no
15692fi
7a197a62 15693
ad6254c5 15694rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
15695{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15696$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
15697
15698# So? What about this header?
8a2fc586
AK
15699case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15700 yes:no: )
ec6a6fbe
AK
15701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15702$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15704$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 15705 ac_header_preproc=yes
ad6254c5 15706 ;;
8a2fc586 15707 no:yes:* )
ec6a6fbe
AK
15708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15709$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15711$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15713$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15715$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15716 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15717$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15719$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 15720
ad6254c5
AK
15721 ;;
15722esac
ec6a6fbe
AK
15723{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15724$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15725if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15726 $as_echo_n "(cached) " >&6
ad6254c5 15727else
8a2fc586 15728 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 15729fi
ec6a6fbe
AK
15730ac_res=`eval 'as_val=${'$as_ac_Header'}
15731 $as_echo "$as_val"'`
15732 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15733$as_echo "$ac_res" >&6; }
ad6254c5
AK
15734
15735fi
ec6a6fbe
AK
15736as_val=`eval 'as_val=${'$as_ac_Header'}
15737 $as_echo "$as_val"'`
15738 if test "x$as_val" = x""yes; then
ad6254c5 15739 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15740#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15741_ACEOF
72b2cb61
AK
15742
15743cat >>confdefs.h <<\_ACEOF
15744#define HAVE_GETOPTLONG 1
15745_ACEOF
15746
ad6254c5
AK
15747fi
15748
15749done
15750
15751
15752################################################################################
06e459df 15753if test x$READLINE != xno; then
539f4a77
ZK
15754 lvm_saved_libs=$LIBS
15755 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
15756$as_echo_n "checking for library containing tgetent... " >&6; }
15757if test "${ac_cv_search_tgetent+set}" = set; then
15758 $as_echo_n "(cached) " >&6
15759else
15760 ac_func_search_save_LIBS=$LIBS
15761cat >conftest.$ac_ext <<_ACEOF
15762/* confdefs.h. */
15763_ACEOF
15764cat confdefs.h >>conftest.$ac_ext
15765cat >>conftest.$ac_ext <<_ACEOF
15766/* end confdefs.h. */
bc1024f8 15767
539f4a77
ZK
15768/* Override any GCC internal prototype to avoid an error.
15769 Use char because int might match the return type of a GCC
15770 builtin and then its argument prototype would still apply. */
15771#ifdef __cplusplus
15772extern "C"
15773#endif
15774char tgetent ();
15775int
15776main ()
15777{
15778return tgetent ();
15779 ;
15780 return 0;
15781}
15782_ACEOF
15783for ac_lib in '' tinfo ncurses curses termcap termlib; do
15784 if test -z "$ac_lib"; then
15785 ac_res="none required"
15786 else
15787 ac_res=-l$ac_lib
15788 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15789 fi
15790 rm -f conftest.$ac_objext conftest$ac_exeext
15791if { (ac_try="$ac_link"
15792case "(($ac_try" in
15793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794 *) ac_try_echo=$ac_try;;
15795esac
15796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15797$as_echo "$ac_try_echo") >&5
15798 (eval "$ac_link") 2>conftest.er1
15799 ac_status=$?
15800 grep -v '^ *+' conftest.er1 >conftest.err
15801 rm -f conftest.er1
15802 cat conftest.err >&5
15803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); } && {
15805 test -z "$ac_c_werror_flag" ||
15806 test ! -s conftest.err
15807 } && test -s conftest$ac_exeext && {
15808 test "$cross_compiling" = yes ||
15809 $as_test_x conftest$ac_exeext
15810 }; then
15811 ac_cv_search_tgetent=$ac_res
15812else
15813 $as_echo "$as_me: failed program was:" >&5
15814sed 's/^/| /' conftest.$ac_ext >&5
15815
15816
15817fi
15818
15819rm -rf conftest.dSYM
15820rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15821 conftest$ac_exeext
15822 if test "${ac_cv_search_tgetent+set}" = set; then
15823 break
15824fi
15825done
15826if test "${ac_cv_search_tgetent+set}" = set; then
15827 :
15828else
15829 ac_cv_search_tgetent=no
15830fi
15831rm conftest.$ac_ext
15832LIBS=$ac_func_search_save_LIBS
15833fi
15834{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
15835$as_echo "$ac_cv_search_tgetent" >&6; }
15836ac_res=$ac_cv_search_tgetent
15837if test "$ac_res" != no; then
15838 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15839 READLINE_LIBS=$ac_cv_search_tgetent
15840else
15841
15842 if test "$READLINE" = yes; then
15843 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
15844--enable-readline option (which is enabled by default). Either disable readline
15845support with --disable-readline or download and install termcap from:
15846 ftp.gnu.org/gnu/termcap
15847Note: if you are using precompiled packages you will also need the development
15848 package as well (which may be called termcap-devel or something similar).
15849Note: (n)curses also seems to work as a substitute for termcap. This was
15850 not found either - but you could try installing that as well." >&5
15851$as_echo "$as_me: error: termcap could not be found which is required for the
15852--enable-readline option (which is enabled by default). Either disable readline
15853support with --disable-readline or download and install termcap from:
15854 ftp.gnu.org/gnu/termcap
15855Note: if you are using precompiled packages you will also need the development
15856 package as well (which may be called termcap-devel or something similar).
15857Note: (n)curses also seems to work as a substitute for termcap. This was
15858 not found either - but you could try installing that as well." >&2;}
15859 { (exit 1); exit 1; }; }
15860 fi
15861fi
15862
15863 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
ec6a6fbe 15864$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 15865if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 15866 $as_echo_n "(cached) " >&6
ad6254c5
AK
15867else
15868 ac_check_lib_save_LIBS=$LIBS
15869LIBS="-lreadline $LIBS"
15870cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15871/* confdefs.h. */
15872_ACEOF
15873cat confdefs.h >>conftest.$ac_ext
15874cat >>conftest.$ac_ext <<_ACEOF
15875/* end confdefs.h. */
15876
7a197a62
AK
15877/* Override any GCC internal prototype to avoid an error.
15878 Use char because int might match the return type of a GCC
15879 builtin and then its argument prototype would still apply. */
ad6254c5
AK
15880#ifdef __cplusplus
15881extern "C"
15882#endif
ad6254c5
AK
15883char readline ();
15884int
15885main ()
15886{
7a197a62 15887return readline ();
ad6254c5
AK
15888 ;
15889 return 0;
15890}
15891_ACEOF
15892rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15893if { (ac_try="$ac_link"
15894case "(($ac_try" in
15895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15896 *) ac_try_echo=$ac_try;;
15897esac
ec6a6fbe
AK
15898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15899$as_echo "$ac_try_echo") >&5
7a197a62 15900 (eval "$ac_link") 2>conftest.er1
ad6254c5 15901 ac_status=$?
8a2fc586
AK
15902 grep -v '^ *+' conftest.er1 >conftest.err
15903 rm -f conftest.er1
15904 cat conftest.err >&5
ec6a6fbe 15905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15906 (exit $ac_status); } && {
15907 test -z "$ac_c_werror_flag" ||
15908 test ! -s conftest.err
ec6a6fbe
AK
15909 } && test -s conftest$ac_exeext && {
15910 test "$cross_compiling" = yes ||
15911 $as_test_x conftest$ac_exeext
15912 }; then
ad6254c5
AK
15913 ac_cv_lib_readline_readline=yes
15914else
ec6a6fbe 15915 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15916sed 's/^/| /' conftest.$ac_ext >&5
15917
7a197a62 15918 ac_cv_lib_readline_readline=no
ad6254c5 15919fi
7a197a62 15920
ec6a6fbe 15921rm -rf conftest.dSYM
25fbec5b 15922rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 15923 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
15924LIBS=$ac_check_lib_save_LIBS
15925fi
ec6a6fbe
AK
15926{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
15927$as_echo "$ac_cv_lib_readline_readline" >&6; }
15928if test "x$ac_cv_lib_readline_readline" = x""yes; then
539f4a77
ZK
15929
15930
15931cat >>confdefs.h <<\_ACEOF
15932#define READLINE_SUPPORT 1
bc1024f8
JM
15933_ACEOF
15934
539f4a77
ZK
15935 LIBS=$lvm_saved_libs
15936 { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5
15937$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
15938if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then
15939 $as_echo_n "(cached) " >&6
15940else
15941 ac_check_lib_save_LIBS=$LIBS
15942LIBS="-lreadline $LIBS"
15943cat >conftest.$ac_ext <<_ACEOF
15944/* confdefs.h. */
15945_ACEOF
15946cat confdefs.h >>conftest.$ac_ext
15947cat >>conftest.$ac_ext <<_ACEOF
15948/* end confdefs.h. */
bc1024f8 15949
539f4a77
ZK
15950/* Override any GCC internal prototype to avoid an error.
15951 Use char because int might match the return type of a GCC
15952 builtin and then its argument prototype would still apply. */
15953#ifdef __cplusplus
15954extern "C"
15955#endif
15956char rl_line_buffer ();
15957int
15958main ()
15959{
15960return rl_line_buffer ();
15961 ;
15962 return 0;
15963}
15964_ACEOF
15965rm -f conftest.$ac_objext conftest$ac_exeext
15966if { (ac_try="$ac_link"
15967case "(($ac_try" in
15968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15969 *) ac_try_echo=$ac_try;;
15970esac
15971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15972$as_echo "$ac_try_echo") >&5
15973 (eval "$ac_link") 2>conftest.er1
15974 ac_status=$?
15975 grep -v '^ *+' conftest.er1 >conftest.err
15976 rm -f conftest.er1
15977 cat conftest.err >&5
15978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); } && {
15980 test -z "$ac_c_werror_flag" ||
15981 test ! -s conftest.err
15982 } && test -s conftest$ac_exeext && {
15983 test "$cross_compiling" = yes ||
15984 $as_test_x conftest$ac_exeext
15985 }; then
15986 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 15987else
539f4a77
ZK
15988 $as_echo "$as_me: failed program was:" >&5
15989sed 's/^/| /' conftest.$ac_ext >&5
15990
15991 ac_cv_lib_readline_rl_line_buffer=no
06e459df
JM
15992fi
15993
539f4a77
ZK
15994rm -rf conftest.dSYM
15995rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15996 conftest$ac_exeext conftest.$ac_ext
15997LIBS=$ac_check_lib_save_LIBS
15998fi
15999{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5
16000$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
16001if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then
16002 READLINE_LIBS="-lreadline"
16003else
16004
16005 { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5
16006$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
16007 READLINE_LIBS="-lreadline $READLINE_LIBS"
16008
16009fi
16010
16011else
16012
16013 READLINE_LIBS=
16014 if test "$READLINE" = yes; then
16015 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
16016--enable-readline option (which is enabled by default). Either disable readline
16017support with --disable-readline or download and install readline from:
16018 ftp.gnu.org/gnu/readline
16019Note: if you are using precompiled packages you will also need the development
539f4a77 16020package as well (which may be called readline-devel or something similar)." >&5
ec6a6fbe 16021$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
16022--enable-readline option (which is enabled by default). Either disable readline
16023support with --disable-readline or download and install readline from:
16024 ftp.gnu.org/gnu/readline
16025Note: if you are using precompiled packages you will also need the development
539f4a77 16026package as well (which may be called readline-devel or something similar)." >&2;}
ad6254c5 16027 { (exit 1); exit 1; }; }
539f4a77
ZK
16028 fi
16029fi
16030
16031 LIBS="$READLINE_LIBS $lvm_saved_libs"
bc1024f8
JM
16032
16033for ac_func in rl_completion_matches
16034do
ec6a6fbe
AK
16035as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16036{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16037$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 16038if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16039 $as_echo_n "(cached) " >&6
ad6254c5
AK
16040else
16041 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16042/* confdefs.h. */
16043_ACEOF
16044cat confdefs.h >>conftest.$ac_ext
16045cat >>conftest.$ac_ext <<_ACEOF
16046/* end confdefs.h. */
bc1024f8 16047/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 16048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 16049#define $ac_func innocuous_$ac_func
8a2fc586 16050
ad6254c5 16051/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 16052 which can conflict with char $ac_func (); below.
ad6254c5
AK
16053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16054 <limits.h> exists even on freestanding compilers. */
8a2fc586 16055
ad6254c5
AK
16056#ifdef __STDC__
16057# include <limits.h>
16058#else
16059# include <assert.h>
16060#endif
8a2fc586 16061
bc1024f8 16062#undef $ac_func
8a2fc586 16063
7a197a62
AK
16064/* Override any GCC internal prototype to avoid an error.
16065 Use char because int might match the return type of a GCC
16066 builtin and then its argument prototype would still apply. */
ad6254c5
AK
16067#ifdef __cplusplus
16068extern "C"
ad6254c5 16069#endif
bc1024f8 16070char $ac_func ();
ad6254c5
AK
16071/* The GNU C library defines this for functions which it implements
16072 to always fail with ENOSYS. Some functions are actually named
16073 something starting with __ and the normal name is an alias. */
bc1024f8 16074#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 16075choke me
ad6254c5
AK
16076#endif
16077
16078int
16079main ()
16080{
bc1024f8 16081return $ac_func ();
ad6254c5
AK
16082 ;
16083 return 0;
16084}
16085_ACEOF
16086rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
16087if { (ac_try="$ac_link"
16088case "(($ac_try" in
16089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16090 *) ac_try_echo=$ac_try;;
16091esac
ec6a6fbe
AK
16092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16093$as_echo "$ac_try_echo") >&5
7a197a62 16094 (eval "$ac_link") 2>conftest.er1
ad6254c5 16095 ac_status=$?
8a2fc586
AK
16096 grep -v '^ *+' conftest.er1 >conftest.err
16097 rm -f conftest.er1
16098 cat conftest.err >&5
ec6a6fbe 16099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16100 (exit $ac_status); } && {
16101 test -z "$ac_c_werror_flag" ||
16102 test ! -s conftest.err
ec6a6fbe
AK
16103 } && test -s conftest$ac_exeext && {
16104 test "$cross_compiling" = yes ||
16105 $as_test_x conftest$ac_exeext
16106 }; then
bc1024f8 16107 eval "$as_ac_var=yes"
ad6254c5 16108else
ec6a6fbe 16109 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16110sed 's/^/| /' conftest.$ac_ext >&5
16111
bc1024f8 16112 eval "$as_ac_var=no"
ad6254c5 16113fi
7a197a62 16114
ec6a6fbe 16115rm -rf conftest.dSYM
25fbec5b 16116rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 16117 conftest$ac_exeext conftest.$ac_ext
ad6254c5 16118fi
ec6a6fbe
AK
16119ac_res=`eval 'as_val=${'$as_ac_var'}
16120 $as_echo "$as_val"'`
16121 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16122$as_echo "$ac_res" >&6; }
16123as_val=`eval 'as_val=${'$as_ac_var'}
16124 $as_echo "$as_val"'`
16125 if test "x$as_val" = x""yes; then
bc1024f8 16126 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16127#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
16128_ACEOF
16129
16130fi
bc1024f8 16131done
ad6254c5 16132
539f4a77 16133 LIBS=$lvm_saved_libs
ad6254c5
AK
16134fi
16135
16136################################################################################
ec6a6fbe
AK
16137{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
16138$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 16139# Check whether --enable-nls was given.
ad6254c5 16140if test "${enable_nls+set}" = set; then
7a197a62 16141 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
16142else
16143 INTL=no
7a197a62
AK
16144fi
16145
ec6a6fbe
AK
16146{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
16147$as_echo "$INTL" >&6; }
ad6254c5
AK
16148
16149if test x$INTL = xyes; then
93bd259b 16150# FIXME - Move this - can be device-mapper too
ad6254c5
AK
16151 INTL_PACKAGE="lvm2"
16152 # Extract the first word of "msgfmt", so it can be a program name with args.
16153set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
16154{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16155$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 16156if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 16157 $as_echo_n "(cached) " >&6
ad6254c5
AK
16158else
16159 case $MSGFMT in
16160 [\\/]* | ?:[\\/]*)
16161 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16162 ;;
16163 *)
16164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16165for as_dir in $PATH
16166do
16167 IFS=$as_save_IFS
16168 test -z "$as_dir" && as_dir=.
16169 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 16170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 16171 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 16172 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
16173 break 2
16174 fi
16175done
16176done
7a197a62 16177IFS=$as_save_IFS
ad6254c5
AK
16178
16179 ;;
16180esac
16181fi
16182MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 16183if test -n "$MSGFMT"; then
ec6a6fbe
AK
16184 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16185$as_echo "$MSGFMT" >&6; }
ad6254c5 16186else
ec6a6fbe
AK
16187 { $as_echo "$as_me:$LINENO: result: no" >&5
16188$as_echo "no" >&6; }
ad6254c5
AK
16189fi
16190
7a197a62 16191
ad6254c5 16192 if [ "x$MSGFMT" == x ];
ec6a6fbe 16193 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 16194 " >&5
ec6a6fbe 16195$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
16196 " >&2;}
16197 { (exit 1); exit 1; }; }
16198 fi;
16199
16200
7a197a62 16201# Check whether --with-localedir was given.
ad6254c5 16202if test "${with_localedir+set}" = set; then
71082be4 16203 withval=$with_localedir; LOCALEDIR=$withval
ad6254c5 16204else
71082be4 16205 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
16206fi
16207
ad6254c5
AK
16208fi
16209
16210################################################################################
16211
7a197a62 16212# Check whether --with-confdir was given.
ad6254c5 16213if test "${with_confdir+set}" = set; then
71082be4 16214 withval=$with_confdir; CONFDIR=$withval
ad6254c5 16215else
71082be4 16216 CONFDIR="/etc"
7a197a62
AK
16217fi
16218
ad6254c5
AK
16219
16220
7a197a62 16221# Check whether --with-staticdir was given.
ad6254c5 16222if test "${with_staticdir+set}" = set; then
71082be4 16223 withval=$with_staticdir; STATICDIR=$withval
ad6254c5 16224else
71082be4 16225 STATICDIR='${exec_prefix}/sbin'
7a197a62 16226fi
ad6254c5 16227
33f732c5 16228
7a197a62 16229
68f2de6d
AK
16230# Check whether --with-usrlibdir was given.
16231if test "${with_usrlibdir+set}" = set; then
71082be4 16232 withval=$with_usrlibdir; usrlibdir=$withval
68f2de6d 16233else
71082be4 16234 usrlibdir='${prefix}/lib'
68f2de6d
AK
16235fi
16236
16237
16238
16239# Check whether --with-usrsbindir was given.
16240if test "${with_usrsbindir+set}" = set; then
71082be4 16241 withval=$with_usrsbindir; usrsbindir=$withval
68f2de6d 16242else
71082be4 16243 usrsbindir='${prefix}/sbin'
68f2de6d
AK
16244fi
16245
16246
a5f46f6a
AK
16247################################################################################
16248
16249# Check whether --with-udev_prefix was given.
16250if test "${with_udev_prefix+set}" = set; then
71082be4 16251 withval=$with_udev_prefix; udev_prefix=$withval
a5f46f6a 16252else
71082be4 16253 udev_prefix='${exec_prefix}'
a5f46f6a
AK
16254fi
16255
16256
78ce7acc
AK
16257
16258# Check whether --with-udevdir was given.
16259if test "${with_udevdir+set}" = set; then
71082be4 16260 withval=$with_udevdir; udevdir=$withval
78ce7acc 16261else
71082be4 16262 udevdir='${udev_prefix}/lib/udev/rules.d'
78ce7acc
AK
16263fi
16264
a5f46f6a 16265
ad6254c5
AK
16266################################################################################
16267if test x$READLINE = xyes; then
16268
16269
16270for ac_header in readline/readline.h readline/history.h
16271do
ec6a6fbe 16272as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16273if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16274 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16275$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16276if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16277 $as_echo_n "(cached) " >&6
ad6254c5 16278fi
ec6a6fbe
AK
16279ac_res=`eval 'as_val=${'$as_ac_Header'}
16280 $as_echo "$as_val"'`
16281 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16282$as_echo "$ac_res" >&6; }
ad6254c5
AK
16283else
16284 # Is the header compilable?
ec6a6fbe
AK
16285{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16286$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16287cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16288/* confdefs.h. */
16289_ACEOF
16290cat confdefs.h >>conftest.$ac_ext
16291cat >>conftest.$ac_ext <<_ACEOF
16292/* end confdefs.h. */
16293$ac_includes_default
16294#include <$ac_header>
16295_ACEOF
16296rm -f conftest.$ac_objext
7a197a62
AK
16297if { (ac_try="$ac_compile"
16298case "(($ac_try" in
16299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16300 *) ac_try_echo=$ac_try;;
16301esac
ec6a6fbe
AK
16302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16303$as_echo "$ac_try_echo") >&5
7a197a62 16304 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16305 ac_status=$?
8a2fc586
AK
16306 grep -v '^ *+' conftest.er1 >conftest.err
16307 rm -f conftest.er1
16308 cat conftest.err >&5
ec6a6fbe 16309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16310 (exit $ac_status); } && {
16311 test -z "$ac_c_werror_flag" ||
16312 test ! -s conftest.err
16313 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16314 ac_header_compiler=yes
16315else
ec6a6fbe 16316 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16317sed 's/^/| /' conftest.$ac_ext >&5
16318
7a197a62 16319 ac_header_compiler=no
ad6254c5 16320fi
7a197a62
AK
16321
16322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16323{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16324$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16325
16326# Is the header present?
ec6a6fbe
AK
16327{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16328$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 16329cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16330/* confdefs.h. */
16331_ACEOF
16332cat confdefs.h >>conftest.$ac_ext
16333cat >>conftest.$ac_ext <<_ACEOF
16334/* end confdefs.h. */
16335#include <$ac_header>
16336_ACEOF
7a197a62
AK
16337if { (ac_try="$ac_cpp conftest.$ac_ext"
16338case "(($ac_try" in
16339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340 *) ac_try_echo=$ac_try;;
16341esac
ec6a6fbe
AK
16342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16343$as_echo "$ac_try_echo") >&5
7a197a62 16344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16345 ac_status=$?
16346 grep -v '^ *+' conftest.er1 >conftest.err
16347 rm -f conftest.er1
16348 cat conftest.err >&5
ec6a6fbe 16349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16350 (exit $ac_status); } >/dev/null && {
16351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16352 test ! -s conftest.err
16353 }; then
ad6254c5
AK
16354 ac_header_preproc=yes
16355else
ec6a6fbe 16356 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16357sed 's/^/| /' conftest.$ac_ext >&5
16358
16359 ac_header_preproc=no
16360fi
7a197a62 16361
ad6254c5 16362rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16363{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16364$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16365
16366# So? What about this header?
8a2fc586
AK
16367case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16368 yes:no: )
ec6a6fbe
AK
16369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16370$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16372$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16373 ac_header_preproc=yes
ad6254c5 16374 ;;
8a2fc586 16375 no:yes:* )
ec6a6fbe
AK
16376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16377$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16379$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16381$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16383$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16385$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16387$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16388
ad6254c5
AK
16389 ;;
16390esac
ec6a6fbe
AK
16391{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16392$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16393if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16394 $as_echo_n "(cached) " >&6
ad6254c5 16395else
8a2fc586 16396 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 16397fi
ec6a6fbe
AK
16398ac_res=`eval 'as_val=${'$as_ac_Header'}
16399 $as_echo "$as_val"'`
16400 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16401$as_echo "$ac_res" >&6; }
ad6254c5
AK
16402
16403fi
ec6a6fbe
AK
16404as_val=`eval 'as_val=${'$as_ac_Header'}
16405 $as_echo "$as_val"'`
16406 if test "x$as_val" = x""yes; then
ad6254c5 16407 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16408#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16409_ACEOF
16410
16411else
ec6a6fbe
AK
16412 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16413$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
16414 { (exit 1); exit 1; }; }
16415fi
16416
16417done
16418
16419fi
16420
5c7fc7c4 16421if test x$CLVMD != xnone; then
ad6254c5
AK
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432for 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
16433do
ec6a6fbe 16434as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16435if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16436 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16437$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16438if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16439 $as_echo_n "(cached) " >&6
ad6254c5 16440fi
ec6a6fbe
AK
16441ac_res=`eval 'as_val=${'$as_ac_Header'}
16442 $as_echo "$as_val"'`
16443 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16444$as_echo "$ac_res" >&6; }
ad6254c5
AK
16445else
16446 # Is the header compilable?
ec6a6fbe
AK
16447{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16448$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16449cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16450/* confdefs.h. */
16451_ACEOF
16452cat confdefs.h >>conftest.$ac_ext
16453cat >>conftest.$ac_ext <<_ACEOF
16454/* end confdefs.h. */
16455$ac_includes_default
16456#include <$ac_header>
16457_ACEOF
16458rm -f conftest.$ac_objext
7a197a62
AK
16459if { (ac_try="$ac_compile"
16460case "(($ac_try" in
16461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16462 *) ac_try_echo=$ac_try;;
16463esac
ec6a6fbe
AK
16464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16465$as_echo "$ac_try_echo") >&5
7a197a62 16466 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16467 ac_status=$?
8a2fc586
AK
16468 grep -v '^ *+' conftest.er1 >conftest.err
16469 rm -f conftest.er1
16470 cat conftest.err >&5
ec6a6fbe 16471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16472 (exit $ac_status); } && {
16473 test -z "$ac_c_werror_flag" ||
16474 test ! -s conftest.err
16475 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16476 ac_header_compiler=yes
16477else
ec6a6fbe 16478 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16479sed 's/^/| /' conftest.$ac_ext >&5
16480
7a197a62 16481 ac_header_compiler=no
ad6254c5 16482fi
7a197a62
AK
16483
16484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16485{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16486$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16487
16488# Is the header present?
ec6a6fbe
AK
16489{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16490$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 16491cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16492/* confdefs.h. */
16493_ACEOF
16494cat confdefs.h >>conftest.$ac_ext
16495cat >>conftest.$ac_ext <<_ACEOF
16496/* end confdefs.h. */
16497#include <$ac_header>
16498_ACEOF
7a197a62
AK
16499if { (ac_try="$ac_cpp conftest.$ac_ext"
16500case "(($ac_try" in
16501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502 *) ac_try_echo=$ac_try;;
16503esac
ec6a6fbe
AK
16504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16505$as_echo "$ac_try_echo") >&5
7a197a62 16506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16507 ac_status=$?
16508 grep -v '^ *+' conftest.er1 >conftest.err
16509 rm -f conftest.er1
16510 cat conftest.err >&5
ec6a6fbe 16511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16512 (exit $ac_status); } >/dev/null && {
16513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16514 test ! -s conftest.err
16515 }; then
ad6254c5
AK
16516 ac_header_preproc=yes
16517else
ec6a6fbe 16518 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16519sed 's/^/| /' conftest.$ac_ext >&5
16520
16521 ac_header_preproc=no
16522fi
7a197a62 16523
ad6254c5 16524rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16525{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16526$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16527
16528# So? What about this header?
8a2fc586
AK
16529case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16530 yes:no: )
ec6a6fbe
AK
16531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16532$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16534$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16535 ac_header_preproc=yes
ad6254c5 16536 ;;
8a2fc586 16537 no:yes:* )
ec6a6fbe
AK
16538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16539$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16541$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16543$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16545$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16547$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16549$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16550
ad6254c5
AK
16551 ;;
16552esac
ec6a6fbe
AK
16553{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16554$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16555if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16556 $as_echo_n "(cached) " >&6
ad6254c5 16557else
8a2fc586 16558 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 16559fi
ec6a6fbe
AK
16560ac_res=`eval 'as_val=${'$as_ac_Header'}
16561 $as_echo "$as_val"'`
16562 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16563$as_echo "$ac_res" >&6; }
ad6254c5
AK
16564
16565fi
ec6a6fbe
AK
16566as_val=`eval 'as_val=${'$as_ac_Header'}
16567 $as_echo "$as_val"'`
16568 if test "x$as_val" = x""yes; then
ad6254c5 16569 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16570#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16571_ACEOF
16572
16573else
ec6a6fbe
AK
16574 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16575$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 16576 { (exit 1); exit 1; }; }
795ca3e5
AK
16577fi
16578
ad6254c5
AK
16579done
16580
16581
795ca3e5 16582
8106cdd5 16583
ad6254c5
AK
16584
16585
16586for ac_func in dup2 getmntent memmove select socket
16587do
ec6a6fbe
AK
16588as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16589{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16590$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 16591if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16592 $as_echo_n "(cached) " >&6
795ca3e5 16593else
ad6254c5 16594 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16595/* confdefs.h. */
16596_ACEOF
16597cat confdefs.h >>conftest.$ac_ext
16598cat >>conftest.$ac_ext <<_ACEOF
16599/* end confdefs.h. */
8a2fc586
AK
16600/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16602#define $ac_func innocuous_$ac_func
16603
795ca3e5 16604/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
16605 which can conflict with char $ac_func (); below.
16606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16607 <limits.h> exists even on freestanding compilers. */
8a2fc586 16608
ad6254c5
AK
16609#ifdef __STDC__
16610# include <limits.h>
16611#else
16612# include <assert.h>
16613#endif
8a2fc586
AK
16614
16615#undef $ac_func
16616
7a197a62
AK
16617/* Override any GCC internal prototype to avoid an error.
16618 Use char because int might match the return type of a GCC
16619 builtin and then its argument prototype would still apply. */
ad6254c5
AK
16620#ifdef __cplusplus
16621extern "C"
ad6254c5 16622#endif
ad6254c5 16623char $ac_func ();
795ca3e5
AK
16624/* The GNU C library defines this for functions which it implements
16625 to always fail with ENOSYS. Some functions are actually named
16626 something starting with __ and the normal name is an alias. */
7a197a62 16627#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 16628choke me
795ca3e5
AK
16629#endif
16630
ad6254c5
AK
16631int
16632main ()
16633{
7a197a62 16634return $ac_func ();
ad6254c5
AK
16635 ;
16636 return 0;
16637}
16638_ACEOF
16639rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
16640if { (ac_try="$ac_link"
16641case "(($ac_try" in
16642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16643 *) ac_try_echo=$ac_try;;
16644esac
ec6a6fbe
AK
16645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16646$as_echo "$ac_try_echo") >&5
7a197a62 16647 (eval "$ac_link") 2>conftest.er1
ad6254c5 16648 ac_status=$?
8a2fc586
AK
16649 grep -v '^ *+' conftest.er1 >conftest.err
16650 rm -f conftest.er1
16651 cat conftest.err >&5
ec6a6fbe 16652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16653 (exit $ac_status); } && {
16654 test -z "$ac_c_werror_flag" ||
16655 test ! -s conftest.err
ec6a6fbe
AK
16656 } && test -s conftest$ac_exeext && {
16657 test "$cross_compiling" = yes ||
16658 $as_test_x conftest$ac_exeext
16659 }; then
ad6254c5 16660 eval "$as_ac_var=yes"
795ca3e5 16661else
ec6a6fbe 16662 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16663sed 's/^/| /' conftest.$ac_ext >&5
16664
7a197a62 16665 eval "$as_ac_var=no"
80992638 16666fi
7a197a62 16667
ec6a6fbe 16668rm -rf conftest.dSYM
25fbec5b 16669rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 16670 conftest$ac_exeext conftest.$ac_ext
795ca3e5 16671fi
ec6a6fbe
AK
16672ac_res=`eval 'as_val=${'$as_ac_var'}
16673 $as_echo "$as_val"'`
16674 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16675$as_echo "$ac_res" >&6; }
16676as_val=`eval 'as_val=${'$as_ac_var'}
16677 $as_echo "$as_val"'`
16678 if test "x$as_val" = x""yes; then
ad6254c5 16679 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16680#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 16681_ACEOF
80992638
AK
16682
16683else
ec6a6fbe
AK
16684 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16685$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 16686 { (exit 1); exit 1; }; }
8106cdd5 16687fi
ad6254c5 16688done
795ca3e5 16689
25fbec5b
AK
16690 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
16691# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
16692{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
16693$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 16694if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 16695 $as_echo_n "(cached) " >&6
25fbec5b
AK
16696else
16697 ac_func_search_save_LIBS=$LIBS
16698cat >conftest.$ac_ext <<_ACEOF
16699/* confdefs.h. */
16700_ACEOF
16701cat confdefs.h >>conftest.$ac_ext
16702cat >>conftest.$ac_ext <<_ACEOF
16703/* end confdefs.h. */
80992638 16704
7a197a62
AK
16705/* Override any GCC internal prototype to avoid an error.
16706 Use char because int might match the return type of a GCC
ad6254c5 16707 builtin and then its argument prototype would still apply. */
ad6254c5
AK
16708#ifdef __cplusplus
16709extern "C"
16710#endif
25fbec5b 16711char getmntent ();
ad6254c5
AK
16712int
16713main ()
16714{
25fbec5b 16715return getmntent ();
ad6254c5
AK
16716 ;
16717 return 0;
16718}
16719_ACEOF
25fbec5b
AK
16720for ac_lib in '' sun seq gen; do
16721 if test -z "$ac_lib"; then
16722 ac_res="none required"
16723 else
16724 ac_res=-l$ac_lib
16725 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16726 fi
16727 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
16728if { (ac_try="$ac_link"
16729case "(($ac_try" in
16730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16731 *) ac_try_echo=$ac_try;;
16732esac
ec6a6fbe
AK
16733eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16734$as_echo "$ac_try_echo") >&5
7a197a62 16735 (eval "$ac_link") 2>conftest.er1
ad6254c5 16736 ac_status=$?
8a2fc586
AK
16737 grep -v '^ *+' conftest.er1 >conftest.err
16738 rm -f conftest.er1
16739 cat conftest.err >&5
ec6a6fbe 16740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16741 (exit $ac_status); } && {
16742 test -z "$ac_c_werror_flag" ||
16743 test ! -s conftest.err
ec6a6fbe
AK
16744 } && test -s conftest$ac_exeext && {
16745 test "$cross_compiling" = yes ||
16746 $as_test_x conftest$ac_exeext
16747 }; then
25fbec5b 16748 ac_cv_search_getmntent=$ac_res
80992638 16749else
ec6a6fbe 16750 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16751sed 's/^/| /' conftest.$ac_ext >&5
16752
25fbec5b 16753
795ca3e5
AK
16754fi
16755
ec6a6fbe 16756rm -rf conftest.dSYM
25fbec5b
AK
16757rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16758 conftest$ac_exeext
16759 if test "${ac_cv_search_getmntent+set}" = set; then
16760 break
795ca3e5 16761fi
25fbec5b
AK
16762done
16763if test "${ac_cv_search_getmntent+set}" = set; then
16764 :
16765else
16766 ac_cv_search_getmntent=no
16767fi
16768rm conftest.$ac_ext
16769LIBS=$ac_func_search_save_LIBS
16770fi
ec6a6fbe
AK
16771{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
16772$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
16773ac_res=$ac_cv_search_getmntent
16774if test "$ac_res" != no; then
16775 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16776 ac_cv_func_getmntent=yes
16777
16778cat >>confdefs.h <<\_ACEOF
9c961554 16779#define HAVE_GETMNTENT 1
ad6254c5 16780_ACEOF
795ca3e5 16781
25fbec5b
AK
16782else
16783 ac_cv_func_getmntent=no
795ca3e5 16784fi
795ca3e5
AK
16785
16786
ad6254c5
AK
16787
16788
16789for ac_header in sys/select.h sys/socket.h
16790do
ec6a6fbe 16791as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16793 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16794$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16795if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16796 $as_echo_n "(cached) " >&6
ad6254c5 16797fi
ec6a6fbe
AK
16798ac_res=`eval 'as_val=${'$as_ac_Header'}
16799 $as_echo "$as_val"'`
16800 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16801$as_echo "$ac_res" >&6; }
795ca3e5 16802else
ad6254c5 16803 # Is the header compilable?
ec6a6fbe
AK
16804{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16805$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16806cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16807/* confdefs.h. */
16808_ACEOF
16809cat confdefs.h >>conftest.$ac_ext
16810cat >>conftest.$ac_ext <<_ACEOF
16811/* end confdefs.h. */
16812$ac_includes_default
16813#include <$ac_header>
16814_ACEOF
16815rm -f conftest.$ac_objext
7a197a62
AK
16816if { (ac_try="$ac_compile"
16817case "(($ac_try" in
16818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16819 *) ac_try_echo=$ac_try;;
16820esac
ec6a6fbe
AK
16821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16822$as_echo "$ac_try_echo") >&5
7a197a62 16823 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16824 ac_status=$?
8a2fc586
AK
16825 grep -v '^ *+' conftest.er1 >conftest.err
16826 rm -f conftest.er1
16827 cat conftest.err >&5
ec6a6fbe 16828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16829 (exit $ac_status); } && {
16830 test -z "$ac_c_werror_flag" ||
16831 test ! -s conftest.err
16832 } && test -s conftest.$ac_objext; then
ad6254c5 16833 ac_header_compiler=yes
80992638 16834else
ec6a6fbe 16835 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16836sed 's/^/| /' conftest.$ac_ext >&5
16837
7a197a62 16838 ac_header_compiler=no
ad6254c5 16839fi
7a197a62
AK
16840
16841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16842{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16843$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16844
16845# Is the header present?
ec6a6fbe
AK
16846{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16847$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 16848cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16849/* confdefs.h. */
16850_ACEOF
16851cat confdefs.h >>conftest.$ac_ext
16852cat >>conftest.$ac_ext <<_ACEOF
16853/* end confdefs.h. */
16854#include <$ac_header>
16855_ACEOF
7a197a62
AK
16856if { (ac_try="$ac_cpp conftest.$ac_ext"
16857case "(($ac_try" in
16858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859 *) ac_try_echo=$ac_try;;
16860esac
ec6a6fbe
AK
16861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16862$as_echo "$ac_try_echo") >&5
7a197a62 16863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16864 ac_status=$?
16865 grep -v '^ *+' conftest.er1 >conftest.err
16866 rm -f conftest.er1
16867 cat conftest.err >&5
ec6a6fbe 16868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16869 (exit $ac_status); } >/dev/null && {
16870 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16871 test ! -s conftest.err
16872 }; then
ad6254c5
AK
16873 ac_header_preproc=yes
16874else
ec6a6fbe 16875 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16876sed 's/^/| /' conftest.$ac_ext >&5
16877
16878 ac_header_preproc=no
16879fi
7a197a62 16880
ad6254c5 16881rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16882{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16883$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16884
16885# So? What about this header?
8a2fc586
AK
16886case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16887 yes:no: )
ec6a6fbe
AK
16888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16889$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16891$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16892 ac_header_preproc=yes
ad6254c5 16893 ;;
8a2fc586 16894 no:yes:* )
ec6a6fbe
AK
16895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16896$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16898$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16900$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16902$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16904$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16906$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16907
ad6254c5
AK
16908 ;;
16909esac
ec6a6fbe
AK
16910{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16911$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16912if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16913 $as_echo_n "(cached) " >&6
ad6254c5 16914else
8a2fc586 16915 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 16916fi
ec6a6fbe
AK
16917ac_res=`eval 'as_val=${'$as_ac_Header'}
16918 $as_echo "$as_val"'`
16919 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16920$as_echo "$ac_res" >&6; }
8106cdd5 16921
795ca3e5 16922fi
ec6a6fbe
AK
16923as_val=`eval 'as_val=${'$as_ac_Header'}
16924 $as_echo "$as_val"'`
16925 if test "x$as_val" = x""yes; then
ad6254c5 16926 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16927#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16928_ACEOF
16929
795ca3e5
AK
16930fi
16931
ad6254c5
AK
16932done
16933
ec6a6fbe
AK
16934{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
16935$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 16936if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 16937 $as_echo_n "(cached) " >&6
26e7f2e0 16938else
ad6254c5 16939 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 16940 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
16941 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16942 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16943/* confdefs.h. */
16944_ACEOF
16945cat confdefs.h >>conftest.$ac_ext
16946cat >>conftest.$ac_ext <<_ACEOF
16947/* end confdefs.h. */
16948$ac_includes_default
25fbec5b 16949#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
16950# include <sys/select.h>
16951#endif
25fbec5b 16952#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
16953# include <sys/socket.h>
16954#endif
16955
16956int
16957main ()
16958{
16959extern int select ($ac_arg1,
8a2fc586
AK
16960 $ac_arg234, $ac_arg234, $ac_arg234,
16961 $ac_arg5);
ad6254c5
AK
16962 ;
16963 return 0;
16964}
16965_ACEOF
16966rm -f conftest.$ac_objext
7a197a62
AK
16967if { (ac_try="$ac_compile"
16968case "(($ac_try" in
16969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970 *) ac_try_echo=$ac_try;;
16971esac
ec6a6fbe
AK
16972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16973$as_echo "$ac_try_echo") >&5
7a197a62 16974 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16975 ac_status=$?
8a2fc586
AK
16976 grep -v '^ *+' conftest.er1 >conftest.err
16977 rm -f conftest.er1
16978 cat conftest.err >&5
ec6a6fbe 16979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16980 (exit $ac_status); } && {
16981 test -z "$ac_c_werror_flag" ||
16982 test ! -s conftest.err
16983 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16984 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16985else
ec6a6fbe 16986 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16987sed 's/^/| /' conftest.$ac_ext >&5
16988
7a197a62 16989
ad6254c5 16990fi
7a197a62
AK
16991
16992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
16993 done
16994 done
16995done
16996# Provide a safe default value.
16997: ${ac_cv_func_select_args='int,int *,struct timeval *'}
16998
26e7f2e0 16999fi
ec6a6fbe
AK
17000{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
17001$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
17002ac_save_IFS=$IFS; IFS=','
17003set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
17004IFS=$ac_save_IFS
17005shift
17006
17007cat >>confdefs.h <<_ACEOF
17008#define SELECT_TYPE_ARG1 $1
17009_ACEOF
17010
17011
17012cat >>confdefs.h <<_ACEOF
17013#define SELECT_TYPE_ARG234 ($2)
17014_ACEOF
17015
17016
17017cat >>confdefs.h <<_ACEOF
17018#define SELECT_TYPE_ARG5 ($3)
17019_ACEOF
17020
80992638 17021rm -f conftest*
80992638 17022
8106cdd5 17023fi
ad6254c5 17024
ad6254c5
AK
17025if test x$CLUSTER != xnone; then
17026
17027
17028for ac_header in sys/socket.h sys/un.h
b896caa1 17029do
ec6a6fbe 17030as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 17031if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
17032 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17033$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17034if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17035 $as_echo_n "(cached) " >&6
ad6254c5 17036fi
ec6a6fbe
AK
17037ac_res=`eval 'as_val=${'$as_ac_Header'}
17038 $as_echo "$as_val"'`
17039 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17040$as_echo "$ac_res" >&6; }
ad6254c5
AK
17041else
17042 # Is the header compilable?
ec6a6fbe
AK
17043{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17044$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 17045cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17046/* confdefs.h. */
17047_ACEOF
17048cat confdefs.h >>conftest.$ac_ext
17049cat >>conftest.$ac_ext <<_ACEOF
17050/* end confdefs.h. */
17051$ac_includes_default
17052#include <$ac_header>
17053_ACEOF
17054rm -f conftest.$ac_objext
7a197a62
AK
17055if { (ac_try="$ac_compile"
17056case "(($ac_try" in
17057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058 *) ac_try_echo=$ac_try;;
17059esac
ec6a6fbe
AK
17060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17061$as_echo "$ac_try_echo") >&5
7a197a62 17062 (eval "$ac_compile") 2>conftest.er1
ad6254c5 17063 ac_status=$?
8a2fc586
AK
17064 grep -v '^ *+' conftest.er1 >conftest.err
17065 rm -f conftest.er1
17066 cat conftest.err >&5
ec6a6fbe 17067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17068 (exit $ac_status); } && {
17069 test -z "$ac_c_werror_flag" ||
17070 test ! -s conftest.err
17071 } && test -s conftest.$ac_objext; then
ad6254c5
AK
17072 ac_header_compiler=yes
17073else
ec6a6fbe 17074 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17075sed 's/^/| /' conftest.$ac_ext >&5
17076
7a197a62 17077 ac_header_compiler=no
ad6254c5 17078fi
7a197a62
AK
17079
17080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
17081{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17082$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
17083
17084# Is the header present?
ec6a6fbe
AK
17085{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17086$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 17087cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17088/* confdefs.h. */
17089_ACEOF
17090cat confdefs.h >>conftest.$ac_ext
17091cat >>conftest.$ac_ext <<_ACEOF
17092/* end confdefs.h. */
17093#include <$ac_header>
17094_ACEOF
7a197a62
AK
17095if { (ac_try="$ac_cpp conftest.$ac_ext"
17096case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17099esac
ec6a6fbe
AK
17100eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17101$as_echo "$ac_try_echo") >&5
7a197a62 17102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
17103 ac_status=$?
17104 grep -v '^ *+' conftest.er1 >conftest.err
17105 rm -f conftest.er1
17106 cat conftest.err >&5
ec6a6fbe 17107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17108 (exit $ac_status); } >/dev/null && {
17109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17110 test ! -s conftest.err
17111 }; then
ad6254c5
AK
17112 ac_header_preproc=yes
17113else
ec6a6fbe 17114 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17115sed 's/^/| /' conftest.$ac_ext >&5
17116
17117 ac_header_preproc=no
17118fi
7a197a62 17119
ad6254c5 17120rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
17121{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17122$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
17123
17124# So? What about this header?
8a2fc586
AK
17125case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17126 yes:no: )
ec6a6fbe
AK
17127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17128$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17130$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 17131 ac_header_preproc=yes
ad6254c5 17132 ;;
8a2fc586 17133 no:yes:* )
ec6a6fbe
AK
17134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17135$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17137$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17139$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17141$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17143$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17145$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 17146
ad6254c5
AK
17147 ;;
17148esac
ec6a6fbe
AK
17149{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17150$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17151if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17152 $as_echo_n "(cached) " >&6
ad6254c5 17153else
8a2fc586 17154 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 17155fi
ec6a6fbe
AK
17156ac_res=`eval 'as_val=${'$as_ac_Header'}
17157 $as_echo "$as_val"'`
17158 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17159$as_echo "$ac_res" >&6; }
ad6254c5
AK
17160
17161fi
ec6a6fbe
AK
17162as_val=`eval 'as_val=${'$as_ac_Header'}
17163 $as_echo "$as_val"'`
17164 if test "x$as_val" = x""yes; then
ad6254c5 17165 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17166#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
17167_ACEOF
17168
80992638 17169else
ec6a6fbe
AK
17170 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17171$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 17172 { (exit 1); exit 1; }; }
b896caa1 17173fi
ad6254c5 17174
b896caa1
AK
17175done
17176
17177
ad6254c5
AK
17178for ac_func in socket
17179do
ec6a6fbe
AK
17180as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17181{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17182$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 17183if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17184 $as_echo_n "(cached) " >&6
795ca3e5 17185else
ad6254c5 17186 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17187/* confdefs.h. */
17188_ACEOF
17189cat confdefs.h >>conftest.$ac_ext
17190cat >>conftest.$ac_ext <<_ACEOF
17191/* end confdefs.h. */
8a2fc586
AK
17192/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17194#define $ac_func innocuous_$ac_func
17195
ad6254c5
AK
17196/* System header to define __stub macros and hopefully few prototypes,
17197 which can conflict with char $ac_func (); below.
17198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17199 <limits.h> exists even on freestanding compilers. */
8a2fc586 17200
ad6254c5
AK
17201#ifdef __STDC__
17202# include <limits.h>
17203#else
17204# include <assert.h>
17205#endif
8a2fc586
AK
17206
17207#undef $ac_func
17208
7a197a62
AK
17209/* Override any GCC internal prototype to avoid an error.
17210 Use char because int might match the return type of a GCC
17211 builtin and then its argument prototype would still apply. */
ad6254c5
AK
17212#ifdef __cplusplus
17213extern "C"
ad6254c5 17214#endif
ad6254c5
AK
17215char $ac_func ();
17216/* The GNU C library defines this for functions which it implements
17217 to always fail with ENOSYS. Some functions are actually named
17218 something starting with __ and the normal name is an alias. */
7a197a62 17219#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 17220choke me
ad6254c5
AK
17221#endif
17222
17223int
17224main ()
17225{
7a197a62 17226return $ac_func ();
ad6254c5
AK
17227 ;
17228 return 0;
17229}
17230_ACEOF
17231rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
17232if { (ac_try="$ac_link"
17233case "(($ac_try" in
17234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235 *) ac_try_echo=$ac_try;;
17236esac
ec6a6fbe
AK
17237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17238$as_echo "$ac_try_echo") >&5
7a197a62 17239 (eval "$ac_link") 2>conftest.er1
ad6254c5 17240 ac_status=$?
8a2fc586
AK
17241 grep -v '^ *+' conftest.er1 >conftest.err
17242 rm -f conftest.er1
17243 cat conftest.err >&5
ec6a6fbe 17244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17245 (exit $ac_status); } && {
17246 test -z "$ac_c_werror_flag" ||
17247 test ! -s conftest.err
ec6a6fbe
AK
17248 } && test -s conftest$ac_exeext && {
17249 test "$cross_compiling" = yes ||
17250 $as_test_x conftest$ac_exeext
17251 }; then
ad6254c5
AK
17252 eval "$as_ac_var=yes"
17253else
ec6a6fbe 17254 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17255sed 's/^/| /' conftest.$ac_ext >&5
17256
7a197a62 17257 eval "$as_ac_var=no"
ad6254c5 17258fi
7a197a62 17259
ec6a6fbe 17260rm -rf conftest.dSYM
25fbec5b 17261rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 17262 conftest$ac_exeext conftest.$ac_ext
ad6254c5 17263fi
ec6a6fbe
AK
17264ac_res=`eval 'as_val=${'$as_ac_var'}
17265 $as_echo "$as_val"'`
17266 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17267$as_echo "$ac_res" >&6; }
17268as_val=`eval 'as_val=${'$as_ac_var'}
17269 $as_echo "$as_val"'`
17270 if test "x$as_val" = x""yes; then
ad6254c5 17271 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17272#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
17273_ACEOF
17274
17275else
ec6a6fbe
AK
17276 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17277$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
17278 { (exit 1); exit 1; }; }
17279fi
17280done
17281
17282fi
17283
d911ec67
AK
17284if test x$DMEVENTD = xyes; then
17285
17286for ac_header in arpa/inet.h
17287do
17288as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17289if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17290 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17291$as_echo_n "checking for $ac_header... " >&6; }
17292if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17293 $as_echo_n "(cached) " >&6
17294fi
17295ac_res=`eval 'as_val=${'$as_ac_Header'}
17296 $as_echo "$as_val"'`
17297 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17298$as_echo "$ac_res" >&6; }
17299else
17300 # Is the header compilable?
17301{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17302$as_echo_n "checking $ac_header usability... " >&6; }
17303cat >conftest.$ac_ext <<_ACEOF
17304/* confdefs.h. */
17305_ACEOF
17306cat confdefs.h >>conftest.$ac_ext
17307cat >>conftest.$ac_ext <<_ACEOF
17308/* end confdefs.h. */
17309$ac_includes_default
17310#include <$ac_header>
17311_ACEOF
17312rm -f conftest.$ac_objext
17313if { (ac_try="$ac_compile"
17314case "(($ac_try" in
17315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17316 *) ac_try_echo=$ac_try;;
17317esac
17318eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17319$as_echo "$ac_try_echo") >&5
17320 (eval "$ac_compile") 2>conftest.er1
17321 ac_status=$?
17322 grep -v '^ *+' conftest.er1 >conftest.err
17323 rm -f conftest.er1
17324 cat conftest.err >&5
17325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); } && {
17327 test -z "$ac_c_werror_flag" ||
17328 test ! -s conftest.err
17329 } && test -s conftest.$ac_objext; then
17330 ac_header_compiler=yes
17331else
17332 $as_echo "$as_me: failed program was:" >&5
17333sed 's/^/| /' conftest.$ac_ext >&5
17334
17335 ac_header_compiler=no
17336fi
17337
17338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17339{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17340$as_echo "$ac_header_compiler" >&6; }
17341
17342# Is the header present?
17343{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17344$as_echo_n "checking $ac_header presence... " >&6; }
17345cat >conftest.$ac_ext <<_ACEOF
17346/* confdefs.h. */
17347_ACEOF
17348cat confdefs.h >>conftest.$ac_ext
17349cat >>conftest.$ac_ext <<_ACEOF
17350/* end confdefs.h. */
17351#include <$ac_header>
17352_ACEOF
17353if { (ac_try="$ac_cpp conftest.$ac_ext"
17354case "(($ac_try" in
17355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356 *) ac_try_echo=$ac_try;;
17357esac
17358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17359$as_echo "$ac_try_echo") >&5
17360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17361 ac_status=$?
17362 grep -v '^ *+' conftest.er1 >conftest.err
17363 rm -f conftest.er1
17364 cat conftest.err >&5
17365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); } >/dev/null && {
17367 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17368 test ! -s conftest.err
17369 }; then
17370 ac_header_preproc=yes
17371else
17372 $as_echo "$as_me: failed program was:" >&5
17373sed 's/^/| /' conftest.$ac_ext >&5
17374
17375 ac_header_preproc=no
17376fi
17377
17378rm -f conftest.err conftest.$ac_ext
17379{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17380$as_echo "$ac_header_preproc" >&6; }
17381
17382# So? What about this header?
17383case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17384 yes:no: )
17385 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17386$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17387 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17388$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17389 ac_header_preproc=yes
17390 ;;
17391 no:yes:* )
17392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17393$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17395$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17397$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17399$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17400 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17401$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17403$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17404
17405 ;;
17406esac
17407{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17408$as_echo_n "checking for $ac_header... " >&6; }
17409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17410 $as_echo_n "(cached) " >&6
17411else
17412 eval "$as_ac_Header=\$ac_header_preproc"
17413fi
17414ac_res=`eval 'as_val=${'$as_ac_Header'}
17415 $as_echo "$as_val"'`
17416 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17417$as_echo "$ac_res" >&6; }
17418
17419fi
17420as_val=`eval 'as_val=${'$as_ac_Header'}
17421 $as_echo "$as_val"'`
17422 if test "x$as_val" = x""yes; then
17423 cat >>confdefs.h <<_ACEOF
17424#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17425_ACEOF
17426
17427else
17428 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17429$as_echo "$as_me: error: bailing out" >&2;}
17430 { (exit 1); exit 1; }; }
17431fi
17432
17433done
17434
17435fi
17436
ad6254c5
AK
17437if test x$HAVE_LIBDL = xyes; then
17438
17439for ac_header in dlfcn.h
17440do
ec6a6fbe 17441as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 17442if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
17443 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17444$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17445if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17446 $as_echo_n "(cached) " >&6
ad6254c5 17447fi
ec6a6fbe
AK
17448ac_res=`eval 'as_val=${'$as_ac_Header'}
17449 $as_echo "$as_val"'`
17450 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17451$as_echo "$ac_res" >&6; }
ad6254c5
AK
17452else
17453 # Is the header compilable?
ec6a6fbe
AK
17454{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17455$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 17456cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17457/* confdefs.h. */
17458_ACEOF
17459cat confdefs.h >>conftest.$ac_ext
17460cat >>conftest.$ac_ext <<_ACEOF
17461/* end confdefs.h. */
17462$ac_includes_default
17463#include <$ac_header>
17464_ACEOF
17465rm -f conftest.$ac_objext
7a197a62
AK
17466if { (ac_try="$ac_compile"
17467case "(($ac_try" in
17468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17469 *) ac_try_echo=$ac_try;;
17470esac
ec6a6fbe
AK
17471eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17472$as_echo "$ac_try_echo") >&5
7a197a62 17473 (eval "$ac_compile") 2>conftest.er1
ad6254c5 17474 ac_status=$?
8a2fc586
AK
17475 grep -v '^ *+' conftest.er1 >conftest.err
17476 rm -f conftest.er1
17477 cat conftest.err >&5
ec6a6fbe 17478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17479 (exit $ac_status); } && {
17480 test -z "$ac_c_werror_flag" ||
17481 test ! -s conftest.err
17482 } && test -s conftest.$ac_objext; then
ad6254c5
AK
17483 ac_header_compiler=yes
17484else
ec6a6fbe 17485 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17486sed 's/^/| /' conftest.$ac_ext >&5
17487
7a197a62 17488 ac_header_compiler=no
ad6254c5 17489fi
7a197a62
AK
17490
17491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
17492{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17493$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
17494
17495# Is the header present?
ec6a6fbe
AK
17496{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17497$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 17498cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17499/* confdefs.h. */
17500_ACEOF
17501cat confdefs.h >>conftest.$ac_ext
17502cat >>conftest.$ac_ext <<_ACEOF
17503/* end confdefs.h. */
17504#include <$ac_header>
17505_ACEOF
7a197a62
AK
17506if { (ac_try="$ac_cpp conftest.$ac_ext"
17507case "(($ac_try" in
17508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17510esac
ec6a6fbe
AK
17511eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17512$as_echo "$ac_try_echo") >&5
7a197a62 17513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
17514 ac_status=$?
17515 grep -v '^ *+' conftest.er1 >conftest.err
17516 rm -f conftest.er1
17517 cat conftest.err >&5
ec6a6fbe 17518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17519 (exit $ac_status); } >/dev/null && {
17520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17521 test ! -s conftest.err
17522 }; then
ad6254c5
AK
17523 ac_header_preproc=yes
17524else
ec6a6fbe 17525 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17526sed 's/^/| /' conftest.$ac_ext >&5
17527
17528 ac_header_preproc=no
17529fi
7a197a62 17530
ad6254c5 17531rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
17532{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17533$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
17534
17535# So? What about this header?
8a2fc586
AK
17536case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17537 yes:no: )
ec6a6fbe
AK
17538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17539$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17541$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 17542 ac_header_preproc=yes
ad6254c5 17543 ;;
8a2fc586 17544 no:yes:* )
ec6a6fbe
AK
17545 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17546$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17548$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17550$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17552$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17554$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17556$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 17557
ad6254c5
AK
17558 ;;
17559esac
ec6a6fbe
AK
17560{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17561$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17562if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17563 $as_echo_n "(cached) " >&6
ad6254c5 17564else
8a2fc586 17565 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 17566fi
ec6a6fbe
AK
17567ac_res=`eval 'as_val=${'$as_ac_Header'}
17568 $as_echo "$as_val"'`
17569 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17570$as_echo "$ac_res" >&6; }
80992638 17571
8106cdd5 17572fi
ec6a6fbe
AK
17573as_val=`eval 'as_val=${'$as_ac_Header'}
17574 $as_echo "$as_val"'`
17575 if test "x$as_val" = x""yes; then
ad6254c5 17576 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17577#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 17578_ACEOF
795ca3e5
AK
17579
17580else
ec6a6fbe
AK
17581 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17582$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 17583 { (exit 1); exit 1; }; }
795ca3e5
AK
17584fi
17585
ad6254c5 17586done
80992638 17587
ad6254c5 17588fi
80992638 17589
ad6254c5 17590if test x$INTL = xyes; then
83912faa 17591
ad6254c5
AK
17592for ac_header in libintl.h
17593do
ec6a6fbe 17594as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 17595if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
17596 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17597$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17598if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17599 $as_echo_n "(cached) " >&6
ad6254c5 17600fi
ec6a6fbe
AK
17601ac_res=`eval 'as_val=${'$as_ac_Header'}
17602 $as_echo "$as_val"'`
17603 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17604$as_echo "$ac_res" >&6; }
83912faa 17605else
ad6254c5 17606 # Is the header compilable?
ec6a6fbe
AK
17607{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17608$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 17609cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17610/* confdefs.h. */
17611_ACEOF
17612cat confdefs.h >>conftest.$ac_ext
17613cat >>conftest.$ac_ext <<_ACEOF
17614/* end confdefs.h. */
17615$ac_includes_default
17616#include <$ac_header>
17617_ACEOF
17618rm -f conftest.$ac_objext
7a197a62
AK
17619if { (ac_try="$ac_compile"
17620case "(($ac_try" in
17621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17622 *) ac_try_echo=$ac_try;;
17623esac
ec6a6fbe
AK
17624eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17625$as_echo "$ac_try_echo") >&5
7a197a62 17626 (eval "$ac_compile") 2>conftest.er1
ad6254c5 17627 ac_status=$?
8a2fc586
AK
17628 grep -v '^ *+' conftest.er1 >conftest.err
17629 rm -f conftest.er1
17630 cat conftest.err >&5
ec6a6fbe 17631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17632 (exit $ac_status); } && {
17633 test -z "$ac_c_werror_flag" ||
17634 test ! -s conftest.err
17635 } && test -s conftest.$ac_objext; then
ad6254c5
AK
17636 ac_header_compiler=yes
17637else
ec6a6fbe 17638 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17639sed 's/^/| /' conftest.$ac_ext >&5
17640
7a197a62 17641 ac_header_compiler=no
ad6254c5 17642fi
7a197a62
AK
17643
17644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
17645{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17646$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
17647
17648# Is the header present?
ec6a6fbe
AK
17649{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17650$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 17651cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17652/* confdefs.h. */
17653_ACEOF
17654cat confdefs.h >>conftest.$ac_ext
17655cat >>conftest.$ac_ext <<_ACEOF
17656/* end confdefs.h. */
17657#include <$ac_header>
17658_ACEOF
7a197a62
AK
17659if { (ac_try="$ac_cpp conftest.$ac_ext"
17660case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17663esac
ec6a6fbe
AK
17664eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17665$as_echo "$ac_try_echo") >&5
7a197a62 17666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
17667 ac_status=$?
17668 grep -v '^ *+' conftest.er1 >conftest.err
17669 rm -f conftest.er1
17670 cat conftest.err >&5
ec6a6fbe 17671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17672 (exit $ac_status); } >/dev/null && {
17673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17674 test ! -s conftest.err
17675 }; then
ad6254c5
AK
17676 ac_header_preproc=yes
17677else
ec6a6fbe 17678 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17679sed 's/^/| /' conftest.$ac_ext >&5
17680
17681 ac_header_preproc=no
17682fi
7a197a62 17683
ad6254c5 17684rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
17685{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17686$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
17687
17688# So? What about this header?
8a2fc586
AK
17689case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17690 yes:no: )
ec6a6fbe
AK
17691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17692$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17694$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 17695 ac_header_preproc=yes
ad6254c5 17696 ;;
8a2fc586 17697 no:yes:* )
ec6a6fbe
AK
17698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17699$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17701$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17703$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17705$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17707$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17709$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 17710
ad6254c5
AK
17711 ;;
17712esac
ec6a6fbe
AK
17713{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17714$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17715if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17716 $as_echo_n "(cached) " >&6
80992638 17717else
8a2fc586 17718 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 17719fi
ec6a6fbe
AK
17720ac_res=`eval 'as_val=${'$as_ac_Header'}
17721 $as_echo "$as_val"'`
17722 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17723$as_echo "$ac_res" >&6; }
83912faa 17724
69792976 17725fi
ec6a6fbe
AK
17726as_val=`eval 'as_val=${'$as_ac_Header'}
17727 $as_echo "$as_val"'`
17728 if test "x$as_val" = x""yes; then
ad6254c5 17729 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17730#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 17731_ACEOF
69792976 17732
69792976 17733else
ec6a6fbe
AK
17734 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17735$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 17736 { (exit 1); exit 1; }; }
80992638
AK
17737fi
17738
ad6254c5 17739done
69792976 17740
ad6254c5
AK
17741fi
17742
a5f46f6a
AK
17743if test x$UDEV_SYNC = xyes; then
17744
17745
17746for ac_header in sys/ipc.h sys/sem.h
17747do
17748as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17749if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17750 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17751$as_echo_n "checking for $ac_header... " >&6; }
17752if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17753 $as_echo_n "(cached) " >&6
17754fi
17755ac_res=`eval 'as_val=${'$as_ac_Header'}
17756 $as_echo "$as_val"'`
17757 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17758$as_echo "$ac_res" >&6; }
17759else
17760 # Is the header compilable?
17761{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17762$as_echo_n "checking $ac_header usability... " >&6; }
17763cat >conftest.$ac_ext <<_ACEOF
17764/* confdefs.h. */
17765_ACEOF
17766cat confdefs.h >>conftest.$ac_ext
17767cat >>conftest.$ac_ext <<_ACEOF
17768/* end confdefs.h. */
17769$ac_includes_default
17770#include <$ac_header>
17771_ACEOF
17772rm -f conftest.$ac_objext
17773if { (ac_try="$ac_compile"
17774case "(($ac_try" in
17775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17776 *) ac_try_echo=$ac_try;;
17777esac
17778eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17779$as_echo "$ac_try_echo") >&5
17780 (eval "$ac_compile") 2>conftest.er1
17781 ac_status=$?
17782 grep -v '^ *+' conftest.er1 >conftest.err
17783 rm -f conftest.er1
17784 cat conftest.err >&5
17785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); } && {
17787 test -z "$ac_c_werror_flag" ||
17788 test ! -s conftest.err
17789 } && test -s conftest.$ac_objext; then
17790 ac_header_compiler=yes
17791else
17792 $as_echo "$as_me: failed program was:" >&5
17793sed 's/^/| /' conftest.$ac_ext >&5
17794
17795 ac_header_compiler=no
17796fi
17797
17798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17799{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17800$as_echo "$ac_header_compiler" >&6; }
17801
17802# Is the header present?
17803{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17804$as_echo_n "checking $ac_header presence... " >&6; }
17805cat >conftest.$ac_ext <<_ACEOF
17806/* confdefs.h. */
17807_ACEOF
17808cat confdefs.h >>conftest.$ac_ext
17809cat >>conftest.$ac_ext <<_ACEOF
17810/* end confdefs.h. */
17811#include <$ac_header>
17812_ACEOF
17813if { (ac_try="$ac_cpp conftest.$ac_ext"
17814case "(($ac_try" in
17815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17816 *) ac_try_echo=$ac_try;;
17817esac
17818eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17819$as_echo "$ac_try_echo") >&5
17820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17821 ac_status=$?
17822 grep -v '^ *+' conftest.er1 >conftest.err
17823 rm -f conftest.er1
17824 cat conftest.err >&5
17825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); } >/dev/null && {
17827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17828 test ! -s conftest.err
17829 }; then
17830 ac_header_preproc=yes
17831else
17832 $as_echo "$as_me: failed program was:" >&5
17833sed 's/^/| /' conftest.$ac_ext >&5
17834
17835 ac_header_preproc=no
17836fi
17837
17838rm -f conftest.err conftest.$ac_ext
17839{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17840$as_echo "$ac_header_preproc" >&6; }
17841
17842# So? What about this header?
17843case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17844 yes:no: )
17845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17846$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17848$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17849 ac_header_preproc=yes
17850 ;;
17851 no:yes:* )
17852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17853$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17855$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17857$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17859$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17861$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17863$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17864
17865 ;;
17866esac
17867{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17868$as_echo_n "checking for $ac_header... " >&6; }
17869if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17870 $as_echo_n "(cached) " >&6
17871else
17872 eval "$as_ac_Header=\$ac_header_preproc"
17873fi
17874ac_res=`eval 'as_val=${'$as_ac_Header'}
17875 $as_echo "$as_val"'`
17876 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17877$as_echo "$ac_res" >&6; }
17878
17879fi
17880as_val=`eval 'as_val=${'$as_ac_Header'}
17881 $as_echo "$as_val"'`
17882 if test "x$as_val" = x""yes; then
17883 cat >>confdefs.h <<_ACEOF
17884#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17885_ACEOF
17886
17887else
17888 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17889$as_echo "$as_me: error: bailing out" >&2;}
17890 { (exit 1); exit 1; }; }
17891fi
17892
17893done
17894
17895fi
17896
a653923f
AK
17897################################################################################
17898# Extract the first word of "modprobe", so it can be a program name with args.
17899set dummy modprobe; ac_word=$2
ec6a6fbe
AK
17900{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17901$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 17902if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 17903 $as_echo_n "(cached) " >&6
72b2cb61
AK
17904else
17905 case $MODPROBE_CMD in
17906 [\\/]* | ?:[\\/]*)
17907 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
17908 ;;
17909 *)
17910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17911for as_dir in $PATH
17912do
17913 IFS=$as_save_IFS
17914 test -z "$as_dir" && as_dir=.
17915 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 17916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 17917 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 17918 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
17919 break 2
17920 fi
17921done
17922done
7a197a62 17923IFS=$as_save_IFS
72b2cb61
AK
17924
17925 ;;
17926esac
17927fi
17928MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 17929if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
17930 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
17931$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 17932else
ec6a6fbe
AK
17933 { $as_echo "$as_me:$LINENO: result: no" >&5
17934$as_echo "no" >&6; }
72b2cb61
AK
17935fi
17936
a653923f 17937
7a197a62 17938
a653923f 17939if test x$MODPROBE_CMD != x; then
72b2cb61
AK
17940
17941cat >>confdefs.h <<_ACEOF
17942#define MODPROBE_CMD "$MODPROBE_CMD"
17943_ACEOF
17944
a653923f
AK
17945fi
17946
b5c2529b 17947
a9b601e2
ZK
17948lvm_exec_prefix=$exec_prefix
17949test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
17950test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
17951
b5c2529b 17952cat >>confdefs.h <<_ACEOF
a9b601e2 17953#define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
b5c2529b
ZK
17954_ACEOF
17955
17956
17957if test "$CLVMD" != none; then
17958 clvmd_prefix=$ac_default_prefix
17959 test "$prefix" != NONE && clvmd_prefix=$prefix
17960
17961cat >>confdefs.h <<_ACEOF
17962#define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
17963_ACEOF
17964
17965fi
17966
80992638 17967################################################################################
93bd259b
AK
17968if test "$BUILD_DMEVENTD" = yes; then
17969
17970# Check whether --with-dmeventd-pidfile was given.
17971if test "${with_dmeventd_pidfile+set}" = set; then
71082be4 17972 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
93bd259b 17973else
71082be4 17974 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
93bd259b
AK
17975fi
17976
93bd259b 17977
71082be4
ZK
17978cat >>confdefs.h <<_ACEOF
17979#define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
17980_ACEOF
93bd259b 17981
71082be4 17982fi
93bd259b
AK
17983
17984if test "$BUILD_DMEVENTD" = yes; then
93bd259b
AK
17985
17986# Check whether --with-dmeventd-path was given.
17987if test "${with_dmeventd_path+set}" = set; then
71082be4 17988 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
93bd259b 17989else
71082be4 17990 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
93bd259b
AK
17991fi
17992
93bd259b 17993
71082be4
ZK
17994cat >>confdefs.h <<_ACEOF
17995#define DMEVENTD_PATH "$DMEVENTD_PATH"
17996_ACEOF
3399ae32 17997
71082be4 17998fi
3399ae32 17999
8bae0a1e
AK
18000
18001
18002
18003# Check whether --with-default-run-dir was given.
18004if test "${with_default_run_dir+set}" = set; then
18005 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
18006else
18007 DEFAULT_RUN_DIR="/var/run/lvm"
18008fi
18009
18010cat >>confdefs.h <<_ACEOF
18011#define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
18012_ACEOF
18013
18014
71082be4 18015################################################################################
3399ae32
AK
18016
18017# Check whether --with-default-system-dir was given.
18018if test "${with_default_system_dir+set}" = set; then
71082be4 18019 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
3399ae32 18020else
71082be4 18021 DEFAULT_SYS_DIR="/etc/lvm"
3399ae32
AK
18022fi
18023
71082be4 18024
3399ae32
AK
18025cat >>confdefs.h <<_ACEOF
18026#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
18027_ACEOF
18028
18029
18030
3399ae32
AK
18031# Check whether --with-default-archive-subdir was given.
18032if test "${with_default_archive_subdir+set}" = set; then
71082be4 18033 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
3399ae32 18034else
71082be4 18035 DEFAULT_ARCHIVE_SUBDIR=archive
3399ae32
AK
18036fi
18037
71082be4 18038
3399ae32
AK
18039cat >>confdefs.h <<_ACEOF
18040#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
18041_ACEOF
18042
18043
18044
3399ae32
AK
18045# Check whether --with-default-backup-subdir was given.
18046if test "${with_default_backup_subdir+set}" = set; then
71082be4 18047 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
3399ae32 18048else
71082be4 18049 DEFAULT_BACKUP_SUBDIR=backup
3399ae32
AK
18050fi
18051
71082be4 18052
3399ae32
AK
18053cat >>confdefs.h <<_ACEOF
18054#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
18055_ACEOF
18056
18057
18058
3399ae32
AK
18059# Check whether --with-default-cache-subdir was given.
18060if test "${with_default_cache_subdir+set}" = set; then
71082be4 18061 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
3399ae32 18062else
71082be4 18063 DEFAULT_CACHE_SUBDIR=cache
3399ae32
AK
18064fi
18065
71082be4 18066
3399ae32
AK
18067cat >>confdefs.h <<_ACEOF
18068#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
18069_ACEOF
18070
18071
18072
3399ae32
AK
18073# Check whether --with-default-locking-dir was given.
18074if test "${with_default_locking_dir+set}" = set; then
71082be4 18075 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
3399ae32 18076else
71082be4 18077 DEFAULT_LOCK_DIR="/var/lock/lvm"
3399ae32
AK
18078fi
18079
71082be4 18080
3399ae32
AK
18081cat >>confdefs.h <<_ACEOF
18082#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
18083_ACEOF
18084
18085
fea55602
DW
18086################################################################################
18087
18088# Check whether --with-default-data-alignment was given.
18089if test "${with_default_data_alignment+set}" = set; then
18090 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
18091else
18092 DEFAULT_DATA_ALIGNMENT=1
18093fi
18094
18095
18096cat >>confdefs.h <<_ACEOF
18097#define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
18098_ACEOF
18099
18100
93bd259b 18101################################################################################
ec6a6fbe
AK
18102{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
18103$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
18104
18105# Check whether --with-interface was given.
18106if test "${with_interface+set}" = set; then
71082be4 18107 withval=$with_interface; interface=$withval
93bd259b 18108else
71082be4 18109 interface=ioctl
93bd259b
AK
18110fi
18111
18112if [ "x$interface" != xioctl ];
18113then
ec6a6fbe
AK
18114 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
18115$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
18116 { (exit 1); exit 1; }; }
18117fi
ec6a6fbe
AK
18118{ $as_echo "$as_me:$LINENO: result: $interface" >&5
18119$as_echo "$interface" >&6; }
93bd259b
AK
18120
18121################################################################################
db8b5af9 18122DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
18123
18124cat >>confdefs.h <<_ACEOF
18125#define DM_LIB_VERSION $DM_LIB_VERSION
18126_ACEOF
18127
18128
db8b5af9 18129DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 18130
db8b5af9 18131LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 18132
db8b5af9 18133VER=`cat "$srcdir"/VERSION`
bf456146 18134LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
18135VER=`echo "$VER" | $AWK '{print $1}'`
18136LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
18137VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
18138LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
18139LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
18140LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
18141LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 18142
80992638 18143################################################################################
fae0c576 18144
83912faa 18145
795ca3e5
AK
18146
18147
18148
18149
18150
18151
5a52dca9 18152
8ef2b021 18153
199e490e 18154
69792976
AK
18155
18156
18157
d0191583 18158
69792976 18159
8106cdd5
AK
18160
18161
18162
18163
18164
d68a82ec 18165
036f273a 18166
7d1552c9 18167
8106cdd5 18168
0a62c911 18169
8106cdd5 18170
4a7f3eb2 18171
4922197a
AK
18172
18173
d8ac0fbc 18174
1a9ea74d 18175
8a2fc586
AK
18176
18177
d0191583 18178
93bd259b
AK
18179
18180
18181
18182
18183
d0191583
JM
18184
18185
18186
18187
18188
8a2fc586 18189
19a2c6e0 18190
f7f0854e
ZK
18191
18192
3ceb7608 18193
8ce0cbda 18194
8b1a3214 18195
ec6a6fbe
AK
18196
18197
18198
18199
e2997b73
AK
18200
18201
18202
18203
18204
18205
a946372e
AK
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
ec6a6fbe 18217
33f732c5 18218
66e941e8 18219
d3c8211f 18220
7e3fe830 18221
a5f46f6a
AK
18222
18223
18224
572fefeb 18225
90c80887 18226
3399ae32
AK
18227
18228
18229
18230
18231
90c80887 18232
bf456146 18233
e1b8a236 18234
0878503f 18235
8fea97b7 18236
54b362f9 18237
b1f08e51 18238
d1e8046f 18239
fea55602 18240
68f2de6d
AK
18241
18242
80992638 18243################################################################################
d1e8046f 18244ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
7a197a62 18245
ad6254c5 18246cat >confcache <<\_ACEOF
795ca3e5
AK
18247# This file is a shell script that caches the results of configure
18248# tests run on this system so they can be shared between configure
ad6254c5
AK
18249# scripts and configure runs, see configure's option --config-cache.
18250# It is not useful on other systems. If it contains results you don't
18251# want to keep, you may remove or edit it.
795ca3e5 18252#
ad6254c5
AK
18253# config.status only pays attention to the cache file if you give it
18254# the --recheck option to rerun configure.
795ca3e5 18255#
ad6254c5
AK
18256# `ac_cv_env_foo' variables (set or unset) will be overridden when
18257# loading this file, other *unset* `ac_cv_foo' will be assigned the
18258# following values.
18259
18260_ACEOF
18261
795ca3e5
AK
18262# The following way of writing the cache mishandles newlines in values,
18263# but we know of no workaround that is simple, portable, and efficient.
7a197a62 18264# So, we kill variables containing newlines.
795ca3e5
AK
18265# Ultrix sh set writes to stderr and can't be redirected directly,
18266# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
18267(
18268 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18269 eval ac_val=\$$ac_var
18270 case $ac_val in #(
18271 *${as_nl}*)
18272 case $ac_var in #(
ec6a6fbe
AK
18273 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
18274$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
18275 esac
18276 case $ac_var in #(
18277 _ | IFS | as_nl) ;; #(
ec6a6fbe 18278 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
18279 *) $as_unset $ac_var ;;
18280 esac ;;
18281 esac
18282 done
18283
ad6254c5 18284 (set) 2>&1 |
7a197a62
AK
18285 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18286 *${as_nl}ac_space=\ *)
ad6254c5
AK
18287 # `set' does not quote correctly, so add quotes (double-quote
18288 # substitution turns \\\\ into \\, and sed turns \\ into \).
18289 sed -n \
8a2fc586
AK
18290 "s/'/'\\\\''/g;
18291 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 18292 ;; #(
ad6254c5
AK
18293 *)
18294 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 18295 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 18296 ;;
7a197a62
AK
18297 esac |
18298 sort
18299) |
ad6254c5 18300 sed '
7a197a62 18301 /^ac_cv_env_/b end
ad6254c5 18302 t clear
7a197a62 18303 :clear
ad6254c5
AK
18304 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18305 t end
7a197a62
AK
18306 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18307 :end' >>confcache
18308if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18309 if test -w "$cache_file"; then
18310 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
18311 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
18312$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 18313 cat confcache >$cache_file
795ca3e5 18314 else
ec6a6fbe
AK
18315 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18316$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
18317 fi
18318fi
18319rm -f confcache
18320
795ca3e5
AK
18321test "x$prefix" = xNONE && prefix=$ac_default_prefix
18322# Let make expand exec_prefix.
18323test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18324
72b2cb61 18325DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
18326
18327ac_libobjs=
18328ac_ltlibobjs=
18329for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18330 # 1. Remove the extension, and $U if already installed.
7a197a62 18331 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 18332 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
18333 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18334 # will be set to the directory where LIBOBJS objects are built.
18335 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18336 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
18337done
18338LIBOBJS=$ac_libobjs
80992638 18339
ad6254c5
AK
18340LTLIBOBJS=$ac_ltlibobjs
18341
18342
18343
18344: ${CONFIG_STATUS=./config.status}
ec6a6fbe 18345ac_write_fail=0
ad6254c5
AK
18346ac_clean_files_save=$ac_clean_files
18347ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
18348{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18349$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18350cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
18351#! $SHELL
18352# Generated by $as_me.
795ca3e5 18353# Run this file to recreate the current configuration.
795ca3e5 18354# Compiler output produced by configure, useful for debugging
ad6254c5
AK
18355# configure, is in config.log if it exists.
18356
18357debug=false
18358ac_cs_recheck=false
18359ac_cs_silent=false
18360SHELL=\${CONFIG_SHELL-$SHELL}
18361_ACEOF
18362
ec6a6fbe 18363cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
18364## --------------------- ##
18365## M4sh Initialization. ##
18366## --------------------- ##
18367
25fbec5b
AK
18368# Be more Bourne compatible
18369DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
18370if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18371 emulate sh
18372 NULLCMD=:
ec6a6fbe 18373 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
18374 # is contrary to our usage. Disable this feature.
18375 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
18376 setopt NO_GLOB_SUBST
18377else
25fbec5b
AK
18378 case `(set -o) 2>/dev/null` in
18379 *posix*) set -o posix ;;
18380esac
18381
7a197a62 18382fi
25fbec5b
AK
18383
18384
7a197a62
AK
18385
18386
18387# PATH needs CR
18388# Avoid depending upon Character Ranges.
18389as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18390as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18391as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18392as_cr_digits='0123456789'
18393as_cr_alnum=$as_cr_Letters$as_cr_digits
18394
ec6a6fbe
AK
18395as_nl='
18396'
18397export as_nl
18398# Printing a long string crashes Solaris 7 /usr/bin/printf.
18399as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18400as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18401as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18402if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18403 as_echo='printf %s\n'
18404 as_echo_n='printf %s'
18405else
18406 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18407 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18408 as_echo_n='/usr/ucb/echo -n'
68f2de6d 18409 else
ec6a6fbe
AK
18410 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18411 as_echo_n_body='eval
18412 arg=$1;
18413 case $arg in
18414 *"$as_nl"*)
18415 expr "X$arg" : "X\\(.*\\)$as_nl";
18416 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18417 esac;
18418 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18419 '
18420 export as_echo_n_body
18421 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 18422 fi
ec6a6fbe
AK
18423 export as_echo_body
18424 as_echo='sh -c $as_echo_body as_echo'
18425fi
18426
18427# The user is always right.
18428if test "${PATH_SEPARATOR+set}" != set; then
18429 PATH_SEPARATOR=:
18430 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18431 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18432 PATH_SEPARATOR=';'
18433 }
ad6254c5
AK
18434fi
18435
18436# Support unset when possible.
8a2fc586 18437if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
18438 as_unset=unset
18439else
18440 as_unset=false
18441fi
8106cdd5 18442
ad6254c5 18443
7a197a62
AK
18444# IFS
18445# We need space, tab and new line, in precisely that order. Quoting is
18446# there to prevent editors from complaining about space-tab.
18447# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18448# splitting by setting IFS to empty value.)
7a197a62
AK
18449IFS=" "" $as_nl"
18450
18451# Find who we are. Look in the path if we contain no directory separator.
18452case $0 in
18453 *[\\/]* ) as_myself=$0 ;;
18454 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18455for as_dir in $PATH
18456do
18457 IFS=$as_save_IFS
18458 test -z "$as_dir" && as_dir=.
18459 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18460done
18461IFS=$as_save_IFS
18462
18463 ;;
18464esac
18465# We did not find ourselves, most probably we were run as `sh COMMAND'
18466# in which case we are not to be found in the path.
18467if test "x$as_myself" = x; then
18468 as_myself=$0
18469fi
18470if test ! -f "$as_myself"; then
ec6a6fbe 18471 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
18472 { (exit 1); exit 1; }
18473fi
18474
ad6254c5 18475# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
18476for as_var in ENV MAIL MAILPATH
18477do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18478done
ad6254c5
AK
18479PS1='$ '
18480PS2='> '
18481PS4='+ '
18482
18483# NLS nuisances.
ec6a6fbe
AK
18484LC_ALL=C
18485export LC_ALL
18486LANGUAGE=C
18487export LANGUAGE
8106cdd5 18488
ad6254c5 18489# Required to use basename.
7a197a62
AK
18490if expr a : '\(a\)' >/dev/null 2>&1 &&
18491 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
18492 as_expr=expr
18493else
18494 as_expr=false
18495fi
8106cdd5 18496
7a197a62 18497if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
18498 as_basename=basename
18499else
18500 as_basename=false
18501fi
18502
18503
18504# Name of the executable.
7a197a62 18505as_me=`$as_basename -- "$0" ||
ad6254c5
AK
18506$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18507 X"$0" : 'X\(//\)$' \| \
7a197a62 18508 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 18509$as_echo X/"$0" |
7a197a62
AK
18510 sed '/^.*\/\([^/][^/]*\)\/*$/{
18511 s//\1/
18512 q
18513 }
18514 /^X\/\(\/\/\)$/{
18515 s//\1/
18516 q
18517 }
18518 /^X\/\(\/\).*/{
18519 s//\1/
18520 q
18521 }
18522 s/.*/./; q'`
ad6254c5 18523
7a197a62
AK
18524# CDPATH.
18525$as_unset CDPATH
ad6254c5
AK
18526
18527
ad6254c5 18528
ad6254c5
AK
18529 as_lineno_1=$LINENO
18530 as_lineno_2=$LINENO
ad6254c5 18531 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 18532 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 18533
ad6254c5
AK
18534 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18535 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
18536 # line-number line after each line using $LINENO; the second 'sed'
18537 # does the real work. The second script uses 'N' to pair each
18538 # line-number line with the line containing $LINENO, and appends
18539 # trailing '-' during substitution so that $LINENO is not a special
18540 # case at line end.
ad6254c5 18541 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
18542 # scripts with optimization help from Paolo Bonzini. Blame Lee
18543 # E. McMahon (1931-1989) for sed's syntax. :-)
18544 sed -n '
18545 p
18546 /[$]LINENO/=
18547 ' <$as_myself |
ad6254c5 18548 sed '
7a197a62
AK
18549 s/[$]LINENO.*/&-/
18550 t lineno
18551 b
18552 :lineno
ad6254c5 18553 N
7a197a62
AK
18554 :loop
18555 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 18556 t loop
7a197a62 18557 s/-\n.*//
ad6254c5 18558 ' >$as_me.lineno &&
7a197a62 18559 chmod +x "$as_me.lineno" ||
ec6a6fbe 18560 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
18561 { (exit 1); exit 1; }; }
18562
18563 # Don't try to exec as it changes $[0], causing all sort of problems
18564 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
18565 # original and so on. Autoconf is especially sensitive to this).
18566 . "./$as_me.lineno"
ad6254c5
AK
18567 # Exit status is that of the last command.
18568 exit
18569}
18570
18571
7a197a62
AK
18572if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18573 as_dirname=dirname
18574else
18575 as_dirname=false
18576fi
18577
18578ECHO_C= ECHO_N= ECHO_T=
18579case `echo -n x` in
18580-n*)
18581 case `echo 'x\c'` in
18582 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18583 *) ECHO_C='\c';;
18584 esac;;
18585*)
18586 ECHO_N='-n';;
ad6254c5 18587esac
7a197a62
AK
18588if expr a : '\(a\)' >/dev/null 2>&1 &&
18589 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
18590 as_expr=expr
18591else
18592 as_expr=false
18593fi
80992638 18594
ad6254c5 18595rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
18596if test -d conf$$.dir; then
18597 rm -f conf$$.dir/conf$$.file
18598else
18599 rm -f conf$$.dir
ec6a6fbe
AK
18600 mkdir conf$$.dir 2>/dev/null
18601fi
18602if (echo >conf$$.file) 2>/dev/null; then
18603 if ln -s conf$$.file conf$$ 2>/dev/null; then
18604 as_ln_s='ln -s'
18605 # ... but there are two gotchas:
18606 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18607 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18608 # In both cases, we have to default to `cp -p'.
18609 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18610 as_ln_s='cp -p'
18611 elif ln conf$$.file conf$$ 2>/dev/null; then
18612 as_ln_s=ln
18613 else
ad6254c5 18614 as_ln_s='cp -p'
ec6a6fbe 18615 fi
ad6254c5
AK
18616else
18617 as_ln_s='cp -p'
18618fi
7a197a62
AK
18619rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18620rmdir conf$$.dir 2>/dev/null
8106cdd5 18621
ad6254c5
AK
18622if mkdir -p . 2>/dev/null; then
18623 as_mkdir_p=:
18624else
8a2fc586 18625 test -d ./-p && rmdir ./-p
ad6254c5
AK
18626 as_mkdir_p=false
18627fi
18628
25fbec5b
AK
18629if test -x / >/dev/null 2>&1; then
18630 as_test_x='test -x'
7a197a62 18631else
25fbec5b
AK
18632 if ls -dL / >/dev/null 2>&1; then
18633 as_ls_L_option=L
18634 else
18635 as_ls_L_option=
18636 fi
18637 as_test_x='
18638 eval sh -c '\''
18639 if test -d "$1"; then
ec6a6fbe 18640 test -d "$1/.";
25fbec5b
AK
18641 else
18642 case $1 in
ec6a6fbe 18643 -*)set "./$1";;
25fbec5b
AK
18644 esac;
18645 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18646 ???[sx]*):;;*)false;;esac;fi
18647 '\'' sh
18648 '
7a197a62 18649fi
25fbec5b 18650as_executable_p=$as_test_x
ad6254c5
AK
18651
18652# Sed expression to map a string onto a valid CPP name.
8a2fc586 18653as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
18654
18655# Sed expression to map a string onto a valid variable name.
8a2fc586 18656as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
18657
18658
ad6254c5
AK
18659exec 6>&1
18660
7a197a62 18661# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 18662# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
18663# values after options handling.
18664ac_log="
ad6254c5 18665This file was extended by $as_me, which was
ec6a6fbe 18666generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
18667
18668 CONFIG_FILES = $CONFIG_FILES
18669 CONFIG_HEADERS = $CONFIG_HEADERS
18670 CONFIG_LINKS = $CONFIG_LINKS
18671 CONFIG_COMMANDS = $CONFIG_COMMANDS
18672 $ $0 $@
18673
7a197a62
AK
18674on `(hostname || uname -n) 2>/dev/null | sed 1q`
18675"
18676
ad6254c5
AK
18677_ACEOF
18678
ec6a6fbe
AK
18679case $ac_config_files in *"
18680"*) set x $ac_config_files; shift; ac_config_files=$*;;
18681esac
18682
18683case $ac_config_headers in *"
18684"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18685esac
18686
18687
18688cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 18689# Files that config.status was made for.
68f2de6d
AK
18690config_files="$ac_config_files"
18691config_headers="$ac_config_headers"
ad6254c5 18692
7a197a62 18693_ACEOF
ad6254c5 18694
ec6a6fbe 18695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
18696ac_cs_usage="\
18697\`$as_me' instantiates files from templates according to the
18698current configuration.
18699
ec6a6fbe 18700Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
18701
18702 -h, --help print this help, then exit
25fbec5b 18703 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
18704 -q, --quiet, --silent
18705 do not print progress messages
ad6254c5
AK
18706 -d, --debug don't remove temporary files
18707 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
18708 --file=FILE[:TEMPLATE]
18709 instantiate the configuration file FILE
18710 --header=FILE[:TEMPLATE]
18711 instantiate the configuration header FILE
ad6254c5
AK
18712
18713Configuration files:
18714$config_files
18715
72b2cb61
AK
18716Configuration headers:
18717$config_headers
18718
ad6254c5 18719Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 18720
7a197a62 18721_ACEOF
ec6a6fbe 18722cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
18723ac_cs_version="\\
18724config.status
ec6a6fbe
AK
18725configured by $0, generated by GNU Autoconf 2.63,
18726 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 18727
ec6a6fbe 18728Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
18729This config.status script is free software; the Free Software Foundation
18730gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
18731
18732ac_pwd='$ac_pwd'
18733srcdir='$srcdir'
18734INSTALL='$INSTALL'
fddafd51 18735MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
18736AWK='$AWK'
18737test -n "\$AWK" || AWK=awk
ad6254c5
AK
18738_ACEOF
18739
ec6a6fbe
AK
18740cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18741# The default lists apply if the user does not specify any file.
ad6254c5
AK
18742ac_need_defaults=:
18743while test $# != 0
18744do
18745 case $1 in
18746 --*=*)
7a197a62
AK
18747 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18748 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
18749 ac_shift=:
18750 ;;
7a197a62 18751 *)
ad6254c5
AK
18752 ac_option=$1
18753 ac_optarg=$2
18754 ac_shift=shift
18755 ;;
ad6254c5
AK
18756 esac
18757
18758 case $ac_option in
18759 # Handling of the options.
ad6254c5
AK
18760 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18761 ac_cs_recheck=: ;;
7a197a62 18762 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 18763 $as_echo "$ac_cs_version"; exit ;;
7a197a62 18764 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
18765 debug=: ;;
18766 --file | --fil | --fi | --f )
18767 $ac_shift
ec6a6fbe
AK
18768 case $ac_optarg in
18769 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18770 esac
18771 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
18772 ac_need_defaults=false;;
18773 --header | --heade | --head | --hea )
18774 $ac_shift
ec6a6fbe
AK
18775 case $ac_optarg in
18776 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18777 esac
18778 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 18779 ac_need_defaults=false;;
7a197a62
AK
18780 --he | --h)
18781 # Conflict between --help and --header
ec6a6fbe 18782 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
18783Try \`$0 --help' for more information." >&2
18784 { (exit 1); exit 1; }; };;
18785 --help | --hel | -h )
ec6a6fbe 18786 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
18787 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18788 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18789 ac_cs_silent=: ;;
18790
18791 # This is an error.
ec6a6fbe 18792 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 18793Try \`$0 --help' for more information." >&2
ad6254c5
AK
18794 { (exit 1); exit 1; }; } ;;
18795
7a197a62
AK
18796 *) ac_config_targets="$ac_config_targets $1"
18797 ac_need_defaults=false ;;
ad6254c5
AK
18798
18799 esac
18800 shift
18801done
18802
18803ac_configure_extra_args=
18804
18805if $ac_cs_silent; then
18806 exec 6>/dev/null
18807 ac_configure_extra_args="$ac_configure_extra_args --silent"
18808fi
18809
18810_ACEOF
ec6a6fbe 18811cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 18812if \$ac_cs_recheck; then
ec6a6fbe
AK
18813 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18814 shift
18815 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18816 CONFIG_SHELL='$SHELL'
7a197a62 18817 export CONFIG_SHELL
ec6a6fbe 18818 exec "\$@"
ad6254c5
AK
18819fi
18820
18821_ACEOF
ec6a6fbe 18822cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
18823exec 5>>config.log
18824{
18825 echo
18826 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18827## Running $as_me. ##
18828_ASBOX
ec6a6fbe 18829 $as_echo "$ac_log"
7a197a62 18830} >&5
ad6254c5 18831
7a197a62 18832_ACEOF
ec6a6fbe 18833cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 18834_ACEOF
ad6254c5 18835
ec6a6fbe 18836cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
18837
18838# Handling of arguments.
ad6254c5
AK
18839for ac_config_target in $ac_config_targets
18840do
7a197a62
AK
18841 case $ac_config_target in
18842 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
18843 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18844 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
18845 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
18846 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 18847 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
18848 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
18849 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 18850 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 18851 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
93bd259b
AK
18852 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
18853 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 18854 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
da05c479 18855 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
db8b5af9 18856 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
18857 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18858 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
18859 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
18860 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
18861 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
18862 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
8fea97b7 18863 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
ec6a6fbe 18864 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 18865 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
18866 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
18867 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 18868 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 18869 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
18870 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18871 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 18872 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 18873 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 18874 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
7a197a62 18875 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 18876 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 18877 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 18878 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 18879 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
54b362f9
AK
18880 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
18881 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
d1e8046f 18882 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
7a197a62 18883
ec6a6fbe
AK
18884 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18885$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 18886 { (exit 1); exit 1; }; };;
80992638 18887 esac
ad6254c5
AK
18888done
18889
7a197a62 18890
ad6254c5
AK
18891# If the user did not use the arguments to specify the items to instantiate,
18892# then the envvar interface is used. Set only those that are not.
18893# We use the long form for the default assignment because of an extremely
18894# bizarre bug on SunOS 4.1.3.
18895if $ac_need_defaults; then
18896 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 18897 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
18898fi
18899
18900# Have a temporary directory for convenience. Make it in the build tree
7a197a62 18901# simply because there is no reason against having it here, and in addition,
ad6254c5 18902# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
18903# Hook for its removal unless debugging.
18904# Note that there is a small window in which the directory will not be cleaned:
18905# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
18906$debug ||
18907{
7a197a62
AK
18908 tmp=
18909 trap 'exit_status=$?
18910 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18911' 0
ad6254c5
AK
18912 trap '{ (exit 1); exit 1; }' 1 2 13 15
18913}
ad6254c5
AK
18914# Create a (secure) tmp directory for tmp files.
18915
18916{
7a197a62 18917 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
18918 test -n "$tmp" && test -d "$tmp"
18919} ||
18920{
7a197a62
AK
18921 tmp=./conf$$-$RANDOM
18922 (umask 077 && mkdir "$tmp")
ad6254c5
AK
18923} ||
18924{
ec6a6fbe 18925 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
18926 { (exit 1); exit 1; }
18927}
18928
ec6a6fbe
AK
18929# Set up the scripts for CONFIG_FILES section.
18930# No need to generate them if there are no CONFIG_FILES.
18931# This happens for instance with `./config.status config.h'.
1995c9ff 18932if test -n "$CONFIG_FILES"; then
7a197a62 18933
68f2de6d 18934
ec6a6fbe
AK
18935ac_cr='\r'
18936ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18937if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18938 ac_cs_awk_cr='\\r'
18939else
18940 ac_cs_awk_cr=$ac_cr
1995c9ff 18941fi
7a197a62 18942
ec6a6fbe 18943echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 18944_ACEOF
7a197a62 18945
8106cdd5 18946
ec6a6fbe
AK
18947{
18948 echo "cat >conf$$subs.awk <<_ACEOF" &&
18949 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18950 echo "_ACEOF"
18951} >conf$$subs.sh ||
18952 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18953$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18954 { (exit 1); exit 1; }; }
18955ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
18956ac_delim='%!_!# '
18957for ac_last_try in false false false false false :; do
ec6a6fbe
AK
18958 . ./conf$$subs.sh ||
18959 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18960$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18961 { (exit 1); exit 1; }; }
18962
18963 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18964 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
18965 break
18966 elif $ac_last_try; then
ec6a6fbe
AK
18967 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18968$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
18969 { (exit 1); exit 1; }; }
18970 else
18971 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18972 fi
18973done
ec6a6fbe
AK
18974rm -f conf$$subs.sh
18975
18976cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18977cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18978_ACEOF
18979sed -n '
18980h
18981s/^/S["/; s/!.*/"]=/
18982p
18983g
18984s/^[^!]*!//
18985:repl
18986t repl
18987s/'"$ac_delim"'$//
18988t delim
18989:nl
18990h
18991s/\(.\{148\}\).*/\1/
18992t more1
18993s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18994p
18995n
18996b repl
18997:more1
18998s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18999p
19000g
19001s/.\{148\}//
19002t nl
19003:delim
19004h
19005s/\(.\{148\}\).*/\1/
19006t more2
19007s/["\\]/\\&/g; s/^/"/; s/$/"/
19008p
19009b
19010:more2
19011s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19012p
19013g
19014s/.\{148\}//
19015t delim
19016' <conf$$subs.awk | sed '
19017/^[^""]/{
19018 N
19019 s/\n//
19020}
19021' >>$CONFIG_STATUS || ac_write_fail=1
19022rm -f conf$$subs.awk
19023cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19024_ACAWK
19025cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19026 for (key in S) S_is_set[key] = 1
19027 FS = "\a"
7a197a62 19028
ec6a6fbe
AK
19029}
19030{
19031 line = $ 0
19032 nfields = split(line, field, "@")
19033 substed = 0
19034 len = length(field[1])
19035 for (i = 2; i < nfields; i++) {
19036 key = field[i]
19037 keylen = length(key)
19038 if (S_is_set[key]) {
19039 value = S[key]
19040 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19041 len += length(value) + length(field[++i])
19042 substed = 1
19043 } else
19044 len += 1 + keylen
19045 }
19046
19047 print line
19048}
fddafd51 19049
ec6a6fbe 19050_ACAWK
1995c9ff 19051_ACEOF
ec6a6fbe
AK
19052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19053if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19054 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19055else
19056 cat
19057fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19058 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
19059$as_echo "$as_me: error: could not setup config files machinery" >&2;}
19060 { (exit 1); exit 1; }; }
7a197a62
AK
19061_ACEOF
19062
7a197a62
AK
19063# VPATH may cause trouble with some makes, so we remove $(srcdir),
19064# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19065# trailing colons and then remove the whole line if VPATH becomes empty
19066# (actually we leave an empty line to preserve line numbers).
19067if test "x$srcdir" = x.; then
19068 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19069s/:*\$(srcdir):*/:/
19070s/:*\${srcdir}:*/:/
19071s/:*@srcdir@:*/:/
19072s/^\([^=]*=[ ]*\):*/\1/
19073s/:*$//
19074s/^[^=]*=[ ]*$//
19075}'
19076fi
19077
ec6a6fbe 19078cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
19079fi # test -n "$CONFIG_FILES"
19080
ec6a6fbe
AK
19081# Set up the scripts for CONFIG_HEADERS section.
19082# No need to generate them if there are no CONFIG_HEADERS.
19083# This happens for instance with `./config.status Makefile'.
19084if test -n "$CONFIG_HEADERS"; then
19085cat >"$tmp/defines.awk" <<\_ACAWK ||
19086BEGIN {
19087_ACEOF
19088
19089# Transform confdefs.h into an awk script `defines.awk', embedded as
19090# here-document in config.status, that substitutes the proper values into
19091# config.h.in to produce config.h.
19092
19093# Create a delimiter string that does not exist in confdefs.h, to ease
19094# handling of long lines.
19095ac_delim='%!_!# '
19096for ac_last_try in false false :; do
19097 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19098 if test -z "$ac_t"; then
19099 break
19100 elif $ac_last_try; then
19101 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
19102$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
19103 { (exit 1); exit 1; }; }
19104 else
19105 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19106 fi
19107done
19108
19109# For the awk script, D is an array of macro values keyed by name,
19110# likewise P contains macro parameters if any. Preserve backslash
19111# newline sequences.
19112
19113ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19114sed -n '
19115s/.\{148\}/&'"$ac_delim"'/g
19116t rset
19117:rset
19118s/^[ ]*#[ ]*define[ ][ ]*/ /
19119t def
19120d
19121:def
19122s/\\$//
19123t bsnl
19124s/["\\]/\\&/g
19125s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19126D["\1"]=" \3"/p
19127s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19128d
19129:bsnl
19130s/["\\]/\\&/g
19131s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19132D["\1"]=" \3\\\\\\n"\\/p
19133t cont
19134s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19135t cont
19136d
19137:cont
19138n
19139s/.\{148\}/&'"$ac_delim"'/g
19140t clear
19141:clear
19142s/\\$//
19143t bsnlc
19144s/["\\]/\\&/g; s/^/"/; s/$/"/p
19145d
19146:bsnlc
19147s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19148b cont
19149' <confdefs.h | sed '
19150s/'"$ac_delim"'/"\\\
19151"/g' >>$CONFIG_STATUS || ac_write_fail=1
19152
19153cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19154 for (key in D) D_is_set[key] = 1
19155 FS = "\a"
19156}
19157/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19158 line = \$ 0
19159 split(line, arg, " ")
19160 if (arg[1] == "#") {
19161 defundef = arg[2]
19162 mac1 = arg[3]
19163 } else {
19164 defundef = substr(arg[1], 2)
19165 mac1 = arg[2]
19166 }
19167 split(mac1, mac2, "(") #)
19168 macro = mac2[1]
19169 prefix = substr(line, 1, index(line, defundef) - 1)
19170 if (D_is_set[macro]) {
19171 # Preserve the white space surrounding the "#".
19172 print prefix "define", macro P[macro] D[macro]
19173 next
19174 } else {
19175 # Replace #undef with comments. This is necessary, for example,
19176 # in the case of _POSIX_SOURCE, which is predefined and required
19177 # on some systems where configure will not decide to define it.
19178 if (defundef == "undef") {
19179 print "/*", prefix defundef, macro, "*/"
19180 next
19181 }
19182 }
19183}
19184{ print }
19185_ACAWK
19186_ACEOF
19187cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19188 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19189$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19190 { (exit 1); exit 1; }; }
19191fi # test -n "$CONFIG_HEADERS"
19192
7a197a62 19193
ec6a6fbe
AK
19194eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
19195shift
19196for ac_tag
7a197a62
AK
19197do
19198 case $ac_tag in
19199 :[FHLC]) ac_mode=$ac_tag; continue;;
19200 esac
19201 case $ac_mode$ac_tag in
19202 :[FHL]*:*);;
ec6a6fbe
AK
19203 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19204$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
19205 { (exit 1); exit 1; }; };;
19206 :[FH]-) ac_tag=-:-;;
19207 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19208 esac
19209 ac_save_IFS=$IFS
19210 IFS=:
19211 set x $ac_tag
19212 IFS=$ac_save_IFS
19213 shift
19214 ac_file=$1
19215 shift
19216
19217 case $ac_mode in
19218 :L) ac_source=$1;;
19219 :[FH])
19220 ac_file_inputs=
19221 for ac_f
19222 do
19223 case $ac_f in
19224 -) ac_f="$tmp/stdin";;
19225 *) # Look for the file first in the build tree, then in the source tree
19226 # (if the path is not absolute). The absolute path cannot be DOS-style,
19227 # because $ac_f cannot contain `:'.
19228 test -f "$ac_f" ||
19229 case $ac_f in
19230 [\\/$]*) false;;
19231 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19232 esac ||
ec6a6fbe
AK
19233 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19234$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
19235 { (exit 1); exit 1; }; };;
19236 esac
ec6a6fbe
AK
19237 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19238 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
19239 done
19240
19241 # Let's still pretend it is `configure' which instantiates (i.e., don't
19242 # use $as_me), people would be surprised to read:
19243 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
19244 configure_input='Generated from '`
19245 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19246 `' by configure.'
7a197a62
AK
19247 if test x"$ac_file" != x-; then
19248 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
19249 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19250$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 19251 fi
ec6a6fbe
AK
19252 # Neutralize special characters interpreted by sed in replacement strings.
19253 case $configure_input in #(
19254 *\&* | *\|* | *\\* )
19255 ac_sed_conf_input=`$as_echo "$configure_input" |
19256 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19257 *) ac_sed_conf_input=$configure_input;;
19258 esac
7a197a62
AK
19259
19260 case $ac_tag in
ec6a6fbe
AK
19261 *:-:* | *:-) cat >"$tmp/stdin" \
19262 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19263$as_echo "$as_me: error: could not create $ac_file" >&2;}
19264 { (exit 1); exit 1; }; } ;;
7a197a62
AK
19265 esac
19266 ;;
80992638 19267 esac
8106cdd5 19268
7a197a62 19269 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 19270$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
19271 X"$ac_file" : 'X\(//\)[^/]' \| \
19272 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 19273 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 19274$as_echo X"$ac_file" |
7a197a62
AK
19275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19276 s//\1/
19277 q
19278 }
19279 /^X\(\/\/\)[^/].*/{
19280 s//\1/
19281 q
19282 }
19283 /^X\(\/\/\)$/{
19284 s//\1/
19285 q
19286 }
19287 /^X\(\/\).*/{
19288 s//\1/
19289 q
19290 }
19291 s/.*/./; q'`
19292 { as_dir="$ac_dir"
19293 case $as_dir in #(
19294 -*) as_dir=./$as_dir;;
19295 esac
19296 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 19297 as_dirs=
7a197a62
AK
19298 while :; do
19299 case $as_dir in #(
ec6a6fbe 19300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
19301 *) as_qdir=$as_dir;;
19302 esac
19303 as_dirs="'$as_qdir' $as_dirs"
19304 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 19305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
19306 X"$as_dir" : 'X\(//\)[^/]' \| \
19307 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 19308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 19309$as_echo X"$as_dir" |
7a197a62
AK
19310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19311 s//\1/
19312 q
19313 }
19314 /^X\(\/\/\)[^/].*/{
19315 s//\1/
19316 q
19317 }
19318 /^X\(\/\/\)$/{
19319 s//\1/
19320 q
19321 }
19322 /^X\(\/\).*/{
19323 s//\1/
19324 q
19325 }
19326 s/.*/./; q'`
19327 test -d "$as_dir" && break
ad6254c5 19328 done
7a197a62 19329 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
19330 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19331$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 19332 { (exit 1); exit 1; }; }; }
ad6254c5
AK
19333 ac_builddir=.
19334
7a197a62
AK
19335case "$ac_dir" in
19336.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19337*)
ec6a6fbe 19338 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 19339 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 19340 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
19341 case $ac_top_builddir_sub in
19342 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19343 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19344 esac ;;
19345esac
19346ac_abs_top_builddir=$ac_pwd
19347ac_abs_builddir=$ac_pwd$ac_dir_suffix
19348# for backward compatibility:
19349ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
19350
19351case $srcdir in
7a197a62 19352 .) # We are building in place.
ad6254c5 19353 ac_srcdir=.
7a197a62
AK
19354 ac_top_srcdir=$ac_top_builddir_sub
19355 ac_abs_top_srcdir=$ac_pwd ;;
19356 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 19357 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
19358 ac_top_srcdir=$srcdir
19359 ac_abs_top_srcdir=$srcdir ;;
19360 *) # Relative name.
19361 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19362 ac_top_srcdir=$ac_top_build_prefix$srcdir
19363 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 19364esac
7a197a62 19365ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 19366
ad6254c5 19367
7a197a62
AK
19368 case $ac_mode in
19369 :F)
19370 #
19371 # CONFIG_FILE
19372 #
ad6254c5
AK
19373
19374 case $INSTALL in
19375 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 19376 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 19377 esac
fddafd51
ZK
19378 ac_MKDIR_P=$MKDIR_P
19379 case $MKDIR_P in
19380 [\\/$]* | ?:[\\/]* ) ;;
19381 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19382 esac
7a197a62 19383_ACEOF
795ca3e5 19384
ec6a6fbe 19385cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
19386# If the template does not know about datarootdir, expand it.
19387# FIXME: This hack should be removed a few years after 2.60.
19388ac_datarootdir_hack=; ac_datarootdir_seen=
19389
ec6a6fbe
AK
19390ac_sed_dataroot='
19391/datarootdir/ {
7a197a62
AK
19392 p
19393 q
19394}
19395/@datadir@/p
19396/@docdir@/p
19397/@infodir@/p
19398/@localedir@/p
19399/@mandir@/p
ec6a6fbe
AK
19400'
19401case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
19402*datarootdir*) ac_datarootdir_seen=yes;;
19403*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
19404 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19405$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 19406_ACEOF
ec6a6fbe 19407cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
19408 ac_datarootdir_hack='
19409 s&@datadir@&$datadir&g
19410 s&@docdir@&$docdir&g
19411 s&@infodir@&$infodir&g
19412 s&@localedir@&$localedir&g
19413 s&@mandir@&$mandir&g
19414 s&\\\${datarootdir}&$datarootdir&g' ;;
19415esac
19416_ACEOF
19417
19418# Neutralize VPATH when `$srcdir' = `.'.
19419# Shell code in configure.ac might set extrasub.
19420# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
19421cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19422ac_sed_extra="$ac_vpsub
ad6254c5
AK
19423$extrasub
19424_ACEOF
ec6a6fbe 19425cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
19426:t
19427/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 19428s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 19429s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 19430s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
19431s&@srcdir@&$ac_srcdir&;t t
19432s&@abs_srcdir@&$ac_abs_srcdir&;t t
19433s&@top_srcdir@&$ac_top_srcdir&;t t
19434s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19435s&@builddir@&$ac_builddir&;t t
19436s&@abs_builddir@&$ac_abs_builddir&;t t
19437s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19438s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 19439s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 19440$ac_datarootdir_hack
ec6a6fbe
AK
19441"
19442eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19443 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19444$as_echo "$as_me: error: could not create $ac_file" >&2;}
19445 { (exit 1); exit 1; }; }
7a197a62
AK
19446
19447test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19448 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19449 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 19450 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 19451which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 19452$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
19453which seems to be undefined. Please make sure it is defined." >&2;}
19454
19455 rm -f "$tmp/stdin"
72b2cb61 19456 case $ac_file in
ec6a6fbe
AK
19457 -) cat "$tmp/out" && rm -f "$tmp/out";;
19458 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19459 esac \
19460 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19461$as_echo "$as_me: error: could not create $ac_file" >&2;}
19462 { (exit 1); exit 1; }; }
7a197a62
AK
19463 ;;
19464 :H)
19465 #
19466 # CONFIG_HEADER
19467 #
72b2cb61 19468 if test x"$ac_file" != x-; then
ec6a6fbe
AK
19469 {
19470 $as_echo "/* $configure_input */" \
19471 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19472 } >"$tmp/config.h" \
19473 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19474$as_echo "$as_me: error: could not create $ac_file" >&2;}
19475 { (exit 1); exit 1; }; }
19476 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19477 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19478$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 19479 else
ec6a6fbe
AK
19480 rm -f "$ac_file"
19481 mv "$tmp/config.h" "$ac_file" \
19482 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19483$as_echo "$as_me: error: could not create $ac_file" >&2;}
19484 { (exit 1); exit 1; }; }
72b2cb61
AK
19485 fi
19486 else
ec6a6fbe
AK
19487 $as_echo "/* $configure_input */" \
19488 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19489 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19490$as_echo "$as_me: error: could not create -" >&2;}
19491 { (exit 1); exit 1; }; }
72b2cb61 19492 fi
7a197a62
AK
19493 ;;
19494
19495
19496 esac
19497
19498done # for ac_tag
795ca3e5 19499
795ca3e5 19500
ad6254c5
AK
19501{ (exit 0); exit 0; }
19502_ACEOF
795ca3e5 19503chmod +x $CONFIG_STATUS
ad6254c5
AK
19504ac_clean_files=$ac_clean_files_save
19505
ec6a6fbe
AK
19506test $ac_write_fail = 0 ||
19507 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
19508$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
19509 { (exit 1); exit 1; }; }
19510
ad6254c5
AK
19511
19512# configure is writing to config.log, and then calls config.status.
19513# config.status does its own redirection, appending to config.log.
19514# Unfortunately, on DOS this fails, as config.log is still kept open
19515# by configure, so config.status won't be able to write to it; its
19516# output is simply discarded. So we exec the FD to /dev/null,
19517# effectively closing config.log, so it can be properly (re)opened and
19518# appended to by config.status. When coming back to configure, we
19519# need to make the FD available again.
19520if test "$no_create" != yes; then
19521 ac_cs_success=:
19522 ac_config_status_args=
19523 test "$silent" = yes &&
19524 ac_config_status_args="$ac_config_status_args --quiet"
19525 exec 5>/dev/null
19526 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19527 exec 5>>config.log
19528 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19529 # would make configure fail if this is the last instruction.
19530 $ac_cs_success || { (exit 1); exit 1; }
19531fi
ec6a6fbe
AK
19532if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19533 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19534$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19535fi
795ca3e5 19536
2dc95e1c
AK
19537
19538if test x$ODIRECT != xyes; then
ec6a6fbe
AK
19539 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
19540$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 19541fi
This page took 2.367689 seconds and 5 git commands to generate.