]> sourceware.org Git - lvm2.git/blame - configure
Add alphabetical vgname ordering tests for vgsplit, vgmerge, vgrename.
[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
649LIB_PTHREAD
a5f46f6a 650UDEV_RULES
ec6a6fbe
AK
651STATIC_LINK
652STATICDIR
653SNAPSHOTS
654POOL
655PKGCONFIG
656OWNER
657MIRRORS
658LVM_RELEASE_DATE
659LVM_RELEASE
660LVM_PATCHLEVEL
661LVM_MINOR
662LVM_MAJOR
bf456146 663LVM_LIBAPI
ec6a6fbe 664LVM_VERSION
ec6a6fbe
AK
665LVM1_FALLBACK
666LVM1
667LOCALEDIR
668LIB_SUFFIX
669LDDEPS
670JOBS
671INTL_PACKAGE
672INTL
673HAVE_SELINUX
674HAVE_REALTIME
675HAVE_LIBDL
676GROUP
677FSADM
678DM_LIB_PATCHLEVEL
679DM_LIB_VERSION
680DM_IOCTLS
681DM_DEVICE_UID
682DM_DEVICE_MODE
683DM_DEVICE_GID
684DM_COMPAT
685DMEVENTD
686DEVMAPPER
687DEBUG
688COPTIMISE_FLAG
e2997b73 689CONFDIR
ec6a6fbe
AK
690CMDLIB
691CLVMD
692CLUSTER
693CLDWHOLEARCHIVE
694CLDNOWHOLEARCHIVE
695CLDFLAGS
696BUILD_DMEVENTD
66fd4529 697BUILD_CMIRRORD
572fefeb 698APPLIB
ec6a6fbe
AK
699MODPROBE_CMD
700MSGFMT
701LVM2CMD_LIB
572fefeb 702LVM2APP_LIB
ec6a6fbe
AK
703GENHTML
704LCOV
a946372e
AK
705DLM_LIBS
706DLM_CFLAGS
e2997b73
AK
707CPG_LIBS
708CPG_CFLAGS
709CONFDB_LIBS
710CONFDB_CFLAGS
a946372e
AK
711SALCK_LIBS
712SALCK_CFLAGS
e2997b73
AK
713QUORUM_LIBS
714QUORUM_CFLAGS
a946372e
AK
715COROSYNC_LIBS
716COROSYNC_CFLAGS
717CMAN_LIBS
718CMAN_CFLAGS
719GULM_LIBS
720GULM_CFLAGS
721CCS_LIBS
722CCS_CFLAGS
723PKGCONFIGINIT_LIBS
724PKGCONFIGINIT_CFLAGS
e2997b73 725PKG_CONFIG
ec6a6fbe
AK
726POW_LIB
727LIBOBJS
728ALLOCA
729CSCOPE_CMD
730CFLOW_CMD
731RANLIB
732MKDIR_P
733SET_MAKE
734LN_S
735INSTALL_DATA
736INSTALL_SCRIPT
737INSTALL_PROGRAM
738EGREP
739GREP
740CPP
741OBJEXT
742EXEEXT
743ac_ct_CC
744CPPFLAGS
745LDFLAGS
746CFLAGS
747CC
748AWK
749SED
750target_os
751target_vendor
752target_cpu
753target
754host_os
755host_vendor
756host_cpu
757host
758build_os
759build_vendor
760build_cpu
761build
762target_alias
763host_alias
764build_alias
765LIBS
766ECHO_T
767ECHO_N
768ECHO_C
769DEFS
770mandir
771localedir
772libdir
773psdir
774pdfdir
775dvidir
776htmldir
777infodir
778docdir
779oldincludedir
780includedir
781localstatedir
782sharedstatedir
783sysconfdir
784datadir
785datarootdir
786libexecdir
787sbindir
788bindir
789program_transform_name
790prefix
791exec_prefix
792PACKAGE_BUGREPORT
793PACKAGE_STRING
794PACKAGE_VERSION
795PACKAGE_TARNAME
796PACKAGE_NAME
797PATH_SEPARATOR
798SHELL'
ad6254c5 799ac_subst_files=''
ec6a6fbe
AK
800ac_user_opts='
801enable_option_checking
802enable_static_link
803with_user
804with_group
805with_device_uid
806with_device_gid
807with_device_mode
808enable_lvm1_fallback
809with_lvm1
810with_pool
811with_cluster
812with_snapshots
813with_mirrors
814enable_readline
815enable_realtime
816with_clvmd
66fd4529
AK
817enable_cmirrord
818with_cmirrord_pidfile
ec6a6fbe
AK
819enable_debug
820with_optimisation
821enable_profiling
822enable_devmapper
a5f46f6a
AK
823enable_udev_sync
824enable_udev_rules
ec6a6fbe
AK
825enable_compat
826enable_ioctl
827enable_o_direct
572fefeb 828enable_applib
ec6a6fbe
AK
829enable_cmdlib
830enable_pkgconfig
831enable_fsadm
832enable_dmeventd
833enable_selinux
834enable_nls
835with_localedir
836with_confdir
837with_staticdir
838with_usrlibdir
839with_usrsbindir
a5f46f6a 840with_udev_prefix
78ce7acc 841with_udevdir
ec6a6fbe
AK
842with_dmeventd_pidfile
843with_dmeventd_path
844with_interface
845'
7a197a62
AK
846 ac_precious_vars='build_alias
847host_alias
848target_alias
849CC
850CFLAGS
851LDFLAGS
25fbec5b 852LIBS
7a197a62 853CPPFLAGS
e2997b73
AK
854CPP
855PKG_CONFIG
a946372e
AK
856PKGCONFIGINIT_CFLAGS
857PKGCONFIGINIT_LIBS
858CCS_CFLAGS
859CCS_LIBS
860GULM_CFLAGS
861GULM_LIBS
862CMAN_CFLAGS
863CMAN_LIBS
864COROSYNC_CFLAGS
865COROSYNC_LIBS
e2997b73
AK
866QUORUM_CFLAGS
867QUORUM_LIBS
a946372e
AK
868SALCK_CFLAGS
869SALCK_LIBS
e2997b73
AK
870CONFDB_CFLAGS
871CONFDB_LIBS
872CPG_CFLAGS
a946372e
AK
873CPG_LIBS
874DLM_CFLAGS
875DLM_LIBS'
7a197a62 876
795ca3e5
AK
877
878# Initialize some variables set by options.
ad6254c5
AK
879ac_init_help=
880ac_init_version=false
ec6a6fbe
AK
881ac_unrecognized_opts=
882ac_unrecognized_sep=
795ca3e5
AK
883# The variables have the same names as the options, with
884# dashes changed to underlines.
ad6254c5 885cache_file=/dev/null
795ca3e5 886exec_prefix=NONE
795ca3e5 887no_create=
795ca3e5
AK
888no_recursion=
889prefix=NONE
890program_prefix=NONE
891program_suffix=NONE
892program_transform_name=s,x,x,
893silent=
894site=
895srcdir=
795ca3e5
AK
896verbose=
897x_includes=NONE
898x_libraries=NONE
ad6254c5
AK
899
900# Installation directory options.
901# These are left unexpanded so users can "make install exec_prefix=/foo"
902# and all the variables that are supposed to be based on exec_prefix
903# by default will actually change.
904# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 905# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
906bindir='${exec_prefix}/bin'
907sbindir='${exec_prefix}/sbin'
908libexecdir='${exec_prefix}/libexec'
7a197a62
AK
909datarootdir='${prefix}/share'
910datadir='${datarootdir}'
795ca3e5
AK
911sysconfdir='${prefix}/etc'
912sharedstatedir='${prefix}/com'
913localstatedir='${prefix}/var'
795ca3e5
AK
914includedir='${prefix}/include'
915oldincludedir='/usr/include'
7a197a62
AK
916docdir='${datarootdir}/doc/${PACKAGE}'
917infodir='${datarootdir}/info'
918htmldir='${docdir}'
919dvidir='${docdir}'
920pdfdir='${docdir}'
921psdir='${docdir}'
922libdir='${exec_prefix}/lib'
923localedir='${datarootdir}/locale'
924mandir='${datarootdir}/man'
795ca3e5 925
795ca3e5 926ac_prev=
7a197a62 927ac_dashdash=
795ca3e5
AK
928for ac_option
929do
795ca3e5
AK
930 # If the previous option needs an argument, assign it.
931 if test -n "$ac_prev"; then
7a197a62 932 eval $ac_prev=\$ac_option
795ca3e5
AK
933 ac_prev=
934 continue
935 fi
936
7a197a62
AK
937 case $ac_option in
938 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
939 *) ac_optarg=yes ;;
940 esac
795ca3e5
AK
941
942 # Accept the important Cygnus configure options, so we can diagnose typos.
943
7a197a62
AK
944 case $ac_dashdash$ac_option in
945 --)
946 ac_dashdash=yes ;;
795ca3e5
AK
947
948 -bindir | --bindir | --bindi | --bind | --bin | --bi)
949 ac_prev=bindir ;;
950 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 951 bindir=$ac_optarg ;;
795ca3e5
AK
952
953 -build | --build | --buil | --bui | --bu)
ad6254c5 954 ac_prev=build_alias ;;
795ca3e5 955 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 956 build_alias=$ac_optarg ;;
795ca3e5
AK
957
958 -cache-file | --cache-file | --cache-fil | --cache-fi \
959 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
960 ac_prev=cache_file ;;
961 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
962 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
963 cache_file=$ac_optarg ;;
964
965 --config-cache | -C)
966 cache_file=config.cache ;;
795ca3e5 967
7a197a62 968 -datadir | --datadir | --datadi | --datad)
795ca3e5 969 ac_prev=datadir ;;
7a197a62 970 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 971 datadir=$ac_optarg ;;
795ca3e5 972
7a197a62
AK
973 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
974 | --dataroo | --dataro | --datar)
975 ac_prev=datarootdir ;;
976 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
977 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
978 datarootdir=$ac_optarg ;;
979
795ca3e5 980 -disable-* | --disable-*)
ec6a6fbe 981 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 982 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 985 { (exit 1); exit 1; }; }
ec6a6fbe
AK
986 ac_useropt_orig=$ac_useropt
987 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988 case $ac_user_opts in
989 *"
990"enable_$ac_useropt"
991"*) ;;
992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
993 ac_unrecognized_sep=', ';;
994 esac
995 eval enable_$ac_useropt=no ;;
7a197a62
AK
996
997 -docdir | --docdir | --docdi | --doc | --do)
998 ac_prev=docdir ;;
999 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1000 docdir=$ac_optarg ;;
1001
1002 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1003 ac_prev=dvidir ;;
1004 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1005 dvidir=$ac_optarg ;;
795ca3e5
AK
1006
1007 -enable-* | --enable-*)
ec6a6fbe 1008 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1009 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1012 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1016 *"
1017"enable_$ac_useropt"
1018"*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1023
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
ad6254c5 1031 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1032
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1035 with_gas=yes ;;
1036
ad6254c5
AK
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
795ca3e5
AK
1043
1044 -host | --host | --hos | --ho)
ad6254c5 1045 ac_prev=host_alias ;;
795ca3e5 1046 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1047 host_alias=$ac_optarg ;;
795ca3e5 1048
7a197a62
AK
1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 ac_prev=htmldir ;;
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 | --ht=*)
1053 htmldir=$ac_optarg ;;
1054
795ca3e5
AK
1055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1060 includedir=$ac_optarg ;;
795ca3e5
AK
1061
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 ac_prev=infodir ;;
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1065 infodir=$ac_optarg ;;
795ca3e5
AK
1066
1067 -libdir | --libdir | --libdi | --libd)
1068 ac_prev=libdir ;;
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1070 libdir=$ac_optarg ;;
795ca3e5
AK
1071
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1077 libexecdir=$ac_optarg ;;
795ca3e5 1078
7a197a62
AK
1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1083
795ca3e5 1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1085 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1089 localstatedir=$ac_optarg ;;
795ca3e5
AK
1090
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 ac_prev=mandir ;;
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1094 mandir=$ac_optarg ;;
795ca3e5
AK
1095
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1098 with_fp=no ;;
1099
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1101 | --no-cr | --no-c | -n)
795ca3e5
AK
1102 no_create=yes ;;
1103
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 no_recursion=yes ;;
1107
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1115 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1116
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 ac_prev=prefix ;;
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1120 prefix=$ac_optarg ;;
795ca3e5
AK
1121
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1127 program_prefix=$ac_optarg ;;
795ca3e5
AK
1128
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1134 program_suffix=$ac_optarg ;;
795ca3e5
AK
1135
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1151 program_transform_name=$ac_optarg ;;
795ca3e5 1152
7a197a62
AK
1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 ac_prev=pdfdir ;;
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1157
1158 -psdir | --psdir | --psdi | --psd | --ps)
1159 ac_prev=psdir ;;
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 psdir=$ac_optarg ;;
1162
795ca3e5
AK
1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1165 silent=yes ;;
1166
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 ac_prev=sbindir ;;
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 | --sbi=* | --sb=*)
ad6254c5 1171 sbindir=$ac_optarg ;;
795ca3e5
AK
1172
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1176 | --sha | --sh)
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 | --sha=* | --sh=*)
ad6254c5 1182 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1183
1184 -site | --site | --sit)
1185 ac_prev=site ;;
1186 -site=* | --site=* | --sit=*)
ad6254c5 1187 site=$ac_optarg ;;
795ca3e5
AK
1188
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 ac_prev=srcdir ;;
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1192 srcdir=$ac_optarg ;;
795ca3e5
AK
1193
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1199 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1200
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1202 ac_prev=target_alias ;;
795ca3e5 1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1204 target_alias=$ac_optarg ;;
795ca3e5
AK
1205
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 verbose=yes ;;
1208
ad6254c5
AK
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
795ca3e5
AK
1211
1212 -with-* | --with-*)
ec6a6fbe 1213 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1214 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1217 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222"with_$ac_useropt"
1223"*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1228
1229 -without-* | --without-*)
ec6a6fbe 1230 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1231 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1233 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1234 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1235 ac_useropt_orig=$ac_useropt
1236 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1238 *"
1239"with_$ac_useropt"
1240"*) ;;
1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1242 ac_unrecognized_sep=', ';;
1243 esac
1244 eval with_$ac_useropt=no ;;
795ca3e5
AK
1245
1246 --x)
1247 # Obsolete; use --with-x.
1248 with_x=yes ;;
1249
1250 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1251 | --x-incl | --x-inc | --x-in | --x-i)
1252 ac_prev=x_includes ;;
1253 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1254 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1255 x_includes=$ac_optarg ;;
795ca3e5
AK
1256
1257 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1258 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1259 ac_prev=x_libraries ;;
1260 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1261 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1262 x_libraries=$ac_optarg ;;
795ca3e5 1263
ec6a6fbe 1264 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1265Try \`$0 --help' for more information." >&2
1266 { (exit 1); exit 1; }; }
795ca3e5
AK
1267 ;;
1268
ad6254c5
AK
1269 *=*)
1270 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1273 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1274 { (exit 1); exit 1; }; }
7a197a62 1275 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1276 export $ac_envvar ;;
1277
795ca3e5 1278 *)
ad6254c5 1279 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1280 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1281 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1282 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1283 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1284 ;;
1285
1286 esac
1287done
1288
1289if test -n "$ac_prev"; then
ad6254c5 1290 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec6a6fbe 1291 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1292 { (exit 1); exit 1; }; }
795ca3e5 1293fi
795ca3e5 1294
ec6a6fbe
AK
1295if test -n "$ac_unrecognized_opts"; then
1296 case $enable_option_checking in
1297 no) ;;
1298 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1299 { (exit 1); exit 1; }; } ;;
1300 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1301 esac
1302fi
1303
1304# Check all directory arguments for consistency.
7a197a62
AK
1305for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306 datadir sysconfdir sharedstatedir localstatedir includedir \
1307 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308 libdir localedir mandir
795ca3e5 1309do
7a197a62 1310 eval ac_val=\$$ac_var
ec6a6fbe
AK
1311 # Remove trailing slashes.
1312 case $ac_val in
1313 */ )
1314 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1315 eval $ac_var=\$ac_val;;
1316 esac
1317 # Be sure to have absolute directory names.
ad6254c5 1318 case $ac_val in
7a197a62
AK
1319 [\\/$]* | ?:[\\/]* ) continue;;
1320 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1321 esac
ec6a6fbe 1322 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1323 { (exit 1); exit 1; }; }
795ca3e5
AK
1324done
1325
ad6254c5
AK
1326# There might be people who depend on the old broken behavior: `$host'
1327# used to hold the argument of --host etc.
1328# FIXME: To remove some day.
1329build=$build_alias
1330host=$host_alias
1331target=$target_alias
1332
1333# FIXME: To remove some day.
1334if test "x$host_alias" != x; then
1335 if test "x$build_alias" = x; then
1336 cross_compiling=maybe
ec6a6fbe 1337 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1338 If a cross compiler is detected then cross compile mode will be used." >&2
1339 elif test "x$build_alias" != "x$host_alias"; then
1340 cross_compiling=yes
1341 fi
1342fi
8106cdd5 1343
ad6254c5
AK
1344ac_tool_prefix=
1345test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346
1347test "$silent" = yes && exec 6>/dev/null
795ca3e5 1348
795ca3e5 1349
7a197a62
AK
1350ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351ac_ls_di=`ls -di .` &&
1352ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec6a6fbe 1353 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7a197a62
AK
1354 { (exit 1); exit 1; }; }
1355test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec6a6fbe 1356 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1357 { (exit 1); exit 1; }; }
1358
1359
795ca3e5
AK
1360# Find the source files, if location was not specified.
1361if test -z "$srcdir"; then
1362 ac_srcdir_defaulted=yes
7a197a62 1363 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1364 ac_confdir=`$as_dirname -- "$as_myself" ||
1365$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1366 X"$as_myself" : 'X\(//\)[^/]' \| \
1367 X"$as_myself" : 'X\(//\)$' \| \
1368 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1369$as_echo X"$as_myself" |
7a197a62
AK
1370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1371 s//\1/
1372 q
1373 }
1374 /^X\(\/\/\)[^/].*/{
1375 s//\1/
1376 q
1377 }
1378 /^X\(\/\/\)$/{
1379 s//\1/
1380 q
1381 }
1382 /^X\(\/\).*/{
1383 s//\1/
1384 q
1385 }
1386 s/.*/./; q'`
795ca3e5 1387 srcdir=$ac_confdir
7a197a62 1388 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1389 srcdir=..
1390 fi
1391else
1392 ac_srcdir_defaulted=no
1393fi
7a197a62
AK
1394if test ! -r "$srcdir/$ac_unique_file"; then
1395 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec6a6fbe 1396 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1397 { (exit 1); exit 1; }; }
795ca3e5 1398fi
7a197a62
AK
1399ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1400ac_abs_confdir=`(
ec6a6fbe 1401 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1402 { (exit 1); exit 1; }; }
7a197a62
AK
1403 pwd)`
1404# When building in place, set srcdir=.
1405if test "$ac_abs_confdir" = "$ac_pwd"; then
1406 srcdir=.
1407fi
1408# Remove unnecessary trailing slashes from srcdir.
1409# Double slashes in file names in object file debugging info
1410# mess up M-x gdb in Emacs.
1411case $srcdir in
1412*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1413esac
1414for ac_var in $ac_precious_vars; do
1415 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1416 eval ac_env_${ac_var}_value=\$${ac_var}
1417 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1418 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1419done
ad6254c5
AK
1420
1421#
1422# Report the --help message.
1423#
1424if test "$ac_init_help" = "long"; then
1425 # Omit some internal or obsolete options to make the list less imposing.
1426 # This message is too long to be a string in the A/UX 3.1 sh.
1427 cat <<_ACEOF
1428\`configure' configures this package to adapt to many kinds of systems.
1429
1430Usage: $0 [OPTION]... [VAR=VALUE]...
1431
1432To assign environment variables (e.g., CC, CFLAGS...), specify them as
1433VAR=VALUE. See below for descriptions of some of the useful variables.
1434
1435Defaults for the options are specified in brackets.
1436
1437Configuration:
1438 -h, --help display this help and exit
1439 --help=short display options specific to this package
1440 --help=recursive display the short help of all the included packages
1441 -V, --version display version information and exit
1442 -q, --quiet, --silent do not print \`checking...' messages
1443 --cache-file=FILE cache test results in FILE [disabled]
1444 -C, --config-cache alias for \`--cache-file=config.cache'
1445 -n, --no-create do not create output files
1446 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1447
ad6254c5
AK
1448Installation directories:
1449 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1450 [$ac_default_prefix]
ad6254c5 1451 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1452 [PREFIX]
ad6254c5
AK
1453
1454By default, \`make install' will install all the files in
1455\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1456an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1457for instance \`--prefix=\$HOME'.
1458
1459For better control, use the options below.
1460
1461Fine tuning of the installation directories:
ec6a6fbe
AK
1462 --bindir=DIR user executables [EPREFIX/bin]
1463 --sbindir=DIR system admin executables [EPREFIX/sbin]
1464 --libexecdir=DIR program executables [EPREFIX/libexec]
1465 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1466 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1467 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1468 --libdir=DIR object code libraries [EPREFIX/lib]
1469 --includedir=DIR C header files [PREFIX/include]
1470 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1471 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1472 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1473 --infodir=DIR info documentation [DATAROOTDIR/info]
1474 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1475 --mandir=DIR man documentation [DATAROOTDIR/man]
1476 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1477 --htmldir=DIR html documentation [DOCDIR]
1478 --dvidir=DIR dvi documentation [DOCDIR]
1479 --pdfdir=DIR pdf documentation [DOCDIR]
1480 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1481_ACEOF
1482
1483 cat <<\_ACEOF
1484
1485System types:
1486 --build=BUILD configure for building on BUILD [guessed]
1487 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1488 --target=TARGET configure for building compilers for TARGET [HOST]
1489_ACEOF
1490fi
1491
1492if test -n "$ac_init_help"; then
1493
1494 cat <<\_ACEOF
1495
1496Optional Features:
ec6a6fbe 1497 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1498 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1499 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
9c961554
MB
1500 --enable-static_link Use this to link the tools to their libraries
1501 statically. Default is dynamic linking
ad6254c5
AK
1502 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1503 device-mapper is missing from the kernel
1b523347 1504 --disable-readline Disable readline support
3d978351 1505 --disable-realtime Disable realtime clock support
66fd4529 1506 --enable-cmirrord Enable the cluster mirror log daemon
ad6254c5 1507 --enable-debug Enable debugging
5556819a 1508 --enable-profiling Gather gcov profiling data
93bd259b 1509 --disable-devmapper Disable LVM2 device-mapper interaction
a5f46f6a
AK
1510 --enable-udev_sync Enable synchronisation with udev processing
1511 --enable-udev_rules Install rule files needed for udev synchronisation
93bd259b
AK
1512 --enable-compat Enable support for old device-mapper versions
1513 --disable-driver Disable calls to device-mapper in the kernel
ad6254c5 1514 --disable-o_direct Disable O_DIRECT
572fefeb 1515 --enable-applib Build application library
ad6254c5 1516 --enable-cmdlib Build shared command library
93bd259b 1517 --enable-pkgconfig Install pkgconfig support
ad6254c5 1518 --enable-fsadm Enable fsadm
15d91f5a 1519 --enable-dmeventd Enable the device-mapper event daemon
d0191583 1520 --disable-selinux Disable selinux support
ad6254c5
AK
1521 --enable-nls Enable Native Language Support
1522
1523Optional Packages:
1524 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1525 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d0191583
JM
1526 --with-user=USER Set the owner of installed files [USER=root]
1527 --with-group=GROUP Set the group owner of installed files [GROUP=root]
24bbc4d7
AK
1528 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1529 --with-device-gid=UID Set the group used for new device nodes [GID=0]
93bd259b 1530 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
ad6254c5
AK
1531 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1532 TYPE=internal
1533 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1534 TYPE=internal
1535 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1536 TYPE=internal
1537 --with-snapshots=TYPE Snapshot support: internal/shared/none
1538 TYPE=internal
1539 --with-mirrors=TYPE Mirror support: internal/shared/none
1540 TYPE=internal
a946372e 1541 --with-clvmd=TYPE Build cluster LVM Daemon.
8c222979 1542 The following cluster manager combinations are valid:
a946372e
AK
1543 * cman,gulm (RHEL4 or equivalent)
1544 * cman (RHEL5 or equivalent)
1545 * cman,corosync,openais (or selection of them)
1546 * all (autodetect)
1547 * none (disable build)
a266258f 1548 TYPE=none
66fd4529 1549 --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid]
d0191583
JM
1550 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1551 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
a5f46f6a
AK
1552 --with-confdir=DIR Configuration files in DIR [/etc]
1553 --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin]
68f2de6d
AK
1554 --with-usrlibdir=DIR
1555 --with-usrsbindir=DIR
a5f46f6a 1556 --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX]
78ce7acc 1557 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
93bd259b 1558 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
a5f46f6a 1559 --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd]
93bd259b 1560 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1561
1562Some influential environment variables:
1563 CC C compiler command
1564 CFLAGS C compiler flags
1565 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1566 nonstandard directory <lib dir>
25fbec5b 1567 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1568 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1569 you have headers in a nonstandard directory <include dir>
ad6254c5 1570 CPP C preprocessor
e2997b73 1571 PKG_CONFIG path to pkg-config utility
a946372e
AK
1572 PKGCONFIGINIT_CFLAGS
1573 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1574 PKGCONFIGINIT_LIBS
1575 linker flags for PKGCONFIGINIT, overriding pkg-config
1576 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1577 CCS_LIBS linker flags for CCS, overriding pkg-config
1578 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1579 GULM_LIBS linker flags for GULM, overriding pkg-config
1580 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1581 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1582 COROSYNC_CFLAGS
1583 C compiler flags for COROSYNC, overriding pkg-config
1584 COROSYNC_LIBS
1585 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1586 QUORUM_CFLAGS
1587 C compiler flags for QUORUM, overriding pkg-config
1588 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1589 SALCK_CFLAGS
1590 C compiler flags for SALCK, overriding pkg-config
1591 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1592 CONFDB_CFLAGS
1593 C compiler flags for CONFDB, overriding pkg-config
1594 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1595 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1596 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1597 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1598 DLM_LIBS linker flags for DLM, overriding pkg-config
ad6254c5
AK
1599
1600Use these variables to override the choices made by `configure' or to help
1601it to find libraries and programs with nonstandard names/locations.
1602
1603_ACEOF
7a197a62 1604ac_status=$?
ad6254c5
AK
1605fi
1606
1607if test "$ac_init_help" = "recursive"; then
1608 # If there are subdirs, report their specific --help.
ad6254c5 1609 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1610 test -d "$ac_dir" ||
1611 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1612 continue
ad6254c5
AK
1613 ac_builddir=.
1614
7a197a62
AK
1615case "$ac_dir" in
1616.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617*)
ec6a6fbe 1618 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1619 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1620 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1621 case $ac_top_builddir_sub in
1622 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1624 esac ;;
1625esac
1626ac_abs_top_builddir=$ac_pwd
1627ac_abs_builddir=$ac_pwd$ac_dir_suffix
1628# for backward compatibility:
1629ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1630
1631case $srcdir in
7a197a62 1632 .) # We are building in place.
ad6254c5 1633 ac_srcdir=.
7a197a62
AK
1634 ac_top_srcdir=$ac_top_builddir_sub
1635 ac_abs_top_srcdir=$ac_pwd ;;
1636 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1637 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1638 ac_top_srcdir=$srcdir
1639 ac_abs_top_srcdir=$srcdir ;;
1640 *) # Relative name.
1641 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1642 ac_top_srcdir=$ac_top_build_prefix$srcdir
1643 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1644esac
7a197a62
AK
1645ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1646
1647 cd "$ac_dir" || { ac_status=$?; continue; }
1648 # Check for guested configure.
1649 if test -f "$ac_srcdir/configure.gnu"; then
1650 echo &&
1651 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1652 elif test -f "$ac_srcdir/configure"; then
1653 echo &&
1654 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1655 else
ec6a6fbe 1656 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1657 fi || ac_status=$?
1658 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1659 done
1660fi
1661
7a197a62 1662test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1663if $ac_init_version; then
1664 cat <<\_ACEOF
7a197a62 1665configure
ec6a6fbe 1666generated by GNU Autoconf 2.63
ad6254c5 1667
7a197a62 1668Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 16692002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1670This configure script is free software; the Free Software Foundation
1671gives unlimited permission to copy, distribute and modify it.
1672_ACEOF
7a197a62 1673 exit
ad6254c5 1674fi
7a197a62 1675cat >config.log <<_ACEOF
ad6254c5
AK
1676This file contains any messages produced by compilers while
1677running configure, to aid debugging if configure makes a mistake.
1678
1679It was created by $as_me, which was
ec6a6fbe 1680generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
1681
1682 $ $0 $@
1683
1684_ACEOF
7a197a62 1685exec 5>>config.log
ad6254c5
AK
1686{
1687cat <<_ASUNAME
1688## --------- ##
1689## Platform. ##
1690## --------- ##
1691
1692hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1693uname -m = `(uname -m) 2>/dev/null || echo unknown`
1694uname -r = `(uname -r) 2>/dev/null || echo unknown`
1695uname -s = `(uname -s) 2>/dev/null || echo unknown`
1696uname -v = `(uname -v) 2>/dev/null || echo unknown`
1697
1698/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1699/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1700
1701/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1702/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1703/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1704/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1705/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1706/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1707/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1708
1709_ASUNAME
1710
1711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712for as_dir in $PATH
1713do
1714 IFS=$as_save_IFS
1715 test -z "$as_dir" && as_dir=.
ec6a6fbe 1716 $as_echo "PATH: $as_dir"
ad6254c5 1717done
7a197a62 1718IFS=$as_save_IFS
ad6254c5
AK
1719
1720} >&5
1721
1722cat >&5 <<_ACEOF
1723
1724
1725## ----------- ##
1726## Core tests. ##
1727## ----------- ##
1728
1729_ACEOF
1730
1731
1732# Keep a trace of the command line.
1733# Strip out --no-create and --no-recursion so they do not pile up.
1734# Strip out --silent because we don't want to record it for future runs.
1735# Also quote any args containing shell meta-characters.
1736# Make two passes to allow for proper duplicate-argument suppression.
1737ac_configure_args=
1738ac_configure_args0=
1739ac_configure_args1=
ad6254c5
AK
1740ac_must_keep_next=false
1741for ac_pass in 1 2
1742do
1743 for ac_arg
1744 do
1745 case $ac_arg in
1746 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1747 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1748 | -silent | --silent | --silen | --sile | --sil)
1749 continue ;;
7a197a62 1750 *\'*)
ec6a6fbe 1751 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1752 esac
1753 case $ac_pass in
1754 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1755 2)
1756 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1757 if test $ac_must_keep_next = true; then
8a2fc586 1758 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1759 else
8a2fc586
AK
1760 case $ac_arg in
1761 *=* | --config-cache | -C | -disable-* | --disable-* \
1762 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1763 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1764 | -with-* | --with-* | -without-* | --without-* | --x)
1765 case "$ac_configure_args0 " in
1766 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1767 esac
1768 ;;
1769 -* ) ac_must_keep_next=true ;;
1770 esac
ad6254c5 1771 fi
7a197a62 1772 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1773 ;;
1774 esac
1775 done
1776done
1777$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1778$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1779
1780# When interrupted or exit'd, cleanup temporary files, and complete
1781# config.log. We remove comments because anyway the quotes in there
1782# would cause problems or look ugly.
7a197a62
AK
1783# WARNING: Use '\'' to represent an apostrophe within the trap.
1784# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1785trap 'exit_status=$?
1786 # Save into config.log some information that might help in debugging.
1787 {
1788 echo
1789
1790 cat <<\_ASBOX
1791## ---------------- ##
1792## Cache variables. ##
1793## ---------------- ##
1794_ASBOX
1795 echo
1796 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1797(
1798 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1799 eval ac_val=\$$ac_var
1800 case $ac_val in #(
1801 *${as_nl}*)
1802 case $ac_var in #(
ec6a6fbe
AK
1803 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1804$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
1805 esac
1806 case $ac_var in #(
1807 _ | IFS | as_nl) ;; #(
ec6a6fbe 1808 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1809 *) $as_unset $ac_var ;;
1810 esac ;;
1811 esac
1812 done
ad6254c5 1813 (set) 2>&1 |
7a197a62
AK
1814 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1815 *${as_nl}ac_space=\ *)
ad6254c5 1816 sed -n \
7a197a62
AK
1817 "s/'\''/'\''\\\\'\'''\''/g;
1818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1819 ;; #(
ad6254c5 1820 *)
7a197a62 1821 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1822 ;;
7a197a62
AK
1823 esac |
1824 sort
1825)
ad6254c5
AK
1826 echo
1827
1828 cat <<\_ASBOX
1829## ----------------- ##
1830## Output variables. ##
1831## ----------------- ##
1832_ASBOX
1833 echo
1834 for ac_var in $ac_subst_vars
1835 do
7a197a62
AK
1836 eval ac_val=\$$ac_var
1837 case $ac_val in
ec6a6fbe 1838 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1839 esac
ec6a6fbe 1840 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1841 done | sort
1842 echo
1843
1844 if test -n "$ac_subst_files"; then
1845 cat <<\_ASBOX
7a197a62
AK
1846## ------------------- ##
1847## File substitutions. ##
1848## ------------------- ##
ad6254c5
AK
1849_ASBOX
1850 echo
1851 for ac_var in $ac_subst_files
1852 do
7a197a62
AK
1853 eval ac_val=\$$ac_var
1854 case $ac_val in
ec6a6fbe 1855 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1856 esac
ec6a6fbe 1857 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1858 done | sort
1859 echo
1860 fi
1861
1862 if test -s confdefs.h; then
1863 cat <<\_ASBOX
1864## ----------- ##
1865## confdefs.h. ##
1866## ----------- ##
1867_ASBOX
1868 echo
7a197a62 1869 cat confdefs.h
ad6254c5
AK
1870 echo
1871 fi
1872 test "$ac_signal" != 0 &&
ec6a6fbe
AK
1873 $as_echo "$as_me: caught signal $ac_signal"
1874 $as_echo "$as_me: exit $exit_status"
ad6254c5 1875 } >&5
7a197a62
AK
1876 rm -f core *.core core.conftest.* &&
1877 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1878 exit $exit_status
7a197a62 1879' 0
ad6254c5
AK
1880for ac_signal in 1 2 13 15; do
1881 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1882done
1883ac_signal=0
1884
1885# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1886rm -f -r conftest* confdefs.h
ad6254c5
AK
1887
1888# Predefined preprocessor variables.
1889
1890cat >>confdefs.h <<_ACEOF
1891#define PACKAGE_NAME "$PACKAGE_NAME"
1892_ACEOF
1893
1894
1895cat >>confdefs.h <<_ACEOF
1896#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1897_ACEOF
1898
1899
1900cat >>confdefs.h <<_ACEOF
1901#define PACKAGE_VERSION "$PACKAGE_VERSION"
1902_ACEOF
8106cdd5 1903
ad6254c5
AK
1904
1905cat >>confdefs.h <<_ACEOF
1906#define PACKAGE_STRING "$PACKAGE_STRING"
1907_ACEOF
1908
1909
1910cat >>confdefs.h <<_ACEOF
1911#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1912_ACEOF
1913
1914
1915# Let the site file select an alternate cache file if it wants to.
ec6a6fbe
AK
1916# Prefer an explicitly selected file to automatically selected ones.
1917ac_site_file1=NONE
1918ac_site_file2=NONE
7a197a62 1919if test -n "$CONFIG_SITE"; then
ec6a6fbe 1920 ac_site_file1=$CONFIG_SITE
7a197a62 1921elif test "x$prefix" != xNONE; then
ec6a6fbe
AK
1922 ac_site_file1=$prefix/share/config.site
1923 ac_site_file2=$prefix/etc/config.site
7a197a62 1924else
ec6a6fbe
AK
1925 ac_site_file1=$ac_default_prefix/share/config.site
1926 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1927fi
ec6a6fbe 1928for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1929do
ec6a6fbe 1930 test "x$ac_site_file" = xNONE && continue
795ca3e5 1931 if test -r "$ac_site_file"; then
ec6a6fbe
AK
1932 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1933$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1934 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1935 . "$ac_site_file"
1936 fi
1937done
1938
1939if test -r "$cache_file"; then
ad6254c5
AK
1940 # Some versions of bash will fail to source /dev/null (special
1941 # files actually), so we avoid doing that.
1942 if test -f "$cache_file"; then
ec6a6fbe
AK
1943 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1944$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1945 case $cache_file in
7a197a62
AK
1946 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1947 *) . "./$cache_file";;
ad6254c5
AK
1948 esac
1949 fi
795ca3e5 1950else
ec6a6fbe
AK
1951 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1952$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1953 >$cache_file
1954fi
1955
1956# Check that the precious variables saved in the cache have kept the same
1957# value.
1958ac_cache_corrupted=false
7a197a62 1959for ac_var in $ac_precious_vars; do
ad6254c5
AK
1960 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1961 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1962 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1963 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1964 case $ac_old_set,$ac_new_set in
1965 set,)
ec6a6fbe
AK
1966 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1967$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
1968 ac_cache_corrupted=: ;;
1969 ,set)
ec6a6fbe
AK
1970 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1971$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
1972 ac_cache_corrupted=: ;;
1973 ,);;
1974 *)
1975 if test "x$ac_old_val" != "x$ac_new_val"; then
ec6a6fbe
AK
1976 # differences in whitespace do not lead to failure.
1977 ac_old_val_w=`echo x $ac_old_val`
1978 ac_new_val_w=`echo x $ac_new_val`
1979 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1980 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1981$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1982 ac_cache_corrupted=:
1983 else
1984 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1985$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1986 eval $ac_var=\$ac_old_val
1987 fi
1988 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1989$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1990 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1991$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
1992 fi;;
1993 esac
1994 # Pass precious variables to config.status.
1995 if test "$ac_new_set" = set; then
1996 case $ac_new_val in
ec6a6fbe 1997 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1998 *) ac_arg=$ac_var=$ac_new_val ;;
1999 esac
2000 case " $ac_configure_args " in
2001 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2002 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2003 esac
2004 fi
2005done
2006if $ac_cache_corrupted; then
ec6a6fbe
AK
2007 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2008$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2009 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2010$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2011 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2012$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 2013 { (exit 1); exit 1; }; }
795ca3e5
AK
2014fi
2015
ad6254c5
AK
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
7a197a62
AK
2032ac_ext=c
2033ac_cpp='$CPP $CPPFLAGS'
2034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2036ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2037
795ca3e5
AK
2038
2039
7a197a62 2040ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
2041
2042
80992638 2043################################################################################
795ca3e5 2044ac_aux_dir=
7a197a62
AK
2045for ac_dir in autoconf "$srcdir"/autoconf; do
2046 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
2047 ac_aux_dir=$ac_dir
2048 ac_install_sh="$ac_aux_dir/install-sh -c"
2049 break
7a197a62 2050 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
2051 ac_aux_dir=$ac_dir
2052 ac_install_sh="$ac_aux_dir/install.sh -c"
2053 break
7a197a62 2054 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
2055 ac_aux_dir=$ac_dir
2056 ac_install_sh="$ac_aux_dir/shtool install -c"
2057 break
795ca3e5
AK
2058 fi
2059done
2060if test -z "$ac_aux_dir"; then
ec6a6fbe
AK
2061 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2062$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 2063 { (exit 1); exit 1; }; }
795ca3e5 2064fi
7a197a62
AK
2065
2066# These three variables are undocumented and unsupported,
2067# and are intended to be withdrawn in a future Autoconf release.
2068# They can cause serious problems if a builder's source tree is in a directory
2069# whose full name contains unusual characters.
2070ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2071ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2072ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2073
8ce0cbda
AK
2074
2075
ad6254c5 2076################################################################################
8ce0cbda 2077# Make sure we can run config.sub.
7a197a62 2078$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec6a6fbe
AK
2079 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2080$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
2081 { (exit 1); exit 1; }; }
2082
ec6a6fbe
AK
2083{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2084$as_echo_n "checking build system type... " >&6; }
ad6254c5 2085if test "${ac_cv_build+set}" = set; then
ec6a6fbe 2086 $as_echo_n "(cached) " >&6
ad6254c5 2087else
7a197a62
AK
2088 ac_build_alias=$build_alias
2089test "x$ac_build_alias" = x &&
2090 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2091test "x$ac_build_alias" = x &&
ec6a6fbe
AK
2092 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2093$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 2094 { (exit 1); exit 1; }; }
7a197a62 2095ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec6a6fbe
AK
2096 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2097$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
2098 { (exit 1); exit 1; }; }
2099
2100fi
ec6a6fbe
AK
2101{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2102$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
2103case $ac_cv_build in
2104*-*-*) ;;
ec6a6fbe
AK
2105*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2106$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
2107 { (exit 1); exit 1; }; };;
2108esac
ad6254c5 2109build=$ac_cv_build
7a197a62
AK
2110ac_save_IFS=$IFS; IFS='-'
2111set x $ac_cv_build
2112shift
2113build_cpu=$1
2114build_vendor=$2
2115shift; shift
2116# Remember, the first character of IFS is used to create $*,
2117# except with old shells:
2118build_os=$*
2119IFS=$ac_save_IFS
2120case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2121
2122
ec6a6fbe
AK
2123{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2124$as_echo_n "checking host system type... " >&6; }
ad6254c5 2125if test "${ac_cv_host+set}" = set; then
ec6a6fbe 2126 $as_echo_n "(cached) " >&6
ad6254c5 2127else
7a197a62
AK
2128 if test "x$host_alias" = x; then
2129 ac_cv_host=$ac_cv_build
2130else
2131 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec6a6fbe
AK
2132 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2133$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2134 { (exit 1); exit 1; }; }
7a197a62 2135fi
ad6254c5
AK
2136
2137fi
ec6a6fbe
AK
2138{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2139$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2140case $ac_cv_host in
2141*-*-*) ;;
ec6a6fbe
AK
2142*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2143$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2144 { (exit 1); exit 1; }; };;
2145esac
ad6254c5 2146host=$ac_cv_host
7a197a62
AK
2147ac_save_IFS=$IFS; IFS='-'
2148set x $ac_cv_host
2149shift
2150host_cpu=$1
2151host_vendor=$2
2152shift; shift
2153# Remember, the first character of IFS is used to create $*,
2154# except with old shells:
2155host_os=$*
2156IFS=$ac_save_IFS
2157case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2158
2159
ec6a6fbe
AK
2160{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2161$as_echo_n "checking target system type... " >&6; }
ad6254c5 2162if test "${ac_cv_target+set}" = set; then
ec6a6fbe 2163 $as_echo_n "(cached) " >&6
ad6254c5 2164else
7a197a62
AK
2165 if test "x$target_alias" = x; then
2166 ac_cv_target=$ac_cv_host
2167else
2168 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec6a6fbe
AK
2169 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2170$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2171 { (exit 1); exit 1; }; }
7a197a62 2172fi
8ce0cbda 2173
ad6254c5 2174fi
ec6a6fbe
AK
2175{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2176$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2177case $ac_cv_target in
2178*-*-*) ;;
ec6a6fbe
AK
2179*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2180$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2181 { (exit 1); exit 1; }; };;
2182esac
ad6254c5 2183target=$ac_cv_target
7a197a62
AK
2184ac_save_IFS=$IFS; IFS='-'
2185set x $ac_cv_target
2186shift
2187target_cpu=$1
2188target_vendor=$2
2189shift; shift
2190# Remember, the first character of IFS is used to create $*,
2191# except with old shells:
2192target_os=$*
2193IFS=$ac_save_IFS
2194case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2195
8ce0cbda 2196
ad6254c5
AK
2197# The aliases save the names the user supplied, while $host etc.
2198# will get canonicalized.
2199test -n "$target_alias" &&
8ce0cbda
AK
2200 test "$program_prefix$program_suffix$program_transform_name" = \
2201 NONENONEs,x,x, &&
2202 program_prefix=${target_alias}-
2203
8ce0cbda
AK
2204case "$host_os" in
2205 linux*)
7f54ef36 2206 CFLAGS="$CFLAGS"
8ce0cbda
AK
2207 COPTIMISE_FLAG="-O2"
2208 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2209 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2210 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2211 LDDEPS="$LDDEPS .export.sym"
2212 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2213 LIB_SUFFIX=so
8ce0cbda
AK
2214 DEVMAPPER=yes
2215 ODIRECT=yes
d0191583 2216 DM_IOCTLS=yes
8ce0cbda 2217 SELINUX=yes
8b1a3214 2218 REALTIME=yes
8ce0cbda 2219 CLUSTER=internal
93bd259b 2220 FSADM=yes
d0191583 2221 ;;
8ce0cbda
AK
2222 darwin*)
2223 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2224 COPTIMISE_FLAG="-O2"
2225 CLDFLAGS="$CLDFLAGS"
2226 CLDWHOLEARCHIVE="-all_load"
2227 CLDNOWHOLEARCHIVE=
d0191583 2228 LIB_SUFFIX=dylib
a653923f 2229 DEVMAPPER=yes
8ce0cbda 2230 ODIRECT=no
d0191583 2231 DM_IOCTLS=no
8ce0cbda 2232 SELINUX=no
8b1a3214 2233 REALTIME=no
8ce0cbda 2234 CLUSTER=none
d0191583
JM
2235 FSADM=no
2236 ;;
8ce0cbda
AK
2237esac
2238
80992638 2239################################################################################
ec6a6fbe
AK
2240{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2241$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2242if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2243 $as_echo_n "(cached) " >&6
5951ef33
AK
2244else
2245 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2246 for ac_i in 1 2 3 4 5 6 7; do
2247 ac_script="$ac_script$as_nl$ac_script"
2248 done
ec6a6fbe 2249 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2250 $as_unset ac_script || ac_script=
ec6a6fbe 2251 if test -z "$SED"; then
5951ef33 2252 ac_path_SED_found=false
ec6a6fbe
AK
2253 # Loop through the user's path and test for each of PROGNAME-LIST
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2255for as_dir in $PATH
2256do
2257 IFS=$as_save_IFS
2258 test -z "$as_dir" && as_dir=.
2259 for ac_prog in sed gsed; do
ec6a6fbe
AK
2260 for ac_exec_ext in '' $ac_executable_extensions; do
2261 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2262 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2263# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2264 # Check for GNU $ac_path_SED
2265case `"$ac_path_SED" --version 2>&1` in
2266*GNU*)
2267 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2268*)
2269 ac_count=0
ec6a6fbe 2270 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2271 while :
2272 do
2273 cat "conftest.in" "conftest.in" >"conftest.tmp"
2274 mv "conftest.tmp" "conftest.in"
2275 cp "conftest.in" "conftest.nl"
ec6a6fbe 2276 $as_echo '' >> "conftest.nl"
5951ef33
AK
2277 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2278 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2279 ac_count=`expr $ac_count + 1`
2280 if test $ac_count -gt ${ac_path_SED_max-0}; then
2281 # Best one so far, save it but keep looking for a better one
2282 ac_cv_path_SED="$ac_path_SED"
2283 ac_path_SED_max=$ac_count
2284 fi
2285 # 10*(2^10) chars as input seems more than enough
2286 test $ac_count -gt 10 && break
2287 done
2288 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2289esac
2290
ec6a6fbe
AK
2291 $ac_path_SED_found && break 3
2292 done
5951ef33
AK
2293 done
2294done
5951ef33 2295IFS=$as_save_IFS
ec6a6fbe
AK
2296 if test -z "$ac_cv_path_SED"; then
2297 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2298$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2299 { (exit 1); exit 1; }; }
ec6a6fbe 2300 fi
5951ef33
AK
2301else
2302 ac_cv_path_SED=$SED
2303fi
2304
2305fi
ec6a6fbe
AK
2306{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2307$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2308 SED="$ac_cv_path_SED"
2309 rm -f conftest.sed
2310
ad6254c5 2311for ac_prog in gawk mawk nawk awk
795ca3e5 2312do
ad6254c5 2313 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2314set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2315{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2316$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2317if test "${ac_cv_prog_AWK+set}" = set; then
ec6a6fbe 2318 $as_echo_n "(cached) " >&6
795ca3e5
AK
2319else
2320 if test -n "$AWK"; then
2321 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2322else
ad6254c5
AK
2323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324for as_dir in $PATH
2325do
2326 IFS=$as_save_IFS
2327 test -z "$as_dir" && as_dir=.
2328 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2330 ac_cv_prog_AWK="$ac_prog"
ec6a6fbe 2331 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2332 break 2
2333 fi
2334done
2335done
7a197a62 2336IFS=$as_save_IFS
ad6254c5 2337
795ca3e5
AK
2338fi
2339fi
ad6254c5 2340AWK=$ac_cv_prog_AWK
795ca3e5 2341if test -n "$AWK"; then
ec6a6fbe
AK
2342 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2343$as_echo "$AWK" >&6; }
795ca3e5 2344else
ec6a6fbe
AK
2345 { $as_echo "$as_me:$LINENO: result: no" >&5
2346$as_echo "no" >&6; }
795ca3e5
AK
2347fi
2348
7a197a62 2349
ad6254c5
AK
2350 test -n "$AWK" && break
2351done
2352
2353ac_ext=c
2354ac_cpp='$CPP $CPPFLAGS'
2355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358if test -n "$ac_tool_prefix"; then
2359 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2360set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2361{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2362$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2363if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2364 $as_echo_n "(cached) " >&6
ad6254c5
AK
2365else
2366 if test -n "$CC"; then
2367 ac_cv_prog_CC="$CC" # Let the user override the test.
2368else
2369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370for as_dir in $PATH
2371do
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2376 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2377 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2378 break 2
2379 fi
2380done
8106cdd5 2381done
7a197a62 2382IFS=$as_save_IFS
8106cdd5 2383
ad6254c5
AK
2384fi
2385fi
2386CC=$ac_cv_prog_CC
2387if test -n "$CC"; then
ec6a6fbe
AK
2388 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2389$as_echo "$CC" >&6; }
ad6254c5 2390else
ec6a6fbe
AK
2391 { $as_echo "$as_me:$LINENO: result: no" >&5
2392$as_echo "no" >&6; }
ad6254c5
AK
2393fi
2394
7a197a62 2395
ad6254c5
AK
2396fi
2397if test -z "$ac_cv_prog_CC"; then
2398 ac_ct_CC=$CC
2399 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2400set dummy gcc; ac_word=$2
ec6a6fbe
AK
2401{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2402$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2403if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2404 $as_echo_n "(cached) " >&6
ad6254c5
AK
2405else
2406 if test -n "$ac_ct_CC"; then
2407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2408else
2409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410for as_dir in $PATH
2411do
2412 IFS=$as_save_IFS
2413 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2416 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2417 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2418 break 2
2419 fi
2420done
2421done
7a197a62 2422IFS=$as_save_IFS
ad6254c5
AK
2423
2424fi
2425fi
2426ac_ct_CC=$ac_cv_prog_ac_ct_CC
2427if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2428 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2429$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2430else
ec6a6fbe
AK
2431 { $as_echo "$as_me:$LINENO: result: no" >&5
2432$as_echo "no" >&6; }
ad6254c5
AK
2433fi
2434
7a197a62
AK
2435 if test "x$ac_ct_CC" = x; then
2436 CC=""
2437 else
2438 case $cross_compiling:$ac_tool_warned in
2439yes:)
ec6a6fbe
AK
2440{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2442ac_tool_warned=yes ;;
2443esac
2444 CC=$ac_ct_CC
2445 fi
ad6254c5
AK
2446else
2447 CC="$ac_cv_prog_CC"
2448fi
2449
2450if test -z "$CC"; then
7a197a62
AK
2451 if test -n "$ac_tool_prefix"; then
2452 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2453set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2454{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2455$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2456if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2457 $as_echo_n "(cached) " >&6
8106cdd5
AK
2458else
2459 if test -n "$CC"; then
2460 ac_cv_prog_CC="$CC" # Let the user override the test.
2461else
ad6254c5
AK
2462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463for as_dir in $PATH
2464do
2465 IFS=$as_save_IFS
2466 test -z "$as_dir" && as_dir=.
2467 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2469 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec6a6fbe 2470 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2471 break 2
2472 fi
2473done
2474done
7a197a62 2475IFS=$as_save_IFS
ad6254c5 2476
8106cdd5
AK
2477fi
2478fi
ad6254c5 2479CC=$ac_cv_prog_CC
8106cdd5 2480if test -n "$CC"; then
ec6a6fbe
AK
2481 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2482$as_echo "$CC" >&6; }
ad6254c5 2483else
ec6a6fbe
AK
2484 { $as_echo "$as_me:$LINENO: result: no" >&5
2485$as_echo "no" >&6; }
ad6254c5
AK
2486fi
2487
8106cdd5 2488
7a197a62 2489 fi
ad6254c5 2490fi
795ca3e5
AK
2491if test -z "$CC"; then
2492 # Extract the first word of "cc", so it can be a program name with args.
2493set dummy cc; ac_word=$2
ec6a6fbe
AK
2494{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2495$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2496if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2497 $as_echo_n "(cached) " >&6
795ca3e5
AK
2498else
2499 if test -n "$CC"; then
2500 ac_cv_prog_CC="$CC" # Let the user override the test.
2501else
795ca3e5 2502 ac_prog_rejected=no
ad6254c5
AK
2503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504for as_dir in $PATH
2505do
2506 IFS=$as_save_IFS
2507 test -z "$as_dir" && as_dir=.
2508 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2510 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2511 ac_prog_rejected=yes
2512 continue
2513 fi
2514 ac_cv_prog_CC="cc"
ec6a6fbe 2515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2516 break 2
2517 fi
2518done
2519done
7a197a62 2520IFS=$as_save_IFS
ad6254c5 2521
795ca3e5
AK
2522if test $ac_prog_rejected = yes; then
2523 # We found a bogon in the path, so make sure we never use it.
2524 set dummy $ac_cv_prog_CC
2525 shift
ad6254c5 2526 if test $# != 0; then
795ca3e5
AK
2527 # We chose a different compiler from the bogus one.
2528 # However, it has the same basename, so the bogon will be chosen
2529 # first if we set CC to just the basename; use the full file name.
2530 shift
ad6254c5 2531 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2532 fi
2533fi
2534fi
2535fi
ad6254c5 2536CC=$ac_cv_prog_CC
795ca3e5 2537if test -n "$CC"; then
ec6a6fbe
AK
2538 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2539$as_echo "$CC" >&6; }
795ca3e5 2540else
ec6a6fbe
AK
2541 { $as_echo "$as_me:$LINENO: result: no" >&5
2542$as_echo "no" >&6; }
795ca3e5
AK
2543fi
2544
7a197a62 2545
ad6254c5
AK
2546fi
2547if test -z "$CC"; then
2548 if test -n "$ac_tool_prefix"; then
7a197a62 2549 for ac_prog in cl.exe
ad6254c5
AK
2550 do
2551 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2552set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2553{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2554$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2555if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2556 $as_echo_n "(cached) " >&6
795ca3e5
AK
2557else
2558 if test -n "$CC"; then
2559 ac_cv_prog_CC="$CC" # Let the user override the test.
2560else
ad6254c5
AK
2561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562for as_dir in $PATH
2563do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2568 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2570 break 2
2571 fi
2572done
2573done
7a197a62 2574IFS=$as_save_IFS
ad6254c5 2575
795ca3e5
AK
2576fi
2577fi
ad6254c5 2578CC=$ac_cv_prog_CC
795ca3e5 2579if test -n "$CC"; then
ec6a6fbe
AK
2580 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2581$as_echo "$CC" >&6; }
795ca3e5 2582else
ec6a6fbe
AK
2583 { $as_echo "$as_me:$LINENO: result: no" >&5
2584$as_echo "no" >&6; }
795ca3e5 2585fi
ad6254c5 2586
7a197a62 2587
ad6254c5
AK
2588 test -n "$CC" && break
2589 done
2590fi
2591if test -z "$CC"; then
2592 ac_ct_CC=$CC
7a197a62 2593 for ac_prog in cl.exe
ad6254c5
AK
2594do
2595 # Extract the first word of "$ac_prog", so it can be a program name with args.
2596set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2597{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2598$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2599if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2600 $as_echo_n "(cached) " >&6
ad6254c5
AK
2601else
2602 if test -n "$ac_ct_CC"; then
2603 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2604else
2605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606for as_dir in $PATH
2607do
2608 IFS=$as_save_IFS
2609 test -z "$as_dir" && as_dir=.
2610 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2612 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2613 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2614 break 2
795ca3e5 2615 fi
ad6254c5
AK
2616done
2617done
7a197a62 2618IFS=$as_save_IFS
ad6254c5
AK
2619
2620fi
2621fi
2622ac_ct_CC=$ac_cv_prog_ac_ct_CC
2623if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2624 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2625$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2626else
ec6a6fbe
AK
2627 { $as_echo "$as_me:$LINENO: result: no" >&5
2628$as_echo "no" >&6; }
795ca3e5
AK
2629fi
2630
7a197a62 2631
ad6254c5
AK
2632 test -n "$ac_ct_CC" && break
2633done
795ca3e5 2634
7a197a62
AK
2635 if test "x$ac_ct_CC" = x; then
2636 CC=""
2637 else
2638 case $cross_compiling:$ac_tool_warned in
2639yes:)
ec6a6fbe
AK
2640{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2642ac_tool_warned=yes ;;
2643esac
2644 CC=$ac_ct_CC
2645 fi
ad6254c5
AK
2646fi
2647
2648fi
2649
2650
ec6a6fbe
AK
2651test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2652$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2653{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2654See \`config.log' for more details." >&5
ec6a6fbe 2655$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2656See \`config.log' for more details." >&2;}
ec6a6fbe 2657 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2658
2659# Provide some information about the compiler.
ec6a6fbe
AK
2660$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2661set X $ac_compile
2662ac_compiler=$2
7a197a62
AK
2663{ (ac_try="$ac_compiler --version >&5"
2664case "(($ac_try" in
2665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666 *) ac_try_echo=$ac_try;;
2667esac
ec6a6fbe
AK
2668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2669$as_echo "$ac_try_echo") >&5
7a197a62 2670 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2671 ac_status=$?
ec6a6fbe 2672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2673 (exit $ac_status); }
7a197a62
AK
2674{ (ac_try="$ac_compiler -v >&5"
2675case "(($ac_try" in
2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677 *) ac_try_echo=$ac_try;;
2678esac
ec6a6fbe
AK
2679eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2680$as_echo "$ac_try_echo") >&5
7a197a62 2681 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2682 ac_status=$?
ec6a6fbe 2683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2684 (exit $ac_status); }
7a197a62
AK
2685{ (ac_try="$ac_compiler -V >&5"
2686case "(($ac_try" in
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2689esac
ec6a6fbe
AK
2690eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2691$as_echo "$ac_try_echo") >&5
7a197a62 2692 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2693 ac_status=$?
ec6a6fbe 2694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2695 (exit $ac_status); }
2696
2697cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2698/* confdefs.h. */
2699_ACEOF
2700cat confdefs.h >>conftest.$ac_ext
2701cat >>conftest.$ac_ext <<_ACEOF
2702/* end confdefs.h. */
2703
2704int
2705main ()
2706{
2707
2708 ;
2709 return 0;
2710}
2711_ACEOF
2712ac_clean_files_save=$ac_clean_files
ec6a6fbe 2713ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2714# Try to create an executable without -o first, disregard a.out.
2715# It will help us diagnose broken compilers, and finding out an intuition
2716# of exeext.
ec6a6fbe
AK
2717{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2718$as_echo_n "checking for C compiler default output file name... " >&6; }
2719ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2720
2721# The possible output files:
2722ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2723
7a197a62
AK
2724ac_rmfiles=
2725for ac_file in $ac_files
2726do
2727 case $ac_file in
ec6a6fbe 2728 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2729 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2730 esac
2731done
2732rm -f $ac_rmfiles
2733
2734if { (ac_try="$ac_link_default"
2735case "(($ac_try" in
2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737 *) ac_try_echo=$ac_try;;
2738esac
ec6a6fbe
AK
2739eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2740$as_echo "$ac_try_echo") >&5
7a197a62 2741 (eval "$ac_link_default") 2>&5
ad6254c5 2742 ac_status=$?
ec6a6fbe 2743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2744 (exit $ac_status); }; then
7a197a62
AK
2745 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2746# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2747# in a Makefile. We should not override ac_cv_exeext if it was cached,
2748# so that the user can short-circuit this test for compilers unknown to
2749# Autoconf.
25fbec5b 2750for ac_file in $ac_files ''
ad6254c5
AK
2751do
2752 test -f "$ac_file" || continue
2753 case $ac_file in
ec6a6fbe 2754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2755 ;;
ad6254c5 2756 [ab].out )
8a2fc586
AK
2757 # We found the default executable, but exeext='' is most
2758 # certainly right.
2759 break;;
ad6254c5 2760 *.* )
7a197a62
AK
2761 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2762 then :; else
2763 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2764 fi
2765 # We set ac_cv_exeext here because the later test for it is not
2766 # safe: cross compilers may not add the suffix if given an `-o'
2767 # argument, so we may need to know it at that point already.
2768 # Even if this section looks crufty: it has the advantage of
2769 # actually working.
8a2fc586 2770 break;;
ad6254c5 2771 * )
8a2fc586 2772 break;;
ad6254c5
AK
2773 esac
2774done
7a197a62
AK
2775test "$ac_cv_exeext" = no && ac_cv_exeext=
2776
ad6254c5 2777else
25fbec5b
AK
2778 ac_file=''
2779fi
2780
ec6a6fbe
AK
2781{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2782$as_echo "$ac_file" >&6; }
25fbec5b 2783if test -z "$ac_file"; then
ec6a6fbe 2784 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2785sed 's/^/| /' conftest.$ac_ext >&5
2786
ec6a6fbe
AK
2787{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2788$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2789{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2790See \`config.log' for more details." >&5
ec6a6fbe 2791$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2792See \`config.log' for more details." >&2;}
ec6a6fbe 2793 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2794fi
2795
2796ac_exeext=$ac_cv_exeext
ad6254c5 2797
7a197a62 2798# Check that the compiler produces executables we can run. If not, either
ad6254c5 2799# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2800{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2801$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2802# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2803# If not cross compiling, check that we can run a simple program.
2804if test "$cross_compiling" != yes; then
2805 if { ac_try='./$ac_file'
7a197a62
AK
2806 { (case "(($ac_try" in
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2809esac
ec6a6fbe
AK
2810eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2811$as_echo "$ac_try_echo") >&5
7a197a62 2812 (eval "$ac_try") 2>&5
ad6254c5 2813 ac_status=$?
ec6a6fbe 2814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2815 (exit $ac_status); }; }; then
2816 cross_compiling=no
795ca3e5 2817 else
ad6254c5
AK
2818 if test "$cross_compiling" = maybe; then
2819 cross_compiling=yes
2820 else
ec6a6fbe
AK
2821 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2822$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2823{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2824If you meant to cross compile, use \`--host'.
2825See \`config.log' for more details." >&5
ec6a6fbe 2826$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2827If you meant to cross compile, use \`--host'.
2828See \`config.log' for more details." >&2;}
ec6a6fbe 2829 { (exit 1); exit 1; }; }; }
ad6254c5 2830 fi
795ca3e5 2831 fi
80992638 2832fi
ec6a6fbe
AK
2833{ $as_echo "$as_me:$LINENO: result: yes" >&5
2834$as_echo "yes" >&6; }
ad6254c5 2835
ec6a6fbe 2836rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2837ac_clean_files=$ac_clean_files_save
7a197a62 2838# Check that the compiler produces executables we can run. If not, either
ad6254c5 2839# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2840{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2841$as_echo_n "checking whether we are cross compiling... " >&6; }
2842{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2843$as_echo "$cross_compiling" >&6; }
7a197a62 2844
ec6a6fbe
AK
2845{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2846$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2847if { (ac_try="$ac_link"
2848case "(($ac_try" in
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2851esac
ec6a6fbe
AK
2852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2853$as_echo "$ac_try_echo") >&5
7a197a62 2854 (eval "$ac_link") 2>&5
ad6254c5 2855 ac_status=$?
ec6a6fbe 2856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2857 (exit $ac_status); }; then
2858 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2859# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2860# work properly (i.e., refer to `conftest.exe'), while it won't with
2861# `rm'.
2862for ac_file in conftest.exe conftest conftest.*; do
2863 test -f "$ac_file" || continue
2864 case $ac_file in
ec6a6fbe 2865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2866 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2867 break;;
ad6254c5
AK
2868 * ) break;;
2869 esac
2870done
80992638 2871else
ec6a6fbe
AK
2872 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2873$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2874{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2875See \`config.log' for more details." >&5
ec6a6fbe 2876$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2877See \`config.log' for more details." >&2;}
ec6a6fbe 2878 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2879fi
2880
2881rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2882{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2883$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2884
2885rm -f conftest.$ac_ext
2886EXEEXT=$ac_cv_exeext
2887ac_exeext=$EXEEXT
ec6a6fbe
AK
2888{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2889$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2890if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2891 $as_echo_n "(cached) " >&6
795ca3e5 2892else
ad6254c5 2893 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2894/* confdefs.h. */
2895_ACEOF
2896cat confdefs.h >>conftest.$ac_ext
2897cat >>conftest.$ac_ext <<_ACEOF
2898/* end confdefs.h. */
2899
2900int
2901main ()
2902{
2903
2904 ;
2905 return 0;
2906}
2907_ACEOF
2908rm -f conftest.o conftest.obj
7a197a62
AK
2909if { (ac_try="$ac_compile"
2910case "(($ac_try" in
2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2913esac
ec6a6fbe
AK
2914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2915$as_echo "$ac_try_echo") >&5
7a197a62 2916 (eval "$ac_compile") 2>&5
ad6254c5 2917 ac_status=$?
ec6a6fbe 2918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2919 (exit $ac_status); }; then
7a197a62
AK
2920 for ac_file in conftest.o conftest.obj conftest.*; do
2921 test -f "$ac_file" || continue;
ad6254c5 2922 case $ac_file in
ec6a6fbe 2923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2924 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2925 break;;
2926 esac
2927done
2928else
ec6a6fbe 2929 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2930sed 's/^/| /' conftest.$ac_ext >&5
2931
ec6a6fbe
AK
2932{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2934{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2935See \`config.log' for more details." >&5
ec6a6fbe 2936$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 2937See \`config.log' for more details." >&2;}
ec6a6fbe 2938 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2939fi
2940
2941rm -f conftest.$ac_cv_objext conftest.$ac_ext
2942fi
ec6a6fbe
AK
2943{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2944$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
2945OBJEXT=$ac_cv_objext
2946ac_objext=$OBJEXT
ec6a6fbe
AK
2947{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2948$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 2949if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 2950 $as_echo_n "(cached) " >&6
ad6254c5
AK
2951else
2952 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2953/* confdefs.h. */
2954_ACEOF
2955cat confdefs.h >>conftest.$ac_ext
2956cat >>conftest.$ac_ext <<_ACEOF
2957/* end confdefs.h. */
2958
2959int
2960main ()
2961{
2962#ifndef __GNUC__
2963 choke me
2964#endif
80992638 2965
ad6254c5
AK
2966 ;
2967 return 0;
2968}
2969_ACEOF
2970rm -f conftest.$ac_objext
7a197a62
AK
2971if { (ac_try="$ac_compile"
2972case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975esac
ec6a6fbe
AK
2976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2977$as_echo "$ac_try_echo") >&5
7a197a62 2978 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2979 ac_status=$?
8a2fc586
AK
2980 grep -v '^ *+' conftest.er1 >conftest.err
2981 rm -f conftest.er1
2982 cat conftest.err >&5
ec6a6fbe 2983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2984 (exit $ac_status); } && {
2985 test -z "$ac_c_werror_flag" ||
2986 test ! -s conftest.err
2987 } && test -s conftest.$ac_objext; then
ad6254c5 2988 ac_compiler_gnu=yes
80992638 2989else
ec6a6fbe 2990 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2991sed 's/^/| /' conftest.$ac_ext >&5
2992
7a197a62 2993 ac_compiler_gnu=no
8106cdd5 2994fi
7a197a62
AK
2995
2996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2997ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 2998
ad6254c5 2999fi
ec6a6fbe
AK
3000{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3001$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3002if test $ac_compiler_gnu = yes; then
3003 GCC=yes
3004else
3005 GCC=
3006fi
ad6254c5
AK
3007ac_test_CFLAGS=${CFLAGS+set}
3008ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
3009{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3010$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 3011if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 3012 $as_echo_n "(cached) " >&6
795ca3e5 3013else
7a197a62
AK
3014 ac_save_c_werror_flag=$ac_c_werror_flag
3015 ac_c_werror_flag=yes
3016 ac_cv_prog_cc_g=no
3017 CFLAGS="-g"
3018 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3019/* confdefs.h. */
3020_ACEOF
3021cat confdefs.h >>conftest.$ac_ext
3022cat >>conftest.$ac_ext <<_ACEOF
3023/* end confdefs.h. */
3024
3025int
3026main ()
3027{
3028
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
7a197a62
AK
3051 ac_cv_prog_cc_g=yes
3052else
ec6a6fbe 3053 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3054sed 's/^/| /' conftest.$ac_ext >&5
3055
3056 CFLAGS=""
3057 cat >conftest.$ac_ext <<_ACEOF
3058/* confdefs.h. */
3059_ACEOF
3060cat confdefs.h >>conftest.$ac_ext
3061cat >>conftest.$ac_ext <<_ACEOF
3062/* end confdefs.h. */
3063
3064int
3065main ()
3066{
3067
3068 ;
3069 return 0;
3070}
3071_ACEOF
3072rm -f conftest.$ac_objext
3073if { (ac_try="$ac_compile"
3074case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077esac
ec6a6fbe
AK
3078eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3079$as_echo "$ac_try_echo") >&5
7a197a62 3080 (eval "$ac_compile") 2>conftest.er1
8a2fc586 3081 ac_status=$?
7a197a62
AK
3082 grep -v '^ *+' conftest.er1 >conftest.err
3083 rm -f conftest.er1
3084 cat conftest.err >&5
ec6a6fbe 3085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3086 (exit $ac_status); } && {
3087 test -z "$ac_c_werror_flag" ||
3088 test ! -s conftest.err
3089 } && test -s conftest.$ac_objext; then
7a197a62
AK
3090 :
3091else
ec6a6fbe 3092 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3093sed 's/^/| /' conftest.$ac_ext >&5
3094
3095 ac_c_werror_flag=$ac_save_c_werror_flag
3096 CFLAGS="-g"
3097 cat >conftest.$ac_ext <<_ACEOF
3098/* confdefs.h. */
3099_ACEOF
3100cat confdefs.h >>conftest.$ac_ext
3101cat >>conftest.$ac_ext <<_ACEOF
3102/* end confdefs.h. */
3103
3104int
3105main ()
3106{
3107
3108 ;
3109 return 0;
3110}
3111_ACEOF
3112rm -f conftest.$ac_objext
3113if { (ac_try="$ac_compile"
3114case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117esac
ec6a6fbe
AK
3118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3119$as_echo "$ac_try_echo") >&5
7a197a62 3120 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3121 ac_status=$?
7a197a62
AK
3122 grep -v '^ *+' conftest.er1 >conftest.err
3123 rm -f conftest.er1
3124 cat conftest.err >&5
ec6a6fbe 3125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3126 (exit $ac_status); } && {
3127 test -z "$ac_c_werror_flag" ||
3128 test ! -s conftest.err
3129 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3130 ac_cv_prog_cc_g=yes
3131else
ec6a6fbe 3132 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3133sed 's/^/| /' conftest.$ac_ext >&5
80992638 3134
7a197a62
AK
3135
3136fi
3137
3138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3139fi
3140
3141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3142fi
7a197a62
AK
3143
3144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3145 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3146fi
ec6a6fbe
AK
3147{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3148$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3149if test "$ac_test_CFLAGS" = set; then
ad6254c5 3150 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3151elif test $ac_cv_prog_cc_g = yes; then
3152 if test "$GCC" = yes; then
3153 CFLAGS="-g -O2"
3154 else
3155 CFLAGS="-g"
3156 fi
3157else
3158 if test "$GCC" = yes; then
3159 CFLAGS="-O2"
3160 else
3161 CFLAGS=
3162 fi
3163fi
ec6a6fbe
AK
3164{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3165$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3166if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3167 $as_echo_n "(cached) " >&6
ad6254c5 3168else
7a197a62 3169 ac_cv_prog_cc_c89=no
ad6254c5
AK
3170ac_save_CC=$CC
3171cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3172/* confdefs.h. */
3173_ACEOF
3174cat confdefs.h >>conftest.$ac_ext
3175cat >>conftest.$ac_ext <<_ACEOF
3176/* end confdefs.h. */
3177#include <stdarg.h>
3178#include <stdio.h>
3179#include <sys/types.h>
3180#include <sys/stat.h>
3181/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3182struct buf { int x; };
3183FILE * (*rcsopen) (struct buf *, struct stat *, int);
3184static char *e (p, i)
3185 char **p;
3186 int i;
3187{
3188 return p[i];
3189}
3190static char *f (char * (*g) (char **, int), char **p, ...)
3191{
3192 char *s;
3193 va_list v;
3194 va_start (v,p);
3195 s = g (p, va_arg (v,int));
3196 va_end (v);
3197 return s;
3198}
8a2fc586
AK
3199
3200/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3201 function prototypes and stuff, but not '\xHH' hex character constants.
3202 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3203 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3204 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3205 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3206 that's true only with -std. */
8a2fc586
AK
3207int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3208
7a197a62
AK
3209/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3210 inside strings and character constants. */
3211#define FOO(x) 'x'
3212int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3213
ad6254c5
AK
3214int test (int i, double x);
3215struct s1 {int (*f) (int a);};
3216struct s2 {int (*f) (double a);};
3217int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3218int argc;
3219char **argv;
3220int
3221main ()
3222{
3223return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3224 ;
3225 return 0;
3226}
3227_ACEOF
7a197a62
AK
3228for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3229 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3230do
3231 CC="$ac_save_CC $ac_arg"
3232 rm -f conftest.$ac_objext
7a197a62
AK
3233if { (ac_try="$ac_compile"
3234case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237esac
ec6a6fbe
AK
3238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3239$as_echo "$ac_try_echo") >&5
7a197a62 3240 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3241 ac_status=$?
8a2fc586
AK
3242 grep -v '^ *+' conftest.er1 >conftest.err
3243 rm -f conftest.er1
3244 cat conftest.err >&5
ec6a6fbe 3245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3246 (exit $ac_status); } && {
3247 test -z "$ac_c_werror_flag" ||
3248 test ! -s conftest.err
3249 } && test -s conftest.$ac_objext; then
7a197a62 3250 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3251else
ec6a6fbe 3252 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3253sed 's/^/| /' conftest.$ac_ext >&5
3254
7a197a62 3255
ad6254c5 3256fi
7a197a62
AK
3257
3258rm -f core conftest.err conftest.$ac_objext
3259 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3260done
7a197a62 3261rm -f conftest.$ac_ext
ad6254c5
AK
3262CC=$ac_save_CC
3263
3264fi
7a197a62
AK
3265# AC_CACHE_VAL
3266case "x$ac_cv_prog_cc_c89" in
3267 x)
ec6a6fbe
AK
3268 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3269$as_echo "none needed" >&6; } ;;
7a197a62 3270 xno)
ec6a6fbe
AK
3271 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3272$as_echo "unsupported" >&6; } ;;
ad6254c5 3273 *)
7a197a62 3274 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3275 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3276$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3277esac
3278
ad6254c5 3279
ad6254c5
AK
3280ac_ext=c
3281ac_cpp='$CPP $CPPFLAGS'
3282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3285
d0191583
JM
3286
3287
3288ac_ext=c
3289ac_cpp='$CPP $CPPFLAGS'
3290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3292ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3293{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3294$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3295# On Suns, sometimes $CPP names a directory.
3296if test -n "$CPP" && test -d "$CPP"; then
3297 CPP=
3298fi
3299if test -z "$CPP"; then
3300 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3301 $as_echo_n "(cached) " >&6
ad6254c5 3302else
d0191583
JM
3303 # Double quotes because CPP needs to be expanded
3304 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3305 do
3306 ac_preproc_ok=false
3307for ac_c_preproc_warn_flag in '' yes
ad6254c5 3308do
d0191583
JM
3309 # Use a header file that comes with gcc, so configuring glibc
3310 # with a fresh cross-compiler works.
3311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3312 # <limits.h> exists even on freestanding compilers.
3313 # On the NeXT, cc -E runs the code through the compiler's parser,
3314 # not just through cpp. "Syntax error" is here to catch this case.
3315 cat >conftest.$ac_ext <<_ACEOF
3316/* confdefs.h. */
3317_ACEOF
3318cat confdefs.h >>conftest.$ac_ext
3319cat >>conftest.$ac_ext <<_ACEOF
3320/* end confdefs.h. */
3321#ifdef __STDC__
3322# include <limits.h>
3323#else
3324# include <assert.h>
3325#endif
3326 Syntax error
3327_ACEOF
3328if { (ac_try="$ac_cpp conftest.$ac_ext"
3329case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
ad6254c5 3332esac
ec6a6fbe
AK
3333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3334$as_echo "$ac_try_echo") >&5
d0191583
JM
3335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3336 ac_status=$?
3337 grep -v '^ *+' conftest.er1 >conftest.err
3338 rm -f conftest.er1
3339 cat conftest.err >&5
ec6a6fbe 3340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3341 (exit $ac_status); } >/dev/null && {
3342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3343 test ! -s conftest.err
3344 }; then
3345 :
3346else
ec6a6fbe 3347 $as_echo "$as_me: failed program was:" >&5
d0191583 3348sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3349
d0191583
JM
3350 # Broken: fails on valid input.
3351continue
795ca3e5 3352fi
795ca3e5 3353
d0191583 3354rm -f conftest.err conftest.$ac_ext
795ca3e5 3355
d0191583
JM
3356 # OK, works on sane cases. Now check whether nonexistent headers
3357 # can be detected and how.
3358 cat >conftest.$ac_ext <<_ACEOF
3359/* confdefs.h. */
3360_ACEOF
3361cat confdefs.h >>conftest.$ac_ext
3362cat >>conftest.$ac_ext <<_ACEOF
3363/* end confdefs.h. */
3364#include <ac_nonexistent.h>
3365_ACEOF
3366if { (ac_try="$ac_cpp conftest.$ac_ext"
3367case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3370esac
ec6a6fbe
AK
3371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3372$as_echo "$ac_try_echo") >&5
d0191583
JM
3373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3374 ac_status=$?
3375 grep -v '^ *+' conftest.er1 >conftest.err
3376 rm -f conftest.er1
3377 cat conftest.err >&5
ec6a6fbe 3378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3379 (exit $ac_status); } >/dev/null && {
3380 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3381 test ! -s conftest.err
3382 }; then
3383 # Broken: success on invalid input.
3384continue
3385else
ec6a6fbe 3386 $as_echo "$as_me: failed program was:" >&5
d0191583 3387sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3388
d0191583
JM
3389 # Passes both tests.
3390ac_preproc_ok=:
3391break
3392fi
795ca3e5 3393
d0191583
JM
3394rm -f conftest.err conftest.$ac_ext
3395
3396done
3397# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3398rm -f conftest.err conftest.$ac_ext
3399if $ac_preproc_ok; then
3400 break
795ca3e5
AK
3401fi
3402
d0191583
JM
3403 done
3404 ac_cv_prog_CPP=$CPP
3405
3406fi
3407 CPP=$ac_cv_prog_CPP
795ca3e5 3408else
d0191583
JM
3409 ac_cv_prog_CPP=$CPP
3410fi
ec6a6fbe
AK
3411{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3412$as_echo "$CPP" >&6; }
d0191583
JM
3413ac_preproc_ok=false
3414for ac_c_preproc_warn_flag in '' yes
3415do
3416 # Use a header file that comes with gcc, so configuring glibc
3417 # with a fresh cross-compiler works.
3418 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3419 # <limits.h> exists even on freestanding compilers.
3420 # On the NeXT, cc -E runs the code through the compiler's parser,
3421 # not just through cpp. "Syntax error" is here to catch this case.
3422 cat >conftest.$ac_ext <<_ACEOF
3423/* confdefs.h. */
ad6254c5 3424_ACEOF
d0191583
JM
3425cat confdefs.h >>conftest.$ac_ext
3426cat >>conftest.$ac_ext <<_ACEOF
3427/* end confdefs.h. */
3428#ifdef __STDC__
3429# include <limits.h>
3430#else
3431# include <assert.h>
3432#endif
3433 Syntax error
3434_ACEOF
3435if { (ac_try="$ac_cpp conftest.$ac_ext"
3436case "(($ac_try" in
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
7a197a62 3439esac
ec6a6fbe
AK
3440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3441$as_echo "$ac_try_echo") >&5
d0191583
JM
3442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3443 ac_status=$?
3444 grep -v '^ *+' conftest.er1 >conftest.err
3445 rm -f conftest.er1
3446 cat conftest.err >&5
ec6a6fbe 3447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3448 (exit $ac_status); } >/dev/null && {
3449 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3450 test ! -s conftest.err
3451 }; then
3452 :
795ca3e5 3453else
ec6a6fbe 3454 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3455sed 's/^/| /' conftest.$ac_ext >&5
3456
3457 # Broken: fails on valid input.
3458continue
795ca3e5
AK
3459fi
3460
d0191583
JM
3461rm -f conftest.err conftest.$ac_ext
3462
3463 # OK, works on sane cases. Now check whether nonexistent headers
3464 # can be detected and how.
3465 cat >conftest.$ac_ext <<_ACEOF
3466/* confdefs.h. */
3467_ACEOF
3468cat confdefs.h >>conftest.$ac_ext
3469cat >>conftest.$ac_ext <<_ACEOF
3470/* end confdefs.h. */
3471#include <ac_nonexistent.h>
3472_ACEOF
3473if { (ac_try="$ac_cpp conftest.$ac_ext"
3474case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477esac
ec6a6fbe
AK
3478eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3479$as_echo "$ac_try_echo") >&5
d0191583
JM
3480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3481 ac_status=$?
3482 grep -v '^ *+' conftest.er1 >conftest.err
3483 rm -f conftest.er1
3484 cat conftest.err >&5
ec6a6fbe 3485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3486 (exit $ac_status); } >/dev/null && {
3487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3488 test ! -s conftest.err
3489 }; then
3490 # Broken: success on invalid input.
3491continue
795ca3e5 3492else
ec6a6fbe 3493 $as_echo "$as_me: failed program was:" >&5
d0191583 3494sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3495
d0191583
JM
3496 # Passes both tests.
3497ac_preproc_ok=:
3498break
795ca3e5 3499fi
d0191583
JM
3500
3501rm -f conftest.err conftest.$ac_ext
3502
3503done
3504# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3505rm -f conftest.err conftest.$ac_ext
3506if $ac_preproc_ok; then
3507 :
8106cdd5 3508else
ec6a6fbe
AK
3509 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3510$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3511{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3512See \`config.log' for more details." >&5
ec6a6fbe 3513$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3514See \`config.log' for more details." >&2;}
ec6a6fbe 3515 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3516fi
3517
d0191583
JM
3518ac_ext=c
3519ac_cpp='$CPP $CPPFLAGS'
3520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522ac_compiler_gnu=$ac_cv_c_compiler_gnu
3523
7a197a62 3524
ec6a6fbe
AK
3525{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3526$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3527if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3528 $as_echo_n "(cached) " >&6
ad6254c5 3529else
ec6a6fbe 3530 if test -z "$GREP"; then
d0191583 3531 ac_path_GREP_found=false
ec6a6fbe
AK
3532 # Loop through the user's path and test for each of PROGNAME-LIST
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3534for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3535do
3536 IFS=$as_save_IFS
3537 test -z "$as_dir" && as_dir=.
d0191583 3538 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3541 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3542# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3543 # Check for GNU $ac_path_GREP
3544case `"$ac_path_GREP" --version 2>&1` in
3545*GNU*)
3546 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3547*)
3548 ac_count=0
ec6a6fbe 3549 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3550 while :
3551 do
3552 cat "conftest.in" "conftest.in" >"conftest.tmp"
3553 mv "conftest.tmp" "conftest.in"
3554 cp "conftest.in" "conftest.nl"
ec6a6fbe 3555 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3556 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3557 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3558 ac_count=`expr $ac_count + 1`
3559 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3560 # Best one so far, save it but keep looking for a better one
3561 ac_cv_path_GREP="$ac_path_GREP"
3562 ac_path_GREP_max=$ac_count
3563 fi
3564 # 10*(2^10) chars as input seems more than enough
3565 test $ac_count -gt 10 && break
3566 done
3567 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3568esac
3569
ec6a6fbe
AK
3570 $ac_path_GREP_found && break 3
3571 done
d0191583 3572 done
ad6254c5 3573done
7a197a62 3574IFS=$as_save_IFS
ec6a6fbe
AK
3575 if test -z "$ac_cv_path_GREP"; then
3576 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3577$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3578 { (exit 1); exit 1; }; }
ec6a6fbe 3579 fi
80992638 3580else
d0191583 3581 ac_cv_path_GREP=$GREP
8106cdd5 3582fi
8106cdd5 3583
80992638 3584fi
ec6a6fbe
AK
3585{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3586$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3587 GREP="$ac_cv_path_GREP"
795ca3e5 3588
d0191583 3589
ec6a6fbe
AK
3590{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3591$as_echo_n "checking for egrep... " >&6; }
d0191583 3592if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3593 $as_echo_n "(cached) " >&6
8a2fc586 3594else
d0191583
JM
3595 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3596 then ac_cv_path_EGREP="$GREP -E"
3597 else
ec6a6fbe 3598 if test -z "$EGREP"; then
d0191583 3599 ac_path_EGREP_found=false
ec6a6fbe
AK
3600 # Loop through the user's path and test for each of PROGNAME-LIST
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3602for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3603do
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
d0191583 3606 for ac_prog in egrep; do
ec6a6fbe
AK
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3609 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3610# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3611 # Check for GNU $ac_path_EGREP
3612case `"$ac_path_EGREP" --version 2>&1` in
3613*GNU*)
3614 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3615*)
3616 ac_count=0
ec6a6fbe 3617 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3618 while :
3619 do
3620 cat "conftest.in" "conftest.in" >"conftest.tmp"
3621 mv "conftest.tmp" "conftest.in"
3622 cp "conftest.in" "conftest.nl"
ec6a6fbe 3623 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3624 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3625 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3626 ac_count=`expr $ac_count + 1`
3627 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3628 # Best one so far, save it but keep looking for a better one
3629 ac_cv_path_EGREP="$ac_path_EGREP"
3630 ac_path_EGREP_max=$ac_count
3631 fi
3632 # 10*(2^10) chars as input seems more than enough
3633 test $ac_count -gt 10 && break
3634 done
3635 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3636esac
8a2fc586 3637
ec6a6fbe
AK
3638 $ac_path_EGREP_found && break 3
3639 done
d0191583 3640 done
8a2fc586 3641done
7a197a62 3642IFS=$as_save_IFS
ec6a6fbe
AK
3643 if test -z "$ac_cv_path_EGREP"; then
3644 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3645$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3646 { (exit 1); exit 1; }; }
ec6a6fbe 3647 fi
d0191583
JM
3648else
3649 ac_cv_path_EGREP=$EGREP
3650fi
ad6254c5 3651
d0191583
JM
3652 fi
3653fi
ec6a6fbe
AK
3654{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3655$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3656 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3657
3658
d0191583 3659if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3660 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3661$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3662if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3663 $as_echo_n "(cached) " >&6
8106cdd5 3664else
d0191583 3665 ac_pattern="Autoconf.*'x'"
ad6254c5 3666 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3667/* confdefs.h. */
3668_ACEOF
3669cat confdefs.h >>conftest.$ac_ext
3670cat >>conftest.$ac_ext <<_ACEOF
3671/* end confdefs.h. */
d0191583
JM
3672#include <sgtty.h>
3673Autoconf TIOCGETP
ad6254c5 3674_ACEOF
d0191583
JM
3675if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3676 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3677 ac_cv_prog_gcc_traditional=yes
8106cdd5 3678else
d0191583 3679 ac_cv_prog_gcc_traditional=no
80992638 3680fi
d0191583 3681rm -f conftest*
ad6254c5 3682
8106cdd5 3683
d0191583
JM
3684 if test $ac_cv_prog_gcc_traditional = no; then
3685 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3686/* confdefs.h. */
3687_ACEOF
3688cat confdefs.h >>conftest.$ac_ext
3689cat >>conftest.$ac_ext <<_ACEOF
3690/* end confdefs.h. */
d0191583
JM
3691#include <termio.h>
3692Autoconf TCGETA
ad6254c5 3693_ACEOF
d0191583
JM
3694if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3695 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3696 ac_cv_prog_gcc_traditional=yes
7a197a62 3697fi
d0191583 3698rm -f conftest*
795ca3e5 3699
d0191583 3700 fi
795ca3e5 3701fi
ec6a6fbe
AK
3702{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3703$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3704 if test $ac_cv_prog_gcc_traditional = yes; then
3705 CC="$CC -traditional"
3706 fi
795ca3e5
AK
3707fi
3708
d0191583
JM
3709# Find a good install program. We prefer a C program (faster),
3710# so one script is as good as another. But avoid the broken or
3711# incompatible versions:
3712# SysV /etc/install, /usr/sbin/install
3713# SunOS /usr/etc/install
3714# IRIX /sbin/install
3715# AIX /bin/install
3716# AmigaOS /C/install, which installs bootblocks on floppy discs
3717# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3718# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3719# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3720# OS/2's system install, which has a completely different semantic
3721# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3722# Reject install programs that cannot install multiple files.
3723{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3724$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3725if test -z "$INSTALL"; then
3726if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3727 $as_echo_n "(cached) " >&6
ad6254c5 3728else
d0191583
JM
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730for as_dir in $PATH
3731do
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 # Account for people who put trailing slashes in PATH elements.
3735case $as_dir/ in
3736 ./ | .// | /cC/* | \
3737 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3738 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3739 /usr/ucb/* ) ;;
3740 *)
3741 # OSF1 and SCO ODT 3.0 have their own names for install.
3742 # Don't use installbsd from OSF since it installs stuff as root
3743 # by default.
3744 for ac_prog in ginstall scoinst install; do
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3747 if test $ac_prog = install &&
3748 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3749 # AIX install. It has an incompatible calling convention.
3750 :
3751 elif test $ac_prog = install &&
3752 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3753 # program-specific install script used by HP pwplus--don't use.
3754 :
3755 else
ec6a6fbe
AK
3756 rm -rf conftest.one conftest.two conftest.dir
3757 echo one > conftest.one
3758 echo two > conftest.two
3759 mkdir conftest.dir
3760 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3761 test -s conftest.one && test -s conftest.two &&
3762 test -s conftest.dir/conftest.one &&
3763 test -s conftest.dir/conftest.two
3764 then
3765 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3766 break 3
3767 fi
d0191583
JM
3768 fi
3769 fi
3770 done
3771 done
3772 ;;
3773esac
ec6a6fbe 3774
d0191583
JM
3775done
3776IFS=$as_save_IFS
80992638 3777
ec6a6fbe 3778rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3779
3780fi
3781 if test "${ac_cv_path_install+set}" = set; then
3782 INSTALL=$ac_cv_path_install
7a197a62 3783 else
d0191583
JM
3784 # As a last resort, use the slow shell script. Don't cache a
3785 # value for INSTALL within a source directory, because that will
3786 # break other packages using the cache if that directory is
3787 # removed, or if the value is a relative name.
3788 INSTALL=$ac_install_sh
7a197a62 3789 fi
d0191583 3790fi
ec6a6fbe
AK
3791{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3792$as_echo "$INSTALL" >&6; }
ad6254c5 3793
d0191583
JM
3794# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3795# It thinks the first close brace ends the variable substitution.
3796test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3797
d0191583 3798test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3799
d0191583
JM
3800test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3801
ec6a6fbe
AK
3802{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3803$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3804LN_S=$as_ln_s
3805if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3806 { $as_echo "$as_me:$LINENO: result: yes" >&5
3807$as_echo "yes" >&6; }
d0191583 3808else
ec6a6fbe
AK
3809 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3810$as_echo "no, using $LN_S" >&6; }
795ca3e5 3811fi
d0191583 3812
ec6a6fbe
AK
3813{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3814$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3815set x ${MAKE-make}
3816ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3817if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3818 $as_echo_n "(cached) " >&6
7a197a62 3819else
d0191583
JM
3820 cat >conftest.make <<\_ACEOF
3821SHELL = /bin/sh
3822all:
3823 @echo '@@@%%%=$(MAKE)=@@@%%%'
3824_ACEOF
3825# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3826case `${MAKE-make} -f conftest.make 2>/dev/null` in
3827 *@@@%%%=?*=@@@%%%*)
3828 eval ac_cv_prog_make_${ac_make}_set=yes;;
3829 *)
3830 eval ac_cv_prog_make_${ac_make}_set=no;;
3831esac
3832rm -f conftest.make
ad6254c5 3833fi
d0191583 3834if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3835 { $as_echo "$as_me:$LINENO: result: yes" >&5
3836$as_echo "yes" >&6; }
d0191583
JM
3837 SET_MAKE=
3838else
ec6a6fbe
AK
3839 { $as_echo "$as_me:$LINENO: result: no" >&5
3840$as_echo "no" >&6; }
d0191583 3841 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3842fi
8106cdd5 3843
ec6a6fbe
AK
3844{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3845$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3846if test -z "$MKDIR_P"; then
3847 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3848 $as_echo_n "(cached) " >&6
5556819a
AK
3849else
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3852do
3853 IFS=$as_save_IFS
3854 test -z "$as_dir" && as_dir=.
3855 for ac_prog in mkdir gmkdir; do
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3858 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3859 'mkdir (GNU coreutils) '* | \
3860 'mkdir (coreutils) '* | \
3861 'mkdir (fileutils) '4.1*)
3862 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3863 break 3;;
3864 esac
3865 done
3866 done
3867done
3868IFS=$as_save_IFS
3869
3870fi
3871
3872 if test "${ac_cv_path_mkdir+set}" = set; then
3873 MKDIR_P="$ac_cv_path_mkdir -p"
3874 else
3875 # As a last resort, use the slow shell script. Don't cache a
3876 # value for MKDIR_P within a source directory, because that will
3877 # break other packages using the cache if that directory is
3878 # removed, or if the value is a relative name.
3879 test -d ./--version && rmdir ./--version
3880 MKDIR_P="$ac_install_sh -d"
3881 fi
3882fi
ec6a6fbe
AK
3883{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3884$as_echo "$MKDIR_P" >&6; }
5556819a 3885
d0191583
JM
3886if test -n "$ac_tool_prefix"; then
3887 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3888set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3889{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3890$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3891if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3892 $as_echo_n "(cached) " >&6
d0191583
JM
3893else
3894 if test -n "$RANLIB"; then
3895 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3896else
3897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898for as_dir in $PATH
3899do
3900 IFS=$as_save_IFS
3901 test -z "$as_dir" && as_dir=.
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3904 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3905 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3906 break 2
3907 fi
3908done
3909done
3910IFS=$as_save_IFS
8106cdd5 3911
795ca3e5 3912fi
d0191583
JM
3913fi
3914RANLIB=$ac_cv_prog_RANLIB
3915if test -n "$RANLIB"; then
ec6a6fbe
AK
3916 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3917$as_echo "$RANLIB" >&6; }
d0191583 3918else
ec6a6fbe
AK
3919 { $as_echo "$as_me:$LINENO: result: no" >&5
3920$as_echo "no" >&6; }
d0191583
JM
3921fi
3922
8106cdd5 3923
ad6254c5 3924fi
d0191583
JM
3925if test -z "$ac_cv_prog_RANLIB"; then
3926 ac_ct_RANLIB=$RANLIB
3927 # Extract the first word of "ranlib", so it can be a program name with args.
3928set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3929{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3930$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3931if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 3932 $as_echo_n "(cached) " >&6
ad6254c5 3933else
d0191583
JM
3934 if test -n "$ac_ct_RANLIB"; then
3935 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3936else
3937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938for as_dir in $PATH
8106cdd5 3939do
d0191583
JM
3940 IFS=$as_save_IFS
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3944 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 3945 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3946 break 2
3947 fi
3948done
3949done
3950IFS=$as_save_IFS
3951
3952fi
3953fi
3954ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3955if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
3956 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3957$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 3958else
ec6a6fbe
AK
3959 { $as_echo "$as_me:$LINENO: result: no" >&5
3960$as_echo "no" >&6; }
d0191583 3961fi
ad6254c5 3962
d0191583
JM
3963 if test "x$ac_ct_RANLIB" = x; then
3964 RANLIB=":"
3965 else
3966 case $cross_compiling:$ac_tool_warned in
3967yes:)
ec6a6fbe
AK
3968{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
3970ac_tool_warned=yes ;;
3971esac
3972 RANLIB=$ac_ct_RANLIB
3973 fi
3974else
3975 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 3976fi
7a197a62 3977
d0191583
JM
3978# Extract the first word of "cflow", so it can be a program name with args.
3979set dummy cflow; ac_word=$2
ec6a6fbe
AK
3980{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3981$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3982if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 3983 $as_echo_n "(cached) " >&6
d0191583
JM
3984else
3985 case $CFLOW_CMD in
3986 [\\/]* | ?:[\\/]*)
3987 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3988 ;;
3989 *)
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991for as_dir in $PATH
3992do
3993 IFS=$as_save_IFS
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3997 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 3998 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3999 break 2
4000 fi
4001done
4002done
4003IFS=$as_save_IFS
ad6254c5 4004
d0191583 4005 ;;
7a197a62 4006esac
d0191583
JM
4007fi
4008CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4009if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
4010 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4011$as_echo "$CFLOW_CMD" >&6; }
80992638 4012else
ec6a6fbe
AK
4013 { $as_echo "$as_me:$LINENO: result: no" >&5
4014$as_echo "no" >&6; }
795ca3e5 4015fi
7a197a62 4016
ad6254c5 4017
d0191583
JM
4018# Extract the first word of "cscope", so it can be a program name with args.
4019set dummy cscope; ac_word=$2
ec6a6fbe
AK
4020{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4021$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4022if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 4023 $as_echo_n "(cached) " >&6
d0191583
JM
4024else
4025 case $CSCOPE_CMD in
4026 [\\/]* | ?:[\\/]*)
4027 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4028 ;;
4029 *)
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031for as_dir in $PATH
4032do
4033 IFS=$as_save_IFS
4034 test -z "$as_dir" && as_dir=.
4035 for ac_exec_ext in '' $ac_executable_extensions; do
4036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4037 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4038 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4039 break 2
4040 fi
795ca3e5 4041done
d0191583
JM
4042done
4043IFS=$as_save_IFS
795ca3e5 4044
d0191583
JM
4045 ;;
4046esac
ad6254c5 4047fi
d0191583
JM
4048CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4049if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
4050 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4051$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 4052else
ec6a6fbe
AK
4053 { $as_echo "$as_me:$LINENO: result: no" >&5
4054$as_echo "no" >&6; }
795ca3e5 4055fi
ad6254c5 4056
7a197a62 4057
ad6254c5 4058
d0191583
JM
4059################################################################################
4060
4061
4062
4063
4064
4065ac_header_dirent=no
4066for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
4067 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4068{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4069$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 4070if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4071 $as_echo_n "(cached) " >&6
d0191583 4072else
ad6254c5 4073 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4074/* confdefs.h. */
4075_ACEOF
4076cat confdefs.h >>conftest.$ac_ext
4077cat >>conftest.$ac_ext <<_ACEOF
4078/* end confdefs.h. */
d0191583
JM
4079#include <sys/types.h>
4080#include <$ac_hdr>
4081
4082int
4083main ()
4084{
4085if ((DIR *) 0)
4086return 0;
4087 ;
4088 return 0;
4089}
ad6254c5 4090_ACEOF
d0191583
JM
4091rm -f conftest.$ac_objext
4092if { (ac_try="$ac_compile"
7a197a62
AK
4093case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4096esac
ec6a6fbe
AK
4097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4098$as_echo "$ac_try_echo") >&5
d0191583 4099 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4100 ac_status=$?
4101 grep -v '^ *+' conftest.er1 >conftest.err
4102 rm -f conftest.er1
4103 cat conftest.err >&5
ec6a6fbe 4104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4105 (exit $ac_status); } && {
4106 test -z "$ac_c_werror_flag" ||
25fbec5b 4107 test ! -s conftest.err
d0191583
JM
4108 } && test -s conftest.$ac_objext; then
4109 eval "$as_ac_Header=yes"
ad6254c5 4110else
ec6a6fbe 4111 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4112sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4113
d0191583 4114 eval "$as_ac_Header=no"
795ca3e5 4115fi
7a197a62 4116
d0191583 4117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4118fi
ec6a6fbe
AK
4119ac_res=`eval 'as_val=${'$as_ac_Header'}
4120 $as_echo "$as_val"'`
4121 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4122$as_echo "$ac_res" >&6; }
4123as_val=`eval 'as_val=${'$as_ac_Header'}
4124 $as_echo "$as_val"'`
4125 if test "x$as_val" = x""yes; then
d0191583 4126 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4127#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4128_ACEOF
795ca3e5 4129
d0191583
JM
4130ac_header_dirent=$ac_hdr; break
4131fi
ad6254c5 4132
d0191583
JM
4133done
4134# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4135if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4136 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4137$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4138if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4139 $as_echo_n "(cached) " >&6
ad6254c5 4140else
d0191583
JM
4141 ac_func_search_save_LIBS=$LIBS
4142cat >conftest.$ac_ext <<_ACEOF
4143/* confdefs.h. */
4144_ACEOF
4145cat confdefs.h >>conftest.$ac_ext
4146cat >>conftest.$ac_ext <<_ACEOF
4147/* end confdefs.h. */
ad6254c5 4148
d0191583
JM
4149/* Override any GCC internal prototype to avoid an error.
4150 Use char because int might match the return type of a GCC
4151 builtin and then its argument prototype would still apply. */
4152#ifdef __cplusplus
4153extern "C"
4154#endif
4155char opendir ();
4156int
4157main ()
4158{
4159return opendir ();
4160 ;
4161 return 0;
4162}
4163_ACEOF
4164for ac_lib in '' dir; do
4165 if test -z "$ac_lib"; then
4166 ac_res="none required"
4167 else
4168 ac_res=-l$ac_lib
4169 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4170 fi
4171 rm -f conftest.$ac_objext conftest$ac_exeext
4172if { (ac_try="$ac_link"
4173case "(($ac_try" in
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4176esac
ec6a6fbe
AK
4177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4178$as_echo "$ac_try_echo") >&5
d0191583
JM
4179 (eval "$ac_link") 2>conftest.er1
4180 ac_status=$?
4181 grep -v '^ *+' conftest.er1 >conftest.err
4182 rm -f conftest.er1
4183 cat conftest.err >&5
ec6a6fbe 4184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4185 (exit $ac_status); } && {
4186 test -z "$ac_c_werror_flag" ||
4187 test ! -s conftest.err
ec6a6fbe
AK
4188 } && test -s conftest$ac_exeext && {
4189 test "$cross_compiling" = yes ||
4190 $as_test_x conftest$ac_exeext
4191 }; then
d0191583
JM
4192 ac_cv_search_opendir=$ac_res
4193else
ec6a6fbe 4194 $as_echo "$as_me: failed program was:" >&5
d0191583 4195sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4196
ad6254c5 4197
795ca3e5 4198fi
ad6254c5 4199
ec6a6fbe 4200rm -rf conftest.dSYM
d0191583
JM
4201rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4202 conftest$ac_exeext
4203 if test "${ac_cv_search_opendir+set}" = set; then
4204 break
7a197a62 4205fi
d0191583
JM
4206done
4207if test "${ac_cv_search_opendir+set}" = set; then
4208 :
7a197a62 4209else
d0191583 4210 ac_cv_search_opendir=no
7a197a62 4211fi
d0191583
JM
4212rm conftest.$ac_ext
4213LIBS=$ac_func_search_save_LIBS
7a197a62 4214fi
ec6a6fbe
AK
4215{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4216$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4217ac_res=$ac_cv_search_opendir
4218if test "$ac_res" != no; then
4219 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4220
d0191583 4221fi
7a197a62 4222
7a197a62 4223else
ec6a6fbe
AK
4224 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4225$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4226if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4227 $as_echo_n "(cached) " >&6
7a197a62 4228else
d0191583
JM
4229 ac_func_search_save_LIBS=$LIBS
4230cat >conftest.$ac_ext <<_ACEOF
4231/* confdefs.h. */
4232_ACEOF
4233cat confdefs.h >>conftest.$ac_ext
4234cat >>conftest.$ac_ext <<_ACEOF
4235/* end confdefs.h. */
7a197a62 4236
d0191583
JM
4237/* Override any GCC internal prototype to avoid an error.
4238 Use char because int might match the return type of a GCC
4239 builtin and then its argument prototype would still apply. */
4240#ifdef __cplusplus
4241extern "C"
4242#endif
4243char opendir ();
4244int
4245main ()
4246{
4247return opendir ();
4248 ;
4249 return 0;
4250}
4251_ACEOF
4252for ac_lib in '' x; do
4253 if test -z "$ac_lib"; then
4254 ac_res="none required"
4255 else
4256 ac_res=-l$ac_lib
4257 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4258 fi
4259 rm -f conftest.$ac_objext conftest$ac_exeext
4260if { (ac_try="$ac_link"
4261case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264esac
ec6a6fbe
AK
4265eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4266$as_echo "$ac_try_echo") >&5
d0191583
JM
4267 (eval "$ac_link") 2>conftest.er1
4268 ac_status=$?
4269 grep -v '^ *+' conftest.er1 >conftest.err
4270 rm -f conftest.er1
4271 cat conftest.err >&5
ec6a6fbe 4272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4273 (exit $ac_status); } && {
4274 test -z "$ac_c_werror_flag" ||
4275 test ! -s conftest.err
ec6a6fbe
AK
4276 } && test -s conftest$ac_exeext && {
4277 test "$cross_compiling" = yes ||
4278 $as_test_x conftest$ac_exeext
4279 }; then
d0191583
JM
4280 ac_cv_search_opendir=$ac_res
4281else
ec6a6fbe 4282 $as_echo "$as_me: failed program was:" >&5
d0191583 4283sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4284
4285
4286fi
4287
ec6a6fbe 4288rm -rf conftest.dSYM
d0191583
JM
4289rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4290 conftest$ac_exeext
4291 if test "${ac_cv_search_opendir+set}" = set; then
4292 break
7a197a62 4293fi
d0191583
JM
4294done
4295if test "${ac_cv_search_opendir+set}" = set; then
4296 :
7a197a62 4297else
d0191583 4298 ac_cv_search_opendir=no
7a197a62 4299fi
d0191583
JM
4300rm conftest.$ac_ext
4301LIBS=$ac_func_search_save_LIBS
4302fi
ec6a6fbe
AK
4303{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4304$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4305ac_res=$ac_cv_search_opendir
4306if test "$ac_res" != no; then
4307 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4308
7a197a62 4309fi
7a197a62 4310
d0191583 4311fi
7a197a62 4312
ec6a6fbe
AK
4313{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4314$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4315if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4316 $as_echo_n "(cached) " >&6
7a197a62
AK
4317else
4318 cat >conftest.$ac_ext <<_ACEOF
4319/* confdefs.h. */
4320_ACEOF
4321cat confdefs.h >>conftest.$ac_ext
4322cat >>conftest.$ac_ext <<_ACEOF
4323/* end confdefs.h. */
4324#include <stdlib.h>
4325#include <stdarg.h>
4326#include <string.h>
4327#include <float.h>
4328
4329int
4330main ()
4331{
4332
4333 ;
4334 return 0;
4335}
4336_ACEOF
4337rm -f conftest.$ac_objext
4338if { (ac_try="$ac_compile"
4339case "(($ac_try" in
4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4342esac
ec6a6fbe
AK
4343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4344$as_echo "$ac_try_echo") >&5
7a197a62
AK
4345 (eval "$ac_compile") 2>conftest.er1
4346 ac_status=$?
4347 grep -v '^ *+' conftest.er1 >conftest.err
4348 rm -f conftest.er1
4349 cat conftest.err >&5
ec6a6fbe 4350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4351 (exit $ac_status); } && {
4352 test -z "$ac_c_werror_flag" ||
4353 test ! -s conftest.err
4354 } && test -s conftest.$ac_objext; then
7a197a62
AK
4355 ac_cv_header_stdc=yes
4356else
ec6a6fbe 4357 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4358sed 's/^/| /' conftest.$ac_ext >&5
4359
4360 ac_cv_header_stdc=no
4361fi
4362
4363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364
4365if test $ac_cv_header_stdc = yes; then
4366 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4367 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4368/* confdefs.h. */
4369_ACEOF
4370cat confdefs.h >>conftest.$ac_ext
4371cat >>conftest.$ac_ext <<_ACEOF
4372/* end confdefs.h. */
4373#include <string.h>
8106cdd5 4374
ad6254c5
AK
4375_ACEOF
4376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4377 $EGREP "memchr" >/dev/null 2>&1; then
4378 :
4379else
4380 ac_cv_header_stdc=no
80992638 4381fi
ad6254c5 4382rm -f conftest*
795ca3e5
AK
4383
4384fi
4385
ad6254c5
AK
4386if test $ac_cv_header_stdc = yes; then
4387 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4388 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4389/* confdefs.h. */
4390_ACEOF
4391cat confdefs.h >>conftest.$ac_ext
4392cat >>conftest.$ac_ext <<_ACEOF
4393/* end confdefs.h. */
80992638 4394#include <stdlib.h>
ad6254c5
AK
4395
4396_ACEOF
80992638 4397if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4398 $EGREP "free" >/dev/null 2>&1; then
4399 :
795ca3e5 4400else
ad6254c5 4401 ac_cv_header_stdc=no
795ca3e5 4402fi
80992638 4403rm -f conftest*
8106cdd5 4404
795ca3e5
AK
4405fi
4406
ad6254c5
AK
4407if test $ac_cv_header_stdc = yes; then
4408 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4409 if test "$cross_compiling" = yes; then
4410 :
795ca3e5 4411else
ad6254c5 4412 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4413/* confdefs.h. */
4414_ACEOF
4415cat confdefs.h >>conftest.$ac_ext
4416cat >>conftest.$ac_ext <<_ACEOF
4417/* end confdefs.h. */
4418#include <ctype.h>
7a197a62 4419#include <stdlib.h>
ad6254c5
AK
4420#if ((' ' & 0x0FF) == 0x020)
4421# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4422# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4423#else
4424# define ISLOWER(c) \
8a2fc586
AK
4425 (('a' <= (c) && (c) <= 'i') \
4426 || ('j' <= (c) && (c) <= 'r') \
4427 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4428# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4429#endif
ad6254c5
AK
4430
4431#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4432int
4433main ()
4434{
4435 int i;
4436 for (i = 0; i < 256; i++)
4437 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4438 || toupper (i) != TOUPPER (i))
7a197a62
AK
4439 return 2;
4440 return 0;
ad6254c5
AK
4441}
4442_ACEOF
4443rm -f conftest$ac_exeext
7a197a62
AK
4444if { (ac_try="$ac_link"
4445case "(($ac_try" in
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4448esac
ec6a6fbe
AK
4449eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4450$as_echo "$ac_try_echo") >&5
7a197a62 4451 (eval "$ac_link") 2>&5
ad6254c5 4452 ac_status=$?
ec6a6fbe 4453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4455 { (case "(($ac_try" in
4456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457 *) ac_try_echo=$ac_try;;
4458esac
ec6a6fbe
AK
4459eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4460$as_echo "$ac_try_echo") >&5
7a197a62 4461 (eval "$ac_try") 2>&5
ad6254c5 4462 ac_status=$?
ec6a6fbe 4463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4464 (exit $ac_status); }; }; then
4465 :
795ca3e5 4466else
ec6a6fbe
AK
4467 $as_echo "$as_me: program exited with status $ac_status" >&5
4468$as_echo "$as_me: failed program was:" >&5
ad6254c5 4469sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4470
ad6254c5
AK
4471( exit $ac_status )
4472ac_cv_header_stdc=no
80992638 4473fi
ec6a6fbe 4474rm -rf conftest.dSYM
7a197a62 4475rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4476fi
7a197a62
AK
4477
4478
ad6254c5
AK
4479fi
4480fi
ec6a6fbe
AK
4481{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4482$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4483if test $ac_cv_header_stdc = yes; then
4484
4485cat >>confdefs.h <<\_ACEOF
4486#define STDC_HEADERS 1
4487_ACEOF
795ca3e5
AK
4488
4489fi
4490
ec6a6fbe
AK
4491{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4492$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
ad6254c5 4493if test "${ac_cv_header_sys_wait_h+set}" = set; then
ec6a6fbe 4494 $as_echo_n "(cached) " >&6
8106cdd5 4495else
ad6254c5 4496 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4497/* confdefs.h. */
4498_ACEOF
4499cat confdefs.h >>conftest.$ac_ext
4500cat >>conftest.$ac_ext <<_ACEOF
4501/* end confdefs.h. */
80992638 4502#include <sys/types.h>
ad6254c5
AK
4503#include <sys/wait.h>
4504#ifndef WEXITSTATUS
7a197a62 4505# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4506#endif
4507#ifndef WIFEXITED
4508# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4509#endif
4510
4511int
4512main ()
4513{
4514 int s;
4515 wait (&s);
4516 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4517 ;
4518 return 0;
4519}
4520_ACEOF
4521rm -f conftest.$ac_objext
7a197a62
AK
4522if { (ac_try="$ac_compile"
4523case "(($ac_try" in
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4526esac
ec6a6fbe
AK
4527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4528$as_echo "$ac_try_echo") >&5
7a197a62 4529 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4530 ac_status=$?
8a2fc586
AK
4531 grep -v '^ *+' conftest.er1 >conftest.err
4532 rm -f conftest.er1
4533 cat conftest.err >&5
ec6a6fbe 4534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4535 (exit $ac_status); } && {
4536 test -z "$ac_c_werror_flag" ||
4537 test ! -s conftest.err
4538 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4539 ac_cv_header_sys_wait_h=yes
4540else
ec6a6fbe 4541 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4542sed 's/^/| /' conftest.$ac_ext >&5
4543
7a197a62 4544 ac_cv_header_sys_wait_h=no
8106cdd5 4545fi
7a197a62
AK
4546
4547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4548fi
ec6a6fbe
AK
4549{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4550$as_echo "$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4551if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4552
ad6254c5
AK
4553cat >>confdefs.h <<\_ACEOF
4554#define HAVE_SYS_WAIT_H 1
4555_ACEOF
795ca3e5
AK
4556
4557fi
4558
ec6a6fbe
AK
4559{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4560$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
ad6254c5 4561if test "${ac_cv_header_time+set}" = set; then
ec6a6fbe 4562 $as_echo_n "(cached) " >&6
795ca3e5 4563else
ad6254c5 4564 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4565/* confdefs.h. */
4566_ACEOF
4567cat confdefs.h >>conftest.$ac_ext
4568cat >>conftest.$ac_ext <<_ACEOF
4569/* end confdefs.h. */
795ca3e5
AK
4570#include <sys/types.h>
4571#include <sys/time.h>
4572#include <time.h>
ad6254c5
AK
4573
4574int
4575main ()
4576{
4577if ((struct tm *) 0)
4578return 0;
4579 ;
4580 return 0;
4581}
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
795ca3e5
AK
4601 ac_cv_header_time=yes
4602else
ec6a6fbe 4603 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4604sed 's/^/| /' conftest.$ac_ext >&5
4605
7a197a62 4606 ac_cv_header_time=no
795ca3e5 4607fi
7a197a62
AK
4608
4609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4610fi
ec6a6fbe
AK
4611{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4612$as_echo "$ac_cv_header_time" >&6; }
80992638 4613if test $ac_cv_header_time = yes; then
ad6254c5
AK
4614
4615cat >>confdefs.h <<\_ACEOF
795ca3e5 4616#define TIME_WITH_SYS_TIME 1
ad6254c5 4617_ACEOF
b896caa1 4618
8106cdd5 4619fi
b896caa1 4620
b896caa1 4621
d0191583
JM
4622# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4633 inttypes.h stdint.h unistd.h
4634do
ec6a6fbe
AK
4635as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4636{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4637$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4639 $as_echo_n "(cached) " >&6
d0191583
JM
4640else
4641 cat >conftest.$ac_ext <<_ACEOF
4642/* confdefs.h. */
4643_ACEOF
4644cat confdefs.h >>conftest.$ac_ext
4645cat >>conftest.$ac_ext <<_ACEOF
4646/* end confdefs.h. */
4647$ac_includes_default
4648
4649#include <$ac_header>
4650_ACEOF
4651rm -f conftest.$ac_objext
4652if { (ac_try="$ac_compile"
4653case "(($ac_try" in
4654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655 *) ac_try_echo=$ac_try;;
4656esac
ec6a6fbe
AK
4657eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4658$as_echo "$ac_try_echo") >&5
d0191583
JM
4659 (eval "$ac_compile") 2>conftest.er1
4660 ac_status=$?
4661 grep -v '^ *+' conftest.er1 >conftest.err
4662 rm -f conftest.er1
4663 cat conftest.err >&5
ec6a6fbe 4664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4665 (exit $ac_status); } && {
4666 test -z "$ac_c_werror_flag" ||
4667 test ! -s conftest.err
4668 } && test -s conftest.$ac_objext; then
4669 eval "$as_ac_Header=yes"
4670else
ec6a6fbe 4671 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4672sed 's/^/| /' conftest.$ac_ext >&5
4673
4674 eval "$as_ac_Header=no"
4675fi
4676
4677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4678fi
ec6a6fbe
AK
4679ac_res=`eval 'as_val=${'$as_ac_Header'}
4680 $as_echo "$as_val"'`
4681 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4682$as_echo "$ac_res" >&6; }
4683as_val=`eval 'as_val=${'$as_ac_Header'}
4684 $as_echo "$as_val"'`
4685 if test "x$as_val" = x""yes; then
d0191583 4686 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4687#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d0191583
JM
4688_ACEOF
4689
4690fi
4691
4692done
4693
b896caa1 4694
b896caa1
AK
4695
4696
795ca3e5 4697
8106cdd5 4698
80992638 4699
795ca3e5 4700
a38df97f 4701
80992638 4702
d0191583
JM
4703
4704
4705
4706
4707
4708for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4709 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
ad6254c5 4710do
ec6a6fbe 4711as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0191583 4712if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4713 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4714$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4715if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4716 $as_echo_n "(cached) " >&6
d0191583 4717fi
ec6a6fbe
AK
4718ac_res=`eval 'as_val=${'$as_ac_Header'}
4719 $as_echo "$as_val"'`
4720 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4721$as_echo "$ac_res" >&6; }
ad6254c5 4722else
d0191583 4723 # Is the header compilable?
ec6a6fbe
AK
4724{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4725$as_echo_n "checking $ac_header usability... " >&6; }
d0191583 4726cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4727/* confdefs.h. */
4728_ACEOF
4729cat confdefs.h >>conftest.$ac_ext
4730cat >>conftest.$ac_ext <<_ACEOF
4731/* end confdefs.h. */
4732$ac_includes_default
ad6254c5
AK
4733#include <$ac_header>
4734_ACEOF
4735rm -f conftest.$ac_objext
7a197a62
AK
4736if { (ac_try="$ac_compile"
4737case "(($ac_try" in
4738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739 *) ac_try_echo=$ac_try;;
4740esac
ec6a6fbe
AK
4741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4742$as_echo "$ac_try_echo") >&5
7a197a62 4743 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4744 ac_status=$?
8a2fc586
AK
4745 grep -v '^ *+' conftest.er1 >conftest.err
4746 rm -f conftest.er1
4747 cat conftest.err >&5
ec6a6fbe 4748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4749 (exit $ac_status); } && {
4750 test -z "$ac_c_werror_flag" ||
4751 test ! -s conftest.err
4752 } && test -s conftest.$ac_objext; then
d0191583 4753 ac_header_compiler=yes
ad6254c5 4754else
ec6a6fbe 4755 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4756sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4757
d0191583 4758 ac_header_compiler=no
ad6254c5 4759fi
7a197a62
AK
4760
4761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4762{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4763$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4764
4765# Is the header present?
ec6a6fbe
AK
4766{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4767$as_echo_n "checking $ac_header presence... " >&6; }
d0191583
JM
4768cat >conftest.$ac_ext <<_ACEOF
4769/* confdefs.h. */
4770_ACEOF
4771cat confdefs.h >>conftest.$ac_ext
4772cat >>conftest.$ac_ext <<_ACEOF
4773/* end confdefs.h. */
4774#include <$ac_header>
4775_ACEOF
4776if { (ac_try="$ac_cpp conftest.$ac_ext"
4777case "(($ac_try" in
4778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4779 *) ac_try_echo=$ac_try;;
4780esac
ec6a6fbe
AK
4781eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4782$as_echo "$ac_try_echo") >&5
d0191583
JM
4783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4784 ac_status=$?
4785 grep -v '^ *+' conftest.er1 >conftest.err
4786 rm -f conftest.er1
4787 cat conftest.err >&5
ec6a6fbe 4788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4789 (exit $ac_status); } >/dev/null && {
4790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4791 test ! -s conftest.err
4792 }; then
4793 ac_header_preproc=yes
4794else
ec6a6fbe 4795 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4796sed 's/^/| /' conftest.$ac_ext >&5
4797
4798 ac_header_preproc=no
4799fi
4800
4801rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4802{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4803$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4804
4805# So? What about this header?
4806case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4807 yes:no: )
ec6a6fbe
AK
4808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4809$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4811$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d0191583
JM
4812 ac_header_preproc=yes
4813 ;;
4814 no:yes:* )
ec6a6fbe
AK
4815 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4816$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4817 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4818$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4820$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4822$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4824$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4826$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4827
4828 ;;
4829esac
ec6a6fbe
AK
4830{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4831$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4832if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4833 $as_echo_n "(cached) " >&6
d0191583
JM
4834else
4835 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4836fi
ec6a6fbe
AK
4837ac_res=`eval 'as_val=${'$as_ac_Header'}
4838 $as_echo "$as_val"'`
4839 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4840$as_echo "$ac_res" >&6; }
d0191583
JM
4841
4842fi
ec6a6fbe
AK
4843as_val=`eval 'as_val=${'$as_ac_Header'}
4844 $as_echo "$as_val"'`
4845 if test "x$as_val" = x""yes; then
ad6254c5 4846 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4847#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4848_ACEOF
a38df97f 4849
d0191583 4850else
ec6a6fbe
AK
4851 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4852$as_echo "$as_me: error: bailing out" >&2;}
d0191583 4853 { (exit 1); exit 1; }; }
80992638
AK
4854fi
4855
ad6254c5
AK
4856done
4857
7d1552c9 4858
d0191583
JM
4859case "$host_os" in
4860 linux*)
7d1552c9 4861
80992638 4862
5a52dca9 4863
d0191583 4864for ac_header in asm/byteorder.h linux/fs.h malloc.h
ad6254c5 4865do
ec6a6fbe 4866as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4867if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4868 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4869$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4870if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4871 $as_echo_n "(cached) " >&6
ad6254c5 4872fi
ec6a6fbe
AK
4873ac_res=`eval 'as_val=${'$as_ac_Header'}
4874 $as_echo "$as_val"'`
4875 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4876$as_echo "$ac_res" >&6; }
ad6254c5
AK
4877else
4878 # Is the header compilable?
ec6a6fbe
AK
4879{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4880$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4881cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4882/* confdefs.h. */
4883_ACEOF
4884cat confdefs.h >>conftest.$ac_ext
4885cat >>conftest.$ac_ext <<_ACEOF
4886/* end confdefs.h. */
4887$ac_includes_default
4888#include <$ac_header>
4889_ACEOF
4890rm -f conftest.$ac_objext
7a197a62
AK
4891if { (ac_try="$ac_compile"
4892case "(($ac_try" in
4893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4894 *) ac_try_echo=$ac_try;;
4895esac
ec6a6fbe
AK
4896eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4897$as_echo "$ac_try_echo") >&5
7a197a62 4898 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4899 ac_status=$?
8a2fc586
AK
4900 grep -v '^ *+' conftest.er1 >conftest.err
4901 rm -f conftest.er1
4902 cat conftest.err >&5
ec6a6fbe 4903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4904 (exit $ac_status); } && {
4905 test -z "$ac_c_werror_flag" ||
4906 test ! -s conftest.err
4907 } && test -s conftest.$ac_objext; then
fc54be10
AK
4908 ac_header_compiler=yes
4909else
ec6a6fbe 4910 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4911sed 's/^/| /' conftest.$ac_ext >&5
4912
4913 ac_header_compiler=no
4914fi
4915
4916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4917{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4918$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4919
4920# Is the header present?
ec6a6fbe
AK
4921{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4922$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 4923cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4924/* confdefs.h. */
4925_ACEOF
4926cat confdefs.h >>conftest.$ac_ext
4927cat >>conftest.$ac_ext <<_ACEOF
4928/* end confdefs.h. */
4929#include <$ac_header>
4930_ACEOF
7a197a62
AK
4931if { (ac_try="$ac_cpp conftest.$ac_ext"
4932case "(($ac_try" in
4933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934 *) ac_try_echo=$ac_try;;
4935esac
ec6a6fbe
AK
4936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4937$as_echo "$ac_try_echo") >&5
7a197a62 4938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4939 ac_status=$?
4940 grep -v '^ *+' conftest.er1 >conftest.err
4941 rm -f conftest.er1
4942 cat conftest.err >&5
ec6a6fbe 4943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4944 (exit $ac_status); } >/dev/null && {
4945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4946 test ! -s conftest.err
4947 }; then
ad6254c5
AK
4948 ac_header_preproc=yes
4949else
ec6a6fbe 4950 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4951sed 's/^/| /' conftest.$ac_ext >&5
4952
4953 ac_header_preproc=no
4954fi
7a197a62 4955
ad6254c5 4956rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4957{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4958$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4959
4960# So? What about this header?
8a2fc586
AK
4961case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4962 yes:no: )
ec6a6fbe
AK
4963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4964$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4965 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4966$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4967 ac_header_preproc=yes
ad6254c5 4968 ;;
8a2fc586 4969 no:yes:* )
ec6a6fbe
AK
4970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4971$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4973$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4975$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4977$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4979$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4981$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4982
ad6254c5
AK
4983 ;;
4984esac
ec6a6fbe
AK
4985{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4986$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4987if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4988 $as_echo_n "(cached) " >&6
ad6254c5 4989else
8a2fc586 4990 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4991fi
ec6a6fbe
AK
4992ac_res=`eval 'as_val=${'$as_ac_Header'}
4993 $as_echo "$as_val"'`
4994 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4995$as_echo "$ac_res" >&6; }
ad6254c5
AK
4996
4997fi
ec6a6fbe
AK
4998as_val=`eval 'as_val=${'$as_ac_Header'}
4999 $as_echo "$as_val"'`
5000 if test "x$as_val" = x""yes; then
ad6254c5 5001 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5002#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5003_ACEOF
b896caa1 5004
d8ac0fbc 5005else
ec6a6fbe
AK
5006 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5007$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5008 { (exit 1); exit 1; }; }
80992638
AK
5009fi
5010
ad6254c5 5011done
d0191583
JM
5012 ;;
5013 darwin*)
d8ac0fbc 5014
d8ac0fbc 5015
d0191583 5016for ac_header in machine/endian.h sys/disk.h
ad6254c5 5017do
ec6a6fbe 5018as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5019if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5020 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5021$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5022if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5023 $as_echo_n "(cached) " >&6
ad6254c5 5024fi
ec6a6fbe
AK
5025ac_res=`eval 'as_val=${'$as_ac_Header'}
5026 $as_echo "$as_val"'`
5027 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5028$as_echo "$ac_res" >&6; }
ad6254c5
AK
5029else
5030 # Is the header compilable?
ec6a6fbe
AK
5031{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5032$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5033cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5034/* confdefs.h. */
5035_ACEOF
5036cat confdefs.h >>conftest.$ac_ext
5037cat >>conftest.$ac_ext <<_ACEOF
5038/* end confdefs.h. */
5039$ac_includes_default
5040#include <$ac_header>
5041_ACEOF
5042rm -f conftest.$ac_objext
7a197a62
AK
5043if { (ac_try="$ac_compile"
5044case "(($ac_try" in
5045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5046 *) ac_try_echo=$ac_try;;
5047esac
ec6a6fbe
AK
5048eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5049$as_echo "$ac_try_echo") >&5
7a197a62 5050 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5051 ac_status=$?
8a2fc586
AK
5052 grep -v '^ *+' conftest.er1 >conftest.err
5053 rm -f conftest.er1
5054 cat conftest.err >&5
ec6a6fbe 5055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5056 (exit $ac_status); } && {
5057 test -z "$ac_c_werror_flag" ||
5058 test ! -s conftest.err
5059 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5060 ac_header_compiler=yes
5061else
ec6a6fbe 5062 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5063sed 's/^/| /' conftest.$ac_ext >&5
5064
7a197a62 5065 ac_header_compiler=no
ad6254c5 5066fi
7a197a62
AK
5067
5068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5069{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5070$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5071
5072# Is the header present?
ec6a6fbe
AK
5073{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5074$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5075cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5076/* confdefs.h. */
5077_ACEOF
5078cat confdefs.h >>conftest.$ac_ext
5079cat >>conftest.$ac_ext <<_ACEOF
5080/* end confdefs.h. */
5081#include <$ac_header>
5082_ACEOF
7a197a62
AK
5083if { (ac_try="$ac_cpp conftest.$ac_ext"
5084case "(($ac_try" in
5085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086 *) ac_try_echo=$ac_try;;
5087esac
ec6a6fbe
AK
5088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5089$as_echo "$ac_try_echo") >&5
7a197a62 5090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5091 ac_status=$?
5092 grep -v '^ *+' conftest.er1 >conftest.err
5093 rm -f conftest.er1
5094 cat conftest.err >&5
ec6a6fbe 5095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5096 (exit $ac_status); } >/dev/null && {
5097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5098 test ! -s conftest.err
5099 }; then
ad6254c5
AK
5100 ac_header_preproc=yes
5101else
ec6a6fbe 5102 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5103sed 's/^/| /' conftest.$ac_ext >&5
5104
5105 ac_header_preproc=no
5106fi
7a197a62 5107
ad6254c5 5108rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5109{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5110$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5111
5112# So? What about this header?
8a2fc586
AK
5113case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5114 yes:no: )
ec6a6fbe
AK
5115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5116$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5118$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5119 ac_header_preproc=yes
ad6254c5 5120 ;;
8a2fc586 5121 no:yes:* )
ec6a6fbe
AK
5122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5123$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5125$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5127$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5129$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5131$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5133$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5134
ad6254c5
AK
5135 ;;
5136esac
ec6a6fbe
AK
5137{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5138$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5140 $as_echo_n "(cached) " >&6
ad6254c5 5141else
8a2fc586 5142 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 5143fi
ec6a6fbe
AK
5144ac_res=`eval 'as_val=${'$as_ac_Header'}
5145 $as_echo "$as_val"'`
5146 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5147$as_echo "$ac_res" >&6; }
ad6254c5
AK
5148
5149fi
ec6a6fbe
AK
5150as_val=`eval 'as_val=${'$as_ac_Header'}
5151 $as_echo "$as_val"'`
5152 if test "x$as_val" = x""yes; then
ad6254c5 5153 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5154#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5155_ACEOF
4922197a 5156
4922197a 5157else
ec6a6fbe
AK
5158 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5159$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5160 { (exit 1); exit 1; }; }
80992638
AK
5161fi
5162
ad6254c5 5163done
d0191583
JM
5164 ;;
5165esac
4922197a 5166
4922197a 5167
4922197a 5168
ad6254c5
AK
5169
5170
d0191583
JM
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5184 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5185 sys/types.h unistd.h
ad6254c5 5186do
ec6a6fbe 5187as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5188if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5189 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5190$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5191if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5192 $as_echo_n "(cached) " >&6
ad6254c5 5193fi
ec6a6fbe
AK
5194ac_res=`eval 'as_val=${'$as_ac_Header'}
5195 $as_echo "$as_val"'`
5196 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5197$as_echo "$ac_res" >&6; }
795ca3e5 5198else
ad6254c5 5199 # Is the header compilable?
ec6a6fbe
AK
5200{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5201$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5202cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5203/* confdefs.h. */
5204_ACEOF
5205cat confdefs.h >>conftest.$ac_ext
5206cat >>conftest.$ac_ext <<_ACEOF
5207/* end confdefs.h. */
5208$ac_includes_default
5209#include <$ac_header>
5210_ACEOF
5211rm -f conftest.$ac_objext
7a197a62
AK
5212if { (ac_try="$ac_compile"
5213case "(($ac_try" in
5214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215 *) ac_try_echo=$ac_try;;
5216esac
ec6a6fbe
AK
5217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5218$as_echo "$ac_try_echo") >&5
7a197a62 5219 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5220 ac_status=$?
8a2fc586
AK
5221 grep -v '^ *+' conftest.er1 >conftest.err
5222 rm -f conftest.er1
5223 cat conftest.err >&5
ec6a6fbe 5224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5225 (exit $ac_status); } && {
5226 test -z "$ac_c_werror_flag" ||
5227 test ! -s conftest.err
5228 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5229 ac_header_compiler=yes
5230else
ec6a6fbe 5231 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5232sed 's/^/| /' conftest.$ac_ext >&5
5233
7a197a62 5234 ac_header_compiler=no
ad6254c5 5235fi
7a197a62
AK
5236
5237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5238{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5239$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5240
5241# Is the header present?
ec6a6fbe
AK
5242{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5243$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5244cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5245/* confdefs.h. */
5246_ACEOF
5247cat confdefs.h >>conftest.$ac_ext
5248cat >>conftest.$ac_ext <<_ACEOF
5249/* end confdefs.h. */
5250#include <$ac_header>
5251_ACEOF
7a197a62
AK
5252if { (ac_try="$ac_cpp conftest.$ac_ext"
5253case "(($ac_try" in
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5256esac
ec6a6fbe
AK
5257eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5258$as_echo "$ac_try_echo") >&5
7a197a62 5259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5260 ac_status=$?
5261 grep -v '^ *+' conftest.er1 >conftest.err
5262 rm -f conftest.er1
5263 cat conftest.err >&5
ec6a6fbe 5264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5265 (exit $ac_status); } >/dev/null && {
5266 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5267 test ! -s conftest.err
5268 }; then
ad6254c5
AK
5269 ac_header_preproc=yes
5270else
ec6a6fbe 5271 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5272sed 's/^/| /' conftest.$ac_ext >&5
5273
5274 ac_header_preproc=no
5275fi
7a197a62 5276
ad6254c5 5277rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5278{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5279$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5280
5281# So? What about this header?
8a2fc586
AK
5282case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5283 yes:no: )
ec6a6fbe
AK
5284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5285$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5287$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5288 ac_header_preproc=yes
ad6254c5 5289 ;;
8a2fc586 5290 no:yes:* )
ec6a6fbe
AK
5291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5292$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5294$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5296$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5298$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5300$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5302$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5303
ad6254c5
AK
5304 ;;
5305esac
ec6a6fbe
AK
5306{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5307$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5308if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5309 $as_echo_n "(cached) " >&6
ad6254c5 5310else
8a2fc586 5311 eval "$as_ac_Header=\$ac_header_preproc"
80992638 5312fi
ec6a6fbe
AK
5313ac_res=`eval 'as_val=${'$as_ac_Header'}
5314 $as_echo "$as_val"'`
5315 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5316$as_echo "$ac_res" >&6; }
80992638 5317
ad6254c5 5318fi
ec6a6fbe
AK
5319as_val=`eval 'as_val=${'$as_ac_Header'}
5320 $as_echo "$as_val"'`
5321 if test "x$as_val" = x""yes; then
ad6254c5 5322 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5323#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5324_ACEOF
795ca3e5 5325
795ca3e5 5326else
ec6a6fbe
AK
5327 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5328$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5329 { (exit 1); exit 1; }; }
80992638
AK
5330fi
5331
ad6254c5 5332done
ad6254c5 5333
795ca3e5 5334
d0191583
JM
5335
5336for ac_header in termios.h sys/statvfs.h
ad6254c5 5337do
ec6a6fbe 5338as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5339if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5340 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5341$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5342if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5343 $as_echo_n "(cached) " >&6
ad6254c5 5344fi
ec6a6fbe
AK
5345ac_res=`eval 'as_val=${'$as_ac_Header'}
5346 $as_echo "$as_val"'`
5347 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5348$as_echo "$ac_res" >&6; }
ad6254c5
AK
5349else
5350 # Is the header compilable?
ec6a6fbe
AK
5351{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5352$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5353cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5354/* confdefs.h. */
5355_ACEOF
5356cat confdefs.h >>conftest.$ac_ext
5357cat >>conftest.$ac_ext <<_ACEOF
5358/* end confdefs.h. */
5359$ac_includes_default
5360#include <$ac_header>
5361_ACEOF
5362rm -f conftest.$ac_objext
7a197a62
AK
5363if { (ac_try="$ac_compile"
5364case "(($ac_try" in
5365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366 *) ac_try_echo=$ac_try;;
5367esac
ec6a6fbe
AK
5368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5369$as_echo "$ac_try_echo") >&5
7a197a62 5370 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5371 ac_status=$?
8a2fc586
AK
5372 grep -v '^ *+' conftest.er1 >conftest.err
5373 rm -f conftest.er1
5374 cat conftest.err >&5
ec6a6fbe 5375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5376 (exit $ac_status); } && {
5377 test -z "$ac_c_werror_flag" ||
5378 test ! -s conftest.err
5379 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5380 ac_header_compiler=yes
5381else
ec6a6fbe 5382 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5383sed 's/^/| /' conftest.$ac_ext >&5
5384
7a197a62 5385 ac_header_compiler=no
ad6254c5 5386fi
7a197a62
AK
5387
5388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5389{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5390$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5391
5392# Is the header present?
ec6a6fbe
AK
5393{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5394$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5395cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5396/* confdefs.h. */
5397_ACEOF
5398cat confdefs.h >>conftest.$ac_ext
5399cat >>conftest.$ac_ext <<_ACEOF
5400/* end confdefs.h. */
5401#include <$ac_header>
5402_ACEOF
7a197a62
AK
5403if { (ac_try="$ac_cpp conftest.$ac_ext"
5404case "(($ac_try" in
5405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406 *) ac_try_echo=$ac_try;;
5407esac
ec6a6fbe
AK
5408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5409$as_echo "$ac_try_echo") >&5
7a197a62 5410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5411 ac_status=$?
5412 grep -v '^ *+' conftest.er1 >conftest.err
5413 rm -f conftest.er1
5414 cat conftest.err >&5
ec6a6fbe 5415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5416 (exit $ac_status); } >/dev/null && {
5417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5418 test ! -s conftest.err
5419 }; then
ad6254c5
AK
5420 ac_header_preproc=yes
5421else
ec6a6fbe 5422 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5423sed 's/^/| /' conftest.$ac_ext >&5
5424
5425 ac_header_preproc=no
5426fi
7a197a62 5427
ad6254c5 5428rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5429{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5430$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5431
5432# So? What about this header?
8a2fc586
AK
5433case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5434 yes:no: )
ec6a6fbe
AK
5435 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5436$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5437 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5438$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5439 ac_header_preproc=yes
ad6254c5 5440 ;;
8a2fc586 5441 no:yes:* )
ec6a6fbe
AK
5442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5443$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5445$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5447$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5449$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5451$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5452 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5453$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5454
ad6254c5
AK
5455 ;;
5456esac
ec6a6fbe
AK
5457{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5458$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5459if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5460 $as_echo_n "(cached) " >&6
ad6254c5 5461else
8a2fc586 5462 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5463fi
ec6a6fbe
AK
5464ac_res=`eval 'as_val=${'$as_ac_Header'}
5465 $as_echo "$as_val"'`
5466 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5467$as_echo "$ac_res" >&6; }
b896caa1 5468
ad6254c5 5469fi
ec6a6fbe
AK
5470as_val=`eval 'as_val=${'$as_ac_Header'}
5471 $as_echo "$as_val"'`
5472 if test "x$as_val" = x""yes; then
ad6254c5 5473 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5474#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5475_ACEOF
5476
80992638
AK
5477fi
5478
ad6254c5 5479done
d0191583 5480
d3c8211f 5481
80992638 5482################################################################################
ec6a6fbe
AK
5483{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5484$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
ad6254c5 5485if test "${ac_cv_c_const+set}" = set; then
ec6a6fbe 5486 $as_echo_n "(cached) " >&6
d3c8211f 5487else
ad6254c5 5488 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5489/* confdefs.h. */
5490_ACEOF
5491cat confdefs.h >>conftest.$ac_ext
5492cat >>conftest.$ac_ext <<_ACEOF
5493/* end confdefs.h. */
5494
5495int
5496main ()
5497{
5498/* FIXME: Include the comments suggested by Paul. */
5499#ifndef __cplusplus
5500 /* Ultrix mips cc rejects this. */
5501 typedef int charset[2];
25fbec5b 5502 const charset cs;
ad6254c5 5503 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
5504 char const *const *pcpcc;
5505 char **ppc;
ad6254c5
AK
5506 /* NEC SVR4.0.2 mips cc rejects this. */
5507 struct point {int x, y;};
5508 static struct point const zero = {0,0};
5509 /* AIX XL C 1.02.0.0 rejects this.
5510 It does not let you subtract one const X* pointer from another in
5511 an arm of an if-expression whose if-part is not a constant
5512 expression */
5513 const char *g = "string";
25fbec5b 5514 pcpcc = &g + (g ? g-g : 0);
ad6254c5 5515 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
5516 ++pcpcc;
5517 ppc = (char**) pcpcc;
5518 pcpcc = (char const *const *) ppc;
ad6254c5
AK
5519 { /* SCO 3.2v4 cc rejects this. */
5520 char *t;
5521 char const *s = 0 ? (char *) 0 : (char const *) 0;
5522
5523 *t++ = 0;
7a197a62 5524 if (s) return 0;
ad6254c5
AK
5525 }
5526 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5527 int x[] = {25, 17};
5528 const int *foo = &x[0];
5529 ++foo;
5530 }
5531 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5532 typedef const int *iptr;
5533 iptr p = 0;
5534 ++p;
5535 }
5536 { /* AIX XL C 1.02.0.0 rejects this saying
5537 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5538 struct s { int j; const int *ap[3]; };
5539 struct s *b; b->j = 5;
5540 }
5541 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5542 const int foo = 10;
7a197a62 5543 if (!foo) return 0;
ad6254c5 5544 }
25fbec5b 5545 return !cs[0] && !zero.x;
ad6254c5
AK
5546#endif
5547
5548 ;
5549 return 0;
5550}
5551_ACEOF
5552rm -f conftest.$ac_objext
7a197a62
AK
5553if { (ac_try="$ac_compile"
5554case "(($ac_try" in
5555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5556 *) ac_try_echo=$ac_try;;
5557esac
ec6a6fbe
AK
5558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5559$as_echo "$ac_try_echo") >&5
7a197a62 5560 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5561 ac_status=$?
8a2fc586
AK
5562 grep -v '^ *+' conftest.er1 >conftest.err
5563 rm -f conftest.er1
5564 cat conftest.err >&5
ec6a6fbe 5565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5566 (exit $ac_status); } && {
5567 test -z "$ac_c_werror_flag" ||
5568 test ! -s conftest.err
5569 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5570 ac_cv_c_const=yes
5571else
ec6a6fbe 5572 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5573sed 's/^/| /' conftest.$ac_ext >&5
5574
7a197a62 5575 ac_cv_c_const=no
ad6254c5 5576fi
7a197a62
AK
5577
5578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5579fi
ec6a6fbe
AK
5580{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5581$as_echo "$ac_cv_c_const" >&6; }
ad6254c5 5582if test $ac_cv_c_const = no; then
80992638 5583
ad6254c5 5584cat >>confdefs.h <<\_ACEOF
ec6a6fbe 5585#define const /**/
ad6254c5 5586_ACEOF
80992638 5587
d3c8211f 5588fi
d3c8211f 5589
ec6a6fbe
AK
5590{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5591$as_echo_n "checking for inline... " >&6; }
ad6254c5 5592if test "${ac_cv_c_inline+set}" = set; then
ec6a6fbe 5593 $as_echo_n "(cached) " >&6
8ef2b021 5594else
ad6254c5
AK
5595 ac_cv_c_inline=no
5596for ac_kw in inline __inline__ __inline; do
5597 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5598/* confdefs.h. */
5599_ACEOF
5600cat confdefs.h >>conftest.$ac_ext
5601cat >>conftest.$ac_ext <<_ACEOF
5602/* end confdefs.h. */
5603#ifndef __cplusplus
5604typedef int foo_t;
5605static $ac_kw foo_t static_foo () {return 0; }
5606$ac_kw foo_t foo () {return 0; }
5607#endif
80992638 5608
ad6254c5
AK
5609_ACEOF
5610rm -f conftest.$ac_objext
7a197a62
AK
5611if { (ac_try="$ac_compile"
5612case "(($ac_try" in
5613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614 *) ac_try_echo=$ac_try;;
5615esac
ec6a6fbe
AK
5616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5617$as_echo "$ac_try_echo") >&5
7a197a62 5618 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5619 ac_status=$?
8a2fc586
AK
5620 grep -v '^ *+' conftest.er1 >conftest.err
5621 rm -f conftest.er1
5622 cat conftest.err >&5
ec6a6fbe 5623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5624 (exit $ac_status); } && {
5625 test -z "$ac_c_werror_flag" ||
5626 test ! -s conftest.err
5627 } && test -s conftest.$ac_objext; then
7a197a62 5628 ac_cv_c_inline=$ac_kw
ad6254c5 5629else
ec6a6fbe 5630 $as_echo "$as_me: failed program was:" >&5
ad6254c5 5631sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5632
7a197a62 5633
8ce0cbda 5634fi
7a197a62
AK
5635
5636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5637 test "$ac_cv_c_inline" != no && break
ad6254c5 5638done
8ce0cbda 5639
8ce0cbda 5640fi
ec6a6fbe
AK
5641{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5642$as_echo "$ac_cv_c_inline" >&6; }
8a2fc586
AK
5643
5644
ad6254c5
AK
5645case $ac_cv_c_inline in
5646 inline | yes) ;;
8a2fc586
AK
5647 *)
5648 case $ac_cv_c_inline in
5649 no) ac_val=;;
5650 *) ac_val=$ac_cv_c_inline;;
5651 esac
5652 cat >>confdefs.h <<_ACEOF
5653#ifndef __cplusplus
5654#define inline $ac_val
5655#endif
c1c065a3 5656_ACEOF
d0191583
JM
5657 ;;
5658esac
5659
ec6a6fbe
AK
5660{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5661$as_echo_n "checking for struct stat.st_rdev... " >&6; }
d0191583 5662if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 5663 $as_echo_n "(cached) " >&6
d0191583
JM
5664else
5665 cat >conftest.$ac_ext <<_ACEOF
5666/* confdefs.h. */
5667_ACEOF
5668cat confdefs.h >>conftest.$ac_ext
5669cat >>conftest.$ac_ext <<_ACEOF
5670/* end confdefs.h. */
5671$ac_includes_default
5672int
5673main ()
5674{
5675static struct stat ac_aggr;
5676if (ac_aggr.st_rdev)
5677return 0;
5678 ;
5679 return 0;
5680}
5681_ACEOF
5682rm -f conftest.$ac_objext
5683if { (ac_try="$ac_compile"
5684case "(($ac_try" in
5685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686 *) ac_try_echo=$ac_try;;
5687esac
ec6a6fbe
AK
5688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5689$as_echo "$ac_try_echo") >&5
5690 (eval "$ac_compile") 2>conftest.er1
5691 ac_status=$?
5692 grep -v '^ *+' conftest.er1 >conftest.err
5693 rm -f conftest.er1
5694 cat conftest.err >&5
5695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } && {
5697 test -z "$ac_c_werror_flag" ||
5698 test ! -s conftest.err
5699 } && test -s conftest.$ac_objext; then
5700 ac_cv_member_struct_stat_st_rdev=yes
5701else
5702 $as_echo "$as_me: failed program was:" >&5
5703sed 's/^/| /' conftest.$ac_ext >&5
5704
5705 cat >conftest.$ac_ext <<_ACEOF
5706/* confdefs.h. */
5707_ACEOF
5708cat confdefs.h >>conftest.$ac_ext
5709cat >>conftest.$ac_ext <<_ACEOF
5710/* end confdefs.h. */
5711$ac_includes_default
5712int
5713main ()
5714{
5715static struct stat ac_aggr;
5716if (sizeof ac_aggr.st_rdev)
5717return 0;
5718 ;
5719 return 0;
5720}
5721_ACEOF
5722rm -f conftest.$ac_objext
5723if { (ac_try="$ac_compile"
5724case "(($ac_try" in
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5727esac
5728eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5729$as_echo "$ac_try_echo") >&5
5730 (eval "$ac_compile") 2>conftest.er1
5731 ac_status=$?
5732 grep -v '^ *+' conftest.er1 >conftest.err
5733 rm -f conftest.er1
5734 cat conftest.err >&5
5735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } && {
5737 test -z "$ac_c_werror_flag" ||
5738 test ! -s conftest.err
5739 } && test -s conftest.$ac_objext; then
5740 ac_cv_member_struct_stat_st_rdev=yes
5741else
5742 $as_echo "$as_me: failed program was:" >&5
5743sed 's/^/| /' conftest.$ac_ext >&5
5744
5745 ac_cv_member_struct_stat_st_rdev=no
5746fi
5747
5748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749fi
5750
5751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5752fi
5753{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5754$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5755if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5756
5757cat >>confdefs.h <<_ACEOF
5758#define HAVE_STRUCT_STAT_ST_RDEV 1
5759_ACEOF
5760
5761
5762fi
5763
5764{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
5765$as_echo_n "checking for off_t... " >&6; }
5766if test "${ac_cv_type_off_t+set}" = set; then
5767 $as_echo_n "(cached) " >&6
5768else
5769 ac_cv_type_off_t=no
5770cat >conftest.$ac_ext <<_ACEOF
5771/* confdefs.h. */
5772_ACEOF
5773cat confdefs.h >>conftest.$ac_ext
5774cat >>conftest.$ac_ext <<_ACEOF
5775/* end confdefs.h. */
5776$ac_includes_default
5777int
5778main ()
5779{
5780if (sizeof (off_t))
5781 return 0;
5782 ;
5783 return 0;
5784}
5785_ACEOF
5786rm -f conftest.$ac_objext
5787if { (ac_try="$ac_compile"
5788case "(($ac_try" in
5789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790 *) ac_try_echo=$ac_try;;
5791esac
5792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5793$as_echo "$ac_try_echo") >&5
5794 (eval "$ac_compile") 2>conftest.er1
5795 ac_status=$?
5796 grep -v '^ *+' conftest.er1 >conftest.err
5797 rm -f conftest.er1
5798 cat conftest.err >&5
5799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } && {
5801 test -z "$ac_c_werror_flag" ||
5802 test ! -s conftest.err
5803 } && test -s conftest.$ac_objext; then
5804 cat >conftest.$ac_ext <<_ACEOF
5805/* confdefs.h. */
5806_ACEOF
5807cat confdefs.h >>conftest.$ac_ext
5808cat >>conftest.$ac_ext <<_ACEOF
5809/* end confdefs.h. */
5810$ac_includes_default
5811int
5812main ()
5813{
5814if (sizeof ((off_t)))
5815 return 0;
5816 ;
5817 return 0;
5818}
5819_ACEOF
5820rm -f conftest.$ac_objext
5821if { (ac_try="$ac_compile"
5822case "(($ac_try" in
5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5825esac
5826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5827$as_echo "$ac_try_echo") >&5
5828 (eval "$ac_compile") 2>conftest.er1
5829 ac_status=$?
5830 grep -v '^ *+' conftest.er1 >conftest.err
5831 rm -f conftest.er1
5832 cat conftest.err >&5
5833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } && {
5835 test -z "$ac_c_werror_flag" ||
5836 test ! -s conftest.err
5837 } && test -s conftest.$ac_objext; then
5838 :
5839else
5840 $as_echo "$as_me: failed program was:" >&5
5841sed 's/^/| /' conftest.$ac_ext >&5
5842
5843 ac_cv_type_off_t=yes
5844fi
5845
5846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5847else
5848 $as_echo "$as_me: failed program was:" >&5
5849sed 's/^/| /' conftest.$ac_ext >&5
5850
5851
5852fi
5853
5854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855fi
5856{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5857$as_echo "$ac_cv_type_off_t" >&6; }
5858if test "x$ac_cv_type_off_t" = x""yes; then
5859 :
5860else
5861
5862cat >>confdefs.h <<_ACEOF
5863#define off_t long int
5864_ACEOF
5865
5866fi
5867
5868{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5869$as_echo_n "checking for pid_t... " >&6; }
5870if test "${ac_cv_type_pid_t+set}" = set; then
5871 $as_echo_n "(cached) " >&6
5872else
5873 ac_cv_type_pid_t=no
5874cat >conftest.$ac_ext <<_ACEOF
5875/* confdefs.h. */
5876_ACEOF
5877cat confdefs.h >>conftest.$ac_ext
5878cat >>conftest.$ac_ext <<_ACEOF
5879/* end confdefs.h. */
5880$ac_includes_default
5881int
5882main ()
5883{
5884if (sizeof (pid_t))
5885 return 0;
5886 ;
5887 return 0;
5888}
5889_ACEOF
5890rm -f conftest.$ac_objext
5891if { (ac_try="$ac_compile"
5892case "(($ac_try" in
5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5895esac
5896eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5897$as_echo "$ac_try_echo") >&5
d0191583
JM
5898 (eval "$ac_compile") 2>conftest.er1
5899 ac_status=$?
5900 grep -v '^ *+' conftest.er1 >conftest.err
5901 rm -f conftest.er1
5902 cat conftest.err >&5
ec6a6fbe 5903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5904 (exit $ac_status); } && {
5905 test -z "$ac_c_werror_flag" ||
5906 test ! -s conftest.err
5907 } && test -s conftest.$ac_objext; then
ec6a6fbe 5908 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
5909/* confdefs.h. */
5910_ACEOF
5911cat confdefs.h >>conftest.$ac_ext
5912cat >>conftest.$ac_ext <<_ACEOF
5913/* end confdefs.h. */
5914$ac_includes_default
5915int
5916main ()
5917{
ec6a6fbe
AK
5918if (sizeof ((pid_t)))
5919 return 0;
d0191583
JM
5920 ;
5921 return 0;
5922}
5923_ACEOF
5924rm -f conftest.$ac_objext
5925if { (ac_try="$ac_compile"
5926case "(($ac_try" in
5927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928 *) ac_try_echo=$ac_try;;
5929esac
ec6a6fbe
AK
5930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5931$as_echo "$ac_try_echo") >&5
d0191583
JM
5932 (eval "$ac_compile") 2>conftest.er1
5933 ac_status=$?
5934 grep -v '^ *+' conftest.er1 >conftest.err
5935 rm -f conftest.er1
5936 cat conftest.err >&5
ec6a6fbe 5937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5938 (exit $ac_status); } && {
5939 test -z "$ac_c_werror_flag" ||
5940 test ! -s conftest.err
5941 } && test -s conftest.$ac_objext; then
ec6a6fbe 5942 :
d0191583 5943else
ec6a6fbe 5944 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
5945sed 's/^/| /' conftest.$ac_ext >&5
5946
ec6a6fbe 5947 ac_cv_type_pid_t=yes
d0191583
JM
5948fi
5949
5950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5951else
5952 $as_echo "$as_me: failed program was:" >&5
5953sed 's/^/| /' conftest.$ac_ext >&5
5954
5955
d0191583
JM
5956fi
5957
5958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959fi
ec6a6fbe
AK
5960{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5961$as_echo "$ac_cv_type_pid_t" >&6; }
5962if test "x$ac_cv_type_pid_t" = x""yes; then
5963 :
5964else
d0191583
JM
5965
5966cat >>confdefs.h <<_ACEOF
ec6a6fbe 5967#define pid_t int
d0191583
JM
5968_ACEOF
5969
d0191583 5970fi
8ce0cbda 5971
ec6a6fbe
AK
5972{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5973$as_echo_n "checking return type of signal handlers... " >&6; }
5974if test "${ac_cv_type_signal+set}" = set; then
5975 $as_echo_n "(cached) " >&6
ad6254c5 5976else
b145d876
ZK
5977 cat >conftest.$ac_ext <<_ACEOF
5978/* confdefs.h. */
5979_ACEOF
5980cat confdefs.h >>conftest.$ac_ext
5981cat >>conftest.$ac_ext <<_ACEOF
5982/* end confdefs.h. */
ec6a6fbe
AK
5983#include <sys/types.h>
5984#include <signal.h>
5985
b145d876
ZK
5986int
5987main ()
5988{
ec6a6fbe 5989return *(signal (0, 0)) (0) == 1;
ad6254c5
AK
5990 ;
5991 return 0;
5992}
5993_ACEOF
5994rm -f conftest.$ac_objext
7a197a62
AK
5995if { (ac_try="$ac_compile"
5996case "(($ac_try" in
5997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5998 *) ac_try_echo=$ac_try;;
5999esac
ec6a6fbe
AK
6000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6001$as_echo "$ac_try_echo") >&5
7a197a62 6002 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6003 ac_status=$?
8a2fc586
AK
6004 grep -v '^ *+' conftest.er1 >conftest.err
6005 rm -f conftest.er1
6006 cat conftest.err >&5
ec6a6fbe 6007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6008 (exit $ac_status); } && {
6009 test -z "$ac_c_werror_flag" ||
6010 test ! -s conftest.err
6011 } && test -s conftest.$ac_objext; then
ec6a6fbe 6012 ac_cv_type_signal=int
b145d876 6013else
ec6a6fbe 6014 $as_echo "$as_me: failed program was:" >&5
b145d876
ZK
6015sed 's/^/| /' conftest.$ac_ext >&5
6016
ec6a6fbe 6017 ac_cv_type_signal=void
ad6254c5 6018fi
b145d876
ZK
6019
6020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6021fi
ec6a6fbe
AK
6022{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6023$as_echo "$ac_cv_type_signal" >&6; }
80992638 6024
ad6254c5 6025cat >>confdefs.h <<_ACEOF
ec6a6fbe 6026#define RETSIGTYPE $ac_cv_type_signal
ad6254c5 6027_ACEOF
199e490e 6028
b896caa1 6029
ec6a6fbe
AK
6030{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
6031$as_echo_n "checking for size_t... " >&6; }
6032if test "${ac_cv_type_size_t+set}" = set; then
6033 $as_echo_n "(cached) " >&6
ad6254c5 6034else
ec6a6fbe
AK
6035 ac_cv_type_size_t=no
6036cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6037/* confdefs.h. */
6038_ACEOF
6039cat confdefs.h >>conftest.$ac_ext
6040cat >>conftest.$ac_ext <<_ACEOF
6041/* end confdefs.h. */
6042$ac_includes_default
6043int
6044main ()
6045{
ec6a6fbe
AK
6046if (sizeof (size_t))
6047 return 0;
ad6254c5
AK
6048 ;
6049 return 0;
6050}
6051_ACEOF
6052rm -f conftest.$ac_objext
7a197a62
AK
6053if { (ac_try="$ac_compile"
6054case "(($ac_try" in
6055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6056 *) ac_try_echo=$ac_try;;
6057esac
ec6a6fbe
AK
6058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6059$as_echo "$ac_try_echo") >&5
7a197a62 6060 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6061 ac_status=$?
8a2fc586
AK
6062 grep -v '^ *+' conftest.er1 >conftest.err
6063 rm -f conftest.er1
6064 cat conftest.err >&5
ec6a6fbe 6065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6066 (exit $ac_status); } && {
6067 test -z "$ac_c_werror_flag" ||
6068 test ! -s conftest.err
6069 } && test -s conftest.$ac_objext; then
d0191583
JM
6070 cat >conftest.$ac_ext <<_ACEOF
6071/* confdefs.h. */
6072_ACEOF
6073cat confdefs.h >>conftest.$ac_ext
6074cat >>conftest.$ac_ext <<_ACEOF
6075/* end confdefs.h. */
ec6a6fbe 6076$ac_includes_default
d0191583
JM
6077int
6078main ()
6079{
ec6a6fbe
AK
6080if (sizeof ((size_t)))
6081 return 0;
d0191583
JM
6082 ;
6083 return 0;
6084}
6085_ACEOF
6086rm -f conftest.$ac_objext
6087if { (ac_try="$ac_compile"
6088case "(($ac_try" in
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6091esac
ec6a6fbe
AK
6092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6093$as_echo "$ac_try_echo") >&5
d0191583
JM
6094 (eval "$ac_compile") 2>conftest.er1
6095 ac_status=$?
6096 grep -v '^ *+' conftest.er1 >conftest.err
6097 rm -f conftest.er1
6098 cat conftest.err >&5
ec6a6fbe 6099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
6100 (exit $ac_status); } && {
6101 test -z "$ac_c_werror_flag" ||
6102 test ! -s conftest.err
6103 } && test -s conftest.$ac_objext; then
ec6a6fbe 6104 :
d0191583 6105else
ec6a6fbe 6106 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
6107sed 's/^/| /' conftest.$ac_ext >&5
6108
ec6a6fbe
AK
6109 ac_cv_type_size_t=yes
6110fi
6111
6112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6113else
6114 $as_echo "$as_me: failed program was:" >&5
6115sed 's/^/| /' conftest.$ac_ext >&5
6116
6117
d0191583
JM
6118fi
6119
6120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6121fi
ec6a6fbe
AK
6122{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6123$as_echo "$ac_cv_type_size_t" >&6; }
6124if test "x$ac_cv_type_size_t" = x""yes; then
6125 :
6126else
d0191583
JM
6127
6128cat >>confdefs.h <<_ACEOF
ec6a6fbe 6129#define size_t unsigned int
d0191583
JM
6130_ACEOF
6131
ec6a6fbe 6132fi
d0191583 6133
ec6a6fbe
AK
6134{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6135$as_echo_n "checking for mode_t... " >&6; }
6136if test "${ac_cv_type_mode_t+set}" = set; then
6137 $as_echo_n "(cached) " >&6
8106cdd5 6138else
ec6a6fbe
AK
6139 ac_cv_type_mode_t=no
6140cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6141/* confdefs.h. */
6142_ACEOF
6143cat confdefs.h >>conftest.$ac_ext
6144cat >>conftest.$ac_ext <<_ACEOF
6145/* end confdefs.h. */
6146$ac_includes_default
6147int
6148main ()
6149{
ec6a6fbe
AK
6150if (sizeof (mode_t))
6151 return 0;
ad6254c5
AK
6152 ;
6153 return 0;
6154}
6155_ACEOF
6156rm -f conftest.$ac_objext
7a197a62
AK
6157if { (ac_try="$ac_compile"
6158case "(($ac_try" in
6159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160 *) ac_try_echo=$ac_try;;
6161esac
ec6a6fbe
AK
6162eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6163$as_echo "$ac_try_echo") >&5
7a197a62 6164 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6165 ac_status=$?
8a2fc586
AK
6166 grep -v '^ *+' conftest.er1 >conftest.err
6167 rm -f conftest.er1
6168 cat conftest.err >&5
ec6a6fbe 6169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6170 (exit $ac_status); } && {
6171 test -z "$ac_c_werror_flag" ||
6172 test ! -s conftest.err
6173 } && test -s conftest.$ac_objext; then
b145d876
ZK
6174 cat >conftest.$ac_ext <<_ACEOF
6175/* confdefs.h. */
6176_ACEOF
6177cat confdefs.h >>conftest.$ac_ext
6178cat >>conftest.$ac_ext <<_ACEOF
6179/* end confdefs.h. */
6180$ac_includes_default
6181int
6182main ()
6183{
ec6a6fbe
AK
6184if (sizeof ((mode_t)))
6185 return 0;
ad6254c5
AK
6186 ;
6187 return 0;
6188}
6189_ACEOF
6190rm -f conftest.$ac_objext
7a197a62
AK
6191if { (ac_try="$ac_compile"
6192case "(($ac_try" in
6193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6194 *) ac_try_echo=$ac_try;;
6195esac
ec6a6fbe
AK
6196eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6197$as_echo "$ac_try_echo") >&5
7a197a62 6198 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6199 ac_status=$?
8a2fc586
AK
6200 grep -v '^ *+' conftest.er1 >conftest.err
6201 rm -f conftest.er1
6202 cat conftest.err >&5
ec6a6fbe 6203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6204 (exit $ac_status); } && {
6205 test -z "$ac_c_werror_flag" ||
6206 test ! -s conftest.err
6207 } && test -s conftest.$ac_objext; then
ec6a6fbe
AK
6208 :
6209else
6210 $as_echo "$as_me: failed program was:" >&5
6211sed 's/^/| /' conftest.$ac_ext >&5
6212
6213 ac_cv_type_mode_t=yes
6214fi
6215
6216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51 6217else
ec6a6fbe 6218 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
6219sed 's/^/| /' conftest.$ac_ext >&5
6220
ec6a6fbe 6221
80992638 6222fi
7a197a62
AK
6223
6224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6225fi
ec6a6fbe
AK
6226{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6227$as_echo "$ac_cv_type_mode_t" >&6; }
6228if test "x$ac_cv_type_mode_t" = x""yes; then
ad6254c5
AK
6229 :
6230else
80992638 6231
ad6254c5
AK
6232cat >>confdefs.h <<_ACEOF
6233#define mode_t int
6234_ACEOF
6235
6236fi
6237
ec6a6fbe
AK
6238{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6239$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 6240if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 6241 $as_echo_n "(cached) " >&6
ad6254c5
AK
6242else
6243 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
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
7a197a62
AK
6261if { (ac_try="$ac_compile"
6262case "(($ac_try" in
6263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264 *) ac_try_echo=$ac_try;;
6265esac
ec6a6fbe
AK
6266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6267$as_echo "$ac_try_echo") >&5
7a197a62 6268 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6269 ac_status=$?
8a2fc586
AK
6270 grep -v '^ *+' conftest.er1 >conftest.err
6271 rm -f conftest.er1
6272 cat conftest.err >&5
ec6a6fbe 6273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6274 (exit $ac_status); } && {
6275 test -z "$ac_c_werror_flag" ||
6276 test ! -s conftest.err
6277 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6278 ac_cv_member_struct_stat_st_rdev=yes
6279else
ec6a6fbe 6280 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6281sed 's/^/| /' conftest.$ac_ext >&5
6282
7a197a62 6283 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
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
7a197a62
AK
6301if { (ac_try="$ac_compile"
6302case "(($ac_try" in
6303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304 *) ac_try_echo=$ac_try;;
6305esac
ec6a6fbe
AK
6306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6307$as_echo "$ac_try_echo") >&5
7a197a62 6308 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6309 ac_status=$?
8a2fc586
AK
6310 grep -v '^ *+' conftest.er1 >conftest.err
6311 rm -f conftest.er1
6312 cat conftest.err >&5
ec6a6fbe 6313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6314 (exit $ac_status); } && {
6315 test -z "$ac_c_werror_flag" ||
6316 test ! -s conftest.err
6317 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6318 ac_cv_member_struct_stat_st_rdev=yes
6319else
ec6a6fbe 6320 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6321sed 's/^/| /' conftest.$ac_ext >&5
6322
7a197a62 6323 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 6324fi
7a197a62
AK
6325
6326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6327fi
7a197a62
AK
6328
6329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6330fi
ec6a6fbe
AK
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
ad6254c5
AK
6334
6335cat >>confdefs.h <<_ACEOF
6336#define HAVE_STRUCT_STAT_ST_RDEV 1
6337_ACEOF
6338
6339
ad6254c5
AK
6340fi
6341
ec6a6fbe
AK
6342{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6343$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 6344if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 6345 $as_echo_n "(cached) " >&6
ad6254c5
AK
6346else
6347 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6348/* confdefs.h. */
6349_ACEOF
6350cat confdefs.h >>conftest.$ac_ext
6351cat >>conftest.$ac_ext <<_ACEOF
6352/* end confdefs.h. */
6353#include <sys/types.h>
6354#include <time.h>
6355
6356int
6357main ()
6358{
25fbec5b
AK
6359struct tm tm;
6360 int *p = &tm.tm_sec;
ec6a6fbe 6361 return !p;
ad6254c5
AK
6362 ;
6363 return 0;
6364}
6365_ACEOF
6366rm -f conftest.$ac_objext
7a197a62
AK
6367if { (ac_try="$ac_compile"
6368case "(($ac_try" in
6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370 *) ac_try_echo=$ac_try;;
6371esac
ec6a6fbe
AK
6372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6373$as_echo "$ac_try_echo") >&5
7a197a62 6374 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6375 ac_status=$?
8a2fc586
AK
6376 grep -v '^ *+' conftest.er1 >conftest.err
6377 rm -f conftest.er1
6378 cat conftest.err >&5
ec6a6fbe 6379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6380 (exit $ac_status); } && {
6381 test -z "$ac_c_werror_flag" ||
6382 test ! -s conftest.err
6383 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6384 ac_cv_struct_tm=time.h
6385else
ec6a6fbe 6386 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6387sed 's/^/| /' conftest.$ac_ext >&5
6388
7a197a62 6389 ac_cv_struct_tm=sys/time.h
ad6254c5 6390fi
7a197a62
AK
6391
6392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6393fi
ec6a6fbe
AK
6394{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6395$as_echo "$ac_cv_struct_tm" >&6; }
ad6254c5
AK
6396if test $ac_cv_struct_tm = sys/time.h; then
6397
6398cat >>confdefs.h <<\_ACEOF
6399#define TM_IN_SYS_TIME 1
6400_ACEOF
6401
6402fi
809fae91 6403
795ca3e5 6404
80992638 6405################################################################################
ad6254c5
AK
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
d0191583
JM
6420
6421
6422
6423for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6424 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6425 uname
ad6254c5 6426do
ec6a6fbe
AK
6427as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6428{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6429$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6430if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6431 $as_echo_n "(cached) " >&6
795ca3e5 6432else
ad6254c5 6433 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6434/* confdefs.h. */
6435_ACEOF
6436cat confdefs.h >>conftest.$ac_ext
6437cat >>conftest.$ac_ext <<_ACEOF
6438/* end confdefs.h. */
8a2fc586
AK
6439/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6441#define $ac_func innocuous_$ac_func
6442
ad6254c5
AK
6443/* System header to define __stub macros and hopefully few prototypes,
6444 which can conflict with char $ac_func (); below.
6445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6446 <limits.h> exists even on freestanding compilers. */
8a2fc586 6447
ad6254c5
AK
6448#ifdef __STDC__
6449# include <limits.h>
6450#else
6451# include <assert.h>
6452#endif
8a2fc586
AK
6453
6454#undef $ac_func
6455
7a197a62
AK
6456/* Override any GCC internal prototype to avoid an error.
6457 Use char because int might match the return type of a GCC
6458 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6459#ifdef __cplusplus
6460extern "C"
ad6254c5 6461#endif
ad6254c5
AK
6462char $ac_func ();
6463/* The GNU C library defines this for functions which it implements
6464 to always fail with ENOSYS. Some functions are actually named
6465 something starting with __ and the normal name is an alias. */
7a197a62 6466#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6467choke me
ad6254c5
AK
6468#endif
6469
6470int
6471main ()
6472{
7a197a62 6473return $ac_func ();
ad6254c5
AK
6474 ;
6475 return 0;
6476}
6477_ACEOF
6478rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6479if { (ac_try="$ac_link"
6480case "(($ac_try" in
6481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482 *) ac_try_echo=$ac_try;;
6483esac
ec6a6fbe
AK
6484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6485$as_echo "$ac_try_echo") >&5
7a197a62 6486 (eval "$ac_link") 2>conftest.er1
ad6254c5 6487 ac_status=$?
8a2fc586
AK
6488 grep -v '^ *+' conftest.er1 >conftest.err
6489 rm -f conftest.er1
6490 cat conftest.err >&5
ec6a6fbe 6491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6492 (exit $ac_status); } && {
6493 test -z "$ac_c_werror_flag" ||
6494 test ! -s conftest.err
ec6a6fbe
AK
6495 } && test -s conftest$ac_exeext && {
6496 test "$cross_compiling" = yes ||
6497 $as_test_x conftest$ac_exeext
6498 }; then
fc54be10
AK
6499 eval "$as_ac_var=yes"
6500else
ec6a6fbe 6501 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
6502sed 's/^/| /' conftest.$ac_ext >&5
6503
6504 eval "$as_ac_var=no"
6505fi
6506
ec6a6fbe 6507rm -rf conftest.dSYM
25fbec5b 6508rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
6509 conftest$ac_exeext conftest.$ac_ext
6510fi
ec6a6fbe
AK
6511ac_res=`eval 'as_val=${'$as_ac_var'}
6512 $as_echo "$as_val"'`
6513 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6514$as_echo "$ac_res" >&6; }
6515as_val=`eval 'as_val=${'$as_ac_var'}
6516 $as_echo "$as_val"'`
6517 if test "x$as_val" = x""yes; then
ad6254c5 6518 cat >>confdefs.h <<_ACEOF
ec6a6fbe 6519#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6520_ACEOF
6521
6522else
ec6a6fbe
AK
6523 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6524$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
6525 { (exit 1); exit 1; }; }
6526fi
6527done
795ca3e5 6528
ad6254c5
AK
6529# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6530# for constant arguments. Useless!
ec6a6fbe
AK
6531{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6532$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 6533if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 6534 $as_echo_n "(cached) " >&6
ad6254c5
AK
6535else
6536 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6537/* confdefs.h. */
6538_ACEOF
6539cat confdefs.h >>conftest.$ac_ext
6540cat >>conftest.$ac_ext <<_ACEOF
6541/* end confdefs.h. */
6542#include <alloca.h>
6543int
6544main ()
6545{
6546char *p = (char *) alloca (2 * sizeof (int));
7a197a62 6547 if (p) return 0;
ad6254c5
AK
6548 ;
6549 return 0;
6550}
6551_ACEOF
6552rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6553if { (ac_try="$ac_link"
6554case "(($ac_try" in
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6557esac
ec6a6fbe
AK
6558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6559$as_echo "$ac_try_echo") >&5
7a197a62 6560 (eval "$ac_link") 2>conftest.er1
ad6254c5 6561 ac_status=$?
8a2fc586
AK
6562 grep -v '^ *+' conftest.er1 >conftest.err
6563 rm -f conftest.er1
6564 cat conftest.err >&5
ec6a6fbe 6565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6566 (exit $ac_status); } && {
6567 test -z "$ac_c_werror_flag" ||
6568 test ! -s conftest.err
ec6a6fbe
AK
6569 } && test -s conftest$ac_exeext && {
6570 test "$cross_compiling" = yes ||
6571 $as_test_x conftest$ac_exeext
6572 }; then
ad6254c5
AK
6573 ac_cv_working_alloca_h=yes
6574else
ec6a6fbe 6575 $as_echo "$as_me: failed program was:" >&5
ad6254c5 6576sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 6577
7a197a62 6578 ac_cv_working_alloca_h=no
ad6254c5 6579fi
7a197a62 6580
ec6a6fbe 6581rm -rf conftest.dSYM
25fbec5b 6582rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6583 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6584fi
ec6a6fbe
AK
6585{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6586$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
6587if test $ac_cv_working_alloca_h = yes; then
6588
6589cat >>confdefs.h <<\_ACEOF
6590#define HAVE_ALLOCA_H 1
6591_ACEOF
6592
6593fi
6594
ec6a6fbe
AK
6595{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
6596$as_echo_n "checking for alloca... " >&6; }
ad6254c5 6597if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 6598 $as_echo_n "(cached) " >&6
ad6254c5
AK
6599else
6600 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6601/* confdefs.h. */
6602_ACEOF
6603cat confdefs.h >>conftest.$ac_ext
6604cat >>conftest.$ac_ext <<_ACEOF
6605/* end confdefs.h. */
6606#ifdef __GNUC__
6607# define alloca __builtin_alloca
6608#else
6609# ifdef _MSC_VER
6610# include <malloc.h>
6611# define alloca _alloca
6612# else
25fbec5b 6613# ifdef HAVE_ALLOCA_H
ad6254c5
AK
6614# include <alloca.h>
6615# else
6616# ifdef _AIX
6617 #pragma alloca
6618# else
6619# ifndef alloca /* predefined by HP cc +Olibcalls */
6620char *alloca ();
6621# endif
6622# endif
6623# endif
6624# endif
6625#endif
6626
6627int
6628main ()
6629{
6630char *p = (char *) alloca (1);
7a197a62 6631 if (p) return 0;
ad6254c5
AK
6632 ;
6633 return 0;
6634}
6635_ACEOF
6636rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6637if { (ac_try="$ac_link"
6638case "(($ac_try" in
6639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6640 *) ac_try_echo=$ac_try;;
6641esac
ec6a6fbe
AK
6642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6643$as_echo "$ac_try_echo") >&5
7a197a62 6644 (eval "$ac_link") 2>conftest.er1
ad6254c5 6645 ac_status=$?
8a2fc586
AK
6646 grep -v '^ *+' conftest.er1 >conftest.err
6647 rm -f conftest.er1
6648 cat conftest.err >&5
ec6a6fbe 6649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6650 (exit $ac_status); } && {
6651 test -z "$ac_c_werror_flag" ||
6652 test ! -s conftest.err
ec6a6fbe
AK
6653 } && test -s conftest$ac_exeext && {
6654 test "$cross_compiling" = yes ||
6655 $as_test_x conftest$ac_exeext
6656 }; then
ad6254c5
AK
6657 ac_cv_func_alloca_works=yes
6658else
ec6a6fbe 6659 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6660sed 's/^/| /' conftest.$ac_ext >&5
6661
7a197a62 6662 ac_cv_func_alloca_works=no
ad6254c5 6663fi
7a197a62 6664
ec6a6fbe 6665rm -rf conftest.dSYM
25fbec5b 6666rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6667 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6668fi
ec6a6fbe
AK
6669{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6670$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6671
6672if test $ac_cv_func_alloca_works = yes; then
6673
6674cat >>confdefs.h <<\_ACEOF
6675#define HAVE_ALLOCA 1
6676_ACEOF
6677
6678else
6679 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6680# that cause trouble. Some versions do not even contain alloca or
6681# contain a buggy version. If you still want to use their alloca,
6682# use ar to extract alloca.o from them instead of compiling alloca.c.
6683
7a197a62 6684ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6685
6686cat >>confdefs.h <<\_ACEOF
6687#define C_ALLOCA 1
6688_ACEOF
6689
6690
ec6a6fbe
AK
6691{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6692$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 6693if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 6694 $as_echo_n "(cached) " >&6
ad6254c5
AK
6695else
6696 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6697/* confdefs.h. */
6698_ACEOF
6699cat confdefs.h >>conftest.$ac_ext
6700cat >>conftest.$ac_ext <<_ACEOF
6701/* end confdefs.h. */
7a197a62 6702#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6703webecray
6704#else
6705wenotbecray
6706#endif
6707
6708_ACEOF
795ca3e5 6709if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6710 $EGREP "webecray" >/dev/null 2>&1; then
6711 ac_cv_os_cray=yes
6712else
6713 ac_cv_os_cray=no
795ca3e5
AK
6714fi
6715rm -f conftest*
6716
795ca3e5 6717fi
ec6a6fbe
AK
6718{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6719$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
6720if test $ac_cv_os_cray = yes; then
6721 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
6722 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6723{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6724$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6725if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6726 $as_echo_n "(cached) " >&6
ad6254c5
AK
6727else
6728 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6729/* confdefs.h. */
6730_ACEOF
6731cat confdefs.h >>conftest.$ac_ext
6732cat >>conftest.$ac_ext <<_ACEOF
6733/* end confdefs.h. */
8a2fc586
AK
6734/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6736#define $ac_func innocuous_$ac_func
6737
ad6254c5
AK
6738/* System header to define __stub macros and hopefully few prototypes,
6739 which can conflict with char $ac_func (); below.
6740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6741 <limits.h> exists even on freestanding compilers. */
8a2fc586 6742
ad6254c5
AK
6743#ifdef __STDC__
6744# include <limits.h>
6745#else
6746# include <assert.h>
6747#endif
8a2fc586
AK
6748
6749#undef $ac_func
6750
7a197a62
AK
6751/* Override any GCC internal prototype to avoid an error.
6752 Use char because int might match the return type of a GCC
6753 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6754#ifdef __cplusplus
6755extern "C"
ad6254c5 6756#endif
ad6254c5
AK
6757char $ac_func ();
6758/* The GNU C library defines this for functions which it implements
6759 to always fail with ENOSYS. Some functions are actually named
6760 something starting with __ and the normal name is an alias. */
7a197a62 6761#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6762choke me
ad6254c5
AK
6763#endif
6764
6765int
6766main ()
6767{
7a197a62 6768return $ac_func ();
ad6254c5
AK
6769 ;
6770 return 0;
6771}
6772_ACEOF
6773rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6774if { (ac_try="$ac_link"
6775case "(($ac_try" in
6776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6777 *) ac_try_echo=$ac_try;;
6778esac
ec6a6fbe
AK
6779eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6780$as_echo "$ac_try_echo") >&5
7a197a62 6781 (eval "$ac_link") 2>conftest.er1
ad6254c5 6782 ac_status=$?
8a2fc586
AK
6783 grep -v '^ *+' conftest.er1 >conftest.err
6784 rm -f conftest.er1
6785 cat conftest.err >&5
ec6a6fbe 6786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6787 (exit $ac_status); } && {
6788 test -z "$ac_c_werror_flag" ||
6789 test ! -s conftest.err
ec6a6fbe
AK
6790 } && test -s conftest$ac_exeext && {
6791 test "$cross_compiling" = yes ||
6792 $as_test_x conftest$ac_exeext
6793 }; then
ad6254c5
AK
6794 eval "$as_ac_var=yes"
6795else
ec6a6fbe 6796 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6797sed 's/^/| /' conftest.$ac_ext >&5
6798
7a197a62 6799 eval "$as_ac_var=no"
ad6254c5 6800fi
7a197a62 6801
ec6a6fbe 6802rm -rf conftest.dSYM
25fbec5b 6803rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6804 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6805fi
ec6a6fbe
AK
6806ac_res=`eval 'as_val=${'$as_ac_var'}
6807 $as_echo "$as_val"'`
6808 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6809$as_echo "$ac_res" >&6; }
6810as_val=`eval 'as_val=${'$as_ac_var'}
6811 $as_echo "$as_val"'`
6812 if test "x$as_val" = x""yes; then
80992638 6813
ad6254c5
AK
6814cat >>confdefs.h <<_ACEOF
6815#define CRAY_STACKSEG_END $ac_func
6816_ACEOF
6817
6818 break
6819fi
6820
6821 done
6822fi
6823
ec6a6fbe
AK
6824{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6825$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 6826if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 6827 $as_echo_n "(cached) " >&6
ad6254c5
AK
6828else
6829 if test "$cross_compiling" = yes; then
6830 ac_cv_c_stack_direction=0
6831else
6832 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6833/* confdefs.h. */
6834_ACEOF
6835cat confdefs.h >>conftest.$ac_ext
6836cat >>conftest.$ac_ext <<_ACEOF
6837/* end confdefs.h. */
7a197a62 6838$ac_includes_default
ad6254c5
AK
6839int
6840find_stack_direction ()
6841{
6842 static char *addr = 0;
6843 auto char dummy;
6844 if (addr == 0)
6845 {
6846 addr = &dummy;
6847 return find_stack_direction ();
6848 }
6849 else
6850 return (&dummy > addr) ? 1 : -1;
6851}
6852
6853int
6854main ()
6855{
7a197a62 6856 return find_stack_direction () < 0;
ad6254c5
AK
6857}
6858_ACEOF
6859rm -f conftest$ac_exeext
7a197a62
AK
6860if { (ac_try="$ac_link"
6861case "(($ac_try" in
6862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6863 *) ac_try_echo=$ac_try;;
6864esac
ec6a6fbe
AK
6865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6866$as_echo "$ac_try_echo") >&5
7a197a62 6867 (eval "$ac_link") 2>&5
ad6254c5 6868 ac_status=$?
ec6a6fbe 6869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6871 { (case "(($ac_try" in
6872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6873 *) ac_try_echo=$ac_try;;
6874esac
ec6a6fbe
AK
6875eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6876$as_echo "$ac_try_echo") >&5
7a197a62 6877 (eval "$ac_try") 2>&5
ad6254c5 6878 ac_status=$?
ec6a6fbe 6879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6880 (exit $ac_status); }; }; then
6881 ac_cv_c_stack_direction=1
6882else
ec6a6fbe
AK
6883 $as_echo "$as_me: program exited with status $ac_status" >&5
6884$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6885sed 's/^/| /' conftest.$ac_ext >&5
6886
6887( exit $ac_status )
6888ac_cv_c_stack_direction=-1
6889fi
ec6a6fbe 6890rm -rf conftest.dSYM
7a197a62 6891rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6892fi
7a197a62
AK
6893
6894
ad6254c5 6895fi
ec6a6fbe
AK
6896{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6897$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
6898
6899cat >>confdefs.h <<_ACEOF
6900#define STACK_DIRECTION $ac_cv_c_stack_direction
6901_ACEOF
6902
6903
6904fi
6905
ec6a6fbe
AK
6906{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6907$as_echo_n "checking whether closedir returns void... " >&6; }
ad6254c5 6908if test "${ac_cv_func_closedir_void+set}" = set; then
ec6a6fbe 6909 $as_echo_n "(cached) " >&6
ad6254c5
AK
6910else
6911 if test "$cross_compiling" = yes; then
6912 ac_cv_func_closedir_void=yes
6913else
6914 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6915/* confdefs.h. */
6916_ACEOF
6917cat confdefs.h >>conftest.$ac_ext
6918cat >>conftest.$ac_ext <<_ACEOF
6919/* end confdefs.h. */
6920$ac_includes_default
6921#include <$ac_header_dirent>
6922#ifndef __cplusplus
6923int closedir ();
6924#endif
6925
6926int
6927main ()
6928{
7a197a62 6929return closedir (opendir (".")) != 0;
ad6254c5
AK
6930 ;
6931 return 0;
6932}
6933_ACEOF
6934rm -f conftest$ac_exeext
7a197a62
AK
6935if { (ac_try="$ac_link"
6936case "(($ac_try" in
6937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6938 *) ac_try_echo=$ac_try;;
6939esac
ec6a6fbe
AK
6940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6941$as_echo "$ac_try_echo") >&5
7a197a62 6942 (eval "$ac_link") 2>&5
ad6254c5 6943 ac_status=$?
ec6a6fbe 6944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6946 { (case "(($ac_try" in
6947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6948 *) ac_try_echo=$ac_try;;
6949esac
ec6a6fbe
AK
6950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6951$as_echo "$ac_try_echo") >&5
7a197a62 6952 (eval "$ac_try") 2>&5
ad6254c5 6953 ac_status=$?
ec6a6fbe 6954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6955 (exit $ac_status); }; }; then
6956 ac_cv_func_closedir_void=no
6957else
ec6a6fbe
AK
6958 $as_echo "$as_me: program exited with status $ac_status" >&5
6959$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6960sed 's/^/| /' conftest.$ac_ext >&5
6961
6962( exit $ac_status )
6963ac_cv_func_closedir_void=yes
6964fi
ec6a6fbe 6965rm -rf conftest.dSYM
7a197a62 6966rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6967fi
7a197a62
AK
6968
6969
ad6254c5 6970fi
ec6a6fbe
AK
6971{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6972$as_echo "$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
6973if test $ac_cv_func_closedir_void = yes; then
6974
6975cat >>confdefs.h <<\_ACEOF
6976#define CLOSEDIR_VOID 1
6977_ACEOF
6978
6979fi
6980
6981
7a197a62 6982for ac_header in vfork.h
ad6254c5 6983do
ec6a6fbe 6984as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 6985if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
6986 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6987$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 6988if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6989 $as_echo_n "(cached) " >&6
ad6254c5 6990fi
ec6a6fbe
AK
6991ac_res=`eval 'as_val=${'$as_ac_Header'}
6992 $as_echo "$as_val"'`
6993 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6994$as_echo "$ac_res" >&6; }
ad6254c5
AK
6995else
6996 # Is the header compilable?
ec6a6fbe
AK
6997{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6998$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 6999cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7000/* confdefs.h. */
7001_ACEOF
7002cat confdefs.h >>conftest.$ac_ext
7003cat >>conftest.$ac_ext <<_ACEOF
7004/* end confdefs.h. */
7005$ac_includes_default
7006#include <$ac_header>
7007_ACEOF
7008rm -f conftest.$ac_objext
7a197a62
AK
7009if { (ac_try="$ac_compile"
7010case "(($ac_try" in
7011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7012 *) ac_try_echo=$ac_try;;
7013esac
ec6a6fbe
AK
7014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7015$as_echo "$ac_try_echo") >&5
7a197a62 7016 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7017 ac_status=$?
8a2fc586
AK
7018 grep -v '^ *+' conftest.er1 >conftest.err
7019 rm -f conftest.er1
7020 cat conftest.err >&5
ec6a6fbe 7021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7022 (exit $ac_status); } && {
7023 test -z "$ac_c_werror_flag" ||
7024 test ! -s conftest.err
7025 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7026 ac_header_compiler=yes
7027else
ec6a6fbe 7028 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7029sed 's/^/| /' conftest.$ac_ext >&5
7030
7a197a62 7031 ac_header_compiler=no
ad6254c5 7032fi
7a197a62
AK
7033
7034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7035{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7036$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7037
7038# Is the header present?
ec6a6fbe
AK
7039{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7040$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7041cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7042/* confdefs.h. */
7043_ACEOF
7044cat confdefs.h >>conftest.$ac_ext
7045cat >>conftest.$ac_ext <<_ACEOF
7046/* end confdefs.h. */
7047#include <$ac_header>
7048_ACEOF
7a197a62
AK
7049if { (ac_try="$ac_cpp conftest.$ac_ext"
7050case "(($ac_try" in
7051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7052 *) ac_try_echo=$ac_try;;
7053esac
ec6a6fbe
AK
7054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7055$as_echo "$ac_try_echo") >&5
7a197a62 7056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7057 ac_status=$?
7058 grep -v '^ *+' conftest.er1 >conftest.err
7059 rm -f conftest.er1
7060 cat conftest.err >&5
ec6a6fbe 7061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7062 (exit $ac_status); } >/dev/null && {
7063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7064 test ! -s conftest.err
7065 }; then
ad6254c5
AK
7066 ac_header_preproc=yes
7067else
ec6a6fbe 7068 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7069sed 's/^/| /' conftest.$ac_ext >&5
7070
7071 ac_header_preproc=no
7072fi
7a197a62 7073
ad6254c5 7074rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7075{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7076$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7077
7078# So? What about this header?
8a2fc586
AK
7079case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7080 yes:no: )
ec6a6fbe
AK
7081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7082$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7084$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7085 ac_header_preproc=yes
ad6254c5 7086 ;;
8a2fc586 7087 no:yes:* )
ec6a6fbe
AK
7088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7089$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7091$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7093$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7095$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7097$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7099$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7100
ad6254c5
AK
7101 ;;
7102esac
ec6a6fbe
AK
7103{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7104$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7105if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7106 $as_echo_n "(cached) " >&6
ad6254c5 7107else
8a2fc586 7108 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7109fi
ec6a6fbe
AK
7110ac_res=`eval 'as_val=${'$as_ac_Header'}
7111 $as_echo "$as_val"'`
7112 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7113$as_echo "$ac_res" >&6; }
ad6254c5 7114
795ca3e5 7115fi
ec6a6fbe
AK
7116as_val=`eval 'as_val=${'$as_ac_Header'}
7117 $as_echo "$as_val"'`
7118 if test "x$as_val" = x""yes; then
ad6254c5 7119 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7120#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7121_ACEOF
7122
7123fi
7124
7125done
795ca3e5 7126
ad6254c5
AK
7127
7128
7129for ac_func in fork vfork
7130do
ec6a6fbe
AK
7131as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7132{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7133$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 7134if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7135 $as_echo_n "(cached) " >&6
795ca3e5 7136else
ad6254c5 7137 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7138/* confdefs.h. */
7139_ACEOF
7140cat confdefs.h >>conftest.$ac_ext
7141cat >>conftest.$ac_ext <<_ACEOF
7142/* end confdefs.h. */
8a2fc586
AK
7143/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7145#define $ac_func innocuous_$ac_func
7146
ad6254c5
AK
7147/* System header to define __stub macros and hopefully few prototypes,
7148 which can conflict with char $ac_func (); below.
7149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7150 <limits.h> exists even on freestanding compilers. */
8a2fc586 7151
ad6254c5
AK
7152#ifdef __STDC__
7153# include <limits.h>
7154#else
7155# include <assert.h>
795ca3e5 7156#endif
8a2fc586
AK
7157
7158#undef $ac_func
7159
7a197a62
AK
7160/* Override any GCC internal prototype to avoid an error.
7161 Use char because int might match the return type of a GCC
7162 builtin and then its argument prototype would still apply. */
795ca3e5 7163#ifdef __cplusplus
ad6254c5 7164extern "C"
ad6254c5 7165#endif
ad6254c5
AK
7166char $ac_func ();
7167/* The GNU C library defines this for functions which it implements
7168 to always fail with ENOSYS. Some functions are actually named
7169 something starting with __ and the normal name is an alias. */
7a197a62 7170#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7171choke me
795ca3e5
AK
7172#endif
7173
ad6254c5
AK
7174int
7175main ()
7176{
7a197a62 7177return $ac_func ();
ad6254c5
AK
7178 ;
7179 return 0;
7180}
7181_ACEOF
7182rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7183if { (ac_try="$ac_link"
7184case "(($ac_try" in
7185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7187esac
ec6a6fbe
AK
7188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7189$as_echo "$ac_try_echo") >&5
7a197a62 7190 (eval "$ac_link") 2>conftest.er1
ad6254c5 7191 ac_status=$?
8a2fc586
AK
7192 grep -v '^ *+' conftest.er1 >conftest.err
7193 rm -f conftest.er1
7194 cat conftest.err >&5
ec6a6fbe 7195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7196 (exit $ac_status); } && {
7197 test -z "$ac_c_werror_flag" ||
7198 test ! -s conftest.err
ec6a6fbe
AK
7199 } && test -s conftest$ac_exeext && {
7200 test "$cross_compiling" = yes ||
7201 $as_test_x conftest$ac_exeext
7202 }; then
ad6254c5 7203 eval "$as_ac_var=yes"
795ca3e5 7204else
ec6a6fbe 7205 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7206sed 's/^/| /' conftest.$ac_ext >&5
7207
7a197a62 7208 eval "$as_ac_var=no"
795ca3e5 7209fi
7a197a62 7210
ec6a6fbe 7211rm -rf conftest.dSYM
25fbec5b 7212rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7213 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7214fi
ec6a6fbe
AK
7215ac_res=`eval 'as_val=${'$as_ac_var'}
7216 $as_echo "$as_val"'`
7217 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7218$as_echo "$ac_res" >&6; }
7219as_val=`eval 'as_val=${'$as_ac_var'}
7220 $as_echo "$as_val"'`
7221 if test "x$as_val" = x""yes; then
ad6254c5 7222 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7223#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7224_ACEOF
7225
7226fi
7227done
7228
7229if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
7230 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7231$as_echo_n "checking for working fork... " >&6; }
ad6254c5 7232if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 7233 $as_echo_n "(cached) " >&6
ad6254c5
AK
7234else
7235 if test "$cross_compiling" = yes; then
7236 ac_cv_func_fork_works=cross
7237else
7238 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
7239/* confdefs.h. */
7240_ACEOF
7241cat confdefs.h >>conftest.$ac_ext
7242cat >>conftest.$ac_ext <<_ACEOF
7243/* end confdefs.h. */
7244$ac_includes_default
7245int
7246main ()
7247{
7248
7249 /* By Ruediger Kuhlmann. */
7250 return fork () < 0;
7251
7252 ;
7253 return 0;
7254}
ad6254c5
AK
7255_ACEOF
7256rm -f conftest$ac_exeext
7a197a62
AK
7257if { (ac_try="$ac_link"
7258case "(($ac_try" in
7259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7260 *) ac_try_echo=$ac_try;;
7261esac
ec6a6fbe
AK
7262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7263$as_echo "$ac_try_echo") >&5
7a197a62 7264 (eval "$ac_link") 2>&5
ad6254c5 7265 ac_status=$?
ec6a6fbe 7266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7268 { (case "(($ac_try" in
7269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7270 *) ac_try_echo=$ac_try;;
7271esac
ec6a6fbe
AK
7272eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7273$as_echo "$ac_try_echo") >&5
7a197a62 7274 (eval "$ac_try") 2>&5
ad6254c5 7275 ac_status=$?
ec6a6fbe 7276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7277 (exit $ac_status); }; }; then
7278 ac_cv_func_fork_works=yes
7279else
ec6a6fbe
AK
7280 $as_echo "$as_me: program exited with status $ac_status" >&5
7281$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7282sed 's/^/| /' conftest.$ac_ext >&5
7283
7284( exit $ac_status )
7285ac_cv_func_fork_works=no
7286fi
ec6a6fbe 7287rm -rf conftest.dSYM
7a197a62 7288rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7289fi
7a197a62
AK
7290
7291
ad6254c5 7292fi
ec6a6fbe
AK
7293{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7294$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
7295
7296else
7297 ac_cv_func_fork_works=$ac_cv_func_fork
7298fi
7299if test "x$ac_cv_func_fork_works" = xcross; then
7300 case $host in
7301 *-*-amigaos* | *-*-msdosdjgpp*)
7302 # Override, as these systems have only a dummy fork() stub
7303 ac_cv_func_fork_works=no
7304 ;;
7305 *)
7306 ac_cv_func_fork_works=yes
7307 ;;
7308 esac
ec6a6fbe
AK
7309 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7310$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7311fi
7312ac_cv_func_vfork_works=$ac_cv_func_vfork
7313if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
7314 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7315$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 7316if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 7317 $as_echo_n "(cached) " >&6
ad6254c5
AK
7318else
7319 if test "$cross_compiling" = yes; then
7320 ac_cv_func_vfork_works=cross
7321else
7322 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7323/* confdefs.h. */
7324_ACEOF
7325cat confdefs.h >>conftest.$ac_ext
7326cat >>conftest.$ac_ext <<_ACEOF
7327/* end confdefs.h. */
7328/* Thanks to Paul Eggert for this test. */
7a197a62 7329$ac_includes_default
ad6254c5 7330#include <sys/wait.h>
25fbec5b 7331#ifdef HAVE_VFORK_H
ad6254c5
AK
7332# include <vfork.h>
7333#endif
7334/* On some sparc systems, changes by the child to local and incoming
7335 argument registers are propagated back to the parent. The compiler
7336 is told about this with #include <vfork.h>, but some compilers
7337 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7338 static variable whose address is put into a register that is
7339 clobbered by the vfork. */
7340static void
7341#ifdef __cplusplus
7342sparc_address_test (int arg)
7343# else
7344sparc_address_test (arg) int arg;
7345#endif
7346{
7347 static pid_t child;
7348 if (!child) {
7349 child = vfork ();
7350 if (child < 0) {
7351 perror ("vfork");
7352 _exit(2);
7353 }
7354 if (!child) {
7355 arg = getpid();
7356 write(-1, "", 0);
7357 _exit (arg);
7358 }
7359 }
7360}
7361
7362int
7363main ()
7364{
7365 pid_t parent = getpid ();
7366 pid_t child;
7367
7368 sparc_address_test (0);
7369
7370 child = vfork ();
7371
7372 if (child == 0) {
7373 /* Here is another test for sparc vfork register problems. This
7374 test uses lots of local variables, at least as many local
7375 variables as main has allocated so far including compiler
7376 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7377 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7378 reuse the register of parent for one of the local variables,
7379 since it will think that parent can't possibly be used any more
7380 in this routine. Assigning to the local variable will thus
7381 munge parent in the parent process. */
7382 pid_t
7383 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7384 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7385 /* Convince the compiler that p..p7 are live; otherwise, it might
7386 use the same hardware register for all 8 local variables. */
7387 if (p != p1 || p != p2 || p != p3 || p != p4
7388 || p != p5 || p != p6 || p != p7)
7389 _exit(1);
7390
7391 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7392 from child file descriptors. If the child closes a descriptor
7393 before it execs or exits, this munges the parent's descriptor
7394 as well. Test for this by closing stdout in the child. */
7395 _exit(close(fileno(stdout)) != 0);
7396 } else {
7397 int status;
7398 struct stat st;
7399
7400 while (wait(&status) != child)
7401 ;
7a197a62 7402 return (
ad6254c5
AK
7403 /* Was there some problem with vforking? */
7404 child < 0
7405
7406 /* Did the child fail? (This shouldn't happen.) */
7407 || status
7408
7409 /* Did the vfork/compiler bug occur? */
7410 || parent != getpid()
7411
7412 /* Did the file descriptor bug occur? */
7413 || fstat(fileno(stdout), &st) != 0
7414 );
7415 }
7416}
7417_ACEOF
7418rm -f conftest$ac_exeext
7a197a62
AK
7419if { (ac_try="$ac_link"
7420case "(($ac_try" in
7421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422 *) ac_try_echo=$ac_try;;
7423esac
ec6a6fbe
AK
7424eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7425$as_echo "$ac_try_echo") >&5
7a197a62 7426 (eval "$ac_link") 2>&5
ad6254c5 7427 ac_status=$?
ec6a6fbe 7428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7430 { (case "(($ac_try" in
7431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7432 *) ac_try_echo=$ac_try;;
7433esac
ec6a6fbe
AK
7434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7435$as_echo "$ac_try_echo") >&5
7a197a62 7436 (eval "$ac_try") 2>&5
ad6254c5 7437 ac_status=$?
ec6a6fbe 7438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7439 (exit $ac_status); }; }; then
7440 ac_cv_func_vfork_works=yes
7441else
ec6a6fbe
AK
7442 $as_echo "$as_me: program exited with status $ac_status" >&5
7443$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7444sed 's/^/| /' conftest.$ac_ext >&5
7445
7446( exit $ac_status )
7447ac_cv_func_vfork_works=no
7448fi
ec6a6fbe 7449rm -rf conftest.dSYM
7a197a62 7450rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7451fi
7a197a62
AK
7452
7453
ad6254c5 7454fi
ec6a6fbe
AK
7455{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7456$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
7457
7458fi;
7459if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 7460 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
7461 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7462$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7463fi
7464
7465if test "x$ac_cv_func_vfork_works" = xyes; then
7466
7467cat >>confdefs.h <<\_ACEOF
7468#define HAVE_WORKING_VFORK 1
7469_ACEOF
7470
7471else
7472
7473cat >>confdefs.h <<\_ACEOF
7474#define vfork fork
7475_ACEOF
7476
7477fi
7478if test "x$ac_cv_func_fork_works" = xyes; then
7479
7480cat >>confdefs.h <<\_ACEOF
7481#define HAVE_WORKING_FORK 1
7482_ACEOF
7483
7484fi
7485
ec6a6fbe
AK
7486{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7487$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 7488if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 7489 $as_echo_n "(cached) " >&6
ad6254c5
AK
7490else
7491 rm -f conftest.sym conftest.file
7492echo >conftest.file
7493if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7494 if test "$cross_compiling" = yes; then
7495 ac_cv_func_lstat_dereferences_slashed_symlink=no
7496else
7497 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7498/* confdefs.h. */
7499_ACEOF
7500cat confdefs.h >>conftest.$ac_ext
7501cat >>conftest.$ac_ext <<_ACEOF
7502/* end confdefs.h. */
7503$ac_includes_default
7504int
7505main ()
7506{
7507struct stat sbuf;
7508 /* Linux will dereference the symlink and fail.
8a2fc586
AK
7509 That is better in the sense that it means we will not
7510 have to compile and use the lstat wrapper. */
7a197a62 7511 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
7512 ;
7513 return 0;
7514}
7515_ACEOF
7516rm -f conftest$ac_exeext
7a197a62
AK
7517if { (ac_try="$ac_link"
7518case "(($ac_try" in
7519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7520 *) ac_try_echo=$ac_try;;
7521esac
ec6a6fbe
AK
7522eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7523$as_echo "$ac_try_echo") >&5
7a197a62 7524 (eval "$ac_link") 2>&5
ad6254c5 7525 ac_status=$?
ec6a6fbe 7526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7528 { (case "(($ac_try" in
7529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7530 *) ac_try_echo=$ac_try;;
7531esac
ec6a6fbe
AK
7532eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7533$as_echo "$ac_try_echo") >&5
7a197a62 7534 (eval "$ac_try") 2>&5
ad6254c5 7535 ac_status=$?
ec6a6fbe 7536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7537 (exit $ac_status); }; }; then
7538 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7539else
ec6a6fbe
AK
7540 $as_echo "$as_me: program exited with status $ac_status" >&5
7541$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7542sed 's/^/| /' conftest.$ac_ext >&5
7543
7544( exit $ac_status )
7545ac_cv_func_lstat_dereferences_slashed_symlink=no
7546fi
ec6a6fbe 7547rm -rf conftest.dSYM
7a197a62 7548rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7549fi
7a197a62
AK
7550
7551
ad6254c5
AK
7552else
7553 # If the `ln -s' command failed, then we probably don't even
7554 # have an lstat function.
7555 ac_cv_func_lstat_dereferences_slashed_symlink=no
7556fi
7557rm -f conftest.sym conftest.file
7558
7559fi
ec6a6fbe
AK
7560{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7561$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
7562
7563test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7564
7565cat >>confdefs.h <<_ACEOF
7566#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7567_ACEOF
7568
7569
7570if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 7571 case " $LIBOBJS " in
8a2fc586 7572 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7573 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7574 ;;
8a2fc586
AK
7575esac
7576
ad6254c5
AK
7577fi
7578
ec6a6fbe
AK
7579{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7580$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 7581if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 7582 $as_echo_n "(cached) " >&6
ad6254c5
AK
7583else
7584 if test "$cross_compiling" = yes; then
7585 ac_cv_func_lstat_empty_string_bug=yes
7586else
7587 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7588/* confdefs.h. */
7589_ACEOF
7590cat confdefs.h >>conftest.$ac_ext
7591cat >>conftest.$ac_ext <<_ACEOF
7592/* end confdefs.h. */
7593$ac_includes_default
7594int
7595main ()
7596{
7597struct stat sbuf;
7a197a62 7598 return lstat ("", &sbuf) == 0;
ad6254c5
AK
7599 ;
7600 return 0;
7601}
7602_ACEOF
7603rm -f conftest$ac_exeext
7a197a62
AK
7604if { (ac_try="$ac_link"
7605case "(($ac_try" in
7606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7608esac
ec6a6fbe
AK
7609eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7610$as_echo "$ac_try_echo") >&5
7a197a62 7611 (eval "$ac_link") 2>&5
ad6254c5 7612 ac_status=$?
ec6a6fbe 7613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7615 { (case "(($ac_try" in
7616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7617 *) ac_try_echo=$ac_try;;
7618esac
ec6a6fbe
AK
7619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7620$as_echo "$ac_try_echo") >&5
7a197a62 7621 (eval "$ac_try") 2>&5
ad6254c5 7622 ac_status=$?
ec6a6fbe 7623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7624 (exit $ac_status); }; }; then
7a197a62 7625 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 7626else
ec6a6fbe
AK
7627 $as_echo "$as_me: program exited with status $ac_status" >&5
7628$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7629sed 's/^/| /' conftest.$ac_ext >&5
7630
7631( exit $ac_status )
7a197a62 7632ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 7633fi
ec6a6fbe 7634rm -rf conftest.dSYM
7a197a62 7635rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7636fi
7a197a62
AK
7637
7638
ad6254c5 7639fi
ec6a6fbe
AK
7640{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7641$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 7642if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 7643 case " $LIBOBJS " in
8a2fc586 7644 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7645 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7646 ;;
8a2fc586
AK
7647esac
7648
ad6254c5
AK
7649
7650cat >>confdefs.h <<_ACEOF
7651#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7652_ACEOF
7653
7654fi
7655
7656
7657for ac_header in stdlib.h
7658do
ec6a6fbe 7659as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7660if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7661 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7662$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7663if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7664 $as_echo_n "(cached) " >&6
ad6254c5 7665fi
ec6a6fbe
AK
7666ac_res=`eval 'as_val=${'$as_ac_Header'}
7667 $as_echo "$as_val"'`
7668 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7669$as_echo "$ac_res" >&6; }
ad6254c5
AK
7670else
7671 # Is the header compilable?
ec6a6fbe
AK
7672{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7673$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7674cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7675/* confdefs.h. */
7676_ACEOF
7677cat confdefs.h >>conftest.$ac_ext
7678cat >>conftest.$ac_ext <<_ACEOF
7679/* end confdefs.h. */
7680$ac_includes_default
7681#include <$ac_header>
7682_ACEOF
7683rm -f conftest.$ac_objext
7a197a62
AK
7684if { (ac_try="$ac_compile"
7685case "(($ac_try" in
7686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7687 *) ac_try_echo=$ac_try;;
7688esac
ec6a6fbe
AK
7689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7690$as_echo "$ac_try_echo") >&5
7a197a62 7691 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7692 ac_status=$?
8a2fc586
AK
7693 grep -v '^ *+' conftest.er1 >conftest.err
7694 rm -f conftest.er1
7695 cat conftest.err >&5
ec6a6fbe 7696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7697 (exit $ac_status); } && {
7698 test -z "$ac_c_werror_flag" ||
7699 test ! -s conftest.err
7700 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7701 ac_header_compiler=yes
7702else
ec6a6fbe 7703 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7704sed 's/^/| /' conftest.$ac_ext >&5
7705
7a197a62 7706 ac_header_compiler=no
ad6254c5 7707fi
7a197a62
AK
7708
7709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7710{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7711$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7712
7713# Is the header present?
ec6a6fbe
AK
7714{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7715$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7716cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7717/* confdefs.h. */
7718_ACEOF
7719cat confdefs.h >>conftest.$ac_ext
7720cat >>conftest.$ac_ext <<_ACEOF
7721/* end confdefs.h. */
7722#include <$ac_header>
7723_ACEOF
7a197a62
AK
7724if { (ac_try="$ac_cpp conftest.$ac_ext"
7725case "(($ac_try" in
7726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7727 *) ac_try_echo=$ac_try;;
7728esac
ec6a6fbe
AK
7729eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7730$as_echo "$ac_try_echo") >&5
7a197a62 7731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7732 ac_status=$?
7733 grep -v '^ *+' conftest.er1 >conftest.err
7734 rm -f conftest.er1
7735 cat conftest.err >&5
ec6a6fbe 7736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7737 (exit $ac_status); } >/dev/null && {
7738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7739 test ! -s conftest.err
7740 }; then
ad6254c5
AK
7741 ac_header_preproc=yes
7742else
ec6a6fbe 7743 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7744sed 's/^/| /' conftest.$ac_ext >&5
7745
7746 ac_header_preproc=no
7747fi
7a197a62 7748
ad6254c5 7749rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7750{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7751$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7752
7753# So? What about this header?
8a2fc586
AK
7754case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7755 yes:no: )
ec6a6fbe
AK
7756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7757$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7759$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7760 ac_header_preproc=yes
ad6254c5 7761 ;;
8a2fc586 7762 no:yes:* )
ec6a6fbe
AK
7763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7764$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7766$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7768$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7770$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7772$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7774$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7775
ad6254c5
AK
7776 ;;
7777esac
ec6a6fbe
AK
7778{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7779$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7780if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7781 $as_echo_n "(cached) " >&6
ad6254c5 7782else
8a2fc586 7783 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7784fi
ec6a6fbe
AK
7785ac_res=`eval 'as_val=${'$as_ac_Header'}
7786 $as_echo "$as_val"'`
7787 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7788$as_echo "$ac_res" >&6; }
ad6254c5
AK
7789
7790fi
ec6a6fbe
AK
7791as_val=`eval 'as_val=${'$as_ac_Header'}
7792 $as_echo "$as_val"'`
7793 if test "x$as_val" = x""yes; then
ad6254c5 7794 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7795#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7796_ACEOF
7797
7798fi
7799
7800done
7801
ec6a6fbe
AK
7802{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7803$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 7804if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 7805 $as_echo_n "(cached) " >&6
ad6254c5
AK
7806else
7807 if test "$cross_compiling" = yes; then
7808 ac_cv_func_malloc_0_nonnull=no
7809else
7810 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7811/* confdefs.h. */
7812_ACEOF
7813cat confdefs.h >>conftest.$ac_ext
7814cat >>conftest.$ac_ext <<_ACEOF
7815/* end confdefs.h. */
25fbec5b 7816#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
7817# include <stdlib.h>
7818#else
7819char *malloc ();
7820#endif
7821
7822int
7823main ()
7824{
7a197a62 7825return ! malloc (0);
ad6254c5
AK
7826 ;
7827 return 0;
7828}
7829_ACEOF
7830rm -f conftest$ac_exeext
7a197a62
AK
7831if { (ac_try="$ac_link"
7832case "(($ac_try" in
7833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834 *) ac_try_echo=$ac_try;;
7835esac
ec6a6fbe
AK
7836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7837$as_echo "$ac_try_echo") >&5
7a197a62 7838 (eval "$ac_link") 2>&5
ad6254c5 7839 ac_status=$?
ec6a6fbe 7840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7842 { (case "(($ac_try" in
7843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844 *) ac_try_echo=$ac_try;;
7845esac
ec6a6fbe
AK
7846eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7847$as_echo "$ac_try_echo") >&5
7a197a62 7848 (eval "$ac_try") 2>&5
ad6254c5 7849 ac_status=$?
ec6a6fbe 7850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7851 (exit $ac_status); }; }; then
7852 ac_cv_func_malloc_0_nonnull=yes
7853else
ec6a6fbe
AK
7854 $as_echo "$as_me: program exited with status $ac_status" >&5
7855$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7856sed 's/^/| /' conftest.$ac_ext >&5
7857
7858( exit $ac_status )
7859ac_cv_func_malloc_0_nonnull=no
7860fi
ec6a6fbe 7861rm -rf conftest.dSYM
7a197a62 7862rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7863fi
7a197a62
AK
7864
7865
ad6254c5 7866fi
ec6a6fbe
AK
7867{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7868$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
7869if test $ac_cv_func_malloc_0_nonnull = yes; then
7870
7871cat >>confdefs.h <<\_ACEOF
7872#define HAVE_MALLOC 1
7873_ACEOF
7874
7875else
7876 cat >>confdefs.h <<\_ACEOF
7877#define HAVE_MALLOC 0
7878_ACEOF
7879
7a197a62 7880 case " $LIBOBJS " in
8a2fc586 7881 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
7882 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7883 ;;
8a2fc586
AK
7884esac
7885
ad6254c5
AK
7886
7887cat >>confdefs.h <<\_ACEOF
7888#define malloc rpl_malloc
7889_ACEOF
7890
7891fi
7892
7893
7894
ec6a6fbe
AK
7895{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
7896$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 7897if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 7898 $as_echo_n "(cached) " >&6
ad6254c5
AK
7899else
7900 if test "$cross_compiling" = yes; then
7901 ac_cv_func_memcmp_working=no
7902else
7903 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7904/* confdefs.h. */
7905_ACEOF
7906cat confdefs.h >>conftest.$ac_ext
7907cat >>conftest.$ac_ext <<_ACEOF
7908/* end confdefs.h. */
8a2fc586 7909$ac_includes_default
ad6254c5
AK
7910int
7911main ()
7912{
7913
7914 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 7915 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 7916 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 7917 return 1;
ad6254c5
AK
7918
7919 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7920 or more and with at least one buffer not starting on a 4-byte boundary.
7921 William Lewis provided this test program. */
7922 {
7923 char foo[21];
7924 char bar[21];
7925 int i;
7926 for (i = 0; i < 4; i++)
7927 {
8a2fc586
AK
7928 char *a = foo + i;
7929 char *b = bar + i;
7930 strcpy (a, "--------01111111");
7931 strcpy (b, "--------10000000");
7932 if (memcmp (a, b, 16) >= 0)
7a197a62 7933 return 1;
ad6254c5 7934 }
7a197a62 7935 return 0;
ad6254c5
AK
7936 }
7937
7938 ;
7939 return 0;
7940}
7941_ACEOF
7942rm -f conftest$ac_exeext
7a197a62
AK
7943if { (ac_try="$ac_link"
7944case "(($ac_try" in
7945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7946 *) ac_try_echo=$ac_try;;
7947esac
ec6a6fbe
AK
7948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7949$as_echo "$ac_try_echo") >&5
7a197a62 7950 (eval "$ac_link") 2>&5
ad6254c5 7951 ac_status=$?
ec6a6fbe 7952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7954 { (case "(($ac_try" in
7955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7956 *) ac_try_echo=$ac_try;;
7957esac
ec6a6fbe
AK
7958eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7959$as_echo "$ac_try_echo") >&5
7a197a62 7960 (eval "$ac_try") 2>&5
ad6254c5 7961 ac_status=$?
ec6a6fbe 7962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7963 (exit $ac_status); }; }; then
7964 ac_cv_func_memcmp_working=yes
7965else
ec6a6fbe
AK
7966 $as_echo "$as_me: program exited with status $ac_status" >&5
7967$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7968sed 's/^/| /' conftest.$ac_ext >&5
7969
7970( exit $ac_status )
7971ac_cv_func_memcmp_working=no
7972fi
ec6a6fbe 7973rm -rf conftest.dSYM
7a197a62 7974rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7975fi
7a197a62
AK
7976
7977
ad6254c5 7978fi
ec6a6fbe
AK
7979{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7980$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 7981test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 7982 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
7983 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7984 ;;
8a2fc586
AK
7985esac
7986
ad6254c5
AK
7987
7988
7989
7990for ac_header in stdlib.h unistd.h
7991do
ec6a6fbe 7992as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7993if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7994 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7995$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7996if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7997 $as_echo_n "(cached) " >&6
ad6254c5 7998fi
ec6a6fbe
AK
7999ac_res=`eval 'as_val=${'$as_ac_Header'}
8000 $as_echo "$as_val"'`
8001 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8002$as_echo "$ac_res" >&6; }
ad6254c5
AK
8003else
8004 # Is the header compilable?
ec6a6fbe
AK
8005{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8006$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 8007cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8008/* confdefs.h. */
8009_ACEOF
8010cat confdefs.h >>conftest.$ac_ext
8011cat >>conftest.$ac_ext <<_ACEOF
8012/* end confdefs.h. */
8013$ac_includes_default
8014#include <$ac_header>
8015_ACEOF
8016rm -f conftest.$ac_objext
7a197a62
AK
8017if { (ac_try="$ac_compile"
8018case "(($ac_try" in
8019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020 *) ac_try_echo=$ac_try;;
8021esac
ec6a6fbe
AK
8022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8023$as_echo "$ac_try_echo") >&5
7a197a62 8024 (eval "$ac_compile") 2>conftest.er1
ad6254c5 8025 ac_status=$?
8a2fc586
AK
8026 grep -v '^ *+' conftest.er1 >conftest.err
8027 rm -f conftest.er1
8028 cat conftest.err >&5
ec6a6fbe 8029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8030 (exit $ac_status); } && {
8031 test -z "$ac_c_werror_flag" ||
8032 test ! -s conftest.err
8033 } && test -s conftest.$ac_objext; then
ad6254c5
AK
8034 ac_header_compiler=yes
8035else
ec6a6fbe 8036 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8037sed 's/^/| /' conftest.$ac_ext >&5
8038
7a197a62 8039 ac_header_compiler=no
ad6254c5 8040fi
7a197a62
AK
8041
8042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
8043{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8044$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
8045
8046# Is the header present?
ec6a6fbe
AK
8047{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8048$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 8049cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8050/* confdefs.h. */
8051_ACEOF
8052cat confdefs.h >>conftest.$ac_ext
8053cat >>conftest.$ac_ext <<_ACEOF
8054/* end confdefs.h. */
8055#include <$ac_header>
8056_ACEOF
7a197a62
AK
8057if { (ac_try="$ac_cpp conftest.$ac_ext"
8058case "(($ac_try" in
8059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8060 *) ac_try_echo=$ac_try;;
8061esac
ec6a6fbe
AK
8062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8063$as_echo "$ac_try_echo") >&5
7a197a62 8064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
8065 ac_status=$?
8066 grep -v '^ *+' conftest.er1 >conftest.err
8067 rm -f conftest.er1
8068 cat conftest.err >&5
ec6a6fbe 8069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8070 (exit $ac_status); } >/dev/null && {
8071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8072 test ! -s conftest.err
8073 }; then
ad6254c5
AK
8074 ac_header_preproc=yes
8075else
ec6a6fbe 8076 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8077sed 's/^/| /' conftest.$ac_ext >&5
8078
8079 ac_header_preproc=no
8080fi
7a197a62 8081
ad6254c5 8082rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
8083{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8084$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
8085
8086# So? What about this header?
8a2fc586
AK
8087case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8088 yes:no: )
ec6a6fbe
AK
8089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8090$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8092$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 8093 ac_header_preproc=yes
ad6254c5 8094 ;;
8a2fc586 8095 no:yes:* )
ec6a6fbe
AK
8096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8097$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8099$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8101$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8103$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8105$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8107$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 8108
ad6254c5
AK
8109 ;;
8110esac
ec6a6fbe
AK
8111{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8112$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8113if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8114 $as_echo_n "(cached) " >&6
ad6254c5 8115else
8a2fc586 8116 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 8117fi
ec6a6fbe
AK
8118ac_res=`eval 'as_val=${'$as_ac_Header'}
8119 $as_echo "$as_val"'`
8120 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8121$as_echo "$ac_res" >&6; }
ad6254c5
AK
8122
8123fi
ec6a6fbe
AK
8124as_val=`eval 'as_val=${'$as_ac_Header'}
8125 $as_echo "$as_val"'`
8126 if test "x$as_val" = x""yes; then
ad6254c5 8127 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8128#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8129_ACEOF
8130
8131fi
8132
8133done
8134
8135
8136for ac_func in getpagesize
8137do
ec6a6fbe
AK
8138as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8139{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8140$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8141if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8142 $as_echo_n "(cached) " >&6
ad6254c5
AK
8143else
8144 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8145/* confdefs.h. */
8146_ACEOF
8147cat confdefs.h >>conftest.$ac_ext
8148cat >>conftest.$ac_ext <<_ACEOF
8149/* end confdefs.h. */
8a2fc586
AK
8150/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8152#define $ac_func innocuous_$ac_func
8153
ad6254c5
AK
8154/* System header to define __stub macros and hopefully few prototypes,
8155 which can conflict with char $ac_func (); below.
8156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8157 <limits.h> exists even on freestanding compilers. */
8a2fc586 8158
ad6254c5
AK
8159#ifdef __STDC__
8160# include <limits.h>
8161#else
8162# include <assert.h>
8163#endif
8a2fc586
AK
8164
8165#undef $ac_func
8166
7a197a62
AK
8167/* Override any GCC internal prototype to avoid an error.
8168 Use char because int might match the return type of a GCC
8169 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8170#ifdef __cplusplus
8171extern "C"
ad6254c5 8172#endif
ad6254c5
AK
8173char $ac_func ();
8174/* The GNU C library defines this for functions which it implements
8175 to always fail with ENOSYS. Some functions are actually named
8176 something starting with __ and the normal name is an alias. */
7a197a62 8177#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8178choke me
ad6254c5
AK
8179#endif
8180
8181int
8182main ()
8183{
7a197a62 8184return $ac_func ();
ad6254c5
AK
8185 ;
8186 return 0;
8187}
8188_ACEOF
8189rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8190if { (ac_try="$ac_link"
8191case "(($ac_try" in
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8194esac
ec6a6fbe
AK
8195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8196$as_echo "$ac_try_echo") >&5
7a197a62 8197 (eval "$ac_link") 2>conftest.er1
ad6254c5 8198 ac_status=$?
8a2fc586
AK
8199 grep -v '^ *+' conftest.er1 >conftest.err
8200 rm -f conftest.er1
8201 cat conftest.err >&5
ec6a6fbe 8202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8203 (exit $ac_status); } && {
8204 test -z "$ac_c_werror_flag" ||
8205 test ! -s conftest.err
ec6a6fbe
AK
8206 } && test -s conftest$ac_exeext && {
8207 test "$cross_compiling" = yes ||
8208 $as_test_x conftest$ac_exeext
8209 }; then
ad6254c5
AK
8210 eval "$as_ac_var=yes"
8211else
ec6a6fbe 8212 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8213sed 's/^/| /' conftest.$ac_ext >&5
8214
7a197a62 8215 eval "$as_ac_var=no"
ad6254c5 8216fi
7a197a62 8217
ec6a6fbe 8218rm -rf conftest.dSYM
25fbec5b 8219rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8220 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8221fi
ec6a6fbe
AK
8222ac_res=`eval 'as_val=${'$as_ac_var'}
8223 $as_echo "$as_val"'`
8224 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8225$as_echo "$ac_res" >&6; }
8226as_val=`eval 'as_val=${'$as_ac_var'}
8227 $as_echo "$as_val"'`
8228 if test "x$as_val" = x""yes; then
ad6254c5 8229 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8230#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8231_ACEOF
8232
8233fi
8234done
8235
ec6a6fbe
AK
8236{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8237$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 8238if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 8239 $as_echo_n "(cached) " >&6
ad6254c5
AK
8240else
8241 if test "$cross_compiling" = yes; then
8242 ac_cv_func_mmap_fixed_mapped=no
8243else
8244 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8245/* confdefs.h. */
8246_ACEOF
8247cat confdefs.h >>conftest.$ac_ext
8248cat >>conftest.$ac_ext <<_ACEOF
8249/* end confdefs.h. */
8250$ac_includes_default
8251/* malloc might have been renamed as rpl_malloc. */
8252#undef malloc
8253
8254/* Thanks to Mike Haertel and Jim Avera for this test.
8255 Here is a matrix of mmap possibilities:
8256 mmap private not fixed
8257 mmap private fixed at somewhere currently unmapped
8258 mmap private fixed at somewhere already mapped
8259 mmap shared not fixed
8260 mmap shared fixed at somewhere currently unmapped
8261 mmap shared fixed at somewhere already mapped
8262 For private mappings, we should verify that changes cannot be read()
8263 back from the file, nor mmap's back from the file at a different
8264 address. (There have been systems where private was not correctly
8265 implemented like the infamous i386 svr4.0, and systems where the
8266 VM page cache was not coherent with the file system buffer cache
8267 like early versions of FreeBSD and possibly contemporary NetBSD.)
8268 For shared mappings, we should conversely verify that changes get
8269 propagated back to all the places they're supposed to be.
8270
8271 Grep wants private fixed already mapped.
8272 The main things grep needs to know about mmap are:
8273 * does it exist and is it safe to write into the mmap'd area
8274 * how to use it (BSD variants) */
8275
8276#include <fcntl.h>
8277#include <sys/mman.h>
8278
25fbec5b 8279#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
8280char *malloc ();
8281#endif
8282
8283/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 8284#ifndef HAVE_GETPAGESIZE
ad6254c5 8285/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 8286# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
8287# define HAVE_SYS_PARAM_H 1
8288# endif
8289
8290# ifdef _SC_PAGESIZE
8291# define getpagesize() sysconf(_SC_PAGESIZE)
8292# else /* no _SC_PAGESIZE */
25fbec5b 8293# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
8294# include <sys/param.h>
8295# ifdef EXEC_PAGESIZE
8296# define getpagesize() EXEC_PAGESIZE
8297# else /* no EXEC_PAGESIZE */
8298# ifdef NBPG
8299# define getpagesize() NBPG * CLSIZE
8300# ifndef CLSIZE
8301# define CLSIZE 1
8302# endif /* no CLSIZE */
8303# else /* no NBPG */
8304# ifdef NBPC
8305# define getpagesize() NBPC
8306# else /* no NBPC */
8307# ifdef PAGESIZE
8308# define getpagesize() PAGESIZE
8309# endif /* PAGESIZE */
8310# endif /* no NBPC */
8311# endif /* no NBPG */
8312# endif /* no EXEC_PAGESIZE */
8313# else /* no HAVE_SYS_PARAM_H */
8314# define getpagesize() 8192 /* punt totally */
8315# endif /* no HAVE_SYS_PARAM_H */
8316# endif /* no _SC_PAGESIZE */
8317
8318#endif /* no HAVE_GETPAGESIZE */
8319
8320int
8321main ()
8322{
8323 char *data, *data2, *data3;
8324 int i, pagesize;
8325 int fd;
8326
8327 pagesize = getpagesize ();
8328
8329 /* First, make a file with some known garbage in it. */
8330 data = (char *) malloc (pagesize);
8331 if (!data)
7a197a62 8332 return 1;
ad6254c5
AK
8333 for (i = 0; i < pagesize; ++i)
8334 *(data + i) = rand ();
8335 umask (0);
8336 fd = creat ("conftest.mmap", 0600);
8337 if (fd < 0)
7a197a62 8338 return 1;
ad6254c5 8339 if (write (fd, data, pagesize) != pagesize)
7a197a62 8340 return 1;
ad6254c5
AK
8341 close (fd);
8342
8343 /* Next, try to mmap the file at a fixed address which already has
8344 something else allocated at it. If we can, also make sure that
8345 we see the same garbage. */
8346 fd = open ("conftest.mmap", O_RDWR);
8347 if (fd < 0)
7a197a62 8348 return 1;
ad6254c5
AK
8349 data2 = (char *) malloc (2 * pagesize);
8350 if (!data2)
7a197a62
AK
8351 return 1;
8352 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 8353 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 8354 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 8355 return 1;
ad6254c5
AK
8356 for (i = 0; i < pagesize; ++i)
8357 if (*(data + i) != *(data2 + i))
7a197a62 8358 return 1;
ad6254c5
AK
8359
8360 /* Finally, make sure that changes to the mapped area do not
8361 percolate back to the file as seen by read(). (This is a bug on
8362 some variants of i386 svr4.0.) */
8363 for (i = 0; i < pagesize; ++i)
8364 *(data2 + i) = *(data2 + i) + 1;
8365 data3 = (char *) malloc (pagesize);
8366 if (!data3)
7a197a62 8367 return 1;
ad6254c5 8368 if (read (fd, data3, pagesize) != pagesize)
7a197a62 8369 return 1;
ad6254c5
AK
8370 for (i = 0; i < pagesize; ++i)
8371 if (*(data + i) != *(data3 + i))
7a197a62 8372 return 1;
ad6254c5 8373 close (fd);
7a197a62 8374 return 0;
ad6254c5
AK
8375}
8376_ACEOF
8377rm -f conftest$ac_exeext
7a197a62
AK
8378if { (ac_try="$ac_link"
8379case "(($ac_try" in
8380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381 *) ac_try_echo=$ac_try;;
8382esac
ec6a6fbe
AK
8383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8384$as_echo "$ac_try_echo") >&5
7a197a62 8385 (eval "$ac_link") 2>&5
ad6254c5 8386 ac_status=$?
ec6a6fbe 8387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8389 { (case "(($ac_try" in
8390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391 *) ac_try_echo=$ac_try;;
8392esac
ec6a6fbe
AK
8393eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8394$as_echo "$ac_try_echo") >&5
7a197a62 8395 (eval "$ac_try") 2>&5
ad6254c5 8396 ac_status=$?
ec6a6fbe 8397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8398 (exit $ac_status); }; }; then
8399 ac_cv_func_mmap_fixed_mapped=yes
8400else
ec6a6fbe
AK
8401 $as_echo "$as_me: program exited with status $ac_status" >&5
8402$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8403sed 's/^/| /' conftest.$ac_ext >&5
8404
8405( exit $ac_status )
8406ac_cv_func_mmap_fixed_mapped=no
8407fi
ec6a6fbe 8408rm -rf conftest.dSYM
7a197a62 8409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8410fi
7a197a62
AK
8411
8412
ad6254c5 8413fi
ec6a6fbe
AK
8414{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8415$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
8416if test $ac_cv_func_mmap_fixed_mapped = yes; then
8417
8418cat >>confdefs.h <<\_ACEOF
8419#define HAVE_MMAP 1
8420_ACEOF
8421
8422fi
8423rm -f conftest.mmap
8424
ec6a6fbe
AK
8425{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8426$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 8427if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 8428 $as_echo_n "(cached) " >&6
ad6254c5
AK
8429else
8430 if test "$cross_compiling" = yes; then
8431 ac_cv_func_stat_empty_string_bug=yes
8432else
8433 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8434/* confdefs.h. */
8435_ACEOF
8436cat confdefs.h >>conftest.$ac_ext
8437cat >>conftest.$ac_ext <<_ACEOF
8438/* end confdefs.h. */
8439$ac_includes_default
8440int
8441main ()
8442{
8443struct stat sbuf;
7a197a62 8444 return stat ("", &sbuf) == 0;
ad6254c5
AK
8445 ;
8446 return 0;
8447}
8448_ACEOF
8449rm -f conftest$ac_exeext
7a197a62
AK
8450if { (ac_try="$ac_link"
8451case "(($ac_try" in
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8454esac
ec6a6fbe
AK
8455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8456$as_echo "$ac_try_echo") >&5
7a197a62 8457 (eval "$ac_link") 2>&5
ad6254c5 8458 ac_status=$?
ec6a6fbe 8459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8460 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8461 { (case "(($ac_try" in
8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463 *) ac_try_echo=$ac_try;;
8464esac
ec6a6fbe
AK
8465eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8466$as_echo "$ac_try_echo") >&5
7a197a62 8467 (eval "$ac_try") 2>&5
ad6254c5 8468 ac_status=$?
ec6a6fbe 8469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8470 (exit $ac_status); }; }; then
7a197a62 8471 ac_cv_func_stat_empty_string_bug=no
ad6254c5 8472else
ec6a6fbe
AK
8473 $as_echo "$as_me: program exited with status $ac_status" >&5
8474$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8475sed 's/^/| /' conftest.$ac_ext >&5
8476
8477( exit $ac_status )
7a197a62 8478ac_cv_func_stat_empty_string_bug=yes
ad6254c5 8479fi
ec6a6fbe 8480rm -rf conftest.dSYM
7a197a62 8481rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8482fi
7a197a62
AK
8483
8484
ad6254c5 8485fi
ec6a6fbe
AK
8486{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8487$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 8488if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 8489 case " $LIBOBJS " in
8a2fc586 8490 *" stat.$ac_objext "* ) ;;
7a197a62
AK
8491 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8492 ;;
8a2fc586
AK
8493esac
8494
ad6254c5
AK
8495
8496cat >>confdefs.h <<_ACEOF
8497#define HAVE_STAT_EMPTY_STRING_BUG 1
8498_ACEOF
8499
8500fi
8501
ec6a6fbe
AK
8502{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8503$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 8504if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 8505 $as_echo_n "(cached) " >&6
ad6254c5
AK
8506else
8507 if test "$cross_compiling" = yes; then
8508 ac_cv_func_strtod=no
8509else
8510 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8511/* confdefs.h. */
8512_ACEOF
8513cat confdefs.h >>conftest.$ac_ext
8514cat >>conftest.$ac_ext <<_ACEOF
8515/* end confdefs.h. */
8516
7a197a62
AK
8517$ac_includes_default
8518#ifndef strtod
ad6254c5 8519double strtod ();
7a197a62 8520#endif
ad6254c5
AK
8521int
8522main()
8523{
8524 {
8525 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8526 char *string = " +69";
8527 char *term;
8528 double value;
8529 value = strtod (string, &term);
8530 if (value != 69 || term != (string + 4))
7a197a62 8531 return 1;
ad6254c5
AK
8532 }
8533
8534 {
8535 /* Under Solaris 2.4, strtod returns the wrong value for the
8536 terminating character under some conditions. */
8537 char *string = "NaN";
8538 char *term;
8539 strtod (string, &term);
8540 if (term != string && *(term - 1) == 0)
7a197a62 8541 return 1;
ad6254c5 8542 }
7a197a62 8543 return 0;
ad6254c5
AK
8544}
8545
8546_ACEOF
8547rm -f conftest$ac_exeext
7a197a62
AK
8548if { (ac_try="$ac_link"
8549case "(($ac_try" in
8550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8551 *) ac_try_echo=$ac_try;;
8552esac
ec6a6fbe
AK
8553eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8554$as_echo "$ac_try_echo") >&5
7a197a62 8555 (eval "$ac_link") 2>&5
ad6254c5 8556 ac_status=$?
ec6a6fbe 8557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8559 { (case "(($ac_try" in
8560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8561 *) ac_try_echo=$ac_try;;
8562esac
ec6a6fbe
AK
8563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8564$as_echo "$ac_try_echo") >&5
7a197a62 8565 (eval "$ac_try") 2>&5
ad6254c5 8566 ac_status=$?
ec6a6fbe 8567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8568 (exit $ac_status); }; }; then
8569 ac_cv_func_strtod=yes
8570else
ec6a6fbe
AK
8571 $as_echo "$as_me: program exited with status $ac_status" >&5
8572$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8573sed 's/^/| /' conftest.$ac_ext >&5
8574
8575( exit $ac_status )
8576ac_cv_func_strtod=no
8577fi
ec6a6fbe 8578rm -rf conftest.dSYM
7a197a62 8579rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8580fi
7a197a62
AK
8581
8582
ad6254c5 8583fi
ec6a6fbe
AK
8584{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8585$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 8586if test $ac_cv_func_strtod = no; then
7a197a62 8587 case " $LIBOBJS " in
8a2fc586 8588 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
8589 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8590 ;;
8a2fc586
AK
8591esac
8592
ec6a6fbe
AK
8593{ $as_echo "$as_me:$LINENO: checking for pow" >&5
8594$as_echo_n "checking for pow... " >&6; }
ad6254c5 8595if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 8596 $as_echo_n "(cached) " >&6
ad6254c5
AK
8597else
8598 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8599/* confdefs.h. */
8600_ACEOF
8601cat confdefs.h >>conftest.$ac_ext
8602cat >>conftest.$ac_ext <<_ACEOF
8603/* end confdefs.h. */
8a2fc586
AK
8604/* Define pow to an innocuous variant, in case <limits.h> declares pow.
8605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8606#define pow innocuous_pow
8607
ad6254c5
AK
8608/* System header to define __stub macros and hopefully few prototypes,
8609 which can conflict with char pow (); below.
8610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8611 <limits.h> exists even on freestanding compilers. */
8a2fc586 8612
ad6254c5
AK
8613#ifdef __STDC__
8614# include <limits.h>
8615#else
8616# include <assert.h>
8617#endif
8a2fc586
AK
8618
8619#undef pow
8620
7a197a62
AK
8621/* Override any GCC internal prototype to avoid an error.
8622 Use char because int might match the return type of a GCC
8623 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8624#ifdef __cplusplus
8625extern "C"
ad6254c5 8626#endif
ad6254c5
AK
8627char pow ();
8628/* The GNU C library defines this for functions which it implements
8629 to always fail with ENOSYS. Some functions are actually named
8630 something starting with __ and the normal name is an alias. */
7a197a62 8631#if defined __stub_pow || defined __stub___pow
ad6254c5 8632choke me
ad6254c5
AK
8633#endif
8634
8635int
8636main ()
8637{
7a197a62 8638return pow ();
ad6254c5
AK
8639 ;
8640 return 0;
8641}
8642_ACEOF
8643rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8644if { (ac_try="$ac_link"
8645case "(($ac_try" in
8646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8647 *) ac_try_echo=$ac_try;;
8648esac
ec6a6fbe
AK
8649eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8650$as_echo "$ac_try_echo") >&5
7a197a62 8651 (eval "$ac_link") 2>conftest.er1
ad6254c5 8652 ac_status=$?
8a2fc586
AK
8653 grep -v '^ *+' conftest.er1 >conftest.err
8654 rm -f conftest.er1
8655 cat conftest.err >&5
ec6a6fbe 8656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8657 (exit $ac_status); } && {
8658 test -z "$ac_c_werror_flag" ||
8659 test ! -s conftest.err
ec6a6fbe
AK
8660 } && test -s conftest$ac_exeext && {
8661 test "$cross_compiling" = yes ||
8662 $as_test_x conftest$ac_exeext
8663 }; then
ad6254c5
AK
8664 ac_cv_func_pow=yes
8665else
ec6a6fbe 8666 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8667sed 's/^/| /' conftest.$ac_ext >&5
8668
7a197a62 8669 ac_cv_func_pow=no
ad6254c5 8670fi
7a197a62 8671
ec6a6fbe 8672rm -rf conftest.dSYM
25fbec5b 8673rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8674 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8675fi
ec6a6fbe
AK
8676{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8677$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
8678
8679if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
8680 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8681$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 8682if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 8683 $as_echo_n "(cached) " >&6
ad6254c5
AK
8684else
8685 ac_check_lib_save_LIBS=$LIBS
8686LIBS="-lm $LIBS"
8687cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8688/* confdefs.h. */
8689_ACEOF
8690cat confdefs.h >>conftest.$ac_ext
8691cat >>conftest.$ac_ext <<_ACEOF
8692/* end confdefs.h. */
8693
7a197a62
AK
8694/* Override any GCC internal prototype to avoid an error.
8695 Use char because int might match the return type of a GCC
8696 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8697#ifdef __cplusplus
8698extern "C"
8699#endif
ad6254c5
AK
8700char pow ();
8701int
8702main ()
8703{
7a197a62 8704return pow ();
ad6254c5
AK
8705 ;
8706 return 0;
8707}
8708_ACEOF
8709rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8710if { (ac_try="$ac_link"
8711case "(($ac_try" in
8712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8713 *) ac_try_echo=$ac_try;;
8714esac
ec6a6fbe
AK
8715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8716$as_echo "$ac_try_echo") >&5
7a197a62 8717 (eval "$ac_link") 2>conftest.er1
ad6254c5 8718 ac_status=$?
8a2fc586
AK
8719 grep -v '^ *+' conftest.er1 >conftest.err
8720 rm -f conftest.er1
8721 cat conftest.err >&5
ec6a6fbe 8722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8723 (exit $ac_status); } && {
8724 test -z "$ac_c_werror_flag" ||
8725 test ! -s conftest.err
ec6a6fbe
AK
8726 } && test -s conftest$ac_exeext && {
8727 test "$cross_compiling" = yes ||
8728 $as_test_x conftest$ac_exeext
8729 }; then
ad6254c5
AK
8730 ac_cv_lib_m_pow=yes
8731else
ec6a6fbe 8732 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8733sed 's/^/| /' conftest.$ac_ext >&5
8734
7a197a62 8735 ac_cv_lib_m_pow=no
ad6254c5 8736fi
7a197a62 8737
ec6a6fbe 8738rm -rf conftest.dSYM
25fbec5b 8739rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8740 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8741LIBS=$ac_check_lib_save_LIBS
d0191583 8742fi
ec6a6fbe
AK
8743{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8744$as_echo "$ac_cv_lib_m_pow" >&6; }
8745if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
8746 POW_LIB=-lm
8747else
ec6a6fbe
AK
8748 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8749$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 8750fi
72b2cb61 8751
d0191583 8752fi
72b2cb61 8753
ad6254c5
AK
8754fi
8755
ad6254c5 8756
d0191583
JM
8757for ac_func in vprintf
8758do
ec6a6fbe
AK
8759as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8760{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8761$as_echo_n "checking for $ac_func... " >&6; }
d0191583 8762if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8763 $as_echo_n "(cached) " >&6
ad6254c5 8764else
d0191583
JM
8765 cat >conftest.$ac_ext <<_ACEOF
8766/* confdefs.h. */
8767_ACEOF
8768cat confdefs.h >>conftest.$ac_ext
8769cat >>conftest.$ac_ext <<_ACEOF
8770/* end confdefs.h. */
8771/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8773#define $ac_func innocuous_$ac_func
7a197a62 8774
d0191583
JM
8775/* System header to define __stub macros and hopefully few prototypes,
8776 which can conflict with char $ac_func (); below.
8777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8778 <limits.h> exists even on freestanding compilers. */
ad6254c5 8779
d0191583
JM
8780#ifdef __STDC__
8781# include <limits.h>
8782#else
8783# include <assert.h>
8784#endif
ad6254c5 8785
d0191583 8786#undef $ac_func
72b2cb61 8787
d0191583
JM
8788/* Override any GCC internal prototype to avoid an error.
8789 Use char because int might match the return type of a GCC
8790 builtin and then its argument prototype would still apply. */
8791#ifdef __cplusplus
8792extern "C"
8793#endif
8794char $ac_func ();
8795/* The GNU C library defines this for functions which it implements
8796 to always fail with ENOSYS. Some functions are actually named
8797 something starting with __ and the normal name is an alias. */
8798#if defined __stub_$ac_func || defined __stub___$ac_func
8799choke me
8800#endif
8801
8802int
8803main ()
8804{
8805return $ac_func ();
8806 ;
8807 return 0;
8808}
72b2cb61 8809_ACEOF
d0191583
JM
8810rm -f conftest.$ac_objext conftest$ac_exeext
8811if { (ac_try="$ac_link"
8812case "(($ac_try" in
8813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8814 *) ac_try_echo=$ac_try;;
8815esac
ec6a6fbe
AK
8816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8817$as_echo "$ac_try_echo") >&5
d0191583
JM
8818 (eval "$ac_link") 2>conftest.er1
8819 ac_status=$?
8820 grep -v '^ *+' conftest.er1 >conftest.err
8821 rm -f conftest.er1
8822 cat conftest.err >&5
ec6a6fbe 8823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8824 (exit $ac_status); } && {
8825 test -z "$ac_c_werror_flag" ||
8826 test ! -s conftest.err
ec6a6fbe
AK
8827 } && test -s conftest$ac_exeext && {
8828 test "$cross_compiling" = yes ||
8829 $as_test_x conftest$ac_exeext
8830 }; then
d0191583
JM
8831 eval "$as_ac_var=yes"
8832else
ec6a6fbe 8833 $as_echo "$as_me: failed program was:" >&5
d0191583 8834sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8835
d0191583 8836 eval "$as_ac_var=no"
ad6254c5
AK
8837fi
8838
ec6a6fbe 8839rm -rf conftest.dSYM
d0191583
JM
8840rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8841 conftest$ac_exeext conftest.$ac_ext
7a197a62 8842fi
ec6a6fbe
AK
8843ac_res=`eval 'as_val=${'$as_ac_var'}
8844 $as_echo "$as_val"'`
8845 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8846$as_echo "$ac_res" >&6; }
8847as_val=`eval 'as_val=${'$as_ac_var'}
8848 $as_echo "$as_val"'`
8849 if test "x$as_val" = x""yes; then
d0191583 8850 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8851#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 8852_ACEOF
7a197a62 8853
ec6a6fbe
AK
8854{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8855$as_echo_n "checking for _doprnt... " >&6; }
d0191583 8856if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 8857 $as_echo_n "(cached) " >&6
ad6254c5 8858else
d0191583
JM
8859 cat >conftest.$ac_ext <<_ACEOF
8860/* confdefs.h. */
8861_ACEOF
8862cat confdefs.h >>conftest.$ac_ext
8863cat >>conftest.$ac_ext <<_ACEOF
8864/* end confdefs.h. */
8865/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8867#define _doprnt innocuous__doprnt
7a197a62 8868
d0191583
JM
8869/* System header to define __stub macros and hopefully few prototypes,
8870 which can conflict with char _doprnt (); below.
8871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8872 <limits.h> exists even on freestanding compilers. */
ad6254c5 8873
d0191583
JM
8874#ifdef __STDC__
8875# include <limits.h>
8876#else
8877# include <assert.h>
8878#endif
72b2cb61 8879
d0191583
JM
8880#undef _doprnt
8881
8882/* Override any GCC internal prototype to avoid an error.
8883 Use char because int might match the return type of a GCC
8884 builtin and then its argument prototype would still apply. */
8885#ifdef __cplusplus
8886extern "C"
8887#endif
8888char _doprnt ();
8889/* The GNU C library defines this for functions which it implements
8890 to always fail with ENOSYS. Some functions are actually named
8891 something starting with __ and the normal name is an alias. */
8892#if defined __stub__doprnt || defined __stub____doprnt
8893choke me
8894#endif
8895
8896int
8897main ()
8898{
8899return _doprnt ();
8900 ;
8901 return 0;
8902}
72b2cb61 8903_ACEOF
d0191583
JM
8904rm -f conftest.$ac_objext conftest$ac_exeext
8905if { (ac_try="$ac_link"
8906case "(($ac_try" in
8907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8908 *) ac_try_echo=$ac_try;;
8909esac
ec6a6fbe
AK
8910eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8911$as_echo "$ac_try_echo") >&5
d0191583
JM
8912 (eval "$ac_link") 2>conftest.er1
8913 ac_status=$?
8914 grep -v '^ *+' conftest.er1 >conftest.err
8915 rm -f conftest.er1
8916 cat conftest.err >&5
ec6a6fbe 8917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8918 (exit $ac_status); } && {
8919 test -z "$ac_c_werror_flag" ||
8920 test ! -s conftest.err
ec6a6fbe
AK
8921 } && test -s conftest$ac_exeext && {
8922 test "$cross_compiling" = yes ||
8923 $as_test_x conftest$ac_exeext
8924 }; then
d0191583
JM
8925 ac_cv_func__doprnt=yes
8926else
ec6a6fbe 8927 $as_echo "$as_me: failed program was:" >&5
d0191583 8928sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8929
d0191583 8930 ac_cv_func__doprnt=no
ad6254c5
AK
8931fi
8932
ec6a6fbe 8933rm -rf conftest.dSYM
d0191583
JM
8934rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8935 conftest$ac_exeext conftest.$ac_ext
7a197a62 8936fi
ec6a6fbe
AK
8937{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8938$as_echo "$ac_cv_func__doprnt" >&6; }
8939if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 8940
d0191583
JM
8941cat >>confdefs.h <<\_ACEOF
8942#define HAVE_DOPRNT 1
8943_ACEOF
ad6254c5 8944
7a197a62
AK
8945fi
8946
d0191583
JM
8947fi
8948done
8b1a3214 8949
ad6254c5 8950
7a197a62 8951
9c961554 8952################################################################################
ec6a6fbe
AK
8953{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
8954$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
8955# Check whether --enable-static_link was given.
8956if test "${enable_static_link+set}" = set; then
8957 enableval=$enable_static_link; STATIC_LINK=$enableval
8958else
8959 STATIC_LINK=no
8960fi
8961
ec6a6fbe
AK
8962{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
8963$as_echo "$STATIC_LINK" >&6; }
9c961554 8964
d0191583 8965################################################################################
ad6254c5 8966
ad6254c5
AK
8967
8968################################################################################
ec6a6fbe
AK
8969{ $as_echo "$as_me:$LINENO: checking file owner" >&5
8970$as_echo_n "checking file owner... " >&6; }
d0191583
JM
8971OWNER="root"
8972
8973
8974# Check whether --with-user was given.
8975if test "${with_user+set}" = set; then
8976 withval=$with_user; OWNER="$withval"
7a197a62
AK
8977fi
8978
ec6a6fbe
AK
8979{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
8980$as_echo "$OWNER" >&6; }
ad6254c5 8981
d0191583
JM
8982if test x$OWNER != x; then
8983 OWNER="-o $OWNER"
ad6254c5
AK
8984fi
8985
8986################################################################################
ec6a6fbe
AK
8987{ $as_echo "$as_me:$LINENO: checking group owner" >&5
8988$as_echo_n "checking group owner... " >&6; }
d0191583 8989GROUP="root"
ad6254c5 8990
d0191583
JM
8991# Check whether --with-group was given.
8992if test "${with_group+set}" = set; then
8993 withval=$with_group; GROUP="$withval"
7a197a62
AK
8994fi
8995
ec6a6fbe
AK
8996{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
8997$as_echo "$GROUP" >&6; }
d0191583
JM
8998
8999if test x$GROUP != x; then
9000 GROUP="-g $GROUP"
9001fi
ad6254c5 9002
24bbc4d7 9003################################################################################
ec6a6fbe
AK
9004{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
9005$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
9006
9007
9008# Check whether --with-device-uid was given.
9009if test "${with_device_uid+set}" = set; then
9010 withval=$with_device_uid; DM_DEVICE_UID="$withval"
9011else
9012 DM_DEVICE_UID="0"
9013fi
9014
ec6a6fbe
AK
9015{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
9016$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
9017
9018################################################################################
ec6a6fbe
AK
9019{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
9020$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
9021
9022
9023# Check whether --with-device-gid was given.
9024if test "${with_device_gid+set}" = set; then
9025 withval=$with_device_gid; DM_DEVICE_GID="$withval"
9026else
9027 DM_DEVICE_GID="0"
9028fi
9029
ec6a6fbe
AK
9030{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
9031$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 9032
93bd259b 9033################################################################################
ec6a6fbe
AK
9034{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
9035$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
9036
9037
9038# Check whether --with-device-mode was given.
9039if test "${with_device_mode+set}" = set; then
9040 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
9041else
9042 DM_DEVICE_MODE="0600"
9043fi
9044
ec6a6fbe
AK
9045{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
9046$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 9047
ad6254c5 9048################################################################################
ec6a6fbe
AK
9049{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
9050$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
9051# Check whether --enable-lvm1_fallback was given.
9052if test "${enable_lvm1_fallback+set}" = set; then
9053 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
9054else
9055 LVM1_FALLBACK=no
7a197a62
AK
9056fi
9057
ec6a6fbe
AK
9058{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
9059$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 9060
d0191583 9061if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
9062
9063cat >>confdefs.h <<\_ACEOF
d0191583 9064#define LVM1_FALLBACK 1
72b2cb61
AK
9065_ACEOF
9066
ad6254c5
AK
9067fi
9068
9069################################################################################
ec6a6fbe
AK
9070{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9071$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
9072
9073# Check whether --with-lvm1 was given.
9074if test "${with_lvm1+set}" = set; then
9075 withval=$with_lvm1; LVM1="$withval"
9076else
9077 LVM1="internal"
7a197a62
AK
9078fi
9079
ec6a6fbe
AK
9080{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9081$as_echo "$LVM1" >&6; }
ad6254c5 9082
d0191583 9083if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 9084 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 9085" >&5
ec6a6fbe 9086$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
9087" >&2;}
9088 { (exit 1); exit 1; }; }
9089fi;
9090
9091if test x$LVM1 = xinternal; then
72b2cb61
AK
9092
9093cat >>confdefs.h <<\_ACEOF
d0191583 9094#define LVM1_INTERNAL 1
72b2cb61
AK
9095_ACEOF
9096
ad6254c5
AK
9097fi
9098
9099################################################################################
ec6a6fbe
AK
9100{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9101$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
9102
9103# Check whether --with-pool was given.
9104if test "${with_pool+set}" = set; then
9105 withval=$with_pool; POOL="$withval"
ad6254c5 9106else
d0191583 9107 POOL="internal"
7a197a62
AK
9108fi
9109
ec6a6fbe
AK
9110{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
9111$as_echo "$POOL" >&6; }
ad6254c5 9112
d0191583 9113if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 9114 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 9115" >&5
ec6a6fbe 9116$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
9117" >&2;}
9118 { (exit 1); exit 1; }; }
9119fi;
7a197a62 9120
d0191583
JM
9121if test x$POOL = xinternal; then
9122
9123cat >>confdefs.h <<\_ACEOF
9124#define POOL_INTERNAL 1
9125_ACEOF
9126
9127fi
ad6254c5 9128
06f62ad1 9129################################################################################
ec6a6fbe
AK
9130{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9131$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
9132
9133# Check whether --with-cluster was given.
9134if test "${with_cluster+set}" = set; then
9135 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
9136fi
9137
ec6a6fbe
AK
9138{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9139$as_echo "$CLUSTER" >&6; }
06f62ad1 9140
d0191583 9141if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 9142 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 9143" >&5
ec6a6fbe 9144$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
9145" >&2;}
9146 { (exit 1); exit 1; }; }
d0191583 9147fi;
06f62ad1 9148
d0191583 9149if test x$CLUSTER = xinternal; then
72b2cb61
AK
9150
9151cat >>confdefs.h <<\_ACEOF
d0191583 9152#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
9153_ACEOF
9154
15d91f5a 9155fi
ad6254c5
AK
9156
9157################################################################################
ec6a6fbe
AK
9158{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9159$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 9160
d0191583
JM
9161# Check whether --with-snapshots was given.
9162if test "${with_snapshots+set}" = set; then
9163 withval=$with_snapshots; SNAPSHOTS="$withval"
9164else
9165 SNAPSHOTS="internal"
ad6254c5
AK
9166fi
9167
ec6a6fbe
AK
9168{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9169$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 9170
d0191583 9171if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 9172 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 9173" >&5
ec6a6fbe 9174$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
9175" >&2;}
9176 { (exit 1); exit 1; }; }
9177fi;
9178
9179if test x$SNAPSHOTS = xinternal; then
9180
9181cat >>confdefs.h <<\_ACEOF
9182#define SNAPSHOT_INTERNAL 1
9183_ACEOF
ad6254c5 9184
ad6254c5 9185fi
7a197a62 9186
d0191583 9187################################################################################
ec6a6fbe
AK
9188{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9189$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
9190
9191# Check whether --with-mirrors was given.
9192if test "${with_mirrors+set}" = set; then
9193 withval=$with_mirrors; MIRRORS="$withval"
9194else
9195 MIRRORS="internal"
ad6254c5 9196fi
ad6254c5 9197
ec6a6fbe
AK
9198{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9199$as_echo "$MIRRORS" >&6; }
ad6254c5 9200
d0191583 9201if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 9202 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 9203" >&5
ec6a6fbe 9204$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
9205" >&2;}
9206 { (exit 1); exit 1; }; }
9207fi;
ad6254c5 9208
d0191583 9209if test x$MIRRORS = xinternal; then
ad6254c5 9210
d0191583
JM
9211cat >>confdefs.h <<\_ACEOF
9212#define MIRRORED_INTERNAL 1
ad6254c5 9213_ACEOF
8a2fc586 9214
d0191583 9215fi
8a2fc586 9216
d0191583 9217################################################################################
ec6a6fbe
AK
9218{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9219$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
9220# Check whether --enable-readline was given.
9221if test "${enable_readline+set}" = set; then
9222 enableval=$enable_readline; READLINE=$enableval
9223else
06e459df 9224 READLINE=maybe
d0191583 9225fi
8a2fc586 9226
ec6a6fbe
AK
9227{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9228$as_echo "$READLINE" >&6; }
8a2fc586 9229
d0191583 9230################################################################################
ec6a6fbe
AK
9231{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9232$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
9233# Check whether --enable-realtime was given.
9234if test "${enable_realtime+set}" = set; then
9235 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 9236fi
ad6254c5 9237
ec6a6fbe
AK
9238{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9239$as_echo "$REALTIME" >&6; }
d0191583
JM
9240
9241################################################################################
ec6a6fbe
AK
9242{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9243$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
d0191583
JM
9244
9245# Check whether --with-clvmd was given.
9246if test "${with_clvmd+set}" = set; then
9247 withval=$with_clvmd; CLVMD="$withval"
ad6254c5 9248else
d0191583
JM
9249 CLVMD="none"
9250fi
8a2fc586 9251
d0191583
JM
9252if test x$CLVMD = xyes; then
9253 CLVMD=all
9254fi
ec6a6fbe
AK
9255{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9256$as_echo "$CLVMD" >&6; }
8a2fc586 9257
d0191583
JM
9258if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9259 CLUSTER=internal
9260fi
8a2fc586 9261
a946372e
AK
9262if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
9263 BUILDGULM=yes
9264fi
9265if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
9266 BUILDCOROSYNC=yes
9267fi
9268if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
9269 BUILDOPENAIS=yes
9270fi
9271if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
9272 BUILDCMAN=yes
9273fi
9274
9275if test x$BUILDGULM = xyes; then
9276 if test x$BUILDCOROSYNC = xyes || \
9277 test x$BUILDOPENAIS = xyes; then
9278 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
9279$as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
9280 { (exit 1); exit 1; }; }
9281 fi
9282fi
9283
9284if test x$CLVMD != xnone; then
e2997b73
AK
9285
9286
9287if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9288 if test -n "$ac_tool_prefix"; then
9289 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9290set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9291{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9292$as_echo_n "checking for $ac_word... " >&6; }
9293if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9294 $as_echo_n "(cached) " >&6
9295else
9296 case $PKG_CONFIG in
9297 [\\/]* | ?:[\\/]*)
9298 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9299 ;;
9300 *)
9301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9302for as_dir in $PATH
9303do
9304 IFS=$as_save_IFS
9305 test -z "$as_dir" && as_dir=.
9306 for ac_exec_ext in '' $ac_executable_extensions; do
9307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9308 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9309 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9310 break 2
9311 fi
9312done
9313done
9314IFS=$as_save_IFS
9315
9316 ;;
9317esac
9318fi
9319PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9320if test -n "$PKG_CONFIG"; then
9321 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9322$as_echo "$PKG_CONFIG" >&6; }
9323else
9324 { $as_echo "$as_me:$LINENO: result: no" >&5
9325$as_echo "no" >&6; }
9326fi
9327
9328
9329fi
9330if test -z "$ac_cv_path_PKG_CONFIG"; then
9331 ac_pt_PKG_CONFIG=$PKG_CONFIG
9332 # Extract the first word of "pkg-config", so it can be a program name with args.
9333set dummy pkg-config; ac_word=$2
9334{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9335$as_echo_n "checking for $ac_word... " >&6; }
9336if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9337 $as_echo_n "(cached) " >&6
9338else
9339 case $ac_pt_PKG_CONFIG in
9340 [\\/]* | ?:[\\/]*)
9341 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9342 ;;
9343 *)
9344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9345for as_dir in $PATH
9346do
9347 IFS=$as_save_IFS
9348 test -z "$as_dir" && as_dir=.
9349 for ac_exec_ext in '' $ac_executable_extensions; do
9350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9351 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9352 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9353 break 2
9354 fi
9355done
9356done
9357IFS=$as_save_IFS
9358
9359 ;;
9360esac
9361fi
9362ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9363if test -n "$ac_pt_PKG_CONFIG"; then
9364 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9365$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9366else
9367 { $as_echo "$as_me:$LINENO: result: no" >&5
9368$as_echo "no" >&6; }
9369fi
9370
9371 if test "x$ac_pt_PKG_CONFIG" = x; then
9372 PKG_CONFIG=""
9373 else
9374 case $cross_compiling:$ac_tool_warned in
9375yes:)
9376{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9378ac_tool_warned=yes ;;
9379esac
9380 PKG_CONFIG=$ac_pt_PKG_CONFIG
9381 fi
9382else
9383 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9384fi
9385
9386fi
9387if test -n "$PKG_CONFIG"; then
9388 _pkg_min_version=0.9.0
9389 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9390$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9391 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9392 { $as_echo "$as_me:$LINENO: result: yes" >&5
9393$as_echo "yes" >&6; }
9394 else
9395 { $as_echo "$as_me:$LINENO: result: no" >&5
9396$as_echo "no" >&6; }
9397 PKG_CONFIG=""
9398 fi
9399
9400fi
9401
9402pkg_failed=no
a946372e
AK
9403{ $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
9404$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
e2997b73 9405
a946372e
AK
9406if test -n "$PKGCONFIGINIT_CFLAGS"; then
9407 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
e2997b73
AK
9408 elif test -n "$PKG_CONFIG"; then
9409 if test -n "$PKG_CONFIG" && \
a946372e
AK
9410 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9411 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
9412 ac_status=$?
9413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); }; then
a946372e 9415 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
e2997b73
AK
9416else
9417 pkg_failed=yes
9418fi
9419 else
9420 pkg_failed=untried
9421fi
a946372e
AK
9422if test -n "$PKGCONFIGINIT_LIBS"; then
9423 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
e2997b73
AK
9424 elif test -n "$PKG_CONFIG"; then
9425 if test -n "$PKG_CONFIG" && \
a946372e
AK
9426 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9427 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
9428 ac_status=$?
9429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); }; then
a946372e 9431 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
e2997b73
AK
9432else
9433 pkg_failed=yes
9434fi
9435 else
9436 pkg_failed=untried
9437fi
9438
9439
9440
9441if test $pkg_failed = yes; then
9442
9443if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9444 _pkg_short_errors_supported=yes
9445else
9446 _pkg_short_errors_supported=no
9447fi
9448 if test $_pkg_short_errors_supported = yes; then
a946372e 9449 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
e2997b73 9450 else
a946372e 9451 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
e2997b73
AK
9452 fi
9453 # Put the nasty error message in config.log where it belongs
a946372e 9454 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
e2997b73
AK
9455
9456 { $as_echo "$as_me:$LINENO: result: no" >&5
9457$as_echo "no" >&6; }
a946372e
AK
9458 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9459$as_echo "pkg-config initialized" >&6; }
e2997b73 9460elif test $pkg_failed = untried; then
a946372e
AK
9461 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9462$as_echo "pkg-config initialized" >&6; }
e2997b73 9463else
a946372e
AK
9464 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
9465 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
e2997b73
AK
9466 { $as_echo "$as_me:$LINENO: result: yes" >&5
9467$as_echo "yes" >&6; }
9468 :
9469fi
a946372e 9470fi
e2997b73 9471
a946372e
AK
9472soft_bailout() {
9473 NOTFOUND=1
9474}
e2997b73 9475
a946372e
AK
9476hard_bailout() {
9477 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
9478$as_echo "$as_me: error: bailing out" >&2;}
9479 { (exit 1); exit 1; }; }
9480}
9481
9482if test x$CLVMD = xall; then
9483 bailout=soft_bailout
9484 BUILDGULM=yes
9485 BUILDCMAN=yes
9486 BUILDCOROSYNC=yes
9487 BUILDOPENAIS=yes
e2997b73 9488else
a946372e 9489 bailout=hard_bailout
e2997b73 9490fi
a946372e
AK
9491
9492check_lib_no_libs() {
9493 lib_no_libs_arg1=$1
9494 shift
9495 lib_no_libs_arg2=$1
9496 shift
9497 lib_no_libs_args=$@
9498
9499as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
9500{ $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
9501$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
9502if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9503 $as_echo_n "(cached) " >&6
9504else
9505 ac_check_lib_save_LIBS=$LIBS
9506LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
9507cat >conftest.$ac_ext <<_ACEOF
9508/* confdefs.h. */
9509_ACEOF
9510cat confdefs.h >>conftest.$ac_ext
9511cat >>conftest.$ac_ext <<_ACEOF
9512/* end confdefs.h. */
9513
9514/* Override any GCC internal prototype to avoid an error.
9515 Use char because int might match the return type of a GCC
9516 builtin and then its argument prototype would still apply. */
9517#ifdef __cplusplus
9518extern "C"
9519#endif
9520char $lib_no_libs_arg2 ();
9521int
9522main ()
9523{
9524return $lib_no_libs_arg2 ();
9525 ;
9526 return 0;
9527}
9528_ACEOF
9529rm -f conftest.$ac_objext conftest$ac_exeext
9530if { (ac_try="$ac_link"
9531case "(($ac_try" in
9532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533 *) ac_try_echo=$ac_try;;
9534esac
9535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9536$as_echo "$ac_try_echo") >&5
9537 (eval "$ac_link") 2>conftest.er1
e2997b73 9538 ac_status=$?
a946372e
AK
9539 grep -v '^ *+' conftest.er1 >conftest.err
9540 rm -f conftest.er1
9541 cat conftest.err >&5
e2997b73 9542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a946372e
AK
9543 (exit $ac_status); } && {
9544 test -z "$ac_c_werror_flag" ||
9545 test ! -s conftest.err
9546 } && test -s conftest$ac_exeext && {
9547 test "$cross_compiling" = yes ||
9548 $as_test_x conftest$ac_exeext
9549 }; then
9550 eval "$as_ac_Lib=yes"
e2997b73 9551else
a946372e
AK
9552 $as_echo "$as_me: failed program was:" >&5
9553sed 's/^/| /' conftest.$ac_ext >&5
e2997b73 9554
a946372e
AK
9555 eval "$as_ac_Lib=no"
9556fi
e2997b73 9557
a946372e
AK
9558rm -rf conftest.dSYM
9559rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9560 conftest$ac_exeext conftest.$ac_ext
9561LIBS=$ac_check_lib_save_LIBS
9562fi
9563ac_res=`eval 'as_val=${'$as_ac_Lib'}
9564 $as_echo "$as_val"'`
9565 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9566$as_echo "$ac_res" >&6; }
9567as_val=`eval 'as_val=${'$as_ac_Lib'}
9568 $as_echo "$as_val"'`
9569 if test "x$as_val" = x""yes; then
9570 cat >>confdefs.h <<_ACEOF
9571#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
9572_ACEOF
e2997b73 9573
a946372e 9574 LIBS="-l$lib_no_libs_arg1 $LIBS"
e2997b73 9575
e2997b73 9576else
a946372e 9577 $bailout
e2997b73 9578fi
e2997b73 9579
a946372e
AK
9580 LIBS=$ac_check_lib_save_LIBS
9581}
9582
9583if test x$BUILDGULM = xyes; then
e2997b73
AK
9584
9585pkg_failed=no
a946372e
AK
9586{ $as_echo "$as_me:$LINENO: checking for CCS" >&5
9587$as_echo_n "checking for CCS... " >&6; }
e2997b73 9588
a946372e
AK
9589if test -n "$CCS_CFLAGS"; then
9590 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
e2997b73
AK
9591 elif test -n "$PKG_CONFIG"; then
9592 if test -n "$PKG_CONFIG" && \
a946372e
AK
9593 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9594 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
9595 ac_status=$?
9596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; then
a946372e 9598 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
e2997b73
AK
9599else
9600 pkg_failed=yes
9601fi
9602 else
9603 pkg_failed=untried
9604fi
a946372e
AK
9605if test -n "$CCS_LIBS"; then
9606 pkg_cv_CCS_LIBS="$CCS_LIBS"
e2997b73
AK
9607 elif test -n "$PKG_CONFIG"; then
9608 if test -n "$PKG_CONFIG" && \
a946372e
AK
9609 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9610 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
9611 ac_status=$?
9612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); }; then
a946372e 9614 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
e2997b73
AK
9615else
9616 pkg_failed=yes
9617fi
9618 else
9619 pkg_failed=untried
9620fi
9621
9622
9623
9624if test $pkg_failed = yes; then
9625
9626if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9627 _pkg_short_errors_supported=yes
9628else
9629 _pkg_short_errors_supported=no
9630fi
9631 if test $_pkg_short_errors_supported = yes; then
a946372e 9632 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
e2997b73 9633 else
a946372e 9634 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
e2997b73
AK
9635 fi
9636 # Put the nasty error message in config.log where it belongs
a946372e 9637 echo "$CCS_PKG_ERRORS" >&5
e2997b73
AK
9638
9639 { $as_echo "$as_me:$LINENO: result: no" >&5
9640$as_echo "no" >&6; }
a946372e 9641 NOTFOUND=0
e2997b73 9642
a946372e
AK
9643for ac_header in ccs.h
9644do
9645as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9647 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9648$as_echo_n "checking for $ac_header... " >&6; }
9649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9650 $as_echo_n "(cached) " >&6
d0191583 9651fi
a946372e
AK
9652ac_res=`eval 'as_val=${'$as_ac_Header'}
9653 $as_echo "$as_val"'`
9654 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9655$as_echo "$ac_res" >&6; }
fc54be10 9656else
a946372e
AK
9657 # Is the header compilable?
9658{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9659$as_echo_n "checking $ac_header usability... " >&6; }
9660cat >conftest.$ac_ext <<_ACEOF
9661/* confdefs.h. */
9662_ACEOF
9663cat confdefs.h >>conftest.$ac_ext
9664cat >>conftest.$ac_ext <<_ACEOF
9665/* end confdefs.h. */
9666$ac_includes_default
9667#include <$ac_header>
9668_ACEOF
9669rm -f conftest.$ac_objext
9670if { (ac_try="$ac_compile"
9671case "(($ac_try" in
9672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673 *) ac_try_echo=$ac_try;;
9674esac
9675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9676$as_echo "$ac_try_echo") >&5
9677 (eval "$ac_compile") 2>conftest.er1
9678 ac_status=$?
9679 grep -v '^ *+' conftest.er1 >conftest.err
9680 rm -f conftest.er1
9681 cat conftest.err >&5
9682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); } && {
9684 test -z "$ac_c_werror_flag" ||
9685 test ! -s conftest.err
9686 } && test -s conftest.$ac_objext; then
9687 ac_header_compiler=yes
9688else
9689 $as_echo "$as_me: failed program was:" >&5
9690sed 's/^/| /' conftest.$ac_ext >&5
d0191583 9691
a946372e 9692 ac_header_compiler=no
d0191583
JM
9693fi
9694
a946372e
AK
9695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9696{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9697$as_echo "$ac_header_compiler" >&6; }
fddafd51 9698
a946372e
AK
9699# Is the header present?
9700{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9701$as_echo_n "checking $ac_header presence... " >&6; }
9702cat >conftest.$ac_ext <<_ACEOF
9703/* confdefs.h. */
9704_ACEOF
9705cat confdefs.h >>conftest.$ac_ext
9706cat >>conftest.$ac_ext <<_ACEOF
9707/* end confdefs.h. */
9708#include <$ac_header>
9709_ACEOF
9710if { (ac_try="$ac_cpp conftest.$ac_ext"
9711case "(($ac_try" in
9712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9713 *) ac_try_echo=$ac_try;;
9714esac
9715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9716$as_echo "$ac_try_echo") >&5
9717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9718 ac_status=$?
9719 grep -v '^ *+' conftest.er1 >conftest.err
9720 rm -f conftest.er1
9721 cat conftest.err >&5
9722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } >/dev/null && {
9724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9725 test ! -s conftest.err
9726 }; then
9727 ac_header_preproc=yes
9728else
9729 $as_echo "$as_me: failed program was:" >&5
9730sed 's/^/| /' conftest.$ac_ext >&5
9731
9732 ac_header_preproc=no
9733fi
9734
9735rm -f conftest.err conftest.$ac_ext
9736{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9737$as_echo "$ac_header_preproc" >&6; }
9738
9739# So? What about this header?
9740case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9741 yes:no: )
9742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9743$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9745$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9746 ac_header_preproc=yes
9747 ;;
9748 no:yes:* )
9749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9750$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9752$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9754$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9756$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9758$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9760$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9761
9762 ;;
9763esac
9764{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9765$as_echo_n "checking for $ac_header... " >&6; }
9766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9767 $as_echo_n "(cached) " >&6
9768else
9769 eval "$as_ac_Header=\$ac_header_preproc"
9770fi
9771ac_res=`eval 'as_val=${'$as_ac_Header'}
9772 $as_echo "$as_val"'`
9773 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9774$as_echo "$ac_res" >&6; }
9775
9776fi
9777as_val=`eval 'as_val=${'$as_ac_Header'}
9778 $as_echo "$as_val"'`
9779 if test "x$as_val" = x""yes; then
9780 cat >>confdefs.h <<_ACEOF
9781#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9782_ACEOF
9783
9784else
9785 $bailout
9786fi
9787
9788done
9789
9790 check_lib_no_libs ccs ccs_connect
9791 if test $NOTFOUND = 0; then
9792 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9793$as_echo "no pkg for libccs, using -lccs" >&6; }
9794 CCS_LIBS="-lccs"
9795 HAVE_CCS=yes
9796 fi
9797elif test $pkg_failed = untried; then
9798 NOTFOUND=0
9799
9800for ac_header in ccs.h
9801do
9802as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9803if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9804 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9805$as_echo_n "checking for $ac_header... " >&6; }
9806if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9807 $as_echo_n "(cached) " >&6
9808fi
9809ac_res=`eval 'as_val=${'$as_ac_Header'}
9810 $as_echo "$as_val"'`
9811 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9812$as_echo "$ac_res" >&6; }
9813else
9814 # Is the header compilable?
9815{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9816$as_echo_n "checking $ac_header usability... " >&6; }
9817cat >conftest.$ac_ext <<_ACEOF
9818/* confdefs.h. */
9819_ACEOF
9820cat confdefs.h >>conftest.$ac_ext
9821cat >>conftest.$ac_ext <<_ACEOF
9822/* end confdefs.h. */
9823$ac_includes_default
9824#include <$ac_header>
9825_ACEOF
9826rm -f conftest.$ac_objext
9827if { (ac_try="$ac_compile"
9828case "(($ac_try" in
9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9831esac
9832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9833$as_echo "$ac_try_echo") >&5
9834 (eval "$ac_compile") 2>conftest.er1
9835 ac_status=$?
9836 grep -v '^ *+' conftest.er1 >conftest.err
9837 rm -f conftest.er1
9838 cat conftest.err >&5
9839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } && {
9841 test -z "$ac_c_werror_flag" ||
9842 test ! -s conftest.err
9843 } && test -s conftest.$ac_objext; then
9844 ac_header_compiler=yes
9845else
9846 $as_echo "$as_me: failed program was:" >&5
9847sed 's/^/| /' conftest.$ac_ext >&5
9848
9849 ac_header_compiler=no
9850fi
9851
9852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9853{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9854$as_echo "$ac_header_compiler" >&6; }
9855
9856# Is the header present?
9857{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9858$as_echo_n "checking $ac_header presence... " >&6; }
9859cat >conftest.$ac_ext <<_ACEOF
9860/* confdefs.h. */
9861_ACEOF
9862cat confdefs.h >>conftest.$ac_ext
9863cat >>conftest.$ac_ext <<_ACEOF
9864/* end confdefs.h. */
9865#include <$ac_header>
9866_ACEOF
9867if { (ac_try="$ac_cpp conftest.$ac_ext"
9868case "(($ac_try" in
9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870 *) ac_try_echo=$ac_try;;
9871esac
9872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9873$as_echo "$ac_try_echo") >&5
9874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9875 ac_status=$?
9876 grep -v '^ *+' conftest.er1 >conftest.err
9877 rm -f conftest.er1
9878 cat conftest.err >&5
9879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); } >/dev/null && {
9881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9882 test ! -s conftest.err
9883 }; then
9884 ac_header_preproc=yes
9885else
9886 $as_echo "$as_me: failed program was:" >&5
9887sed 's/^/| /' conftest.$ac_ext >&5
9888
9889 ac_header_preproc=no
9890fi
9891
9892rm -f conftest.err conftest.$ac_ext
9893{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9894$as_echo "$ac_header_preproc" >&6; }
9895
9896# So? What about this header?
9897case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9898 yes:no: )
9899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9900$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9902$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9903 ac_header_preproc=yes
9904 ;;
9905 no:yes:* )
9906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9907$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9908 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9909$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9911$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9913$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9914 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9915$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9916 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9917$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9918
9919 ;;
9920esac
9921{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9922$as_echo_n "checking for $ac_header... " >&6; }
9923if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9924 $as_echo_n "(cached) " >&6
9925else
9926 eval "$as_ac_Header=\$ac_header_preproc"
9927fi
9928ac_res=`eval 'as_val=${'$as_ac_Header'}
9929 $as_echo "$as_val"'`
9930 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9931$as_echo "$ac_res" >&6; }
9932
9933fi
9934as_val=`eval 'as_val=${'$as_ac_Header'}
9935 $as_echo "$as_val"'`
9936 if test "x$as_val" = x""yes; then
9937 cat >>confdefs.h <<_ACEOF
9938#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9939_ACEOF
9940
9941else
9942 $bailout
9943fi
9944
9945done
9946
9947 check_lib_no_libs ccs ccs_connect
9948 if test $NOTFOUND = 0; then
9949 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9950$as_echo "no pkg for libccs, using -lccs" >&6; }
9951 CCS_LIBS="-lccs"
9952 HAVE_CCS=yes
9953 fi
9954else
9955 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
9956 CCS_LIBS=$pkg_cv_CCS_LIBS
9957 { $as_echo "$as_me:$LINENO: result: yes" >&5
9958$as_echo "yes" >&6; }
9959 HAVE_CCS=yes
9960fi
9961
9962pkg_failed=no
9963{ $as_echo "$as_me:$LINENO: checking for GULM" >&5
9964$as_echo_n "checking for GULM... " >&6; }
9965
9966if test -n "$GULM_CFLAGS"; then
9967 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
9968 elif test -n "$PKG_CONFIG"; then
9969 if test -n "$PKG_CONFIG" && \
9970 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
9971 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
9972 ac_status=$?
9973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; then
9975 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
9976else
9977 pkg_failed=yes
9978fi
9979 else
9980 pkg_failed=untried
9981fi
9982if test -n "$GULM_LIBS"; then
9983 pkg_cv_GULM_LIBS="$GULM_LIBS"
9984 elif test -n "$PKG_CONFIG"; then
9985 if test -n "$PKG_CONFIG" && \
9986 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
9987 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
9988 ac_status=$?
9989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); }; then
9991 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
9992else
9993 pkg_failed=yes
9994fi
9995 else
9996 pkg_failed=untried
9997fi
9998
9999
10000
10001if test $pkg_failed = yes; then
10002
10003if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10004 _pkg_short_errors_supported=yes
10005else
10006 _pkg_short_errors_supported=no
10007fi
10008 if test $_pkg_short_errors_supported = yes; then
10009 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
10010 else
10011 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
10012 fi
10013 # Put the nasty error message in config.log where it belongs
10014 echo "$GULM_PKG_ERRORS" >&5
10015
10016 { $as_echo "$as_me:$LINENO: result: no" >&5
10017$as_echo "no" >&6; }
10018 NOTFOUND=0
10019
10020for ac_header in libgulm.h
10021do
10022as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10023if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10024 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10025$as_echo_n "checking for $ac_header... " >&6; }
10026if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10027 $as_echo_n "(cached) " >&6
10028fi
10029ac_res=`eval 'as_val=${'$as_ac_Header'}
10030 $as_echo "$as_val"'`
10031 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10032$as_echo "$ac_res" >&6; }
10033else
10034 # Is the header compilable?
10035{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10036$as_echo_n "checking $ac_header usability... " >&6; }
10037cat >conftest.$ac_ext <<_ACEOF
10038/* confdefs.h. */
10039_ACEOF
10040cat confdefs.h >>conftest.$ac_ext
10041cat >>conftest.$ac_ext <<_ACEOF
10042/* end confdefs.h. */
10043$ac_includes_default
10044#include <$ac_header>
10045_ACEOF
10046rm -f conftest.$ac_objext
10047if { (ac_try="$ac_compile"
10048case "(($ac_try" in
10049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10050 *) ac_try_echo=$ac_try;;
10051esac
10052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10053$as_echo "$ac_try_echo") >&5
10054 (eval "$ac_compile") 2>conftest.er1
10055 ac_status=$?
10056 grep -v '^ *+' conftest.er1 >conftest.err
10057 rm -f conftest.er1
10058 cat conftest.err >&5
10059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } && {
10061 test -z "$ac_c_werror_flag" ||
10062 test ! -s conftest.err
10063 } && test -s conftest.$ac_objext; then
10064 ac_header_compiler=yes
10065else
10066 $as_echo "$as_me: failed program was:" >&5
10067sed 's/^/| /' conftest.$ac_ext >&5
10068
10069 ac_header_compiler=no
10070fi
10071
10072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10073{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10074$as_echo "$ac_header_compiler" >&6; }
10075
10076# Is the header present?
10077{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10078$as_echo_n "checking $ac_header presence... " >&6; }
10079cat >conftest.$ac_ext <<_ACEOF
10080/* confdefs.h. */
10081_ACEOF
10082cat confdefs.h >>conftest.$ac_ext
10083cat >>conftest.$ac_ext <<_ACEOF
10084/* end confdefs.h. */
10085#include <$ac_header>
10086_ACEOF
10087if { (ac_try="$ac_cpp conftest.$ac_ext"
10088case "(($ac_try" in
10089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090 *) ac_try_echo=$ac_try;;
10091esac
10092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10093$as_echo "$ac_try_echo") >&5
10094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10095 ac_status=$?
10096 grep -v '^ *+' conftest.er1 >conftest.err
10097 rm -f conftest.er1
10098 cat conftest.err >&5
10099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } >/dev/null && {
10101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10102 test ! -s conftest.err
10103 }; then
10104 ac_header_preproc=yes
10105else
10106 $as_echo "$as_me: failed program was:" >&5
10107sed 's/^/| /' conftest.$ac_ext >&5
10108
10109 ac_header_preproc=no
10110fi
10111
10112rm -f conftest.err conftest.$ac_ext
10113{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10114$as_echo "$ac_header_preproc" >&6; }
10115
10116# So? What about this header?
10117case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10118 yes:no: )
10119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10120$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10122$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10123 ac_header_preproc=yes
10124 ;;
10125 no:yes:* )
10126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10127$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10129$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10131$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10133$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10135$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10137$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10138
10139 ;;
10140esac
10141{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10142$as_echo_n "checking for $ac_header... " >&6; }
10143if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10144 $as_echo_n "(cached) " >&6
10145else
10146 eval "$as_ac_Header=\$ac_header_preproc"
10147fi
10148ac_res=`eval 'as_val=${'$as_ac_Header'}
10149 $as_echo "$as_val"'`
10150 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10151$as_echo "$ac_res" >&6; }
10152
10153fi
10154as_val=`eval 'as_val=${'$as_ac_Header'}
10155 $as_echo "$as_val"'`
10156 if test "x$as_val" = x""yes; then
10157 cat >>confdefs.h <<_ACEOF
10158#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10159_ACEOF
10160
10161else
10162 $bailout
10163fi
10164
10165done
10166
10167 check_lib_no_libs gulm lg_core_login
10168 if test $NOTFOUND = 0; then
10169 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10170$as_echo "no pkg for libgulm, using -lgulm" >&6; }
10171 GULM_LIBS="-lgulm"
10172 HAVE_GULM=yes
10173 fi
10174elif test $pkg_failed = untried; then
10175 NOTFOUND=0
10176
10177for ac_header in libgulm.h
10178do
10179as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10180if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10181 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10182$as_echo_n "checking for $ac_header... " >&6; }
10183if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10184 $as_echo_n "(cached) " >&6
10185fi
10186ac_res=`eval 'as_val=${'$as_ac_Header'}
10187 $as_echo "$as_val"'`
10188 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10189$as_echo "$ac_res" >&6; }
10190else
10191 # Is the header compilable?
10192{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10193$as_echo_n "checking $ac_header usability... " >&6; }
10194cat >conftest.$ac_ext <<_ACEOF
10195/* confdefs.h. */
10196_ACEOF
10197cat confdefs.h >>conftest.$ac_ext
10198cat >>conftest.$ac_ext <<_ACEOF
10199/* end confdefs.h. */
10200$ac_includes_default
10201#include <$ac_header>
10202_ACEOF
10203rm -f conftest.$ac_objext
10204if { (ac_try="$ac_compile"
10205case "(($ac_try" in
10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10208esac
10209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10210$as_echo "$ac_try_echo") >&5
10211 (eval "$ac_compile") 2>conftest.er1
10212 ac_status=$?
10213 grep -v '^ *+' conftest.er1 >conftest.err
10214 rm -f conftest.er1
10215 cat conftest.err >&5
10216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } && {
10218 test -z "$ac_c_werror_flag" ||
10219 test ! -s conftest.err
10220 } && test -s conftest.$ac_objext; then
10221 ac_header_compiler=yes
10222else
10223 $as_echo "$as_me: failed program was:" >&5
10224sed 's/^/| /' conftest.$ac_ext >&5
10225
10226 ac_header_compiler=no
10227fi
10228
10229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10230{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10231$as_echo "$ac_header_compiler" >&6; }
10232
10233# Is the header present?
10234{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10235$as_echo_n "checking $ac_header presence... " >&6; }
10236cat >conftest.$ac_ext <<_ACEOF
10237/* confdefs.h. */
10238_ACEOF
10239cat confdefs.h >>conftest.$ac_ext
10240cat >>conftest.$ac_ext <<_ACEOF
10241/* end confdefs.h. */
10242#include <$ac_header>
10243_ACEOF
10244if { (ac_try="$ac_cpp conftest.$ac_ext"
10245case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10248esac
10249eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10250$as_echo "$ac_try_echo") >&5
10251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10252 ac_status=$?
10253 grep -v '^ *+' conftest.er1 >conftest.err
10254 rm -f conftest.er1
10255 cat conftest.err >&5
10256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); } >/dev/null && {
10258 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10259 test ! -s conftest.err
10260 }; then
10261 ac_header_preproc=yes
10262else
10263 $as_echo "$as_me: failed program was:" >&5
10264sed 's/^/| /' conftest.$ac_ext >&5
10265
10266 ac_header_preproc=no
10267fi
10268
10269rm -f conftest.err conftest.$ac_ext
10270{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10271$as_echo "$ac_header_preproc" >&6; }
10272
10273# So? What about this header?
10274case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10275 yes:no: )
10276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10277$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10279$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10280 ac_header_preproc=yes
10281 ;;
10282 no:yes:* )
10283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10284$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10286$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10288$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10290$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10292$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10294$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10295
10296 ;;
10297esac
10298{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10299$as_echo_n "checking for $ac_header... " >&6; }
10300if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10301 $as_echo_n "(cached) " >&6
10302else
10303 eval "$as_ac_Header=\$ac_header_preproc"
10304fi
10305ac_res=`eval 'as_val=${'$as_ac_Header'}
10306 $as_echo "$as_val"'`
10307 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10308$as_echo "$ac_res" >&6; }
10309
10310fi
10311as_val=`eval 'as_val=${'$as_ac_Header'}
10312 $as_echo "$as_val"'`
10313 if test "x$as_val" = x""yes; then
10314 cat >>confdefs.h <<_ACEOF
10315#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10316_ACEOF
10317
10318else
10319 $bailout
10320fi
10321
10322done
10323
10324 check_lib_no_libs gulm lg_core_login
10325 if test $NOTFOUND = 0; then
10326 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10327$as_echo "no pkg for libgulm, using -lgulm" >&6; }
10328 GULM_LIBS="-lgulm"
10329 HAVE_GULM=yes
10330 fi
10331else
10332 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
10333 GULM_LIBS=$pkg_cv_GULM_LIBS
10334 { $as_echo "$as_me:$LINENO: result: yes" >&5
10335$as_echo "yes" >&6; }
10336 HAVE_GULM=yes
10337fi
10338fi
10339
10340if test x$BUILDCMAN = xyes; then
10341
10342pkg_failed=no
10343{ $as_echo "$as_me:$LINENO: checking for CMAN" >&5
10344$as_echo_n "checking for CMAN... " >&6; }
10345
10346if test -n "$CMAN_CFLAGS"; then
10347 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
10348 elif test -n "$PKG_CONFIG"; then
10349 if test -n "$PKG_CONFIG" && \
10350 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10351 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10352 ac_status=$?
10353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); }; then
10355 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
10356else
10357 pkg_failed=yes
10358fi
10359 else
10360 pkg_failed=untried
10361fi
10362if test -n "$CMAN_LIBS"; then
10363 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
10364 elif test -n "$PKG_CONFIG"; then
10365 if test -n "$PKG_CONFIG" && \
10366 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10367 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10368 ac_status=$?
10369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; then
10371 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
10372else
10373 pkg_failed=yes
10374fi
10375 else
10376 pkg_failed=untried
10377fi
10378
10379
10380
10381if test $pkg_failed = yes; then
10382
10383if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10384 _pkg_short_errors_supported=yes
10385else
10386 _pkg_short_errors_supported=no
10387fi
10388 if test $_pkg_short_errors_supported = yes; then
10389 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
10390 else
10391 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
10392 fi
10393 # Put the nasty error message in config.log where it belongs
10394 echo "$CMAN_PKG_ERRORS" >&5
10395
10396 { $as_echo "$as_me:$LINENO: result: no" >&5
10397$as_echo "no" >&6; }
10398 NOTFOUND=0
10399
10400for ac_header in libcman.h
10401do
10402as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10403if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10404 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10405$as_echo_n "checking for $ac_header... " >&6; }
10406if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10407 $as_echo_n "(cached) " >&6
10408fi
10409ac_res=`eval 'as_val=${'$as_ac_Header'}
10410 $as_echo "$as_val"'`
10411 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10412$as_echo "$ac_res" >&6; }
10413else
10414 # Is the header compilable?
10415{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10416$as_echo_n "checking $ac_header usability... " >&6; }
10417cat >conftest.$ac_ext <<_ACEOF
10418/* confdefs.h. */
10419_ACEOF
10420cat confdefs.h >>conftest.$ac_ext
10421cat >>conftest.$ac_ext <<_ACEOF
10422/* end confdefs.h. */
10423$ac_includes_default
10424#include <$ac_header>
10425_ACEOF
10426rm -f conftest.$ac_objext
10427if { (ac_try="$ac_compile"
10428case "(($ac_try" in
10429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430 *) ac_try_echo=$ac_try;;
10431esac
10432eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10433$as_echo "$ac_try_echo") >&5
10434 (eval "$ac_compile") 2>conftest.er1
10435 ac_status=$?
10436 grep -v '^ *+' conftest.er1 >conftest.err
10437 rm -f conftest.er1
10438 cat conftest.err >&5
10439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); } && {
10441 test -z "$ac_c_werror_flag" ||
10442 test ! -s conftest.err
10443 } && test -s conftest.$ac_objext; then
10444 ac_header_compiler=yes
10445else
10446 $as_echo "$as_me: failed program was:" >&5
10447sed 's/^/| /' conftest.$ac_ext >&5
10448
10449 ac_header_compiler=no
10450fi
10451
10452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10453{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10454$as_echo "$ac_header_compiler" >&6; }
10455
10456# Is the header present?
10457{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10458$as_echo_n "checking $ac_header presence... " >&6; }
10459cat >conftest.$ac_ext <<_ACEOF
10460/* confdefs.h. */
10461_ACEOF
10462cat confdefs.h >>conftest.$ac_ext
10463cat >>conftest.$ac_ext <<_ACEOF
10464/* end confdefs.h. */
10465#include <$ac_header>
10466_ACEOF
10467if { (ac_try="$ac_cpp conftest.$ac_ext"
10468case "(($ac_try" in
10469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470 *) ac_try_echo=$ac_try;;
10471esac
10472eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10473$as_echo "$ac_try_echo") >&5
10474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10475 ac_status=$?
10476 grep -v '^ *+' conftest.er1 >conftest.err
10477 rm -f conftest.er1
10478 cat conftest.err >&5
10479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } >/dev/null && {
10481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10482 test ! -s conftest.err
10483 }; then
10484 ac_header_preproc=yes
10485else
10486 $as_echo "$as_me: failed program was:" >&5
10487sed 's/^/| /' conftest.$ac_ext >&5
10488
10489 ac_header_preproc=no
10490fi
10491
10492rm -f conftest.err conftest.$ac_ext
10493{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10494$as_echo "$ac_header_preproc" >&6; }
10495
10496# So? What about this header?
10497case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10498 yes:no: )
10499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10500$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10501 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10502$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10503 ac_header_preproc=yes
10504 ;;
10505 no:yes:* )
10506 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10507$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10508 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10509$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10510 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10511$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10512 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10513$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10514 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10515$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10516 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10517$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10518
10519 ;;
10520esac
10521{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10522$as_echo_n "checking for $ac_header... " >&6; }
10523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10524 $as_echo_n "(cached) " >&6
10525else
10526 eval "$as_ac_Header=\$ac_header_preproc"
10527fi
10528ac_res=`eval 'as_val=${'$as_ac_Header'}
10529 $as_echo "$as_val"'`
10530 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10531$as_echo "$ac_res" >&6; }
10532
10533fi
10534as_val=`eval 'as_val=${'$as_ac_Header'}
10535 $as_echo "$as_val"'`
10536 if test "x$as_val" = x""yes; then
10537 cat >>confdefs.h <<_ACEOF
10538#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10539_ACEOF
10540
10541else
10542 $bailout
10543fi
10544
10545done
10546
10547 check_lib_no_libs cman cman_init
10548 if test $NOTFOUND = 0; then
10549 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10550$as_echo "no pkg for libcman, using -lcman" >&6; }
10551 CMAN_LIBS="-lcman"
10552 HAVE_CMAN=yes
10553 fi
10554elif test $pkg_failed = untried; then
10555 NOTFOUND=0
10556
10557for ac_header in libcman.h
10558do
10559as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10560if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10561 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10562$as_echo_n "checking for $ac_header... " >&6; }
10563if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10564 $as_echo_n "(cached) " >&6
10565fi
10566ac_res=`eval 'as_val=${'$as_ac_Header'}
10567 $as_echo "$as_val"'`
10568 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10569$as_echo "$ac_res" >&6; }
10570else
10571 # Is the header compilable?
10572{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10573$as_echo_n "checking $ac_header usability... " >&6; }
10574cat >conftest.$ac_ext <<_ACEOF
10575/* confdefs.h. */
10576_ACEOF
10577cat confdefs.h >>conftest.$ac_ext
10578cat >>conftest.$ac_ext <<_ACEOF
10579/* end confdefs.h. */
10580$ac_includes_default
10581#include <$ac_header>
10582_ACEOF
10583rm -f conftest.$ac_objext
10584if { (ac_try="$ac_compile"
10585case "(($ac_try" in
10586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10587 *) ac_try_echo=$ac_try;;
10588esac
10589eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10590$as_echo "$ac_try_echo") >&5
10591 (eval "$ac_compile") 2>conftest.er1
10592 ac_status=$?
10593 grep -v '^ *+' conftest.er1 >conftest.err
10594 rm -f conftest.er1
10595 cat conftest.err >&5
10596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } && {
10598 test -z "$ac_c_werror_flag" ||
10599 test ! -s conftest.err
10600 } && test -s conftest.$ac_objext; then
10601 ac_header_compiler=yes
10602else
10603 $as_echo "$as_me: failed program was:" >&5
10604sed 's/^/| /' conftest.$ac_ext >&5
10605
10606 ac_header_compiler=no
10607fi
10608
10609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10610{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10611$as_echo "$ac_header_compiler" >&6; }
10612
10613# Is the header present?
10614{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10615$as_echo_n "checking $ac_header presence... " >&6; }
10616cat >conftest.$ac_ext <<_ACEOF
10617/* confdefs.h. */
10618_ACEOF
10619cat confdefs.h >>conftest.$ac_ext
10620cat >>conftest.$ac_ext <<_ACEOF
10621/* end confdefs.h. */
10622#include <$ac_header>
10623_ACEOF
10624if { (ac_try="$ac_cpp conftest.$ac_ext"
10625case "(($ac_try" in
10626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627 *) ac_try_echo=$ac_try;;
10628esac
10629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10630$as_echo "$ac_try_echo") >&5
10631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10632 ac_status=$?
10633 grep -v '^ *+' conftest.er1 >conftest.err
10634 rm -f conftest.er1
10635 cat conftest.err >&5
10636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } >/dev/null && {
10638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10639 test ! -s conftest.err
10640 }; then
10641 ac_header_preproc=yes
10642else
10643 $as_echo "$as_me: failed program was:" >&5
10644sed 's/^/| /' conftest.$ac_ext >&5
10645
10646 ac_header_preproc=no
10647fi
10648
10649rm -f conftest.err conftest.$ac_ext
10650{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10651$as_echo "$ac_header_preproc" >&6; }
10652
10653# So? What about this header?
10654case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10655 yes:no: )
10656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10657$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10658 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10659$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10660 ac_header_preproc=yes
10661 ;;
10662 no:yes:* )
10663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10664$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10666$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10668$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10670$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10672$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10674$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10675
10676 ;;
10677esac
10678{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10679$as_echo_n "checking for $ac_header... " >&6; }
10680if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10681 $as_echo_n "(cached) " >&6
10682else
10683 eval "$as_ac_Header=\$ac_header_preproc"
10684fi
10685ac_res=`eval 'as_val=${'$as_ac_Header'}
10686 $as_echo "$as_val"'`
10687 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10688$as_echo "$ac_res" >&6; }
10689
10690fi
10691as_val=`eval 'as_val=${'$as_ac_Header'}
10692 $as_echo "$as_val"'`
10693 if test "x$as_val" = x""yes; then
10694 cat >>confdefs.h <<_ACEOF
10695#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10696_ACEOF
10697
10698else
10699 $bailout
10700fi
10701
10702done
10703
10704 check_lib_no_libs cman cman_init
10705 if test $NOTFOUND = 0; then
10706 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10707$as_echo "no pkg for libcman, using -lcman" >&6; }
10708 CMAN_LIBS="-lcman"
10709 HAVE_CMAN=yes
10710 fi
10711else
10712 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
10713 CMAN_LIBS=$pkg_cv_CMAN_LIBS
10714 { $as_echo "$as_me:$LINENO: result: yes" >&5
10715$as_echo "yes" >&6; }
10716 HAVE_CMAN=yes
10717fi
10718 CHECKCONFDB=yes
10719 CHECKDLM=yes
10720fi
10721
10722if test x$BUILDCOROSYNC = xyes || \
10723 test x$BUILDOPENAIS = xyes; then
10724
10725pkg_failed=no
10726{ $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
10727$as_echo_n "checking for COROSYNC... " >&6; }
10728
10729if test -n "$COROSYNC_CFLAGS"; then
10730 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
10731 elif test -n "$PKG_CONFIG"; then
10732 if test -n "$PKG_CONFIG" && \
10733 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10734 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10735 ac_status=$?
10736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; then
10738 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
10739else
10740 pkg_failed=yes
10741fi
10742 else
10743 pkg_failed=untried
10744fi
10745if test -n "$COROSYNC_LIBS"; then
10746 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
10747 elif test -n "$PKG_CONFIG"; then
10748 if test -n "$PKG_CONFIG" && \
10749 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10750 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10751 ac_status=$?
10752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); }; then
10754 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
10755else
10756 pkg_failed=yes
10757fi
10758 else
10759 pkg_failed=untried
10760fi
10761
10762
10763
10764if test $pkg_failed = yes; then
10765
10766if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10767 _pkg_short_errors_supported=yes
10768else
10769 _pkg_short_errors_supported=no
10770fi
10771 if test $_pkg_short_errors_supported = yes; then
10772 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
10773 else
10774 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
10775 fi
10776 # Put the nasty error message in config.log where it belongs
10777 echo "$COROSYNC_PKG_ERRORS" >&5
10778
10779 { $as_echo "$as_me:$LINENO: result: no" >&5
10780$as_echo "no" >&6; }
10781 $bailout
10782elif test $pkg_failed = untried; then
10783 $bailout
10784else
10785 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
10786 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
10787 { $as_echo "$as_me:$LINENO: result: yes" >&5
10788$as_echo "yes" >&6; }
10789 HAVE_COROSYNC=yes
10790fi
10791 CHECKCONFDB=yes
10792fi
10793
10794if test x$BUILDCOROSYNC = xyes; then
10795
10796pkg_failed=no
10797{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
10798$as_echo_n "checking for QUORUM... " >&6; }
10799
10800if test -n "$QUORUM_CFLAGS"; then
10801 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
10802 elif test -n "$PKG_CONFIG"; then
10803 if test -n "$PKG_CONFIG" && \
10804 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10805 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10806 ac_status=$?
10807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; then
10809 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
10810else
10811 pkg_failed=yes
10812fi
10813 else
10814 pkg_failed=untried
10815fi
10816if test -n "$QUORUM_LIBS"; then
10817 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
10818 elif test -n "$PKG_CONFIG"; then
10819 if test -n "$PKG_CONFIG" && \
10820 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10821 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10822 ac_status=$?
10823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; then
10825 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
10826else
10827 pkg_failed=yes
10828fi
10829 else
10830 pkg_failed=untried
10831fi
10832
10833
10834
10835if test $pkg_failed = yes; then
10836
10837if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10838 _pkg_short_errors_supported=yes
10839else
10840 _pkg_short_errors_supported=no
10841fi
10842 if test $_pkg_short_errors_supported = yes; then
10843 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
10844 else
10845 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
10846 fi
10847 # Put the nasty error message in config.log where it belongs
10848 echo "$QUORUM_PKG_ERRORS" >&5
10849
10850 { $as_echo "$as_me:$LINENO: result: no" >&5
10851$as_echo "no" >&6; }
10852 $bailout
10853elif test $pkg_failed = untried; then
10854 $bailout
10855else
10856 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
10857 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
10858 { $as_echo "$as_me:$LINENO: result: yes" >&5
10859$as_echo "yes" >&6; }
10860 HAVE_QUORUM=yes
10861fi
10862 CHECKCPG=yes
10863 CHECKDLM=yes
10864fi
10865
10866if test x$BUILDOPENAIS = xyes; then
10867
10868pkg_failed=no
10869{ $as_echo "$as_me:$LINENO: checking for SALCK" >&5
10870$as_echo_n "checking for SALCK... " >&6; }
10871
10872if test -n "$SALCK_CFLAGS"; then
10873 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
10874 elif test -n "$PKG_CONFIG"; then
10875 if test -n "$PKG_CONFIG" && \
10876 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
10877 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
10878 ac_status=$?
10879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; then
10881 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
10882else
10883 pkg_failed=yes
10884fi
10885 else
10886 pkg_failed=untried
10887fi
10888if test -n "$SALCK_LIBS"; then
10889 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
10890 elif test -n "$PKG_CONFIG"; then
10891 if test -n "$PKG_CONFIG" && \
10892 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
10893 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
10894 ac_status=$?
10895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); }; then
10897 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
10898else
10899 pkg_failed=yes
10900fi
10901 else
10902 pkg_failed=untried
10903fi
10904
10905
10906
10907if test $pkg_failed = yes; then
10908
10909if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10910 _pkg_short_errors_supported=yes
10911else
10912 _pkg_short_errors_supported=no
10913fi
10914 if test $_pkg_short_errors_supported = yes; then
10915 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
10916 else
10917 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
10918 fi
10919 # Put the nasty error message in config.log where it belongs
10920 echo "$SALCK_PKG_ERRORS" >&5
10921
10922 { $as_echo "$as_me:$LINENO: result: no" >&5
10923$as_echo "no" >&6; }
10924 $bailout
10925elif test $pkg_failed = untried; then
10926 $bailout
10927else
10928 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
10929 SALCK_LIBS=$pkg_cv_SALCK_LIBS
10930 { $as_echo "$as_me:$LINENO: result: yes" >&5
10931$as_echo "yes" >&6; }
10932 HAVE_SALCK=yes
10933fi
10934 CHECKCPG=yes
10935fi
10936
10937
10938
10939if test x$CHECKCONFDB = xyes; then
10940
10941pkg_failed=no
10942{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
10943$as_echo_n "checking for CONFDB... " >&6; }
10944
10945if test -n "$CONFDB_CFLAGS"; then
10946 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
10947 elif test -n "$PKG_CONFIG"; then
10948 if test -n "$PKG_CONFIG" && \
10949 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
10950 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
10951 ac_status=$?
10952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; then
10954 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
10955else
10956 pkg_failed=yes
10957fi
10958 else
10959 pkg_failed=untried
10960fi
10961if test -n "$CONFDB_LIBS"; then
10962 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
10963 elif test -n "$PKG_CONFIG"; then
10964 if test -n "$PKG_CONFIG" && \
10965 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
10966 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
10967 ac_status=$?
10968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; then
10970 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
10971else
10972 pkg_failed=yes
10973fi
10974 else
10975 pkg_failed=untried
10976fi
10977
10978
10979
10980if test $pkg_failed = yes; then
10981
10982if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10983 _pkg_short_errors_supported=yes
10984else
10985 _pkg_short_errors_supported=no
10986fi
10987 if test $_pkg_short_errors_supported = yes; then
10988 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
10989 else
10990 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
10991 fi
10992 # Put the nasty error message in config.log where it belongs
10993 echo "$CONFDB_PKG_ERRORS" >&5
10994
10995 { $as_echo "$as_me:$LINENO: result: no" >&5
10996$as_echo "no" >&6; }
10997 HAVE_CONFDB=no
10998elif test $pkg_failed = untried; then
10999 HAVE_CONFDB=no
11000else
11001 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
11002 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
11003 { $as_echo "$as_me:$LINENO: result: yes" >&5
11004$as_echo "yes" >&6; }
11005 HAVE_CONFDB=yes
11006fi
11007
11008
11009for ac_header in corosync/confdb.h
11010do
11011as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11012if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11013 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11014$as_echo_n "checking for $ac_header... " >&6; }
11015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11016 $as_echo_n "(cached) " >&6
11017fi
11018ac_res=`eval 'as_val=${'$as_ac_Header'}
11019 $as_echo "$as_val"'`
11020 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11021$as_echo "$ac_res" >&6; }
11022else
11023 # Is the header compilable?
11024{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11025$as_echo_n "checking $ac_header usability... " >&6; }
11026cat >conftest.$ac_ext <<_ACEOF
11027/* confdefs.h. */
11028_ACEOF
11029cat confdefs.h >>conftest.$ac_ext
11030cat >>conftest.$ac_ext <<_ACEOF
11031/* end confdefs.h. */
11032$ac_includes_default
11033#include <$ac_header>
11034_ACEOF
11035rm -f conftest.$ac_objext
11036if { (ac_try="$ac_compile"
11037case "(($ac_try" in
11038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039 *) ac_try_echo=$ac_try;;
11040esac
11041eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11042$as_echo "$ac_try_echo") >&5
11043 (eval "$ac_compile") 2>conftest.er1
11044 ac_status=$?
11045 grep -v '^ *+' conftest.er1 >conftest.err
11046 rm -f conftest.er1
11047 cat conftest.err >&5
11048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } && {
11050 test -z "$ac_c_werror_flag" ||
11051 test ! -s conftest.err
11052 } && test -s conftest.$ac_objext; then
11053 ac_header_compiler=yes
11054else
11055 $as_echo "$as_me: failed program was:" >&5
11056sed 's/^/| /' conftest.$ac_ext >&5
11057
11058 ac_header_compiler=no
11059fi
11060
11061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11062{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11063$as_echo "$ac_header_compiler" >&6; }
11064
11065# Is the header present?
11066{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11067$as_echo_n "checking $ac_header presence... " >&6; }
11068cat >conftest.$ac_ext <<_ACEOF
11069/* confdefs.h. */
11070_ACEOF
11071cat confdefs.h >>conftest.$ac_ext
11072cat >>conftest.$ac_ext <<_ACEOF
11073/* end confdefs.h. */
11074#include <$ac_header>
11075_ACEOF
11076if { (ac_try="$ac_cpp conftest.$ac_ext"
11077case "(($ac_try" in
11078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11079 *) ac_try_echo=$ac_try;;
11080esac
11081eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11082$as_echo "$ac_try_echo") >&5
11083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11084 ac_status=$?
11085 grep -v '^ *+' conftest.er1 >conftest.err
11086 rm -f conftest.er1
11087 cat conftest.err >&5
11088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); } >/dev/null && {
11090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11091 test ! -s conftest.err
11092 }; then
11093 ac_header_preproc=yes
11094else
11095 $as_echo "$as_me: failed program was:" >&5
11096sed 's/^/| /' conftest.$ac_ext >&5
11097
11098 ac_header_preproc=no
11099fi
11100
11101rm -f conftest.err conftest.$ac_ext
11102{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11103$as_echo "$ac_header_preproc" >&6; }
11104
11105# So? What about this header?
11106case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11107 yes:no: )
11108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11109$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11111$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11112 ac_header_preproc=yes
11113 ;;
11114 no:yes:* )
11115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11116$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11118$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11120$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11122$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11124$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11126$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11127
11128 ;;
11129esac
11130{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11131$as_echo_n "checking for $ac_header... " >&6; }
11132if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11133 $as_echo_n "(cached) " >&6
11134else
11135 eval "$as_ac_Header=\$ac_header_preproc"
11136fi
11137ac_res=`eval 'as_val=${'$as_ac_Header'}
11138 $as_echo "$as_val"'`
11139 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11140$as_echo "$ac_res" >&6; }
11141
11142fi
11143as_val=`eval 'as_val=${'$as_ac_Header'}
11144 $as_echo "$as_val"'`
11145 if test "x$as_val" = x""yes; then
11146 cat >>confdefs.h <<_ACEOF
11147#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11148_ACEOF
11149 HAVE_CONFDB_H=yes
11150else
11151 HAVE_CONFDB_H=no
11152fi
11153
11154done
11155
11156
11157 if test x$HAVE_CONFDB != xyes && \
11158 test x$HAVE_CONFDB_H = xyes; then
11159 check_lib_no_libs confdb confdb_initialize
11160 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
11161$as_echo "no pkg for confdb, using -lconfdb" >&6; }
11162 CONFDB_LIBS="-lconfdb"
11163 HAVE_CONFDB=yes
11164 fi
11165
11166 if test x$BUILDCOROSYNC = xyes && \
11167 test x$HAVE_CONFDB != xyes &&
11168 test x$CLVMD != xall; then
11169 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
11170$as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
11171 { (exit 1); exit 1; }; }
11172 fi
11173fi
11174
11175if test x$CHECKCPG = xyes; then
11176
11177pkg_failed=no
11178{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
11179$as_echo_n "checking for CPG... " >&6; }
11180
11181if test -n "$CPG_CFLAGS"; then
11182 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11183 elif test -n "$PKG_CONFIG"; then
11184 if test -n "$PKG_CONFIG" && \
11185 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11186 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11187 ac_status=$?
11188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; then
11190 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11191else
11192 pkg_failed=yes
11193fi
11194 else
11195 pkg_failed=untried
11196fi
11197if test -n "$CPG_LIBS"; then
11198 pkg_cv_CPG_LIBS="$CPG_LIBS"
11199 elif test -n "$PKG_CONFIG"; then
11200 if test -n "$PKG_CONFIG" && \
11201 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11202 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11203 ac_status=$?
11204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); }; then
11206 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11207else
11208 pkg_failed=yes
11209fi
11210 else
11211 pkg_failed=untried
11212fi
11213
11214
11215
11216if test $pkg_failed = yes; then
11217
11218if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11219 _pkg_short_errors_supported=yes
11220else
11221 _pkg_short_errors_supported=no
11222fi
11223 if test $_pkg_short_errors_supported = yes; then
11224 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11225 else
11226 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11227 fi
11228 # Put the nasty error message in config.log where it belongs
11229 echo "$CPG_PKG_ERRORS" >&5
11230
11231 { $as_echo "$as_me:$LINENO: result: no" >&5
11232$as_echo "no" >&6; }
11233 $bailout
11234elif test $pkg_failed = untried; then
11235 $bailout
11236else
11237 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11238 CPG_LIBS=$pkg_cv_CPG_LIBS
11239 { $as_echo "$as_me:$LINENO: result: yes" >&5
11240$as_echo "yes" >&6; }
11241 HAVE_CPG=yes
11242fi
11243fi
11244
11245if test x$CHECKDLM = xyes; then
11246
11247pkg_failed=no
11248{ $as_echo "$as_me:$LINENO: checking for DLM" >&5
11249$as_echo_n "checking for DLM... " >&6; }
11250
11251if test -n "$DLM_CFLAGS"; then
11252 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
11253 elif test -n "$PKG_CONFIG"; then
11254 if test -n "$PKG_CONFIG" && \
11255 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11256 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11257 ac_status=$?
11258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; then
11260 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
11261else
11262 pkg_failed=yes
11263fi
11264 else
11265 pkg_failed=untried
11266fi
11267if test -n "$DLM_LIBS"; then
11268 pkg_cv_DLM_LIBS="$DLM_LIBS"
11269 elif test -n "$PKG_CONFIG"; then
11270 if test -n "$PKG_CONFIG" && \
11271 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11272 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11273 ac_status=$?
11274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; then
11276 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
11277else
11278 pkg_failed=yes
11279fi
11280 else
11281 pkg_failed=untried
11282fi
11283
11284
11285
11286if test $pkg_failed = yes; then
11287
11288if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11289 _pkg_short_errors_supported=yes
11290else
11291 _pkg_short_errors_supported=no
11292fi
11293 if test $_pkg_short_errors_supported = yes; then
11294 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
11295 else
11296 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
11297 fi
11298 # Put the nasty error message in config.log where it belongs
11299 echo "$DLM_PKG_ERRORS" >&5
11300
11301 { $as_echo "$as_me:$LINENO: result: no" >&5
11302$as_echo "no" >&6; }
11303 NOTFOUND=0
11304
11305for ac_header in libdlm.h
11306do
11307as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11308if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11309 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11310$as_echo_n "checking for $ac_header... " >&6; }
11311if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11312 $as_echo_n "(cached) " >&6
11313fi
11314ac_res=`eval 'as_val=${'$as_ac_Header'}
11315 $as_echo "$as_val"'`
11316 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11317$as_echo "$ac_res" >&6; }
11318else
11319 # Is the header compilable?
11320{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11321$as_echo_n "checking $ac_header usability... " >&6; }
11322cat >conftest.$ac_ext <<_ACEOF
11323/* confdefs.h. */
11324_ACEOF
11325cat confdefs.h >>conftest.$ac_ext
11326cat >>conftest.$ac_ext <<_ACEOF
11327/* end confdefs.h. */
11328$ac_includes_default
11329#include <$ac_header>
11330_ACEOF
11331rm -f conftest.$ac_objext
11332if { (ac_try="$ac_compile"
11333case "(($ac_try" in
11334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11335 *) ac_try_echo=$ac_try;;
11336esac
11337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11338$as_echo "$ac_try_echo") >&5
11339 (eval "$ac_compile") 2>conftest.er1
11340 ac_status=$?
11341 grep -v '^ *+' conftest.er1 >conftest.err
11342 rm -f conftest.er1
11343 cat conftest.err >&5
11344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } && {
11346 test -z "$ac_c_werror_flag" ||
11347 test ! -s conftest.err
11348 } && test -s conftest.$ac_objext; then
11349 ac_header_compiler=yes
11350else
11351 $as_echo "$as_me: failed program was:" >&5
11352sed 's/^/| /' conftest.$ac_ext >&5
11353
11354 ac_header_compiler=no
11355fi
11356
11357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11358{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11359$as_echo "$ac_header_compiler" >&6; }
11360
11361# Is the header present?
11362{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11363$as_echo_n "checking $ac_header presence... " >&6; }
11364cat >conftest.$ac_ext <<_ACEOF
11365/* confdefs.h. */
11366_ACEOF
11367cat confdefs.h >>conftest.$ac_ext
11368cat >>conftest.$ac_ext <<_ACEOF
11369/* end confdefs.h. */
11370#include <$ac_header>
11371_ACEOF
11372if { (ac_try="$ac_cpp conftest.$ac_ext"
11373case "(($ac_try" in
11374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375 *) ac_try_echo=$ac_try;;
11376esac
11377eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11378$as_echo "$ac_try_echo") >&5
11379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11380 ac_status=$?
11381 grep -v '^ *+' conftest.er1 >conftest.err
11382 rm -f conftest.er1
11383 cat conftest.err >&5
11384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); } >/dev/null && {
11386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11387 test ! -s conftest.err
11388 }; then
11389 ac_header_preproc=yes
11390else
11391 $as_echo "$as_me: failed program was:" >&5
11392sed 's/^/| /' conftest.$ac_ext >&5
11393
11394 ac_header_preproc=no
11395fi
11396
11397rm -f conftest.err conftest.$ac_ext
11398{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11399$as_echo "$ac_header_preproc" >&6; }
11400
11401# So? What about this header?
11402case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11403 yes:no: )
11404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11405$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11407$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11408 ac_header_preproc=yes
11409 ;;
11410 no:yes:* )
11411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11412$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11414$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11416$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11418$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11420$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11422$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11423
11424 ;;
11425esac
11426{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11427$as_echo_n "checking for $ac_header... " >&6; }
11428if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11429 $as_echo_n "(cached) " >&6
11430else
11431 eval "$as_ac_Header=\$ac_header_preproc"
11432fi
11433ac_res=`eval 'as_val=${'$as_ac_Header'}
11434 $as_echo "$as_val"'`
11435 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11436$as_echo "$ac_res" >&6; }
11437
11438fi
11439as_val=`eval 'as_val=${'$as_ac_Header'}
11440 $as_echo "$as_val"'`
11441 if test "x$as_val" = x""yes; then
11442 cat >>confdefs.h <<_ACEOF
11443#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11444_ACEOF
11445
11446else
11447 $bailout
11448fi
11449
11450done
11451
11452 check_lib_no_libs dlm dlm_lock -lpthread
11453 if test $NOTFOUND = 0; then
11454 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11455$as_echo "no pkg for libdlm, using -ldlm" >&6; }
11456 DLM_LIBS="-ldlm -lpthread"
11457 HAVE_DLM=yes
11458 fi
11459elif test $pkg_failed = untried; then
11460 NOTFOUND=0
11461
11462for ac_header in libdlm.h
11463do
11464as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11466 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11467$as_echo_n "checking for $ac_header... " >&6; }
11468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11469 $as_echo_n "(cached) " >&6
11470fi
11471ac_res=`eval 'as_val=${'$as_ac_Header'}
11472 $as_echo "$as_val"'`
11473 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11474$as_echo "$ac_res" >&6; }
11475else
11476 # Is the header compilable?
11477{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11478$as_echo_n "checking $ac_header usability... " >&6; }
11479cat >conftest.$ac_ext <<_ACEOF
11480/* confdefs.h. */
11481_ACEOF
11482cat confdefs.h >>conftest.$ac_ext
11483cat >>conftest.$ac_ext <<_ACEOF
11484/* end confdefs.h. */
11485$ac_includes_default
11486#include <$ac_header>
11487_ACEOF
11488rm -f conftest.$ac_objext
11489if { (ac_try="$ac_compile"
11490case "(($ac_try" in
11491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11492 *) ac_try_echo=$ac_try;;
11493esac
11494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11495$as_echo "$ac_try_echo") >&5
11496 (eval "$ac_compile") 2>conftest.er1
11497 ac_status=$?
11498 grep -v '^ *+' conftest.er1 >conftest.err
11499 rm -f conftest.er1
11500 cat conftest.err >&5
11501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } && {
11503 test -z "$ac_c_werror_flag" ||
11504 test ! -s conftest.err
11505 } && test -s conftest.$ac_objext; then
11506 ac_header_compiler=yes
11507else
11508 $as_echo "$as_me: failed program was:" >&5
11509sed 's/^/| /' conftest.$ac_ext >&5
11510
11511 ac_header_compiler=no
11512fi
11513
11514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11515{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11516$as_echo "$ac_header_compiler" >&6; }
11517
11518# Is the header present?
11519{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11520$as_echo_n "checking $ac_header presence... " >&6; }
11521cat >conftest.$ac_ext <<_ACEOF
11522/* confdefs.h. */
11523_ACEOF
11524cat confdefs.h >>conftest.$ac_ext
11525cat >>conftest.$ac_ext <<_ACEOF
11526/* end confdefs.h. */
11527#include <$ac_header>
11528_ACEOF
11529if { (ac_try="$ac_cpp conftest.$ac_ext"
11530case "(($ac_try" in
11531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11532 *) ac_try_echo=$ac_try;;
11533esac
11534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11535$as_echo "$ac_try_echo") >&5
11536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11537 ac_status=$?
11538 grep -v '^ *+' conftest.er1 >conftest.err
11539 rm -f conftest.er1
11540 cat conftest.err >&5
11541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); } >/dev/null && {
11543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11544 test ! -s conftest.err
11545 }; then
11546 ac_header_preproc=yes
11547else
11548 $as_echo "$as_me: failed program was:" >&5
11549sed 's/^/| /' conftest.$ac_ext >&5
11550
11551 ac_header_preproc=no
11552fi
11553
11554rm -f conftest.err conftest.$ac_ext
11555{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11556$as_echo "$ac_header_preproc" >&6; }
11557
11558# So? What about this header?
11559case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11560 yes:no: )
11561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11562$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11564$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11565 ac_header_preproc=yes
11566 ;;
11567 no:yes:* )
11568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11569$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11571$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11573$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11575$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11577$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11578 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11579$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11580
11581 ;;
11582esac
11583{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11584$as_echo_n "checking for $ac_header... " >&6; }
11585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11586 $as_echo_n "(cached) " >&6
11587else
11588 eval "$as_ac_Header=\$ac_header_preproc"
11589fi
11590ac_res=`eval 'as_val=${'$as_ac_Header'}
11591 $as_echo "$as_val"'`
11592 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11593$as_echo "$ac_res" >&6; }
11594
11595fi
11596as_val=`eval 'as_val=${'$as_ac_Header'}
11597 $as_echo "$as_val"'`
11598 if test "x$as_val" = x""yes; then
11599 cat >>confdefs.h <<_ACEOF
11600#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11601_ACEOF
11602
11603else
11604 $bailout
11605fi
11606
11607done
11608
11609 check_lib_no_libs dlm dlm_lock -lpthread
11610 if test $NOTFOUND = 0; then
11611 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11612$as_echo "no pkg for libdlm, using -ldlm" >&6; }
11613 DLM_LIBS="-ldlm -lpthread"
11614 HAVE_DLM=yes
11615 fi
11616else
11617 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
11618 DLM_LIBS=$pkg_cv_DLM_LIBS
11619 { $as_echo "$as_me:$LINENO: result: yes" >&5
11620$as_echo "yes" >&6; }
11621 HAVE_DLM=yes
11622fi
11623fi
11624
11625if test x$CLVMD = xall; then
8c222979 11626 CLVMD=none
a946372e
AK
11627 if test x$HAVE_CCS = xyes && \
11628 test x$HAVE_GULM = xyes; then
8c222979
FDN
11629 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
11630$as_echo "Enabling clvmd gulm cluster manager" >&6; }
11631 CLVMD="$CLVMD,gulm"
a946372e
AK
11632 fi
11633 if test x$HAVE_CMAN = xyes && \
11634 test x$HAVE_DLM = xyes; then
8c222979
FDN
11635 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
11636$as_echo "Enabling clvmd cman cluster manager" >&6; }
11637 CLVMD="$CLVMD,cman"
a946372e
AK
11638 fi
11639 if test x$HAVE_COROSYNC = xyes && \
11640 test x$HAVE_QUORUM = xyes && \
11641 test x$HAVE_CPG = xyes && \
11642 test x$HAVE_DLM = xyes && \
11643 test x$HAVE_CONFDB = xyes; then
8c222979
FDN
11644 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
11645$as_echo "Enabling clvmd corosync cluster manager" >&6; }
11646 CLVMD="$CLVMD,corosync"
a946372e
AK
11647 fi
11648 if test x$HAVE_COROSYNC = xyes && \
11649 test x$HAVE_CPG = xyes && \
11650 test x$HAVE_SALCK = xyes; then
8c222979
FDN
11651 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
11652$as_echo "Enabling clvmd openais cluster manager" >&6; }
11653 CLVMD="$CLVMD,openais"
11654 fi
11655 if test x$CLVMD = xnone; then
11656 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
11657$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
a946372e 11658 fi
a946372e
AK
11659fi
11660
11661################################################################################
66fd4529
AK
11662{ $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
11663$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
11664# Check whether --enable-cmirrord was given.
11665if test "${enable_cmirrord+set}" = set; then
11666 enableval=$enable_cmirrord; CMIRRORD=$enableval
11667else
11668 CMIRRORD=no
11669fi
11670
11671{ $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
11672$as_echo "$CMIRRORD" >&6; }
11673
11674BUILD_CMIRRORD=$CMIRRORD
11675
11676################################################################################
11677
11678
11679if test "x$BUILD_CMIRRORD" = xyes; then
11680
11681# Check whether --with-cmirrord-pidfile was given.
11682if test "${with_cmirrord_pidfile+set}" = set; then
11683 withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF
11684#define CMIRRORD_PIDFILE "$withval"
11685_ACEOF
11686
11687else
11688 cat >>confdefs.h <<_ACEOF
11689#define CMIRRORD_PIDFILE "/var/run/cmirrord.pid"
11690_ACEOF
11691
a946372e
AK
11692fi
11693
66fd4529 11694fi
a946372e 11695
66fd4529
AK
11696################################################################################
11697if [ "x$BUILD_CMIRRORD" = xyes ]; then
a946372e
AK
11698#
11699# FIXME: ALSO NEED TO CHECK FOR CHECKPOINT MODULE
66fd4529 11700# FIXME: Merge this with the new clvmd logic
a946372e
AK
11701#
11702
11703pkg_failed=no
11704{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
11705$as_echo_n "checking for CPG... " >&6; }
11706
11707if test -n "$CPG_CFLAGS"; then
11708 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11709 elif test -n "$PKG_CONFIG"; then
11710 if test -n "$PKG_CONFIG" && \
11711 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11712 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11713 ac_status=$?
11714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; then
11716 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11717else
11718 pkg_failed=yes
11719fi
11720 else
11721 pkg_failed=untried
11722fi
11723if test -n "$CPG_LIBS"; then
11724 pkg_cv_CPG_LIBS="$CPG_LIBS"
11725 elif test -n "$PKG_CONFIG"; then
11726 if test -n "$PKG_CONFIG" && \
11727 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11728 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11729 ac_status=$?
11730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; then
11732 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11733else
11734 pkg_failed=yes
11735fi
11736 else
11737 pkg_failed=untried
11738fi
11739
11740
11741
11742if test $pkg_failed = yes; then
11743
11744if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11745 _pkg_short_errors_supported=yes
11746else
11747 _pkg_short_errors_supported=no
11748fi
11749 if test $_pkg_short_errors_supported = yes; then
11750 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11751 else
11752 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11753 fi
11754 # Put the nasty error message in config.log where it belongs
11755 echo "$CPG_PKG_ERRORS" >&5
11756
11757 { $as_echo "$as_me:$LINENO: result: no" >&5
11758$as_echo "no" >&6; }
11759 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
11760$as_echo "no pkg for libcpg library, using -lcpg" >&6; };
11761 CPG_LIBS="-lcpg"
11762elif test $pkg_failed = untried; then
11763 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
11764$as_echo "no pkg for libcpg library, using -lcpg" >&6; };
11765 CPG_LIBS="-lcpg"
11766else
11767 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11768 CPG_LIBS=$pkg_cv_CPG_LIBS
11769 { $as_echo "$as_me:$LINENO: result: yes" >&5
11770$as_echo "yes" >&6; }
11771 :
11772fi
11773fi
11774
11775################################################################################
11776{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
11777$as_echo_n "checking whether to enable debugging... " >&6; }
11778# Check whether --enable-debug was given.
11779if test "${enable_debug+set}" = set; then
11780 enableval=$enable_debug; DEBUG=$enableval
11781else
11782 DEBUG=no
11783fi
11784
11785{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
11786$as_echo "$DEBUG" >&6; }
11787
11788if test x$DEBUG = xyes; then
11789 COPTIMISE_FLAG=
11790else
11791 CSCOPE_CMD=
11792fi
11793
11794################################################################################
11795{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
11796$as_echo_n "checking for C optimisation flag... " >&6; }
11797
11798# Check whether --with-optimisation was given.
11799if test "${with_optimisation+set}" = set; then
11800 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
11801fi
11802
11803{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
11804$as_echo "$COPTIMISE_FLAG" >&6; }
11805
11806################################################################################
11807{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
11808$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
11809# Check whether --enable-profiling was given.
11810if test "${enable_profiling+set}" = set; then
5556819a 11811 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 11812else
5556819a 11813 PROFILING=no
fddafd51
ZK
11814fi
11815
ec6a6fbe
AK
11816{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
11817$as_echo "$PROFILING" >&6; }
5556819a
AK
11818
11819if test "x$PROFILING" = xyes; then
11820 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
11821 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 11822set dummy lcov; ac_word=$2
ec6a6fbe
AK
11823{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11824$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 11825if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 11826 $as_echo_n "(cached) " >&6
fddafd51
ZK
11827else
11828 case $LCOV in
11829 [\\/]* | ?:[\\/]*)
11830 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
11831 ;;
11832 *)
11833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11834for as_dir in $PATH
11835do
11836 IFS=$as_save_IFS
11837 test -z "$as_dir" && as_dir=.
11838 for ac_exec_ext in '' $ac_executable_extensions; do
11839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11840 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 11841 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
11842 break 2
11843 fi
11844done
11845done
11846IFS=$as_save_IFS
11847
b145d876 11848 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
fddafd51
ZK
11849 ;;
11850esac
11851fi
11852LCOV=$ac_cv_path_LCOV
11853if test -n "$LCOV"; then
ec6a6fbe
AK
11854 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
11855$as_echo "$LCOV" >&6; }
fddafd51 11856else
ec6a6fbe
AK
11857 { $as_echo "$as_me:$LINENO: result: no" >&5
11858$as_echo "no" >&6; }
fddafd51
ZK
11859fi
11860
11861
5556819a 11862 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 11863set dummy genhtml; ac_word=$2
ec6a6fbe
AK
11864{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11865$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 11866if test "${ac_cv_path_GENHTML+set}" = set; then
ec6a6fbe 11867 $as_echo_n "(cached) " >&6
fddafd51
ZK
11868else
11869 case $GENHTML in
11870 [\\/]* | ?:[\\/]*)
11871 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
11872 ;;
11873 *)
11874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11875for as_dir in $PATH
11876do
11877 IFS=$as_save_IFS
11878 test -z "$as_dir" && as_dir=.
11879 for ac_exec_ext in '' $ac_executable_extensions; do
11880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11881 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 11882 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
11883 break 2
11884 fi
11885done
11886done
11887IFS=$as_save_IFS
11888
b145d876 11889 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
fddafd51
ZK
11890 ;;
11891esac
11892fi
11893GENHTML=$ac_cv_path_GENHTML
11894if test -n "$GENHTML"; then
ec6a6fbe
AK
11895 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
11896$as_echo "$GENHTML" >&6; }
fddafd51 11897else
ec6a6fbe
AK
11898 { $as_echo "$as_me:$LINENO: result: no" >&5
11899$as_echo "no" >&6; }
fddafd51
ZK
11900fi
11901
11902
b145d876 11903 if test "$LCOV" = no -o "$GENHTML" = no ; then
ec6a6fbe
AK
11904 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
11905$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
11906 { (exit 1); exit 1; }; }
11907 fi
5556819a 11908fi
d0191583
JM
11909
11910################################################################################
ec6a6fbe
AK
11911{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
11912$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
11913# Check whether --enable-devmapper was given.
11914if test "${enable_devmapper+set}" = set; then
11915 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
11916fi
11917
ec6a6fbe
AK
11918{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
11919$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
11920
11921if test x$DEVMAPPER = xyes; then
ad6254c5
AK
11922
11923cat >>confdefs.h <<\_ACEOF
d0191583 11924#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
11925_ACEOF
11926
11927fi
11928
a5f46f6a
AK
11929################################################################################
11930{ $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
11931$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
11932# Check whether --enable-udev_sync was given.
11933if test "${enable_udev_sync+set}" = set; then
11934 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
11935else
11936 UDEV_SYNC=no
11937fi
11938
11939{ $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
11940$as_echo "$UDEV_SYNC" >&6; }
11941
11942if test x$UDEV_SYNC = xyes; then
11943
11944cat >>confdefs.h <<\_ACEOF
11945#define UDEV_SYNC_SUPPORT 1
11946_ACEOF
11947
11948fi
11949
11950{ $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
11951$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
11952# Check whether --enable-udev_rules was given.
11953if test "${enable_udev_rules+set}" = set; then
11954 enableval=$enable_udev_rules; UDEV_RULES=$enableval
11955else
11956 UDEV_RULES=$UDEV_SYNC
11957fi
11958
11959{ $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
11960$as_echo "$UDEV_RULES" >&6; }
11961
93bd259b
AK
11962################################################################################
11963# Check whether --enable-compat was given.
11964if test "${enable_compat+set}" = set; then
11965 enableval=$enable_compat; DM_COMPAT=$enableval
11966else
11967 DM_COMPAT=no
11968fi
11969
11970
11971################################################################################
11972# Check whether --enable-ioctl was given.
11973if test "${enable_ioctl+set}" = set; then
11974 enableval=$enable_ioctl; DM_IOCTLS=$enableval
11975fi
11976
11977
d0191583 11978################################################################################
ec6a6fbe
AK
11979{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
11980$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
11981# Check whether --enable-o_direct was given.
11982if test "${enable_o_direct+set}" = set; then
11983 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 11984fi
ad6254c5 11985
ec6a6fbe
AK
11986{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
11987$as_echo "$ODIRECT" >&6; }
ad6254c5 11988
d0191583 11989if test x$ODIRECT = xyes; then
ad6254c5 11990
d0191583
JM
11991cat >>confdefs.h <<\_ACEOF
11992#define O_DIRECT_SUPPORT 1
11993_ACEOF
ad6254c5 11994
d0191583 11995fi
ad6254c5 11996
572fefeb
AK
11997################################################################################
11998{ $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
11999$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
12000# Check whether --enable-applib was given.
12001if test "${enable_applib+set}" = set; then
12002 enableval=$enable_applib; APPLIB=$enableval
12003else
12004 APPLIB=no
12005fi
12006
12007{ $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
12008$as_echo "$APPLIB" >&6; }
12009
12010test x$APPLIB = xyes \
12011 && LVM2APP_LIB=-llvm2app \
12012 || LVM2APP_LIB=
12013
d0191583 12014################################################################################
ec6a6fbe
AK
12015{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
12016$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
12017# Check whether --enable-cmdlib was given.
12018if test "${enable_cmdlib+set}" = set; then
12019 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 12020else
d0191583
JM
12021 CMDLIB=no
12022fi
8a2fc586 12023
ec6a6fbe
AK
12024{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
12025$as_echo "$CMDLIB" >&6; }
8a2fc586 12026
2a9a80c9 12027test x$CMDLIB = xyes \
d179cc7a
JM
12028 && LVM2CMD_LIB=-llvm2cmd \
12029 || LVM2CMD_LIB=
12030
93bd259b
AK
12031################################################################################
12032# Check whether --enable-pkgconfig was given.
12033if test "${enable_pkgconfig+set}" = set; then
12034 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
12035else
12036 PKGCONFIG=no
12037fi
12038
2a9a80c9 12039
d0191583 12040################################################################################
ec6a6fbe
AK
12041{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
12042$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
12043# Check whether --enable-fsadm was given.
12044if test "${enable_fsadm+set}" = set; then
12045 enableval=$enable_fsadm; FSADM=$enableval
12046fi
8a2fc586 12047
ec6a6fbe
AK
12048{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
12049$as_echo "$FSADM" >&6; }
8a2fc586 12050
d0191583 12051################################################################################
ec6a6fbe
AK
12052{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
12053$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
12054# Check whether --enable-dmeventd was given.
12055if test "${enable_dmeventd+set}" = set; then
12056 enableval=$enable_dmeventd; DMEVENTD=$enableval
12057fi
ad6254c5 12058
ec6a6fbe
AK
12059{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
12060$as_echo "$DMEVENTD" >&6; }
ad6254c5 12061
93bd259b
AK
12062BUILD_DMEVENTD=$DMEVENTD
12063
2a9a80c9
PR
12064if test x$DMEVENTD = xyes; then
12065 if test x$MIRRORS != xinternal; then
ec6a6fbe 12066 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 12067 " >&5
ec6a6fbe 12068$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 12069 " >&2;}
d0191583 12070 { (exit 1); exit 1; }; }
2a9a80c9
PR
12071 fi
12072 if test x$CMDLIB = xno; then
ec6a6fbe 12073 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 12074 " >&5
ec6a6fbe 12075$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
12076 " >&2;}
12077 { (exit 1); exit 1; }; }
12078 fi
ad6254c5 12079fi
7a197a62 12080
d0191583
JM
12081if test x$DMEVENTD = xyes; then
12082
12083cat >>confdefs.h <<\_ACEOF
12084#define DMEVENTD 1
ad6254c5
AK
12085_ACEOF
12086
ad6254c5 12087fi
93bd259b
AK
12088
12089################################################################################
12090
ec6a6fbe
AK
12091{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
12092$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 12093if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 12094 $as_echo_n "(cached) " >&6
93bd259b
AK
12095else
12096 ac_check_lib_save_LIBS=$LIBS
12097LIBS="-lc $LIBS"
12098cat >conftest.$ac_ext <<_ACEOF
12099/* confdefs.h. */
12100_ACEOF
12101cat confdefs.h >>conftest.$ac_ext
12102cat >>conftest.$ac_ext <<_ACEOF
12103/* end confdefs.h. */
12104
12105/* Override any GCC internal prototype to avoid an error.
12106 Use char because int might match the return type of a GCC
12107 builtin and then its argument prototype would still apply. */
12108#ifdef __cplusplus
12109extern "C"
12110#endif
12111char getline ();
12112int
12113main ()
12114{
12115return getline ();
12116 ;
12117 return 0;
12118}
12119_ACEOF
12120rm -f conftest.$ac_objext conftest$ac_exeext
12121if { (ac_try="$ac_link"
12122case "(($ac_try" in
12123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124 *) ac_try_echo=$ac_try;;
12125esac
ec6a6fbe
AK
12126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12127$as_echo "$ac_try_echo") >&5
93bd259b
AK
12128 (eval "$ac_link") 2>conftest.er1
12129 ac_status=$?
12130 grep -v '^ *+' conftest.er1 >conftest.err
12131 rm -f conftest.er1
12132 cat conftest.err >&5
ec6a6fbe 12133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
12134 (exit $ac_status); } && {
12135 test -z "$ac_c_werror_flag" ||
12136 test ! -s conftest.err
ec6a6fbe
AK
12137 } && test -s conftest$ac_exeext && {
12138 test "$cross_compiling" = yes ||
12139 $as_test_x conftest$ac_exeext
12140 }; then
93bd259b
AK
12141 ac_cv_lib_c_getline=yes
12142else
ec6a6fbe 12143 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
12144sed 's/^/| /' conftest.$ac_ext >&5
12145
12146 ac_cv_lib_c_getline=no
12147fi
12148
ec6a6fbe 12149rm -rf conftest.dSYM
93bd259b
AK
12150rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12151 conftest$ac_exeext conftest.$ac_ext
12152LIBS=$ac_check_lib_save_LIBS
12153fi
ec6a6fbe
AK
12154{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
12155$as_echo "$ac_cv_lib_c_getline" >&6; }
12156if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
12157
12158cat >>confdefs.h <<\_ACEOF
12159#define HAVE_GETLINE 1
12160_ACEOF
12161
12162fi
12163
12164
12165################################################################################
12166
ec6a6fbe
AK
12167{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
12168$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 12169if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 12170 $as_echo_n "(cached) " >&6
93bd259b
AK
12171else
12172 ac_check_lib_save_LIBS=$LIBS
12173LIBS="-lc $LIBS"
12174cat >conftest.$ac_ext <<_ACEOF
12175/* confdefs.h. */
12176_ACEOF
12177cat confdefs.h >>conftest.$ac_ext
12178cat >>conftest.$ac_ext <<_ACEOF
12179/* end confdefs.h. */
12180
12181/* Override any GCC internal prototype to avoid an error.
12182 Use char because int might match the return type of a GCC
12183 builtin and then its argument prototype would still apply. */
12184#ifdef __cplusplus
12185extern "C"
12186#endif
12187char canonicalize_file_name ();
12188int
12189main ()
12190{
12191return canonicalize_file_name ();
12192 ;
12193 return 0;
12194}
12195_ACEOF
12196rm -f conftest.$ac_objext conftest$ac_exeext
12197if { (ac_try="$ac_link"
12198case "(($ac_try" in
12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12201esac
ec6a6fbe
AK
12202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12203$as_echo "$ac_try_echo") >&5
93bd259b
AK
12204 (eval "$ac_link") 2>conftest.er1
12205 ac_status=$?
12206 grep -v '^ *+' conftest.er1 >conftest.err
12207 rm -f conftest.er1
12208 cat conftest.err >&5
ec6a6fbe 12209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
12210 (exit $ac_status); } && {
12211 test -z "$ac_c_werror_flag" ||
12212 test ! -s conftest.err
ec6a6fbe
AK
12213 } && test -s conftest$ac_exeext && {
12214 test "$cross_compiling" = yes ||
12215 $as_test_x conftest$ac_exeext
12216 }; then
93bd259b
AK
12217 ac_cv_lib_c_canonicalize_file_name=yes
12218else
ec6a6fbe 12219 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
12220sed 's/^/| /' conftest.$ac_ext >&5
12221
12222 ac_cv_lib_c_canonicalize_file_name=no
12223fi
12224
ec6a6fbe 12225rm -rf conftest.dSYM
93bd259b
AK
12226rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12227 conftest$ac_exeext conftest.$ac_ext
12228LIBS=$ac_check_lib_save_LIBS
12229fi
ec6a6fbe
AK
12230{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
12231$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
12232if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
12233
12234cat >>confdefs.h <<\_ACEOF
12235#define HAVE_CANONICALIZE_FILE_NAME 1
12236_ACEOF
12237
12238fi
12239
12240
d0191583
JM
12241################################################################################
12242if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
12243 then exec_prefix="";
12244fi;
ad6254c5
AK
12245
12246################################################################################
06e459df 12247if test x$READLINE != xno; then
ec6a6fbe
AK
12248 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
12249$as_echo_n "checking for library containing tgetent... " >&6; }
ad6254c5 12250if test "${ac_cv_search_tgetent+set}" = set; then
ec6a6fbe 12251 $as_echo_n "(cached) " >&6
ad6254c5
AK
12252else
12253 ac_func_search_save_LIBS=$LIBS
ad6254c5 12254cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12255/* confdefs.h. */
12256_ACEOF
12257cat confdefs.h >>conftest.$ac_ext
12258cat >>conftest.$ac_ext <<_ACEOF
12259/* end confdefs.h. */
12260
7a197a62
AK
12261/* Override any GCC internal prototype to avoid an error.
12262 Use char because int might match the return type of a GCC
12263 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12264#ifdef __cplusplus
12265extern "C"
12266#endif
ad6254c5
AK
12267char tgetent ();
12268int
12269main ()
12270{
7a197a62 12271return tgetent ();
ad6254c5
AK
12272 ;
12273 return 0;
12274}
12275_ACEOF
18dcfb69 12276for ac_lib in '' tinfo ncurses curses termcap termlib; do
7a197a62
AK
12277 if test -z "$ac_lib"; then
12278 ac_res="none required"
12279 else
12280 ac_res=-l$ac_lib
12281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12282 fi
12283 rm -f conftest.$ac_objext conftest$ac_exeext
12284if { (ac_try="$ac_link"
12285case "(($ac_try" in
12286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12287 *) ac_try_echo=$ac_try;;
12288esac
ec6a6fbe
AK
12289eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12290$as_echo "$ac_try_echo") >&5
7a197a62 12291 (eval "$ac_link") 2>conftest.er1
ad6254c5 12292 ac_status=$?
8a2fc586
AK
12293 grep -v '^ *+' conftest.er1 >conftest.err
12294 rm -f conftest.er1
12295 cat conftest.err >&5
ec6a6fbe 12296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12297 (exit $ac_status); } && {
12298 test -z "$ac_c_werror_flag" ||
12299 test ! -s conftest.err
ec6a6fbe
AK
12300 } && test -s conftest$ac_exeext && {
12301 test "$cross_compiling" = yes ||
12302 $as_test_x conftest$ac_exeext
12303 }; then
7a197a62 12304 ac_cv_search_tgetent=$ac_res
ad6254c5 12305else
ec6a6fbe 12306 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12307sed 's/^/| /' conftest.$ac_ext >&5
12308
ad6254c5 12309
7a197a62 12310fi
ad6254c5 12311
ec6a6fbe 12312rm -rf conftest.dSYM
25fbec5b 12313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7a197a62
AK
12314 conftest$ac_exeext
12315 if test "${ac_cv_search_tgetent+set}" = set; then
12316 break
ad6254c5 12317fi
7a197a62
AK
12318done
12319if test "${ac_cv_search_tgetent+set}" = set; then
12320 :
12321else
12322 ac_cv_search_tgetent=no
ad6254c5 12323fi
7a197a62 12324rm conftest.$ac_ext
ad6254c5
AK
12325LIBS=$ac_func_search_save_LIBS
12326fi
ec6a6fbe
AK
12327{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
12328$as_echo "$ac_cv_search_tgetent" >&6; }
7a197a62
AK
12329ac_res=$ac_cv_search_tgetent
12330if test "$ac_res" != no; then
12331 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
06e459df 12332 tg_found=yes
ad6254c5 12333else
06e459df
JM
12334 tg_found=no
12335fi
12336
12337 test x$READLINE:$tg_found = xyes:no &&
ec6a6fbe 12338 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
ad6254c5
AK
12339--enable-readline option (which is enabled by default). Either disable readline
12340support with --disable-readline or download and install termcap from:
12341 ftp.gnu.org/gnu/termcap
12342Note: if you are using precompiled packages you will also need the development
12343 package as well (which may be called termcap-devel or something similar).
12344Note: (n)curses also seems to work as a substitute for termcap. This was
12345 not found either - but you could try installing that as well.
12346" >&5
ec6a6fbe 12347$as_echo "$as_me: error: termcap could not be found which is required for the
ad6254c5
AK
12348--enable-readline option (which is enabled by default). Either disable readline
12349support with --disable-readline or download and install termcap from:
12350 ftp.gnu.org/gnu/termcap
12351Note: if you are using precompiled packages you will also need the development
12352 package as well (which may be called termcap-devel or something similar).
12353Note: (n)curses also seems to work as a substitute for termcap. This was
12354 not found either - but you could try installing that as well.
12355" >&2;}
12356 { (exit 1); exit 1; }; }
ad6254c5
AK
12357fi
12358
12359################################################################################
ec6a6fbe
AK
12360{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12361$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 12362if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 12363 $as_echo_n "(cached) " >&6
ad6254c5
AK
12364else
12365 ac_check_lib_save_LIBS=$LIBS
12366LIBS="-ldl $LIBS"
12367cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12368/* confdefs.h. */
12369_ACEOF
12370cat confdefs.h >>conftest.$ac_ext
12371cat >>conftest.$ac_ext <<_ACEOF
12372/* end confdefs.h. */
12373
7a197a62
AK
12374/* Override any GCC internal prototype to avoid an error.
12375 Use char because int might match the return type of a GCC
12376 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12377#ifdef __cplusplus
12378extern "C"
12379#endif
ad6254c5
AK
12380char dlopen ();
12381int
12382main ()
12383{
7a197a62 12384return dlopen ();
ad6254c5
AK
12385 ;
12386 return 0;
12387}
12388_ACEOF
12389rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12390if { (ac_try="$ac_link"
12391case "(($ac_try" in
12392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12393 *) ac_try_echo=$ac_try;;
12394esac
ec6a6fbe
AK
12395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12396$as_echo "$ac_try_echo") >&5
7a197a62 12397 (eval "$ac_link") 2>conftest.er1
ad6254c5 12398 ac_status=$?
8a2fc586
AK
12399 grep -v '^ *+' conftest.er1 >conftest.err
12400 rm -f conftest.er1
12401 cat conftest.err >&5
ec6a6fbe 12402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12403 (exit $ac_status); } && {
12404 test -z "$ac_c_werror_flag" ||
12405 test ! -s conftest.err
ec6a6fbe
AK
12406 } && test -s conftest$ac_exeext && {
12407 test "$cross_compiling" = yes ||
12408 $as_test_x conftest$ac_exeext
12409 }; then
ad6254c5
AK
12410 ac_cv_lib_dl_dlopen=yes
12411else
ec6a6fbe 12412 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12413sed 's/^/| /' conftest.$ac_ext >&5
12414
7a197a62 12415 ac_cv_lib_dl_dlopen=no
ad6254c5 12416fi
7a197a62 12417
ec6a6fbe 12418rm -rf conftest.dSYM
25fbec5b 12419rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 12420 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
12421LIBS=$ac_check_lib_save_LIBS
12422fi
ec6a6fbe
AK
12423{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12424$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12425if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5
AK
12426 HAVE_LIBDL=yes
12427else
12428 HAVE_LIBDL=no
12429fi
12430
12431
7e9e9502 12432if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
12433
12434cat >>confdefs.h <<\_ACEOF
12435#define HAVE_LIBDL 1
12436_ACEOF
12437
ad6254c5
AK
12438 LIBS="-ldl $LIBS"
12439else
12440 HAVE_LIBDL=no
12441fi
12442
12443################################################################################
12444if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
12445 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
12446 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 12447 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 12448" >&5
ec6a6fbe 12449$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
12450" >&2;}
12451 { (exit 1); exit 1; }; }
12452fi
12453
d0191583 12454################################################################################
ec6a6fbe
AK
12455{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
12456$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
12457# Check whether --enable-selinux was given.
12458if test "${enable_selinux+set}" = set; then
12459 enableval=$enable_selinux; SELINUX=$enableval
12460fi
12461
ec6a6fbe
AK
12462{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
12463$as_echo "$SELINUX" >&6; }
d0191583 12464
ad6254c5
AK
12465################################################################################
12466if test x$SELINUX = xyes; then
ec6a6fbe
AK
12467 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
12468$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 12469if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 12470 $as_echo_n "(cached) " >&6
8a2fc586
AK
12471else
12472 ac_check_lib_save_LIBS=$LIBS
12473LIBS="-lsepol $LIBS"
12474cat >conftest.$ac_ext <<_ACEOF
12475/* confdefs.h. */
12476_ACEOF
12477cat confdefs.h >>conftest.$ac_ext
12478cat >>conftest.$ac_ext <<_ACEOF
12479/* end confdefs.h. */
12480
7a197a62
AK
12481/* Override any GCC internal prototype to avoid an error.
12482 Use char because int might match the return type of a GCC
12483 builtin and then its argument prototype would still apply. */
8a2fc586
AK
12484#ifdef __cplusplus
12485extern "C"
12486#endif
8a2fc586
AK
12487char sepol_check_context ();
12488int
12489main ()
12490{
7a197a62 12491return sepol_check_context ();
8a2fc586
AK
12492 ;
12493 return 0;
12494}
12495_ACEOF
12496rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12497if { (ac_try="$ac_link"
12498case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12501esac
ec6a6fbe
AK
12502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12503$as_echo "$ac_try_echo") >&5
7a197a62 12504 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
12505 ac_status=$?
12506 grep -v '^ *+' conftest.er1 >conftest.err
12507 rm -f conftest.er1
12508 cat conftest.err >&5
ec6a6fbe 12509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12510 (exit $ac_status); } && {
12511 test -z "$ac_c_werror_flag" ||
12512 test ! -s conftest.err
ec6a6fbe
AK
12513 } && test -s conftest$ac_exeext && {
12514 test "$cross_compiling" = yes ||
12515 $as_test_x conftest$ac_exeext
12516 }; then
8a2fc586
AK
12517 ac_cv_lib_sepol_sepol_check_context=yes
12518else
ec6a6fbe 12519 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
12520sed 's/^/| /' conftest.$ac_ext >&5
12521
7a197a62 12522 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 12523fi
7a197a62 12524
ec6a6fbe 12525rm -rf conftest.dSYM
25fbec5b 12526rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
12527 conftest$ac_exeext conftest.$ac_ext
12528LIBS=$ac_check_lib_save_LIBS
12529fi
ec6a6fbe
AK
12530{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
12531$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
12532if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586
AK
12533 HAVE_SEPOL=yes
12534else
12535 HAVE_SEPOL=no
12536fi
12537
8a2fc586
AK
12538
12539 if test x$HAVE_SEPOL = xyes; then
d0191583
JM
12540
12541cat >>confdefs.h <<\_ACEOF
12542#define HAVE_SEPOL 1
12543_ACEOF
12544
8a2fc586
AK
12545 LIBS="-lsepol $LIBS"
12546 fi
12547
ec6a6fbe
AK
12548 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
12549$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 12550if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 12551 $as_echo_n "(cached) " >&6
ad6254c5
AK
12552else
12553 ac_check_lib_save_LIBS=$LIBS
12554LIBS="-lselinux $LIBS"
12555cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12556/* confdefs.h. */
12557_ACEOF
12558cat confdefs.h >>conftest.$ac_ext
12559cat >>conftest.$ac_ext <<_ACEOF
12560/* end confdefs.h. */
12561
7a197a62
AK
12562/* Override any GCC internal prototype to avoid an error.
12563 Use char because int might match the return type of a GCC
12564 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12565#ifdef __cplusplus
12566extern "C"
12567#endif
ad6254c5
AK
12568char is_selinux_enabled ();
12569int
12570main ()
12571{
7a197a62 12572return is_selinux_enabled ();
ad6254c5
AK
12573 ;
12574 return 0;
12575}
12576_ACEOF
12577rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12578if { (ac_try="$ac_link"
12579case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12582esac
ec6a6fbe
AK
12583eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12584$as_echo "$ac_try_echo") >&5
7a197a62 12585 (eval "$ac_link") 2>conftest.er1
ad6254c5 12586 ac_status=$?
8a2fc586
AK
12587 grep -v '^ *+' conftest.er1 >conftest.err
12588 rm -f conftest.er1
12589 cat conftest.err >&5
ec6a6fbe 12590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12591 (exit $ac_status); } && {
12592 test -z "$ac_c_werror_flag" ||
12593 test ! -s conftest.err
ec6a6fbe
AK
12594 } && test -s conftest$ac_exeext && {
12595 test "$cross_compiling" = yes ||
12596 $as_test_x conftest$ac_exeext
12597 }; then
ad6254c5
AK
12598 ac_cv_lib_selinux_is_selinux_enabled=yes
12599else
ec6a6fbe 12600 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12601sed 's/^/| /' conftest.$ac_ext >&5
12602
7a197a62 12603 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 12604fi
7a197a62 12605
ec6a6fbe 12606rm -rf conftest.dSYM
25fbec5b 12607rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 12608 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
12609LIBS=$ac_check_lib_save_LIBS
12610fi
ec6a6fbe
AK
12611{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
12612$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
12613if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5
AK
12614 HAVE_SELINUX=yes
12615else
12616 HAVE_SELINUX=no
12617fi
12618
ad6254c5
AK
12619
12620 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
12621
12622cat >>confdefs.h <<\_ACEOF
12623#define HAVE_SELINUX 1
12624_ACEOF
12625
ad6254c5
AK
12626 LIBS="-lselinux $LIBS"
12627 else
ec6a6fbe
AK
12628 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
12629$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
66e941e8
JM
12630 fi
12631
d0191583 12632 # With --enable-static_link and selinux enabled, linking
66e941e8
JM
12633 # fails on at least Debian unstable due to unsatisfied references
12634 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
12635 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
12636 lvm_saved_libs=$LIBS
12637 LIBS="$LIBS -static"
ec6a6fbe
AK
12638 { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12639$as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
66e941e8 12640if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
ec6a6fbe 12641 $as_echo_n "(cached) " >&6
66e941e8
JM
12642else
12643 ac_func_search_save_LIBS=$LIBS
12644cat >conftest.$ac_ext <<_ACEOF
12645/* confdefs.h. */
12646_ACEOF
12647cat confdefs.h >>conftest.$ac_ext
12648cat >>conftest.$ac_ext <<_ACEOF
12649/* end confdefs.h. */
12650
12651/* Override any GCC internal prototype to avoid an error.
12652 Use char because int might match the return type of a GCC
12653 builtin and then its argument prototype would still apply. */
12654#ifdef __cplusplus
12655extern "C"
12656#endif
12657char pthread_mutex_lock ();
12658int
12659main ()
12660{
12661return pthread_mutex_lock ();
12662 ;
12663 return 0;
12664}
12665_ACEOF
12666for ac_lib in '' pthread; do
12667 if test -z "$ac_lib"; then
12668 ac_res="none required"
12669 else
12670 ac_res=-l$ac_lib
12671 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12672 fi
12673 rm -f conftest.$ac_objext conftest$ac_exeext
12674if { (ac_try="$ac_link"
12675case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12678esac
ec6a6fbe
AK
12679eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12680$as_echo "$ac_try_echo") >&5
66e941e8
JM
12681 (eval "$ac_link") 2>conftest.er1
12682 ac_status=$?
12683 grep -v '^ *+' conftest.er1 >conftest.err
12684 rm -f conftest.er1
12685 cat conftest.err >&5
ec6a6fbe 12686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12687 (exit $ac_status); } && {
12688 test -z "$ac_c_werror_flag" ||
12689 test ! -s conftest.err
ec6a6fbe
AK
12690 } && test -s conftest$ac_exeext && {
12691 test "$cross_compiling" = yes ||
12692 $as_test_x conftest$ac_exeext
12693 }; then
66e941e8
JM
12694 ac_cv_search_pthread_mutex_lock=$ac_res
12695else
ec6a6fbe 12696 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
12697sed 's/^/| /' conftest.$ac_ext >&5
12698
12699
12700fi
12701
ec6a6fbe 12702rm -rf conftest.dSYM
25fbec5b 12703rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66e941e8
JM
12704 conftest$ac_exeext
12705 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12706 break
12707fi
12708done
12709if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12710 :
12711else
12712 ac_cv_search_pthread_mutex_lock=no
12713fi
12714rm conftest.$ac_ext
12715LIBS=$ac_func_search_save_LIBS
12716fi
ec6a6fbe
AK
12717{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12718$as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
66e941e8
JM
12719ac_res=$ac_cv_search_pthread_mutex_lock
12720if test "$ac_res" != no; then
12721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12722 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
12723 LIB_PTHREAD=-lpthread
12724fi
12725
12726 LIBS=$lvm_saved_libs
ad6254c5
AK
12727 fi
12728fi
12729
8b1a3214
AK
12730################################################################################
12731if test x$REALTIME = xyes; then
ec6a6fbe
AK
12732 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12733$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 12734if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 12735 $as_echo_n "(cached) " >&6
8b1a3214
AK
12736else
12737 ac_check_lib_save_LIBS=$LIBS
12738LIBS="-lrt $LIBS"
12739cat >conftest.$ac_ext <<_ACEOF
12740/* confdefs.h. */
12741_ACEOF
12742cat confdefs.h >>conftest.$ac_ext
12743cat >>conftest.$ac_ext <<_ACEOF
12744/* end confdefs.h. */
12745
7a197a62
AK
12746/* Override any GCC internal prototype to avoid an error.
12747 Use char because int might match the return type of a GCC
12748 builtin and then its argument prototype would still apply. */
8b1a3214
AK
12749#ifdef __cplusplus
12750extern "C"
12751#endif
8b1a3214
AK
12752char clock_gettime ();
12753int
12754main ()
12755{
7a197a62 12756return clock_gettime ();
8b1a3214
AK
12757 ;
12758 return 0;
12759}
12760_ACEOF
12761rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12762if { (ac_try="$ac_link"
12763case "(($ac_try" in
12764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765 *) ac_try_echo=$ac_try;;
12766esac
ec6a6fbe
AK
12767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12768$as_echo "$ac_try_echo") >&5
7a197a62 12769 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
12770 ac_status=$?
12771 grep -v '^ *+' conftest.er1 >conftest.err
12772 rm -f conftest.er1
12773 cat conftest.err >&5
ec6a6fbe 12774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12775 (exit $ac_status); } && {
12776 test -z "$ac_c_werror_flag" ||
12777 test ! -s conftest.err
ec6a6fbe
AK
12778 } && test -s conftest$ac_exeext && {
12779 test "$cross_compiling" = yes ||
12780 $as_test_x conftest$ac_exeext
12781 }; then
8b1a3214
AK
12782 ac_cv_lib_rt_clock_gettime=yes
12783else
ec6a6fbe 12784 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
12785sed 's/^/| /' conftest.$ac_ext >&5
12786
7a197a62 12787 ac_cv_lib_rt_clock_gettime=no
8b1a3214 12788fi
7a197a62 12789
ec6a6fbe 12790rm -rf conftest.dSYM
25fbec5b 12791rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
12792 conftest$ac_exeext conftest.$ac_ext
12793LIBS=$ac_check_lib_save_LIBS
12794fi
ec6a6fbe
AK
12795{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12796$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12797if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
12798 HAVE_REALTIME=yes
12799else
12800 HAVE_REALTIME=no
12801fi
12802
8b1a3214
AK
12803
12804 if test x$HAVE_REALTIME = xyes; then
12805
12806cat >>confdefs.h <<\_ACEOF
12807#define HAVE_REALTIME 1
12808_ACEOF
12809
12810 LIBS="-lrt $LIBS"
12811 else
ec6a6fbe
AK
12812 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
12813$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
12814 fi
12815fi
12816
ad6254c5
AK
12817################################################################################
12818
12819for ac_header in getopt.h
12820do
ec6a6fbe 12821as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 12822if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
12823 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12824$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12825if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12826 $as_echo_n "(cached) " >&6
ad6254c5 12827fi
ec6a6fbe
AK
12828ac_res=`eval 'as_val=${'$as_ac_Header'}
12829 $as_echo "$as_val"'`
12830 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12831$as_echo "$ac_res" >&6; }
ad6254c5
AK
12832else
12833 # Is the header compilable?
ec6a6fbe
AK
12834{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12835$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 12836cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12837/* confdefs.h. */
12838_ACEOF
12839cat confdefs.h >>conftest.$ac_ext
12840cat >>conftest.$ac_ext <<_ACEOF
12841/* end confdefs.h. */
12842$ac_includes_default
12843#include <$ac_header>
12844_ACEOF
12845rm -f conftest.$ac_objext
7a197a62
AK
12846if { (ac_try="$ac_compile"
12847case "(($ac_try" in
12848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849 *) ac_try_echo=$ac_try;;
12850esac
ec6a6fbe
AK
12851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12852$as_echo "$ac_try_echo") >&5
7a197a62 12853 (eval "$ac_compile") 2>conftest.er1
ad6254c5 12854 ac_status=$?
8a2fc586
AK
12855 grep -v '^ *+' conftest.er1 >conftest.err
12856 rm -f conftest.er1
12857 cat conftest.err >&5
ec6a6fbe 12858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12859 (exit $ac_status); } && {
12860 test -z "$ac_c_werror_flag" ||
12861 test ! -s conftest.err
12862 } && test -s conftest.$ac_objext; then
ad6254c5
AK
12863 ac_header_compiler=yes
12864else
ec6a6fbe 12865 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12866sed 's/^/| /' conftest.$ac_ext >&5
12867
7a197a62 12868 ac_header_compiler=no
ad6254c5 12869fi
7a197a62
AK
12870
12871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
12872{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12873$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
12874
12875# Is the header present?
ec6a6fbe
AK
12876{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12877$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 12878cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12879/* confdefs.h. */
12880_ACEOF
12881cat confdefs.h >>conftest.$ac_ext
12882cat >>conftest.$ac_ext <<_ACEOF
12883/* end confdefs.h. */
12884#include <$ac_header>
12885_ACEOF
7a197a62
AK
12886if { (ac_try="$ac_cpp conftest.$ac_ext"
12887case "(($ac_try" in
12888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889 *) ac_try_echo=$ac_try;;
12890esac
ec6a6fbe
AK
12891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12892$as_echo "$ac_try_echo") >&5
7a197a62 12893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
12894 ac_status=$?
12895 grep -v '^ *+' conftest.er1 >conftest.err
12896 rm -f conftest.er1
12897 cat conftest.err >&5
ec6a6fbe 12898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12899 (exit $ac_status); } >/dev/null && {
12900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12901 test ! -s conftest.err
12902 }; then
ad6254c5
AK
12903 ac_header_preproc=yes
12904else
ec6a6fbe 12905 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12906sed 's/^/| /' conftest.$ac_ext >&5
12907
12908 ac_header_preproc=no
12909fi
7a197a62 12910
ad6254c5 12911rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
12912{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12913$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
12914
12915# So? What about this header?
8a2fc586
AK
12916case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12917 yes:no: )
ec6a6fbe
AK
12918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12919$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12921$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 12922 ac_header_preproc=yes
ad6254c5 12923 ;;
8a2fc586 12924 no:yes:* )
ec6a6fbe
AK
12925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12926$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12928$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12930$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12932$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12934$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12936$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 12937
ad6254c5
AK
12938 ;;
12939esac
ec6a6fbe
AK
12940{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12941$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12942if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12943 $as_echo_n "(cached) " >&6
ad6254c5 12944else
8a2fc586 12945 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 12946fi
ec6a6fbe
AK
12947ac_res=`eval 'as_val=${'$as_ac_Header'}
12948 $as_echo "$as_val"'`
12949 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12950$as_echo "$ac_res" >&6; }
ad6254c5
AK
12951
12952fi
ec6a6fbe
AK
12953as_val=`eval 'as_val=${'$as_ac_Header'}
12954 $as_echo "$as_val"'`
12955 if test "x$as_val" = x""yes; then
ad6254c5 12956 cat >>confdefs.h <<_ACEOF
ec6a6fbe 12957#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 12958_ACEOF
72b2cb61
AK
12959
12960cat >>confdefs.h <<\_ACEOF
12961#define HAVE_GETOPTLONG 1
12962_ACEOF
12963
ad6254c5
AK
12964fi
12965
12966done
12967
12968
12969################################################################################
06e459df 12970if test x$READLINE != xno; then
bc1024f8
JM
12971 rl_found=yes
12972
ec6a6fbe
AK
12973{ $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
12974$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 12975if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 12976 $as_echo_n "(cached) " >&6
ad6254c5
AK
12977else
12978 ac_check_lib_save_LIBS=$LIBS
12979LIBS="-lreadline $LIBS"
12980cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12981/* confdefs.h. */
12982_ACEOF
12983cat confdefs.h >>conftest.$ac_ext
12984cat >>conftest.$ac_ext <<_ACEOF
12985/* end confdefs.h. */
12986
7a197a62
AK
12987/* Override any GCC internal prototype to avoid an error.
12988 Use char because int might match the return type of a GCC
12989 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12990#ifdef __cplusplus
12991extern "C"
12992#endif
ad6254c5
AK
12993char readline ();
12994int
12995main ()
12996{
7a197a62 12997return readline ();
ad6254c5
AK
12998 ;
12999 return 0;
13000}
13001_ACEOF
13002rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13003if { (ac_try="$ac_link"
13004case "(($ac_try" in
13005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13006 *) ac_try_echo=$ac_try;;
13007esac
ec6a6fbe
AK
13008eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13009$as_echo "$ac_try_echo") >&5
7a197a62 13010 (eval "$ac_link") 2>conftest.er1
ad6254c5 13011 ac_status=$?
8a2fc586
AK
13012 grep -v '^ *+' conftest.er1 >conftest.err
13013 rm -f conftest.er1
13014 cat conftest.err >&5
ec6a6fbe 13015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13016 (exit $ac_status); } && {
13017 test -z "$ac_c_werror_flag" ||
13018 test ! -s conftest.err
ec6a6fbe
AK
13019 } && test -s conftest$ac_exeext && {
13020 test "$cross_compiling" = yes ||
13021 $as_test_x conftest$ac_exeext
13022 }; then
ad6254c5
AK
13023 ac_cv_lib_readline_readline=yes
13024else
ec6a6fbe 13025 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13026sed 's/^/| /' conftest.$ac_ext >&5
13027
7a197a62 13028 ac_cv_lib_readline_readline=no
ad6254c5 13029fi
7a197a62 13030
ec6a6fbe 13031rm -rf conftest.dSYM
25fbec5b 13032rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13033 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
13034LIBS=$ac_check_lib_save_LIBS
13035fi
ec6a6fbe
AK
13036{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13037$as_echo "$ac_cv_lib_readline_readline" >&6; }
13038if test "x$ac_cv_lib_readline_readline" = x""yes; then
bc1024f8
JM
13039 cat >>confdefs.h <<_ACEOF
13040#define HAVE_LIBREADLINE 1
13041_ACEOF
13042
13043 LIBS="-lreadline $LIBS"
13044
ad6254c5 13045else
06e459df
JM
13046 rl_found=no
13047fi
13048
13049 test x$READLINE:$rl_found = xyes:no &&
ec6a6fbe 13050 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
13051--enable-readline option (which is enabled by default). Either disable readline
13052support with --disable-readline or download and install readline from:
13053 ftp.gnu.org/gnu/readline
13054Note: if you are using precompiled packages you will also need the development
13055package as well (which may be called readline-devel or something similar).
13056" >&5
ec6a6fbe 13057$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
13058--enable-readline option (which is enabled by default). Either disable readline
13059support with --disable-readline or download and install readline from:
13060 ftp.gnu.org/gnu/readline
13061Note: if you are using precompiled packages you will also need the development
13062package as well (which may be called readline-devel or something similar).
13063" >&2;}
13064 { (exit 1); exit 1; }; }
06e459df 13065 if test $rl_found = yes; then
bc1024f8
JM
13066
13067for ac_func in rl_completion_matches
13068do
ec6a6fbe
AK
13069as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13070{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13071$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 13072if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13073 $as_echo_n "(cached) " >&6
ad6254c5
AK
13074else
13075 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13076/* confdefs.h. */
13077_ACEOF
13078cat confdefs.h >>conftest.$ac_ext
13079cat >>conftest.$ac_ext <<_ACEOF
13080/* end confdefs.h. */
bc1024f8 13081/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 13082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 13083#define $ac_func innocuous_$ac_func
8a2fc586 13084
ad6254c5 13085/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 13086 which can conflict with char $ac_func (); below.
ad6254c5
AK
13087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13088 <limits.h> exists even on freestanding compilers. */
8a2fc586 13089
ad6254c5
AK
13090#ifdef __STDC__
13091# include <limits.h>
13092#else
13093# include <assert.h>
13094#endif
8a2fc586 13095
bc1024f8 13096#undef $ac_func
8a2fc586 13097
7a197a62
AK
13098/* Override any GCC internal prototype to avoid an error.
13099 Use char because int might match the return type of a GCC
13100 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13101#ifdef __cplusplus
13102extern "C"
ad6254c5 13103#endif
bc1024f8 13104char $ac_func ();
ad6254c5
AK
13105/* The GNU C library defines this for functions which it implements
13106 to always fail with ENOSYS. Some functions are actually named
13107 something starting with __ and the normal name is an alias. */
bc1024f8 13108#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 13109choke me
ad6254c5
AK
13110#endif
13111
13112int
13113main ()
13114{
bc1024f8 13115return $ac_func ();
ad6254c5
AK
13116 ;
13117 return 0;
13118}
13119_ACEOF
13120rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13121if { (ac_try="$ac_link"
13122case "(($ac_try" in
13123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124 *) ac_try_echo=$ac_try;;
13125esac
ec6a6fbe
AK
13126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13127$as_echo "$ac_try_echo") >&5
7a197a62 13128 (eval "$ac_link") 2>conftest.er1
ad6254c5 13129 ac_status=$?
8a2fc586
AK
13130 grep -v '^ *+' conftest.er1 >conftest.err
13131 rm -f conftest.er1
13132 cat conftest.err >&5
ec6a6fbe 13133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13134 (exit $ac_status); } && {
13135 test -z "$ac_c_werror_flag" ||
13136 test ! -s conftest.err
ec6a6fbe
AK
13137 } && test -s conftest$ac_exeext && {
13138 test "$cross_compiling" = yes ||
13139 $as_test_x conftest$ac_exeext
13140 }; then
bc1024f8 13141 eval "$as_ac_var=yes"
ad6254c5 13142else
ec6a6fbe 13143 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13144sed 's/^/| /' conftest.$ac_ext >&5
13145
bc1024f8 13146 eval "$as_ac_var=no"
ad6254c5 13147fi
7a197a62 13148
ec6a6fbe 13149rm -rf conftest.dSYM
25fbec5b 13150rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13151 conftest$ac_exeext conftest.$ac_ext
ad6254c5 13152fi
ec6a6fbe
AK
13153ac_res=`eval 'as_val=${'$as_ac_var'}
13154 $as_echo "$as_val"'`
13155 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13156$as_echo "$ac_res" >&6; }
13157as_val=`eval 'as_val=${'$as_ac_var'}
13158 $as_echo "$as_val"'`
13159 if test "x$as_val" = x""yes; then
bc1024f8 13160 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13161#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
13162_ACEOF
13163
13164fi
bc1024f8 13165done
ad6254c5 13166
d179cc7a
JM
13167
13168cat >>confdefs.h <<\_ACEOF
13169#define READLINE_SUPPORT 1
13170_ACEOF
13171
06e459df 13172 fi
ad6254c5
AK
13173fi
13174
13175################################################################################
ec6a6fbe
AK
13176{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
13177$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 13178# Check whether --enable-nls was given.
ad6254c5 13179if test "${enable_nls+set}" = set; then
7a197a62 13180 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
13181else
13182 INTL=no
7a197a62
AK
13183fi
13184
ec6a6fbe
AK
13185{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
13186$as_echo "$INTL" >&6; }
ad6254c5
AK
13187
13188if test x$INTL = xyes; then
93bd259b 13189# FIXME - Move this - can be device-mapper too
ad6254c5
AK
13190 INTL_PACKAGE="lvm2"
13191 # Extract the first word of "msgfmt", so it can be a program name with args.
13192set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
13193{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13194$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 13195if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 13196 $as_echo_n "(cached) " >&6
ad6254c5
AK
13197else
13198 case $MSGFMT in
13199 [\\/]* | ?:[\\/]*)
13200 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13201 ;;
13202 *)
13203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13204for as_dir in $PATH
13205do
13206 IFS=$as_save_IFS
13207 test -z "$as_dir" && as_dir=.
13208 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 13209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 13210 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 13211 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
13212 break 2
13213 fi
13214done
13215done
7a197a62 13216IFS=$as_save_IFS
ad6254c5
AK
13217
13218 ;;
13219esac
13220fi
13221MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 13222if test -n "$MSGFMT"; then
ec6a6fbe
AK
13223 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
13224$as_echo "$MSGFMT" >&6; }
ad6254c5 13225else
ec6a6fbe
AK
13226 { $as_echo "$as_me:$LINENO: result: no" >&5
13227$as_echo "no" >&6; }
ad6254c5
AK
13228fi
13229
7a197a62 13230
ad6254c5 13231 if [ "x$MSGFMT" == x ];
ec6a6fbe 13232 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 13233 " >&5
ec6a6fbe 13234$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
13235 " >&2;}
13236 { (exit 1); exit 1; }; }
13237 fi;
13238
13239
7a197a62 13240# Check whether --with-localedir was given.
ad6254c5 13241if test "${with_localedir+set}" = set; then
7a197a62 13242 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
13243else
13244 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
13245fi
13246
ad6254c5
AK
13247fi
13248
13249################################################################################
13250
7a197a62 13251# Check whether --with-confdir was given.
ad6254c5 13252if test "${with_confdir+set}" = set; then
7a197a62 13253 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
13254else
13255 CONFDIR='/etc'
7a197a62
AK
13256fi
13257
ad6254c5
AK
13258
13259
7a197a62 13260# Check whether --with-staticdir was given.
ad6254c5 13261if test "${with_staticdir+set}" = set; then
7a197a62 13262 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
13263else
13264 STATICDIR='${exec_prefix}/sbin'
7a197a62 13265fi
ad6254c5 13266
33f732c5 13267
7a197a62 13268
68f2de6d
AK
13269# Check whether --with-usrlibdir was given.
13270if test "${with_usrlibdir+set}" = set; then
13271 withval=$with_usrlibdir; usrlibdir="$withval"
13272else
13273 usrlibdir='${prefix}/lib'
13274fi
13275
13276
13277
13278# Check whether --with-usrsbindir was given.
13279if test "${with_usrsbindir+set}" = set; then
13280 withval=$with_usrsbindir; usrsbindir="$withval"
13281else
13282 usrsbindir='${prefix}/sbin'
13283fi
13284
13285
a5f46f6a
AK
13286################################################################################
13287
13288# Check whether --with-udev_prefix was given.
13289if test "${with_udev_prefix+set}" = set; then
13290 withval=$with_udev_prefix; udev_prefix="$withval"
13291else
13292 udev_prefix='${exec_prefix}'
13293fi
13294
13295
78ce7acc
AK
13296
13297# Check whether --with-udevdir was given.
13298if test "${with_udevdir+set}" = set; then
13299 withval=$with_udevdir; udevdir="$withval"
13300else
13301 udevdir='${udev_prefix}/lib/udev/rules.d'
13302fi
13303
a5f46f6a 13304
ad6254c5
AK
13305################################################################################
13306if test x$READLINE = xyes; then
13307
13308
13309for ac_header in readline/readline.h readline/history.h
13310do
ec6a6fbe 13311as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13312if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13313 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13314$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13315if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13316 $as_echo_n "(cached) " >&6
ad6254c5 13317fi
ec6a6fbe
AK
13318ac_res=`eval 'as_val=${'$as_ac_Header'}
13319 $as_echo "$as_val"'`
13320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13321$as_echo "$ac_res" >&6; }
ad6254c5
AK
13322else
13323 # Is the header compilable?
ec6a6fbe
AK
13324{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13325$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13326cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13327/* confdefs.h. */
13328_ACEOF
13329cat confdefs.h >>conftest.$ac_ext
13330cat >>conftest.$ac_ext <<_ACEOF
13331/* end confdefs.h. */
13332$ac_includes_default
13333#include <$ac_header>
13334_ACEOF
13335rm -f conftest.$ac_objext
7a197a62
AK
13336if { (ac_try="$ac_compile"
13337case "(($ac_try" in
13338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339 *) ac_try_echo=$ac_try;;
13340esac
ec6a6fbe
AK
13341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13342$as_echo "$ac_try_echo") >&5
7a197a62 13343 (eval "$ac_compile") 2>conftest.er1
ad6254c5 13344 ac_status=$?
8a2fc586
AK
13345 grep -v '^ *+' conftest.er1 >conftest.err
13346 rm -f conftest.er1
13347 cat conftest.err >&5
ec6a6fbe 13348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13349 (exit $ac_status); } && {
13350 test -z "$ac_c_werror_flag" ||
13351 test ! -s conftest.err
13352 } && test -s conftest.$ac_objext; then
ad6254c5
AK
13353 ac_header_compiler=yes
13354else
ec6a6fbe 13355 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13356sed 's/^/| /' conftest.$ac_ext >&5
13357
7a197a62 13358 ac_header_compiler=no
ad6254c5 13359fi
7a197a62
AK
13360
13361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13362{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13363$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13364
13365# Is the header present?
ec6a6fbe
AK
13366{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13367$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 13368cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13369/* confdefs.h. */
13370_ACEOF
13371cat confdefs.h >>conftest.$ac_ext
13372cat >>conftest.$ac_ext <<_ACEOF
13373/* end confdefs.h. */
13374#include <$ac_header>
13375_ACEOF
7a197a62
AK
13376if { (ac_try="$ac_cpp conftest.$ac_ext"
13377case "(($ac_try" in
13378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13379 *) ac_try_echo=$ac_try;;
13380esac
ec6a6fbe
AK
13381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13382$as_echo "$ac_try_echo") >&5
7a197a62 13383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
13384 ac_status=$?
13385 grep -v '^ *+' conftest.er1 >conftest.err
13386 rm -f conftest.er1
13387 cat conftest.err >&5
ec6a6fbe 13388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13389 (exit $ac_status); } >/dev/null && {
13390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13391 test ! -s conftest.err
13392 }; then
ad6254c5
AK
13393 ac_header_preproc=yes
13394else
ec6a6fbe 13395 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13396sed 's/^/| /' conftest.$ac_ext >&5
13397
13398 ac_header_preproc=no
13399fi
7a197a62 13400
ad6254c5 13401rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
13402{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13403$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
13404
13405# So? What about this header?
8a2fc586
AK
13406case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13407 yes:no: )
ec6a6fbe
AK
13408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13409$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13411$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 13412 ac_header_preproc=yes
ad6254c5 13413 ;;
8a2fc586 13414 no:yes:* )
ec6a6fbe
AK
13415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13416$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13418$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13420$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13422$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13424$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13426$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 13427
ad6254c5
AK
13428 ;;
13429esac
ec6a6fbe
AK
13430{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13431$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13432if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13433 $as_echo_n "(cached) " >&6
ad6254c5 13434else
8a2fc586 13435 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 13436fi
ec6a6fbe
AK
13437ac_res=`eval 'as_val=${'$as_ac_Header'}
13438 $as_echo "$as_val"'`
13439 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13440$as_echo "$ac_res" >&6; }
ad6254c5
AK
13441
13442fi
ec6a6fbe
AK
13443as_val=`eval 'as_val=${'$as_ac_Header'}
13444 $as_echo "$as_val"'`
13445 if test "x$as_val" = x""yes; then
ad6254c5 13446 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13447#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
13448_ACEOF
13449
13450else
ec6a6fbe
AK
13451 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
13452$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
13453 { (exit 1); exit 1; }; }
13454fi
13455
13456done
13457
13458fi
13459
5c7fc7c4 13460if test x$CLVMD != xnone; then
ad6254c5
AK
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471for 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
13472do
ec6a6fbe 13473as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13474if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13475 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13476$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13477if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13478 $as_echo_n "(cached) " >&6
ad6254c5 13479fi
ec6a6fbe
AK
13480ac_res=`eval 'as_val=${'$as_ac_Header'}
13481 $as_echo "$as_val"'`
13482 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13483$as_echo "$ac_res" >&6; }
ad6254c5
AK
13484else
13485 # Is the header compilable?
ec6a6fbe
AK
13486{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13487$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13488cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13489/* confdefs.h. */
13490_ACEOF
13491cat confdefs.h >>conftest.$ac_ext
13492cat >>conftest.$ac_ext <<_ACEOF
13493/* end confdefs.h. */
13494$ac_includes_default
13495#include <$ac_header>
13496_ACEOF
13497rm -f conftest.$ac_objext
7a197a62
AK
13498if { (ac_try="$ac_compile"
13499case "(($ac_try" in
13500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13501 *) ac_try_echo=$ac_try;;
13502esac
ec6a6fbe
AK
13503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13504$as_echo "$ac_try_echo") >&5
7a197a62 13505 (eval "$ac_compile") 2>conftest.er1
ad6254c5 13506 ac_status=$?
8a2fc586
AK
13507 grep -v '^ *+' conftest.er1 >conftest.err
13508 rm -f conftest.er1
13509 cat conftest.err >&5
ec6a6fbe 13510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13511 (exit $ac_status); } && {
13512 test -z "$ac_c_werror_flag" ||
13513 test ! -s conftest.err
13514 } && test -s conftest.$ac_objext; then
ad6254c5
AK
13515 ac_header_compiler=yes
13516else
ec6a6fbe 13517 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13518sed 's/^/| /' conftest.$ac_ext >&5
13519
7a197a62 13520 ac_header_compiler=no
ad6254c5 13521fi
7a197a62
AK
13522
13523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13524{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13525$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13526
13527# Is the header present?
ec6a6fbe
AK
13528{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13529$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 13530cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13531/* confdefs.h. */
13532_ACEOF
13533cat confdefs.h >>conftest.$ac_ext
13534cat >>conftest.$ac_ext <<_ACEOF
13535/* end confdefs.h. */
13536#include <$ac_header>
13537_ACEOF
7a197a62
AK
13538if { (ac_try="$ac_cpp conftest.$ac_ext"
13539case "(($ac_try" in
13540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541 *) ac_try_echo=$ac_try;;
13542esac
ec6a6fbe
AK
13543eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13544$as_echo "$ac_try_echo") >&5
7a197a62 13545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
13546 ac_status=$?
13547 grep -v '^ *+' conftest.er1 >conftest.err
13548 rm -f conftest.er1
13549 cat conftest.err >&5
ec6a6fbe 13550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13551 (exit $ac_status); } >/dev/null && {
13552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13553 test ! -s conftest.err
13554 }; then
ad6254c5
AK
13555 ac_header_preproc=yes
13556else
ec6a6fbe 13557 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13558sed 's/^/| /' conftest.$ac_ext >&5
13559
13560 ac_header_preproc=no
13561fi
7a197a62 13562
ad6254c5 13563rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
13564{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13565$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
13566
13567# So? What about this header?
8a2fc586
AK
13568case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13569 yes:no: )
ec6a6fbe
AK
13570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13571$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13573$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 13574 ac_header_preproc=yes
ad6254c5 13575 ;;
8a2fc586 13576 no:yes:* )
ec6a6fbe
AK
13577 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13578$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13579 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13580$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13581 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13582$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13583 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13584$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13585 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13586$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13587 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13588$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 13589
ad6254c5
AK
13590 ;;
13591esac
ec6a6fbe
AK
13592{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13593$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13594if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13595 $as_echo_n "(cached) " >&6
ad6254c5 13596else
8a2fc586 13597 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 13598fi
ec6a6fbe
AK
13599ac_res=`eval 'as_val=${'$as_ac_Header'}
13600 $as_echo "$as_val"'`
13601 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13602$as_echo "$ac_res" >&6; }
ad6254c5
AK
13603
13604fi
ec6a6fbe
AK
13605as_val=`eval 'as_val=${'$as_ac_Header'}
13606 $as_echo "$as_val"'`
13607 if test "x$as_val" = x""yes; then
ad6254c5 13608 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13609#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
13610_ACEOF
13611
13612else
ec6a6fbe
AK
13613 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
13614$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 13615 { (exit 1); exit 1; }; }
795ca3e5
AK
13616fi
13617
ad6254c5
AK
13618done
13619
13620
795ca3e5 13621
8106cdd5 13622
ad6254c5
AK
13623
13624
13625for ac_func in dup2 getmntent memmove select socket
13626do
ec6a6fbe
AK
13627as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13628{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13629$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 13630if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13631 $as_echo_n "(cached) " >&6
795ca3e5 13632else
ad6254c5 13633 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13634/* confdefs.h. */
13635_ACEOF
13636cat confdefs.h >>conftest.$ac_ext
13637cat >>conftest.$ac_ext <<_ACEOF
13638/* end confdefs.h. */
8a2fc586
AK
13639/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13641#define $ac_func innocuous_$ac_func
13642
795ca3e5 13643/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
13644 which can conflict with char $ac_func (); below.
13645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13646 <limits.h> exists even on freestanding compilers. */
8a2fc586 13647
ad6254c5
AK
13648#ifdef __STDC__
13649# include <limits.h>
13650#else
13651# include <assert.h>
13652#endif
8a2fc586
AK
13653
13654#undef $ac_func
13655
7a197a62
AK
13656/* Override any GCC internal prototype to avoid an error.
13657 Use char because int might match the return type of a GCC
13658 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13659#ifdef __cplusplus
13660extern "C"
ad6254c5 13661#endif
ad6254c5 13662char $ac_func ();
795ca3e5
AK
13663/* The GNU C library defines this for functions which it implements
13664 to always fail with ENOSYS. Some functions are actually named
13665 something starting with __ and the normal name is an alias. */
7a197a62 13666#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 13667choke me
795ca3e5
AK
13668#endif
13669
ad6254c5
AK
13670int
13671main ()
13672{
7a197a62 13673return $ac_func ();
ad6254c5
AK
13674 ;
13675 return 0;
13676}
13677_ACEOF
13678rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13679if { (ac_try="$ac_link"
13680case "(($ac_try" in
13681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682 *) ac_try_echo=$ac_try;;
13683esac
ec6a6fbe
AK
13684eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13685$as_echo "$ac_try_echo") >&5
7a197a62 13686 (eval "$ac_link") 2>conftest.er1
ad6254c5 13687 ac_status=$?
8a2fc586
AK
13688 grep -v '^ *+' conftest.er1 >conftest.err
13689 rm -f conftest.er1
13690 cat conftest.err >&5
ec6a6fbe 13691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13692 (exit $ac_status); } && {
13693 test -z "$ac_c_werror_flag" ||
13694 test ! -s conftest.err
ec6a6fbe
AK
13695 } && test -s conftest$ac_exeext && {
13696 test "$cross_compiling" = yes ||
13697 $as_test_x conftest$ac_exeext
13698 }; then
ad6254c5 13699 eval "$as_ac_var=yes"
795ca3e5 13700else
ec6a6fbe 13701 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13702sed 's/^/| /' conftest.$ac_ext >&5
13703
7a197a62 13704 eval "$as_ac_var=no"
80992638 13705fi
7a197a62 13706
ec6a6fbe 13707rm -rf conftest.dSYM
25fbec5b 13708rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13709 conftest$ac_exeext conftest.$ac_ext
795ca3e5 13710fi
ec6a6fbe
AK
13711ac_res=`eval 'as_val=${'$as_ac_var'}
13712 $as_echo "$as_val"'`
13713 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13714$as_echo "$ac_res" >&6; }
13715as_val=`eval 'as_val=${'$as_ac_var'}
13716 $as_echo "$as_val"'`
13717 if test "x$as_val" = x""yes; then
ad6254c5 13718 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13719#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 13720_ACEOF
80992638
AK
13721
13722else
ec6a6fbe
AK
13723 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
13724$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 13725 { (exit 1); exit 1; }; }
8106cdd5 13726fi
ad6254c5 13727done
795ca3e5 13728
25fbec5b
AK
13729 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
13730# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
13731{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
13732$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 13733if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 13734 $as_echo_n "(cached) " >&6
25fbec5b
AK
13735else
13736 ac_func_search_save_LIBS=$LIBS
13737cat >conftest.$ac_ext <<_ACEOF
13738/* confdefs.h. */
13739_ACEOF
13740cat confdefs.h >>conftest.$ac_ext
13741cat >>conftest.$ac_ext <<_ACEOF
13742/* end confdefs.h. */
80992638 13743
7a197a62
AK
13744/* Override any GCC internal prototype to avoid an error.
13745 Use char because int might match the return type of a GCC
ad6254c5 13746 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13747#ifdef __cplusplus
13748extern "C"
13749#endif
25fbec5b 13750char getmntent ();
ad6254c5
AK
13751int
13752main ()
13753{
25fbec5b 13754return getmntent ();
ad6254c5
AK
13755 ;
13756 return 0;
13757}
13758_ACEOF
25fbec5b
AK
13759for ac_lib in '' sun seq gen; do
13760 if test -z "$ac_lib"; then
13761 ac_res="none required"
13762 else
13763 ac_res=-l$ac_lib
13764 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13765 fi
13766 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13767if { (ac_try="$ac_link"
13768case "(($ac_try" in
13769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770 *) ac_try_echo=$ac_try;;
13771esac
ec6a6fbe
AK
13772eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13773$as_echo "$ac_try_echo") >&5
7a197a62 13774 (eval "$ac_link") 2>conftest.er1
ad6254c5 13775 ac_status=$?
8a2fc586
AK
13776 grep -v '^ *+' conftest.er1 >conftest.err
13777 rm -f conftest.er1
13778 cat conftest.err >&5
ec6a6fbe 13779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13780 (exit $ac_status); } && {
13781 test -z "$ac_c_werror_flag" ||
13782 test ! -s conftest.err
ec6a6fbe
AK
13783 } && test -s conftest$ac_exeext && {
13784 test "$cross_compiling" = yes ||
13785 $as_test_x conftest$ac_exeext
13786 }; then
25fbec5b 13787 ac_cv_search_getmntent=$ac_res
80992638 13788else
ec6a6fbe 13789 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13790sed 's/^/| /' conftest.$ac_ext >&5
13791
25fbec5b 13792
795ca3e5
AK
13793fi
13794
ec6a6fbe 13795rm -rf conftest.dSYM
25fbec5b
AK
13796rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13797 conftest$ac_exeext
13798 if test "${ac_cv_search_getmntent+set}" = set; then
13799 break
795ca3e5 13800fi
25fbec5b
AK
13801done
13802if test "${ac_cv_search_getmntent+set}" = set; then
13803 :
13804else
13805 ac_cv_search_getmntent=no
13806fi
13807rm conftest.$ac_ext
13808LIBS=$ac_func_search_save_LIBS
13809fi
ec6a6fbe
AK
13810{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
13811$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
13812ac_res=$ac_cv_search_getmntent
13813if test "$ac_res" != no; then
13814 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13815 ac_cv_func_getmntent=yes
13816
13817cat >>confdefs.h <<\_ACEOF
9c961554 13818#define HAVE_GETMNTENT 1
ad6254c5 13819_ACEOF
795ca3e5 13820
25fbec5b
AK
13821else
13822 ac_cv_func_getmntent=no
795ca3e5 13823fi
795ca3e5
AK
13824
13825
ad6254c5
AK
13826# AC_FUNC_REALLOC
13827
13828
13829for ac_header in sys/select.h sys/socket.h
13830do
ec6a6fbe 13831as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13832if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13833 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13834$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13835if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13836 $as_echo_n "(cached) " >&6
ad6254c5 13837fi
ec6a6fbe
AK
13838ac_res=`eval 'as_val=${'$as_ac_Header'}
13839 $as_echo "$as_val"'`
13840 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13841$as_echo "$ac_res" >&6; }
795ca3e5 13842else
ad6254c5 13843 # Is the header compilable?
ec6a6fbe
AK
13844{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13845$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13846cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13847/* confdefs.h. */
13848_ACEOF
13849cat confdefs.h >>conftest.$ac_ext
13850cat >>conftest.$ac_ext <<_ACEOF
13851/* end confdefs.h. */
13852$ac_includes_default
13853#include <$ac_header>
13854_ACEOF
13855rm -f conftest.$ac_objext
7a197a62
AK
13856if { (ac_try="$ac_compile"
13857case "(($ac_try" in
13858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13859 *) ac_try_echo=$ac_try;;
13860esac
ec6a6fbe
AK
13861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13862$as_echo "$ac_try_echo") >&5
7a197a62 13863 (eval "$ac_compile") 2>conftest.er1
ad6254c5 13864 ac_status=$?
8a2fc586
AK
13865 grep -v '^ *+' conftest.er1 >conftest.err
13866 rm -f conftest.er1
13867 cat conftest.err >&5
ec6a6fbe 13868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13869 (exit $ac_status); } && {
13870 test -z "$ac_c_werror_flag" ||
13871 test ! -s conftest.err
13872 } && test -s conftest.$ac_objext; then
ad6254c5 13873 ac_header_compiler=yes
80992638 13874else
ec6a6fbe 13875 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13876sed 's/^/| /' conftest.$ac_ext >&5
13877
7a197a62 13878 ac_header_compiler=no
ad6254c5 13879fi
7a197a62
AK
13880
13881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13882{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13883$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13884
13885# Is the header present?
ec6a6fbe
AK
13886{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13887$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 13888cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13889/* confdefs.h. */
13890_ACEOF
13891cat confdefs.h >>conftest.$ac_ext
13892cat >>conftest.$ac_ext <<_ACEOF
13893/* end confdefs.h. */
13894#include <$ac_header>
13895_ACEOF
7a197a62
AK
13896if { (ac_try="$ac_cpp conftest.$ac_ext"
13897case "(($ac_try" in
13898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899 *) ac_try_echo=$ac_try;;
13900esac
ec6a6fbe
AK
13901eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13902$as_echo "$ac_try_echo") >&5
7a197a62 13903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
13904 ac_status=$?
13905 grep -v '^ *+' conftest.er1 >conftest.err
13906 rm -f conftest.er1
13907 cat conftest.err >&5
ec6a6fbe 13908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13909 (exit $ac_status); } >/dev/null && {
13910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13911 test ! -s conftest.err
13912 }; then
ad6254c5
AK
13913 ac_header_preproc=yes
13914else
ec6a6fbe 13915 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13916sed 's/^/| /' conftest.$ac_ext >&5
13917
13918 ac_header_preproc=no
13919fi
7a197a62 13920
ad6254c5 13921rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
13922{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13923$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
13924
13925# So? What about this header?
8a2fc586
AK
13926case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13927 yes:no: )
ec6a6fbe
AK
13928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13929$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13931$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 13932 ac_header_preproc=yes
ad6254c5 13933 ;;
8a2fc586 13934 no:yes:* )
ec6a6fbe
AK
13935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13936$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13938$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13940$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13942$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13944$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13946$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 13947
ad6254c5
AK
13948 ;;
13949esac
ec6a6fbe
AK
13950{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13951$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13952if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13953 $as_echo_n "(cached) " >&6
ad6254c5 13954else
8a2fc586 13955 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 13956fi
ec6a6fbe
AK
13957ac_res=`eval 'as_val=${'$as_ac_Header'}
13958 $as_echo "$as_val"'`
13959 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13960$as_echo "$ac_res" >&6; }
8106cdd5 13961
795ca3e5 13962fi
ec6a6fbe
AK
13963as_val=`eval 'as_val=${'$as_ac_Header'}
13964 $as_echo "$as_val"'`
13965 if test "x$as_val" = x""yes; then
ad6254c5 13966 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13967#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
13968_ACEOF
13969
795ca3e5
AK
13970fi
13971
ad6254c5
AK
13972done
13973
ec6a6fbe
AK
13974{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
13975$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 13976if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 13977 $as_echo_n "(cached) " >&6
26e7f2e0 13978else
ad6254c5 13979 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 13980 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
13981 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
13982 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13983/* confdefs.h. */
13984_ACEOF
13985cat confdefs.h >>conftest.$ac_ext
13986cat >>conftest.$ac_ext <<_ACEOF
13987/* end confdefs.h. */
13988$ac_includes_default
25fbec5b 13989#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
13990# include <sys/select.h>
13991#endif
25fbec5b 13992#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
13993# include <sys/socket.h>
13994#endif
13995
13996int
13997main ()
13998{
13999extern int select ($ac_arg1,
8a2fc586
AK
14000 $ac_arg234, $ac_arg234, $ac_arg234,
14001 $ac_arg5);
ad6254c5
AK
14002 ;
14003 return 0;
14004}
14005_ACEOF
14006rm -f conftest.$ac_objext
7a197a62
AK
14007if { (ac_try="$ac_compile"
14008case "(($ac_try" in
14009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14010 *) ac_try_echo=$ac_try;;
14011esac
ec6a6fbe
AK
14012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14013$as_echo "$ac_try_echo") >&5
7a197a62 14014 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14015 ac_status=$?
8a2fc586
AK
14016 grep -v '^ *+' conftest.er1 >conftest.err
14017 rm -f conftest.er1
14018 cat conftest.err >&5
ec6a6fbe 14019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14020 (exit $ac_status); } && {
14021 test -z "$ac_c_werror_flag" ||
14022 test ! -s conftest.err
14023 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14024 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14025else
ec6a6fbe 14026 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14027sed 's/^/| /' conftest.$ac_ext >&5
14028
7a197a62 14029
ad6254c5 14030fi
7a197a62
AK
14031
14032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
14033 done
14034 done
14035done
14036# Provide a safe default value.
14037: ${ac_cv_func_select_args='int,int *,struct timeval *'}
14038
26e7f2e0 14039fi
ec6a6fbe
AK
14040{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
14041$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
14042ac_save_IFS=$IFS; IFS=','
14043set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14044IFS=$ac_save_IFS
14045shift
14046
14047cat >>confdefs.h <<_ACEOF
14048#define SELECT_TYPE_ARG1 $1
14049_ACEOF
14050
14051
14052cat >>confdefs.h <<_ACEOF
14053#define SELECT_TYPE_ARG234 ($2)
14054_ACEOF
14055
14056
14057cat >>confdefs.h <<_ACEOF
14058#define SELECT_TYPE_ARG5 ($3)
14059_ACEOF
14060
80992638 14061rm -f conftest*
80992638 14062
8106cdd5 14063fi
ad6254c5 14064
ad6254c5
AK
14065if test x$CLUSTER != xnone; then
14066
14067
14068for ac_header in sys/socket.h sys/un.h
b896caa1 14069do
ec6a6fbe 14070as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14071if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14072 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14073$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14074if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14075 $as_echo_n "(cached) " >&6
ad6254c5 14076fi
ec6a6fbe
AK
14077ac_res=`eval 'as_val=${'$as_ac_Header'}
14078 $as_echo "$as_val"'`
14079 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14080$as_echo "$ac_res" >&6; }
ad6254c5
AK
14081else
14082 # Is the header compilable?
ec6a6fbe
AK
14083{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14084$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14085cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14086/* confdefs.h. */
14087_ACEOF
14088cat confdefs.h >>conftest.$ac_ext
14089cat >>conftest.$ac_ext <<_ACEOF
14090/* end confdefs.h. */
14091$ac_includes_default
14092#include <$ac_header>
14093_ACEOF
14094rm -f conftest.$ac_objext
7a197a62
AK
14095if { (ac_try="$ac_compile"
14096case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14099esac
ec6a6fbe
AK
14100eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14101$as_echo "$ac_try_echo") >&5
7a197a62 14102 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14103 ac_status=$?
8a2fc586
AK
14104 grep -v '^ *+' conftest.er1 >conftest.err
14105 rm -f conftest.er1
14106 cat conftest.err >&5
ec6a6fbe 14107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14108 (exit $ac_status); } && {
14109 test -z "$ac_c_werror_flag" ||
14110 test ! -s conftest.err
14111 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14112 ac_header_compiler=yes
14113else
ec6a6fbe 14114 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14115sed 's/^/| /' conftest.$ac_ext >&5
14116
7a197a62 14117 ac_header_compiler=no
ad6254c5 14118fi
7a197a62
AK
14119
14120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14121{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14122$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14123
14124# Is the header present?
ec6a6fbe
AK
14125{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14126$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14127cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14128/* confdefs.h. */
14129_ACEOF
14130cat confdefs.h >>conftest.$ac_ext
14131cat >>conftest.$ac_ext <<_ACEOF
14132/* end confdefs.h. */
14133#include <$ac_header>
14134_ACEOF
7a197a62
AK
14135if { (ac_try="$ac_cpp conftest.$ac_ext"
14136case "(($ac_try" in
14137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14138 *) ac_try_echo=$ac_try;;
14139esac
ec6a6fbe
AK
14140eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14141$as_echo "$ac_try_echo") >&5
7a197a62 14142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14143 ac_status=$?
14144 grep -v '^ *+' conftest.er1 >conftest.err
14145 rm -f conftest.er1
14146 cat conftest.err >&5
ec6a6fbe 14147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14148 (exit $ac_status); } >/dev/null && {
14149 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14150 test ! -s conftest.err
14151 }; then
ad6254c5
AK
14152 ac_header_preproc=yes
14153else
ec6a6fbe 14154 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14155sed 's/^/| /' conftest.$ac_ext >&5
14156
14157 ac_header_preproc=no
14158fi
7a197a62 14159
ad6254c5 14160rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14161{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14162$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14163
14164# So? What about this header?
8a2fc586
AK
14165case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14166 yes:no: )
ec6a6fbe
AK
14167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14168$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14169 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14170$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14171 ac_header_preproc=yes
ad6254c5 14172 ;;
8a2fc586 14173 no:yes:* )
ec6a6fbe
AK
14174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14175$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14176 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14177$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14178 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14179$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14180 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14181$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14183$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14185$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14186
ad6254c5
AK
14187 ;;
14188esac
ec6a6fbe
AK
14189{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14190$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14191if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14192 $as_echo_n "(cached) " >&6
ad6254c5 14193else
8a2fc586 14194 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 14195fi
ec6a6fbe
AK
14196ac_res=`eval 'as_val=${'$as_ac_Header'}
14197 $as_echo "$as_val"'`
14198 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14199$as_echo "$ac_res" >&6; }
ad6254c5
AK
14200
14201fi
ec6a6fbe
AK
14202as_val=`eval 'as_val=${'$as_ac_Header'}
14203 $as_echo "$as_val"'`
14204 if test "x$as_val" = x""yes; then
ad6254c5 14205 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14206#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14207_ACEOF
14208
80992638 14209else
ec6a6fbe
AK
14210 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14211$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14212 { (exit 1); exit 1; }; }
b896caa1 14213fi
ad6254c5 14214
b896caa1
AK
14215done
14216
14217
ad6254c5
AK
14218for ac_func in socket
14219do
ec6a6fbe
AK
14220as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14221{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14222$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 14223if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14224 $as_echo_n "(cached) " >&6
795ca3e5 14225else
ad6254c5 14226 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14227/* confdefs.h. */
14228_ACEOF
14229cat confdefs.h >>conftest.$ac_ext
14230cat >>conftest.$ac_ext <<_ACEOF
14231/* end confdefs.h. */
8a2fc586
AK
14232/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14234#define $ac_func innocuous_$ac_func
14235
ad6254c5
AK
14236/* System header to define __stub macros and hopefully few prototypes,
14237 which can conflict with char $ac_func (); below.
14238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14239 <limits.h> exists even on freestanding compilers. */
8a2fc586 14240
ad6254c5
AK
14241#ifdef __STDC__
14242# include <limits.h>
14243#else
14244# include <assert.h>
14245#endif
8a2fc586
AK
14246
14247#undef $ac_func
14248
7a197a62
AK
14249/* Override any GCC internal prototype to avoid an error.
14250 Use char because int might match the return type of a GCC
14251 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14252#ifdef __cplusplus
14253extern "C"
ad6254c5 14254#endif
ad6254c5
AK
14255char $ac_func ();
14256/* The GNU C library defines this for functions which it implements
14257 to always fail with ENOSYS. Some functions are actually named
14258 something starting with __ and the normal name is an alias. */
7a197a62 14259#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 14260choke me
ad6254c5
AK
14261#endif
14262
14263int
14264main ()
14265{
7a197a62 14266return $ac_func ();
ad6254c5
AK
14267 ;
14268 return 0;
14269}
14270_ACEOF
14271rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14272if { (ac_try="$ac_link"
14273case "(($ac_try" in
14274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14275 *) ac_try_echo=$ac_try;;
14276esac
ec6a6fbe
AK
14277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14278$as_echo "$ac_try_echo") >&5
7a197a62 14279 (eval "$ac_link") 2>conftest.er1
ad6254c5 14280 ac_status=$?
8a2fc586
AK
14281 grep -v '^ *+' conftest.er1 >conftest.err
14282 rm -f conftest.er1
14283 cat conftest.err >&5
ec6a6fbe 14284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14285 (exit $ac_status); } && {
14286 test -z "$ac_c_werror_flag" ||
14287 test ! -s conftest.err
ec6a6fbe
AK
14288 } && test -s conftest$ac_exeext && {
14289 test "$cross_compiling" = yes ||
14290 $as_test_x conftest$ac_exeext
14291 }; then
ad6254c5
AK
14292 eval "$as_ac_var=yes"
14293else
ec6a6fbe 14294 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14295sed 's/^/| /' conftest.$ac_ext >&5
14296
7a197a62 14297 eval "$as_ac_var=no"
ad6254c5 14298fi
7a197a62 14299
ec6a6fbe 14300rm -rf conftest.dSYM
25fbec5b 14301rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 14302 conftest$ac_exeext conftest.$ac_ext
ad6254c5 14303fi
ec6a6fbe
AK
14304ac_res=`eval 'as_val=${'$as_ac_var'}
14305 $as_echo "$as_val"'`
14306 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14307$as_echo "$ac_res" >&6; }
14308as_val=`eval 'as_val=${'$as_ac_var'}
14309 $as_echo "$as_val"'`
14310 if test "x$as_val" = x""yes; then
ad6254c5 14311 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14312#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
14313_ACEOF
14314
14315else
ec6a6fbe
AK
14316 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14317$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
14318 { (exit 1); exit 1; }; }
14319fi
14320done
14321
14322fi
14323
14324if test x$HAVE_LIBDL = xyes; then
14325
14326for ac_header in dlfcn.h
14327do
ec6a6fbe 14328as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14329if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14330 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14331$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14332if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14333 $as_echo_n "(cached) " >&6
ad6254c5 14334fi
ec6a6fbe
AK
14335ac_res=`eval 'as_val=${'$as_ac_Header'}
14336 $as_echo "$as_val"'`
14337 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14338$as_echo "$ac_res" >&6; }
ad6254c5
AK
14339else
14340 # Is the header compilable?
ec6a6fbe
AK
14341{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14342$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14343cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14344/* confdefs.h. */
14345_ACEOF
14346cat confdefs.h >>conftest.$ac_ext
14347cat >>conftest.$ac_ext <<_ACEOF
14348/* end confdefs.h. */
14349$ac_includes_default
14350#include <$ac_header>
14351_ACEOF
14352rm -f conftest.$ac_objext
7a197a62
AK
14353if { (ac_try="$ac_compile"
14354case "(($ac_try" in
14355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14356 *) ac_try_echo=$ac_try;;
14357esac
ec6a6fbe
AK
14358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14359$as_echo "$ac_try_echo") >&5
7a197a62 14360 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14361 ac_status=$?
8a2fc586
AK
14362 grep -v '^ *+' conftest.er1 >conftest.err
14363 rm -f conftest.er1
14364 cat conftest.err >&5
ec6a6fbe 14365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14366 (exit $ac_status); } && {
14367 test -z "$ac_c_werror_flag" ||
14368 test ! -s conftest.err
14369 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14370 ac_header_compiler=yes
14371else
ec6a6fbe 14372 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14373sed 's/^/| /' conftest.$ac_ext >&5
14374
7a197a62 14375 ac_header_compiler=no
ad6254c5 14376fi
7a197a62
AK
14377
14378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14379{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14380$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14381
14382# Is the header present?
ec6a6fbe
AK
14383{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14384$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14385cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14386/* confdefs.h. */
14387_ACEOF
14388cat confdefs.h >>conftest.$ac_ext
14389cat >>conftest.$ac_ext <<_ACEOF
14390/* end confdefs.h. */
14391#include <$ac_header>
14392_ACEOF
7a197a62
AK
14393if { (ac_try="$ac_cpp conftest.$ac_ext"
14394case "(($ac_try" in
14395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14396 *) ac_try_echo=$ac_try;;
14397esac
ec6a6fbe
AK
14398eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14399$as_echo "$ac_try_echo") >&5
7a197a62 14400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14401 ac_status=$?
14402 grep -v '^ *+' conftest.er1 >conftest.err
14403 rm -f conftest.er1
14404 cat conftest.err >&5
ec6a6fbe 14405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14406 (exit $ac_status); } >/dev/null && {
14407 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14408 test ! -s conftest.err
14409 }; then
ad6254c5
AK
14410 ac_header_preproc=yes
14411else
ec6a6fbe 14412 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14413sed 's/^/| /' conftest.$ac_ext >&5
14414
14415 ac_header_preproc=no
14416fi
7a197a62 14417
ad6254c5 14418rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14419{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14420$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14421
14422# So? What about this header?
8a2fc586
AK
14423case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14424 yes:no: )
ec6a6fbe
AK
14425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14426$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14428$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14429 ac_header_preproc=yes
ad6254c5 14430 ;;
8a2fc586 14431 no:yes:* )
ec6a6fbe
AK
14432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14433$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14435$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14437$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14439$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14441$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14443$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14444
ad6254c5
AK
14445 ;;
14446esac
ec6a6fbe
AK
14447{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14448$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14449if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14450 $as_echo_n "(cached) " >&6
ad6254c5 14451else
8a2fc586 14452 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 14453fi
ec6a6fbe
AK
14454ac_res=`eval 'as_val=${'$as_ac_Header'}
14455 $as_echo "$as_val"'`
14456 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14457$as_echo "$ac_res" >&6; }
80992638 14458
8106cdd5 14459fi
ec6a6fbe
AK
14460as_val=`eval 'as_val=${'$as_ac_Header'}
14461 $as_echo "$as_val"'`
14462 if test "x$as_val" = x""yes; then
ad6254c5 14463 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14464#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 14465_ACEOF
795ca3e5
AK
14466
14467else
ec6a6fbe
AK
14468 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14469$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14470 { (exit 1); exit 1; }; }
795ca3e5
AK
14471fi
14472
ad6254c5 14473done
80992638 14474
ad6254c5 14475fi
80992638 14476
ad6254c5 14477if test x$INTL = xyes; then
83912faa 14478
ad6254c5
AK
14479for ac_header in libintl.h
14480do
ec6a6fbe 14481as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14482if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14483 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14484$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14485if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14486 $as_echo_n "(cached) " >&6
ad6254c5 14487fi
ec6a6fbe
AK
14488ac_res=`eval 'as_val=${'$as_ac_Header'}
14489 $as_echo "$as_val"'`
14490 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14491$as_echo "$ac_res" >&6; }
83912faa 14492else
ad6254c5 14493 # Is the header compilable?
ec6a6fbe
AK
14494{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14495$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14496cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14497/* confdefs.h. */
14498_ACEOF
14499cat confdefs.h >>conftest.$ac_ext
14500cat >>conftest.$ac_ext <<_ACEOF
14501/* end confdefs.h. */
14502$ac_includes_default
14503#include <$ac_header>
14504_ACEOF
14505rm -f conftest.$ac_objext
7a197a62
AK
14506if { (ac_try="$ac_compile"
14507case "(($ac_try" in
14508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14509 *) ac_try_echo=$ac_try;;
14510esac
ec6a6fbe
AK
14511eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14512$as_echo "$ac_try_echo") >&5
7a197a62 14513 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14514 ac_status=$?
8a2fc586
AK
14515 grep -v '^ *+' conftest.er1 >conftest.err
14516 rm -f conftest.er1
14517 cat conftest.err >&5
ec6a6fbe 14518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14519 (exit $ac_status); } && {
14520 test -z "$ac_c_werror_flag" ||
14521 test ! -s conftest.err
14522 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14523 ac_header_compiler=yes
14524else
ec6a6fbe 14525 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14526sed 's/^/| /' conftest.$ac_ext >&5
14527
7a197a62 14528 ac_header_compiler=no
ad6254c5 14529fi
7a197a62
AK
14530
14531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14532{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14533$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14534
14535# Is the header present?
ec6a6fbe
AK
14536{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14537$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14538cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14539/* confdefs.h. */
14540_ACEOF
14541cat confdefs.h >>conftest.$ac_ext
14542cat >>conftest.$ac_ext <<_ACEOF
14543/* end confdefs.h. */
14544#include <$ac_header>
14545_ACEOF
7a197a62
AK
14546if { (ac_try="$ac_cpp conftest.$ac_ext"
14547case "(($ac_try" in
14548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549 *) ac_try_echo=$ac_try;;
14550esac
ec6a6fbe
AK
14551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14552$as_echo "$ac_try_echo") >&5
7a197a62 14553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14554 ac_status=$?
14555 grep -v '^ *+' conftest.er1 >conftest.err
14556 rm -f conftest.er1
14557 cat conftest.err >&5
ec6a6fbe 14558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14559 (exit $ac_status); } >/dev/null && {
14560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14561 test ! -s conftest.err
14562 }; then
ad6254c5
AK
14563 ac_header_preproc=yes
14564else
ec6a6fbe 14565 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14566sed 's/^/| /' conftest.$ac_ext >&5
14567
14568 ac_header_preproc=no
14569fi
7a197a62 14570
ad6254c5 14571rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14572{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14573$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14574
14575# So? What about this header?
8a2fc586
AK
14576case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14577 yes:no: )
ec6a6fbe
AK
14578 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14579$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14580 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14581$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14582 ac_header_preproc=yes
ad6254c5 14583 ;;
8a2fc586 14584 no:yes:* )
ec6a6fbe
AK
14585 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14586$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14587 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14588$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14589 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14590$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14592$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14594$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14596$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14597
ad6254c5
AK
14598 ;;
14599esac
ec6a6fbe
AK
14600{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14601$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14602if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14603 $as_echo_n "(cached) " >&6
80992638 14604else
8a2fc586 14605 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 14606fi
ec6a6fbe
AK
14607ac_res=`eval 'as_val=${'$as_ac_Header'}
14608 $as_echo "$as_val"'`
14609 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14610$as_echo "$ac_res" >&6; }
83912faa 14611
69792976 14612fi
ec6a6fbe
AK
14613as_val=`eval 'as_val=${'$as_ac_Header'}
14614 $as_echo "$as_val"'`
14615 if test "x$as_val" = x""yes; then
ad6254c5 14616 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14617#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 14618_ACEOF
69792976 14619
69792976 14620else
ec6a6fbe
AK
14621 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14622$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14623 { (exit 1); exit 1; }; }
80992638
AK
14624fi
14625
ad6254c5 14626done
69792976 14627
ad6254c5
AK
14628fi
14629
ad6254c5
AK
14630if test x$HAVE_SELINUX = xyes; then
14631
14632for ac_header in selinux/selinux.h
14633do
ec6a6fbe 14634as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14635if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14636 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14637$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14639 $as_echo_n "(cached) " >&6
ad6254c5 14640fi
ec6a6fbe
AK
14641ac_res=`eval 'as_val=${'$as_ac_Header'}
14642 $as_echo "$as_val"'`
14643 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14644$as_echo "$ac_res" >&6; }
4a7f3eb2 14645else
ad6254c5 14646 # Is the header compilable?
ec6a6fbe
AK
14647{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14648$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14649cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14650/* confdefs.h. */
14651_ACEOF
14652cat confdefs.h >>conftest.$ac_ext
14653cat >>conftest.$ac_ext <<_ACEOF
14654/* end confdefs.h. */
14655$ac_includes_default
14656#include <$ac_header>
14657_ACEOF
14658rm -f conftest.$ac_objext
7a197a62
AK
14659if { (ac_try="$ac_compile"
14660case "(($ac_try" in
14661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14662 *) ac_try_echo=$ac_try;;
14663esac
ec6a6fbe
AK
14664eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14665$as_echo "$ac_try_echo") >&5
7a197a62 14666 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14667 ac_status=$?
8a2fc586
AK
14668 grep -v '^ *+' conftest.er1 >conftest.err
14669 rm -f conftest.er1
14670 cat conftest.err >&5
ec6a6fbe 14671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14672 (exit $ac_status); } && {
14673 test -z "$ac_c_werror_flag" ||
14674 test ! -s conftest.err
14675 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14676 ac_header_compiler=yes
14677else
ec6a6fbe 14678 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14679sed 's/^/| /' conftest.$ac_ext >&5
14680
7a197a62 14681 ac_header_compiler=no
ad6254c5 14682fi
7a197a62
AK
14683
14684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14685{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14686$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14687
14688# Is the header present?
ec6a6fbe
AK
14689{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14690$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14691cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14692/* confdefs.h. */
14693_ACEOF
14694cat confdefs.h >>conftest.$ac_ext
14695cat >>conftest.$ac_ext <<_ACEOF
14696/* end confdefs.h. */
14697#include <$ac_header>
14698_ACEOF
7a197a62
AK
14699if { (ac_try="$ac_cpp conftest.$ac_ext"
14700case "(($ac_try" in
14701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14702 *) ac_try_echo=$ac_try;;
14703esac
ec6a6fbe
AK
14704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14705$as_echo "$ac_try_echo") >&5
7a197a62 14706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14707 ac_status=$?
14708 grep -v '^ *+' conftest.er1 >conftest.err
14709 rm -f conftest.er1
14710 cat conftest.err >&5
ec6a6fbe 14711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14712 (exit $ac_status); } >/dev/null && {
14713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14714 test ! -s conftest.err
14715 }; then
ad6254c5
AK
14716 ac_header_preproc=yes
14717else
ec6a6fbe 14718 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14719sed 's/^/| /' conftest.$ac_ext >&5
14720
14721 ac_header_preproc=no
14722fi
7a197a62 14723
ad6254c5 14724rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14725{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14726$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14727
14728# So? What about this header?
8a2fc586
AK
14729case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14730 yes:no: )
ec6a6fbe
AK
14731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14732$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14734$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14735 ac_header_preproc=yes
ad6254c5 14736 ;;
8a2fc586 14737 no:yes:* )
ec6a6fbe
AK
14738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14739$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14741$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14743$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14745$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14747$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14749$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14750
ad6254c5
AK
14751 ;;
14752esac
ec6a6fbe
AK
14753{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14754$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14755if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14756 $as_echo_n "(cached) " >&6
ad6254c5 14757else
8a2fc586 14758 eval "$as_ac_Header=\$ac_header_preproc"
80992638 14759fi
ec6a6fbe
AK
14760ac_res=`eval 'as_val=${'$as_ac_Header'}
14761 $as_echo "$as_val"'`
14762 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14763$as_echo "$ac_res" >&6; }
4a7f3eb2 14764
ad6254c5 14765fi
ec6a6fbe
AK
14766as_val=`eval 'as_val=${'$as_ac_Header'}
14767 $as_echo "$as_val"'`
14768 if test "x$as_val" = x""yes; then
ad6254c5 14769 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14770#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 14771_ACEOF
0a62c911 14772
0a62c911 14773else
ec6a6fbe
AK
14774 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14775$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14776 { (exit 1); exit 1; }; }
80992638
AK
14777fi
14778
ad6254c5 14779done
0a62c911 14780
ad6254c5 14781fi
0a62c911 14782
a5f46f6a
AK
14783if test x$UDEV_SYNC = xyes; then
14784
14785
14786for ac_header in sys/ipc.h sys/sem.h
14787do
14788as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14789if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14790 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14791$as_echo_n "checking for $ac_header... " >&6; }
14792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14793 $as_echo_n "(cached) " >&6
14794fi
14795ac_res=`eval 'as_val=${'$as_ac_Header'}
14796 $as_echo "$as_val"'`
14797 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14798$as_echo "$ac_res" >&6; }
14799else
14800 # Is the header compilable?
14801{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14802$as_echo_n "checking $ac_header usability... " >&6; }
14803cat >conftest.$ac_ext <<_ACEOF
14804/* confdefs.h. */
14805_ACEOF
14806cat confdefs.h >>conftest.$ac_ext
14807cat >>conftest.$ac_ext <<_ACEOF
14808/* end confdefs.h. */
14809$ac_includes_default
14810#include <$ac_header>
14811_ACEOF
14812rm -f conftest.$ac_objext
14813if { (ac_try="$ac_compile"
14814case "(($ac_try" in
14815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14816 *) ac_try_echo=$ac_try;;
14817esac
14818eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14819$as_echo "$ac_try_echo") >&5
14820 (eval "$ac_compile") 2>conftest.er1
14821 ac_status=$?
14822 grep -v '^ *+' conftest.er1 >conftest.err
14823 rm -f conftest.er1
14824 cat conftest.err >&5
14825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); } && {
14827 test -z "$ac_c_werror_flag" ||
14828 test ! -s conftest.err
14829 } && test -s conftest.$ac_objext; then
14830 ac_header_compiler=yes
14831else
14832 $as_echo "$as_me: failed program was:" >&5
14833sed 's/^/| /' conftest.$ac_ext >&5
14834
14835 ac_header_compiler=no
14836fi
14837
14838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14839{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14840$as_echo "$ac_header_compiler" >&6; }
14841
14842# Is the header present?
14843{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14844$as_echo_n "checking $ac_header presence... " >&6; }
14845cat >conftest.$ac_ext <<_ACEOF
14846/* confdefs.h. */
14847_ACEOF
14848cat confdefs.h >>conftest.$ac_ext
14849cat >>conftest.$ac_ext <<_ACEOF
14850/* end confdefs.h. */
14851#include <$ac_header>
14852_ACEOF
14853if { (ac_try="$ac_cpp conftest.$ac_ext"
14854case "(($ac_try" in
14855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14856 *) ac_try_echo=$ac_try;;
14857esac
14858eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14859$as_echo "$ac_try_echo") >&5
14860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14861 ac_status=$?
14862 grep -v '^ *+' conftest.er1 >conftest.err
14863 rm -f conftest.er1
14864 cat conftest.err >&5
14865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); } >/dev/null && {
14867 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14868 test ! -s conftest.err
14869 }; then
14870 ac_header_preproc=yes
14871else
14872 $as_echo "$as_me: failed program was:" >&5
14873sed 's/^/| /' conftest.$ac_ext >&5
14874
14875 ac_header_preproc=no
14876fi
14877
14878rm -f conftest.err conftest.$ac_ext
14879{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14880$as_echo "$ac_header_preproc" >&6; }
14881
14882# So? What about this header?
14883case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14884 yes:no: )
14885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14886$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14887 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14888$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14889 ac_header_preproc=yes
14890 ;;
14891 no:yes:* )
14892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14893$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14895$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14897$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14899$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14901$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14903$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14904
14905 ;;
14906esac
14907{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14908$as_echo_n "checking for $ac_header... " >&6; }
14909if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14910 $as_echo_n "(cached) " >&6
14911else
14912 eval "$as_ac_Header=\$ac_header_preproc"
14913fi
14914ac_res=`eval 'as_val=${'$as_ac_Header'}
14915 $as_echo "$as_val"'`
14916 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14917$as_echo "$ac_res" >&6; }
14918
14919fi
14920as_val=`eval 'as_val=${'$as_ac_Header'}
14921 $as_echo "$as_val"'`
14922 if test "x$as_val" = x""yes; then
14923 cat >>confdefs.h <<_ACEOF
14924#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14925_ACEOF
14926
14927else
14928 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14929$as_echo "$as_me: error: bailing out" >&2;}
14930 { (exit 1); exit 1; }; }
14931fi
14932
14933done
14934
14935fi
14936
a653923f
AK
14937################################################################################
14938# Extract the first word of "modprobe", so it can be a program name with args.
14939set dummy modprobe; ac_word=$2
ec6a6fbe
AK
14940{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14941$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 14942if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 14943 $as_echo_n "(cached) " >&6
72b2cb61
AK
14944else
14945 case $MODPROBE_CMD in
14946 [\\/]* | ?:[\\/]*)
14947 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
14948 ;;
14949 *)
14950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14951for as_dir in $PATH
14952do
14953 IFS=$as_save_IFS
14954 test -z "$as_dir" && as_dir=.
14955 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 14956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 14957 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 14958 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
14959 break 2
14960 fi
14961done
14962done
7a197a62 14963IFS=$as_save_IFS
72b2cb61
AK
14964
14965 ;;
14966esac
14967fi
14968MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 14969if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
14970 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
14971$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 14972else
ec6a6fbe
AK
14973 { $as_echo "$as_me:$LINENO: result: no" >&5
14974$as_echo "no" >&6; }
72b2cb61
AK
14975fi
14976
a653923f 14977
7a197a62 14978
a653923f 14979if test x$MODPROBE_CMD != x; then
72b2cb61
AK
14980
14981cat >>confdefs.h <<_ACEOF
14982#define MODPROBE_CMD "$MODPROBE_CMD"
14983_ACEOF
14984
a653923f
AK
14985fi
14986
80992638 14987################################################################################
93bd259b
AK
14988
14989
14990if test "$BUILD_DMEVENTD" = yes; then
14991
14992# Check whether --with-dmeventd-pidfile was given.
14993if test "${with_dmeventd_pidfile+set}" = set; then
14994 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
14995#define DMEVENTD_PIDFILE "$withval"
14996_ACEOF
14997
14998else
14999 cat >>confdefs.h <<_ACEOF
15000#define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
15001_ACEOF
15002
15003fi
15004
15005fi
15006
15007
15008
15009if test "$BUILD_DMEVENTD" = yes; then
15010 dmeventd_prefix="$exec_prefix"
15011 if test "x$dmeventd_prefix" = "xNONE"; then
15012 dmeventd_prefix="$prefix"
15013 fi
15014 if test "x$dmeventd_prefix" = "xNONE"; then
15015 dmeventd_prefix=""
15016 fi
15017
15018# Check whether --with-dmeventd-path was given.
15019if test "${with_dmeventd_path+set}" = set; then
15020 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
15021#define DMEVENTD_PATH "$withval"
15022_ACEOF
15023
15024else
15025 cat >>confdefs.h <<_ACEOF
15026#define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
15027_ACEOF
15028
15029fi
15030
15031fi
15032
15033################################################################################
ec6a6fbe
AK
15034{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
15035$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
15036
15037# Check whether --with-interface was given.
15038if test "${with_interface+set}" = set; then
15039 withval=$with_interface; interface="$withval"
15040else
15041 interface=ioctl
15042fi
15043
15044if [ "x$interface" != xioctl ];
15045then
ec6a6fbe
AK
15046 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
15047$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
15048 { (exit 1); exit 1; }; }
15049fi
ec6a6fbe
AK
15050{ $as_echo "$as_me:$LINENO: result: $interface" >&5
15051$as_echo "$interface" >&6; }
93bd259b
AK
15052
15053################################################################################
2c44337b 15054DM_LIB_VERSION="\"`cat VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
15055
15056cat >>confdefs.h <<_ACEOF
15057#define DM_LIB_VERSION $DM_LIB_VERSION
15058_ACEOF
15059
15060
ec6a6fbe 15061DM_LIB_PATCHLEVEL=`cat VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 15062
d0191583 15063LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
fae0c576 15064
ec6a6fbe 15065VER=`cat VERSION`
bf456146 15066LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
15067VER=`echo "$VER" | $AWK '{print $1}'`
15068LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
15069VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
15070LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
15071LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
15072LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
15073LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 15074
80992638 15075################################################################################
fae0c576 15076
83912faa 15077
795ca3e5
AK
15078
15079
15080
15081
15082
15083
5a52dca9 15084
8ef2b021 15085
199e490e 15086
69792976
AK
15087
15088
15089
d0191583 15090
69792976 15091
8106cdd5
AK
15092
15093
15094
15095
15096
d68a82ec 15097
036f273a 15098
7d1552c9 15099
8106cdd5 15100
0a62c911 15101
8106cdd5 15102
4a7f3eb2 15103
4922197a
AK
15104
15105
d8ac0fbc 15106
1a9ea74d 15107
8a2fc586
AK
15108
15109
d0191583 15110
93bd259b
AK
15111
15112
15113
15114
15115
d0191583
JM
15116
15117
15118
15119
15120
8a2fc586 15121
8ce0cbda 15122
8b1a3214 15123
ec6a6fbe
AK
15124
15125
15126
15127
e2997b73
AK
15128
15129
15130
15131
15132
15133
a946372e
AK
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
ec6a6fbe 15145
33f732c5 15146
66e941e8 15147
d3c8211f 15148
7e3fe830 15149
a5f46f6a
AK
15150
15151
15152
572fefeb 15153
bf456146 15154
68f2de6d
AK
15155
15156
80992638 15157################################################################################
a946372e 15158ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/clogd/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/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/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile"
7a197a62 15159
ad6254c5 15160cat >confcache <<\_ACEOF
795ca3e5
AK
15161# This file is a shell script that caches the results of configure
15162# tests run on this system so they can be shared between configure
ad6254c5
AK
15163# scripts and configure runs, see configure's option --config-cache.
15164# It is not useful on other systems. If it contains results you don't
15165# want to keep, you may remove or edit it.
795ca3e5 15166#
ad6254c5
AK
15167# config.status only pays attention to the cache file if you give it
15168# the --recheck option to rerun configure.
795ca3e5 15169#
ad6254c5
AK
15170# `ac_cv_env_foo' variables (set or unset) will be overridden when
15171# loading this file, other *unset* `ac_cv_foo' will be assigned the
15172# following values.
15173
15174_ACEOF
15175
795ca3e5
AK
15176# The following way of writing the cache mishandles newlines in values,
15177# but we know of no workaround that is simple, portable, and efficient.
7a197a62 15178# So, we kill variables containing newlines.
795ca3e5
AK
15179# Ultrix sh set writes to stderr and can't be redirected directly,
15180# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
15181(
15182 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15183 eval ac_val=\$$ac_var
15184 case $ac_val in #(
15185 *${as_nl}*)
15186 case $ac_var in #(
ec6a6fbe
AK
15187 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15188$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
15189 esac
15190 case $ac_var in #(
15191 _ | IFS | as_nl) ;; #(
ec6a6fbe 15192 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
15193 *) $as_unset $ac_var ;;
15194 esac ;;
15195 esac
15196 done
15197
ad6254c5 15198 (set) 2>&1 |
7a197a62
AK
15199 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15200 *${as_nl}ac_space=\ *)
ad6254c5
AK
15201 # `set' does not quote correctly, so add quotes (double-quote
15202 # substitution turns \\\\ into \\, and sed turns \\ into \).
15203 sed -n \
8a2fc586
AK
15204 "s/'/'\\\\''/g;
15205 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 15206 ;; #(
ad6254c5
AK
15207 *)
15208 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 15209 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 15210 ;;
7a197a62
AK
15211 esac |
15212 sort
15213) |
ad6254c5 15214 sed '
7a197a62 15215 /^ac_cv_env_/b end
ad6254c5 15216 t clear
7a197a62 15217 :clear
ad6254c5
AK
15218 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15219 t end
7a197a62
AK
15220 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15221 :end' >>confcache
15222if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15223 if test -w "$cache_file"; then
15224 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
15225 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15226$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 15227 cat confcache >$cache_file
795ca3e5 15228 else
ec6a6fbe
AK
15229 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15230$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
15231 fi
15232fi
15233rm -f confcache
15234
795ca3e5
AK
15235test "x$prefix" = xNONE && prefix=$ac_default_prefix
15236# Let make expand exec_prefix.
15237test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15238
72b2cb61 15239DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
15240
15241ac_libobjs=
15242ac_ltlibobjs=
15243for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15244 # 1. Remove the extension, and $U if already installed.
7a197a62 15245 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 15246 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
15247 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15248 # will be set to the directory where LIBOBJS objects are built.
15249 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15250 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
15251done
15252LIBOBJS=$ac_libobjs
80992638 15253
ad6254c5
AK
15254LTLIBOBJS=$ac_ltlibobjs
15255
15256
15257
15258: ${CONFIG_STATUS=./config.status}
ec6a6fbe 15259ac_write_fail=0
ad6254c5
AK
15260ac_clean_files_save=$ac_clean_files
15261ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
15262{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15263$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15264cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
15265#! $SHELL
15266# Generated by $as_me.
795ca3e5 15267# Run this file to recreate the current configuration.
795ca3e5 15268# Compiler output produced by configure, useful for debugging
ad6254c5
AK
15269# configure, is in config.log if it exists.
15270
15271debug=false
15272ac_cs_recheck=false
15273ac_cs_silent=false
15274SHELL=\${CONFIG_SHELL-$SHELL}
15275_ACEOF
15276
ec6a6fbe 15277cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
15278## --------------------- ##
15279## M4sh Initialization. ##
15280## --------------------- ##
15281
25fbec5b
AK
15282# Be more Bourne compatible
15283DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
15284if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15285 emulate sh
15286 NULLCMD=:
ec6a6fbe 15287 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
15288 # is contrary to our usage. Disable this feature.
15289 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
15290 setopt NO_GLOB_SUBST
15291else
25fbec5b
AK
15292 case `(set -o) 2>/dev/null` in
15293 *posix*) set -o posix ;;
15294esac
15295
7a197a62 15296fi
25fbec5b
AK
15297
15298
7a197a62
AK
15299
15300
15301# PATH needs CR
15302# Avoid depending upon Character Ranges.
15303as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15304as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15305as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15306as_cr_digits='0123456789'
15307as_cr_alnum=$as_cr_Letters$as_cr_digits
15308
ec6a6fbe
AK
15309as_nl='
15310'
15311export as_nl
15312# Printing a long string crashes Solaris 7 /usr/bin/printf.
15313as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15314as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15315as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15316if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15317 as_echo='printf %s\n'
15318 as_echo_n='printf %s'
15319else
15320 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15321 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15322 as_echo_n='/usr/ucb/echo -n'
68f2de6d 15323 else
ec6a6fbe
AK
15324 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15325 as_echo_n_body='eval
15326 arg=$1;
15327 case $arg in
15328 *"$as_nl"*)
15329 expr "X$arg" : "X\\(.*\\)$as_nl";
15330 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15331 esac;
15332 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15333 '
15334 export as_echo_n_body
15335 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 15336 fi
ec6a6fbe
AK
15337 export as_echo_body
15338 as_echo='sh -c $as_echo_body as_echo'
15339fi
15340
15341# The user is always right.
15342if test "${PATH_SEPARATOR+set}" != set; then
15343 PATH_SEPARATOR=:
15344 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15345 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15346 PATH_SEPARATOR=';'
15347 }
ad6254c5
AK
15348fi
15349
15350# Support unset when possible.
8a2fc586 15351if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
15352 as_unset=unset
15353else
15354 as_unset=false
15355fi
8106cdd5 15356
ad6254c5 15357
7a197a62
AK
15358# IFS
15359# We need space, tab and new line, in precisely that order. Quoting is
15360# there to prevent editors from complaining about space-tab.
15361# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15362# splitting by setting IFS to empty value.)
7a197a62
AK
15363IFS=" "" $as_nl"
15364
15365# Find who we are. Look in the path if we contain no directory separator.
15366case $0 in
15367 *[\\/]* ) as_myself=$0 ;;
15368 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15369for as_dir in $PATH
15370do
15371 IFS=$as_save_IFS
15372 test -z "$as_dir" && as_dir=.
15373 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15374done
15375IFS=$as_save_IFS
15376
15377 ;;
15378esac
15379# We did not find ourselves, most probably we were run as `sh COMMAND'
15380# in which case we are not to be found in the path.
15381if test "x$as_myself" = x; then
15382 as_myself=$0
15383fi
15384if test ! -f "$as_myself"; then
ec6a6fbe 15385 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
15386 { (exit 1); exit 1; }
15387fi
15388
ad6254c5 15389# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
15390for as_var in ENV MAIL MAILPATH
15391do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15392done
ad6254c5
AK
15393PS1='$ '
15394PS2='> '
15395PS4='+ '
15396
15397# NLS nuisances.
ec6a6fbe
AK
15398LC_ALL=C
15399export LC_ALL
15400LANGUAGE=C
15401export LANGUAGE
8106cdd5 15402
ad6254c5 15403# Required to use basename.
7a197a62
AK
15404if expr a : '\(a\)' >/dev/null 2>&1 &&
15405 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
15406 as_expr=expr
15407else
15408 as_expr=false
15409fi
8106cdd5 15410
7a197a62 15411if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
15412 as_basename=basename
15413else
15414 as_basename=false
15415fi
15416
15417
15418# Name of the executable.
7a197a62 15419as_me=`$as_basename -- "$0" ||
ad6254c5
AK
15420$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15421 X"$0" : 'X\(//\)$' \| \
7a197a62 15422 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 15423$as_echo X/"$0" |
7a197a62
AK
15424 sed '/^.*\/\([^/][^/]*\)\/*$/{
15425 s//\1/
15426 q
15427 }
15428 /^X\/\(\/\/\)$/{
15429 s//\1/
15430 q
15431 }
15432 /^X\/\(\/\).*/{
15433 s//\1/
15434 q
15435 }
15436 s/.*/./; q'`
ad6254c5 15437
7a197a62
AK
15438# CDPATH.
15439$as_unset CDPATH
ad6254c5
AK
15440
15441
ad6254c5 15442
ad6254c5
AK
15443 as_lineno_1=$LINENO
15444 as_lineno_2=$LINENO
ad6254c5 15445 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 15446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 15447
ad6254c5
AK
15448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15449 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
15450 # line-number line after each line using $LINENO; the second 'sed'
15451 # does the real work. The second script uses 'N' to pair each
15452 # line-number line with the line containing $LINENO, and appends
15453 # trailing '-' during substitution so that $LINENO is not a special
15454 # case at line end.
ad6254c5 15455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
15456 # scripts with optimization help from Paolo Bonzini. Blame Lee
15457 # E. McMahon (1931-1989) for sed's syntax. :-)
15458 sed -n '
15459 p
15460 /[$]LINENO/=
15461 ' <$as_myself |
ad6254c5 15462 sed '
7a197a62
AK
15463 s/[$]LINENO.*/&-/
15464 t lineno
15465 b
15466 :lineno
ad6254c5 15467 N
7a197a62
AK
15468 :loop
15469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 15470 t loop
7a197a62 15471 s/-\n.*//
ad6254c5 15472 ' >$as_me.lineno &&
7a197a62 15473 chmod +x "$as_me.lineno" ||
ec6a6fbe 15474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
15475 { (exit 1); exit 1; }; }
15476
15477 # Don't try to exec as it changes $[0], causing all sort of problems
15478 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
15479 # original and so on. Autoconf is especially sensitive to this).
15480 . "./$as_me.lineno"
ad6254c5
AK
15481 # Exit status is that of the last command.
15482 exit
15483}
15484
15485
7a197a62
AK
15486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15487 as_dirname=dirname
15488else
15489 as_dirname=false
15490fi
15491
15492ECHO_C= ECHO_N= ECHO_T=
15493case `echo -n x` in
15494-n*)
15495 case `echo 'x\c'` in
15496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15497 *) ECHO_C='\c';;
15498 esac;;
15499*)
15500 ECHO_N='-n';;
ad6254c5 15501esac
7a197a62
AK
15502if expr a : '\(a\)' >/dev/null 2>&1 &&
15503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
15504 as_expr=expr
15505else
15506 as_expr=false
15507fi
80992638 15508
ad6254c5 15509rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
15510if test -d conf$$.dir; then
15511 rm -f conf$$.dir/conf$$.file
15512else
15513 rm -f conf$$.dir
ec6a6fbe
AK
15514 mkdir conf$$.dir 2>/dev/null
15515fi
15516if (echo >conf$$.file) 2>/dev/null; then
15517 if ln -s conf$$.file conf$$ 2>/dev/null; then
15518 as_ln_s='ln -s'
15519 # ... but there are two gotchas:
15520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15522 # In both cases, we have to default to `cp -p'.
15523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15524 as_ln_s='cp -p'
15525 elif ln conf$$.file conf$$ 2>/dev/null; then
15526 as_ln_s=ln
15527 else
ad6254c5 15528 as_ln_s='cp -p'
ec6a6fbe 15529 fi
ad6254c5
AK
15530else
15531 as_ln_s='cp -p'
15532fi
7a197a62
AK
15533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15534rmdir conf$$.dir 2>/dev/null
8106cdd5 15535
ad6254c5
AK
15536if mkdir -p . 2>/dev/null; then
15537 as_mkdir_p=:
15538else
8a2fc586 15539 test -d ./-p && rmdir ./-p
ad6254c5
AK
15540 as_mkdir_p=false
15541fi
15542
25fbec5b
AK
15543if test -x / >/dev/null 2>&1; then
15544 as_test_x='test -x'
7a197a62 15545else
25fbec5b
AK
15546 if ls -dL / >/dev/null 2>&1; then
15547 as_ls_L_option=L
15548 else
15549 as_ls_L_option=
15550 fi
15551 as_test_x='
15552 eval sh -c '\''
15553 if test -d "$1"; then
ec6a6fbe 15554 test -d "$1/.";
25fbec5b
AK
15555 else
15556 case $1 in
ec6a6fbe 15557 -*)set "./$1";;
25fbec5b
AK
15558 esac;
15559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15560 ???[sx]*):;;*)false;;esac;fi
15561 '\'' sh
15562 '
7a197a62 15563fi
25fbec5b 15564as_executable_p=$as_test_x
ad6254c5
AK
15565
15566# Sed expression to map a string onto a valid CPP name.
8a2fc586 15567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
15568
15569# Sed expression to map a string onto a valid variable name.
8a2fc586 15570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
15571
15572
ad6254c5
AK
15573exec 6>&1
15574
7a197a62 15575# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 15576# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
15577# values after options handling.
15578ac_log="
ad6254c5 15579This file was extended by $as_me, which was
ec6a6fbe 15580generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
15581
15582 CONFIG_FILES = $CONFIG_FILES
15583 CONFIG_HEADERS = $CONFIG_HEADERS
15584 CONFIG_LINKS = $CONFIG_LINKS
15585 CONFIG_COMMANDS = $CONFIG_COMMANDS
15586 $ $0 $@
15587
7a197a62
AK
15588on `(hostname || uname -n) 2>/dev/null | sed 1q`
15589"
15590
ad6254c5
AK
15591_ACEOF
15592
ec6a6fbe
AK
15593case $ac_config_files in *"
15594"*) set x $ac_config_files; shift; ac_config_files=$*;;
15595esac
15596
15597case $ac_config_headers in *"
15598"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15599esac
15600
15601
15602cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 15603# Files that config.status was made for.
68f2de6d
AK
15604config_files="$ac_config_files"
15605config_headers="$ac_config_headers"
ad6254c5 15606
7a197a62 15607_ACEOF
ad6254c5 15608
ec6a6fbe 15609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
15610ac_cs_usage="\
15611\`$as_me' instantiates files from templates according to the
15612current configuration.
15613
ec6a6fbe 15614Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
15615
15616 -h, --help print this help, then exit
25fbec5b 15617 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
15618 -q, --quiet, --silent
15619 do not print progress messages
ad6254c5
AK
15620 -d, --debug don't remove temporary files
15621 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
15622 --file=FILE[:TEMPLATE]
15623 instantiate the configuration file FILE
15624 --header=FILE[:TEMPLATE]
15625 instantiate the configuration header FILE
ad6254c5
AK
15626
15627Configuration files:
15628$config_files
15629
72b2cb61
AK
15630Configuration headers:
15631$config_headers
15632
ad6254c5 15633Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 15634
7a197a62 15635_ACEOF
ec6a6fbe 15636cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
15637ac_cs_version="\\
15638config.status
ec6a6fbe
AK
15639configured by $0, generated by GNU Autoconf 2.63,
15640 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 15641
ec6a6fbe 15642Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
15643This config.status script is free software; the Free Software Foundation
15644gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
15645
15646ac_pwd='$ac_pwd'
15647srcdir='$srcdir'
15648INSTALL='$INSTALL'
fddafd51 15649MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
15650AWK='$AWK'
15651test -n "\$AWK" || AWK=awk
ad6254c5
AK
15652_ACEOF
15653
ec6a6fbe
AK
15654cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15655# The default lists apply if the user does not specify any file.
ad6254c5
AK
15656ac_need_defaults=:
15657while test $# != 0
15658do
15659 case $1 in
15660 --*=*)
7a197a62
AK
15661 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15662 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
15663 ac_shift=:
15664 ;;
7a197a62 15665 *)
ad6254c5
AK
15666 ac_option=$1
15667 ac_optarg=$2
15668 ac_shift=shift
15669 ;;
ad6254c5
AK
15670 esac
15671
15672 case $ac_option in
15673 # Handling of the options.
ad6254c5
AK
15674 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15675 ac_cs_recheck=: ;;
7a197a62 15676 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 15677 $as_echo "$ac_cs_version"; exit ;;
7a197a62 15678 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
15679 debug=: ;;
15680 --file | --fil | --fi | --f )
15681 $ac_shift
ec6a6fbe
AK
15682 case $ac_optarg in
15683 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15684 esac
15685 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
15686 ac_need_defaults=false;;
15687 --header | --heade | --head | --hea )
15688 $ac_shift
ec6a6fbe
AK
15689 case $ac_optarg in
15690 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15691 esac
15692 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 15693 ac_need_defaults=false;;
7a197a62
AK
15694 --he | --h)
15695 # Conflict between --help and --header
ec6a6fbe 15696 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
15697Try \`$0 --help' for more information." >&2
15698 { (exit 1); exit 1; }; };;
15699 --help | --hel | -h )
ec6a6fbe 15700 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
15701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15702 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15703 ac_cs_silent=: ;;
15704
15705 # This is an error.
ec6a6fbe 15706 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 15707Try \`$0 --help' for more information." >&2
ad6254c5
AK
15708 { (exit 1); exit 1; }; } ;;
15709
7a197a62
AK
15710 *) ac_config_targets="$ac_config_targets $1"
15711 ac_need_defaults=false ;;
ad6254c5
AK
15712
15713 esac
15714 shift
15715done
15716
15717ac_configure_extra_args=
15718
15719if $ac_cs_silent; then
15720 exec 6>/dev/null
15721 ac_configure_extra_args="$ac_configure_extra_args --silent"
15722fi
15723
15724_ACEOF
ec6a6fbe 15725cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 15726if \$ac_cs_recheck; then
ec6a6fbe
AK
15727 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15728 shift
15729 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15730 CONFIG_SHELL='$SHELL'
7a197a62 15731 export CONFIG_SHELL
ec6a6fbe 15732 exec "\$@"
ad6254c5
AK
15733fi
15734
15735_ACEOF
ec6a6fbe 15736cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
15737exec 5>>config.log
15738{
15739 echo
15740 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15741## Running $as_me. ##
15742_ASBOX
ec6a6fbe 15743 $as_echo "$ac_log"
7a197a62 15744} >&5
ad6254c5 15745
7a197a62 15746_ACEOF
ec6a6fbe 15747cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 15748_ACEOF
ad6254c5 15749
ec6a6fbe 15750cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
15751
15752# Handling of arguments.
ad6254c5
AK
15753for ac_config_target in $ac_config_targets
15754do
7a197a62
AK
15755 case $ac_config_target in
15756 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
15757 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15758 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
15759 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
15760 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
a946372e 15761 "daemons/clogd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clogd/Makefile" ;;
93bd259b
AK
15762 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
15763 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 15764 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
93bd259b
AK
15765 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
15766 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 15767 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
93bd259b
AK
15768 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15769 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
15770 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
15771 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
15772 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
15773 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
ec6a6fbe 15774 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 15775 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
15776 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
15777 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 15778 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 15779 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
15780 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15781 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 15782 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
7a197a62 15783 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 15784 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 15785 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 15786 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 15787 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
7a197a62 15788
ec6a6fbe
AK
15789 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15790$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 15791 { (exit 1); exit 1; }; };;
80992638 15792 esac
ad6254c5
AK
15793done
15794
7a197a62 15795
ad6254c5
AK
15796# If the user did not use the arguments to specify the items to instantiate,
15797# then the envvar interface is used. Set only those that are not.
15798# We use the long form for the default assignment because of an extremely
15799# bizarre bug on SunOS 4.1.3.
15800if $ac_need_defaults; then
15801 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 15802 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
15803fi
15804
15805# Have a temporary directory for convenience. Make it in the build tree
7a197a62 15806# simply because there is no reason against having it here, and in addition,
ad6254c5 15807# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
15808# Hook for its removal unless debugging.
15809# Note that there is a small window in which the directory will not be cleaned:
15810# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
15811$debug ||
15812{
7a197a62
AK
15813 tmp=
15814 trap 'exit_status=$?
15815 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15816' 0
ad6254c5
AK
15817 trap '{ (exit 1); exit 1; }' 1 2 13 15
15818}
ad6254c5
AK
15819# Create a (secure) tmp directory for tmp files.
15820
15821{
7a197a62 15822 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
15823 test -n "$tmp" && test -d "$tmp"
15824} ||
15825{
7a197a62
AK
15826 tmp=./conf$$-$RANDOM
15827 (umask 077 && mkdir "$tmp")
ad6254c5
AK
15828} ||
15829{
ec6a6fbe 15830 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
15831 { (exit 1); exit 1; }
15832}
15833
ec6a6fbe
AK
15834# Set up the scripts for CONFIG_FILES section.
15835# No need to generate them if there are no CONFIG_FILES.
15836# This happens for instance with `./config.status config.h'.
1995c9ff 15837if test -n "$CONFIG_FILES"; then
7a197a62 15838
68f2de6d 15839
ec6a6fbe
AK
15840ac_cr='\r'
15841ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15842if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15843 ac_cs_awk_cr='\\r'
15844else
15845 ac_cs_awk_cr=$ac_cr
1995c9ff 15846fi
7a197a62 15847
ec6a6fbe 15848echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 15849_ACEOF
7a197a62 15850
8106cdd5 15851
ec6a6fbe
AK
15852{
15853 echo "cat >conf$$subs.awk <<_ACEOF" &&
15854 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15855 echo "_ACEOF"
15856} >conf$$subs.sh ||
15857 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15858$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15859 { (exit 1); exit 1; }; }
15860ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
15861ac_delim='%!_!# '
15862for ac_last_try in false false false false false :; do
ec6a6fbe
AK
15863 . ./conf$$subs.sh ||
15864 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15865$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15866 { (exit 1); exit 1; }; }
15867
15868 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15869 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
15870 break
15871 elif $ac_last_try; then
ec6a6fbe
AK
15872 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15873$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
15874 { (exit 1); exit 1; }; }
15875 else
15876 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15877 fi
15878done
ec6a6fbe
AK
15879rm -f conf$$subs.sh
15880
15881cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15882cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15883_ACEOF
15884sed -n '
15885h
15886s/^/S["/; s/!.*/"]=/
15887p
15888g
15889s/^[^!]*!//
15890:repl
15891t repl
15892s/'"$ac_delim"'$//
15893t delim
15894:nl
15895h
15896s/\(.\{148\}\).*/\1/
15897t more1
15898s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15899p
15900n
15901b repl
15902:more1
15903s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15904p
15905g
15906s/.\{148\}//
15907t nl
15908:delim
15909h
15910s/\(.\{148\}\).*/\1/
15911t more2
15912s/["\\]/\\&/g; s/^/"/; s/$/"/
15913p
15914b
15915:more2
15916s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15917p
15918g
15919s/.\{148\}//
15920t delim
15921' <conf$$subs.awk | sed '
15922/^[^""]/{
15923 N
15924 s/\n//
15925}
15926' >>$CONFIG_STATUS || ac_write_fail=1
15927rm -f conf$$subs.awk
15928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15929_ACAWK
15930cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15931 for (key in S) S_is_set[key] = 1
15932 FS = "\a"
7a197a62 15933
ec6a6fbe
AK
15934}
15935{
15936 line = $ 0
15937 nfields = split(line, field, "@")
15938 substed = 0
15939 len = length(field[1])
15940 for (i = 2; i < nfields; i++) {
15941 key = field[i]
15942 keylen = length(key)
15943 if (S_is_set[key]) {
15944 value = S[key]
15945 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15946 len += length(value) + length(field[++i])
15947 substed = 1
15948 } else
15949 len += 1 + keylen
15950 }
15951
15952 print line
15953}
fddafd51 15954
ec6a6fbe 15955_ACAWK
1995c9ff 15956_ACEOF
ec6a6fbe
AK
15957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15958if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15959 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15960else
15961 cat
15962fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15963 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
15964$as_echo "$as_me: error: could not setup config files machinery" >&2;}
15965 { (exit 1); exit 1; }; }
7a197a62
AK
15966_ACEOF
15967
7a197a62
AK
15968# VPATH may cause trouble with some makes, so we remove $(srcdir),
15969# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15970# trailing colons and then remove the whole line if VPATH becomes empty
15971# (actually we leave an empty line to preserve line numbers).
15972if test "x$srcdir" = x.; then
15973 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15974s/:*\$(srcdir):*/:/
15975s/:*\${srcdir}:*/:/
15976s/:*@srcdir@:*/:/
15977s/^\([^=]*=[ ]*\):*/\1/
15978s/:*$//
15979s/^[^=]*=[ ]*$//
15980}'
15981fi
15982
ec6a6fbe 15983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
15984fi # test -n "$CONFIG_FILES"
15985
ec6a6fbe
AK
15986# Set up the scripts for CONFIG_HEADERS section.
15987# No need to generate them if there are no CONFIG_HEADERS.
15988# This happens for instance with `./config.status Makefile'.
15989if test -n "$CONFIG_HEADERS"; then
15990cat >"$tmp/defines.awk" <<\_ACAWK ||
15991BEGIN {
15992_ACEOF
15993
15994# Transform confdefs.h into an awk script `defines.awk', embedded as
15995# here-document in config.status, that substitutes the proper values into
15996# config.h.in to produce config.h.
15997
15998# Create a delimiter string that does not exist in confdefs.h, to ease
15999# handling of long lines.
16000ac_delim='%!_!# '
16001for ac_last_try in false false :; do
16002 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16003 if test -z "$ac_t"; then
16004 break
16005 elif $ac_last_try; then
16006 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16007$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16008 { (exit 1); exit 1; }; }
16009 else
16010 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16011 fi
16012done
16013
16014# For the awk script, D is an array of macro values keyed by name,
16015# likewise P contains macro parameters if any. Preserve backslash
16016# newline sequences.
16017
16018ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16019sed -n '
16020s/.\{148\}/&'"$ac_delim"'/g
16021t rset
16022:rset
16023s/^[ ]*#[ ]*define[ ][ ]*/ /
16024t def
16025d
16026:def
16027s/\\$//
16028t bsnl
16029s/["\\]/\\&/g
16030s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16031D["\1"]=" \3"/p
16032s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16033d
16034:bsnl
16035s/["\\]/\\&/g
16036s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16037D["\1"]=" \3\\\\\\n"\\/p
16038t cont
16039s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16040t cont
16041d
16042:cont
16043n
16044s/.\{148\}/&'"$ac_delim"'/g
16045t clear
16046:clear
16047s/\\$//
16048t bsnlc
16049s/["\\]/\\&/g; s/^/"/; s/$/"/p
16050d
16051:bsnlc
16052s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16053b cont
16054' <confdefs.h | sed '
16055s/'"$ac_delim"'/"\\\
16056"/g' >>$CONFIG_STATUS || ac_write_fail=1
16057
16058cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16059 for (key in D) D_is_set[key] = 1
16060 FS = "\a"
16061}
16062/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16063 line = \$ 0
16064 split(line, arg, " ")
16065 if (arg[1] == "#") {
16066 defundef = arg[2]
16067 mac1 = arg[3]
16068 } else {
16069 defundef = substr(arg[1], 2)
16070 mac1 = arg[2]
16071 }
16072 split(mac1, mac2, "(") #)
16073 macro = mac2[1]
16074 prefix = substr(line, 1, index(line, defundef) - 1)
16075 if (D_is_set[macro]) {
16076 # Preserve the white space surrounding the "#".
16077 print prefix "define", macro P[macro] D[macro]
16078 next
16079 } else {
16080 # Replace #undef with comments. This is necessary, for example,
16081 # in the case of _POSIX_SOURCE, which is predefined and required
16082 # on some systems where configure will not decide to define it.
16083 if (defundef == "undef") {
16084 print "/*", prefix defundef, macro, "*/"
16085 next
16086 }
16087 }
16088}
16089{ print }
16090_ACAWK
16091_ACEOF
16092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16093 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16094$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16095 { (exit 1); exit 1; }; }
16096fi # test -n "$CONFIG_HEADERS"
16097
7a197a62 16098
ec6a6fbe
AK
16099eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16100shift
16101for ac_tag
7a197a62
AK
16102do
16103 case $ac_tag in
16104 :[FHLC]) ac_mode=$ac_tag; continue;;
16105 esac
16106 case $ac_mode$ac_tag in
16107 :[FHL]*:*);;
ec6a6fbe
AK
16108 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16109$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
16110 { (exit 1); exit 1; }; };;
16111 :[FH]-) ac_tag=-:-;;
16112 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16113 esac
16114 ac_save_IFS=$IFS
16115 IFS=:
16116 set x $ac_tag
16117 IFS=$ac_save_IFS
16118 shift
16119 ac_file=$1
16120 shift
16121
16122 case $ac_mode in
16123 :L) ac_source=$1;;
16124 :[FH])
16125 ac_file_inputs=
16126 for ac_f
16127 do
16128 case $ac_f in
16129 -) ac_f="$tmp/stdin";;
16130 *) # Look for the file first in the build tree, then in the source tree
16131 # (if the path is not absolute). The absolute path cannot be DOS-style,
16132 # because $ac_f cannot contain `:'.
16133 test -f "$ac_f" ||
16134 case $ac_f in
16135 [\\/$]*) false;;
16136 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16137 esac ||
ec6a6fbe
AK
16138 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16139$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
16140 { (exit 1); exit 1; }; };;
16141 esac
ec6a6fbe
AK
16142 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16143 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
16144 done
16145
16146 # Let's still pretend it is `configure' which instantiates (i.e., don't
16147 # use $as_me), people would be surprised to read:
16148 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
16149 configure_input='Generated from '`
16150 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16151 `' by configure.'
7a197a62
AK
16152 if test x"$ac_file" != x-; then
16153 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
16154 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16155$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 16156 fi
ec6a6fbe
AK
16157 # Neutralize special characters interpreted by sed in replacement strings.
16158 case $configure_input in #(
16159 *\&* | *\|* | *\\* )
16160 ac_sed_conf_input=`$as_echo "$configure_input" |
16161 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16162 *) ac_sed_conf_input=$configure_input;;
16163 esac
7a197a62
AK
16164
16165 case $ac_tag in
ec6a6fbe
AK
16166 *:-:* | *:-) cat >"$tmp/stdin" \
16167 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16168$as_echo "$as_me: error: could not create $ac_file" >&2;}
16169 { (exit 1); exit 1; }; } ;;
7a197a62
AK
16170 esac
16171 ;;
80992638 16172 esac
8106cdd5 16173
7a197a62 16174 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 16175$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
16176 X"$ac_file" : 'X\(//\)[^/]' \| \
16177 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 16178 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 16179$as_echo X"$ac_file" |
7a197a62
AK
16180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16181 s//\1/
16182 q
16183 }
16184 /^X\(\/\/\)[^/].*/{
16185 s//\1/
16186 q
16187 }
16188 /^X\(\/\/\)$/{
16189 s//\1/
16190 q
16191 }
16192 /^X\(\/\).*/{
16193 s//\1/
16194 q
16195 }
16196 s/.*/./; q'`
16197 { as_dir="$ac_dir"
16198 case $as_dir in #(
16199 -*) as_dir=./$as_dir;;
16200 esac
16201 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 16202 as_dirs=
7a197a62
AK
16203 while :; do
16204 case $as_dir in #(
ec6a6fbe 16205 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
16206 *) as_qdir=$as_dir;;
16207 esac
16208 as_dirs="'$as_qdir' $as_dirs"
16209 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 16210$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
16211 X"$as_dir" : 'X\(//\)[^/]' \| \
16212 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 16213 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 16214$as_echo X"$as_dir" |
7a197a62
AK
16215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16216 s//\1/
16217 q
16218 }
16219 /^X\(\/\/\)[^/].*/{
16220 s//\1/
16221 q
16222 }
16223 /^X\(\/\/\)$/{
16224 s//\1/
16225 q
16226 }
16227 /^X\(\/\).*/{
16228 s//\1/
16229 q
16230 }
16231 s/.*/./; q'`
16232 test -d "$as_dir" && break
ad6254c5 16233 done
7a197a62 16234 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
16235 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16236$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 16237 { (exit 1); exit 1; }; }; }
ad6254c5
AK
16238 ac_builddir=.
16239
7a197a62
AK
16240case "$ac_dir" in
16241.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16242*)
ec6a6fbe 16243 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 16244 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 16245 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
16246 case $ac_top_builddir_sub in
16247 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16248 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16249 esac ;;
16250esac
16251ac_abs_top_builddir=$ac_pwd
16252ac_abs_builddir=$ac_pwd$ac_dir_suffix
16253# for backward compatibility:
16254ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
16255
16256case $srcdir in
7a197a62 16257 .) # We are building in place.
ad6254c5 16258 ac_srcdir=.
7a197a62
AK
16259 ac_top_srcdir=$ac_top_builddir_sub
16260 ac_abs_top_srcdir=$ac_pwd ;;
16261 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 16262 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
16263 ac_top_srcdir=$srcdir
16264 ac_abs_top_srcdir=$srcdir ;;
16265 *) # Relative name.
16266 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16267 ac_top_srcdir=$ac_top_build_prefix$srcdir
16268 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 16269esac
7a197a62 16270ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 16271
ad6254c5 16272
7a197a62
AK
16273 case $ac_mode in
16274 :F)
16275 #
16276 # CONFIG_FILE
16277 #
ad6254c5
AK
16278
16279 case $INSTALL in
16280 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 16281 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 16282 esac
fddafd51
ZK
16283 ac_MKDIR_P=$MKDIR_P
16284 case $MKDIR_P in
16285 [\\/$]* | ?:[\\/]* ) ;;
16286 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16287 esac
7a197a62 16288_ACEOF
795ca3e5 16289
ec6a6fbe 16290cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16291# If the template does not know about datarootdir, expand it.
16292# FIXME: This hack should be removed a few years after 2.60.
16293ac_datarootdir_hack=; ac_datarootdir_seen=
16294
ec6a6fbe
AK
16295ac_sed_dataroot='
16296/datarootdir/ {
7a197a62
AK
16297 p
16298 q
16299}
16300/@datadir@/p
16301/@docdir@/p
16302/@infodir@/p
16303/@localedir@/p
16304/@mandir@/p
ec6a6fbe
AK
16305'
16306case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
16307*datarootdir*) ac_datarootdir_seen=yes;;
16308*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
16309 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16310$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 16311_ACEOF
ec6a6fbe 16312cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
16313 ac_datarootdir_hack='
16314 s&@datadir@&$datadir&g
16315 s&@docdir@&$docdir&g
16316 s&@infodir@&$infodir&g
16317 s&@localedir@&$localedir&g
16318 s&@mandir@&$mandir&g
16319 s&\\\${datarootdir}&$datarootdir&g' ;;
16320esac
16321_ACEOF
16322
16323# Neutralize VPATH when `$srcdir' = `.'.
16324# Shell code in configure.ac might set extrasub.
16325# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
16326cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16327ac_sed_extra="$ac_vpsub
ad6254c5
AK
16328$extrasub
16329_ACEOF
ec6a6fbe 16330cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
16331:t
16332/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 16333s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 16334s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 16335s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
16336s&@srcdir@&$ac_srcdir&;t t
16337s&@abs_srcdir@&$ac_abs_srcdir&;t t
16338s&@top_srcdir@&$ac_top_srcdir&;t t
16339s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16340s&@builddir@&$ac_builddir&;t t
16341s&@abs_builddir@&$ac_abs_builddir&;t t
16342s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16343s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 16344s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 16345$ac_datarootdir_hack
ec6a6fbe
AK
16346"
16347eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16348 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16349$as_echo "$as_me: error: could not create $ac_file" >&2;}
16350 { (exit 1); exit 1; }; }
7a197a62
AK
16351
16352test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16353 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16354 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 16355 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 16356which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 16357$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
16358which seems to be undefined. Please make sure it is defined." >&2;}
16359
16360 rm -f "$tmp/stdin"
72b2cb61 16361 case $ac_file in
ec6a6fbe
AK
16362 -) cat "$tmp/out" && rm -f "$tmp/out";;
16363 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16364 esac \
16365 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16366$as_echo "$as_me: error: could not create $ac_file" >&2;}
16367 { (exit 1); exit 1; }; }
7a197a62
AK
16368 ;;
16369 :H)
16370 #
16371 # CONFIG_HEADER
16372 #
72b2cb61 16373 if test x"$ac_file" != x-; then
ec6a6fbe
AK
16374 {
16375 $as_echo "/* $configure_input */" \
16376 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16377 } >"$tmp/config.h" \
16378 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16379$as_echo "$as_me: error: could not create $ac_file" >&2;}
16380 { (exit 1); exit 1; }; }
16381 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16382 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16383$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 16384 else
ec6a6fbe
AK
16385 rm -f "$ac_file"
16386 mv "$tmp/config.h" "$ac_file" \
16387 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16388$as_echo "$as_me: error: could not create $ac_file" >&2;}
16389 { (exit 1); exit 1; }; }
72b2cb61
AK
16390 fi
16391 else
ec6a6fbe
AK
16392 $as_echo "/* $configure_input */" \
16393 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16394 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16395$as_echo "$as_me: error: could not create -" >&2;}
16396 { (exit 1); exit 1; }; }
72b2cb61 16397 fi
7a197a62
AK
16398 ;;
16399
16400
16401 esac
16402
16403done # for ac_tag
795ca3e5 16404
795ca3e5 16405
ad6254c5
AK
16406{ (exit 0); exit 0; }
16407_ACEOF
795ca3e5 16408chmod +x $CONFIG_STATUS
ad6254c5
AK
16409ac_clean_files=$ac_clean_files_save
16410
ec6a6fbe
AK
16411test $ac_write_fail = 0 ||
16412 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16413$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16414 { (exit 1); exit 1; }; }
16415
ad6254c5
AK
16416
16417# configure is writing to config.log, and then calls config.status.
16418# config.status does its own redirection, appending to config.log.
16419# Unfortunately, on DOS this fails, as config.log is still kept open
16420# by configure, so config.status won't be able to write to it; its
16421# output is simply discarded. So we exec the FD to /dev/null,
16422# effectively closing config.log, so it can be properly (re)opened and
16423# appended to by config.status. When coming back to configure, we
16424# need to make the FD available again.
16425if test "$no_create" != yes; then
16426 ac_cs_success=:
16427 ac_config_status_args=
16428 test "$silent" = yes &&
16429 ac_config_status_args="$ac_config_status_args --quiet"
16430 exec 5>/dev/null
16431 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16432 exec 5>>config.log
16433 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16434 # would make configure fail if this is the last instruction.
16435 $ac_cs_success || { (exit 1); exit 1; }
16436fi
ec6a6fbe
AK
16437if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16438 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16439$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16440fi
795ca3e5 16441
2dc95e1c
AK
16442
16443if test x$ODIRECT != xyes; then
ec6a6fbe
AK
16444 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
16445$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 16446fi
This page took 2.117809 seconds and 5 git commands to generate.