]> sourceware.org Git - lvm2.git/blame - configure
This patch add SELINUX_LIBS and STATIC_LIBS variables.
[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
0878503f 649UDEV_SYNC
a5f46f6a 650UDEV_RULES
ec6a6fbe
AK
651STATIC_LINK
652STATICDIR
653SNAPSHOTS
e1b8a236 654SELINUX_LIBS
539f4a77 655READLINE_LIBS
f30875db 656PTHREAD_LIBS
ec6a6fbe
AK
657POOL
658PKGCONFIG
659OWNER
660MIRRORS
661LVM_RELEASE_DATE
662LVM_RELEASE
663LVM_PATCHLEVEL
664LVM_MINOR
665LVM_MAJOR
bf456146 666LVM_LIBAPI
ec6a6fbe 667LVM_VERSION
ec6a6fbe
AK
668LVM1_FALLBACK
669LVM1
670LOCALEDIR
671LIB_SUFFIX
672LDDEPS
673JOBS
674INTL_PACKAGE
675INTL
ec6a6fbe
AK
676HAVE_REALTIME
677HAVE_LIBDL
678GROUP
679FSADM
680DM_LIB_PATCHLEVEL
681DM_LIB_VERSION
682DM_IOCTLS
683DM_DEVICE_UID
684DM_DEVICE_MODE
685DM_DEVICE_GID
686DM_COMPAT
687DMEVENTD
688DEVMAPPER
689DEBUG
690COPTIMISE_FLAG
e2997b73 691CONFDIR
ec6a6fbe
AK
692CMDLIB
693CLVMD
694CLUSTER
695CLDWHOLEARCHIVE
696CLDNOWHOLEARCHIVE
697CLDFLAGS
698BUILD_DMEVENTD
66fd4529 699BUILD_CMIRRORD
572fefeb 700APPLIB
ec6a6fbe
AK
701MODPROBE_CMD
702MSGFMT
703LVM2CMD_LIB
572fefeb 704LVM2APP_LIB
ec6a6fbe
AK
705GENHTML
706LCOV
90c80887
AK
707SACKPT_LIBS
708SACKPT_CFLAGS
a946372e
AK
709DLM_LIBS
710DLM_CFLAGS
e2997b73
AK
711CPG_LIBS
712CPG_CFLAGS
713CONFDB_LIBS
714CONFDB_CFLAGS
a946372e
AK
715SALCK_LIBS
716SALCK_CFLAGS
e2997b73
AK
717QUORUM_LIBS
718QUORUM_CFLAGS
a946372e
AK
719COROSYNC_LIBS
720COROSYNC_CFLAGS
721CMAN_LIBS
722CMAN_CFLAGS
723GULM_LIBS
724GULM_CFLAGS
725CCS_LIBS
726CCS_CFLAGS
727PKGCONFIGINIT_LIBS
728PKGCONFIGINIT_CFLAGS
e2997b73 729PKG_CONFIG
ec6a6fbe
AK
730POW_LIB
731LIBOBJS
732ALLOCA
733CSCOPE_CMD
734CFLOW_CMD
735RANLIB
736MKDIR_P
737SET_MAKE
738LN_S
739INSTALL_DATA
740INSTALL_SCRIPT
741INSTALL_PROGRAM
742EGREP
743GREP
744CPP
745OBJEXT
746EXEEXT
747ac_ct_CC
748CPPFLAGS
749LDFLAGS
750CFLAGS
751CC
752AWK
753SED
754target_os
755target_vendor
756target_cpu
757target
758host_os
759host_vendor
760host_cpu
761host
762build_os
763build_vendor
764build_cpu
765build
766target_alias
767host_alias
768build_alias
769LIBS
770ECHO_T
771ECHO_N
772ECHO_C
773DEFS
774mandir
775localedir
776libdir
777psdir
778pdfdir
779dvidir
780htmldir
781infodir
782docdir
783oldincludedir
784includedir
785localstatedir
786sharedstatedir
787sysconfdir
788datadir
789datarootdir
790libexecdir
791sbindir
792bindir
793program_transform_name
794prefix
795exec_prefix
796PACKAGE_BUGREPORT
797PACKAGE_STRING
798PACKAGE_VERSION
799PACKAGE_TARNAME
800PACKAGE_NAME
801PATH_SEPARATOR
802SHELL'
ad6254c5 803ac_subst_files=''
ec6a6fbe
AK
804ac_user_opts='
805enable_option_checking
806enable_static_link
807with_user
808with_group
809with_device_uid
810with_device_gid
811with_device_mode
812enable_lvm1_fallback
813with_lvm1
814with_pool
815with_cluster
816with_snapshots
817with_mirrors
818enable_readline
819enable_realtime
820with_clvmd
66fd4529
AK
821enable_cmirrord
822with_cmirrord_pidfile
ec6a6fbe
AK
823enable_debug
824with_optimisation
825enable_profiling
826enable_devmapper
a5f46f6a
AK
827enable_udev_sync
828enable_udev_rules
ec6a6fbe 829enable_compat
95eaa683 830enable_units_compat
ec6a6fbe
AK
831enable_ioctl
832enable_o_direct
572fefeb 833enable_applib
ec6a6fbe
AK
834enable_cmdlib
835enable_pkgconfig
836enable_fsadm
837enable_dmeventd
838enable_selinux
839enable_nls
840with_localedir
841with_confdir
842with_staticdir
843with_usrlibdir
844with_usrsbindir
a5f46f6a 845with_udev_prefix
78ce7acc 846with_udevdir
ec6a6fbe
AK
847with_dmeventd_pidfile
848with_dmeventd_path
849with_interface
850'
7a197a62
AK
851 ac_precious_vars='build_alias
852host_alias
853target_alias
854CC
855CFLAGS
856LDFLAGS
25fbec5b 857LIBS
7a197a62 858CPPFLAGS
e2997b73
AK
859CPP
860PKG_CONFIG
a946372e
AK
861PKGCONFIGINIT_CFLAGS
862PKGCONFIGINIT_LIBS
863CCS_CFLAGS
864CCS_LIBS
865GULM_CFLAGS
866GULM_LIBS
867CMAN_CFLAGS
868CMAN_LIBS
869COROSYNC_CFLAGS
870COROSYNC_LIBS
e2997b73
AK
871QUORUM_CFLAGS
872QUORUM_LIBS
a946372e
AK
873SALCK_CFLAGS
874SALCK_LIBS
e2997b73
AK
875CONFDB_CFLAGS
876CONFDB_LIBS
877CPG_CFLAGS
a946372e
AK
878CPG_LIBS
879DLM_CFLAGS
90c80887
AK
880DLM_LIBS
881SACKPT_CFLAGS
882SACKPT_LIBS'
7a197a62 883
795ca3e5
AK
884
885# Initialize some variables set by options.
ad6254c5
AK
886ac_init_help=
887ac_init_version=false
ec6a6fbe
AK
888ac_unrecognized_opts=
889ac_unrecognized_sep=
795ca3e5
AK
890# The variables have the same names as the options, with
891# dashes changed to underlines.
ad6254c5 892cache_file=/dev/null
795ca3e5 893exec_prefix=NONE
795ca3e5 894no_create=
795ca3e5
AK
895no_recursion=
896prefix=NONE
897program_prefix=NONE
898program_suffix=NONE
899program_transform_name=s,x,x,
900silent=
901site=
902srcdir=
795ca3e5
AK
903verbose=
904x_includes=NONE
905x_libraries=NONE
ad6254c5
AK
906
907# Installation directory options.
908# These are left unexpanded so users can "make install exec_prefix=/foo"
909# and all the variables that are supposed to be based on exec_prefix
910# by default will actually change.
911# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 912# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
913bindir='${exec_prefix}/bin'
914sbindir='${exec_prefix}/sbin'
915libexecdir='${exec_prefix}/libexec'
7a197a62
AK
916datarootdir='${prefix}/share'
917datadir='${datarootdir}'
795ca3e5
AK
918sysconfdir='${prefix}/etc'
919sharedstatedir='${prefix}/com'
920localstatedir='${prefix}/var'
795ca3e5
AK
921includedir='${prefix}/include'
922oldincludedir='/usr/include'
7a197a62
AK
923docdir='${datarootdir}/doc/${PACKAGE}'
924infodir='${datarootdir}/info'
925htmldir='${docdir}'
926dvidir='${docdir}'
927pdfdir='${docdir}'
928psdir='${docdir}'
929libdir='${exec_prefix}/lib'
930localedir='${datarootdir}/locale'
931mandir='${datarootdir}/man'
795ca3e5 932
795ca3e5 933ac_prev=
7a197a62 934ac_dashdash=
795ca3e5
AK
935for ac_option
936do
795ca3e5
AK
937 # If the previous option needs an argument, assign it.
938 if test -n "$ac_prev"; then
7a197a62 939 eval $ac_prev=\$ac_option
795ca3e5
AK
940 ac_prev=
941 continue
942 fi
943
7a197a62
AK
944 case $ac_option in
945 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
946 *) ac_optarg=yes ;;
947 esac
795ca3e5
AK
948
949 # Accept the important Cygnus configure options, so we can diagnose typos.
950
7a197a62
AK
951 case $ac_dashdash$ac_option in
952 --)
953 ac_dashdash=yes ;;
795ca3e5
AK
954
955 -bindir | --bindir | --bindi | --bind | --bin | --bi)
956 ac_prev=bindir ;;
957 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 958 bindir=$ac_optarg ;;
795ca3e5
AK
959
960 -build | --build | --buil | --bui | --bu)
ad6254c5 961 ac_prev=build_alias ;;
795ca3e5 962 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 963 build_alias=$ac_optarg ;;
795ca3e5
AK
964
965 -cache-file | --cache-file | --cache-fil | --cache-fi \
966 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
967 ac_prev=cache_file ;;
968 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
969 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
970 cache_file=$ac_optarg ;;
971
972 --config-cache | -C)
973 cache_file=config.cache ;;
795ca3e5 974
7a197a62 975 -datadir | --datadir | --datadi | --datad)
795ca3e5 976 ac_prev=datadir ;;
7a197a62 977 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 978 datadir=$ac_optarg ;;
795ca3e5 979
7a197a62
AK
980 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
981 | --dataroo | --dataro | --datar)
982 ac_prev=datarootdir ;;
983 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
984 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
985 datarootdir=$ac_optarg ;;
986
795ca3e5 987 -disable-* | --disable-*)
ec6a6fbe 988 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 989 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 992 { (exit 1); exit 1; }; }
ec6a6fbe
AK
993 ac_useropt_orig=$ac_useropt
994 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995 case $ac_user_opts in
996 *"
997"enable_$ac_useropt"
998"*) ;;
999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1000 ac_unrecognized_sep=', ';;
1001 esac
1002 eval enable_$ac_useropt=no ;;
7a197a62
AK
1003
1004 -docdir | --docdir | --docdi | --doc | --do)
1005 ac_prev=docdir ;;
1006 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007 docdir=$ac_optarg ;;
1008
1009 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010 ac_prev=dvidir ;;
1011 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012 dvidir=$ac_optarg ;;
795ca3e5
AK
1013
1014 -enable-* | --enable-*)
ec6a6fbe 1015 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1016 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1019 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1023 *"
1024"enable_$ac_useropt"
1025"*) ;;
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
1028 esac
1029 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1030
1031 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033 | --exec | --exe | --ex)
1034 ac_prev=exec_prefix ;;
1035 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037 | --exec=* | --exe=* | --ex=*)
ad6254c5 1038 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1039
1040 -gas | --gas | --ga | --g)
1041 # Obsolete; use --with-gas.
1042 with_gas=yes ;;
1043
ad6254c5
AK
1044 -help | --help | --hel | --he | -h)
1045 ac_init_help=long ;;
1046 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047 ac_init_help=recursive ;;
1048 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049 ac_init_help=short ;;
795ca3e5
AK
1050
1051 -host | --host | --hos | --ho)
ad6254c5 1052 ac_prev=host_alias ;;
795ca3e5 1053 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1054 host_alias=$ac_optarg ;;
795ca3e5 1055
7a197a62
AK
1056 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057 ac_prev=htmldir ;;
1058 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059 | --ht=*)
1060 htmldir=$ac_optarg ;;
1061
795ca3e5
AK
1062 -includedir | --includedir | --includedi | --included | --include \
1063 | --includ | --inclu | --incl | --inc)
1064 ac_prev=includedir ;;
1065 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1067 includedir=$ac_optarg ;;
795ca3e5
AK
1068
1069 -infodir | --infodir | --infodi | --infod | --info | --inf)
1070 ac_prev=infodir ;;
1071 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1072 infodir=$ac_optarg ;;
795ca3e5
AK
1073
1074 -libdir | --libdir | --libdi | --libd)
1075 ac_prev=libdir ;;
1076 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1077 libdir=$ac_optarg ;;
795ca3e5
AK
1078
1079 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080 | --libexe | --libex | --libe)
1081 ac_prev=libexecdir ;;
1082 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1084 libexecdir=$ac_optarg ;;
795ca3e5 1085
7a197a62
AK
1086 -localedir | --localedir | --localedi | --localed | --locale)
1087 ac_prev=localedir ;;
1088 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1089 localedir=$ac_optarg ;;
1090
795ca3e5 1091 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1092 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1093 ac_prev=localstatedir ;;
1094 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1095 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1096 localstatedir=$ac_optarg ;;
795ca3e5
AK
1097
1098 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099 ac_prev=mandir ;;
1100 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1101 mandir=$ac_optarg ;;
795ca3e5
AK
1102
1103 -nfp | --nfp | --nf)
1104 # Obsolete; use --without-fp.
1105 with_fp=no ;;
1106
1107 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1108 | --no-cr | --no-c | -n)
795ca3e5
AK
1109 no_create=yes ;;
1110
1111 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113 no_recursion=yes ;;
1114
1115 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117 | --oldin | --oldi | --old | --ol | --o)
1118 ac_prev=oldincludedir ;;
1119 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1122 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1123
1124 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125 ac_prev=prefix ;;
1126 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1127 prefix=$ac_optarg ;;
795ca3e5
AK
1128
1129 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130 | --program-pre | --program-pr | --program-p)
1131 ac_prev=program_prefix ;;
1132 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1134 program_prefix=$ac_optarg ;;
795ca3e5
AK
1135
1136 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137 | --program-suf | --program-su | --program-s)
1138 ac_prev=program_suffix ;;
1139 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1141 program_suffix=$ac_optarg ;;
795ca3e5
AK
1142
1143 -program-transform-name | --program-transform-name \
1144 | --program-transform-nam | --program-transform-na \
1145 | --program-transform-n | --program-transform- \
1146 | --program-transform | --program-transfor \
1147 | --program-transfo | --program-transf \
1148 | --program-trans | --program-tran \
1149 | --progr-tra | --program-tr | --program-t)
1150 ac_prev=program_transform_name ;;
1151 -program-transform-name=* | --program-transform-name=* \
1152 | --program-transform-nam=* | --program-transform-na=* \
1153 | --program-transform-n=* | --program-transform-=* \
1154 | --program-transform=* | --program-transfor=* \
1155 | --program-transfo=* | --program-transf=* \
1156 | --program-trans=* | --program-tran=* \
1157 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1158 program_transform_name=$ac_optarg ;;
795ca3e5 1159
7a197a62
AK
1160 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161 ac_prev=pdfdir ;;
1162 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1163 pdfdir=$ac_optarg ;;
1164
1165 -psdir | --psdir | --psdi | --psd | --ps)
1166 ac_prev=psdir ;;
1167 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168 psdir=$ac_optarg ;;
1169
795ca3e5
AK
1170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171 | -silent | --silent | --silen | --sile | --sil)
1172 silent=yes ;;
1173
1174 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175 ac_prev=sbindir ;;
1176 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177 | --sbi=* | --sb=*)
ad6254c5 1178 sbindir=$ac_optarg ;;
795ca3e5
AK
1179
1180 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182 | --sharedst | --shareds | --shared | --share | --shar \
1183 | --sha | --sh)
1184 ac_prev=sharedstatedir ;;
1185 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188 | --sha=* | --sh=*)
ad6254c5 1189 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1190
1191 -site | --site | --sit)
1192 ac_prev=site ;;
1193 -site=* | --site=* | --sit=*)
ad6254c5 1194 site=$ac_optarg ;;
795ca3e5
AK
1195
1196 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197 ac_prev=srcdir ;;
1198 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1199 srcdir=$ac_optarg ;;
795ca3e5
AK
1200
1201 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202 | --syscon | --sysco | --sysc | --sys | --sy)
1203 ac_prev=sysconfdir ;;
1204 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1206 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1207
1208 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1209 ac_prev=target_alias ;;
795ca3e5 1210 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1211 target_alias=$ac_optarg ;;
795ca3e5
AK
1212
1213 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1214 verbose=yes ;;
1215
ad6254c5
AK
1216 -version | --version | --versio | --versi | --vers | -V)
1217 ac_init_version=: ;;
795ca3e5
AK
1218
1219 -with-* | --with-*)
ec6a6fbe 1220 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1221 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1224 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1225 ac_useropt_orig=$ac_useropt
1226 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1228 *"
1229"with_$ac_useropt"
1230"*) ;;
1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1232 ac_unrecognized_sep=', ';;
1233 esac
1234 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1235
1236 -without-* | --without-*)
ec6a6fbe 1237 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1238 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1241 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1242 ac_useropt_orig=$ac_useropt
1243 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244 case $ac_user_opts in
1245 *"
1246"with_$ac_useropt"
1247"*) ;;
1248 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1249 ac_unrecognized_sep=', ';;
1250 esac
1251 eval with_$ac_useropt=no ;;
795ca3e5
AK
1252
1253 --x)
1254 # Obsolete; use --with-x.
1255 with_x=yes ;;
1256
1257 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1258 | --x-incl | --x-inc | --x-in | --x-i)
1259 ac_prev=x_includes ;;
1260 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1261 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1262 x_includes=$ac_optarg ;;
795ca3e5
AK
1263
1264 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1265 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1266 ac_prev=x_libraries ;;
1267 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1268 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1269 x_libraries=$ac_optarg ;;
795ca3e5 1270
ec6a6fbe 1271 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1272Try \`$0 --help' for more information." >&2
1273 { (exit 1); exit 1; }; }
795ca3e5
AK
1274 ;;
1275
ad6254c5
AK
1276 *=*)
1277 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1280 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1281 { (exit 1); exit 1; }; }
7a197a62 1282 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1283 export $ac_envvar ;;
1284
795ca3e5 1285 *)
ad6254c5 1286 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1287 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1288 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1289 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1290 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1291 ;;
1292
1293 esac
1294done
1295
1296if test -n "$ac_prev"; then
ad6254c5 1297 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec6a6fbe 1298 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1299 { (exit 1); exit 1; }; }
795ca3e5 1300fi
795ca3e5 1301
ec6a6fbe
AK
1302if test -n "$ac_unrecognized_opts"; then
1303 case $enable_option_checking in
1304 no) ;;
1305 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1306 { (exit 1); exit 1; }; } ;;
1307 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1308 esac
1309fi
1310
1311# Check all directory arguments for consistency.
7a197a62
AK
1312for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1313 datadir sysconfdir sharedstatedir localstatedir includedir \
1314 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1315 libdir localedir mandir
795ca3e5 1316do
7a197a62 1317 eval ac_val=\$$ac_var
ec6a6fbe
AK
1318 # Remove trailing slashes.
1319 case $ac_val in
1320 */ )
1321 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1322 eval $ac_var=\$ac_val;;
1323 esac
1324 # Be sure to have absolute directory names.
ad6254c5 1325 case $ac_val in
7a197a62
AK
1326 [\\/$]* | ?:[\\/]* ) continue;;
1327 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1328 esac
ec6a6fbe 1329 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1330 { (exit 1); exit 1; }; }
795ca3e5
AK
1331done
1332
ad6254c5
AK
1333# There might be people who depend on the old broken behavior: `$host'
1334# used to hold the argument of --host etc.
1335# FIXME: To remove some day.
1336build=$build_alias
1337host=$host_alias
1338target=$target_alias
1339
1340# FIXME: To remove some day.
1341if test "x$host_alias" != x; then
1342 if test "x$build_alias" = x; then
1343 cross_compiling=maybe
ec6a6fbe 1344 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1345 If a cross compiler is detected then cross compile mode will be used." >&2
1346 elif test "x$build_alias" != "x$host_alias"; then
1347 cross_compiling=yes
1348 fi
1349fi
8106cdd5 1350
ad6254c5
AK
1351ac_tool_prefix=
1352test -n "$host_alias" && ac_tool_prefix=$host_alias-
1353
1354test "$silent" = yes && exec 6>/dev/null
795ca3e5 1355
795ca3e5 1356
7a197a62
AK
1357ac_pwd=`pwd` && test -n "$ac_pwd" &&
1358ac_ls_di=`ls -di .` &&
1359ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec6a6fbe 1360 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7a197a62
AK
1361 { (exit 1); exit 1; }; }
1362test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec6a6fbe 1363 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1364 { (exit 1); exit 1; }; }
1365
1366
795ca3e5
AK
1367# Find the source files, if location was not specified.
1368if test -z "$srcdir"; then
1369 ac_srcdir_defaulted=yes
7a197a62 1370 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1371 ac_confdir=`$as_dirname -- "$as_myself" ||
1372$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1373 X"$as_myself" : 'X\(//\)[^/]' \| \
1374 X"$as_myself" : 'X\(//\)$' \| \
1375 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1376$as_echo X"$as_myself" |
7a197a62
AK
1377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1378 s//\1/
1379 q
1380 }
1381 /^X\(\/\/\)[^/].*/{
1382 s//\1/
1383 q
1384 }
1385 /^X\(\/\/\)$/{
1386 s//\1/
1387 q
1388 }
1389 /^X\(\/\).*/{
1390 s//\1/
1391 q
1392 }
1393 s/.*/./; q'`
795ca3e5 1394 srcdir=$ac_confdir
7a197a62 1395 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1396 srcdir=..
1397 fi
1398else
1399 ac_srcdir_defaulted=no
1400fi
7a197a62
AK
1401if test ! -r "$srcdir/$ac_unique_file"; then
1402 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec6a6fbe 1403 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1404 { (exit 1); exit 1; }; }
795ca3e5 1405fi
7a197a62
AK
1406ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1407ac_abs_confdir=`(
ec6a6fbe 1408 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1409 { (exit 1); exit 1; }; }
7a197a62
AK
1410 pwd)`
1411# When building in place, set srcdir=.
1412if test "$ac_abs_confdir" = "$ac_pwd"; then
1413 srcdir=.
1414fi
1415# Remove unnecessary trailing slashes from srcdir.
1416# Double slashes in file names in object file debugging info
1417# mess up M-x gdb in Emacs.
1418case $srcdir in
1419*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1420esac
1421for ac_var in $ac_precious_vars; do
1422 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_env_${ac_var}_value=\$${ac_var}
1424 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426done
ad6254c5
AK
1427
1428#
1429# Report the --help message.
1430#
1431if test "$ac_init_help" = "long"; then
1432 # Omit some internal or obsolete options to make the list less imposing.
1433 # This message is too long to be a string in the A/UX 3.1 sh.
1434 cat <<_ACEOF
1435\`configure' configures this package to adapt to many kinds of systems.
1436
1437Usage: $0 [OPTION]... [VAR=VALUE]...
1438
1439To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440VAR=VALUE. See below for descriptions of some of the useful variables.
1441
1442Defaults for the options are specified in brackets.
1443
1444Configuration:
1445 -h, --help display this help and exit
1446 --help=short display options specific to this package
1447 --help=recursive display the short help of all the included packages
1448 -V, --version display version information and exit
1449 -q, --quiet, --silent do not print \`checking...' messages
1450 --cache-file=FILE cache test results in FILE [disabled]
1451 -C, --config-cache alias for \`--cache-file=config.cache'
1452 -n, --no-create do not create output files
1453 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1454
ad6254c5
AK
1455Installation directories:
1456 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1457 [$ac_default_prefix]
ad6254c5 1458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1459 [PREFIX]
ad6254c5
AK
1460
1461By default, \`make install' will install all the files in
1462\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1463an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464for instance \`--prefix=\$HOME'.
1465
1466For better control, use the options below.
1467
1468Fine tuning of the installation directories:
ec6a6fbe
AK
1469 --bindir=DIR user executables [EPREFIX/bin]
1470 --sbindir=DIR system admin executables [EPREFIX/sbin]
1471 --libexecdir=DIR program executables [EPREFIX/libexec]
1472 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1473 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1474 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1475 --libdir=DIR object code libraries [EPREFIX/lib]
1476 --includedir=DIR C header files [PREFIX/include]
1477 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1478 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1479 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1480 --infodir=DIR info documentation [DATAROOTDIR/info]
1481 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1482 --mandir=DIR man documentation [DATAROOTDIR/man]
1483 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1484 --htmldir=DIR html documentation [DOCDIR]
1485 --dvidir=DIR dvi documentation [DOCDIR]
1486 --pdfdir=DIR pdf documentation [DOCDIR]
1487 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1488_ACEOF
1489
1490 cat <<\_ACEOF
1491
1492System types:
1493 --build=BUILD configure for building on BUILD [guessed]
1494 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1495 --target=TARGET configure for building compilers for TARGET [HOST]
1496_ACEOF
1497fi
1498
1499if test -n "$ac_init_help"; then
1500
1501 cat <<\_ACEOF
1502
1503Optional Features:
ec6a6fbe 1504 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1505 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1506 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
9c961554
MB
1507 --enable-static_link Use this to link the tools to their libraries
1508 statically. Default is dynamic linking
ad6254c5
AK
1509 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1510 device-mapper is missing from the kernel
1b523347 1511 --disable-readline Disable readline support
89044bc0 1512 --enable-realtime Enable realtime clock support
66fd4529 1513 --enable-cmirrord Enable the cluster mirror log daemon
ad6254c5 1514 --enable-debug Enable debugging
5556819a 1515 --enable-profiling Gather gcov profiling data
93bd259b 1516 --disable-devmapper Disable LVM2 device-mapper interaction
a5f46f6a
AK
1517 --enable-udev_sync Enable synchronisation with udev processing
1518 --enable-udev_rules Install rule files needed for udev synchronisation
93bd259b 1519 --enable-compat Enable support for old device-mapper versions
95eaa683
AK
1520 --enable-units-compat Enable output compatibility with old versions that
1521 that don't use KiB-style unit suffixes
93bd259b 1522 --disable-driver Disable calls to device-mapper in the kernel
ad6254c5 1523 --disable-o_direct Disable O_DIRECT
572fefeb 1524 --enable-applib Build application library
ad6254c5 1525 --enable-cmdlib Build shared command library
93bd259b 1526 --enable-pkgconfig Install pkgconfig support
c9274524 1527 --disable-fsadm Disable fsadm
15d91f5a 1528 --enable-dmeventd Enable the device-mapper event daemon
d0191583 1529 --disable-selinux Disable selinux support
ad6254c5
AK
1530 --enable-nls Enable Native Language Support
1531
1532Optional Packages:
1533 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1534 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
39dabc84
FDN
1535 --with-user=USER Set the owner of installed files [USER=]
1536 --with-group=GROUP Set the group owner of installed files [GROUP=]
24bbc4d7
AK
1537 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1538 --with-device-gid=UID Set the group used for new device nodes [GID=0]
93bd259b 1539 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
ad6254c5
AK
1540 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1541 TYPE=internal
1542 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1543 TYPE=internal
1544 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1545 TYPE=internal
1546 --with-snapshots=TYPE Snapshot support: internal/shared/none
1547 TYPE=internal
1548 --with-mirrors=TYPE Mirror support: internal/shared/none
1549 TYPE=internal
a946372e 1550 --with-clvmd=TYPE Build cluster LVM Daemon.
8c222979 1551 The following cluster manager combinations are valid:
a946372e
AK
1552 * cman,gulm (RHEL4 or equivalent)
1553 * cman (RHEL5 or equivalent)
1554 * cman,corosync,openais (or selection of them)
1555 * all (autodetect)
1556 * none (disable build)
a266258f 1557 TYPE=none
66fd4529 1558 --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid]
d0191583
JM
1559 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1560 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
a5f46f6a
AK
1561 --with-confdir=DIR Configuration files in DIR [/etc]
1562 --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin]
68f2de6d
AK
1563 --with-usrlibdir=DIR
1564 --with-usrsbindir=DIR
a5f46f6a 1565 --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX]
78ce7acc 1566 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
93bd259b 1567 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
a5f46f6a 1568 --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd]
93bd259b 1569 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1570
1571Some influential environment variables:
1572 CC C compiler command
1573 CFLAGS C compiler flags
1574 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1575 nonstandard directory <lib dir>
25fbec5b 1576 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1577 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1578 you have headers in a nonstandard directory <include dir>
ad6254c5 1579 CPP C preprocessor
e2997b73 1580 PKG_CONFIG path to pkg-config utility
a946372e
AK
1581 PKGCONFIGINIT_CFLAGS
1582 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1583 PKGCONFIGINIT_LIBS
1584 linker flags for PKGCONFIGINIT, overriding pkg-config
1585 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1586 CCS_LIBS linker flags for CCS, overriding pkg-config
1587 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1588 GULM_LIBS linker flags for GULM, overriding pkg-config
1589 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1590 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1591 COROSYNC_CFLAGS
1592 C compiler flags for COROSYNC, overriding pkg-config
1593 COROSYNC_LIBS
1594 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1595 QUORUM_CFLAGS
1596 C compiler flags for QUORUM, overriding pkg-config
1597 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1598 SALCK_CFLAGS
1599 C compiler flags for SALCK, overriding pkg-config
1600 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1601 CONFDB_CFLAGS
1602 C compiler flags for CONFDB, overriding pkg-config
1603 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1604 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1605 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1606 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1607 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1608 SACKPT_CFLAGS
1609 C compiler flags for SACKPT, overriding pkg-config
1610 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
ad6254c5
AK
1611
1612Use these variables to override the choices made by `configure' or to help
1613it to find libraries and programs with nonstandard names/locations.
1614
1615_ACEOF
7a197a62 1616ac_status=$?
ad6254c5
AK
1617fi
1618
1619if test "$ac_init_help" = "recursive"; then
1620 # If there are subdirs, report their specific --help.
ad6254c5 1621 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1622 test -d "$ac_dir" ||
1623 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1624 continue
ad6254c5
AK
1625 ac_builddir=.
1626
7a197a62
AK
1627case "$ac_dir" in
1628.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629*)
ec6a6fbe 1630 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1631 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1632 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1633 case $ac_top_builddir_sub in
1634 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1636 esac ;;
1637esac
1638ac_abs_top_builddir=$ac_pwd
1639ac_abs_builddir=$ac_pwd$ac_dir_suffix
1640# for backward compatibility:
1641ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1642
1643case $srcdir in
7a197a62 1644 .) # We are building in place.
ad6254c5 1645 ac_srcdir=.
7a197a62
AK
1646 ac_top_srcdir=$ac_top_builddir_sub
1647 ac_abs_top_srcdir=$ac_pwd ;;
1648 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1649 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1650 ac_top_srcdir=$srcdir
1651 ac_abs_top_srcdir=$srcdir ;;
1652 *) # Relative name.
1653 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1654 ac_top_srcdir=$ac_top_build_prefix$srcdir
1655 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1656esac
7a197a62
AK
1657ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1658
1659 cd "$ac_dir" || { ac_status=$?; continue; }
1660 # Check for guested configure.
1661 if test -f "$ac_srcdir/configure.gnu"; then
1662 echo &&
1663 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1664 elif test -f "$ac_srcdir/configure"; then
1665 echo &&
1666 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1667 else
ec6a6fbe 1668 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1669 fi || ac_status=$?
1670 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1671 done
1672fi
1673
7a197a62 1674test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1675if $ac_init_version; then
1676 cat <<\_ACEOF
7a197a62 1677configure
ec6a6fbe 1678generated by GNU Autoconf 2.63
ad6254c5 1679
7a197a62 1680Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 16812002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1682This configure script is free software; the Free Software Foundation
1683gives unlimited permission to copy, distribute and modify it.
1684_ACEOF
7a197a62 1685 exit
ad6254c5 1686fi
7a197a62 1687cat >config.log <<_ACEOF
ad6254c5
AK
1688This file contains any messages produced by compilers while
1689running configure, to aid debugging if configure makes a mistake.
1690
1691It was created by $as_me, which was
ec6a6fbe 1692generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
1693
1694 $ $0 $@
1695
1696_ACEOF
7a197a62 1697exec 5>>config.log
ad6254c5
AK
1698{
1699cat <<_ASUNAME
1700## --------- ##
1701## Platform. ##
1702## --------- ##
1703
1704hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1705uname -m = `(uname -m) 2>/dev/null || echo unknown`
1706uname -r = `(uname -r) 2>/dev/null || echo unknown`
1707uname -s = `(uname -s) 2>/dev/null || echo unknown`
1708uname -v = `(uname -v) 2>/dev/null || echo unknown`
1709
1710/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1711/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1712
1713/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1714/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1715/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1716/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1717/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1718/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1719/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1720
1721_ASUNAME
1722
1723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1724for as_dir in $PATH
1725do
1726 IFS=$as_save_IFS
1727 test -z "$as_dir" && as_dir=.
ec6a6fbe 1728 $as_echo "PATH: $as_dir"
ad6254c5 1729done
7a197a62 1730IFS=$as_save_IFS
ad6254c5
AK
1731
1732} >&5
1733
1734cat >&5 <<_ACEOF
1735
1736
1737## ----------- ##
1738## Core tests. ##
1739## ----------- ##
1740
1741_ACEOF
1742
1743
1744# Keep a trace of the command line.
1745# Strip out --no-create and --no-recursion so they do not pile up.
1746# Strip out --silent because we don't want to record it for future runs.
1747# Also quote any args containing shell meta-characters.
1748# Make two passes to allow for proper duplicate-argument suppression.
1749ac_configure_args=
1750ac_configure_args0=
1751ac_configure_args1=
ad6254c5
AK
1752ac_must_keep_next=false
1753for ac_pass in 1 2
1754do
1755 for ac_arg
1756 do
1757 case $ac_arg in
1758 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1759 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1760 | -silent | --silent | --silen | --sile | --sil)
1761 continue ;;
7a197a62 1762 *\'*)
ec6a6fbe 1763 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1764 esac
1765 case $ac_pass in
1766 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1767 2)
1768 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1769 if test $ac_must_keep_next = true; then
8a2fc586 1770 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1771 else
8a2fc586
AK
1772 case $ac_arg in
1773 *=* | --config-cache | -C | -disable-* | --disable-* \
1774 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1775 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1776 | -with-* | --with-* | -without-* | --without-* | --x)
1777 case "$ac_configure_args0 " in
1778 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1779 esac
1780 ;;
1781 -* ) ac_must_keep_next=true ;;
1782 esac
ad6254c5 1783 fi
7a197a62 1784 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1785 ;;
1786 esac
1787 done
1788done
1789$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1790$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1791
1792# When interrupted or exit'd, cleanup temporary files, and complete
1793# config.log. We remove comments because anyway the quotes in there
1794# would cause problems or look ugly.
7a197a62
AK
1795# WARNING: Use '\'' to represent an apostrophe within the trap.
1796# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1797trap 'exit_status=$?
1798 # Save into config.log some information that might help in debugging.
1799 {
1800 echo
1801
1802 cat <<\_ASBOX
1803## ---------------- ##
1804## Cache variables. ##
1805## ---------------- ##
1806_ASBOX
1807 echo
1808 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1809(
1810 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1811 eval ac_val=\$$ac_var
1812 case $ac_val in #(
1813 *${as_nl}*)
1814 case $ac_var in #(
ec6a6fbe
AK
1815 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1816$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
1817 esac
1818 case $ac_var in #(
1819 _ | IFS | as_nl) ;; #(
ec6a6fbe 1820 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1821 *) $as_unset $ac_var ;;
1822 esac ;;
1823 esac
1824 done
ad6254c5 1825 (set) 2>&1 |
7a197a62
AK
1826 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1827 *${as_nl}ac_space=\ *)
ad6254c5 1828 sed -n \
7a197a62
AK
1829 "s/'\''/'\''\\\\'\'''\''/g;
1830 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1831 ;; #(
ad6254c5 1832 *)
7a197a62 1833 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1834 ;;
7a197a62
AK
1835 esac |
1836 sort
1837)
ad6254c5
AK
1838 echo
1839
1840 cat <<\_ASBOX
1841## ----------------- ##
1842## Output variables. ##
1843## ----------------- ##
1844_ASBOX
1845 echo
1846 for ac_var in $ac_subst_vars
1847 do
7a197a62
AK
1848 eval ac_val=\$$ac_var
1849 case $ac_val in
ec6a6fbe 1850 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1851 esac
ec6a6fbe 1852 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1853 done | sort
1854 echo
1855
1856 if test -n "$ac_subst_files"; then
1857 cat <<\_ASBOX
7a197a62
AK
1858## ------------------- ##
1859## File substitutions. ##
1860## ------------------- ##
ad6254c5
AK
1861_ASBOX
1862 echo
1863 for ac_var in $ac_subst_files
1864 do
7a197a62
AK
1865 eval ac_val=\$$ac_var
1866 case $ac_val in
ec6a6fbe 1867 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1868 esac
ec6a6fbe 1869 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1870 done | sort
1871 echo
1872 fi
1873
1874 if test -s confdefs.h; then
1875 cat <<\_ASBOX
1876## ----------- ##
1877## confdefs.h. ##
1878## ----------- ##
1879_ASBOX
1880 echo
7a197a62 1881 cat confdefs.h
ad6254c5
AK
1882 echo
1883 fi
1884 test "$ac_signal" != 0 &&
ec6a6fbe
AK
1885 $as_echo "$as_me: caught signal $ac_signal"
1886 $as_echo "$as_me: exit $exit_status"
ad6254c5 1887 } >&5
7a197a62
AK
1888 rm -f core *.core core.conftest.* &&
1889 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1890 exit $exit_status
7a197a62 1891' 0
ad6254c5
AK
1892for ac_signal in 1 2 13 15; do
1893 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1894done
1895ac_signal=0
1896
1897# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1898rm -f -r conftest* confdefs.h
ad6254c5
AK
1899
1900# Predefined preprocessor variables.
1901
1902cat >>confdefs.h <<_ACEOF
1903#define PACKAGE_NAME "$PACKAGE_NAME"
1904_ACEOF
1905
1906
1907cat >>confdefs.h <<_ACEOF
1908#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1909_ACEOF
1910
1911
1912cat >>confdefs.h <<_ACEOF
1913#define PACKAGE_VERSION "$PACKAGE_VERSION"
1914_ACEOF
8106cdd5 1915
ad6254c5
AK
1916
1917cat >>confdefs.h <<_ACEOF
1918#define PACKAGE_STRING "$PACKAGE_STRING"
1919_ACEOF
1920
1921
1922cat >>confdefs.h <<_ACEOF
1923#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1924_ACEOF
1925
1926
1927# Let the site file select an alternate cache file if it wants to.
ec6a6fbe
AK
1928# Prefer an explicitly selected file to automatically selected ones.
1929ac_site_file1=NONE
1930ac_site_file2=NONE
7a197a62 1931if test -n "$CONFIG_SITE"; then
ec6a6fbe 1932 ac_site_file1=$CONFIG_SITE
7a197a62 1933elif test "x$prefix" != xNONE; then
ec6a6fbe
AK
1934 ac_site_file1=$prefix/share/config.site
1935 ac_site_file2=$prefix/etc/config.site
7a197a62 1936else
ec6a6fbe
AK
1937 ac_site_file1=$ac_default_prefix/share/config.site
1938 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1939fi
ec6a6fbe 1940for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1941do
ec6a6fbe 1942 test "x$ac_site_file" = xNONE && continue
795ca3e5 1943 if test -r "$ac_site_file"; then
ec6a6fbe
AK
1944 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1945$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1946 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1947 . "$ac_site_file"
1948 fi
1949done
1950
1951if test -r "$cache_file"; then
ad6254c5
AK
1952 # Some versions of bash will fail to source /dev/null (special
1953 # files actually), so we avoid doing that.
1954 if test -f "$cache_file"; then
ec6a6fbe
AK
1955 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1956$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1957 case $cache_file in
7a197a62
AK
1958 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1959 *) . "./$cache_file";;
ad6254c5
AK
1960 esac
1961 fi
795ca3e5 1962else
ec6a6fbe
AK
1963 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1964$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1965 >$cache_file
1966fi
1967
1968# Check that the precious variables saved in the cache have kept the same
1969# value.
1970ac_cache_corrupted=false
7a197a62 1971for ac_var in $ac_precious_vars; do
ad6254c5
AK
1972 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1973 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1974 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1975 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1976 case $ac_old_set,$ac_new_set in
1977 set,)
ec6a6fbe
AK
1978 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1979$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
1980 ac_cache_corrupted=: ;;
1981 ,set)
ec6a6fbe
AK
1982 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1983$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
1984 ac_cache_corrupted=: ;;
1985 ,);;
1986 *)
1987 if test "x$ac_old_val" != "x$ac_new_val"; then
ec6a6fbe
AK
1988 # differences in whitespace do not lead to failure.
1989 ac_old_val_w=`echo x $ac_old_val`
1990 ac_new_val_w=`echo x $ac_new_val`
1991 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1992 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1993$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1994 ac_cache_corrupted=:
1995 else
1996 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1997$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1998 eval $ac_var=\$ac_old_val
1999 fi
2000 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2001$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2002 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2003$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
2004 fi;;
2005 esac
2006 # Pass precious variables to config.status.
2007 if test "$ac_new_set" = set; then
2008 case $ac_new_val in
ec6a6fbe 2009 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
2010 *) ac_arg=$ac_var=$ac_new_val ;;
2011 esac
2012 case " $ac_configure_args " in
2013 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2014 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2015 esac
2016 fi
2017done
2018if $ac_cache_corrupted; then
ec6a6fbe
AK
2019 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2021 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2022$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2023 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2024$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 2025 { (exit 1); exit 1; }; }
795ca3e5
AK
2026fi
2027
ad6254c5
AK
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
7a197a62
AK
2044ac_ext=c
2045ac_cpp='$CPP $CPPFLAGS'
2046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2048ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2049
795ca3e5
AK
2050
2051
7a197a62 2052ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
2053
2054
80992638 2055################################################################################
795ca3e5 2056ac_aux_dir=
7a197a62
AK
2057for ac_dir in autoconf "$srcdir"/autoconf; do
2058 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
2059 ac_aux_dir=$ac_dir
2060 ac_install_sh="$ac_aux_dir/install-sh -c"
2061 break
7a197a62 2062 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
2063 ac_aux_dir=$ac_dir
2064 ac_install_sh="$ac_aux_dir/install.sh -c"
2065 break
7a197a62 2066 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
2067 ac_aux_dir=$ac_dir
2068 ac_install_sh="$ac_aux_dir/shtool install -c"
2069 break
795ca3e5
AK
2070 fi
2071done
2072if test -z "$ac_aux_dir"; then
ec6a6fbe
AK
2073 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2074$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 2075 { (exit 1); exit 1; }; }
795ca3e5 2076fi
7a197a62
AK
2077
2078# These three variables are undocumented and unsupported,
2079# and are intended to be withdrawn in a future Autoconf release.
2080# They can cause serious problems if a builder's source tree is in a directory
2081# whose full name contains unusual characters.
2082ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2083ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2084ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2085
8ce0cbda
AK
2086
2087
ad6254c5 2088################################################################################
8ce0cbda 2089# Make sure we can run config.sub.
7a197a62 2090$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec6a6fbe
AK
2091 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2092$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
2093 { (exit 1); exit 1; }; }
2094
ec6a6fbe
AK
2095{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2096$as_echo_n "checking build system type... " >&6; }
ad6254c5 2097if test "${ac_cv_build+set}" = set; then
ec6a6fbe 2098 $as_echo_n "(cached) " >&6
ad6254c5 2099else
7a197a62
AK
2100 ac_build_alias=$build_alias
2101test "x$ac_build_alias" = x &&
2102 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2103test "x$ac_build_alias" = x &&
ec6a6fbe
AK
2104 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2105$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 2106 { (exit 1); exit 1; }; }
7a197a62 2107ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec6a6fbe
AK
2108 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2109$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
2110 { (exit 1); exit 1; }; }
2111
2112fi
ec6a6fbe
AK
2113{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2114$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
2115case $ac_cv_build in
2116*-*-*) ;;
ec6a6fbe
AK
2117*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2118$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
2119 { (exit 1); exit 1; }; };;
2120esac
ad6254c5 2121build=$ac_cv_build
7a197a62
AK
2122ac_save_IFS=$IFS; IFS='-'
2123set x $ac_cv_build
2124shift
2125build_cpu=$1
2126build_vendor=$2
2127shift; shift
2128# Remember, the first character of IFS is used to create $*,
2129# except with old shells:
2130build_os=$*
2131IFS=$ac_save_IFS
2132case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2133
2134
ec6a6fbe
AK
2135{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2136$as_echo_n "checking host system type... " >&6; }
ad6254c5 2137if test "${ac_cv_host+set}" = set; then
ec6a6fbe 2138 $as_echo_n "(cached) " >&6
ad6254c5 2139else
7a197a62
AK
2140 if test "x$host_alias" = x; then
2141 ac_cv_host=$ac_cv_build
2142else
2143 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec6a6fbe
AK
2144 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2145$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2146 { (exit 1); exit 1; }; }
7a197a62 2147fi
ad6254c5
AK
2148
2149fi
ec6a6fbe
AK
2150{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2151$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2152case $ac_cv_host in
2153*-*-*) ;;
ec6a6fbe
AK
2154*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2155$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2156 { (exit 1); exit 1; }; };;
2157esac
ad6254c5 2158host=$ac_cv_host
7a197a62
AK
2159ac_save_IFS=$IFS; IFS='-'
2160set x $ac_cv_host
2161shift
2162host_cpu=$1
2163host_vendor=$2
2164shift; shift
2165# Remember, the first character of IFS is used to create $*,
2166# except with old shells:
2167host_os=$*
2168IFS=$ac_save_IFS
2169case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2170
2171
ec6a6fbe
AK
2172{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2173$as_echo_n "checking target system type... " >&6; }
ad6254c5 2174if test "${ac_cv_target+set}" = set; then
ec6a6fbe 2175 $as_echo_n "(cached) " >&6
ad6254c5 2176else
7a197a62
AK
2177 if test "x$target_alias" = x; then
2178 ac_cv_target=$ac_cv_host
2179else
2180 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec6a6fbe
AK
2181 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2182$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2183 { (exit 1); exit 1; }; }
7a197a62 2184fi
8ce0cbda 2185
ad6254c5 2186fi
ec6a6fbe
AK
2187{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2188$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2189case $ac_cv_target in
2190*-*-*) ;;
ec6a6fbe
AK
2191*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2192$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2193 { (exit 1); exit 1; }; };;
2194esac
ad6254c5 2195target=$ac_cv_target
7a197a62
AK
2196ac_save_IFS=$IFS; IFS='-'
2197set x $ac_cv_target
2198shift
2199target_cpu=$1
2200target_vendor=$2
2201shift; shift
2202# Remember, the first character of IFS is used to create $*,
2203# except with old shells:
2204target_os=$*
2205IFS=$ac_save_IFS
2206case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2207
8ce0cbda 2208
ad6254c5
AK
2209# The aliases save the names the user supplied, while $host etc.
2210# will get canonicalized.
2211test -n "$target_alias" &&
8ce0cbda
AK
2212 test "$program_prefix$program_suffix$program_transform_name" = \
2213 NONENONEs,x,x, &&
2214 program_prefix=${target_alias}-
2215
8ce0cbda
AK
2216case "$host_os" in
2217 linux*)
7f54ef36 2218 CFLAGS="$CFLAGS"
8ce0cbda
AK
2219 COPTIMISE_FLAG="-O2"
2220 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2221 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2222 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2223 LDDEPS="$LDDEPS .export.sym"
2224 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2225 LIB_SUFFIX=so
8ce0cbda
AK
2226 DEVMAPPER=yes
2227 ODIRECT=yes
d0191583 2228 DM_IOCTLS=yes
8ce0cbda
AK
2229 SELINUX=yes
2230 CLUSTER=internal
93bd259b 2231 FSADM=yes
d0191583 2232 ;;
8ce0cbda
AK
2233 darwin*)
2234 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2235 COPTIMISE_FLAG="-O2"
2236 CLDFLAGS="$CLDFLAGS"
2237 CLDWHOLEARCHIVE="-all_load"
2238 CLDNOWHOLEARCHIVE=
d0191583 2239 LIB_SUFFIX=dylib
a653923f 2240 DEVMAPPER=yes
8ce0cbda 2241 ODIRECT=no
d0191583 2242 DM_IOCTLS=no
8ce0cbda
AK
2243 SELINUX=no
2244 CLUSTER=none
d0191583
JM
2245 FSADM=no
2246 ;;
8ce0cbda
AK
2247esac
2248
80992638 2249################################################################################
ec6a6fbe
AK
2250{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2251$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2252if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2253 $as_echo_n "(cached) " >&6
5951ef33
AK
2254else
2255 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2256 for ac_i in 1 2 3 4 5 6 7; do
2257 ac_script="$ac_script$as_nl$ac_script"
2258 done
ec6a6fbe 2259 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2260 $as_unset ac_script || ac_script=
ec6a6fbe 2261 if test -z "$SED"; then
5951ef33 2262 ac_path_SED_found=false
ec6a6fbe
AK
2263 # Loop through the user's path and test for each of PROGNAME-LIST
2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2265for as_dir in $PATH
2266do
2267 IFS=$as_save_IFS
2268 test -z "$as_dir" && as_dir=.
2269 for ac_prog in sed gsed; do
ec6a6fbe
AK
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2272 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2273# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2274 # Check for GNU $ac_path_SED
2275case `"$ac_path_SED" --version 2>&1` in
2276*GNU*)
2277 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2278*)
2279 ac_count=0
ec6a6fbe 2280 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2281 while :
2282 do
2283 cat "conftest.in" "conftest.in" >"conftest.tmp"
2284 mv "conftest.tmp" "conftest.in"
2285 cp "conftest.in" "conftest.nl"
ec6a6fbe 2286 $as_echo '' >> "conftest.nl"
5951ef33
AK
2287 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2288 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2289 ac_count=`expr $ac_count + 1`
2290 if test $ac_count -gt ${ac_path_SED_max-0}; then
2291 # Best one so far, save it but keep looking for a better one
2292 ac_cv_path_SED="$ac_path_SED"
2293 ac_path_SED_max=$ac_count
2294 fi
2295 # 10*(2^10) chars as input seems more than enough
2296 test $ac_count -gt 10 && break
2297 done
2298 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2299esac
2300
ec6a6fbe
AK
2301 $ac_path_SED_found && break 3
2302 done
5951ef33
AK
2303 done
2304done
5951ef33 2305IFS=$as_save_IFS
ec6a6fbe
AK
2306 if test -z "$ac_cv_path_SED"; then
2307 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2308$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2309 { (exit 1); exit 1; }; }
ec6a6fbe 2310 fi
5951ef33
AK
2311else
2312 ac_cv_path_SED=$SED
2313fi
2314
2315fi
ec6a6fbe
AK
2316{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2317$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2318 SED="$ac_cv_path_SED"
2319 rm -f conftest.sed
2320
ad6254c5 2321for ac_prog in gawk mawk nawk awk
795ca3e5 2322do
ad6254c5 2323 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2324set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2325{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2326$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2327if test "${ac_cv_prog_AWK+set}" = set; then
ec6a6fbe 2328 $as_echo_n "(cached) " >&6
795ca3e5
AK
2329else
2330 if test -n "$AWK"; then
2331 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2332else
ad6254c5
AK
2333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334for as_dir in $PATH
2335do
2336 IFS=$as_save_IFS
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2340 ac_cv_prog_AWK="$ac_prog"
ec6a6fbe 2341 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2342 break 2
2343 fi
2344done
2345done
7a197a62 2346IFS=$as_save_IFS
ad6254c5 2347
795ca3e5
AK
2348fi
2349fi
ad6254c5 2350AWK=$ac_cv_prog_AWK
795ca3e5 2351if test -n "$AWK"; then
ec6a6fbe
AK
2352 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2353$as_echo "$AWK" >&6; }
795ca3e5 2354else
ec6a6fbe
AK
2355 { $as_echo "$as_me:$LINENO: result: no" >&5
2356$as_echo "no" >&6; }
795ca3e5
AK
2357fi
2358
7a197a62 2359
ad6254c5
AK
2360 test -n "$AWK" && break
2361done
2362
2363ac_ext=c
2364ac_cpp='$CPP $CPPFLAGS'
2365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2367ac_compiler_gnu=$ac_cv_c_compiler_gnu
2368if test -n "$ac_tool_prefix"; then
2369 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2370set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2371{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2372$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2373if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2374 $as_echo_n "(cached) " >&6
ad6254c5
AK
2375else
2376 if test -n "$CC"; then
2377 ac_cv_prog_CC="$CC" # Let the user override the test.
2378else
2379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380for as_dir in $PATH
2381do
2382 IFS=$as_save_IFS
2383 test -z "$as_dir" && as_dir=.
2384 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2386 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2387 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2388 break 2
2389 fi
2390done
8106cdd5 2391done
7a197a62 2392IFS=$as_save_IFS
8106cdd5 2393
ad6254c5
AK
2394fi
2395fi
2396CC=$ac_cv_prog_CC
2397if test -n "$CC"; then
ec6a6fbe
AK
2398 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2399$as_echo "$CC" >&6; }
ad6254c5 2400else
ec6a6fbe
AK
2401 { $as_echo "$as_me:$LINENO: result: no" >&5
2402$as_echo "no" >&6; }
ad6254c5
AK
2403fi
2404
7a197a62 2405
ad6254c5
AK
2406fi
2407if test -z "$ac_cv_prog_CC"; then
2408 ac_ct_CC=$CC
2409 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2410set dummy gcc; ac_word=$2
ec6a6fbe
AK
2411{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2412$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2413if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2414 $as_echo_n "(cached) " >&6
ad6254c5
AK
2415else
2416 if test -n "$ac_ct_CC"; then
2417 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2418else
2419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420for as_dir in $PATH
2421do
2422 IFS=$as_save_IFS
2423 test -z "$as_dir" && as_dir=.
2424 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2426 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2427 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2428 break 2
2429 fi
2430done
2431done
7a197a62 2432IFS=$as_save_IFS
ad6254c5
AK
2433
2434fi
2435fi
2436ac_ct_CC=$ac_cv_prog_ac_ct_CC
2437if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2438 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2439$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2440else
ec6a6fbe
AK
2441 { $as_echo "$as_me:$LINENO: result: no" >&5
2442$as_echo "no" >&6; }
ad6254c5
AK
2443fi
2444
7a197a62
AK
2445 if test "x$ac_ct_CC" = x; then
2446 CC=""
2447 else
2448 case $cross_compiling:$ac_tool_warned in
2449yes:)
ec6a6fbe
AK
2450{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2452ac_tool_warned=yes ;;
2453esac
2454 CC=$ac_ct_CC
2455 fi
ad6254c5
AK
2456else
2457 CC="$ac_cv_prog_CC"
2458fi
2459
2460if test -z "$CC"; then
7a197a62
AK
2461 if test -n "$ac_tool_prefix"; then
2462 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2463set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2464{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2465$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2466if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2467 $as_echo_n "(cached) " >&6
8106cdd5
AK
2468else
2469 if test -n "$CC"; then
2470 ac_cv_prog_CC="$CC" # Let the user override the test.
2471else
ad6254c5
AK
2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473for as_dir in $PATH
2474do
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2479 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec6a6fbe 2480 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2481 break 2
2482 fi
2483done
2484done
7a197a62 2485IFS=$as_save_IFS
ad6254c5 2486
8106cdd5
AK
2487fi
2488fi
ad6254c5 2489CC=$ac_cv_prog_CC
8106cdd5 2490if test -n "$CC"; then
ec6a6fbe
AK
2491 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2492$as_echo "$CC" >&6; }
ad6254c5 2493else
ec6a6fbe
AK
2494 { $as_echo "$as_me:$LINENO: result: no" >&5
2495$as_echo "no" >&6; }
ad6254c5
AK
2496fi
2497
8106cdd5 2498
7a197a62 2499 fi
ad6254c5 2500fi
795ca3e5
AK
2501if test -z "$CC"; then
2502 # Extract the first word of "cc", so it can be a program name with args.
2503set dummy cc; ac_word=$2
ec6a6fbe
AK
2504{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2505$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2506if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2507 $as_echo_n "(cached) " >&6
795ca3e5
AK
2508else
2509 if test -n "$CC"; then
2510 ac_cv_prog_CC="$CC" # Let the user override the test.
2511else
795ca3e5 2512 ac_prog_rejected=no
ad6254c5
AK
2513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514for as_dir in $PATH
2515do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2520 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2521 ac_prog_rejected=yes
2522 continue
2523 fi
2524 ac_cv_prog_CC="cc"
ec6a6fbe 2525 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2526 break 2
2527 fi
2528done
2529done
7a197a62 2530IFS=$as_save_IFS
ad6254c5 2531
795ca3e5
AK
2532if test $ac_prog_rejected = yes; then
2533 # We found a bogon in the path, so make sure we never use it.
2534 set dummy $ac_cv_prog_CC
2535 shift
ad6254c5 2536 if test $# != 0; then
795ca3e5
AK
2537 # We chose a different compiler from the bogus one.
2538 # However, it has the same basename, so the bogon will be chosen
2539 # first if we set CC to just the basename; use the full file name.
2540 shift
ad6254c5 2541 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2542 fi
2543fi
2544fi
2545fi
ad6254c5 2546CC=$ac_cv_prog_CC
795ca3e5 2547if test -n "$CC"; then
ec6a6fbe
AK
2548 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2549$as_echo "$CC" >&6; }
795ca3e5 2550else
ec6a6fbe
AK
2551 { $as_echo "$as_me:$LINENO: result: no" >&5
2552$as_echo "no" >&6; }
795ca3e5
AK
2553fi
2554
7a197a62 2555
ad6254c5
AK
2556fi
2557if test -z "$CC"; then
2558 if test -n "$ac_tool_prefix"; then
7a197a62 2559 for ac_prog in cl.exe
ad6254c5
AK
2560 do
2561 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2562set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2563{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2564$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2565if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2566 $as_echo_n "(cached) " >&6
795ca3e5
AK
2567else
2568 if test -n "$CC"; then
2569 ac_cv_prog_CC="$CC" # Let the user override the test.
2570else
ad6254c5
AK
2571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572for as_dir in $PATH
2573do
2574 IFS=$as_save_IFS
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2578 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2580 break 2
2581 fi
2582done
2583done
7a197a62 2584IFS=$as_save_IFS
ad6254c5 2585
795ca3e5
AK
2586fi
2587fi
ad6254c5 2588CC=$ac_cv_prog_CC
795ca3e5 2589if test -n "$CC"; then
ec6a6fbe
AK
2590 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2591$as_echo "$CC" >&6; }
795ca3e5 2592else
ec6a6fbe
AK
2593 { $as_echo "$as_me:$LINENO: result: no" >&5
2594$as_echo "no" >&6; }
795ca3e5 2595fi
ad6254c5 2596
7a197a62 2597
ad6254c5
AK
2598 test -n "$CC" && break
2599 done
2600fi
2601if test -z "$CC"; then
2602 ac_ct_CC=$CC
7a197a62 2603 for ac_prog in cl.exe
ad6254c5
AK
2604do
2605 # Extract the first word of "$ac_prog", so it can be a program name with args.
2606set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2607{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2608$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2609if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2610 $as_echo_n "(cached) " >&6
ad6254c5
AK
2611else
2612 if test -n "$ac_ct_CC"; then
2613 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2614else
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2622 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2623 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2624 break 2
795ca3e5 2625 fi
ad6254c5
AK
2626done
2627done
7a197a62 2628IFS=$as_save_IFS
ad6254c5
AK
2629
2630fi
2631fi
2632ac_ct_CC=$ac_cv_prog_ac_ct_CC
2633if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2634 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2635$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2636else
ec6a6fbe
AK
2637 { $as_echo "$as_me:$LINENO: result: no" >&5
2638$as_echo "no" >&6; }
795ca3e5
AK
2639fi
2640
7a197a62 2641
ad6254c5
AK
2642 test -n "$ac_ct_CC" && break
2643done
795ca3e5 2644
7a197a62
AK
2645 if test "x$ac_ct_CC" = x; then
2646 CC=""
2647 else
2648 case $cross_compiling:$ac_tool_warned in
2649yes:)
ec6a6fbe
AK
2650{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2652ac_tool_warned=yes ;;
2653esac
2654 CC=$ac_ct_CC
2655 fi
ad6254c5
AK
2656fi
2657
2658fi
2659
2660
ec6a6fbe
AK
2661test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2663{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2664See \`config.log' for more details." >&5
ec6a6fbe 2665$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2666See \`config.log' for more details." >&2;}
ec6a6fbe 2667 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2668
2669# Provide some information about the compiler.
ec6a6fbe
AK
2670$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2671set X $ac_compile
2672ac_compiler=$2
7a197a62
AK
2673{ (ac_try="$ac_compiler --version >&5"
2674case "(($ac_try" in
2675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2676 *) ac_try_echo=$ac_try;;
2677esac
ec6a6fbe
AK
2678eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2679$as_echo "$ac_try_echo") >&5
7a197a62 2680 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2681 ac_status=$?
ec6a6fbe 2682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2683 (exit $ac_status); }
7a197a62
AK
2684{ (ac_try="$ac_compiler -v >&5"
2685case "(($ac_try" in
2686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2687 *) ac_try_echo=$ac_try;;
2688esac
ec6a6fbe
AK
2689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2690$as_echo "$ac_try_echo") >&5
7a197a62 2691 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2692 ac_status=$?
ec6a6fbe 2693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2694 (exit $ac_status); }
7a197a62
AK
2695{ (ac_try="$ac_compiler -V >&5"
2696case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2699esac
ec6a6fbe
AK
2700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2701$as_echo "$ac_try_echo") >&5
7a197a62 2702 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2703 ac_status=$?
ec6a6fbe 2704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2705 (exit $ac_status); }
2706
2707cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2708/* confdefs.h. */
2709_ACEOF
2710cat confdefs.h >>conftest.$ac_ext
2711cat >>conftest.$ac_ext <<_ACEOF
2712/* end confdefs.h. */
2713
2714int
2715main ()
2716{
2717
2718 ;
2719 return 0;
2720}
2721_ACEOF
2722ac_clean_files_save=$ac_clean_files
ec6a6fbe 2723ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2724# Try to create an executable without -o first, disregard a.out.
2725# It will help us diagnose broken compilers, and finding out an intuition
2726# of exeext.
ec6a6fbe
AK
2727{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2728$as_echo_n "checking for C compiler default output file name... " >&6; }
2729ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2730
2731# The possible output files:
2732ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2733
7a197a62
AK
2734ac_rmfiles=
2735for ac_file in $ac_files
2736do
2737 case $ac_file in
ec6a6fbe 2738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2739 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2740 esac
2741done
2742rm -f $ac_rmfiles
2743
2744if { (ac_try="$ac_link_default"
2745case "(($ac_try" in
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2748esac
ec6a6fbe
AK
2749eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2750$as_echo "$ac_try_echo") >&5
7a197a62 2751 (eval "$ac_link_default") 2>&5
ad6254c5 2752 ac_status=$?
ec6a6fbe 2753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2754 (exit $ac_status); }; then
7a197a62
AK
2755 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2756# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2757# in a Makefile. We should not override ac_cv_exeext if it was cached,
2758# so that the user can short-circuit this test for compilers unknown to
2759# Autoconf.
25fbec5b 2760for ac_file in $ac_files ''
ad6254c5
AK
2761do
2762 test -f "$ac_file" || continue
2763 case $ac_file in
ec6a6fbe 2764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2765 ;;
ad6254c5 2766 [ab].out )
8a2fc586
AK
2767 # We found the default executable, but exeext='' is most
2768 # certainly right.
2769 break;;
ad6254c5 2770 *.* )
7a197a62
AK
2771 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2772 then :; else
2773 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2774 fi
2775 # We set ac_cv_exeext here because the later test for it is not
2776 # safe: cross compilers may not add the suffix if given an `-o'
2777 # argument, so we may need to know it at that point already.
2778 # Even if this section looks crufty: it has the advantage of
2779 # actually working.
8a2fc586 2780 break;;
ad6254c5 2781 * )
8a2fc586 2782 break;;
ad6254c5
AK
2783 esac
2784done
7a197a62
AK
2785test "$ac_cv_exeext" = no && ac_cv_exeext=
2786
ad6254c5 2787else
25fbec5b
AK
2788 ac_file=''
2789fi
2790
ec6a6fbe
AK
2791{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2792$as_echo "$ac_file" >&6; }
25fbec5b 2793if test -z "$ac_file"; then
ec6a6fbe 2794 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2795sed 's/^/| /' conftest.$ac_ext >&5
2796
ec6a6fbe
AK
2797{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2798$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2799{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2800See \`config.log' for more details." >&5
ec6a6fbe 2801$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2802See \`config.log' for more details." >&2;}
ec6a6fbe 2803 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2804fi
2805
2806ac_exeext=$ac_cv_exeext
ad6254c5 2807
7a197a62 2808# Check that the compiler produces executables we can run. If not, either
ad6254c5 2809# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2810{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2811$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2812# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2813# If not cross compiling, check that we can run a simple program.
2814if test "$cross_compiling" != yes; then
2815 if { ac_try='./$ac_file'
7a197a62
AK
2816 { (case "(($ac_try" in
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2819esac
ec6a6fbe
AK
2820eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2821$as_echo "$ac_try_echo") >&5
7a197a62 2822 (eval "$ac_try") 2>&5
ad6254c5 2823 ac_status=$?
ec6a6fbe 2824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2825 (exit $ac_status); }; }; then
2826 cross_compiling=no
795ca3e5 2827 else
ad6254c5
AK
2828 if test "$cross_compiling" = maybe; then
2829 cross_compiling=yes
2830 else
ec6a6fbe
AK
2831 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2833{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2834If you meant to cross compile, use \`--host'.
2835See \`config.log' for more details." >&5
ec6a6fbe 2836$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2837If you meant to cross compile, use \`--host'.
2838See \`config.log' for more details." >&2;}
ec6a6fbe 2839 { (exit 1); exit 1; }; }; }
ad6254c5 2840 fi
795ca3e5 2841 fi
80992638 2842fi
ec6a6fbe
AK
2843{ $as_echo "$as_me:$LINENO: result: yes" >&5
2844$as_echo "yes" >&6; }
ad6254c5 2845
ec6a6fbe 2846rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2847ac_clean_files=$ac_clean_files_save
7a197a62 2848# Check that the compiler produces executables we can run. If not, either
ad6254c5 2849# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2850{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2851$as_echo_n "checking whether we are cross compiling... " >&6; }
2852{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2853$as_echo "$cross_compiling" >&6; }
7a197a62 2854
ec6a6fbe
AK
2855{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2856$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2857if { (ac_try="$ac_link"
2858case "(($ac_try" in
2859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860 *) ac_try_echo=$ac_try;;
2861esac
ec6a6fbe
AK
2862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2863$as_echo "$ac_try_echo") >&5
7a197a62 2864 (eval "$ac_link") 2>&5
ad6254c5 2865 ac_status=$?
ec6a6fbe 2866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2867 (exit $ac_status); }; then
2868 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2869# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2870# work properly (i.e., refer to `conftest.exe'), while it won't with
2871# `rm'.
2872for ac_file in conftest.exe conftest conftest.*; do
2873 test -f "$ac_file" || continue
2874 case $ac_file in
ec6a6fbe 2875 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2876 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2877 break;;
ad6254c5
AK
2878 * ) break;;
2879 esac
2880done
80992638 2881else
ec6a6fbe
AK
2882 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2883$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2884{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2885See \`config.log' for more details." >&5
ec6a6fbe 2886$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2887See \`config.log' for more details." >&2;}
ec6a6fbe 2888 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2889fi
2890
2891rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2892{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2893$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2894
2895rm -f conftest.$ac_ext
2896EXEEXT=$ac_cv_exeext
2897ac_exeext=$EXEEXT
ec6a6fbe
AK
2898{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2899$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2900if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2901 $as_echo_n "(cached) " >&6
795ca3e5 2902else
ad6254c5 2903 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2904/* confdefs.h. */
2905_ACEOF
2906cat confdefs.h >>conftest.$ac_ext
2907cat >>conftest.$ac_ext <<_ACEOF
2908/* end confdefs.h. */
2909
2910int
2911main ()
2912{
2913
2914 ;
2915 return 0;
2916}
2917_ACEOF
2918rm -f conftest.o conftest.obj
7a197a62
AK
2919if { (ac_try="$ac_compile"
2920case "(($ac_try" in
2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922 *) ac_try_echo=$ac_try;;
2923esac
ec6a6fbe
AK
2924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2925$as_echo "$ac_try_echo") >&5
7a197a62 2926 (eval "$ac_compile") 2>&5
ad6254c5 2927 ac_status=$?
ec6a6fbe 2928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2929 (exit $ac_status); }; then
7a197a62
AK
2930 for ac_file in conftest.o conftest.obj conftest.*; do
2931 test -f "$ac_file" || continue;
ad6254c5 2932 case $ac_file in
ec6a6fbe 2933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2934 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2935 break;;
2936 esac
2937done
2938else
ec6a6fbe 2939 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2940sed 's/^/| /' conftest.$ac_ext >&5
2941
ec6a6fbe
AK
2942{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2944{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2945See \`config.log' for more details." >&5
ec6a6fbe 2946$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 2947See \`config.log' for more details." >&2;}
ec6a6fbe 2948 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2949fi
2950
2951rm -f conftest.$ac_cv_objext conftest.$ac_ext
2952fi
ec6a6fbe
AK
2953{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2954$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
2955OBJEXT=$ac_cv_objext
2956ac_objext=$OBJEXT
ec6a6fbe
AK
2957{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2958$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 2959if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 2960 $as_echo_n "(cached) " >&6
ad6254c5
AK
2961else
2962 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2963/* confdefs.h. */
2964_ACEOF
2965cat confdefs.h >>conftest.$ac_ext
2966cat >>conftest.$ac_ext <<_ACEOF
2967/* end confdefs.h. */
2968
2969int
2970main ()
2971{
2972#ifndef __GNUC__
2973 choke me
2974#endif
80992638 2975
ad6254c5
AK
2976 ;
2977 return 0;
2978}
2979_ACEOF
2980rm -f conftest.$ac_objext
7a197a62
AK
2981if { (ac_try="$ac_compile"
2982case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2985esac
ec6a6fbe
AK
2986eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2987$as_echo "$ac_try_echo") >&5
7a197a62 2988 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2989 ac_status=$?
8a2fc586
AK
2990 grep -v '^ *+' conftest.er1 >conftest.err
2991 rm -f conftest.er1
2992 cat conftest.err >&5
ec6a6fbe 2993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2994 (exit $ac_status); } && {
2995 test -z "$ac_c_werror_flag" ||
2996 test ! -s conftest.err
2997 } && test -s conftest.$ac_objext; then
ad6254c5 2998 ac_compiler_gnu=yes
80992638 2999else
ec6a6fbe 3000 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3001sed 's/^/| /' conftest.$ac_ext >&5
3002
7a197a62 3003 ac_compiler_gnu=no
8106cdd5 3004fi
7a197a62
AK
3005
3006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 3007ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 3008
ad6254c5 3009fi
ec6a6fbe
AK
3010{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3011$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3012if test $ac_compiler_gnu = yes; then
3013 GCC=yes
3014else
3015 GCC=
3016fi
ad6254c5
AK
3017ac_test_CFLAGS=${CFLAGS+set}
3018ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
3019{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3020$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 3021if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 3022 $as_echo_n "(cached) " >&6
795ca3e5 3023else
7a197a62
AK
3024 ac_save_c_werror_flag=$ac_c_werror_flag
3025 ac_c_werror_flag=yes
3026 ac_cv_prog_cc_g=no
3027 CFLAGS="-g"
3028 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3029/* confdefs.h. */
3030_ACEOF
3031cat confdefs.h >>conftest.$ac_ext
3032cat >>conftest.$ac_ext <<_ACEOF
3033/* end confdefs.h. */
3034
3035int
3036main ()
3037{
3038
3039 ;
3040 return 0;
3041}
3042_ACEOF
3043rm -f conftest.$ac_objext
7a197a62
AK
3044if { (ac_try="$ac_compile"
3045case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048esac
ec6a6fbe
AK
3049eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3050$as_echo "$ac_try_echo") >&5
7a197a62 3051 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3052 ac_status=$?
8a2fc586
AK
3053 grep -v '^ *+' conftest.er1 >conftest.err
3054 rm -f conftest.er1
3055 cat conftest.err >&5
ec6a6fbe 3056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3057 (exit $ac_status); } && {
3058 test -z "$ac_c_werror_flag" ||
3059 test ! -s conftest.err
3060 } && test -s conftest.$ac_objext; then
7a197a62
AK
3061 ac_cv_prog_cc_g=yes
3062else
ec6a6fbe 3063 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3064sed 's/^/| /' conftest.$ac_ext >&5
3065
3066 CFLAGS=""
3067 cat >conftest.$ac_ext <<_ACEOF
3068/* confdefs.h. */
3069_ACEOF
3070cat confdefs.h >>conftest.$ac_ext
3071cat >>conftest.$ac_ext <<_ACEOF
3072/* end confdefs.h. */
3073
3074int
3075main ()
3076{
3077
3078 ;
3079 return 0;
3080}
3081_ACEOF
3082rm -f conftest.$ac_objext
3083if { (ac_try="$ac_compile"
3084case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087esac
ec6a6fbe
AK
3088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3089$as_echo "$ac_try_echo") >&5
7a197a62 3090 (eval "$ac_compile") 2>conftest.er1
8a2fc586 3091 ac_status=$?
7a197a62
AK
3092 grep -v '^ *+' conftest.er1 >conftest.err
3093 rm -f conftest.er1
3094 cat conftest.err >&5
ec6a6fbe 3095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3096 (exit $ac_status); } && {
3097 test -z "$ac_c_werror_flag" ||
3098 test ! -s conftest.err
3099 } && test -s conftest.$ac_objext; then
7a197a62
AK
3100 :
3101else
ec6a6fbe 3102 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3103sed 's/^/| /' conftest.$ac_ext >&5
3104
3105 ac_c_werror_flag=$ac_save_c_werror_flag
3106 CFLAGS="-g"
3107 cat >conftest.$ac_ext <<_ACEOF
3108/* confdefs.h. */
3109_ACEOF
3110cat confdefs.h >>conftest.$ac_ext
3111cat >>conftest.$ac_ext <<_ACEOF
3112/* end confdefs.h. */
3113
3114int
3115main ()
3116{
3117
3118 ;
3119 return 0;
3120}
3121_ACEOF
3122rm -f conftest.$ac_objext
3123if { (ac_try="$ac_compile"
3124case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127esac
ec6a6fbe
AK
3128eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3129$as_echo "$ac_try_echo") >&5
7a197a62 3130 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3131 ac_status=$?
7a197a62
AK
3132 grep -v '^ *+' conftest.er1 >conftest.err
3133 rm -f conftest.er1
3134 cat conftest.err >&5
ec6a6fbe 3135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3136 (exit $ac_status); } && {
3137 test -z "$ac_c_werror_flag" ||
3138 test ! -s conftest.err
3139 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3140 ac_cv_prog_cc_g=yes
3141else
ec6a6fbe 3142 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3143sed 's/^/| /' conftest.$ac_ext >&5
80992638 3144
7a197a62
AK
3145
3146fi
3147
3148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3149fi
3150
3151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3152fi
7a197a62
AK
3153
3154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3155 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3156fi
ec6a6fbe
AK
3157{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3158$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3159if test "$ac_test_CFLAGS" = set; then
ad6254c5 3160 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3161elif test $ac_cv_prog_cc_g = yes; then
3162 if test "$GCC" = yes; then
3163 CFLAGS="-g -O2"
3164 else
3165 CFLAGS="-g"
3166 fi
3167else
3168 if test "$GCC" = yes; then
3169 CFLAGS="-O2"
3170 else
3171 CFLAGS=
3172 fi
3173fi
ec6a6fbe
AK
3174{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3175$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3176if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3177 $as_echo_n "(cached) " >&6
ad6254c5 3178else
7a197a62 3179 ac_cv_prog_cc_c89=no
ad6254c5
AK
3180ac_save_CC=$CC
3181cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3182/* confdefs.h. */
3183_ACEOF
3184cat confdefs.h >>conftest.$ac_ext
3185cat >>conftest.$ac_ext <<_ACEOF
3186/* end confdefs.h. */
3187#include <stdarg.h>
3188#include <stdio.h>
3189#include <sys/types.h>
3190#include <sys/stat.h>
3191/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3192struct buf { int x; };
3193FILE * (*rcsopen) (struct buf *, struct stat *, int);
3194static char *e (p, i)
3195 char **p;
3196 int i;
3197{
3198 return p[i];
3199}
3200static char *f (char * (*g) (char **, int), char **p, ...)
3201{
3202 char *s;
3203 va_list v;
3204 va_start (v,p);
3205 s = g (p, va_arg (v,int));
3206 va_end (v);
3207 return s;
3208}
8a2fc586
AK
3209
3210/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3211 function prototypes and stuff, but not '\xHH' hex character constants.
3212 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3213 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3214 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3215 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3216 that's true only with -std. */
8a2fc586
AK
3217int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3218
7a197a62
AK
3219/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3220 inside strings and character constants. */
3221#define FOO(x) 'x'
3222int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3223
ad6254c5
AK
3224int test (int i, double x);
3225struct s1 {int (*f) (int a);};
3226struct s2 {int (*f) (double a);};
3227int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3228int argc;
3229char **argv;
3230int
3231main ()
3232{
3233return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3234 ;
3235 return 0;
3236}
3237_ACEOF
7a197a62
AK
3238for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3239 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3240do
3241 CC="$ac_save_CC $ac_arg"
3242 rm -f conftest.$ac_objext
7a197a62
AK
3243if { (ac_try="$ac_compile"
3244case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247esac
ec6a6fbe
AK
3248eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3249$as_echo "$ac_try_echo") >&5
7a197a62 3250 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3251 ac_status=$?
8a2fc586
AK
3252 grep -v '^ *+' conftest.er1 >conftest.err
3253 rm -f conftest.er1
3254 cat conftest.err >&5
ec6a6fbe 3255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3256 (exit $ac_status); } && {
3257 test -z "$ac_c_werror_flag" ||
3258 test ! -s conftest.err
3259 } && test -s conftest.$ac_objext; then
7a197a62 3260 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3261else
ec6a6fbe 3262 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3263sed 's/^/| /' conftest.$ac_ext >&5
3264
7a197a62 3265
ad6254c5 3266fi
7a197a62
AK
3267
3268rm -f core conftest.err conftest.$ac_objext
3269 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3270done
7a197a62 3271rm -f conftest.$ac_ext
ad6254c5
AK
3272CC=$ac_save_CC
3273
3274fi
7a197a62
AK
3275# AC_CACHE_VAL
3276case "x$ac_cv_prog_cc_c89" in
3277 x)
ec6a6fbe
AK
3278 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3279$as_echo "none needed" >&6; } ;;
7a197a62 3280 xno)
ec6a6fbe
AK
3281 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3282$as_echo "unsupported" >&6; } ;;
ad6254c5 3283 *)
7a197a62 3284 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3285 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3286$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3287esac
3288
ad6254c5 3289
ad6254c5
AK
3290ac_ext=c
3291ac_cpp='$CPP $CPPFLAGS'
3292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3295
d0191583
JM
3296
3297
3298ac_ext=c
3299ac_cpp='$CPP $CPPFLAGS'
3300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3303{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3304$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3305# On Suns, sometimes $CPP names a directory.
3306if test -n "$CPP" && test -d "$CPP"; then
3307 CPP=
3308fi
3309if test -z "$CPP"; then
3310 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3311 $as_echo_n "(cached) " >&6
ad6254c5 3312else
d0191583
JM
3313 # Double quotes because CPP needs to be expanded
3314 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3315 do
3316 ac_preproc_ok=false
3317for ac_c_preproc_warn_flag in '' yes
ad6254c5 3318do
d0191583
JM
3319 # Use a header file that comes with gcc, so configuring glibc
3320 # with a fresh cross-compiler works.
3321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3322 # <limits.h> exists even on freestanding compilers.
3323 # On the NeXT, cc -E runs the code through the compiler's parser,
3324 # not just through cpp. "Syntax error" is here to catch this case.
3325 cat >conftest.$ac_ext <<_ACEOF
3326/* confdefs.h. */
3327_ACEOF
3328cat confdefs.h >>conftest.$ac_ext
3329cat >>conftest.$ac_ext <<_ACEOF
3330/* end confdefs.h. */
3331#ifdef __STDC__
3332# include <limits.h>
3333#else
3334# include <assert.h>
3335#endif
3336 Syntax error
3337_ACEOF
3338if { (ac_try="$ac_cpp conftest.$ac_ext"
3339case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
ad6254c5 3342esac
ec6a6fbe
AK
3343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3344$as_echo "$ac_try_echo") >&5
d0191583
JM
3345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3346 ac_status=$?
3347 grep -v '^ *+' conftest.er1 >conftest.err
3348 rm -f conftest.er1
3349 cat conftest.err >&5
ec6a6fbe 3350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3351 (exit $ac_status); } >/dev/null && {
3352 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3353 test ! -s conftest.err
3354 }; then
3355 :
3356else
ec6a6fbe 3357 $as_echo "$as_me: failed program was:" >&5
d0191583 3358sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3359
d0191583
JM
3360 # Broken: fails on valid input.
3361continue
795ca3e5 3362fi
795ca3e5 3363
d0191583 3364rm -f conftest.err conftest.$ac_ext
795ca3e5 3365
d0191583
JM
3366 # OK, works on sane cases. Now check whether nonexistent headers
3367 # can be detected and how.
3368 cat >conftest.$ac_ext <<_ACEOF
3369/* confdefs.h. */
3370_ACEOF
3371cat confdefs.h >>conftest.$ac_ext
3372cat >>conftest.$ac_ext <<_ACEOF
3373/* end confdefs.h. */
3374#include <ac_nonexistent.h>
3375_ACEOF
3376if { (ac_try="$ac_cpp conftest.$ac_ext"
3377case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380esac
ec6a6fbe
AK
3381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3382$as_echo "$ac_try_echo") >&5
d0191583
JM
3383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3384 ac_status=$?
3385 grep -v '^ *+' conftest.er1 >conftest.err
3386 rm -f conftest.er1
3387 cat conftest.err >&5
ec6a6fbe 3388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3389 (exit $ac_status); } >/dev/null && {
3390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3391 test ! -s conftest.err
3392 }; then
3393 # Broken: success on invalid input.
3394continue
3395else
ec6a6fbe 3396 $as_echo "$as_me: failed program was:" >&5
d0191583 3397sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3398
d0191583
JM
3399 # Passes both tests.
3400ac_preproc_ok=:
3401break
3402fi
795ca3e5 3403
d0191583
JM
3404rm -f conftest.err conftest.$ac_ext
3405
3406done
3407# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3408rm -f conftest.err conftest.$ac_ext
3409if $ac_preproc_ok; then
3410 break
795ca3e5
AK
3411fi
3412
d0191583
JM
3413 done
3414 ac_cv_prog_CPP=$CPP
3415
3416fi
3417 CPP=$ac_cv_prog_CPP
795ca3e5 3418else
d0191583
JM
3419 ac_cv_prog_CPP=$CPP
3420fi
ec6a6fbe
AK
3421{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3422$as_echo "$CPP" >&6; }
d0191583
JM
3423ac_preproc_ok=false
3424for ac_c_preproc_warn_flag in '' yes
3425do
3426 # Use a header file that comes with gcc, so configuring glibc
3427 # with a fresh cross-compiler works.
3428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3429 # <limits.h> exists even on freestanding compilers.
3430 # On the NeXT, cc -E runs the code through the compiler's parser,
3431 # not just through cpp. "Syntax error" is here to catch this case.
3432 cat >conftest.$ac_ext <<_ACEOF
3433/* confdefs.h. */
ad6254c5 3434_ACEOF
d0191583
JM
3435cat confdefs.h >>conftest.$ac_ext
3436cat >>conftest.$ac_ext <<_ACEOF
3437/* end confdefs.h. */
3438#ifdef __STDC__
3439# include <limits.h>
3440#else
3441# include <assert.h>
3442#endif
3443 Syntax error
3444_ACEOF
3445if { (ac_try="$ac_cpp conftest.$ac_ext"
3446case "(($ac_try" in
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
7a197a62 3449esac
ec6a6fbe
AK
3450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3451$as_echo "$ac_try_echo") >&5
d0191583
JM
3452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3453 ac_status=$?
3454 grep -v '^ *+' conftest.er1 >conftest.err
3455 rm -f conftest.er1
3456 cat conftest.err >&5
ec6a6fbe 3457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3458 (exit $ac_status); } >/dev/null && {
3459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3460 test ! -s conftest.err
3461 }; then
3462 :
795ca3e5 3463else
ec6a6fbe 3464 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3465sed 's/^/| /' conftest.$ac_ext >&5
3466
3467 # Broken: fails on valid input.
3468continue
795ca3e5
AK
3469fi
3470
d0191583
JM
3471rm -f conftest.err conftest.$ac_ext
3472
3473 # OK, works on sane cases. Now check whether nonexistent headers
3474 # can be detected and how.
3475 cat >conftest.$ac_ext <<_ACEOF
3476/* confdefs.h. */
3477_ACEOF
3478cat confdefs.h >>conftest.$ac_ext
3479cat >>conftest.$ac_ext <<_ACEOF
3480/* end confdefs.h. */
3481#include <ac_nonexistent.h>
3482_ACEOF
3483if { (ac_try="$ac_cpp conftest.$ac_ext"
3484case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487esac
ec6a6fbe
AK
3488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3489$as_echo "$ac_try_echo") >&5
d0191583
JM
3490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3491 ac_status=$?
3492 grep -v '^ *+' conftest.er1 >conftest.err
3493 rm -f conftest.er1
3494 cat conftest.err >&5
ec6a6fbe 3495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3496 (exit $ac_status); } >/dev/null && {
3497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3498 test ! -s conftest.err
3499 }; then
3500 # Broken: success on invalid input.
3501continue
795ca3e5 3502else
ec6a6fbe 3503 $as_echo "$as_me: failed program was:" >&5
d0191583 3504sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3505
d0191583
JM
3506 # Passes both tests.
3507ac_preproc_ok=:
3508break
795ca3e5 3509fi
d0191583
JM
3510
3511rm -f conftest.err conftest.$ac_ext
3512
3513done
3514# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3515rm -f conftest.err conftest.$ac_ext
3516if $ac_preproc_ok; then
3517 :
8106cdd5 3518else
ec6a6fbe
AK
3519 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3522See \`config.log' for more details." >&5
ec6a6fbe 3523$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3524See \`config.log' for more details." >&2;}
ec6a6fbe 3525 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3526fi
3527
d0191583
JM
3528ac_ext=c
3529ac_cpp='$CPP $CPPFLAGS'
3530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3532ac_compiler_gnu=$ac_cv_c_compiler_gnu
3533
7a197a62 3534
ec6a6fbe
AK
3535{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3536$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3537if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3538 $as_echo_n "(cached) " >&6
ad6254c5 3539else
ec6a6fbe 3540 if test -z "$GREP"; then
d0191583 3541 ac_path_GREP_found=false
ec6a6fbe
AK
3542 # Loop through the user's path and test for each of PROGNAME-LIST
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3544for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3545do
3546 IFS=$as_save_IFS
3547 test -z "$as_dir" && as_dir=.
d0191583 3548 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3551 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3552# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3553 # Check for GNU $ac_path_GREP
3554case `"$ac_path_GREP" --version 2>&1` in
3555*GNU*)
3556 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3557*)
3558 ac_count=0
ec6a6fbe 3559 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3560 while :
3561 do
3562 cat "conftest.in" "conftest.in" >"conftest.tmp"
3563 mv "conftest.tmp" "conftest.in"
3564 cp "conftest.in" "conftest.nl"
ec6a6fbe 3565 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3566 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3567 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3568 ac_count=`expr $ac_count + 1`
3569 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3570 # Best one so far, save it but keep looking for a better one
3571 ac_cv_path_GREP="$ac_path_GREP"
3572 ac_path_GREP_max=$ac_count
3573 fi
3574 # 10*(2^10) chars as input seems more than enough
3575 test $ac_count -gt 10 && break
3576 done
3577 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3578esac
3579
ec6a6fbe
AK
3580 $ac_path_GREP_found && break 3
3581 done
d0191583 3582 done
ad6254c5 3583done
7a197a62 3584IFS=$as_save_IFS
ec6a6fbe
AK
3585 if test -z "$ac_cv_path_GREP"; then
3586 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3587$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3588 { (exit 1); exit 1; }; }
ec6a6fbe 3589 fi
80992638 3590else
d0191583 3591 ac_cv_path_GREP=$GREP
8106cdd5 3592fi
8106cdd5 3593
80992638 3594fi
ec6a6fbe
AK
3595{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3596$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3597 GREP="$ac_cv_path_GREP"
795ca3e5 3598
d0191583 3599
ec6a6fbe
AK
3600{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3601$as_echo_n "checking for egrep... " >&6; }
d0191583 3602if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3603 $as_echo_n "(cached) " >&6
8a2fc586 3604else
d0191583
JM
3605 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3606 then ac_cv_path_EGREP="$GREP -E"
3607 else
ec6a6fbe 3608 if test -z "$EGREP"; then
d0191583 3609 ac_path_EGREP_found=false
ec6a6fbe
AK
3610 # Loop through the user's path and test for each of PROGNAME-LIST
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3612for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3613do
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
d0191583 3616 for ac_prog in egrep; do
ec6a6fbe
AK
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3619 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3620# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3621 # Check for GNU $ac_path_EGREP
3622case `"$ac_path_EGREP" --version 2>&1` in
3623*GNU*)
3624 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3625*)
3626 ac_count=0
ec6a6fbe 3627 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3628 while :
3629 do
3630 cat "conftest.in" "conftest.in" >"conftest.tmp"
3631 mv "conftest.tmp" "conftest.in"
3632 cp "conftest.in" "conftest.nl"
ec6a6fbe 3633 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3634 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3635 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3636 ac_count=`expr $ac_count + 1`
3637 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3638 # Best one so far, save it but keep looking for a better one
3639 ac_cv_path_EGREP="$ac_path_EGREP"
3640 ac_path_EGREP_max=$ac_count
3641 fi
3642 # 10*(2^10) chars as input seems more than enough
3643 test $ac_count -gt 10 && break
3644 done
3645 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3646esac
8a2fc586 3647
ec6a6fbe
AK
3648 $ac_path_EGREP_found && break 3
3649 done
d0191583 3650 done
8a2fc586 3651done
7a197a62 3652IFS=$as_save_IFS
ec6a6fbe
AK
3653 if test -z "$ac_cv_path_EGREP"; then
3654 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3655$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3656 { (exit 1); exit 1; }; }
ec6a6fbe 3657 fi
d0191583
JM
3658else
3659 ac_cv_path_EGREP=$EGREP
3660fi
ad6254c5 3661
d0191583
JM
3662 fi
3663fi
ec6a6fbe
AK
3664{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3665$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3666 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3667
3668
d0191583 3669if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3670 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3671$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3672if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3673 $as_echo_n "(cached) " >&6
8106cdd5 3674else
d0191583 3675 ac_pattern="Autoconf.*'x'"
ad6254c5 3676 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3677/* confdefs.h. */
3678_ACEOF
3679cat confdefs.h >>conftest.$ac_ext
3680cat >>conftest.$ac_ext <<_ACEOF
3681/* end confdefs.h. */
d0191583
JM
3682#include <sgtty.h>
3683Autoconf TIOCGETP
ad6254c5 3684_ACEOF
d0191583
JM
3685if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3686 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3687 ac_cv_prog_gcc_traditional=yes
8106cdd5 3688else
d0191583 3689 ac_cv_prog_gcc_traditional=no
80992638 3690fi
d0191583 3691rm -f conftest*
ad6254c5 3692
8106cdd5 3693
d0191583
JM
3694 if test $ac_cv_prog_gcc_traditional = no; then
3695 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3696/* confdefs.h. */
3697_ACEOF
3698cat confdefs.h >>conftest.$ac_ext
3699cat >>conftest.$ac_ext <<_ACEOF
3700/* end confdefs.h. */
d0191583
JM
3701#include <termio.h>
3702Autoconf TCGETA
ad6254c5 3703_ACEOF
d0191583
JM
3704if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3705 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3706 ac_cv_prog_gcc_traditional=yes
7a197a62 3707fi
d0191583 3708rm -f conftest*
795ca3e5 3709
d0191583 3710 fi
795ca3e5 3711fi
ec6a6fbe
AK
3712{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3713$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3714 if test $ac_cv_prog_gcc_traditional = yes; then
3715 CC="$CC -traditional"
3716 fi
795ca3e5
AK
3717fi
3718
d0191583
JM
3719# Find a good install program. We prefer a C program (faster),
3720# so one script is as good as another. But avoid the broken or
3721# incompatible versions:
3722# SysV /etc/install, /usr/sbin/install
3723# SunOS /usr/etc/install
3724# IRIX /sbin/install
3725# AIX /bin/install
3726# AmigaOS /C/install, which installs bootblocks on floppy discs
3727# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3728# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3729# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3730# OS/2's system install, which has a completely different semantic
3731# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3732# Reject install programs that cannot install multiple files.
3733{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3734$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3735if test -z "$INSTALL"; then
3736if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3737 $as_echo_n "(cached) " >&6
ad6254c5 3738else
d0191583
JM
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740for as_dir in $PATH
3741do
3742 IFS=$as_save_IFS
3743 test -z "$as_dir" && as_dir=.
3744 # Account for people who put trailing slashes in PATH elements.
3745case $as_dir/ in
3746 ./ | .// | /cC/* | \
3747 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3748 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3749 /usr/ucb/* ) ;;
3750 *)
3751 # OSF1 and SCO ODT 3.0 have their own names for install.
3752 # Don't use installbsd from OSF since it installs stuff as root
3753 # by default.
3754 for ac_prog in ginstall scoinst install; do
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3757 if test $ac_prog = install &&
3758 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3759 # AIX install. It has an incompatible calling convention.
3760 :
3761 elif test $ac_prog = install &&
3762 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3763 # program-specific install script used by HP pwplus--don't use.
3764 :
3765 else
ec6a6fbe
AK
3766 rm -rf conftest.one conftest.two conftest.dir
3767 echo one > conftest.one
3768 echo two > conftest.two
3769 mkdir conftest.dir
3770 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3771 test -s conftest.one && test -s conftest.two &&
3772 test -s conftest.dir/conftest.one &&
3773 test -s conftest.dir/conftest.two
3774 then
3775 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3776 break 3
3777 fi
d0191583
JM
3778 fi
3779 fi
3780 done
3781 done
3782 ;;
3783esac
ec6a6fbe 3784
d0191583
JM
3785done
3786IFS=$as_save_IFS
80992638 3787
ec6a6fbe 3788rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3789
3790fi
3791 if test "${ac_cv_path_install+set}" = set; then
3792 INSTALL=$ac_cv_path_install
7a197a62 3793 else
d0191583
JM
3794 # As a last resort, use the slow shell script. Don't cache a
3795 # value for INSTALL within a source directory, because that will
3796 # break other packages using the cache if that directory is
3797 # removed, or if the value is a relative name.
3798 INSTALL=$ac_install_sh
7a197a62 3799 fi
d0191583 3800fi
ec6a6fbe
AK
3801{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3802$as_echo "$INSTALL" >&6; }
ad6254c5 3803
d0191583
JM
3804# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3805# It thinks the first close brace ends the variable substitution.
3806test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3807
d0191583 3808test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3809
d0191583
JM
3810test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3811
ec6a6fbe
AK
3812{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3813$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3814LN_S=$as_ln_s
3815if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3816 { $as_echo "$as_me:$LINENO: result: yes" >&5
3817$as_echo "yes" >&6; }
d0191583 3818else
ec6a6fbe
AK
3819 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3820$as_echo "no, using $LN_S" >&6; }
795ca3e5 3821fi
d0191583 3822
ec6a6fbe
AK
3823{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3824$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3825set x ${MAKE-make}
3826ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3827if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3828 $as_echo_n "(cached) " >&6
7a197a62 3829else
d0191583
JM
3830 cat >conftest.make <<\_ACEOF
3831SHELL = /bin/sh
3832all:
3833 @echo '@@@%%%=$(MAKE)=@@@%%%'
3834_ACEOF
3835# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3836case `${MAKE-make} -f conftest.make 2>/dev/null` in
3837 *@@@%%%=?*=@@@%%%*)
3838 eval ac_cv_prog_make_${ac_make}_set=yes;;
3839 *)
3840 eval ac_cv_prog_make_${ac_make}_set=no;;
3841esac
3842rm -f conftest.make
ad6254c5 3843fi
d0191583 3844if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3845 { $as_echo "$as_me:$LINENO: result: yes" >&5
3846$as_echo "yes" >&6; }
d0191583
JM
3847 SET_MAKE=
3848else
ec6a6fbe
AK
3849 { $as_echo "$as_me:$LINENO: result: no" >&5
3850$as_echo "no" >&6; }
d0191583 3851 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3852fi
8106cdd5 3853
ec6a6fbe
AK
3854{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3855$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3856if test -z "$MKDIR_P"; then
3857 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3858 $as_echo_n "(cached) " >&6
5556819a
AK
3859else
3860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3862do
3863 IFS=$as_save_IFS
3864 test -z "$as_dir" && as_dir=.
3865 for ac_prog in mkdir gmkdir; do
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3868 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3869 'mkdir (GNU coreutils) '* | \
3870 'mkdir (coreutils) '* | \
3871 'mkdir (fileutils) '4.1*)
3872 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3873 break 3;;
3874 esac
3875 done
3876 done
3877done
3878IFS=$as_save_IFS
3879
3880fi
3881
3882 if test "${ac_cv_path_mkdir+set}" = set; then
3883 MKDIR_P="$ac_cv_path_mkdir -p"
3884 else
3885 # As a last resort, use the slow shell script. Don't cache a
3886 # value for MKDIR_P within a source directory, because that will
3887 # break other packages using the cache if that directory is
3888 # removed, or if the value is a relative name.
3889 test -d ./--version && rmdir ./--version
3890 MKDIR_P="$ac_install_sh -d"
3891 fi
3892fi
ec6a6fbe
AK
3893{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3894$as_echo "$MKDIR_P" >&6; }
5556819a 3895
d0191583
JM
3896if test -n "$ac_tool_prefix"; then
3897 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3898set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3899{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3900$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3901if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3902 $as_echo_n "(cached) " >&6
d0191583
JM
3903else
3904 if test -n "$RANLIB"; then
3905 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3906else
3907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908for as_dir in $PATH
3909do
3910 IFS=$as_save_IFS
3911 test -z "$as_dir" && as_dir=.
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3914 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3915 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3916 break 2
3917 fi
3918done
3919done
3920IFS=$as_save_IFS
8106cdd5 3921
795ca3e5 3922fi
d0191583
JM
3923fi
3924RANLIB=$ac_cv_prog_RANLIB
3925if test -n "$RANLIB"; then
ec6a6fbe
AK
3926 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3927$as_echo "$RANLIB" >&6; }
d0191583 3928else
ec6a6fbe
AK
3929 { $as_echo "$as_me:$LINENO: result: no" >&5
3930$as_echo "no" >&6; }
d0191583
JM
3931fi
3932
8106cdd5 3933
ad6254c5 3934fi
d0191583
JM
3935if test -z "$ac_cv_prog_RANLIB"; then
3936 ac_ct_RANLIB=$RANLIB
3937 # Extract the first word of "ranlib", so it can be a program name with args.
3938set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3939{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3940$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3941if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 3942 $as_echo_n "(cached) " >&6
ad6254c5 3943else
d0191583
JM
3944 if test -n "$ac_ct_RANLIB"; then
3945 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3946else
3947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948for as_dir in $PATH
8106cdd5 3949do
d0191583
JM
3950 IFS=$as_save_IFS
3951 test -z "$as_dir" && as_dir=.
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3954 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 3955 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3956 break 2
3957 fi
3958done
3959done
3960IFS=$as_save_IFS
3961
3962fi
3963fi
3964ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3965if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
3966 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3967$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 3968else
ec6a6fbe
AK
3969 { $as_echo "$as_me:$LINENO: result: no" >&5
3970$as_echo "no" >&6; }
d0191583 3971fi
ad6254c5 3972
d0191583
JM
3973 if test "x$ac_ct_RANLIB" = x; then
3974 RANLIB=":"
3975 else
3976 case $cross_compiling:$ac_tool_warned in
3977yes:)
ec6a6fbe
AK
3978{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
3980ac_tool_warned=yes ;;
3981esac
3982 RANLIB=$ac_ct_RANLIB
3983 fi
3984else
3985 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 3986fi
7a197a62 3987
d0191583
JM
3988# Extract the first word of "cflow", so it can be a program name with args.
3989set dummy cflow; ac_word=$2
ec6a6fbe
AK
3990{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3991$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3992if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 3993 $as_echo_n "(cached) " >&6
d0191583
JM
3994else
3995 case $CFLOW_CMD in
3996 [\\/]* | ?:[\\/]*)
3997 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3998 ;;
3999 *)
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001for as_dir in $PATH
4002do
4003 IFS=$as_save_IFS
4004 test -z "$as_dir" && as_dir=.
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4007 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4008 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4009 break 2
4010 fi
4011done
4012done
4013IFS=$as_save_IFS
ad6254c5 4014
d0191583 4015 ;;
7a197a62 4016esac
d0191583
JM
4017fi
4018CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4019if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
4020 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4021$as_echo "$CFLOW_CMD" >&6; }
80992638 4022else
ec6a6fbe
AK
4023 { $as_echo "$as_me:$LINENO: result: no" >&5
4024$as_echo "no" >&6; }
795ca3e5 4025fi
7a197a62 4026
ad6254c5 4027
d0191583
JM
4028# Extract the first word of "cscope", so it can be a program name with args.
4029set dummy cscope; ac_word=$2
ec6a6fbe
AK
4030{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4031$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4032if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 4033 $as_echo_n "(cached) " >&6
d0191583
JM
4034else
4035 case $CSCOPE_CMD in
4036 [\\/]* | ?:[\\/]*)
4037 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4038 ;;
4039 *)
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041for as_dir in $PATH
4042do
4043 IFS=$as_save_IFS
4044 test -z "$as_dir" && as_dir=.
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4047 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4049 break 2
4050 fi
795ca3e5 4051done
d0191583
JM
4052done
4053IFS=$as_save_IFS
795ca3e5 4054
d0191583
JM
4055 ;;
4056esac
ad6254c5 4057fi
d0191583
JM
4058CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4059if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
4060 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4061$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 4062else
ec6a6fbe
AK
4063 { $as_echo "$as_me:$LINENO: result: no" >&5
4064$as_echo "no" >&6; }
795ca3e5 4065fi
ad6254c5 4066
7a197a62 4067
ad6254c5 4068
d0191583
JM
4069################################################################################
4070
4071
4072
4073
4074
4075ac_header_dirent=no
4076for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
4077 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4078{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4079$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 4080if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4081 $as_echo_n "(cached) " >&6
d0191583 4082else
ad6254c5 4083 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4084/* confdefs.h. */
4085_ACEOF
4086cat confdefs.h >>conftest.$ac_ext
4087cat >>conftest.$ac_ext <<_ACEOF
4088/* end confdefs.h. */
d0191583
JM
4089#include <sys/types.h>
4090#include <$ac_hdr>
4091
4092int
4093main ()
4094{
4095if ((DIR *) 0)
4096return 0;
4097 ;
4098 return 0;
4099}
ad6254c5 4100_ACEOF
d0191583
JM
4101rm -f conftest.$ac_objext
4102if { (ac_try="$ac_compile"
7a197a62
AK
4103case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106esac
ec6a6fbe
AK
4107eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4108$as_echo "$ac_try_echo") >&5
d0191583 4109 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4110 ac_status=$?
4111 grep -v '^ *+' conftest.er1 >conftest.err
4112 rm -f conftest.er1
4113 cat conftest.err >&5
ec6a6fbe 4114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4115 (exit $ac_status); } && {
4116 test -z "$ac_c_werror_flag" ||
25fbec5b 4117 test ! -s conftest.err
d0191583
JM
4118 } && test -s conftest.$ac_objext; then
4119 eval "$as_ac_Header=yes"
ad6254c5 4120else
ec6a6fbe 4121 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4122sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4123
d0191583 4124 eval "$as_ac_Header=no"
795ca3e5 4125fi
7a197a62 4126
d0191583 4127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4128fi
ec6a6fbe
AK
4129ac_res=`eval 'as_val=${'$as_ac_Header'}
4130 $as_echo "$as_val"'`
4131 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4132$as_echo "$ac_res" >&6; }
4133as_val=`eval 'as_val=${'$as_ac_Header'}
4134 $as_echo "$as_val"'`
4135 if test "x$as_val" = x""yes; then
d0191583 4136 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4137#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4138_ACEOF
795ca3e5 4139
d0191583
JM
4140ac_header_dirent=$ac_hdr; break
4141fi
ad6254c5 4142
d0191583
JM
4143done
4144# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4145if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4146 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4147$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4148if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4149 $as_echo_n "(cached) " >&6
ad6254c5 4150else
d0191583
JM
4151 ac_func_search_save_LIBS=$LIBS
4152cat >conftest.$ac_ext <<_ACEOF
4153/* confdefs.h. */
4154_ACEOF
4155cat confdefs.h >>conftest.$ac_ext
4156cat >>conftest.$ac_ext <<_ACEOF
4157/* end confdefs.h. */
ad6254c5 4158
d0191583
JM
4159/* Override any GCC internal prototype to avoid an error.
4160 Use char because int might match the return type of a GCC
4161 builtin and then its argument prototype would still apply. */
4162#ifdef __cplusplus
4163extern "C"
4164#endif
4165char opendir ();
4166int
4167main ()
4168{
4169return opendir ();
4170 ;
4171 return 0;
4172}
4173_ACEOF
4174for ac_lib in '' dir; do
4175 if test -z "$ac_lib"; then
4176 ac_res="none required"
4177 else
4178 ac_res=-l$ac_lib
4179 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4180 fi
4181 rm -f conftest.$ac_objext conftest$ac_exeext
4182if { (ac_try="$ac_link"
4183case "(($ac_try" in
4184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185 *) ac_try_echo=$ac_try;;
4186esac
ec6a6fbe
AK
4187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4188$as_echo "$ac_try_echo") >&5
d0191583
JM
4189 (eval "$ac_link") 2>conftest.er1
4190 ac_status=$?
4191 grep -v '^ *+' conftest.er1 >conftest.err
4192 rm -f conftest.er1
4193 cat conftest.err >&5
ec6a6fbe 4194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4195 (exit $ac_status); } && {
4196 test -z "$ac_c_werror_flag" ||
4197 test ! -s conftest.err
ec6a6fbe
AK
4198 } && test -s conftest$ac_exeext && {
4199 test "$cross_compiling" = yes ||
4200 $as_test_x conftest$ac_exeext
4201 }; then
d0191583
JM
4202 ac_cv_search_opendir=$ac_res
4203else
ec6a6fbe 4204 $as_echo "$as_me: failed program was:" >&5
d0191583 4205sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4206
ad6254c5 4207
795ca3e5 4208fi
ad6254c5 4209
ec6a6fbe 4210rm -rf conftest.dSYM
d0191583
JM
4211rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4212 conftest$ac_exeext
4213 if test "${ac_cv_search_opendir+set}" = set; then
4214 break
7a197a62 4215fi
d0191583
JM
4216done
4217if test "${ac_cv_search_opendir+set}" = set; then
4218 :
7a197a62 4219else
d0191583 4220 ac_cv_search_opendir=no
7a197a62 4221fi
d0191583
JM
4222rm conftest.$ac_ext
4223LIBS=$ac_func_search_save_LIBS
7a197a62 4224fi
ec6a6fbe
AK
4225{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4226$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4227ac_res=$ac_cv_search_opendir
4228if test "$ac_res" != no; then
4229 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4230
d0191583 4231fi
7a197a62 4232
7a197a62 4233else
ec6a6fbe
AK
4234 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4235$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4236if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4237 $as_echo_n "(cached) " >&6
7a197a62 4238else
d0191583
JM
4239 ac_func_search_save_LIBS=$LIBS
4240cat >conftest.$ac_ext <<_ACEOF
4241/* confdefs.h. */
4242_ACEOF
4243cat confdefs.h >>conftest.$ac_ext
4244cat >>conftest.$ac_ext <<_ACEOF
4245/* end confdefs.h. */
7a197a62 4246
d0191583
JM
4247/* Override any GCC internal prototype to avoid an error.
4248 Use char because int might match the return type of a GCC
4249 builtin and then its argument prototype would still apply. */
4250#ifdef __cplusplus
4251extern "C"
4252#endif
4253char opendir ();
4254int
4255main ()
4256{
4257return opendir ();
4258 ;
4259 return 0;
4260}
4261_ACEOF
4262for ac_lib in '' x; do
4263 if test -z "$ac_lib"; then
4264 ac_res="none required"
4265 else
4266 ac_res=-l$ac_lib
4267 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4268 fi
4269 rm -f conftest.$ac_objext conftest$ac_exeext
4270if { (ac_try="$ac_link"
4271case "(($ac_try" in
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4274esac
ec6a6fbe
AK
4275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4276$as_echo "$ac_try_echo") >&5
d0191583
JM
4277 (eval "$ac_link") 2>conftest.er1
4278 ac_status=$?
4279 grep -v '^ *+' conftest.er1 >conftest.err
4280 rm -f conftest.er1
4281 cat conftest.err >&5
ec6a6fbe 4282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4283 (exit $ac_status); } && {
4284 test -z "$ac_c_werror_flag" ||
4285 test ! -s conftest.err
ec6a6fbe
AK
4286 } && test -s conftest$ac_exeext && {
4287 test "$cross_compiling" = yes ||
4288 $as_test_x conftest$ac_exeext
4289 }; then
d0191583
JM
4290 ac_cv_search_opendir=$ac_res
4291else
ec6a6fbe 4292 $as_echo "$as_me: failed program was:" >&5
d0191583 4293sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4294
4295
4296fi
4297
ec6a6fbe 4298rm -rf conftest.dSYM
d0191583
JM
4299rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4300 conftest$ac_exeext
4301 if test "${ac_cv_search_opendir+set}" = set; then
4302 break
7a197a62 4303fi
d0191583
JM
4304done
4305if test "${ac_cv_search_opendir+set}" = set; then
4306 :
7a197a62 4307else
d0191583 4308 ac_cv_search_opendir=no
7a197a62 4309fi
d0191583
JM
4310rm conftest.$ac_ext
4311LIBS=$ac_func_search_save_LIBS
4312fi
ec6a6fbe
AK
4313{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4314$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4315ac_res=$ac_cv_search_opendir
4316if test "$ac_res" != no; then
4317 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4318
7a197a62 4319fi
7a197a62 4320
d0191583 4321fi
7a197a62 4322
ec6a6fbe
AK
4323{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4324$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4325if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4326 $as_echo_n "(cached) " >&6
7a197a62
AK
4327else
4328 cat >conftest.$ac_ext <<_ACEOF
4329/* confdefs.h. */
4330_ACEOF
4331cat confdefs.h >>conftest.$ac_ext
4332cat >>conftest.$ac_ext <<_ACEOF
4333/* end confdefs.h. */
4334#include <stdlib.h>
4335#include <stdarg.h>
4336#include <string.h>
4337#include <float.h>
4338
4339int
4340main ()
4341{
4342
4343 ;
4344 return 0;
4345}
4346_ACEOF
4347rm -f conftest.$ac_objext
4348if { (ac_try="$ac_compile"
4349case "(($ac_try" in
4350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351 *) ac_try_echo=$ac_try;;
4352esac
ec6a6fbe
AK
4353eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4354$as_echo "$ac_try_echo") >&5
7a197a62
AK
4355 (eval "$ac_compile") 2>conftest.er1
4356 ac_status=$?
4357 grep -v '^ *+' conftest.er1 >conftest.err
4358 rm -f conftest.er1
4359 cat conftest.err >&5
ec6a6fbe 4360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4361 (exit $ac_status); } && {
4362 test -z "$ac_c_werror_flag" ||
4363 test ! -s conftest.err
4364 } && test -s conftest.$ac_objext; then
7a197a62
AK
4365 ac_cv_header_stdc=yes
4366else
ec6a6fbe 4367 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4368sed 's/^/| /' conftest.$ac_ext >&5
4369
4370 ac_cv_header_stdc=no
4371fi
4372
4373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374
4375if test $ac_cv_header_stdc = yes; then
4376 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4377 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4378/* confdefs.h. */
4379_ACEOF
4380cat confdefs.h >>conftest.$ac_ext
4381cat >>conftest.$ac_ext <<_ACEOF
4382/* end confdefs.h. */
4383#include <string.h>
8106cdd5 4384
ad6254c5
AK
4385_ACEOF
4386if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4387 $EGREP "memchr" >/dev/null 2>&1; then
4388 :
4389else
4390 ac_cv_header_stdc=no
80992638 4391fi
ad6254c5 4392rm -f conftest*
795ca3e5
AK
4393
4394fi
4395
ad6254c5
AK
4396if test $ac_cv_header_stdc = yes; then
4397 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4398 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4399/* confdefs.h. */
4400_ACEOF
4401cat confdefs.h >>conftest.$ac_ext
4402cat >>conftest.$ac_ext <<_ACEOF
4403/* end confdefs.h. */
80992638 4404#include <stdlib.h>
ad6254c5
AK
4405
4406_ACEOF
80992638 4407if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4408 $EGREP "free" >/dev/null 2>&1; then
4409 :
795ca3e5 4410else
ad6254c5 4411 ac_cv_header_stdc=no
795ca3e5 4412fi
80992638 4413rm -f conftest*
8106cdd5 4414
795ca3e5
AK
4415fi
4416
ad6254c5
AK
4417if test $ac_cv_header_stdc = yes; then
4418 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4419 if test "$cross_compiling" = yes; then
4420 :
795ca3e5 4421else
ad6254c5 4422 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4423/* confdefs.h. */
4424_ACEOF
4425cat confdefs.h >>conftest.$ac_ext
4426cat >>conftest.$ac_ext <<_ACEOF
4427/* end confdefs.h. */
4428#include <ctype.h>
7a197a62 4429#include <stdlib.h>
ad6254c5
AK
4430#if ((' ' & 0x0FF) == 0x020)
4431# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4432# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4433#else
4434# define ISLOWER(c) \
8a2fc586
AK
4435 (('a' <= (c) && (c) <= 'i') \
4436 || ('j' <= (c) && (c) <= 'r') \
4437 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4438# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4439#endif
ad6254c5
AK
4440
4441#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4442int
4443main ()
4444{
4445 int i;
4446 for (i = 0; i < 256; i++)
4447 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4448 || toupper (i) != TOUPPER (i))
7a197a62
AK
4449 return 2;
4450 return 0;
ad6254c5
AK
4451}
4452_ACEOF
4453rm -f conftest$ac_exeext
7a197a62
AK
4454if { (ac_try="$ac_link"
4455case "(($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_link") 2>&5
ad6254c5 4462 ac_status=$?
ec6a6fbe 4463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4465 { (case "(($ac_try" in
4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467 *) ac_try_echo=$ac_try;;
4468esac
ec6a6fbe
AK
4469eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4470$as_echo "$ac_try_echo") >&5
7a197a62 4471 (eval "$ac_try") 2>&5
ad6254c5 4472 ac_status=$?
ec6a6fbe 4473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4474 (exit $ac_status); }; }; then
4475 :
795ca3e5 4476else
ec6a6fbe
AK
4477 $as_echo "$as_me: program exited with status $ac_status" >&5
4478$as_echo "$as_me: failed program was:" >&5
ad6254c5 4479sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4480
ad6254c5
AK
4481( exit $ac_status )
4482ac_cv_header_stdc=no
80992638 4483fi
ec6a6fbe 4484rm -rf conftest.dSYM
7a197a62 4485rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4486fi
7a197a62
AK
4487
4488
ad6254c5
AK
4489fi
4490fi
ec6a6fbe
AK
4491{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4492$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4493if test $ac_cv_header_stdc = yes; then
4494
4495cat >>confdefs.h <<\_ACEOF
4496#define STDC_HEADERS 1
4497_ACEOF
795ca3e5
AK
4498
4499fi
4500
ec6a6fbe
AK
4501{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4502$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
ad6254c5 4503if test "${ac_cv_header_sys_wait_h+set}" = set; then
ec6a6fbe 4504 $as_echo_n "(cached) " >&6
8106cdd5 4505else
ad6254c5 4506 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4507/* confdefs.h. */
4508_ACEOF
4509cat confdefs.h >>conftest.$ac_ext
4510cat >>conftest.$ac_ext <<_ACEOF
4511/* end confdefs.h. */
80992638 4512#include <sys/types.h>
ad6254c5
AK
4513#include <sys/wait.h>
4514#ifndef WEXITSTATUS
7a197a62 4515# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4516#endif
4517#ifndef WIFEXITED
4518# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4519#endif
4520
4521int
4522main ()
4523{
4524 int s;
4525 wait (&s);
4526 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4527 ;
4528 return 0;
4529}
4530_ACEOF
4531rm -f conftest.$ac_objext
7a197a62
AK
4532if { (ac_try="$ac_compile"
4533case "(($ac_try" in
4534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535 *) ac_try_echo=$ac_try;;
4536esac
ec6a6fbe
AK
4537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4538$as_echo "$ac_try_echo") >&5
7a197a62 4539 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4540 ac_status=$?
8a2fc586
AK
4541 grep -v '^ *+' conftest.er1 >conftest.err
4542 rm -f conftest.er1
4543 cat conftest.err >&5
ec6a6fbe 4544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4545 (exit $ac_status); } && {
4546 test -z "$ac_c_werror_flag" ||
4547 test ! -s conftest.err
4548 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4549 ac_cv_header_sys_wait_h=yes
4550else
ec6a6fbe 4551 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4552sed 's/^/| /' conftest.$ac_ext >&5
4553
7a197a62 4554 ac_cv_header_sys_wait_h=no
8106cdd5 4555fi
7a197a62
AK
4556
4557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4558fi
ec6a6fbe
AK
4559{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4560$as_echo "$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4561if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4562
ad6254c5
AK
4563cat >>confdefs.h <<\_ACEOF
4564#define HAVE_SYS_WAIT_H 1
4565_ACEOF
795ca3e5
AK
4566
4567fi
4568
ec6a6fbe
AK
4569{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4570$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
ad6254c5 4571if test "${ac_cv_header_time+set}" = set; then
ec6a6fbe 4572 $as_echo_n "(cached) " >&6
795ca3e5 4573else
ad6254c5 4574 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4575/* confdefs.h. */
4576_ACEOF
4577cat confdefs.h >>conftest.$ac_ext
4578cat >>conftest.$ac_ext <<_ACEOF
4579/* end confdefs.h. */
795ca3e5
AK
4580#include <sys/types.h>
4581#include <sys/time.h>
4582#include <time.h>
ad6254c5
AK
4583
4584int
4585main ()
4586{
4587if ((struct tm *) 0)
4588return 0;
4589 ;
4590 return 0;
4591}
4592_ACEOF
4593rm -f conftest.$ac_objext
7a197a62
AK
4594if { (ac_try="$ac_compile"
4595case "(($ac_try" in
4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4598esac
ec6a6fbe
AK
4599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4600$as_echo "$ac_try_echo") >&5
7a197a62 4601 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4602 ac_status=$?
8a2fc586
AK
4603 grep -v '^ *+' conftest.er1 >conftest.err
4604 rm -f conftest.er1
4605 cat conftest.err >&5
ec6a6fbe 4606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4607 (exit $ac_status); } && {
4608 test -z "$ac_c_werror_flag" ||
4609 test ! -s conftest.err
4610 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4611 ac_cv_header_time=yes
4612else
ec6a6fbe 4613 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4614sed 's/^/| /' conftest.$ac_ext >&5
4615
7a197a62 4616 ac_cv_header_time=no
795ca3e5 4617fi
7a197a62
AK
4618
4619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4620fi
ec6a6fbe
AK
4621{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4622$as_echo "$ac_cv_header_time" >&6; }
80992638 4623if test $ac_cv_header_time = yes; then
ad6254c5
AK
4624
4625cat >>confdefs.h <<\_ACEOF
795ca3e5 4626#define TIME_WITH_SYS_TIME 1
ad6254c5 4627_ACEOF
b896caa1 4628
8106cdd5 4629fi
b896caa1 4630
b896caa1 4631
d0191583
JM
4632# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4643 inttypes.h stdint.h unistd.h
4644do
ec6a6fbe
AK
4645as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4646{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4647$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4649 $as_echo_n "(cached) " >&6
d0191583
JM
4650else
4651 cat >conftest.$ac_ext <<_ACEOF
4652/* confdefs.h. */
4653_ACEOF
4654cat confdefs.h >>conftest.$ac_ext
4655cat >>conftest.$ac_ext <<_ACEOF
4656/* end confdefs.h. */
4657$ac_includes_default
4658
4659#include <$ac_header>
4660_ACEOF
4661rm -f conftest.$ac_objext
4662if { (ac_try="$ac_compile"
4663case "(($ac_try" in
4664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665 *) ac_try_echo=$ac_try;;
4666esac
ec6a6fbe
AK
4667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4668$as_echo "$ac_try_echo") >&5
d0191583
JM
4669 (eval "$ac_compile") 2>conftest.er1
4670 ac_status=$?
4671 grep -v '^ *+' conftest.er1 >conftest.err
4672 rm -f conftest.er1
4673 cat conftest.err >&5
ec6a6fbe 4674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4675 (exit $ac_status); } && {
4676 test -z "$ac_c_werror_flag" ||
4677 test ! -s conftest.err
4678 } && test -s conftest.$ac_objext; then
4679 eval "$as_ac_Header=yes"
4680else
ec6a6fbe 4681 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4682sed 's/^/| /' conftest.$ac_ext >&5
4683
4684 eval "$as_ac_Header=no"
4685fi
4686
4687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4688fi
ec6a6fbe
AK
4689ac_res=`eval 'as_val=${'$as_ac_Header'}
4690 $as_echo "$as_val"'`
4691 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4692$as_echo "$ac_res" >&6; }
4693as_val=`eval 'as_val=${'$as_ac_Header'}
4694 $as_echo "$as_val"'`
4695 if test "x$as_val" = x""yes; then
d0191583 4696 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4697#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d0191583
JM
4698_ACEOF
4699
4700fi
4701
4702done
4703
b896caa1 4704
b896caa1
AK
4705
4706
795ca3e5 4707
8106cdd5 4708
80992638 4709
795ca3e5 4710
a38df97f 4711
80992638 4712
d0191583
JM
4713
4714
4715
4716
4717
4718for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4719 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
ad6254c5 4720do
ec6a6fbe 4721as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0191583 4722if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4723 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4724$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4725if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4726 $as_echo_n "(cached) " >&6
d0191583 4727fi
ec6a6fbe
AK
4728ac_res=`eval 'as_val=${'$as_ac_Header'}
4729 $as_echo "$as_val"'`
4730 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4731$as_echo "$ac_res" >&6; }
ad6254c5 4732else
d0191583 4733 # Is the header compilable?
ec6a6fbe
AK
4734{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4735$as_echo_n "checking $ac_header usability... " >&6; }
d0191583 4736cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4737/* confdefs.h. */
4738_ACEOF
4739cat confdefs.h >>conftest.$ac_ext
4740cat >>conftest.$ac_ext <<_ACEOF
4741/* end confdefs.h. */
4742$ac_includes_default
ad6254c5
AK
4743#include <$ac_header>
4744_ACEOF
4745rm -f conftest.$ac_objext
7a197a62
AK
4746if { (ac_try="$ac_compile"
4747case "(($ac_try" in
4748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749 *) ac_try_echo=$ac_try;;
4750esac
ec6a6fbe
AK
4751eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4752$as_echo "$ac_try_echo") >&5
7a197a62 4753 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4754 ac_status=$?
8a2fc586
AK
4755 grep -v '^ *+' conftest.er1 >conftest.err
4756 rm -f conftest.er1
4757 cat conftest.err >&5
ec6a6fbe 4758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4759 (exit $ac_status); } && {
4760 test -z "$ac_c_werror_flag" ||
4761 test ! -s conftest.err
4762 } && test -s conftest.$ac_objext; then
d0191583 4763 ac_header_compiler=yes
ad6254c5 4764else
ec6a6fbe 4765 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4766sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4767
d0191583 4768 ac_header_compiler=no
ad6254c5 4769fi
7a197a62
AK
4770
4771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4772{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4773$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4774
4775# Is the header present?
ec6a6fbe
AK
4776{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4777$as_echo_n "checking $ac_header presence... " >&6; }
d0191583
JM
4778cat >conftest.$ac_ext <<_ACEOF
4779/* confdefs.h. */
4780_ACEOF
4781cat confdefs.h >>conftest.$ac_ext
4782cat >>conftest.$ac_ext <<_ACEOF
4783/* end confdefs.h. */
4784#include <$ac_header>
4785_ACEOF
4786if { (ac_try="$ac_cpp conftest.$ac_ext"
4787case "(($ac_try" in
4788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4789 *) ac_try_echo=$ac_try;;
4790esac
ec6a6fbe
AK
4791eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4792$as_echo "$ac_try_echo") >&5
d0191583
JM
4793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4794 ac_status=$?
4795 grep -v '^ *+' conftest.er1 >conftest.err
4796 rm -f conftest.er1
4797 cat conftest.err >&5
ec6a6fbe 4798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4799 (exit $ac_status); } >/dev/null && {
4800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4801 test ! -s conftest.err
4802 }; then
4803 ac_header_preproc=yes
4804else
ec6a6fbe 4805 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4806sed 's/^/| /' conftest.$ac_ext >&5
4807
4808 ac_header_preproc=no
4809fi
4810
4811rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4812{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4813$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4814
4815# So? What about this header?
4816case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4817 yes:no: )
ec6a6fbe
AK
4818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4819$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4821$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d0191583
JM
4822 ac_header_preproc=yes
4823 ;;
4824 no:yes:* )
ec6a6fbe
AK
4825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4826$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4828$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4830$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4832$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4834$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4836$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4837
4838 ;;
4839esac
ec6a6fbe
AK
4840{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4841$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4842if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4843 $as_echo_n "(cached) " >&6
d0191583
JM
4844else
4845 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4846fi
ec6a6fbe
AK
4847ac_res=`eval 'as_val=${'$as_ac_Header'}
4848 $as_echo "$as_val"'`
4849 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4850$as_echo "$ac_res" >&6; }
d0191583
JM
4851
4852fi
ec6a6fbe
AK
4853as_val=`eval 'as_val=${'$as_ac_Header'}
4854 $as_echo "$as_val"'`
4855 if test "x$as_val" = x""yes; then
ad6254c5 4856 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4857#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4858_ACEOF
a38df97f 4859
d0191583 4860else
ec6a6fbe
AK
4861 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4862$as_echo "$as_me: error: bailing out" >&2;}
d0191583 4863 { (exit 1); exit 1; }; }
80992638
AK
4864fi
4865
ad6254c5
AK
4866done
4867
7d1552c9 4868
d0191583
JM
4869case "$host_os" in
4870 linux*)
7d1552c9 4871
80992638 4872
5a52dca9 4873
d0191583 4874for ac_header in asm/byteorder.h linux/fs.h malloc.h
ad6254c5 4875do
ec6a6fbe 4876as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4877if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4878 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4879$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4880if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4881 $as_echo_n "(cached) " >&6
ad6254c5 4882fi
ec6a6fbe
AK
4883ac_res=`eval 'as_val=${'$as_ac_Header'}
4884 $as_echo "$as_val"'`
4885 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4886$as_echo "$ac_res" >&6; }
ad6254c5
AK
4887else
4888 # Is the header compilable?
ec6a6fbe
AK
4889{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4890$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4891cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4892/* confdefs.h. */
4893_ACEOF
4894cat confdefs.h >>conftest.$ac_ext
4895cat >>conftest.$ac_ext <<_ACEOF
4896/* end confdefs.h. */
4897$ac_includes_default
4898#include <$ac_header>
4899_ACEOF
4900rm -f conftest.$ac_objext
7a197a62
AK
4901if { (ac_try="$ac_compile"
4902case "(($ac_try" in
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4905esac
ec6a6fbe
AK
4906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4907$as_echo "$ac_try_echo") >&5
7a197a62 4908 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4909 ac_status=$?
8a2fc586
AK
4910 grep -v '^ *+' conftest.er1 >conftest.err
4911 rm -f conftest.er1
4912 cat conftest.err >&5
ec6a6fbe 4913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4914 (exit $ac_status); } && {
4915 test -z "$ac_c_werror_flag" ||
4916 test ! -s conftest.err
4917 } && test -s conftest.$ac_objext; then
fc54be10
AK
4918 ac_header_compiler=yes
4919else
ec6a6fbe 4920 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4921sed 's/^/| /' conftest.$ac_ext >&5
4922
4923 ac_header_compiler=no
4924fi
4925
4926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4927{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4928$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4929
4930# Is the header present?
ec6a6fbe
AK
4931{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4932$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 4933cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4934/* confdefs.h. */
4935_ACEOF
4936cat confdefs.h >>conftest.$ac_ext
4937cat >>conftest.$ac_ext <<_ACEOF
4938/* end confdefs.h. */
4939#include <$ac_header>
4940_ACEOF
7a197a62
AK
4941if { (ac_try="$ac_cpp conftest.$ac_ext"
4942case "(($ac_try" in
4943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944 *) ac_try_echo=$ac_try;;
4945esac
ec6a6fbe
AK
4946eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4947$as_echo "$ac_try_echo") >&5
7a197a62 4948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4949 ac_status=$?
4950 grep -v '^ *+' conftest.er1 >conftest.err
4951 rm -f conftest.er1
4952 cat conftest.err >&5
ec6a6fbe 4953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4954 (exit $ac_status); } >/dev/null && {
4955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4956 test ! -s conftest.err
4957 }; then
ad6254c5
AK
4958 ac_header_preproc=yes
4959else
ec6a6fbe 4960 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4961sed 's/^/| /' conftest.$ac_ext >&5
4962
4963 ac_header_preproc=no
4964fi
7a197a62 4965
ad6254c5 4966rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4967{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4968$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4969
4970# So? What about this header?
8a2fc586
AK
4971case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4972 yes:no: )
ec6a6fbe
AK
4973 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4974$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4976$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4977 ac_header_preproc=yes
ad6254c5 4978 ;;
8a2fc586 4979 no:yes:* )
ec6a6fbe
AK
4980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4981$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4983$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4985$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4986 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4987$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4988 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4989$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4991$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4992
ad6254c5
AK
4993 ;;
4994esac
ec6a6fbe
AK
4995{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4996$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4997if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4998 $as_echo_n "(cached) " >&6
ad6254c5 4999else
8a2fc586 5000 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5001fi
ec6a6fbe
AK
5002ac_res=`eval 'as_val=${'$as_ac_Header'}
5003 $as_echo "$as_val"'`
5004 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5005$as_echo "$ac_res" >&6; }
ad6254c5
AK
5006
5007fi
ec6a6fbe
AK
5008as_val=`eval 'as_val=${'$as_ac_Header'}
5009 $as_echo "$as_val"'`
5010 if test "x$as_val" = x""yes; then
ad6254c5 5011 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5012#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5013_ACEOF
b896caa1 5014
d8ac0fbc 5015else
ec6a6fbe
AK
5016 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5017$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5018 { (exit 1); exit 1; }; }
80992638
AK
5019fi
5020
ad6254c5 5021done
d0191583
JM
5022 ;;
5023 darwin*)
d8ac0fbc 5024
d8ac0fbc 5025
d0191583 5026for ac_header in machine/endian.h sys/disk.h
ad6254c5 5027do
ec6a6fbe 5028as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5029if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5030 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5031$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5032if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5033 $as_echo_n "(cached) " >&6
ad6254c5 5034fi
ec6a6fbe
AK
5035ac_res=`eval 'as_val=${'$as_ac_Header'}
5036 $as_echo "$as_val"'`
5037 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5038$as_echo "$ac_res" >&6; }
ad6254c5
AK
5039else
5040 # Is the header compilable?
ec6a6fbe
AK
5041{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5042$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5043cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5044/* confdefs.h. */
5045_ACEOF
5046cat confdefs.h >>conftest.$ac_ext
5047cat >>conftest.$ac_ext <<_ACEOF
5048/* end confdefs.h. */
5049$ac_includes_default
5050#include <$ac_header>
5051_ACEOF
5052rm -f conftest.$ac_objext
7a197a62
AK
5053if { (ac_try="$ac_compile"
5054case "(($ac_try" in
5055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5056 *) ac_try_echo=$ac_try;;
5057esac
ec6a6fbe
AK
5058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5059$as_echo "$ac_try_echo") >&5
7a197a62 5060 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5061 ac_status=$?
8a2fc586
AK
5062 grep -v '^ *+' conftest.er1 >conftest.err
5063 rm -f conftest.er1
5064 cat conftest.err >&5
ec6a6fbe 5065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5066 (exit $ac_status); } && {
5067 test -z "$ac_c_werror_flag" ||
5068 test ! -s conftest.err
5069 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5070 ac_header_compiler=yes
5071else
ec6a6fbe 5072 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5073sed 's/^/| /' conftest.$ac_ext >&5
5074
7a197a62 5075 ac_header_compiler=no
ad6254c5 5076fi
7a197a62
AK
5077
5078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5079{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5080$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5081
5082# Is the header present?
ec6a6fbe
AK
5083{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5084$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5085cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5086/* confdefs.h. */
5087_ACEOF
5088cat confdefs.h >>conftest.$ac_ext
5089cat >>conftest.$ac_ext <<_ACEOF
5090/* end confdefs.h. */
5091#include <$ac_header>
5092_ACEOF
7a197a62
AK
5093if { (ac_try="$ac_cpp conftest.$ac_ext"
5094case "(($ac_try" in
5095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5096 *) ac_try_echo=$ac_try;;
5097esac
ec6a6fbe
AK
5098eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5099$as_echo "$ac_try_echo") >&5
7a197a62 5100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5101 ac_status=$?
5102 grep -v '^ *+' conftest.er1 >conftest.err
5103 rm -f conftest.er1
5104 cat conftest.err >&5
ec6a6fbe 5105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5106 (exit $ac_status); } >/dev/null && {
5107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5108 test ! -s conftest.err
5109 }; then
ad6254c5
AK
5110 ac_header_preproc=yes
5111else
ec6a6fbe 5112 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5113sed 's/^/| /' conftest.$ac_ext >&5
5114
5115 ac_header_preproc=no
5116fi
7a197a62 5117
ad6254c5 5118rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5119{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5120$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5121
5122# So? What about this header?
8a2fc586
AK
5123case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5124 yes:no: )
ec6a6fbe
AK
5125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5126$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5128$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5129 ac_header_preproc=yes
ad6254c5 5130 ;;
8a2fc586 5131 no:yes:* )
ec6a6fbe
AK
5132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5133$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5135$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5137$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5139$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5141$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5143$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5144
ad6254c5
AK
5145 ;;
5146esac
ec6a6fbe
AK
5147{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5148$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5149if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5150 $as_echo_n "(cached) " >&6
ad6254c5 5151else
8a2fc586 5152 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 5153fi
ec6a6fbe
AK
5154ac_res=`eval 'as_val=${'$as_ac_Header'}
5155 $as_echo "$as_val"'`
5156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5157$as_echo "$ac_res" >&6; }
ad6254c5
AK
5158
5159fi
ec6a6fbe
AK
5160as_val=`eval 'as_val=${'$as_ac_Header'}
5161 $as_echo "$as_val"'`
5162 if test "x$as_val" = x""yes; then
ad6254c5 5163 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5164#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5165_ACEOF
4922197a 5166
4922197a 5167else
ec6a6fbe
AK
5168 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5169$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5170 { (exit 1); exit 1; }; }
80992638
AK
5171fi
5172
ad6254c5 5173done
d0191583
JM
5174 ;;
5175esac
4922197a 5176
4922197a 5177
4922197a 5178
ad6254c5
AK
5179
5180
d0191583
JM
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5194 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5195 sys/types.h unistd.h
ad6254c5 5196do
ec6a6fbe 5197as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5198if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5199 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5200$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5201if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5202 $as_echo_n "(cached) " >&6
ad6254c5 5203fi
ec6a6fbe
AK
5204ac_res=`eval 'as_val=${'$as_ac_Header'}
5205 $as_echo "$as_val"'`
5206 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5207$as_echo "$ac_res" >&6; }
795ca3e5 5208else
ad6254c5 5209 # Is the header compilable?
ec6a6fbe
AK
5210{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5211$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5212cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5213/* confdefs.h. */
5214_ACEOF
5215cat confdefs.h >>conftest.$ac_ext
5216cat >>conftest.$ac_ext <<_ACEOF
5217/* end confdefs.h. */
5218$ac_includes_default
5219#include <$ac_header>
5220_ACEOF
5221rm -f conftest.$ac_objext
7a197a62
AK
5222if { (ac_try="$ac_compile"
5223case "(($ac_try" in
5224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5225 *) ac_try_echo=$ac_try;;
5226esac
ec6a6fbe
AK
5227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5228$as_echo "$ac_try_echo") >&5
7a197a62 5229 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5230 ac_status=$?
8a2fc586
AK
5231 grep -v '^ *+' conftest.er1 >conftest.err
5232 rm -f conftest.er1
5233 cat conftest.err >&5
ec6a6fbe 5234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5235 (exit $ac_status); } && {
5236 test -z "$ac_c_werror_flag" ||
5237 test ! -s conftest.err
5238 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5239 ac_header_compiler=yes
5240else
ec6a6fbe 5241 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5242sed 's/^/| /' conftest.$ac_ext >&5
5243
7a197a62 5244 ac_header_compiler=no
ad6254c5 5245fi
7a197a62
AK
5246
5247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5248{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5249$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5250
5251# Is the header present?
ec6a6fbe
AK
5252{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5253$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5254cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5255/* confdefs.h. */
5256_ACEOF
5257cat confdefs.h >>conftest.$ac_ext
5258cat >>conftest.$ac_ext <<_ACEOF
5259/* end confdefs.h. */
5260#include <$ac_header>
5261_ACEOF
7a197a62
AK
5262if { (ac_try="$ac_cpp conftest.$ac_ext"
5263case "(($ac_try" in
5264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5265 *) ac_try_echo=$ac_try;;
5266esac
ec6a6fbe
AK
5267eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5268$as_echo "$ac_try_echo") >&5
7a197a62 5269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5270 ac_status=$?
5271 grep -v '^ *+' conftest.er1 >conftest.err
5272 rm -f conftest.er1
5273 cat conftest.err >&5
ec6a6fbe 5274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5275 (exit $ac_status); } >/dev/null && {
5276 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5277 test ! -s conftest.err
5278 }; then
ad6254c5
AK
5279 ac_header_preproc=yes
5280else
ec6a6fbe 5281 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5282sed 's/^/| /' conftest.$ac_ext >&5
5283
5284 ac_header_preproc=no
5285fi
7a197a62 5286
ad6254c5 5287rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5288{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5289$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5290
5291# So? What about this header?
8a2fc586
AK
5292case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5293 yes:no: )
ec6a6fbe
AK
5294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5295$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5297$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5298 ac_header_preproc=yes
ad6254c5 5299 ;;
8a2fc586 5300 no:yes:* )
ec6a6fbe
AK
5301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5302$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5304$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5306$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5308$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5310$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5312$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5313
ad6254c5
AK
5314 ;;
5315esac
ec6a6fbe
AK
5316{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5317$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5318if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5319 $as_echo_n "(cached) " >&6
ad6254c5 5320else
8a2fc586 5321 eval "$as_ac_Header=\$ac_header_preproc"
80992638 5322fi
ec6a6fbe
AK
5323ac_res=`eval 'as_val=${'$as_ac_Header'}
5324 $as_echo "$as_val"'`
5325 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5326$as_echo "$ac_res" >&6; }
80992638 5327
ad6254c5 5328fi
ec6a6fbe
AK
5329as_val=`eval 'as_val=${'$as_ac_Header'}
5330 $as_echo "$as_val"'`
5331 if test "x$as_val" = x""yes; then
ad6254c5 5332 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5333#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5334_ACEOF
795ca3e5 5335
795ca3e5 5336else
ec6a6fbe
AK
5337 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5338$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5339 { (exit 1); exit 1; }; }
80992638
AK
5340fi
5341
ad6254c5 5342done
ad6254c5 5343
795ca3e5 5344
d0191583
JM
5345
5346for ac_header in termios.h sys/statvfs.h
ad6254c5 5347do
ec6a6fbe 5348as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5349if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5350 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5351$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5352if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5353 $as_echo_n "(cached) " >&6
ad6254c5 5354fi
ec6a6fbe
AK
5355ac_res=`eval 'as_val=${'$as_ac_Header'}
5356 $as_echo "$as_val"'`
5357 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5358$as_echo "$ac_res" >&6; }
ad6254c5
AK
5359else
5360 # Is the header compilable?
ec6a6fbe
AK
5361{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5362$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5363cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5364/* confdefs.h. */
5365_ACEOF
5366cat confdefs.h >>conftest.$ac_ext
5367cat >>conftest.$ac_ext <<_ACEOF
5368/* end confdefs.h. */
5369$ac_includes_default
5370#include <$ac_header>
5371_ACEOF
5372rm -f conftest.$ac_objext
7a197a62
AK
5373if { (ac_try="$ac_compile"
5374case "(($ac_try" in
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5377esac
ec6a6fbe
AK
5378eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5379$as_echo "$ac_try_echo") >&5
7a197a62 5380 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5381 ac_status=$?
8a2fc586
AK
5382 grep -v '^ *+' conftest.er1 >conftest.err
5383 rm -f conftest.er1
5384 cat conftest.err >&5
ec6a6fbe 5385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5386 (exit $ac_status); } && {
5387 test -z "$ac_c_werror_flag" ||
5388 test ! -s conftest.err
5389 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5390 ac_header_compiler=yes
5391else
ec6a6fbe 5392 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5393sed 's/^/| /' conftest.$ac_ext >&5
5394
7a197a62 5395 ac_header_compiler=no
ad6254c5 5396fi
7a197a62
AK
5397
5398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5399{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5400$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5401
5402# Is the header present?
ec6a6fbe
AK
5403{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5404$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5405cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5406/* confdefs.h. */
5407_ACEOF
5408cat confdefs.h >>conftest.$ac_ext
5409cat >>conftest.$ac_ext <<_ACEOF
5410/* end confdefs.h. */
5411#include <$ac_header>
5412_ACEOF
7a197a62
AK
5413if { (ac_try="$ac_cpp conftest.$ac_ext"
5414case "(($ac_try" in
5415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5416 *) ac_try_echo=$ac_try;;
5417esac
ec6a6fbe
AK
5418eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5419$as_echo "$ac_try_echo") >&5
7a197a62 5420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5421 ac_status=$?
5422 grep -v '^ *+' conftest.er1 >conftest.err
5423 rm -f conftest.er1
5424 cat conftest.err >&5
ec6a6fbe 5425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5426 (exit $ac_status); } >/dev/null && {
5427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5428 test ! -s conftest.err
5429 }; then
ad6254c5
AK
5430 ac_header_preproc=yes
5431else
ec6a6fbe 5432 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5433sed 's/^/| /' conftest.$ac_ext >&5
5434
5435 ac_header_preproc=no
5436fi
7a197a62 5437
ad6254c5 5438rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5439{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5440$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5441
5442# So? What about this header?
8a2fc586
AK
5443case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5444 yes:no: )
ec6a6fbe
AK
5445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5446$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5448$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5449 ac_header_preproc=yes
ad6254c5 5450 ;;
8a2fc586 5451 no:yes:* )
ec6a6fbe
AK
5452 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5453$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5454 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5455$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5457$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5459$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5461$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5463$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5464
ad6254c5
AK
5465 ;;
5466esac
ec6a6fbe
AK
5467{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5468$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5469if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5470 $as_echo_n "(cached) " >&6
ad6254c5 5471else
8a2fc586 5472 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5473fi
ec6a6fbe
AK
5474ac_res=`eval 'as_val=${'$as_ac_Header'}
5475 $as_echo "$as_val"'`
5476 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5477$as_echo "$ac_res" >&6; }
b896caa1 5478
ad6254c5 5479fi
ec6a6fbe
AK
5480as_val=`eval 'as_val=${'$as_ac_Header'}
5481 $as_echo "$as_val"'`
5482 if test "x$as_val" = x""yes; then
ad6254c5 5483 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5484#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5485_ACEOF
5486
80992638
AK
5487fi
5488
ad6254c5 5489done
d0191583 5490
d3c8211f 5491
80992638 5492################################################################################
ec6a6fbe
AK
5493{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5494$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
ad6254c5 5495if test "${ac_cv_c_const+set}" = set; then
ec6a6fbe 5496 $as_echo_n "(cached) " >&6
d3c8211f 5497else
ad6254c5 5498 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5499/* confdefs.h. */
5500_ACEOF
5501cat confdefs.h >>conftest.$ac_ext
5502cat >>conftest.$ac_ext <<_ACEOF
5503/* end confdefs.h. */
5504
5505int
5506main ()
5507{
5508/* FIXME: Include the comments suggested by Paul. */
5509#ifndef __cplusplus
5510 /* Ultrix mips cc rejects this. */
5511 typedef int charset[2];
25fbec5b 5512 const charset cs;
ad6254c5 5513 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
5514 char const *const *pcpcc;
5515 char **ppc;
ad6254c5
AK
5516 /* NEC SVR4.0.2 mips cc rejects this. */
5517 struct point {int x, y;};
5518 static struct point const zero = {0,0};
5519 /* AIX XL C 1.02.0.0 rejects this.
5520 It does not let you subtract one const X* pointer from another in
5521 an arm of an if-expression whose if-part is not a constant
5522 expression */
5523 const char *g = "string";
25fbec5b 5524 pcpcc = &g + (g ? g-g : 0);
ad6254c5 5525 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
5526 ++pcpcc;
5527 ppc = (char**) pcpcc;
5528 pcpcc = (char const *const *) ppc;
ad6254c5
AK
5529 { /* SCO 3.2v4 cc rejects this. */
5530 char *t;
5531 char const *s = 0 ? (char *) 0 : (char const *) 0;
5532
5533 *t++ = 0;
7a197a62 5534 if (s) return 0;
ad6254c5
AK
5535 }
5536 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5537 int x[] = {25, 17};
5538 const int *foo = &x[0];
5539 ++foo;
5540 }
5541 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5542 typedef const int *iptr;
5543 iptr p = 0;
5544 ++p;
5545 }
5546 { /* AIX XL C 1.02.0.0 rejects this saying
5547 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5548 struct s { int j; const int *ap[3]; };
5549 struct s *b; b->j = 5;
5550 }
5551 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5552 const int foo = 10;
7a197a62 5553 if (!foo) return 0;
ad6254c5 5554 }
25fbec5b 5555 return !cs[0] && !zero.x;
ad6254c5
AK
5556#endif
5557
5558 ;
5559 return 0;
5560}
5561_ACEOF
5562rm -f conftest.$ac_objext
7a197a62
AK
5563if { (ac_try="$ac_compile"
5564case "(($ac_try" in
5565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5566 *) ac_try_echo=$ac_try;;
5567esac
ec6a6fbe
AK
5568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5569$as_echo "$ac_try_echo") >&5
7a197a62 5570 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5571 ac_status=$?
8a2fc586
AK
5572 grep -v '^ *+' conftest.er1 >conftest.err
5573 rm -f conftest.er1
5574 cat conftest.err >&5
ec6a6fbe 5575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5576 (exit $ac_status); } && {
5577 test -z "$ac_c_werror_flag" ||
5578 test ! -s conftest.err
5579 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5580 ac_cv_c_const=yes
5581else
ec6a6fbe 5582 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5583sed 's/^/| /' conftest.$ac_ext >&5
5584
7a197a62 5585 ac_cv_c_const=no
ad6254c5 5586fi
7a197a62
AK
5587
5588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5589fi
ec6a6fbe
AK
5590{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5591$as_echo "$ac_cv_c_const" >&6; }
ad6254c5 5592if test $ac_cv_c_const = no; then
80992638 5593
ad6254c5 5594cat >>confdefs.h <<\_ACEOF
ec6a6fbe 5595#define const /**/
ad6254c5 5596_ACEOF
80992638 5597
d3c8211f 5598fi
d3c8211f 5599
ec6a6fbe
AK
5600{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5601$as_echo_n "checking for inline... " >&6; }
ad6254c5 5602if test "${ac_cv_c_inline+set}" = set; then
ec6a6fbe 5603 $as_echo_n "(cached) " >&6
8ef2b021 5604else
ad6254c5
AK
5605 ac_cv_c_inline=no
5606for ac_kw in inline __inline__ __inline; do
5607 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5608/* confdefs.h. */
5609_ACEOF
5610cat confdefs.h >>conftest.$ac_ext
5611cat >>conftest.$ac_ext <<_ACEOF
5612/* end confdefs.h. */
5613#ifndef __cplusplus
5614typedef int foo_t;
5615static $ac_kw foo_t static_foo () {return 0; }
5616$ac_kw foo_t foo () {return 0; }
5617#endif
80992638 5618
ad6254c5
AK
5619_ACEOF
5620rm -f conftest.$ac_objext
7a197a62
AK
5621if { (ac_try="$ac_compile"
5622case "(($ac_try" in
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5625esac
ec6a6fbe
AK
5626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5627$as_echo "$ac_try_echo") >&5
7a197a62 5628 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5629 ac_status=$?
8a2fc586
AK
5630 grep -v '^ *+' conftest.er1 >conftest.err
5631 rm -f conftest.er1
5632 cat conftest.err >&5
ec6a6fbe 5633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5634 (exit $ac_status); } && {
5635 test -z "$ac_c_werror_flag" ||
5636 test ! -s conftest.err
5637 } && test -s conftest.$ac_objext; then
7a197a62 5638 ac_cv_c_inline=$ac_kw
ad6254c5 5639else
ec6a6fbe 5640 $as_echo "$as_me: failed program was:" >&5
ad6254c5 5641sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5642
7a197a62 5643
8ce0cbda 5644fi
7a197a62
AK
5645
5646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647 test "$ac_cv_c_inline" != no && break
ad6254c5 5648done
8ce0cbda 5649
8ce0cbda 5650fi
ec6a6fbe
AK
5651{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5652$as_echo "$ac_cv_c_inline" >&6; }
8a2fc586
AK
5653
5654
ad6254c5
AK
5655case $ac_cv_c_inline in
5656 inline | yes) ;;
8a2fc586
AK
5657 *)
5658 case $ac_cv_c_inline in
5659 no) ac_val=;;
5660 *) ac_val=$ac_cv_c_inline;;
5661 esac
5662 cat >>confdefs.h <<_ACEOF
5663#ifndef __cplusplus
5664#define inline $ac_val
5665#endif
c1c065a3 5666_ACEOF
d0191583
JM
5667 ;;
5668esac
5669
ec6a6fbe
AK
5670{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5671$as_echo_n "checking for struct stat.st_rdev... " >&6; }
d0191583 5672if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 5673 $as_echo_n "(cached) " >&6
d0191583
JM
5674else
5675 cat >conftest.$ac_ext <<_ACEOF
5676/* confdefs.h. */
5677_ACEOF
5678cat confdefs.h >>conftest.$ac_ext
5679cat >>conftest.$ac_ext <<_ACEOF
5680/* end confdefs.h. */
5681$ac_includes_default
5682int
5683main ()
5684{
5685static struct stat ac_aggr;
5686if (ac_aggr.st_rdev)
5687return 0;
5688 ;
5689 return 0;
5690}
5691_ACEOF
5692rm -f conftest.$ac_objext
5693if { (ac_try="$ac_compile"
5694case "(($ac_try" in
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5697esac
ec6a6fbe
AK
5698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5699$as_echo "$ac_try_echo") >&5
5700 (eval "$ac_compile") 2>conftest.er1
5701 ac_status=$?
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
5705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } && {
5707 test -z "$ac_c_werror_flag" ||
5708 test ! -s conftest.err
5709 } && test -s conftest.$ac_objext; then
5710 ac_cv_member_struct_stat_st_rdev=yes
5711else
5712 $as_echo "$as_me: failed program was:" >&5
5713sed 's/^/| /' conftest.$ac_ext >&5
5714
5715 cat >conftest.$ac_ext <<_ACEOF
5716/* confdefs.h. */
5717_ACEOF
5718cat confdefs.h >>conftest.$ac_ext
5719cat >>conftest.$ac_ext <<_ACEOF
5720/* end confdefs.h. */
5721$ac_includes_default
5722int
5723main ()
5724{
5725static struct stat ac_aggr;
5726if (sizeof ac_aggr.st_rdev)
5727return 0;
5728 ;
5729 return 0;
5730}
5731_ACEOF
5732rm -f conftest.$ac_objext
5733if { (ac_try="$ac_compile"
5734case "(($ac_try" in
5735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736 *) ac_try_echo=$ac_try;;
5737esac
5738eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5739$as_echo "$ac_try_echo") >&5
5740 (eval "$ac_compile") 2>conftest.er1
5741 ac_status=$?
5742 grep -v '^ *+' conftest.er1 >conftest.err
5743 rm -f conftest.er1
5744 cat conftest.err >&5
5745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); } && {
5747 test -z "$ac_c_werror_flag" ||
5748 test ! -s conftest.err
5749 } && test -s conftest.$ac_objext; then
5750 ac_cv_member_struct_stat_st_rdev=yes
5751else
5752 $as_echo "$as_me: failed program was:" >&5
5753sed 's/^/| /' conftest.$ac_ext >&5
5754
5755 ac_cv_member_struct_stat_st_rdev=no
5756fi
5757
5758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5759fi
5760
5761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762fi
5763{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5764$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5765if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5766
5767cat >>confdefs.h <<_ACEOF
5768#define HAVE_STRUCT_STAT_ST_RDEV 1
5769_ACEOF
5770
5771
5772fi
5773
5774{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
5775$as_echo_n "checking for off_t... " >&6; }
5776if test "${ac_cv_type_off_t+set}" = set; then
5777 $as_echo_n "(cached) " >&6
5778else
5779 ac_cv_type_off_t=no
5780cat >conftest.$ac_ext <<_ACEOF
5781/* confdefs.h. */
5782_ACEOF
5783cat confdefs.h >>conftest.$ac_ext
5784cat >>conftest.$ac_ext <<_ACEOF
5785/* end confdefs.h. */
5786$ac_includes_default
5787int
5788main ()
5789{
5790if (sizeof (off_t))
5791 return 0;
5792 ;
5793 return 0;
5794}
5795_ACEOF
5796rm -f conftest.$ac_objext
5797if { (ac_try="$ac_compile"
5798case "(($ac_try" in
5799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800 *) ac_try_echo=$ac_try;;
5801esac
5802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5803$as_echo "$ac_try_echo") >&5
5804 (eval "$ac_compile") 2>conftest.er1
5805 ac_status=$?
5806 grep -v '^ *+' conftest.er1 >conftest.err
5807 rm -f conftest.er1
5808 cat conftest.err >&5
5809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } && {
5811 test -z "$ac_c_werror_flag" ||
5812 test ! -s conftest.err
5813 } && test -s conftest.$ac_objext; then
5814 cat >conftest.$ac_ext <<_ACEOF
5815/* confdefs.h. */
5816_ACEOF
5817cat confdefs.h >>conftest.$ac_ext
5818cat >>conftest.$ac_ext <<_ACEOF
5819/* end confdefs.h. */
5820$ac_includes_default
5821int
5822main ()
5823{
5824if (sizeof ((off_t)))
5825 return 0;
5826 ;
5827 return 0;
5828}
5829_ACEOF
5830rm -f conftest.$ac_objext
5831if { (ac_try="$ac_compile"
5832case "(($ac_try" in
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5835esac
5836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5837$as_echo "$ac_try_echo") >&5
5838 (eval "$ac_compile") 2>conftest.er1
5839 ac_status=$?
5840 grep -v '^ *+' conftest.er1 >conftest.err
5841 rm -f conftest.er1
5842 cat conftest.err >&5
5843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } && {
5845 test -z "$ac_c_werror_flag" ||
5846 test ! -s conftest.err
5847 } && test -s conftest.$ac_objext; then
5848 :
5849else
5850 $as_echo "$as_me: failed program was:" >&5
5851sed 's/^/| /' conftest.$ac_ext >&5
5852
5853 ac_cv_type_off_t=yes
5854fi
5855
5856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5857else
5858 $as_echo "$as_me: failed program was:" >&5
5859sed 's/^/| /' conftest.$ac_ext >&5
5860
5861
5862fi
5863
5864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5865fi
5866{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5867$as_echo "$ac_cv_type_off_t" >&6; }
5868if test "x$ac_cv_type_off_t" = x""yes; then
5869 :
5870else
5871
5872cat >>confdefs.h <<_ACEOF
5873#define off_t long int
5874_ACEOF
5875
5876fi
5877
5878{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5879$as_echo_n "checking for pid_t... " >&6; }
5880if test "${ac_cv_type_pid_t+set}" = set; then
5881 $as_echo_n "(cached) " >&6
5882else
5883 ac_cv_type_pid_t=no
5884cat >conftest.$ac_ext <<_ACEOF
5885/* confdefs.h. */
5886_ACEOF
5887cat confdefs.h >>conftest.$ac_ext
5888cat >>conftest.$ac_ext <<_ACEOF
5889/* end confdefs.h. */
5890$ac_includes_default
5891int
5892main ()
5893{
5894if (sizeof (pid_t))
5895 return 0;
5896 ;
5897 return 0;
5898}
5899_ACEOF
5900rm -f conftest.$ac_objext
5901if { (ac_try="$ac_compile"
5902case "(($ac_try" in
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5905esac
5906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5907$as_echo "$ac_try_echo") >&5
d0191583
JM
5908 (eval "$ac_compile") 2>conftest.er1
5909 ac_status=$?
5910 grep -v '^ *+' conftest.er1 >conftest.err
5911 rm -f conftest.er1
5912 cat conftest.err >&5
ec6a6fbe 5913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5914 (exit $ac_status); } && {
5915 test -z "$ac_c_werror_flag" ||
5916 test ! -s conftest.err
5917 } && test -s conftest.$ac_objext; then
ec6a6fbe 5918 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
5919/* confdefs.h. */
5920_ACEOF
5921cat confdefs.h >>conftest.$ac_ext
5922cat >>conftest.$ac_ext <<_ACEOF
5923/* end confdefs.h. */
5924$ac_includes_default
5925int
5926main ()
5927{
ec6a6fbe
AK
5928if (sizeof ((pid_t)))
5929 return 0;
d0191583
JM
5930 ;
5931 return 0;
5932}
5933_ACEOF
5934rm -f conftest.$ac_objext
5935if { (ac_try="$ac_compile"
5936case "(($ac_try" in
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5939esac
ec6a6fbe
AK
5940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5941$as_echo "$ac_try_echo") >&5
d0191583
JM
5942 (eval "$ac_compile") 2>conftest.er1
5943 ac_status=$?
5944 grep -v '^ *+' conftest.er1 >conftest.err
5945 rm -f conftest.er1
5946 cat conftest.err >&5
ec6a6fbe 5947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5948 (exit $ac_status); } && {
5949 test -z "$ac_c_werror_flag" ||
5950 test ! -s conftest.err
5951 } && test -s conftest.$ac_objext; then
ec6a6fbe 5952 :
d0191583 5953else
ec6a6fbe 5954 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
5955sed 's/^/| /' conftest.$ac_ext >&5
5956
ec6a6fbe 5957 ac_cv_type_pid_t=yes
d0191583
JM
5958fi
5959
5960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5961else
5962 $as_echo "$as_me: failed program was:" >&5
5963sed 's/^/| /' conftest.$ac_ext >&5
5964
5965
d0191583
JM
5966fi
5967
5968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5969fi
ec6a6fbe
AK
5970{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5971$as_echo "$ac_cv_type_pid_t" >&6; }
5972if test "x$ac_cv_type_pid_t" = x""yes; then
5973 :
5974else
d0191583
JM
5975
5976cat >>confdefs.h <<_ACEOF
ec6a6fbe 5977#define pid_t int
d0191583
JM
5978_ACEOF
5979
d0191583 5980fi
8ce0cbda 5981
ec6a6fbe
AK
5982{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5983$as_echo_n "checking return type of signal handlers... " >&6; }
5984if test "${ac_cv_type_signal+set}" = set; then
5985 $as_echo_n "(cached) " >&6
ad6254c5 5986else
b145d876
ZK
5987 cat >conftest.$ac_ext <<_ACEOF
5988/* confdefs.h. */
5989_ACEOF
5990cat confdefs.h >>conftest.$ac_ext
5991cat >>conftest.$ac_ext <<_ACEOF
5992/* end confdefs.h. */
ec6a6fbe
AK
5993#include <sys/types.h>
5994#include <signal.h>
5995
b145d876
ZK
5996int
5997main ()
5998{
ec6a6fbe 5999return *(signal (0, 0)) (0) == 1;
ad6254c5
AK
6000 ;
6001 return 0;
6002}
6003_ACEOF
6004rm -f conftest.$ac_objext
7a197a62
AK
6005if { (ac_try="$ac_compile"
6006case "(($ac_try" in
6007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008 *) ac_try_echo=$ac_try;;
6009esac
ec6a6fbe
AK
6010eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6011$as_echo "$ac_try_echo") >&5
7a197a62 6012 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6013 ac_status=$?
8a2fc586
AK
6014 grep -v '^ *+' conftest.er1 >conftest.err
6015 rm -f conftest.er1
6016 cat conftest.err >&5
ec6a6fbe 6017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6018 (exit $ac_status); } && {
6019 test -z "$ac_c_werror_flag" ||
6020 test ! -s conftest.err
6021 } && test -s conftest.$ac_objext; then
ec6a6fbe 6022 ac_cv_type_signal=int
b145d876 6023else
ec6a6fbe 6024 $as_echo "$as_me: failed program was:" >&5
b145d876
ZK
6025sed 's/^/| /' conftest.$ac_ext >&5
6026
ec6a6fbe 6027 ac_cv_type_signal=void
ad6254c5 6028fi
b145d876
ZK
6029
6030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031fi
ec6a6fbe
AK
6032{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6033$as_echo "$ac_cv_type_signal" >&6; }
80992638 6034
ad6254c5 6035cat >>confdefs.h <<_ACEOF
ec6a6fbe 6036#define RETSIGTYPE $ac_cv_type_signal
ad6254c5 6037_ACEOF
199e490e 6038
b896caa1 6039
ec6a6fbe
AK
6040{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
6041$as_echo_n "checking for size_t... " >&6; }
6042if test "${ac_cv_type_size_t+set}" = set; then
6043 $as_echo_n "(cached) " >&6
ad6254c5 6044else
ec6a6fbe
AK
6045 ac_cv_type_size_t=no
6046cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6047/* confdefs.h. */
6048_ACEOF
6049cat confdefs.h >>conftest.$ac_ext
6050cat >>conftest.$ac_ext <<_ACEOF
6051/* end confdefs.h. */
6052$ac_includes_default
6053int
6054main ()
6055{
ec6a6fbe
AK
6056if (sizeof (size_t))
6057 return 0;
ad6254c5
AK
6058 ;
6059 return 0;
6060}
6061_ACEOF
6062rm -f conftest.$ac_objext
7a197a62
AK
6063if { (ac_try="$ac_compile"
6064case "(($ac_try" in
6065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6066 *) ac_try_echo=$ac_try;;
6067esac
ec6a6fbe
AK
6068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6069$as_echo "$ac_try_echo") >&5
7a197a62 6070 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6071 ac_status=$?
8a2fc586
AK
6072 grep -v '^ *+' conftest.er1 >conftest.err
6073 rm -f conftest.er1
6074 cat conftest.err >&5
ec6a6fbe 6075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6076 (exit $ac_status); } && {
6077 test -z "$ac_c_werror_flag" ||
6078 test ! -s conftest.err
6079 } && test -s conftest.$ac_objext; then
d0191583
JM
6080 cat >conftest.$ac_ext <<_ACEOF
6081/* confdefs.h. */
6082_ACEOF
6083cat confdefs.h >>conftest.$ac_ext
6084cat >>conftest.$ac_ext <<_ACEOF
6085/* end confdefs.h. */
ec6a6fbe 6086$ac_includes_default
d0191583
JM
6087int
6088main ()
6089{
ec6a6fbe
AK
6090if (sizeof ((size_t)))
6091 return 0;
d0191583
JM
6092 ;
6093 return 0;
6094}
6095_ACEOF
6096rm -f conftest.$ac_objext
6097if { (ac_try="$ac_compile"
6098case "(($ac_try" in
6099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100 *) ac_try_echo=$ac_try;;
6101esac
ec6a6fbe
AK
6102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6103$as_echo "$ac_try_echo") >&5
d0191583
JM
6104 (eval "$ac_compile") 2>conftest.er1
6105 ac_status=$?
6106 grep -v '^ *+' conftest.er1 >conftest.err
6107 rm -f conftest.er1
6108 cat conftest.err >&5
ec6a6fbe 6109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
6110 (exit $ac_status); } && {
6111 test -z "$ac_c_werror_flag" ||
6112 test ! -s conftest.err
6113 } && test -s conftest.$ac_objext; then
ec6a6fbe 6114 :
d0191583 6115else
ec6a6fbe 6116 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
6117sed 's/^/| /' conftest.$ac_ext >&5
6118
ec6a6fbe
AK
6119 ac_cv_type_size_t=yes
6120fi
6121
6122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6123else
6124 $as_echo "$as_me: failed program was:" >&5
6125sed 's/^/| /' conftest.$ac_ext >&5
6126
6127
d0191583
JM
6128fi
6129
6130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6131fi
ec6a6fbe
AK
6132{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6133$as_echo "$ac_cv_type_size_t" >&6; }
6134if test "x$ac_cv_type_size_t" = x""yes; then
6135 :
6136else
d0191583
JM
6137
6138cat >>confdefs.h <<_ACEOF
ec6a6fbe 6139#define size_t unsigned int
d0191583
JM
6140_ACEOF
6141
ec6a6fbe 6142fi
d0191583 6143
ec6a6fbe
AK
6144{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6145$as_echo_n "checking for mode_t... " >&6; }
6146if test "${ac_cv_type_mode_t+set}" = set; then
6147 $as_echo_n "(cached) " >&6
8106cdd5 6148else
ec6a6fbe
AK
6149 ac_cv_type_mode_t=no
6150cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6151/* confdefs.h. */
6152_ACEOF
6153cat confdefs.h >>conftest.$ac_ext
6154cat >>conftest.$ac_ext <<_ACEOF
6155/* end confdefs.h. */
6156$ac_includes_default
6157int
6158main ()
6159{
ec6a6fbe
AK
6160if (sizeof (mode_t))
6161 return 0;
ad6254c5
AK
6162 ;
6163 return 0;
6164}
6165_ACEOF
6166rm -f conftest.$ac_objext
7a197a62
AK
6167if { (ac_try="$ac_compile"
6168case "(($ac_try" in
6169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170 *) ac_try_echo=$ac_try;;
6171esac
ec6a6fbe
AK
6172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6173$as_echo "$ac_try_echo") >&5
7a197a62 6174 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6175 ac_status=$?
8a2fc586
AK
6176 grep -v '^ *+' conftest.er1 >conftest.err
6177 rm -f conftest.er1
6178 cat conftest.err >&5
ec6a6fbe 6179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6180 (exit $ac_status); } && {
6181 test -z "$ac_c_werror_flag" ||
6182 test ! -s conftest.err
6183 } && test -s conftest.$ac_objext; then
b145d876
ZK
6184 cat >conftest.$ac_ext <<_ACEOF
6185/* confdefs.h. */
6186_ACEOF
6187cat confdefs.h >>conftest.$ac_ext
6188cat >>conftest.$ac_ext <<_ACEOF
6189/* end confdefs.h. */
6190$ac_includes_default
6191int
6192main ()
6193{
ec6a6fbe
AK
6194if (sizeof ((mode_t)))
6195 return 0;
ad6254c5
AK
6196 ;
6197 return 0;
6198}
6199_ACEOF
6200rm -f conftest.$ac_objext
7a197a62
AK
6201if { (ac_try="$ac_compile"
6202case "(($ac_try" in
6203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6204 *) ac_try_echo=$ac_try;;
6205esac
ec6a6fbe
AK
6206eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6207$as_echo "$ac_try_echo") >&5
7a197a62 6208 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6209 ac_status=$?
8a2fc586
AK
6210 grep -v '^ *+' conftest.er1 >conftest.err
6211 rm -f conftest.er1
6212 cat conftest.err >&5
ec6a6fbe 6213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6214 (exit $ac_status); } && {
6215 test -z "$ac_c_werror_flag" ||
6216 test ! -s conftest.err
6217 } && test -s conftest.$ac_objext; then
ec6a6fbe
AK
6218 :
6219else
6220 $as_echo "$as_me: failed program was:" >&5
6221sed 's/^/| /' conftest.$ac_ext >&5
6222
6223 ac_cv_type_mode_t=yes
6224fi
6225
6226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51 6227else
ec6a6fbe 6228 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
6229sed 's/^/| /' conftest.$ac_ext >&5
6230
ec6a6fbe 6231
80992638 6232fi
7a197a62
AK
6233
6234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6235fi
ec6a6fbe
AK
6236{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6237$as_echo "$ac_cv_type_mode_t" >&6; }
6238if test "x$ac_cv_type_mode_t" = x""yes; then
ad6254c5
AK
6239 :
6240else
80992638 6241
ad6254c5
AK
6242cat >>confdefs.h <<_ACEOF
6243#define mode_t int
6244_ACEOF
6245
6246fi
6247
ec6a6fbe
AK
6248{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6249$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 6250if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 6251 $as_echo_n "(cached) " >&6
ad6254c5
AK
6252else
6253 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6254/* confdefs.h. */
6255_ACEOF
6256cat confdefs.h >>conftest.$ac_ext
6257cat >>conftest.$ac_ext <<_ACEOF
6258/* end confdefs.h. */
6259$ac_includes_default
6260int
6261main ()
6262{
6263static struct stat ac_aggr;
6264if (ac_aggr.st_rdev)
6265return 0;
6266 ;
6267 return 0;
6268}
6269_ACEOF
6270rm -f conftest.$ac_objext
7a197a62
AK
6271if { (ac_try="$ac_compile"
6272case "(($ac_try" in
6273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274 *) ac_try_echo=$ac_try;;
6275esac
ec6a6fbe
AK
6276eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6277$as_echo "$ac_try_echo") >&5
7a197a62 6278 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6279 ac_status=$?
8a2fc586
AK
6280 grep -v '^ *+' conftest.er1 >conftest.err
6281 rm -f conftest.er1
6282 cat conftest.err >&5
ec6a6fbe 6283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6284 (exit $ac_status); } && {
6285 test -z "$ac_c_werror_flag" ||
6286 test ! -s conftest.err
6287 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6288 ac_cv_member_struct_stat_st_rdev=yes
6289else
ec6a6fbe 6290 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6291sed 's/^/| /' conftest.$ac_ext >&5
6292
7a197a62 6293 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6294/* confdefs.h. */
6295_ACEOF
6296cat confdefs.h >>conftest.$ac_ext
6297cat >>conftest.$ac_ext <<_ACEOF
6298/* end confdefs.h. */
6299$ac_includes_default
6300int
6301main ()
6302{
6303static struct stat ac_aggr;
6304if (sizeof ac_aggr.st_rdev)
6305return 0;
6306 ;
6307 return 0;
6308}
6309_ACEOF
6310rm -f conftest.$ac_objext
7a197a62
AK
6311if { (ac_try="$ac_compile"
6312case "(($ac_try" in
6313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314 *) ac_try_echo=$ac_try;;
6315esac
ec6a6fbe
AK
6316eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6317$as_echo "$ac_try_echo") >&5
7a197a62 6318 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6319 ac_status=$?
8a2fc586
AK
6320 grep -v '^ *+' conftest.er1 >conftest.err
6321 rm -f conftest.er1
6322 cat conftest.err >&5
ec6a6fbe 6323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6324 (exit $ac_status); } && {
6325 test -z "$ac_c_werror_flag" ||
6326 test ! -s conftest.err
6327 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6328 ac_cv_member_struct_stat_st_rdev=yes
6329else
ec6a6fbe 6330 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6331sed 's/^/| /' conftest.$ac_ext >&5
6332
7a197a62 6333 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 6334fi
7a197a62
AK
6335
6336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6337fi
7a197a62
AK
6338
6339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6340fi
ec6a6fbe
AK
6341{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6342$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6343if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
ad6254c5
AK
6344
6345cat >>confdefs.h <<_ACEOF
6346#define HAVE_STRUCT_STAT_ST_RDEV 1
6347_ACEOF
6348
6349
ad6254c5
AK
6350fi
6351
ec6a6fbe
AK
6352{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6353$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 6354if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 6355 $as_echo_n "(cached) " >&6
ad6254c5
AK
6356else
6357 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6358/* confdefs.h. */
6359_ACEOF
6360cat confdefs.h >>conftest.$ac_ext
6361cat >>conftest.$ac_ext <<_ACEOF
6362/* end confdefs.h. */
6363#include <sys/types.h>
6364#include <time.h>
6365
6366int
6367main ()
6368{
25fbec5b
AK
6369struct tm tm;
6370 int *p = &tm.tm_sec;
ec6a6fbe 6371 return !p;
ad6254c5
AK
6372 ;
6373 return 0;
6374}
6375_ACEOF
6376rm -f conftest.$ac_objext
7a197a62
AK
6377if { (ac_try="$ac_compile"
6378case "(($ac_try" in
6379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6380 *) ac_try_echo=$ac_try;;
6381esac
ec6a6fbe
AK
6382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6383$as_echo "$ac_try_echo") >&5
7a197a62 6384 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6385 ac_status=$?
8a2fc586
AK
6386 grep -v '^ *+' conftest.er1 >conftest.err
6387 rm -f conftest.er1
6388 cat conftest.err >&5
ec6a6fbe 6389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6390 (exit $ac_status); } && {
6391 test -z "$ac_c_werror_flag" ||
6392 test ! -s conftest.err
6393 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6394 ac_cv_struct_tm=time.h
6395else
ec6a6fbe 6396 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6397sed 's/^/| /' conftest.$ac_ext >&5
6398
7a197a62 6399 ac_cv_struct_tm=sys/time.h
ad6254c5 6400fi
7a197a62
AK
6401
6402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6403fi
ec6a6fbe
AK
6404{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6405$as_echo "$ac_cv_struct_tm" >&6; }
ad6254c5
AK
6406if test $ac_cv_struct_tm = sys/time.h; then
6407
6408cat >>confdefs.h <<\_ACEOF
6409#define TM_IN_SYS_TIME 1
6410_ACEOF
6411
6412fi
809fae91 6413
795ca3e5 6414
80992638 6415################################################################################
ad6254c5
AK
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
d0191583
JM
6430
6431
6432
6433for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6434 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6435 uname
ad6254c5 6436do
ec6a6fbe
AK
6437as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6438{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6439$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6440if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6441 $as_echo_n "(cached) " >&6
795ca3e5 6442else
ad6254c5 6443 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6444/* confdefs.h. */
6445_ACEOF
6446cat confdefs.h >>conftest.$ac_ext
6447cat >>conftest.$ac_ext <<_ACEOF
6448/* end confdefs.h. */
8a2fc586
AK
6449/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6451#define $ac_func innocuous_$ac_func
6452
ad6254c5
AK
6453/* System header to define __stub macros and hopefully few prototypes,
6454 which can conflict with char $ac_func (); below.
6455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6456 <limits.h> exists even on freestanding compilers. */
8a2fc586 6457
ad6254c5
AK
6458#ifdef __STDC__
6459# include <limits.h>
6460#else
6461# include <assert.h>
6462#endif
8a2fc586
AK
6463
6464#undef $ac_func
6465
7a197a62
AK
6466/* Override any GCC internal prototype to avoid an error.
6467 Use char because int might match the return type of a GCC
6468 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6469#ifdef __cplusplus
6470extern "C"
ad6254c5 6471#endif
ad6254c5
AK
6472char $ac_func ();
6473/* The GNU C library defines this for functions which it implements
6474 to always fail with ENOSYS. Some functions are actually named
6475 something starting with __ and the normal name is an alias. */
7a197a62 6476#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6477choke me
ad6254c5
AK
6478#endif
6479
6480int
6481main ()
6482{
7a197a62 6483return $ac_func ();
ad6254c5
AK
6484 ;
6485 return 0;
6486}
6487_ACEOF
6488rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6489if { (ac_try="$ac_link"
6490case "(($ac_try" in
6491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492 *) ac_try_echo=$ac_try;;
6493esac
ec6a6fbe
AK
6494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6495$as_echo "$ac_try_echo") >&5
7a197a62 6496 (eval "$ac_link") 2>conftest.er1
ad6254c5 6497 ac_status=$?
8a2fc586
AK
6498 grep -v '^ *+' conftest.er1 >conftest.err
6499 rm -f conftest.er1
6500 cat conftest.err >&5
ec6a6fbe 6501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6502 (exit $ac_status); } && {
6503 test -z "$ac_c_werror_flag" ||
6504 test ! -s conftest.err
ec6a6fbe
AK
6505 } && test -s conftest$ac_exeext && {
6506 test "$cross_compiling" = yes ||
6507 $as_test_x conftest$ac_exeext
6508 }; then
fc54be10
AK
6509 eval "$as_ac_var=yes"
6510else
ec6a6fbe 6511 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
6512sed 's/^/| /' conftest.$ac_ext >&5
6513
6514 eval "$as_ac_var=no"
6515fi
6516
ec6a6fbe 6517rm -rf conftest.dSYM
25fbec5b 6518rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
6519 conftest$ac_exeext conftest.$ac_ext
6520fi
ec6a6fbe
AK
6521ac_res=`eval 'as_val=${'$as_ac_var'}
6522 $as_echo "$as_val"'`
6523 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6524$as_echo "$ac_res" >&6; }
6525as_val=`eval 'as_val=${'$as_ac_var'}
6526 $as_echo "$as_val"'`
6527 if test "x$as_val" = x""yes; then
ad6254c5 6528 cat >>confdefs.h <<_ACEOF
ec6a6fbe 6529#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6530_ACEOF
6531
6532else
ec6a6fbe
AK
6533 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6534$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
6535 { (exit 1); exit 1; }; }
6536fi
6537done
795ca3e5 6538
a0f9708e
AK
6539
6540for ac_func in siginterrupt
6541do
6542as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6543{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6544$as_echo_n "checking for $ac_func... " >&6; }
6545if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6546 $as_echo_n "(cached) " >&6
6547else
6548 cat >conftest.$ac_ext <<_ACEOF
6549/* confdefs.h. */
6550_ACEOF
6551cat confdefs.h >>conftest.$ac_ext
6552cat >>conftest.$ac_ext <<_ACEOF
6553/* end confdefs.h. */
6554/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6556#define $ac_func innocuous_$ac_func
6557
6558/* System header to define __stub macros and hopefully few prototypes,
6559 which can conflict with char $ac_func (); below.
6560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6561 <limits.h> exists even on freestanding compilers. */
6562
6563#ifdef __STDC__
6564# include <limits.h>
6565#else
6566# include <assert.h>
6567#endif
6568
6569#undef $ac_func
6570
6571/* Override any GCC internal prototype to avoid an error.
6572 Use char because int might match the return type of a GCC
6573 builtin and then its argument prototype would still apply. */
6574#ifdef __cplusplus
6575extern "C"
6576#endif
6577char $ac_func ();
6578/* The GNU C library defines this for functions which it implements
6579 to always fail with ENOSYS. Some functions are actually named
6580 something starting with __ and the normal name is an alias. */
6581#if defined __stub_$ac_func || defined __stub___$ac_func
6582choke me
6583#endif
6584
6585int
6586main ()
6587{
6588return $ac_func ();
6589 ;
6590 return 0;
6591}
6592_ACEOF
6593rm -f conftest.$ac_objext conftest$ac_exeext
6594if { (ac_try="$ac_link"
6595case "(($ac_try" in
6596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6597 *) ac_try_echo=$ac_try;;
6598esac
6599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6600$as_echo "$ac_try_echo") >&5
6601 (eval "$ac_link") 2>conftest.er1
6602 ac_status=$?
6603 grep -v '^ *+' conftest.er1 >conftest.err
6604 rm -f conftest.er1
6605 cat conftest.err >&5
6606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } && {
6608 test -z "$ac_c_werror_flag" ||
6609 test ! -s conftest.err
6610 } && test -s conftest$ac_exeext && {
6611 test "$cross_compiling" = yes ||
6612 $as_test_x conftest$ac_exeext
6613 }; then
6614 eval "$as_ac_var=yes"
6615else
6616 $as_echo "$as_me: failed program was:" >&5
6617sed 's/^/| /' conftest.$ac_ext >&5
6618
6619 eval "$as_ac_var=no"
6620fi
6621
6622rm -rf conftest.dSYM
6623rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6624 conftest$ac_exeext conftest.$ac_ext
6625fi
6626ac_res=`eval 'as_val=${'$as_ac_var'}
6627 $as_echo "$as_val"'`
6628 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6629$as_echo "$ac_res" >&6; }
6630as_val=`eval 'as_val=${'$as_ac_var'}
6631 $as_echo "$as_val"'`
6632 if test "x$as_val" = x""yes; then
6633 cat >>confdefs.h <<_ACEOF
6634#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6635_ACEOF
6636
6637fi
6638done
6639
ad6254c5
AK
6640# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6641# for constant arguments. Useless!
ec6a6fbe
AK
6642{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6643$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 6644if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 6645 $as_echo_n "(cached) " >&6
ad6254c5
AK
6646else
6647 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6648/* confdefs.h. */
6649_ACEOF
6650cat confdefs.h >>conftest.$ac_ext
6651cat >>conftest.$ac_ext <<_ACEOF
6652/* end confdefs.h. */
6653#include <alloca.h>
6654int
6655main ()
6656{
6657char *p = (char *) alloca (2 * sizeof (int));
7a197a62 6658 if (p) return 0;
ad6254c5
AK
6659 ;
6660 return 0;
6661}
6662_ACEOF
6663rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6664if { (ac_try="$ac_link"
6665case "(($ac_try" in
6666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6667 *) ac_try_echo=$ac_try;;
6668esac
ec6a6fbe
AK
6669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6670$as_echo "$ac_try_echo") >&5
7a197a62 6671 (eval "$ac_link") 2>conftest.er1
ad6254c5 6672 ac_status=$?
8a2fc586
AK
6673 grep -v '^ *+' conftest.er1 >conftest.err
6674 rm -f conftest.er1
6675 cat conftest.err >&5
ec6a6fbe 6676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6677 (exit $ac_status); } && {
6678 test -z "$ac_c_werror_flag" ||
6679 test ! -s conftest.err
ec6a6fbe
AK
6680 } && test -s conftest$ac_exeext && {
6681 test "$cross_compiling" = yes ||
6682 $as_test_x conftest$ac_exeext
6683 }; then
ad6254c5
AK
6684 ac_cv_working_alloca_h=yes
6685else
ec6a6fbe 6686 $as_echo "$as_me: failed program was:" >&5
ad6254c5 6687sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 6688
7a197a62 6689 ac_cv_working_alloca_h=no
ad6254c5 6690fi
7a197a62 6691
ec6a6fbe 6692rm -rf conftest.dSYM
25fbec5b 6693rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6694 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6695fi
ec6a6fbe
AK
6696{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6697$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
6698if test $ac_cv_working_alloca_h = yes; then
6699
6700cat >>confdefs.h <<\_ACEOF
6701#define HAVE_ALLOCA_H 1
6702_ACEOF
6703
6704fi
6705
ec6a6fbe
AK
6706{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
6707$as_echo_n "checking for alloca... " >&6; }
ad6254c5 6708if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 6709 $as_echo_n "(cached) " >&6
ad6254c5
AK
6710else
6711 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6712/* confdefs.h. */
6713_ACEOF
6714cat confdefs.h >>conftest.$ac_ext
6715cat >>conftest.$ac_ext <<_ACEOF
6716/* end confdefs.h. */
6717#ifdef __GNUC__
6718# define alloca __builtin_alloca
6719#else
6720# ifdef _MSC_VER
6721# include <malloc.h>
6722# define alloca _alloca
6723# else
25fbec5b 6724# ifdef HAVE_ALLOCA_H
ad6254c5
AK
6725# include <alloca.h>
6726# else
6727# ifdef _AIX
6728 #pragma alloca
6729# else
6730# ifndef alloca /* predefined by HP cc +Olibcalls */
6731char *alloca ();
6732# endif
6733# endif
6734# endif
6735# endif
6736#endif
6737
6738int
6739main ()
6740{
6741char *p = (char *) alloca (1);
7a197a62 6742 if (p) return 0;
ad6254c5
AK
6743 ;
6744 return 0;
6745}
6746_ACEOF
6747rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6748if { (ac_try="$ac_link"
6749case "(($ac_try" in
6750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6751 *) ac_try_echo=$ac_try;;
6752esac
ec6a6fbe
AK
6753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6754$as_echo "$ac_try_echo") >&5
7a197a62 6755 (eval "$ac_link") 2>conftest.er1
ad6254c5 6756 ac_status=$?
8a2fc586
AK
6757 grep -v '^ *+' conftest.er1 >conftest.err
6758 rm -f conftest.er1
6759 cat conftest.err >&5
ec6a6fbe 6760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6761 (exit $ac_status); } && {
6762 test -z "$ac_c_werror_flag" ||
6763 test ! -s conftest.err
ec6a6fbe
AK
6764 } && test -s conftest$ac_exeext && {
6765 test "$cross_compiling" = yes ||
6766 $as_test_x conftest$ac_exeext
6767 }; then
ad6254c5
AK
6768 ac_cv_func_alloca_works=yes
6769else
ec6a6fbe 6770 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6771sed 's/^/| /' conftest.$ac_ext >&5
6772
7a197a62 6773 ac_cv_func_alloca_works=no
ad6254c5 6774fi
7a197a62 6775
ec6a6fbe 6776rm -rf conftest.dSYM
25fbec5b 6777rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6778 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6779fi
ec6a6fbe
AK
6780{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6781$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6782
6783if test $ac_cv_func_alloca_works = yes; then
6784
6785cat >>confdefs.h <<\_ACEOF
6786#define HAVE_ALLOCA 1
6787_ACEOF
6788
6789else
6790 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6791# that cause trouble. Some versions do not even contain alloca or
6792# contain a buggy version. If you still want to use their alloca,
6793# use ar to extract alloca.o from them instead of compiling alloca.c.
6794
7a197a62 6795ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6796
6797cat >>confdefs.h <<\_ACEOF
6798#define C_ALLOCA 1
6799_ACEOF
6800
6801
ec6a6fbe
AK
6802{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6803$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 6804if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 6805 $as_echo_n "(cached) " >&6
ad6254c5
AK
6806else
6807 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6808/* confdefs.h. */
6809_ACEOF
6810cat confdefs.h >>conftest.$ac_ext
6811cat >>conftest.$ac_ext <<_ACEOF
6812/* end confdefs.h. */
7a197a62 6813#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6814webecray
6815#else
6816wenotbecray
6817#endif
6818
6819_ACEOF
795ca3e5 6820if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6821 $EGREP "webecray" >/dev/null 2>&1; then
6822 ac_cv_os_cray=yes
6823else
6824 ac_cv_os_cray=no
795ca3e5
AK
6825fi
6826rm -f conftest*
6827
795ca3e5 6828fi
ec6a6fbe
AK
6829{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6830$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
6831if test $ac_cv_os_cray = yes; then
6832 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
6833 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6834{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6835$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6836if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6837 $as_echo_n "(cached) " >&6
ad6254c5
AK
6838else
6839 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6840/* confdefs.h. */
6841_ACEOF
6842cat confdefs.h >>conftest.$ac_ext
6843cat >>conftest.$ac_ext <<_ACEOF
6844/* end confdefs.h. */
8a2fc586
AK
6845/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6847#define $ac_func innocuous_$ac_func
6848
ad6254c5
AK
6849/* System header to define __stub macros and hopefully few prototypes,
6850 which can conflict with char $ac_func (); below.
6851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6852 <limits.h> exists even on freestanding compilers. */
8a2fc586 6853
ad6254c5
AK
6854#ifdef __STDC__
6855# include <limits.h>
6856#else
6857# include <assert.h>
6858#endif
8a2fc586
AK
6859
6860#undef $ac_func
6861
7a197a62
AK
6862/* Override any GCC internal prototype to avoid an error.
6863 Use char because int might match the return type of a GCC
6864 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6865#ifdef __cplusplus
6866extern "C"
ad6254c5 6867#endif
ad6254c5
AK
6868char $ac_func ();
6869/* The GNU C library defines this for functions which it implements
6870 to always fail with ENOSYS. Some functions are actually named
6871 something starting with __ and the normal name is an alias. */
7a197a62 6872#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6873choke me
ad6254c5
AK
6874#endif
6875
6876int
6877main ()
6878{
7a197a62 6879return $ac_func ();
ad6254c5
AK
6880 ;
6881 return 0;
6882}
6883_ACEOF
6884rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6885if { (ac_try="$ac_link"
6886case "(($ac_try" in
6887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6888 *) ac_try_echo=$ac_try;;
6889esac
ec6a6fbe
AK
6890eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6891$as_echo "$ac_try_echo") >&5
7a197a62 6892 (eval "$ac_link") 2>conftest.er1
ad6254c5 6893 ac_status=$?
8a2fc586
AK
6894 grep -v '^ *+' conftest.er1 >conftest.err
6895 rm -f conftest.er1
6896 cat conftest.err >&5
ec6a6fbe 6897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6898 (exit $ac_status); } && {
6899 test -z "$ac_c_werror_flag" ||
6900 test ! -s conftest.err
ec6a6fbe
AK
6901 } && test -s conftest$ac_exeext && {
6902 test "$cross_compiling" = yes ||
6903 $as_test_x conftest$ac_exeext
6904 }; then
ad6254c5
AK
6905 eval "$as_ac_var=yes"
6906else
ec6a6fbe 6907 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6908sed 's/^/| /' conftest.$ac_ext >&5
6909
7a197a62 6910 eval "$as_ac_var=no"
ad6254c5 6911fi
7a197a62 6912
ec6a6fbe 6913rm -rf conftest.dSYM
25fbec5b 6914rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6915 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6916fi
ec6a6fbe
AK
6917ac_res=`eval 'as_val=${'$as_ac_var'}
6918 $as_echo "$as_val"'`
6919 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6920$as_echo "$ac_res" >&6; }
6921as_val=`eval 'as_val=${'$as_ac_var'}
6922 $as_echo "$as_val"'`
6923 if test "x$as_val" = x""yes; then
80992638 6924
ad6254c5
AK
6925cat >>confdefs.h <<_ACEOF
6926#define CRAY_STACKSEG_END $ac_func
6927_ACEOF
6928
6929 break
6930fi
6931
6932 done
6933fi
6934
ec6a6fbe
AK
6935{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6936$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 6937if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 6938 $as_echo_n "(cached) " >&6
ad6254c5
AK
6939else
6940 if test "$cross_compiling" = yes; then
6941 ac_cv_c_stack_direction=0
6942else
6943 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6944/* confdefs.h. */
6945_ACEOF
6946cat confdefs.h >>conftest.$ac_ext
6947cat >>conftest.$ac_ext <<_ACEOF
6948/* end confdefs.h. */
7a197a62 6949$ac_includes_default
ad6254c5
AK
6950int
6951find_stack_direction ()
6952{
6953 static char *addr = 0;
6954 auto char dummy;
6955 if (addr == 0)
6956 {
6957 addr = &dummy;
6958 return find_stack_direction ();
6959 }
6960 else
6961 return (&dummy > addr) ? 1 : -1;
6962}
6963
6964int
6965main ()
6966{
7a197a62 6967 return find_stack_direction () < 0;
ad6254c5
AK
6968}
6969_ACEOF
6970rm -f conftest$ac_exeext
7a197a62
AK
6971if { (ac_try="$ac_link"
6972case "(($ac_try" in
6973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6974 *) ac_try_echo=$ac_try;;
6975esac
ec6a6fbe
AK
6976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6977$as_echo "$ac_try_echo") >&5
7a197a62 6978 (eval "$ac_link") 2>&5
ad6254c5 6979 ac_status=$?
ec6a6fbe 6980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6982 { (case "(($ac_try" in
6983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6984 *) ac_try_echo=$ac_try;;
6985esac
ec6a6fbe
AK
6986eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6987$as_echo "$ac_try_echo") >&5
7a197a62 6988 (eval "$ac_try") 2>&5
ad6254c5 6989 ac_status=$?
ec6a6fbe 6990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6991 (exit $ac_status); }; }; then
6992 ac_cv_c_stack_direction=1
6993else
ec6a6fbe
AK
6994 $as_echo "$as_me: program exited with status $ac_status" >&5
6995$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6996sed 's/^/| /' conftest.$ac_ext >&5
6997
6998( exit $ac_status )
6999ac_cv_c_stack_direction=-1
7000fi
ec6a6fbe 7001rm -rf conftest.dSYM
7a197a62 7002rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7003fi
7a197a62
AK
7004
7005
ad6254c5 7006fi
ec6a6fbe
AK
7007{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7008$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
7009
7010cat >>confdefs.h <<_ACEOF
7011#define STACK_DIRECTION $ac_cv_c_stack_direction
7012_ACEOF
7013
7014
7015fi
7016
ec6a6fbe
AK
7017{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
7018$as_echo_n "checking whether closedir returns void... " >&6; }
ad6254c5 7019if test "${ac_cv_func_closedir_void+set}" = set; then
ec6a6fbe 7020 $as_echo_n "(cached) " >&6
ad6254c5
AK
7021else
7022 if test "$cross_compiling" = yes; then
7023 ac_cv_func_closedir_void=yes
7024else
7025 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7026/* confdefs.h. */
7027_ACEOF
7028cat confdefs.h >>conftest.$ac_ext
7029cat >>conftest.$ac_ext <<_ACEOF
7030/* end confdefs.h. */
7031$ac_includes_default
7032#include <$ac_header_dirent>
7033#ifndef __cplusplus
7034int closedir ();
7035#endif
7036
7037int
7038main ()
7039{
7a197a62 7040return closedir (opendir (".")) != 0;
ad6254c5
AK
7041 ;
7042 return 0;
7043}
7044_ACEOF
7045rm -f conftest$ac_exeext
7a197a62
AK
7046if { (ac_try="$ac_link"
7047case "(($ac_try" in
7048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7049 *) ac_try_echo=$ac_try;;
7050esac
ec6a6fbe
AK
7051eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7052$as_echo "$ac_try_echo") >&5
7a197a62 7053 (eval "$ac_link") 2>&5
ad6254c5 7054 ac_status=$?
ec6a6fbe 7055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7057 { (case "(($ac_try" in
7058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7059 *) ac_try_echo=$ac_try;;
7060esac
ec6a6fbe
AK
7061eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7062$as_echo "$ac_try_echo") >&5
7a197a62 7063 (eval "$ac_try") 2>&5
ad6254c5 7064 ac_status=$?
ec6a6fbe 7065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7066 (exit $ac_status); }; }; then
7067 ac_cv_func_closedir_void=no
7068else
ec6a6fbe
AK
7069 $as_echo "$as_me: program exited with status $ac_status" >&5
7070$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7071sed 's/^/| /' conftest.$ac_ext >&5
7072
7073( exit $ac_status )
7074ac_cv_func_closedir_void=yes
7075fi
ec6a6fbe 7076rm -rf conftest.dSYM
7a197a62 7077rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7078fi
7a197a62
AK
7079
7080
ad6254c5 7081fi
ec6a6fbe
AK
7082{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
7083$as_echo "$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
7084if test $ac_cv_func_closedir_void = yes; then
7085
7086cat >>confdefs.h <<\_ACEOF
7087#define CLOSEDIR_VOID 1
7088_ACEOF
7089
7090fi
7091
7092
7a197a62 7093for ac_header in vfork.h
ad6254c5 7094do
ec6a6fbe 7095as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7096if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7097 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7098$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7100 $as_echo_n "(cached) " >&6
ad6254c5 7101fi
ec6a6fbe
AK
7102ac_res=`eval 'as_val=${'$as_ac_Header'}
7103 $as_echo "$as_val"'`
7104 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7105$as_echo "$ac_res" >&6; }
ad6254c5
AK
7106else
7107 # Is the header compilable?
ec6a6fbe
AK
7108{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7109$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7110cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7111/* confdefs.h. */
7112_ACEOF
7113cat confdefs.h >>conftest.$ac_ext
7114cat >>conftest.$ac_ext <<_ACEOF
7115/* end confdefs.h. */
7116$ac_includes_default
7117#include <$ac_header>
7118_ACEOF
7119rm -f conftest.$ac_objext
7a197a62
AK
7120if { (ac_try="$ac_compile"
7121case "(($ac_try" in
7122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7123 *) ac_try_echo=$ac_try;;
7124esac
ec6a6fbe
AK
7125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7126$as_echo "$ac_try_echo") >&5
7a197a62 7127 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7128 ac_status=$?
8a2fc586
AK
7129 grep -v '^ *+' conftest.er1 >conftest.err
7130 rm -f conftest.er1
7131 cat conftest.err >&5
ec6a6fbe 7132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7133 (exit $ac_status); } && {
7134 test -z "$ac_c_werror_flag" ||
7135 test ! -s conftest.err
7136 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7137 ac_header_compiler=yes
7138else
ec6a6fbe 7139 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7140sed 's/^/| /' conftest.$ac_ext >&5
7141
7a197a62 7142 ac_header_compiler=no
ad6254c5 7143fi
7a197a62
AK
7144
7145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7146{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7147$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7148
7149# Is the header present?
ec6a6fbe
AK
7150{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7151$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7152cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7153/* confdefs.h. */
7154_ACEOF
7155cat confdefs.h >>conftest.$ac_ext
7156cat >>conftest.$ac_ext <<_ACEOF
7157/* end confdefs.h. */
7158#include <$ac_header>
7159_ACEOF
7a197a62
AK
7160if { (ac_try="$ac_cpp conftest.$ac_ext"
7161case "(($ac_try" in
7162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7163 *) ac_try_echo=$ac_try;;
7164esac
ec6a6fbe
AK
7165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7166$as_echo "$ac_try_echo") >&5
7a197a62 7167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7168 ac_status=$?
7169 grep -v '^ *+' conftest.er1 >conftest.err
7170 rm -f conftest.er1
7171 cat conftest.err >&5
ec6a6fbe 7172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7173 (exit $ac_status); } >/dev/null && {
7174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7175 test ! -s conftest.err
7176 }; then
ad6254c5
AK
7177 ac_header_preproc=yes
7178else
ec6a6fbe 7179 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7180sed 's/^/| /' conftest.$ac_ext >&5
7181
7182 ac_header_preproc=no
7183fi
7a197a62 7184
ad6254c5 7185rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7186{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7187$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7188
7189# So? What about this header?
8a2fc586
AK
7190case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7191 yes:no: )
ec6a6fbe
AK
7192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7193$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7195$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7196 ac_header_preproc=yes
ad6254c5 7197 ;;
8a2fc586 7198 no:yes:* )
ec6a6fbe
AK
7199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7200$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7202$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7204$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7206$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7208$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7210$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7211
ad6254c5
AK
7212 ;;
7213esac
ec6a6fbe
AK
7214{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7215$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7216if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7217 $as_echo_n "(cached) " >&6
ad6254c5 7218else
8a2fc586 7219 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7220fi
ec6a6fbe
AK
7221ac_res=`eval 'as_val=${'$as_ac_Header'}
7222 $as_echo "$as_val"'`
7223 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7224$as_echo "$ac_res" >&6; }
ad6254c5 7225
795ca3e5 7226fi
ec6a6fbe
AK
7227as_val=`eval 'as_val=${'$as_ac_Header'}
7228 $as_echo "$as_val"'`
7229 if test "x$as_val" = x""yes; then
ad6254c5 7230 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7231#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7232_ACEOF
7233
7234fi
7235
7236done
795ca3e5 7237
ad6254c5
AK
7238
7239
7240for ac_func in fork vfork
7241do
ec6a6fbe
AK
7242as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7243{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7244$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 7245if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7246 $as_echo_n "(cached) " >&6
795ca3e5 7247else
ad6254c5 7248 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7249/* confdefs.h. */
7250_ACEOF
7251cat confdefs.h >>conftest.$ac_ext
7252cat >>conftest.$ac_ext <<_ACEOF
7253/* end confdefs.h. */
8a2fc586
AK
7254/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7256#define $ac_func innocuous_$ac_func
7257
ad6254c5
AK
7258/* System header to define __stub macros and hopefully few prototypes,
7259 which can conflict with char $ac_func (); below.
7260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7261 <limits.h> exists even on freestanding compilers. */
8a2fc586 7262
ad6254c5
AK
7263#ifdef __STDC__
7264# include <limits.h>
7265#else
7266# include <assert.h>
795ca3e5 7267#endif
8a2fc586
AK
7268
7269#undef $ac_func
7270
7a197a62
AK
7271/* Override any GCC internal prototype to avoid an error.
7272 Use char because int might match the return type of a GCC
7273 builtin and then its argument prototype would still apply. */
795ca3e5 7274#ifdef __cplusplus
ad6254c5 7275extern "C"
ad6254c5 7276#endif
ad6254c5
AK
7277char $ac_func ();
7278/* The GNU C library defines this for functions which it implements
7279 to always fail with ENOSYS. Some functions are actually named
7280 something starting with __ and the normal name is an alias. */
7a197a62 7281#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7282choke me
795ca3e5
AK
7283#endif
7284
ad6254c5
AK
7285int
7286main ()
7287{
7a197a62 7288return $ac_func ();
ad6254c5
AK
7289 ;
7290 return 0;
7291}
7292_ACEOF
7293rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7294if { (ac_try="$ac_link"
7295case "(($ac_try" in
7296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7297 *) ac_try_echo=$ac_try;;
7298esac
ec6a6fbe
AK
7299eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7300$as_echo "$ac_try_echo") >&5
7a197a62 7301 (eval "$ac_link") 2>conftest.er1
ad6254c5 7302 ac_status=$?
8a2fc586
AK
7303 grep -v '^ *+' conftest.er1 >conftest.err
7304 rm -f conftest.er1
7305 cat conftest.err >&5
ec6a6fbe 7306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7307 (exit $ac_status); } && {
7308 test -z "$ac_c_werror_flag" ||
7309 test ! -s conftest.err
ec6a6fbe
AK
7310 } && test -s conftest$ac_exeext && {
7311 test "$cross_compiling" = yes ||
7312 $as_test_x conftest$ac_exeext
7313 }; then
ad6254c5 7314 eval "$as_ac_var=yes"
795ca3e5 7315else
ec6a6fbe 7316 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7317sed 's/^/| /' conftest.$ac_ext >&5
7318
7a197a62 7319 eval "$as_ac_var=no"
795ca3e5 7320fi
7a197a62 7321
ec6a6fbe 7322rm -rf conftest.dSYM
25fbec5b 7323rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7324 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7325fi
ec6a6fbe
AK
7326ac_res=`eval 'as_val=${'$as_ac_var'}
7327 $as_echo "$as_val"'`
7328 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7329$as_echo "$ac_res" >&6; }
7330as_val=`eval 'as_val=${'$as_ac_var'}
7331 $as_echo "$as_val"'`
7332 if test "x$as_val" = x""yes; then
ad6254c5 7333 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7334#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7335_ACEOF
7336
7337fi
7338done
7339
7340if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
7341 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7342$as_echo_n "checking for working fork... " >&6; }
ad6254c5 7343if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 7344 $as_echo_n "(cached) " >&6
ad6254c5
AK
7345else
7346 if test "$cross_compiling" = yes; then
7347 ac_cv_func_fork_works=cross
7348else
7349 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
7350/* confdefs.h. */
7351_ACEOF
7352cat confdefs.h >>conftest.$ac_ext
7353cat >>conftest.$ac_ext <<_ACEOF
7354/* end confdefs.h. */
7355$ac_includes_default
7356int
7357main ()
7358{
7359
7360 /* By Ruediger Kuhlmann. */
7361 return fork () < 0;
7362
7363 ;
7364 return 0;
7365}
ad6254c5
AK
7366_ACEOF
7367rm -f conftest$ac_exeext
7a197a62
AK
7368if { (ac_try="$ac_link"
7369case "(($ac_try" in
7370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7371 *) ac_try_echo=$ac_try;;
7372esac
ec6a6fbe
AK
7373eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7374$as_echo "$ac_try_echo") >&5
7a197a62 7375 (eval "$ac_link") 2>&5
ad6254c5 7376 ac_status=$?
ec6a6fbe 7377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7379 { (case "(($ac_try" in
7380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7381 *) ac_try_echo=$ac_try;;
7382esac
ec6a6fbe
AK
7383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7384$as_echo "$ac_try_echo") >&5
7a197a62 7385 (eval "$ac_try") 2>&5
ad6254c5 7386 ac_status=$?
ec6a6fbe 7387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7388 (exit $ac_status); }; }; then
7389 ac_cv_func_fork_works=yes
7390else
ec6a6fbe
AK
7391 $as_echo "$as_me: program exited with status $ac_status" >&5
7392$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7393sed 's/^/| /' conftest.$ac_ext >&5
7394
7395( exit $ac_status )
7396ac_cv_func_fork_works=no
7397fi
ec6a6fbe 7398rm -rf conftest.dSYM
7a197a62 7399rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7400fi
7a197a62
AK
7401
7402
ad6254c5 7403fi
ec6a6fbe
AK
7404{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7405$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
7406
7407else
7408 ac_cv_func_fork_works=$ac_cv_func_fork
7409fi
7410if test "x$ac_cv_func_fork_works" = xcross; then
7411 case $host in
7412 *-*-amigaos* | *-*-msdosdjgpp*)
7413 # Override, as these systems have only a dummy fork() stub
7414 ac_cv_func_fork_works=no
7415 ;;
7416 *)
7417 ac_cv_func_fork_works=yes
7418 ;;
7419 esac
ec6a6fbe
AK
7420 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7421$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7422fi
7423ac_cv_func_vfork_works=$ac_cv_func_vfork
7424if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
7425 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7426$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 7427if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 7428 $as_echo_n "(cached) " >&6
ad6254c5
AK
7429else
7430 if test "$cross_compiling" = yes; then
7431 ac_cv_func_vfork_works=cross
7432else
7433 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7434/* confdefs.h. */
7435_ACEOF
7436cat confdefs.h >>conftest.$ac_ext
7437cat >>conftest.$ac_ext <<_ACEOF
7438/* end confdefs.h. */
7439/* Thanks to Paul Eggert for this test. */
7a197a62 7440$ac_includes_default
ad6254c5 7441#include <sys/wait.h>
25fbec5b 7442#ifdef HAVE_VFORK_H
ad6254c5
AK
7443# include <vfork.h>
7444#endif
7445/* On some sparc systems, changes by the child to local and incoming
7446 argument registers are propagated back to the parent. The compiler
7447 is told about this with #include <vfork.h>, but some compilers
7448 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7449 static variable whose address is put into a register that is
7450 clobbered by the vfork. */
7451static void
7452#ifdef __cplusplus
7453sparc_address_test (int arg)
7454# else
7455sparc_address_test (arg) int arg;
7456#endif
7457{
7458 static pid_t child;
7459 if (!child) {
7460 child = vfork ();
7461 if (child < 0) {
7462 perror ("vfork");
7463 _exit(2);
7464 }
7465 if (!child) {
7466 arg = getpid();
7467 write(-1, "", 0);
7468 _exit (arg);
7469 }
7470 }
7471}
7472
7473int
7474main ()
7475{
7476 pid_t parent = getpid ();
7477 pid_t child;
7478
7479 sparc_address_test (0);
7480
7481 child = vfork ();
7482
7483 if (child == 0) {
7484 /* Here is another test for sparc vfork register problems. This
7485 test uses lots of local variables, at least as many local
7486 variables as main has allocated so far including compiler
7487 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7488 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7489 reuse the register of parent for one of the local variables,
7490 since it will think that parent can't possibly be used any more
7491 in this routine. Assigning to the local variable will thus
7492 munge parent in the parent process. */
7493 pid_t
7494 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7495 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7496 /* Convince the compiler that p..p7 are live; otherwise, it might
7497 use the same hardware register for all 8 local variables. */
7498 if (p != p1 || p != p2 || p != p3 || p != p4
7499 || p != p5 || p != p6 || p != p7)
7500 _exit(1);
7501
7502 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7503 from child file descriptors. If the child closes a descriptor
7504 before it execs or exits, this munges the parent's descriptor
7505 as well. Test for this by closing stdout in the child. */
7506 _exit(close(fileno(stdout)) != 0);
7507 } else {
7508 int status;
7509 struct stat st;
7510
7511 while (wait(&status) != child)
7512 ;
7a197a62 7513 return (
ad6254c5
AK
7514 /* Was there some problem with vforking? */
7515 child < 0
7516
7517 /* Did the child fail? (This shouldn't happen.) */
7518 || status
7519
7520 /* Did the vfork/compiler bug occur? */
7521 || parent != getpid()
7522
7523 /* Did the file descriptor bug occur? */
7524 || fstat(fileno(stdout), &st) != 0
7525 );
7526 }
7527}
7528_ACEOF
7529rm -f conftest$ac_exeext
7a197a62
AK
7530if { (ac_try="$ac_link"
7531case "(($ac_try" in
7532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7533 *) ac_try_echo=$ac_try;;
7534esac
ec6a6fbe
AK
7535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7536$as_echo "$ac_try_echo") >&5
7a197a62 7537 (eval "$ac_link") 2>&5
ad6254c5 7538 ac_status=$?
ec6a6fbe 7539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7541 { (case "(($ac_try" in
7542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7543 *) ac_try_echo=$ac_try;;
7544esac
ec6a6fbe
AK
7545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7546$as_echo "$ac_try_echo") >&5
7a197a62 7547 (eval "$ac_try") 2>&5
ad6254c5 7548 ac_status=$?
ec6a6fbe 7549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7550 (exit $ac_status); }; }; then
7551 ac_cv_func_vfork_works=yes
7552else
ec6a6fbe
AK
7553 $as_echo "$as_me: program exited with status $ac_status" >&5
7554$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7555sed 's/^/| /' conftest.$ac_ext >&5
7556
7557( exit $ac_status )
7558ac_cv_func_vfork_works=no
7559fi
ec6a6fbe 7560rm -rf conftest.dSYM
7a197a62 7561rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7562fi
7a197a62
AK
7563
7564
ad6254c5 7565fi
ec6a6fbe
AK
7566{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7567$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
7568
7569fi;
7570if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 7571 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
7572 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7573$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7574fi
7575
7576if test "x$ac_cv_func_vfork_works" = xyes; then
7577
7578cat >>confdefs.h <<\_ACEOF
7579#define HAVE_WORKING_VFORK 1
7580_ACEOF
7581
7582else
7583
7584cat >>confdefs.h <<\_ACEOF
7585#define vfork fork
7586_ACEOF
7587
7588fi
7589if test "x$ac_cv_func_fork_works" = xyes; then
7590
7591cat >>confdefs.h <<\_ACEOF
7592#define HAVE_WORKING_FORK 1
7593_ACEOF
7594
7595fi
7596
ec6a6fbe
AK
7597{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7598$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 7599if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 7600 $as_echo_n "(cached) " >&6
ad6254c5
AK
7601else
7602 rm -f conftest.sym conftest.file
7603echo >conftest.file
7604if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7605 if test "$cross_compiling" = yes; then
7606 ac_cv_func_lstat_dereferences_slashed_symlink=no
7607else
7608 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7609/* confdefs.h. */
7610_ACEOF
7611cat confdefs.h >>conftest.$ac_ext
7612cat >>conftest.$ac_ext <<_ACEOF
7613/* end confdefs.h. */
7614$ac_includes_default
7615int
7616main ()
7617{
7618struct stat sbuf;
7619 /* Linux will dereference the symlink and fail.
8a2fc586
AK
7620 That is better in the sense that it means we will not
7621 have to compile and use the lstat wrapper. */
7a197a62 7622 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
7623 ;
7624 return 0;
7625}
7626_ACEOF
7627rm -f conftest$ac_exeext
7a197a62
AK
7628if { (ac_try="$ac_link"
7629case "(($ac_try" in
7630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7631 *) ac_try_echo=$ac_try;;
7632esac
ec6a6fbe
AK
7633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7634$as_echo "$ac_try_echo") >&5
7a197a62 7635 (eval "$ac_link") 2>&5
ad6254c5 7636 ac_status=$?
ec6a6fbe 7637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7639 { (case "(($ac_try" in
7640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7641 *) ac_try_echo=$ac_try;;
7642esac
ec6a6fbe
AK
7643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7644$as_echo "$ac_try_echo") >&5
7a197a62 7645 (eval "$ac_try") 2>&5
ad6254c5 7646 ac_status=$?
ec6a6fbe 7647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7648 (exit $ac_status); }; }; then
7649 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7650else
ec6a6fbe
AK
7651 $as_echo "$as_me: program exited with status $ac_status" >&5
7652$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7653sed 's/^/| /' conftest.$ac_ext >&5
7654
7655( exit $ac_status )
7656ac_cv_func_lstat_dereferences_slashed_symlink=no
7657fi
ec6a6fbe 7658rm -rf conftest.dSYM
7a197a62 7659rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7660fi
7a197a62
AK
7661
7662
ad6254c5
AK
7663else
7664 # If the `ln -s' command failed, then we probably don't even
7665 # have an lstat function.
7666 ac_cv_func_lstat_dereferences_slashed_symlink=no
7667fi
7668rm -f conftest.sym conftest.file
7669
7670fi
ec6a6fbe
AK
7671{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7672$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
7673
7674test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7675
7676cat >>confdefs.h <<_ACEOF
7677#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7678_ACEOF
7679
7680
7681if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 7682 case " $LIBOBJS " in
8a2fc586 7683 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7684 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7685 ;;
8a2fc586
AK
7686esac
7687
ad6254c5
AK
7688fi
7689
ec6a6fbe
AK
7690{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7691$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 7692if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 7693 $as_echo_n "(cached) " >&6
ad6254c5
AK
7694else
7695 if test "$cross_compiling" = yes; then
7696 ac_cv_func_lstat_empty_string_bug=yes
7697else
7698 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7699/* confdefs.h. */
7700_ACEOF
7701cat confdefs.h >>conftest.$ac_ext
7702cat >>conftest.$ac_ext <<_ACEOF
7703/* end confdefs.h. */
7704$ac_includes_default
7705int
7706main ()
7707{
7708struct stat sbuf;
7a197a62 7709 return lstat ("", &sbuf) == 0;
ad6254c5
AK
7710 ;
7711 return 0;
7712}
7713_ACEOF
7714rm -f conftest$ac_exeext
7a197a62
AK
7715if { (ac_try="$ac_link"
7716case "(($ac_try" in
7717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7718 *) ac_try_echo=$ac_try;;
7719esac
ec6a6fbe
AK
7720eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7721$as_echo "$ac_try_echo") >&5
7a197a62 7722 (eval "$ac_link") 2>&5
ad6254c5 7723 ac_status=$?
ec6a6fbe 7724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7726 { (case "(($ac_try" in
7727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7728 *) ac_try_echo=$ac_try;;
7729esac
ec6a6fbe
AK
7730eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7731$as_echo "$ac_try_echo") >&5
7a197a62 7732 (eval "$ac_try") 2>&5
ad6254c5 7733 ac_status=$?
ec6a6fbe 7734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7735 (exit $ac_status); }; }; then
7a197a62 7736 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 7737else
ec6a6fbe
AK
7738 $as_echo "$as_me: program exited with status $ac_status" >&5
7739$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7740sed 's/^/| /' conftest.$ac_ext >&5
7741
7742( exit $ac_status )
7a197a62 7743ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 7744fi
ec6a6fbe 7745rm -rf conftest.dSYM
7a197a62 7746rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7747fi
7a197a62
AK
7748
7749
ad6254c5 7750fi
ec6a6fbe
AK
7751{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7752$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 7753if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 7754 case " $LIBOBJS " in
8a2fc586 7755 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7756 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7757 ;;
8a2fc586
AK
7758esac
7759
ad6254c5
AK
7760
7761cat >>confdefs.h <<_ACEOF
7762#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7763_ACEOF
7764
7765fi
7766
7767
7768for ac_header in stdlib.h
7769do
ec6a6fbe 7770as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7771if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7772 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7773$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7774if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7775 $as_echo_n "(cached) " >&6
ad6254c5 7776fi
ec6a6fbe
AK
7777ac_res=`eval 'as_val=${'$as_ac_Header'}
7778 $as_echo "$as_val"'`
7779 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7780$as_echo "$ac_res" >&6; }
ad6254c5
AK
7781else
7782 # Is the header compilable?
ec6a6fbe
AK
7783{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7784$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7785cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7786/* confdefs.h. */
7787_ACEOF
7788cat confdefs.h >>conftest.$ac_ext
7789cat >>conftest.$ac_ext <<_ACEOF
7790/* end confdefs.h. */
7791$ac_includes_default
7792#include <$ac_header>
7793_ACEOF
7794rm -f conftest.$ac_objext
7a197a62
AK
7795if { (ac_try="$ac_compile"
7796case "(($ac_try" in
7797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798 *) ac_try_echo=$ac_try;;
7799esac
ec6a6fbe
AK
7800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7801$as_echo "$ac_try_echo") >&5
7a197a62 7802 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7803 ac_status=$?
8a2fc586
AK
7804 grep -v '^ *+' conftest.er1 >conftest.err
7805 rm -f conftest.er1
7806 cat conftest.err >&5
ec6a6fbe 7807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7808 (exit $ac_status); } && {
7809 test -z "$ac_c_werror_flag" ||
7810 test ! -s conftest.err
7811 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7812 ac_header_compiler=yes
7813else
ec6a6fbe 7814 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7815sed 's/^/| /' conftest.$ac_ext >&5
7816
7a197a62 7817 ac_header_compiler=no
ad6254c5 7818fi
7a197a62
AK
7819
7820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7821{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7822$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7823
7824# Is the header present?
ec6a6fbe
AK
7825{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7826$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7827cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7828/* confdefs.h. */
7829_ACEOF
7830cat confdefs.h >>conftest.$ac_ext
7831cat >>conftest.$ac_ext <<_ACEOF
7832/* end confdefs.h. */
7833#include <$ac_header>
7834_ACEOF
7a197a62
AK
7835if { (ac_try="$ac_cpp conftest.$ac_ext"
7836case "(($ac_try" in
7837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7838 *) ac_try_echo=$ac_try;;
7839esac
ec6a6fbe
AK
7840eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7841$as_echo "$ac_try_echo") >&5
7a197a62 7842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7843 ac_status=$?
7844 grep -v '^ *+' conftest.er1 >conftest.err
7845 rm -f conftest.er1
7846 cat conftest.err >&5
ec6a6fbe 7847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7848 (exit $ac_status); } >/dev/null && {
7849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7850 test ! -s conftest.err
7851 }; then
ad6254c5
AK
7852 ac_header_preproc=yes
7853else
ec6a6fbe 7854 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7855sed 's/^/| /' conftest.$ac_ext >&5
7856
7857 ac_header_preproc=no
7858fi
7a197a62 7859
ad6254c5 7860rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7861{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7862$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7863
7864# So? What about this header?
8a2fc586
AK
7865case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7866 yes:no: )
ec6a6fbe
AK
7867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7868$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7870$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7871 ac_header_preproc=yes
ad6254c5 7872 ;;
8a2fc586 7873 no:yes:* )
ec6a6fbe
AK
7874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7875$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7877$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7879$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7881$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7883$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7885$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7886
ad6254c5
AK
7887 ;;
7888esac
ec6a6fbe
AK
7889{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7890$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7891if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7892 $as_echo_n "(cached) " >&6
ad6254c5 7893else
8a2fc586 7894 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7895fi
ec6a6fbe
AK
7896ac_res=`eval 'as_val=${'$as_ac_Header'}
7897 $as_echo "$as_val"'`
7898 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7899$as_echo "$ac_res" >&6; }
ad6254c5
AK
7900
7901fi
ec6a6fbe
AK
7902as_val=`eval 'as_val=${'$as_ac_Header'}
7903 $as_echo "$as_val"'`
7904 if test "x$as_val" = x""yes; then
ad6254c5 7905 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7906#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7907_ACEOF
7908
7909fi
7910
7911done
7912
ec6a6fbe
AK
7913{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7914$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 7915if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 7916 $as_echo_n "(cached) " >&6
ad6254c5
AK
7917else
7918 if test "$cross_compiling" = yes; then
7919 ac_cv_func_malloc_0_nonnull=no
7920else
7921 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7922/* confdefs.h. */
7923_ACEOF
7924cat confdefs.h >>conftest.$ac_ext
7925cat >>conftest.$ac_ext <<_ACEOF
7926/* end confdefs.h. */
25fbec5b 7927#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
7928# include <stdlib.h>
7929#else
7930char *malloc ();
7931#endif
7932
7933int
7934main ()
7935{
7a197a62 7936return ! malloc (0);
ad6254c5
AK
7937 ;
7938 return 0;
7939}
7940_ACEOF
7941rm -f conftest$ac_exeext
7a197a62
AK
7942if { (ac_try="$ac_link"
7943case "(($ac_try" in
7944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7945 *) ac_try_echo=$ac_try;;
7946esac
ec6a6fbe
AK
7947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7948$as_echo "$ac_try_echo") >&5
7a197a62 7949 (eval "$ac_link") 2>&5
ad6254c5 7950 ac_status=$?
ec6a6fbe 7951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7953 { (case "(($ac_try" in
7954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7955 *) ac_try_echo=$ac_try;;
7956esac
ec6a6fbe
AK
7957eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7958$as_echo "$ac_try_echo") >&5
7a197a62 7959 (eval "$ac_try") 2>&5
ad6254c5 7960 ac_status=$?
ec6a6fbe 7961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7962 (exit $ac_status); }; }; then
7963 ac_cv_func_malloc_0_nonnull=yes
7964else
ec6a6fbe
AK
7965 $as_echo "$as_me: program exited with status $ac_status" >&5
7966$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7967sed 's/^/| /' conftest.$ac_ext >&5
7968
7969( exit $ac_status )
7970ac_cv_func_malloc_0_nonnull=no
7971fi
ec6a6fbe 7972rm -rf conftest.dSYM
7a197a62 7973rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7974fi
7a197a62
AK
7975
7976
ad6254c5 7977fi
ec6a6fbe
AK
7978{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7979$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
7980if test $ac_cv_func_malloc_0_nonnull = yes; then
7981
7982cat >>confdefs.h <<\_ACEOF
7983#define HAVE_MALLOC 1
7984_ACEOF
7985
7986else
7987 cat >>confdefs.h <<\_ACEOF
7988#define HAVE_MALLOC 0
7989_ACEOF
7990
7a197a62 7991 case " $LIBOBJS " in
8a2fc586 7992 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
7993 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7994 ;;
8a2fc586
AK
7995esac
7996
ad6254c5
AK
7997
7998cat >>confdefs.h <<\_ACEOF
7999#define malloc rpl_malloc
8000_ACEOF
8001
8002fi
8003
8004
8005
ec6a6fbe
AK
8006{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
8007$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 8008if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 8009 $as_echo_n "(cached) " >&6
ad6254c5
AK
8010else
8011 if test "$cross_compiling" = yes; then
8012 ac_cv_func_memcmp_working=no
8013else
8014 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8015/* confdefs.h. */
8016_ACEOF
8017cat confdefs.h >>conftest.$ac_ext
8018cat >>conftest.$ac_ext <<_ACEOF
8019/* end confdefs.h. */
8a2fc586 8020$ac_includes_default
ad6254c5
AK
8021int
8022main ()
8023{
8024
8025 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 8026 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 8027 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 8028 return 1;
ad6254c5
AK
8029
8030 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8031 or more and with at least one buffer not starting on a 4-byte boundary.
8032 William Lewis provided this test program. */
8033 {
8034 char foo[21];
8035 char bar[21];
8036 int i;
8037 for (i = 0; i < 4; i++)
8038 {
8a2fc586
AK
8039 char *a = foo + i;
8040 char *b = bar + i;
8041 strcpy (a, "--------01111111");
8042 strcpy (b, "--------10000000");
8043 if (memcmp (a, b, 16) >= 0)
7a197a62 8044 return 1;
ad6254c5 8045 }
7a197a62 8046 return 0;
ad6254c5
AK
8047 }
8048
8049 ;
8050 return 0;
8051}
8052_ACEOF
8053rm -f conftest$ac_exeext
7a197a62
AK
8054if { (ac_try="$ac_link"
8055case "(($ac_try" in
8056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057 *) ac_try_echo=$ac_try;;
8058esac
ec6a6fbe
AK
8059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8060$as_echo "$ac_try_echo") >&5
7a197a62 8061 (eval "$ac_link") 2>&5
ad6254c5 8062 ac_status=$?
ec6a6fbe 8063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8065 { (case "(($ac_try" in
8066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8067 *) ac_try_echo=$ac_try;;
8068esac
ec6a6fbe
AK
8069eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8070$as_echo "$ac_try_echo") >&5
7a197a62 8071 (eval "$ac_try") 2>&5
ad6254c5 8072 ac_status=$?
ec6a6fbe 8073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8074 (exit $ac_status); }; }; then
8075 ac_cv_func_memcmp_working=yes
8076else
ec6a6fbe
AK
8077 $as_echo "$as_me: program exited with status $ac_status" >&5
8078$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8079sed 's/^/| /' conftest.$ac_ext >&5
8080
8081( exit $ac_status )
8082ac_cv_func_memcmp_working=no
8083fi
ec6a6fbe 8084rm -rf conftest.dSYM
7a197a62 8085rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8086fi
7a197a62
AK
8087
8088
ad6254c5 8089fi
ec6a6fbe
AK
8090{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8091$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 8092test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 8093 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
8094 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8095 ;;
8a2fc586
AK
8096esac
8097
ad6254c5
AK
8098
8099
8100
8101for ac_header in stdlib.h unistd.h
8102do
ec6a6fbe 8103as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 8104if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
8105 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8106$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8107if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8108 $as_echo_n "(cached) " >&6
ad6254c5 8109fi
ec6a6fbe
AK
8110ac_res=`eval 'as_val=${'$as_ac_Header'}
8111 $as_echo "$as_val"'`
8112 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8113$as_echo "$ac_res" >&6; }
ad6254c5
AK
8114else
8115 # Is the header compilable?
ec6a6fbe
AK
8116{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8117$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 8118cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8119/* confdefs.h. */
8120_ACEOF
8121cat confdefs.h >>conftest.$ac_ext
8122cat >>conftest.$ac_ext <<_ACEOF
8123/* end confdefs.h. */
8124$ac_includes_default
8125#include <$ac_header>
8126_ACEOF
8127rm -f conftest.$ac_objext
7a197a62
AK
8128if { (ac_try="$ac_compile"
8129case "(($ac_try" in
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8132esac
ec6a6fbe
AK
8133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8134$as_echo "$ac_try_echo") >&5
7a197a62 8135 (eval "$ac_compile") 2>conftest.er1
ad6254c5 8136 ac_status=$?
8a2fc586
AK
8137 grep -v '^ *+' conftest.er1 >conftest.err
8138 rm -f conftest.er1
8139 cat conftest.err >&5
ec6a6fbe 8140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8141 (exit $ac_status); } && {
8142 test -z "$ac_c_werror_flag" ||
8143 test ! -s conftest.err
8144 } && test -s conftest.$ac_objext; then
ad6254c5
AK
8145 ac_header_compiler=yes
8146else
ec6a6fbe 8147 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8148sed 's/^/| /' conftest.$ac_ext >&5
8149
7a197a62 8150 ac_header_compiler=no
ad6254c5 8151fi
7a197a62
AK
8152
8153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
8154{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8155$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
8156
8157# Is the header present?
ec6a6fbe
AK
8158{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8159$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 8160cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8161/* confdefs.h. */
8162_ACEOF
8163cat confdefs.h >>conftest.$ac_ext
8164cat >>conftest.$ac_ext <<_ACEOF
8165/* end confdefs.h. */
8166#include <$ac_header>
8167_ACEOF
7a197a62
AK
8168if { (ac_try="$ac_cpp conftest.$ac_ext"
8169case "(($ac_try" in
8170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8171 *) ac_try_echo=$ac_try;;
8172esac
ec6a6fbe
AK
8173eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8174$as_echo "$ac_try_echo") >&5
7a197a62 8175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
8176 ac_status=$?
8177 grep -v '^ *+' conftest.er1 >conftest.err
8178 rm -f conftest.er1
8179 cat conftest.err >&5
ec6a6fbe 8180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8181 (exit $ac_status); } >/dev/null && {
8182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8183 test ! -s conftest.err
8184 }; then
ad6254c5
AK
8185 ac_header_preproc=yes
8186else
ec6a6fbe 8187 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8188sed 's/^/| /' conftest.$ac_ext >&5
8189
8190 ac_header_preproc=no
8191fi
7a197a62 8192
ad6254c5 8193rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
8194{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8195$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
8196
8197# So? What about this header?
8a2fc586
AK
8198case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8199 yes:no: )
ec6a6fbe
AK
8200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8201$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8203$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 8204 ac_header_preproc=yes
ad6254c5 8205 ;;
8a2fc586 8206 no:yes:* )
ec6a6fbe
AK
8207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8208$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8210$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8212$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8214$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8216$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8218$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 8219
ad6254c5
AK
8220 ;;
8221esac
ec6a6fbe
AK
8222{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8223$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8224if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8225 $as_echo_n "(cached) " >&6
ad6254c5 8226else
8a2fc586 8227 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 8228fi
ec6a6fbe
AK
8229ac_res=`eval 'as_val=${'$as_ac_Header'}
8230 $as_echo "$as_val"'`
8231 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8232$as_echo "$ac_res" >&6; }
ad6254c5
AK
8233
8234fi
ec6a6fbe
AK
8235as_val=`eval 'as_val=${'$as_ac_Header'}
8236 $as_echo "$as_val"'`
8237 if test "x$as_val" = x""yes; then
ad6254c5 8238 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8239#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8240_ACEOF
8241
8242fi
8243
8244done
8245
8246
8247for ac_func in getpagesize
8248do
ec6a6fbe
AK
8249as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8250{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8251$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8252if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8253 $as_echo_n "(cached) " >&6
ad6254c5
AK
8254else
8255 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8256/* confdefs.h. */
8257_ACEOF
8258cat confdefs.h >>conftest.$ac_ext
8259cat >>conftest.$ac_ext <<_ACEOF
8260/* end confdefs.h. */
8a2fc586
AK
8261/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8263#define $ac_func innocuous_$ac_func
8264
ad6254c5
AK
8265/* System header to define __stub macros and hopefully few prototypes,
8266 which can conflict with char $ac_func (); below.
8267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8268 <limits.h> exists even on freestanding compilers. */
8a2fc586 8269
ad6254c5
AK
8270#ifdef __STDC__
8271# include <limits.h>
8272#else
8273# include <assert.h>
8274#endif
8a2fc586
AK
8275
8276#undef $ac_func
8277
7a197a62
AK
8278/* Override any GCC internal prototype to avoid an error.
8279 Use char because int might match the return type of a GCC
8280 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8281#ifdef __cplusplus
8282extern "C"
ad6254c5 8283#endif
ad6254c5
AK
8284char $ac_func ();
8285/* The GNU C library defines this for functions which it implements
8286 to always fail with ENOSYS. Some functions are actually named
8287 something starting with __ and the normal name is an alias. */
7a197a62 8288#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8289choke me
ad6254c5
AK
8290#endif
8291
8292int
8293main ()
8294{
7a197a62 8295return $ac_func ();
ad6254c5
AK
8296 ;
8297 return 0;
8298}
8299_ACEOF
8300rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8301if { (ac_try="$ac_link"
8302case "(($ac_try" in
8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8305esac
ec6a6fbe
AK
8306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8307$as_echo "$ac_try_echo") >&5
7a197a62 8308 (eval "$ac_link") 2>conftest.er1
ad6254c5 8309 ac_status=$?
8a2fc586
AK
8310 grep -v '^ *+' conftest.er1 >conftest.err
8311 rm -f conftest.er1
8312 cat conftest.err >&5
ec6a6fbe 8313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8314 (exit $ac_status); } && {
8315 test -z "$ac_c_werror_flag" ||
8316 test ! -s conftest.err
ec6a6fbe
AK
8317 } && test -s conftest$ac_exeext && {
8318 test "$cross_compiling" = yes ||
8319 $as_test_x conftest$ac_exeext
8320 }; then
ad6254c5
AK
8321 eval "$as_ac_var=yes"
8322else
ec6a6fbe 8323 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8324sed 's/^/| /' conftest.$ac_ext >&5
8325
7a197a62 8326 eval "$as_ac_var=no"
ad6254c5 8327fi
7a197a62 8328
ec6a6fbe 8329rm -rf conftest.dSYM
25fbec5b 8330rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8331 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8332fi
ec6a6fbe
AK
8333ac_res=`eval 'as_val=${'$as_ac_var'}
8334 $as_echo "$as_val"'`
8335 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8336$as_echo "$ac_res" >&6; }
8337as_val=`eval 'as_val=${'$as_ac_var'}
8338 $as_echo "$as_val"'`
8339 if test "x$as_val" = x""yes; then
ad6254c5 8340 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8341#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8342_ACEOF
8343
8344fi
8345done
8346
ec6a6fbe
AK
8347{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8348$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 8349if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 8350 $as_echo_n "(cached) " >&6
ad6254c5
AK
8351else
8352 if test "$cross_compiling" = yes; then
8353 ac_cv_func_mmap_fixed_mapped=no
8354else
8355 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8356/* confdefs.h. */
8357_ACEOF
8358cat confdefs.h >>conftest.$ac_ext
8359cat >>conftest.$ac_ext <<_ACEOF
8360/* end confdefs.h. */
8361$ac_includes_default
8362/* malloc might have been renamed as rpl_malloc. */
8363#undef malloc
8364
8365/* Thanks to Mike Haertel and Jim Avera for this test.
8366 Here is a matrix of mmap possibilities:
8367 mmap private not fixed
8368 mmap private fixed at somewhere currently unmapped
8369 mmap private fixed at somewhere already mapped
8370 mmap shared not fixed
8371 mmap shared fixed at somewhere currently unmapped
8372 mmap shared fixed at somewhere already mapped
8373 For private mappings, we should verify that changes cannot be read()
8374 back from the file, nor mmap's back from the file at a different
8375 address. (There have been systems where private was not correctly
8376 implemented like the infamous i386 svr4.0, and systems where the
8377 VM page cache was not coherent with the file system buffer cache
8378 like early versions of FreeBSD and possibly contemporary NetBSD.)
8379 For shared mappings, we should conversely verify that changes get
8380 propagated back to all the places they're supposed to be.
8381
8382 Grep wants private fixed already mapped.
8383 The main things grep needs to know about mmap are:
8384 * does it exist and is it safe to write into the mmap'd area
8385 * how to use it (BSD variants) */
8386
8387#include <fcntl.h>
8388#include <sys/mman.h>
8389
25fbec5b 8390#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
8391char *malloc ();
8392#endif
8393
8394/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 8395#ifndef HAVE_GETPAGESIZE
ad6254c5 8396/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 8397# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
8398# define HAVE_SYS_PARAM_H 1
8399# endif
8400
8401# ifdef _SC_PAGESIZE
8402# define getpagesize() sysconf(_SC_PAGESIZE)
8403# else /* no _SC_PAGESIZE */
25fbec5b 8404# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
8405# include <sys/param.h>
8406# ifdef EXEC_PAGESIZE
8407# define getpagesize() EXEC_PAGESIZE
8408# else /* no EXEC_PAGESIZE */
8409# ifdef NBPG
8410# define getpagesize() NBPG * CLSIZE
8411# ifndef CLSIZE
8412# define CLSIZE 1
8413# endif /* no CLSIZE */
8414# else /* no NBPG */
8415# ifdef NBPC
8416# define getpagesize() NBPC
8417# else /* no NBPC */
8418# ifdef PAGESIZE
8419# define getpagesize() PAGESIZE
8420# endif /* PAGESIZE */
8421# endif /* no NBPC */
8422# endif /* no NBPG */
8423# endif /* no EXEC_PAGESIZE */
8424# else /* no HAVE_SYS_PARAM_H */
8425# define getpagesize() 8192 /* punt totally */
8426# endif /* no HAVE_SYS_PARAM_H */
8427# endif /* no _SC_PAGESIZE */
8428
8429#endif /* no HAVE_GETPAGESIZE */
8430
8431int
8432main ()
8433{
8434 char *data, *data2, *data3;
8435 int i, pagesize;
8436 int fd;
8437
8438 pagesize = getpagesize ();
8439
8440 /* First, make a file with some known garbage in it. */
8441 data = (char *) malloc (pagesize);
8442 if (!data)
7a197a62 8443 return 1;
ad6254c5
AK
8444 for (i = 0; i < pagesize; ++i)
8445 *(data + i) = rand ();
8446 umask (0);
8447 fd = creat ("conftest.mmap", 0600);
8448 if (fd < 0)
7a197a62 8449 return 1;
ad6254c5 8450 if (write (fd, data, pagesize) != pagesize)
7a197a62 8451 return 1;
ad6254c5
AK
8452 close (fd);
8453
8454 /* Next, try to mmap the file at a fixed address which already has
8455 something else allocated at it. If we can, also make sure that
8456 we see the same garbage. */
8457 fd = open ("conftest.mmap", O_RDWR);
8458 if (fd < 0)
7a197a62 8459 return 1;
ad6254c5
AK
8460 data2 = (char *) malloc (2 * pagesize);
8461 if (!data2)
7a197a62
AK
8462 return 1;
8463 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 8464 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 8465 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 8466 return 1;
ad6254c5
AK
8467 for (i = 0; i < pagesize; ++i)
8468 if (*(data + i) != *(data2 + i))
7a197a62 8469 return 1;
ad6254c5
AK
8470
8471 /* Finally, make sure that changes to the mapped area do not
8472 percolate back to the file as seen by read(). (This is a bug on
8473 some variants of i386 svr4.0.) */
8474 for (i = 0; i < pagesize; ++i)
8475 *(data2 + i) = *(data2 + i) + 1;
8476 data3 = (char *) malloc (pagesize);
8477 if (!data3)
7a197a62 8478 return 1;
ad6254c5 8479 if (read (fd, data3, pagesize) != pagesize)
7a197a62 8480 return 1;
ad6254c5
AK
8481 for (i = 0; i < pagesize; ++i)
8482 if (*(data + i) != *(data3 + i))
7a197a62 8483 return 1;
ad6254c5 8484 close (fd);
7a197a62 8485 return 0;
ad6254c5
AK
8486}
8487_ACEOF
8488rm -f conftest$ac_exeext
7a197a62
AK
8489if { (ac_try="$ac_link"
8490case "(($ac_try" in
8491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8492 *) ac_try_echo=$ac_try;;
8493esac
ec6a6fbe
AK
8494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8495$as_echo "$ac_try_echo") >&5
7a197a62 8496 (eval "$ac_link") 2>&5
ad6254c5 8497 ac_status=$?
ec6a6fbe 8498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8500 { (case "(($ac_try" in
8501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8502 *) ac_try_echo=$ac_try;;
8503esac
ec6a6fbe
AK
8504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8505$as_echo "$ac_try_echo") >&5
7a197a62 8506 (eval "$ac_try") 2>&5
ad6254c5 8507 ac_status=$?
ec6a6fbe 8508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8509 (exit $ac_status); }; }; then
8510 ac_cv_func_mmap_fixed_mapped=yes
8511else
ec6a6fbe
AK
8512 $as_echo "$as_me: program exited with status $ac_status" >&5
8513$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8514sed 's/^/| /' conftest.$ac_ext >&5
8515
8516( exit $ac_status )
8517ac_cv_func_mmap_fixed_mapped=no
8518fi
ec6a6fbe 8519rm -rf conftest.dSYM
7a197a62 8520rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8521fi
7a197a62
AK
8522
8523
ad6254c5 8524fi
ec6a6fbe
AK
8525{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8526$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
8527if test $ac_cv_func_mmap_fixed_mapped = yes; then
8528
8529cat >>confdefs.h <<\_ACEOF
8530#define HAVE_MMAP 1
8531_ACEOF
8532
8533fi
8534rm -f conftest.mmap
8535
ec6a6fbe
AK
8536{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8537$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 8538if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 8539 $as_echo_n "(cached) " >&6
ad6254c5
AK
8540else
8541 if test "$cross_compiling" = yes; then
8542 ac_cv_func_stat_empty_string_bug=yes
8543else
8544 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8545/* confdefs.h. */
8546_ACEOF
8547cat confdefs.h >>conftest.$ac_ext
8548cat >>conftest.$ac_ext <<_ACEOF
8549/* end confdefs.h. */
8550$ac_includes_default
8551int
8552main ()
8553{
8554struct stat sbuf;
7a197a62 8555 return stat ("", &sbuf) == 0;
ad6254c5
AK
8556 ;
8557 return 0;
8558}
8559_ACEOF
8560rm -f conftest$ac_exeext
7a197a62
AK
8561if { (ac_try="$ac_link"
8562case "(($ac_try" in
8563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8564 *) ac_try_echo=$ac_try;;
8565esac
ec6a6fbe
AK
8566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8567$as_echo "$ac_try_echo") >&5
7a197a62 8568 (eval "$ac_link") 2>&5
ad6254c5 8569 ac_status=$?
ec6a6fbe 8570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8571 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8572 { (case "(($ac_try" in
8573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8574 *) ac_try_echo=$ac_try;;
8575esac
ec6a6fbe
AK
8576eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8577$as_echo "$ac_try_echo") >&5
7a197a62 8578 (eval "$ac_try") 2>&5
ad6254c5 8579 ac_status=$?
ec6a6fbe 8580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8581 (exit $ac_status); }; }; then
7a197a62 8582 ac_cv_func_stat_empty_string_bug=no
ad6254c5 8583else
ec6a6fbe
AK
8584 $as_echo "$as_me: program exited with status $ac_status" >&5
8585$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8586sed 's/^/| /' conftest.$ac_ext >&5
8587
8588( exit $ac_status )
7a197a62 8589ac_cv_func_stat_empty_string_bug=yes
ad6254c5 8590fi
ec6a6fbe 8591rm -rf conftest.dSYM
7a197a62 8592rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8593fi
7a197a62
AK
8594
8595
ad6254c5 8596fi
ec6a6fbe
AK
8597{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8598$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 8599if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 8600 case " $LIBOBJS " in
8a2fc586 8601 *" stat.$ac_objext "* ) ;;
7a197a62
AK
8602 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8603 ;;
8a2fc586
AK
8604esac
8605
ad6254c5
AK
8606
8607cat >>confdefs.h <<_ACEOF
8608#define HAVE_STAT_EMPTY_STRING_BUG 1
8609_ACEOF
8610
8611fi
8612
ec6a6fbe
AK
8613{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8614$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 8615if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 8616 $as_echo_n "(cached) " >&6
ad6254c5
AK
8617else
8618 if test "$cross_compiling" = yes; then
8619 ac_cv_func_strtod=no
8620else
8621 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8622/* confdefs.h. */
8623_ACEOF
8624cat confdefs.h >>conftest.$ac_ext
8625cat >>conftest.$ac_ext <<_ACEOF
8626/* end confdefs.h. */
8627
7a197a62
AK
8628$ac_includes_default
8629#ifndef strtod
ad6254c5 8630double strtod ();
7a197a62 8631#endif
ad6254c5
AK
8632int
8633main()
8634{
8635 {
8636 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8637 char *string = " +69";
8638 char *term;
8639 double value;
8640 value = strtod (string, &term);
8641 if (value != 69 || term != (string + 4))
7a197a62 8642 return 1;
ad6254c5
AK
8643 }
8644
8645 {
8646 /* Under Solaris 2.4, strtod returns the wrong value for the
8647 terminating character under some conditions. */
8648 char *string = "NaN";
8649 char *term;
8650 strtod (string, &term);
8651 if (term != string && *(term - 1) == 0)
7a197a62 8652 return 1;
ad6254c5 8653 }
7a197a62 8654 return 0;
ad6254c5
AK
8655}
8656
8657_ACEOF
8658rm -f conftest$ac_exeext
7a197a62
AK
8659if { (ac_try="$ac_link"
8660case "(($ac_try" in
8661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8662 *) ac_try_echo=$ac_try;;
8663esac
ec6a6fbe
AK
8664eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8665$as_echo "$ac_try_echo") >&5
7a197a62 8666 (eval "$ac_link") 2>&5
ad6254c5 8667 ac_status=$?
ec6a6fbe 8668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8670 { (case "(($ac_try" in
8671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8672 *) ac_try_echo=$ac_try;;
8673esac
ec6a6fbe
AK
8674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8675$as_echo "$ac_try_echo") >&5
7a197a62 8676 (eval "$ac_try") 2>&5
ad6254c5 8677 ac_status=$?
ec6a6fbe 8678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8679 (exit $ac_status); }; }; then
8680 ac_cv_func_strtod=yes
8681else
ec6a6fbe
AK
8682 $as_echo "$as_me: program exited with status $ac_status" >&5
8683$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8684sed 's/^/| /' conftest.$ac_ext >&5
8685
8686( exit $ac_status )
8687ac_cv_func_strtod=no
8688fi
ec6a6fbe 8689rm -rf conftest.dSYM
7a197a62 8690rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8691fi
7a197a62
AK
8692
8693
ad6254c5 8694fi
ec6a6fbe
AK
8695{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8696$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 8697if test $ac_cv_func_strtod = no; then
7a197a62 8698 case " $LIBOBJS " in
8a2fc586 8699 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
8700 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8701 ;;
8a2fc586
AK
8702esac
8703
ec6a6fbe
AK
8704{ $as_echo "$as_me:$LINENO: checking for pow" >&5
8705$as_echo_n "checking for pow... " >&6; }
ad6254c5 8706if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 8707 $as_echo_n "(cached) " >&6
ad6254c5
AK
8708else
8709 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8710/* confdefs.h. */
8711_ACEOF
8712cat confdefs.h >>conftest.$ac_ext
8713cat >>conftest.$ac_ext <<_ACEOF
8714/* end confdefs.h. */
8a2fc586
AK
8715/* Define pow to an innocuous variant, in case <limits.h> declares pow.
8716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8717#define pow innocuous_pow
8718
ad6254c5
AK
8719/* System header to define __stub macros and hopefully few prototypes,
8720 which can conflict with char pow (); below.
8721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8722 <limits.h> exists even on freestanding compilers. */
8a2fc586 8723
ad6254c5
AK
8724#ifdef __STDC__
8725# include <limits.h>
8726#else
8727# include <assert.h>
8728#endif
8a2fc586
AK
8729
8730#undef pow
8731
7a197a62
AK
8732/* Override any GCC internal prototype to avoid an error.
8733 Use char because int might match the return type of a GCC
8734 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8735#ifdef __cplusplus
8736extern "C"
ad6254c5 8737#endif
ad6254c5
AK
8738char pow ();
8739/* The GNU C library defines this for functions which it implements
8740 to always fail with ENOSYS. Some functions are actually named
8741 something starting with __ and the normal name is an alias. */
7a197a62 8742#if defined __stub_pow || defined __stub___pow
ad6254c5 8743choke me
ad6254c5
AK
8744#endif
8745
8746int
8747main ()
8748{
7a197a62 8749return pow ();
ad6254c5
AK
8750 ;
8751 return 0;
8752}
8753_ACEOF
8754rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8755if { (ac_try="$ac_link"
8756case "(($ac_try" in
8757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758 *) ac_try_echo=$ac_try;;
8759esac
ec6a6fbe
AK
8760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8761$as_echo "$ac_try_echo") >&5
7a197a62 8762 (eval "$ac_link") 2>conftest.er1
ad6254c5 8763 ac_status=$?
8a2fc586
AK
8764 grep -v '^ *+' conftest.er1 >conftest.err
8765 rm -f conftest.er1
8766 cat conftest.err >&5
ec6a6fbe 8767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8768 (exit $ac_status); } && {
8769 test -z "$ac_c_werror_flag" ||
8770 test ! -s conftest.err
ec6a6fbe
AK
8771 } && test -s conftest$ac_exeext && {
8772 test "$cross_compiling" = yes ||
8773 $as_test_x conftest$ac_exeext
8774 }; then
ad6254c5
AK
8775 ac_cv_func_pow=yes
8776else
ec6a6fbe 8777 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8778sed 's/^/| /' conftest.$ac_ext >&5
8779
7a197a62 8780 ac_cv_func_pow=no
ad6254c5 8781fi
7a197a62 8782
ec6a6fbe 8783rm -rf conftest.dSYM
25fbec5b 8784rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8785 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8786fi
ec6a6fbe
AK
8787{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8788$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
8789
8790if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
8791 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8792$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 8793if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 8794 $as_echo_n "(cached) " >&6
ad6254c5
AK
8795else
8796 ac_check_lib_save_LIBS=$LIBS
8797LIBS="-lm $LIBS"
8798cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8799/* confdefs.h. */
8800_ACEOF
8801cat confdefs.h >>conftest.$ac_ext
8802cat >>conftest.$ac_ext <<_ACEOF
8803/* end confdefs.h. */
8804
7a197a62
AK
8805/* Override any GCC internal prototype to avoid an error.
8806 Use char because int might match the return type of a GCC
8807 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8808#ifdef __cplusplus
8809extern "C"
8810#endif
ad6254c5
AK
8811char pow ();
8812int
8813main ()
8814{
7a197a62 8815return pow ();
ad6254c5
AK
8816 ;
8817 return 0;
8818}
8819_ACEOF
8820rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8821if { (ac_try="$ac_link"
8822case "(($ac_try" in
8823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8824 *) ac_try_echo=$ac_try;;
8825esac
ec6a6fbe
AK
8826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8827$as_echo "$ac_try_echo") >&5
7a197a62 8828 (eval "$ac_link") 2>conftest.er1
ad6254c5 8829 ac_status=$?
8a2fc586
AK
8830 grep -v '^ *+' conftest.er1 >conftest.err
8831 rm -f conftest.er1
8832 cat conftest.err >&5
ec6a6fbe 8833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8834 (exit $ac_status); } && {
8835 test -z "$ac_c_werror_flag" ||
8836 test ! -s conftest.err
ec6a6fbe
AK
8837 } && test -s conftest$ac_exeext && {
8838 test "$cross_compiling" = yes ||
8839 $as_test_x conftest$ac_exeext
8840 }; then
ad6254c5
AK
8841 ac_cv_lib_m_pow=yes
8842else
ec6a6fbe 8843 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8844sed 's/^/| /' conftest.$ac_ext >&5
8845
7a197a62 8846 ac_cv_lib_m_pow=no
ad6254c5 8847fi
7a197a62 8848
ec6a6fbe 8849rm -rf conftest.dSYM
25fbec5b 8850rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8851 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8852LIBS=$ac_check_lib_save_LIBS
d0191583 8853fi
ec6a6fbe
AK
8854{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8855$as_echo "$ac_cv_lib_m_pow" >&6; }
8856if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
8857 POW_LIB=-lm
8858else
ec6a6fbe
AK
8859 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8860$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 8861fi
72b2cb61 8862
d0191583 8863fi
72b2cb61 8864
ad6254c5
AK
8865fi
8866
ad6254c5 8867
d0191583
JM
8868for ac_func in vprintf
8869do
ec6a6fbe
AK
8870as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8871{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8872$as_echo_n "checking for $ac_func... " >&6; }
d0191583 8873if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8874 $as_echo_n "(cached) " >&6
ad6254c5 8875else
d0191583
JM
8876 cat >conftest.$ac_ext <<_ACEOF
8877/* confdefs.h. */
8878_ACEOF
8879cat confdefs.h >>conftest.$ac_ext
8880cat >>conftest.$ac_ext <<_ACEOF
8881/* end confdefs.h. */
8882/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8884#define $ac_func innocuous_$ac_func
7a197a62 8885
d0191583
JM
8886/* System header to define __stub macros and hopefully few prototypes,
8887 which can conflict with char $ac_func (); below.
8888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8889 <limits.h> exists even on freestanding compilers. */
ad6254c5 8890
d0191583
JM
8891#ifdef __STDC__
8892# include <limits.h>
8893#else
8894# include <assert.h>
8895#endif
ad6254c5 8896
d0191583 8897#undef $ac_func
72b2cb61 8898
d0191583
JM
8899/* Override any GCC internal prototype to avoid an error.
8900 Use char because int might match the return type of a GCC
8901 builtin and then its argument prototype would still apply. */
8902#ifdef __cplusplus
8903extern "C"
8904#endif
8905char $ac_func ();
8906/* The GNU C library defines this for functions which it implements
8907 to always fail with ENOSYS. Some functions are actually named
8908 something starting with __ and the normal name is an alias. */
8909#if defined __stub_$ac_func || defined __stub___$ac_func
8910choke me
8911#endif
8912
8913int
8914main ()
8915{
8916return $ac_func ();
8917 ;
8918 return 0;
8919}
72b2cb61 8920_ACEOF
d0191583
JM
8921rm -f conftest.$ac_objext conftest$ac_exeext
8922if { (ac_try="$ac_link"
8923case "(($ac_try" in
8924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8925 *) ac_try_echo=$ac_try;;
8926esac
ec6a6fbe
AK
8927eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8928$as_echo "$ac_try_echo") >&5
d0191583
JM
8929 (eval "$ac_link") 2>conftest.er1
8930 ac_status=$?
8931 grep -v '^ *+' conftest.er1 >conftest.err
8932 rm -f conftest.er1
8933 cat conftest.err >&5
ec6a6fbe 8934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8935 (exit $ac_status); } && {
8936 test -z "$ac_c_werror_flag" ||
8937 test ! -s conftest.err
ec6a6fbe
AK
8938 } && test -s conftest$ac_exeext && {
8939 test "$cross_compiling" = yes ||
8940 $as_test_x conftest$ac_exeext
8941 }; then
d0191583
JM
8942 eval "$as_ac_var=yes"
8943else
ec6a6fbe 8944 $as_echo "$as_me: failed program was:" >&5
d0191583 8945sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8946
d0191583 8947 eval "$as_ac_var=no"
ad6254c5
AK
8948fi
8949
ec6a6fbe 8950rm -rf conftest.dSYM
d0191583
JM
8951rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8952 conftest$ac_exeext conftest.$ac_ext
7a197a62 8953fi
ec6a6fbe
AK
8954ac_res=`eval 'as_val=${'$as_ac_var'}
8955 $as_echo "$as_val"'`
8956 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8957$as_echo "$ac_res" >&6; }
8958as_val=`eval 'as_val=${'$as_ac_var'}
8959 $as_echo "$as_val"'`
8960 if test "x$as_val" = x""yes; then
d0191583 8961 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8962#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 8963_ACEOF
7a197a62 8964
ec6a6fbe
AK
8965{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8966$as_echo_n "checking for _doprnt... " >&6; }
d0191583 8967if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 8968 $as_echo_n "(cached) " >&6
ad6254c5 8969else
d0191583
JM
8970 cat >conftest.$ac_ext <<_ACEOF
8971/* confdefs.h. */
8972_ACEOF
8973cat confdefs.h >>conftest.$ac_ext
8974cat >>conftest.$ac_ext <<_ACEOF
8975/* end confdefs.h. */
8976/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8978#define _doprnt innocuous__doprnt
7a197a62 8979
d0191583
JM
8980/* System header to define __stub macros and hopefully few prototypes,
8981 which can conflict with char _doprnt (); below.
8982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8983 <limits.h> exists even on freestanding compilers. */
ad6254c5 8984
d0191583
JM
8985#ifdef __STDC__
8986# include <limits.h>
8987#else
8988# include <assert.h>
8989#endif
72b2cb61 8990
d0191583
JM
8991#undef _doprnt
8992
8993/* Override any GCC internal prototype to avoid an error.
8994 Use char because int might match the return type of a GCC
8995 builtin and then its argument prototype would still apply. */
8996#ifdef __cplusplus
8997extern "C"
8998#endif
8999char _doprnt ();
9000/* The GNU C library defines this for functions which it implements
9001 to always fail with ENOSYS. Some functions are actually named
9002 something starting with __ and the normal name is an alias. */
9003#if defined __stub__doprnt || defined __stub____doprnt
9004choke me
9005#endif
9006
9007int
9008main ()
9009{
9010return _doprnt ();
9011 ;
9012 return 0;
9013}
72b2cb61 9014_ACEOF
d0191583
JM
9015rm -f conftest.$ac_objext conftest$ac_exeext
9016if { (ac_try="$ac_link"
9017case "(($ac_try" in
9018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9019 *) ac_try_echo=$ac_try;;
9020esac
ec6a6fbe
AK
9021eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9022$as_echo "$ac_try_echo") >&5
d0191583
JM
9023 (eval "$ac_link") 2>conftest.er1
9024 ac_status=$?
9025 grep -v '^ *+' conftest.er1 >conftest.err
9026 rm -f conftest.er1
9027 cat conftest.err >&5
ec6a6fbe 9028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
9029 (exit $ac_status); } && {
9030 test -z "$ac_c_werror_flag" ||
9031 test ! -s conftest.err
ec6a6fbe
AK
9032 } && test -s conftest$ac_exeext && {
9033 test "$cross_compiling" = yes ||
9034 $as_test_x conftest$ac_exeext
9035 }; then
d0191583
JM
9036 ac_cv_func__doprnt=yes
9037else
ec6a6fbe 9038 $as_echo "$as_me: failed program was:" >&5
d0191583 9039sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 9040
d0191583 9041 ac_cv_func__doprnt=no
ad6254c5
AK
9042fi
9043
ec6a6fbe 9044rm -rf conftest.dSYM
d0191583
JM
9045rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9046 conftest$ac_exeext conftest.$ac_ext
7a197a62 9047fi
ec6a6fbe
AK
9048{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9049$as_echo "$ac_cv_func__doprnt" >&6; }
9050if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 9051
d0191583
JM
9052cat >>confdefs.h <<\_ACEOF
9053#define HAVE_DOPRNT 1
9054_ACEOF
ad6254c5 9055
7a197a62
AK
9056fi
9057
d0191583
JM
9058fi
9059done
8b1a3214 9060
ad6254c5 9061
7a197a62 9062
9c961554 9063################################################################################
ec6a6fbe
AK
9064{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
9065$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
9066# Check whether --enable-static_link was given.
9067if test "${enable_static_link+set}" = set; then
9068 enableval=$enable_static_link; STATIC_LINK=$enableval
9069else
9070 STATIC_LINK=no
9071fi
9072
ec6a6fbe
AK
9073{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
9074$as_echo "$STATIC_LINK" >&6; }
9c961554 9075
d0191583 9076################################################################################
ad6254c5 9077
ad6254c5
AK
9078
9079################################################################################
ec6a6fbe
AK
9080{ $as_echo "$as_me:$LINENO: checking file owner" >&5
9081$as_echo_n "checking file owner... " >&6; }
39dabc84 9082OWNER=""
d0191583
JM
9083
9084
9085# Check whether --with-user was given.
9086if test "${with_user+set}" = set; then
9087 withval=$with_user; OWNER="$withval"
7a197a62
AK
9088fi
9089
ec6a6fbe
AK
9090{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
9091$as_echo "$OWNER" >&6; }
ad6254c5 9092
d0191583
JM
9093if test x$OWNER != x; then
9094 OWNER="-o $OWNER"
ad6254c5
AK
9095fi
9096
9097################################################################################
ec6a6fbe
AK
9098{ $as_echo "$as_me:$LINENO: checking group owner" >&5
9099$as_echo_n "checking group owner... " >&6; }
39dabc84 9100GROUP=""
ad6254c5 9101
d0191583
JM
9102# Check whether --with-group was given.
9103if test "${with_group+set}" = set; then
9104 withval=$with_group; GROUP="$withval"
7a197a62
AK
9105fi
9106
ec6a6fbe
AK
9107{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
9108$as_echo "$GROUP" >&6; }
d0191583
JM
9109
9110if test x$GROUP != x; then
9111 GROUP="-g $GROUP"
9112fi
ad6254c5 9113
24bbc4d7 9114################################################################################
ec6a6fbe
AK
9115{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
9116$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
9117
9118
9119# Check whether --with-device-uid was given.
9120if test "${with_device_uid+set}" = set; then
9121 withval=$with_device_uid; DM_DEVICE_UID="$withval"
9122else
9123 DM_DEVICE_UID="0"
9124fi
9125
ec6a6fbe
AK
9126{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
9127$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
9128
9129################################################################################
ec6a6fbe
AK
9130{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
9131$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
9132
9133
9134# Check whether --with-device-gid was given.
9135if test "${with_device_gid+set}" = set; then
9136 withval=$with_device_gid; DM_DEVICE_GID="$withval"
9137else
9138 DM_DEVICE_GID="0"
9139fi
9140
ec6a6fbe
AK
9141{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
9142$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 9143
93bd259b 9144################################################################################
ec6a6fbe
AK
9145{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
9146$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
9147
9148
9149# Check whether --with-device-mode was given.
9150if test "${with_device_mode+set}" = set; then
9151 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
9152else
9153 DM_DEVICE_MODE="0600"
9154fi
9155
ec6a6fbe
AK
9156{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
9157$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 9158
ad6254c5 9159################################################################################
ec6a6fbe
AK
9160{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
9161$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
9162# Check whether --enable-lvm1_fallback was given.
9163if test "${enable_lvm1_fallback+set}" = set; then
9164 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
9165else
9166 LVM1_FALLBACK=no
7a197a62
AK
9167fi
9168
ec6a6fbe
AK
9169{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
9170$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 9171
d0191583 9172if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
9173
9174cat >>confdefs.h <<\_ACEOF
d0191583 9175#define LVM1_FALLBACK 1
72b2cb61
AK
9176_ACEOF
9177
ad6254c5
AK
9178fi
9179
9180################################################################################
ec6a6fbe
AK
9181{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9182$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
9183
9184# Check whether --with-lvm1 was given.
9185if test "${with_lvm1+set}" = set; then
9186 withval=$with_lvm1; LVM1="$withval"
9187else
9188 LVM1="internal"
7a197a62
AK
9189fi
9190
ec6a6fbe
AK
9191{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9192$as_echo "$LVM1" >&6; }
ad6254c5 9193
d0191583 9194if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 9195 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 9196" >&5
ec6a6fbe 9197$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
9198" >&2;}
9199 { (exit 1); exit 1; }; }
9200fi;
9201
9202if test x$LVM1 = xinternal; then
72b2cb61
AK
9203
9204cat >>confdefs.h <<\_ACEOF
d0191583 9205#define LVM1_INTERNAL 1
72b2cb61
AK
9206_ACEOF
9207
ad6254c5
AK
9208fi
9209
9210################################################################################
ec6a6fbe
AK
9211{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9212$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
9213
9214# Check whether --with-pool was given.
9215if test "${with_pool+set}" = set; then
9216 withval=$with_pool; POOL="$withval"
ad6254c5 9217else
d0191583 9218 POOL="internal"
7a197a62
AK
9219fi
9220
ec6a6fbe
AK
9221{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
9222$as_echo "$POOL" >&6; }
ad6254c5 9223
d0191583 9224if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 9225 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 9226" >&5
ec6a6fbe 9227$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
9228" >&2;}
9229 { (exit 1); exit 1; }; }
9230fi;
7a197a62 9231
d0191583
JM
9232if test x$POOL = xinternal; then
9233
9234cat >>confdefs.h <<\_ACEOF
9235#define POOL_INTERNAL 1
9236_ACEOF
9237
9238fi
ad6254c5 9239
06f62ad1 9240################################################################################
ec6a6fbe
AK
9241{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9242$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
9243
9244# Check whether --with-cluster was given.
9245if test "${with_cluster+set}" = set; then
9246 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
9247fi
9248
ec6a6fbe
AK
9249{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9250$as_echo "$CLUSTER" >&6; }
06f62ad1 9251
d0191583 9252if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 9253 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 9254" >&5
ec6a6fbe 9255$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
9256" >&2;}
9257 { (exit 1); exit 1; }; }
d0191583 9258fi;
06f62ad1 9259
d0191583 9260if test x$CLUSTER = xinternal; then
72b2cb61
AK
9261
9262cat >>confdefs.h <<\_ACEOF
d0191583 9263#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
9264_ACEOF
9265
15d91f5a 9266fi
ad6254c5
AK
9267
9268################################################################################
ec6a6fbe
AK
9269{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9270$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 9271
d0191583
JM
9272# Check whether --with-snapshots was given.
9273if test "${with_snapshots+set}" = set; then
9274 withval=$with_snapshots; SNAPSHOTS="$withval"
9275else
9276 SNAPSHOTS="internal"
ad6254c5
AK
9277fi
9278
ec6a6fbe
AK
9279{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9280$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 9281
d0191583 9282if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 9283 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 9284" >&5
ec6a6fbe 9285$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
9286" >&2;}
9287 { (exit 1); exit 1; }; }
9288fi;
9289
9290if test x$SNAPSHOTS = xinternal; then
9291
9292cat >>confdefs.h <<\_ACEOF
9293#define SNAPSHOT_INTERNAL 1
9294_ACEOF
ad6254c5 9295
ad6254c5 9296fi
7a197a62 9297
d0191583 9298################################################################################
ec6a6fbe
AK
9299{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9300$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
9301
9302# Check whether --with-mirrors was given.
9303if test "${with_mirrors+set}" = set; then
9304 withval=$with_mirrors; MIRRORS="$withval"
9305else
9306 MIRRORS="internal"
ad6254c5 9307fi
ad6254c5 9308
ec6a6fbe
AK
9309{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9310$as_echo "$MIRRORS" >&6; }
ad6254c5 9311
d0191583 9312if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 9313 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 9314" >&5
ec6a6fbe 9315$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
9316" >&2;}
9317 { (exit 1); exit 1; }; }
9318fi;
ad6254c5 9319
d0191583 9320if test x$MIRRORS = xinternal; then
ad6254c5 9321
d0191583
JM
9322cat >>confdefs.h <<\_ACEOF
9323#define MIRRORED_INTERNAL 1
ad6254c5 9324_ACEOF
8a2fc586 9325
d0191583 9326fi
8a2fc586 9327
d0191583 9328################################################################################
ec6a6fbe
AK
9329{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9330$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
9331# Check whether --enable-readline was given.
9332if test "${enable_readline+set}" = set; then
9333 enableval=$enable_readline; READLINE=$enableval
9334else
06e459df 9335 READLINE=maybe
d0191583 9336fi
8a2fc586 9337
ec6a6fbe
AK
9338{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9339$as_echo "$READLINE" >&6; }
8a2fc586 9340
d0191583 9341################################################################################
ec6a6fbe
AK
9342{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9343$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
9344# Check whether --enable-realtime was given.
9345if test "${enable_realtime+set}" = set; then
9346 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 9347fi
ad6254c5 9348
ec6a6fbe
AK
9349{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9350$as_echo "$REALTIME" >&6; }
d0191583
JM
9351
9352################################################################################
90c80887 9353pkg_config_init() {
e2997b73
AK
9354
9355
9356if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9357 if test -n "$ac_tool_prefix"; then
9358 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9359set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9360{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9361$as_echo_n "checking for $ac_word... " >&6; }
9362if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9363 $as_echo_n "(cached) " >&6
9364else
9365 case $PKG_CONFIG in
9366 [\\/]* | ?:[\\/]*)
9367 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9368 ;;
9369 *)
9370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9371for as_dir in $PATH
9372do
9373 IFS=$as_save_IFS
9374 test -z "$as_dir" && as_dir=.
9375 for ac_exec_ext in '' $ac_executable_extensions; do
9376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9377 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9378 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9379 break 2
9380 fi
9381done
9382done
9383IFS=$as_save_IFS
9384
9385 ;;
9386esac
9387fi
9388PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9389if test -n "$PKG_CONFIG"; then
9390 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9391$as_echo "$PKG_CONFIG" >&6; }
9392else
9393 { $as_echo "$as_me:$LINENO: result: no" >&5
9394$as_echo "no" >&6; }
9395fi
9396
9397
9398fi
9399if test -z "$ac_cv_path_PKG_CONFIG"; then
9400 ac_pt_PKG_CONFIG=$PKG_CONFIG
9401 # Extract the first word of "pkg-config", so it can be a program name with args.
9402set dummy pkg-config; ac_word=$2
9403{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9404$as_echo_n "checking for $ac_word... " >&6; }
9405if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9406 $as_echo_n "(cached) " >&6
9407else
9408 case $ac_pt_PKG_CONFIG in
9409 [\\/]* | ?:[\\/]*)
9410 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9411 ;;
9412 *)
9413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9414for as_dir in $PATH
9415do
9416 IFS=$as_save_IFS
9417 test -z "$as_dir" && as_dir=.
9418 for ac_exec_ext in '' $ac_executable_extensions; do
9419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9420 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9421 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9422 break 2
9423 fi
9424done
9425done
9426IFS=$as_save_IFS
9427
9428 ;;
9429esac
9430fi
9431ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9432if test -n "$ac_pt_PKG_CONFIG"; then
9433 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9434$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9435else
9436 { $as_echo "$as_me:$LINENO: result: no" >&5
9437$as_echo "no" >&6; }
9438fi
9439
9440 if test "x$ac_pt_PKG_CONFIG" = x; then
9441 PKG_CONFIG=""
9442 else
9443 case $cross_compiling:$ac_tool_warned in
9444yes:)
9445{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9447ac_tool_warned=yes ;;
9448esac
9449 PKG_CONFIG=$ac_pt_PKG_CONFIG
9450 fi
9451else
9452 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9453fi
9454
9455fi
9456if test -n "$PKG_CONFIG"; then
9457 _pkg_min_version=0.9.0
9458 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9459$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9460 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9461 { $as_echo "$as_me:$LINENO: result: yes" >&5
9462$as_echo "yes" >&6; }
9463 else
9464 { $as_echo "$as_me:$LINENO: result: no" >&5
9465$as_echo "no" >&6; }
9466 PKG_CONFIG=""
9467 fi
9468
9469fi
9470
9471pkg_failed=no
a946372e
AK
9472{ $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
9473$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
e2997b73 9474
a946372e
AK
9475if test -n "$PKGCONFIGINIT_CFLAGS"; then
9476 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
e2997b73
AK
9477 elif test -n "$PKG_CONFIG"; then
9478 if test -n "$PKG_CONFIG" && \
a946372e
AK
9479 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9480 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
9481 ac_status=$?
9482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); }; then
a946372e 9484 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
e2997b73
AK
9485else
9486 pkg_failed=yes
9487fi
9488 else
9489 pkg_failed=untried
9490fi
a946372e
AK
9491if test -n "$PKGCONFIGINIT_LIBS"; then
9492 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
e2997b73
AK
9493 elif test -n "$PKG_CONFIG"; then
9494 if test -n "$PKG_CONFIG" && \
a946372e
AK
9495 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9496 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
9497 ac_status=$?
9498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; then
a946372e 9500 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
e2997b73
AK
9501else
9502 pkg_failed=yes
9503fi
9504 else
9505 pkg_failed=untried
9506fi
9507
9508
9509
9510if test $pkg_failed = yes; then
9511
9512if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9513 _pkg_short_errors_supported=yes
9514else
9515 _pkg_short_errors_supported=no
9516fi
9517 if test $_pkg_short_errors_supported = yes; then
a946372e 9518 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
e2997b73 9519 else
a946372e 9520 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
e2997b73
AK
9521 fi
9522 # Put the nasty error message in config.log where it belongs
a946372e 9523 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
e2997b73
AK
9524
9525 { $as_echo "$as_me:$LINENO: result: no" >&5
9526$as_echo "no" >&6; }
a946372e
AK
9527 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9528$as_echo "pkg-config initialized" >&6; }
e2997b73 9529elif test $pkg_failed = untried; then
a946372e
AK
9530 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9531$as_echo "pkg-config initialized" >&6; }
e2997b73 9532else
a946372e
AK
9533 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
9534 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
e2997b73
AK
9535 { $as_echo "$as_me:$LINENO: result: yes" >&5
9536$as_echo "yes" >&6; }
9537 :
9538fi
90c80887
AK
9539 PKGCONFIG_INIT=1
9540}
9541
9542################################################################################
9543{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9544$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
9545
9546# Check whether --with-clvmd was given.
9547if test "${with_clvmd+set}" = set; then
9548 withval=$with_clvmd; CLVMD="$withval"
9549else
9550 CLVMD="none"
9551fi
9552
9553if test x$CLVMD = xyes; then
9554 CLVMD=all
9555fi
9556{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9557$as_echo "$CLVMD" >&6; }
9558
9559if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9560 CLUSTER=internal
9561fi
9562
9563if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
9564 pkg_config_init
9565fi
9566
9567
9568if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
9569 BUILDGULM=yes
9570fi
9571if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
9572 BUILDCOROSYNC=yes
9573fi
9574if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
9575 BUILDOPENAIS=yes
9576fi
9577if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
9578 BUILDCMAN=yes
9579fi
9580
9581if test x$BUILDGULM = xyes; then
9582 if test x$BUILDCOROSYNC = xyes || \
9583 test x$BUILDOPENAIS = xyes; then
9584 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
9585$as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
9586 { (exit 1); exit 1; }; }
9587 fi
a946372e 9588fi
e2997b73 9589
a946372e
AK
9590soft_bailout() {
9591 NOTFOUND=1
9592}
e2997b73 9593
a946372e
AK
9594hard_bailout() {
9595 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
9596$as_echo "$as_me: error: bailing out" >&2;}
9597 { (exit 1); exit 1; }; }
9598}
9599
9600if test x$CLVMD = xall; then
9601 bailout=soft_bailout
9602 BUILDGULM=yes
9603 BUILDCMAN=yes
9604 BUILDCOROSYNC=yes
9605 BUILDOPENAIS=yes
e2997b73 9606else
a946372e 9607 bailout=hard_bailout
e2997b73 9608fi
a946372e
AK
9609
9610check_lib_no_libs() {
9611 lib_no_libs_arg1=$1
9612 shift
9613 lib_no_libs_arg2=$1
9614 shift
9615 lib_no_libs_args=$@
9616
9617as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
9618{ $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
9619$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
9620if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9621 $as_echo_n "(cached) " >&6
9622else
9623 ac_check_lib_save_LIBS=$LIBS
9624LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
9625cat >conftest.$ac_ext <<_ACEOF
9626/* confdefs.h. */
9627_ACEOF
9628cat confdefs.h >>conftest.$ac_ext
9629cat >>conftest.$ac_ext <<_ACEOF
9630/* end confdefs.h. */
9631
9632/* Override any GCC internal prototype to avoid an error.
9633 Use char because int might match the return type of a GCC
9634 builtin and then its argument prototype would still apply. */
9635#ifdef __cplusplus
9636extern "C"
9637#endif
9638char $lib_no_libs_arg2 ();
9639int
9640main ()
9641{
9642return $lib_no_libs_arg2 ();
9643 ;
9644 return 0;
9645}
9646_ACEOF
9647rm -f conftest.$ac_objext conftest$ac_exeext
9648if { (ac_try="$ac_link"
9649case "(($ac_try" in
9650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651 *) ac_try_echo=$ac_try;;
9652esac
9653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9654$as_echo "$ac_try_echo") >&5
9655 (eval "$ac_link") 2>conftest.er1
e2997b73 9656 ac_status=$?
a946372e
AK
9657 grep -v '^ *+' conftest.er1 >conftest.err
9658 rm -f conftest.er1
9659 cat conftest.err >&5
e2997b73 9660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a946372e
AK
9661 (exit $ac_status); } && {
9662 test -z "$ac_c_werror_flag" ||
9663 test ! -s conftest.err
9664 } && test -s conftest$ac_exeext && {
9665 test "$cross_compiling" = yes ||
9666 $as_test_x conftest$ac_exeext
9667 }; then
9668 eval "$as_ac_Lib=yes"
e2997b73 9669else
a946372e
AK
9670 $as_echo "$as_me: failed program was:" >&5
9671sed 's/^/| /' conftest.$ac_ext >&5
e2997b73 9672
a946372e
AK
9673 eval "$as_ac_Lib=no"
9674fi
e2997b73 9675
a946372e
AK
9676rm -rf conftest.dSYM
9677rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9678 conftest$ac_exeext conftest.$ac_ext
9679LIBS=$ac_check_lib_save_LIBS
9680fi
9681ac_res=`eval 'as_val=${'$as_ac_Lib'}
9682 $as_echo "$as_val"'`
9683 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9684$as_echo "$ac_res" >&6; }
9685as_val=`eval 'as_val=${'$as_ac_Lib'}
9686 $as_echo "$as_val"'`
9687 if test "x$as_val" = x""yes; then
9688 cat >>confdefs.h <<_ACEOF
9689#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
9690_ACEOF
e2997b73 9691
a946372e 9692 LIBS="-l$lib_no_libs_arg1 $LIBS"
e2997b73 9693
e2997b73 9694else
a946372e 9695 $bailout
e2997b73 9696fi
e2997b73 9697
a946372e
AK
9698 LIBS=$ac_check_lib_save_LIBS
9699}
9700
9701if test x$BUILDGULM = xyes; then
e2997b73
AK
9702
9703pkg_failed=no
a946372e
AK
9704{ $as_echo "$as_me:$LINENO: checking for CCS" >&5
9705$as_echo_n "checking for CCS... " >&6; }
e2997b73 9706
a946372e
AK
9707if test -n "$CCS_CFLAGS"; then
9708 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
e2997b73
AK
9709 elif test -n "$PKG_CONFIG"; then
9710 if test -n "$PKG_CONFIG" && \
a946372e
AK
9711 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9712 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
9713 ac_status=$?
9714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); }; then
a946372e 9716 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
e2997b73
AK
9717else
9718 pkg_failed=yes
9719fi
9720 else
9721 pkg_failed=untried
9722fi
a946372e
AK
9723if test -n "$CCS_LIBS"; then
9724 pkg_cv_CCS_LIBS="$CCS_LIBS"
e2997b73
AK
9725 elif test -n "$PKG_CONFIG"; then
9726 if test -n "$PKG_CONFIG" && \
a946372e
AK
9727 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9728 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
9729 ac_status=$?
9730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; then
a946372e 9732 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
e2997b73
AK
9733else
9734 pkg_failed=yes
9735fi
9736 else
9737 pkg_failed=untried
9738fi
9739
9740
9741
9742if test $pkg_failed = yes; then
9743
9744if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9745 _pkg_short_errors_supported=yes
9746else
9747 _pkg_short_errors_supported=no
9748fi
9749 if test $_pkg_short_errors_supported = yes; then
a946372e 9750 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
e2997b73 9751 else
a946372e 9752 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
e2997b73
AK
9753 fi
9754 # Put the nasty error message in config.log where it belongs
a946372e 9755 echo "$CCS_PKG_ERRORS" >&5
e2997b73
AK
9756
9757 { $as_echo "$as_me:$LINENO: result: no" >&5
9758$as_echo "no" >&6; }
a946372e 9759 NOTFOUND=0
e2997b73 9760
a946372e
AK
9761for ac_header in ccs.h
9762do
9763as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9764if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9765 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9766$as_echo_n "checking for $ac_header... " >&6; }
9767if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9768 $as_echo_n "(cached) " >&6
d0191583 9769fi
a946372e
AK
9770ac_res=`eval 'as_val=${'$as_ac_Header'}
9771 $as_echo "$as_val"'`
9772 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9773$as_echo "$ac_res" >&6; }
fc54be10 9774else
a946372e
AK
9775 # Is the header compilable?
9776{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9777$as_echo_n "checking $ac_header usability... " >&6; }
9778cat >conftest.$ac_ext <<_ACEOF
9779/* confdefs.h. */
9780_ACEOF
9781cat confdefs.h >>conftest.$ac_ext
9782cat >>conftest.$ac_ext <<_ACEOF
9783/* end confdefs.h. */
9784$ac_includes_default
9785#include <$ac_header>
9786_ACEOF
9787rm -f conftest.$ac_objext
9788if { (ac_try="$ac_compile"
9789case "(($ac_try" in
9790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9792esac
9793eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9794$as_echo "$ac_try_echo") >&5
9795 (eval "$ac_compile") 2>conftest.er1
9796 ac_status=$?
9797 grep -v '^ *+' conftest.er1 >conftest.err
9798 rm -f conftest.er1
9799 cat conftest.err >&5
9800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } && {
9802 test -z "$ac_c_werror_flag" ||
9803 test ! -s conftest.err
9804 } && test -s conftest.$ac_objext; then
9805 ac_header_compiler=yes
9806else
9807 $as_echo "$as_me: failed program was:" >&5
9808sed 's/^/| /' conftest.$ac_ext >&5
d0191583 9809
a946372e 9810 ac_header_compiler=no
d0191583
JM
9811fi
9812
a946372e
AK
9813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9814{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9815$as_echo "$ac_header_compiler" >&6; }
fddafd51 9816
a946372e
AK
9817# Is the header present?
9818{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9819$as_echo_n "checking $ac_header presence... " >&6; }
9820cat >conftest.$ac_ext <<_ACEOF
9821/* confdefs.h. */
9822_ACEOF
9823cat confdefs.h >>conftest.$ac_ext
9824cat >>conftest.$ac_ext <<_ACEOF
9825/* end confdefs.h. */
9826#include <$ac_header>
9827_ACEOF
9828if { (ac_try="$ac_cpp conftest.$ac_ext"
9829case "(($ac_try" in
9830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9831 *) ac_try_echo=$ac_try;;
9832esac
9833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9834$as_echo "$ac_try_echo") >&5
9835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9836 ac_status=$?
9837 grep -v '^ *+' conftest.er1 >conftest.err
9838 rm -f conftest.er1
9839 cat conftest.err >&5
9840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); } >/dev/null && {
9842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9843 test ! -s conftest.err
9844 }; then
9845 ac_header_preproc=yes
9846else
9847 $as_echo "$as_me: failed program was:" >&5
9848sed 's/^/| /' conftest.$ac_ext >&5
9849
9850 ac_header_preproc=no
9851fi
9852
9853rm -f conftest.err conftest.$ac_ext
9854{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9855$as_echo "$ac_header_preproc" >&6; }
9856
9857# So? What about this header?
9858case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9859 yes:no: )
9860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9861$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9863$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9864 ac_header_preproc=yes
9865 ;;
9866 no:yes:* )
9867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9868$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9870$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9872$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9874$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9876$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9878$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9879
9880 ;;
9881esac
9882{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9883$as_echo_n "checking for $ac_header... " >&6; }
9884if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9885 $as_echo_n "(cached) " >&6
9886else
9887 eval "$as_ac_Header=\$ac_header_preproc"
9888fi
9889ac_res=`eval 'as_val=${'$as_ac_Header'}
9890 $as_echo "$as_val"'`
9891 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9892$as_echo "$ac_res" >&6; }
9893
9894fi
9895as_val=`eval 'as_val=${'$as_ac_Header'}
9896 $as_echo "$as_val"'`
9897 if test "x$as_val" = x""yes; then
9898 cat >>confdefs.h <<_ACEOF
9899#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9900_ACEOF
9901
9902else
9903 $bailout
9904fi
9905
9906done
9907
9908 check_lib_no_libs ccs ccs_connect
9909 if test $NOTFOUND = 0; then
9910 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9911$as_echo "no pkg for libccs, using -lccs" >&6; }
9912 CCS_LIBS="-lccs"
9913 HAVE_CCS=yes
9914 fi
9915elif test $pkg_failed = untried; then
9916 NOTFOUND=0
9917
9918for ac_header in ccs.h
9919do
9920as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9921if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9922 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9923$as_echo_n "checking for $ac_header... " >&6; }
9924if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9925 $as_echo_n "(cached) " >&6
9926fi
9927ac_res=`eval 'as_val=${'$as_ac_Header'}
9928 $as_echo "$as_val"'`
9929 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9930$as_echo "$ac_res" >&6; }
9931else
9932 # Is the header compilable?
9933{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9934$as_echo_n "checking $ac_header usability... " >&6; }
9935cat >conftest.$ac_ext <<_ACEOF
9936/* confdefs.h. */
9937_ACEOF
9938cat confdefs.h >>conftest.$ac_ext
9939cat >>conftest.$ac_ext <<_ACEOF
9940/* end confdefs.h. */
9941$ac_includes_default
9942#include <$ac_header>
9943_ACEOF
9944rm -f conftest.$ac_objext
9945if { (ac_try="$ac_compile"
9946case "(($ac_try" in
9947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948 *) ac_try_echo=$ac_try;;
9949esac
9950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9951$as_echo "$ac_try_echo") >&5
9952 (eval "$ac_compile") 2>conftest.er1
9953 ac_status=$?
9954 grep -v '^ *+' conftest.er1 >conftest.err
9955 rm -f conftest.er1
9956 cat conftest.err >&5
9957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } && {
9959 test -z "$ac_c_werror_flag" ||
9960 test ! -s conftest.err
9961 } && test -s conftest.$ac_objext; then
9962 ac_header_compiler=yes
9963else
9964 $as_echo "$as_me: failed program was:" >&5
9965sed 's/^/| /' conftest.$ac_ext >&5
9966
9967 ac_header_compiler=no
9968fi
9969
9970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9971{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9972$as_echo "$ac_header_compiler" >&6; }
9973
9974# Is the header present?
9975{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9976$as_echo_n "checking $ac_header presence... " >&6; }
9977cat >conftest.$ac_ext <<_ACEOF
9978/* confdefs.h. */
9979_ACEOF
9980cat confdefs.h >>conftest.$ac_ext
9981cat >>conftest.$ac_ext <<_ACEOF
9982/* end confdefs.h. */
9983#include <$ac_header>
9984_ACEOF
9985if { (ac_try="$ac_cpp conftest.$ac_ext"
9986case "(($ac_try" in
9987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988 *) ac_try_echo=$ac_try;;
9989esac
9990eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9991$as_echo "$ac_try_echo") >&5
9992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9993 ac_status=$?
9994 grep -v '^ *+' conftest.er1 >conftest.err
9995 rm -f conftest.er1
9996 cat conftest.err >&5
9997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); } >/dev/null && {
9999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10000 test ! -s conftest.err
10001 }; then
10002 ac_header_preproc=yes
10003else
10004 $as_echo "$as_me: failed program was:" >&5
10005sed 's/^/| /' conftest.$ac_ext >&5
10006
10007 ac_header_preproc=no
10008fi
10009
10010rm -f conftest.err conftest.$ac_ext
10011{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10012$as_echo "$ac_header_preproc" >&6; }
10013
10014# So? What about this header?
10015case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10016 yes:no: )
10017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10018$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10020$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10021 ac_header_preproc=yes
10022 ;;
10023 no:yes:* )
10024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10025$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10027$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10029$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10031$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10033$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10035$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10036
10037 ;;
10038esac
10039{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10040$as_echo_n "checking for $ac_header... " >&6; }
10041if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10042 $as_echo_n "(cached) " >&6
10043else
10044 eval "$as_ac_Header=\$ac_header_preproc"
10045fi
10046ac_res=`eval 'as_val=${'$as_ac_Header'}
10047 $as_echo "$as_val"'`
10048 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10049$as_echo "$ac_res" >&6; }
10050
10051fi
10052as_val=`eval 'as_val=${'$as_ac_Header'}
10053 $as_echo "$as_val"'`
10054 if test "x$as_val" = x""yes; then
10055 cat >>confdefs.h <<_ACEOF
10056#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10057_ACEOF
10058
10059else
10060 $bailout
10061fi
10062
10063done
10064
10065 check_lib_no_libs ccs ccs_connect
10066 if test $NOTFOUND = 0; then
10067 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
10068$as_echo "no pkg for libccs, using -lccs" >&6; }
10069 CCS_LIBS="-lccs"
10070 HAVE_CCS=yes
10071 fi
10072else
10073 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
10074 CCS_LIBS=$pkg_cv_CCS_LIBS
10075 { $as_echo "$as_me:$LINENO: result: yes" >&5
10076$as_echo "yes" >&6; }
10077 HAVE_CCS=yes
10078fi
10079
10080pkg_failed=no
10081{ $as_echo "$as_me:$LINENO: checking for GULM" >&5
10082$as_echo_n "checking for GULM... " >&6; }
10083
10084if test -n "$GULM_CFLAGS"; then
10085 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
10086 elif test -n "$PKG_CONFIG"; then
10087 if test -n "$PKG_CONFIG" && \
10088 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10089 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10090 ac_status=$?
10091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; then
10093 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
10094else
10095 pkg_failed=yes
10096fi
10097 else
10098 pkg_failed=untried
10099fi
10100if test -n "$GULM_LIBS"; then
10101 pkg_cv_GULM_LIBS="$GULM_LIBS"
10102 elif test -n "$PKG_CONFIG"; then
10103 if test -n "$PKG_CONFIG" && \
10104 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10105 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10106 ac_status=$?
10107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; then
10109 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
10110else
10111 pkg_failed=yes
10112fi
10113 else
10114 pkg_failed=untried
10115fi
10116
10117
10118
10119if test $pkg_failed = yes; then
10120
10121if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10122 _pkg_short_errors_supported=yes
10123else
10124 _pkg_short_errors_supported=no
10125fi
10126 if test $_pkg_short_errors_supported = yes; then
10127 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
10128 else
10129 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
10130 fi
10131 # Put the nasty error message in config.log where it belongs
10132 echo "$GULM_PKG_ERRORS" >&5
10133
10134 { $as_echo "$as_me:$LINENO: result: no" >&5
10135$as_echo "no" >&6; }
10136 NOTFOUND=0
10137
10138for ac_header in libgulm.h
10139do
10140as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10141if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10142 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10143$as_echo_n "checking for $ac_header... " >&6; }
10144if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10145 $as_echo_n "(cached) " >&6
10146fi
10147ac_res=`eval 'as_val=${'$as_ac_Header'}
10148 $as_echo "$as_val"'`
10149 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10150$as_echo "$ac_res" >&6; }
10151else
10152 # Is the header compilable?
10153{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10154$as_echo_n "checking $ac_header usability... " >&6; }
10155cat >conftest.$ac_ext <<_ACEOF
10156/* confdefs.h. */
10157_ACEOF
10158cat confdefs.h >>conftest.$ac_ext
10159cat >>conftest.$ac_ext <<_ACEOF
10160/* end confdefs.h. */
10161$ac_includes_default
10162#include <$ac_header>
10163_ACEOF
10164rm -f conftest.$ac_objext
10165if { (ac_try="$ac_compile"
10166case "(($ac_try" in
10167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10168 *) ac_try_echo=$ac_try;;
10169esac
10170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10171$as_echo "$ac_try_echo") >&5
10172 (eval "$ac_compile") 2>conftest.er1
10173 ac_status=$?
10174 grep -v '^ *+' conftest.er1 >conftest.err
10175 rm -f conftest.er1
10176 cat conftest.err >&5
10177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } && {
10179 test -z "$ac_c_werror_flag" ||
10180 test ! -s conftest.err
10181 } && test -s conftest.$ac_objext; then
10182 ac_header_compiler=yes
10183else
10184 $as_echo "$as_me: failed program was:" >&5
10185sed 's/^/| /' conftest.$ac_ext >&5
10186
10187 ac_header_compiler=no
10188fi
10189
10190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10191{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10192$as_echo "$ac_header_compiler" >&6; }
10193
10194# Is the header present?
10195{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10196$as_echo_n "checking $ac_header presence... " >&6; }
10197cat >conftest.$ac_ext <<_ACEOF
10198/* confdefs.h. */
10199_ACEOF
10200cat confdefs.h >>conftest.$ac_ext
10201cat >>conftest.$ac_ext <<_ACEOF
10202/* end confdefs.h. */
10203#include <$ac_header>
10204_ACEOF
10205if { (ac_try="$ac_cpp conftest.$ac_ext"
10206case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10209esac
10210eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10211$as_echo "$ac_try_echo") >&5
10212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10213 ac_status=$?
10214 grep -v '^ *+' conftest.er1 >conftest.err
10215 rm -f conftest.er1
10216 cat conftest.err >&5
10217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } >/dev/null && {
10219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10220 test ! -s conftest.err
10221 }; then
10222 ac_header_preproc=yes
10223else
10224 $as_echo "$as_me: failed program was:" >&5
10225sed 's/^/| /' conftest.$ac_ext >&5
10226
10227 ac_header_preproc=no
10228fi
10229
10230rm -f conftest.err conftest.$ac_ext
10231{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10232$as_echo "$ac_header_preproc" >&6; }
10233
10234# So? What about this header?
10235case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10236 yes:no: )
10237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10238$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10240$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10241 ac_header_preproc=yes
10242 ;;
10243 no:yes:* )
10244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10245$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10247$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10249$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10250 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10251$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10253$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10255$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10256
10257 ;;
10258esac
10259{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10260$as_echo_n "checking for $ac_header... " >&6; }
10261if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10262 $as_echo_n "(cached) " >&6
10263else
10264 eval "$as_ac_Header=\$ac_header_preproc"
10265fi
10266ac_res=`eval 'as_val=${'$as_ac_Header'}
10267 $as_echo "$as_val"'`
10268 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10269$as_echo "$ac_res" >&6; }
10270
10271fi
10272as_val=`eval 'as_val=${'$as_ac_Header'}
10273 $as_echo "$as_val"'`
10274 if test "x$as_val" = x""yes; then
10275 cat >>confdefs.h <<_ACEOF
10276#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10277_ACEOF
10278
10279else
10280 $bailout
10281fi
10282
10283done
10284
10285 check_lib_no_libs gulm lg_core_login
10286 if test $NOTFOUND = 0; then
10287 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10288$as_echo "no pkg for libgulm, using -lgulm" >&6; }
10289 GULM_LIBS="-lgulm"
10290 HAVE_GULM=yes
10291 fi
10292elif test $pkg_failed = untried; then
10293 NOTFOUND=0
10294
10295for ac_header in libgulm.h
10296do
10297as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10299 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10300$as_echo_n "checking for $ac_header... " >&6; }
10301if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10302 $as_echo_n "(cached) " >&6
10303fi
10304ac_res=`eval 'as_val=${'$as_ac_Header'}
10305 $as_echo "$as_val"'`
10306 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10307$as_echo "$ac_res" >&6; }
10308else
10309 # Is the header compilable?
10310{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10311$as_echo_n "checking $ac_header usability... " >&6; }
10312cat >conftest.$ac_ext <<_ACEOF
10313/* confdefs.h. */
10314_ACEOF
10315cat confdefs.h >>conftest.$ac_ext
10316cat >>conftest.$ac_ext <<_ACEOF
10317/* end confdefs.h. */
10318$ac_includes_default
10319#include <$ac_header>
10320_ACEOF
10321rm -f conftest.$ac_objext
10322if { (ac_try="$ac_compile"
10323case "(($ac_try" in
10324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10325 *) ac_try_echo=$ac_try;;
10326esac
10327eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10328$as_echo "$ac_try_echo") >&5
10329 (eval "$ac_compile") 2>conftest.er1
10330 ac_status=$?
10331 grep -v '^ *+' conftest.er1 >conftest.err
10332 rm -f conftest.er1
10333 cat conftest.err >&5
10334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); } && {
10336 test -z "$ac_c_werror_flag" ||
10337 test ! -s conftest.err
10338 } && test -s conftest.$ac_objext; then
10339 ac_header_compiler=yes
10340else
10341 $as_echo "$as_me: failed program was:" >&5
10342sed 's/^/| /' conftest.$ac_ext >&5
10343
10344 ac_header_compiler=no
10345fi
10346
10347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10348{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10349$as_echo "$ac_header_compiler" >&6; }
10350
10351# Is the header present?
10352{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10353$as_echo_n "checking $ac_header presence... " >&6; }
10354cat >conftest.$ac_ext <<_ACEOF
10355/* confdefs.h. */
10356_ACEOF
10357cat confdefs.h >>conftest.$ac_ext
10358cat >>conftest.$ac_ext <<_ACEOF
10359/* end confdefs.h. */
10360#include <$ac_header>
10361_ACEOF
10362if { (ac_try="$ac_cpp conftest.$ac_ext"
10363case "(($ac_try" in
10364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10365 *) ac_try_echo=$ac_try;;
10366esac
10367eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10368$as_echo "$ac_try_echo") >&5
10369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10370 ac_status=$?
10371 grep -v '^ *+' conftest.er1 >conftest.err
10372 rm -f conftest.er1
10373 cat conftest.err >&5
10374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); } >/dev/null && {
10376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10377 test ! -s conftest.err
10378 }; then
10379 ac_header_preproc=yes
10380else
10381 $as_echo "$as_me: failed program was:" >&5
10382sed 's/^/| /' conftest.$ac_ext >&5
10383
10384 ac_header_preproc=no
10385fi
10386
10387rm -f conftest.err conftest.$ac_ext
10388{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10389$as_echo "$ac_header_preproc" >&6; }
10390
10391# So? What about this header?
10392case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10393 yes:no: )
10394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10395$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10397$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10398 ac_header_preproc=yes
10399 ;;
10400 no:yes:* )
10401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10402$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10404$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10406$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10408$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10410$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10412$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10413
10414 ;;
10415esac
10416{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10417$as_echo_n "checking for $ac_header... " >&6; }
10418if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10419 $as_echo_n "(cached) " >&6
10420else
10421 eval "$as_ac_Header=\$ac_header_preproc"
10422fi
10423ac_res=`eval 'as_val=${'$as_ac_Header'}
10424 $as_echo "$as_val"'`
10425 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10426$as_echo "$ac_res" >&6; }
10427
10428fi
10429as_val=`eval 'as_val=${'$as_ac_Header'}
10430 $as_echo "$as_val"'`
10431 if test "x$as_val" = x""yes; then
10432 cat >>confdefs.h <<_ACEOF
10433#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10434_ACEOF
10435
10436else
10437 $bailout
10438fi
10439
10440done
10441
10442 check_lib_no_libs gulm lg_core_login
10443 if test $NOTFOUND = 0; then
10444 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10445$as_echo "no pkg for libgulm, using -lgulm" >&6; }
10446 GULM_LIBS="-lgulm"
10447 HAVE_GULM=yes
10448 fi
10449else
10450 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
10451 GULM_LIBS=$pkg_cv_GULM_LIBS
10452 { $as_echo "$as_me:$LINENO: result: yes" >&5
10453$as_echo "yes" >&6; }
10454 HAVE_GULM=yes
10455fi
10456fi
10457
10458if test x$BUILDCMAN = xyes; then
10459
10460pkg_failed=no
10461{ $as_echo "$as_me:$LINENO: checking for CMAN" >&5
10462$as_echo_n "checking for CMAN... " >&6; }
10463
10464if test -n "$CMAN_CFLAGS"; then
10465 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
10466 elif test -n "$PKG_CONFIG"; then
10467 if test -n "$PKG_CONFIG" && \
10468 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10469 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10470 ac_status=$?
10471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); }; then
10473 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
10474else
10475 pkg_failed=yes
10476fi
10477 else
10478 pkg_failed=untried
10479fi
10480if test -n "$CMAN_LIBS"; then
10481 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
10482 elif test -n "$PKG_CONFIG"; then
10483 if test -n "$PKG_CONFIG" && \
10484 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10485 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10486 ac_status=$?
10487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); }; then
10489 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
10490else
10491 pkg_failed=yes
10492fi
10493 else
10494 pkg_failed=untried
10495fi
10496
10497
10498
10499if test $pkg_failed = yes; then
10500
10501if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10502 _pkg_short_errors_supported=yes
10503else
10504 _pkg_short_errors_supported=no
10505fi
10506 if test $_pkg_short_errors_supported = yes; then
10507 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
10508 else
10509 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
10510 fi
10511 # Put the nasty error message in config.log where it belongs
10512 echo "$CMAN_PKG_ERRORS" >&5
10513
10514 { $as_echo "$as_me:$LINENO: result: no" >&5
10515$as_echo "no" >&6; }
10516 NOTFOUND=0
10517
10518for ac_header in libcman.h
10519do
10520as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10521if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10522 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10523$as_echo_n "checking for $ac_header... " >&6; }
10524if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10525 $as_echo_n "(cached) " >&6
10526fi
10527ac_res=`eval 'as_val=${'$as_ac_Header'}
10528 $as_echo "$as_val"'`
10529 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10530$as_echo "$ac_res" >&6; }
10531else
10532 # Is the header compilable?
10533{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10534$as_echo_n "checking $ac_header usability... " >&6; }
10535cat >conftest.$ac_ext <<_ACEOF
10536/* confdefs.h. */
10537_ACEOF
10538cat confdefs.h >>conftest.$ac_ext
10539cat >>conftest.$ac_ext <<_ACEOF
10540/* end confdefs.h. */
10541$ac_includes_default
10542#include <$ac_header>
10543_ACEOF
10544rm -f conftest.$ac_objext
10545if { (ac_try="$ac_compile"
10546case "(($ac_try" in
10547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548 *) ac_try_echo=$ac_try;;
10549esac
10550eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10551$as_echo "$ac_try_echo") >&5
10552 (eval "$ac_compile") 2>conftest.er1
10553 ac_status=$?
10554 grep -v '^ *+' conftest.er1 >conftest.err
10555 rm -f conftest.er1
10556 cat conftest.err >&5
10557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } && {
10559 test -z "$ac_c_werror_flag" ||
10560 test ! -s conftest.err
10561 } && test -s conftest.$ac_objext; then
10562 ac_header_compiler=yes
10563else
10564 $as_echo "$as_me: failed program was:" >&5
10565sed 's/^/| /' conftest.$ac_ext >&5
10566
10567 ac_header_compiler=no
10568fi
10569
10570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10571{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10572$as_echo "$ac_header_compiler" >&6; }
10573
10574# Is the header present?
10575{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10576$as_echo_n "checking $ac_header presence... " >&6; }
10577cat >conftest.$ac_ext <<_ACEOF
10578/* confdefs.h. */
10579_ACEOF
10580cat confdefs.h >>conftest.$ac_ext
10581cat >>conftest.$ac_ext <<_ACEOF
10582/* end confdefs.h. */
10583#include <$ac_header>
10584_ACEOF
10585if { (ac_try="$ac_cpp conftest.$ac_ext"
10586case "(($ac_try" in
10587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10588 *) ac_try_echo=$ac_try;;
10589esac
10590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10591$as_echo "$ac_try_echo") >&5
10592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10593 ac_status=$?
10594 grep -v '^ *+' conftest.er1 >conftest.err
10595 rm -f conftest.er1
10596 cat conftest.err >&5
10597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); } >/dev/null && {
10599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10600 test ! -s conftest.err
10601 }; then
10602 ac_header_preproc=yes
10603else
10604 $as_echo "$as_me: failed program was:" >&5
10605sed 's/^/| /' conftest.$ac_ext >&5
10606
10607 ac_header_preproc=no
10608fi
10609
10610rm -f conftest.err conftest.$ac_ext
10611{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10612$as_echo "$ac_header_preproc" >&6; }
10613
10614# So? What about this header?
10615case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10616 yes:no: )
10617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10618$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10620$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10621 ac_header_preproc=yes
10622 ;;
10623 no:yes:* )
10624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10625$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10627$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10629$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10631$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10633$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10635$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10636
10637 ;;
10638esac
10639{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10640$as_echo_n "checking for $ac_header... " >&6; }
10641if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10642 $as_echo_n "(cached) " >&6
10643else
10644 eval "$as_ac_Header=\$ac_header_preproc"
10645fi
10646ac_res=`eval 'as_val=${'$as_ac_Header'}
10647 $as_echo "$as_val"'`
10648 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10649$as_echo "$ac_res" >&6; }
10650
10651fi
10652as_val=`eval 'as_val=${'$as_ac_Header'}
10653 $as_echo "$as_val"'`
10654 if test "x$as_val" = x""yes; then
10655 cat >>confdefs.h <<_ACEOF
10656#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10657_ACEOF
10658
10659else
10660 $bailout
10661fi
10662
10663done
10664
10665 check_lib_no_libs cman cman_init
10666 if test $NOTFOUND = 0; then
10667 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10668$as_echo "no pkg for libcman, using -lcman" >&6; }
10669 CMAN_LIBS="-lcman"
10670 HAVE_CMAN=yes
10671 fi
10672elif test $pkg_failed = untried; then
10673 NOTFOUND=0
10674
10675for ac_header in libcman.h
10676do
10677as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10678if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10679 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10680$as_echo_n "checking for $ac_header... " >&6; }
10681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10682 $as_echo_n "(cached) " >&6
10683fi
10684ac_res=`eval 'as_val=${'$as_ac_Header'}
10685 $as_echo "$as_val"'`
10686 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10687$as_echo "$ac_res" >&6; }
10688else
10689 # Is the header compilable?
10690{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10691$as_echo_n "checking $ac_header usability... " >&6; }
10692cat >conftest.$ac_ext <<_ACEOF
10693/* confdefs.h. */
10694_ACEOF
10695cat confdefs.h >>conftest.$ac_ext
10696cat >>conftest.$ac_ext <<_ACEOF
10697/* end confdefs.h. */
10698$ac_includes_default
10699#include <$ac_header>
10700_ACEOF
10701rm -f conftest.$ac_objext
10702if { (ac_try="$ac_compile"
10703case "(($ac_try" in
10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10706esac
10707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10708$as_echo "$ac_try_echo") >&5
10709 (eval "$ac_compile") 2>conftest.er1
10710 ac_status=$?
10711 grep -v '^ *+' conftest.er1 >conftest.err
10712 rm -f conftest.er1
10713 cat conftest.err >&5
10714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); } && {
10716 test -z "$ac_c_werror_flag" ||
10717 test ! -s conftest.err
10718 } && test -s conftest.$ac_objext; then
10719 ac_header_compiler=yes
10720else
10721 $as_echo "$as_me: failed program was:" >&5
10722sed 's/^/| /' conftest.$ac_ext >&5
10723
10724 ac_header_compiler=no
10725fi
10726
10727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10728{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10729$as_echo "$ac_header_compiler" >&6; }
10730
10731# Is the header present?
10732{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10733$as_echo_n "checking $ac_header presence... " >&6; }
10734cat >conftest.$ac_ext <<_ACEOF
10735/* confdefs.h. */
10736_ACEOF
10737cat confdefs.h >>conftest.$ac_ext
10738cat >>conftest.$ac_ext <<_ACEOF
10739/* end confdefs.h. */
10740#include <$ac_header>
10741_ACEOF
10742if { (ac_try="$ac_cpp conftest.$ac_ext"
10743case "(($ac_try" in
10744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745 *) ac_try_echo=$ac_try;;
10746esac
10747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10748$as_echo "$ac_try_echo") >&5
10749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10750 ac_status=$?
10751 grep -v '^ *+' conftest.er1 >conftest.err
10752 rm -f conftest.er1
10753 cat conftest.err >&5
10754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } >/dev/null && {
10756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10757 test ! -s conftest.err
10758 }; then
10759 ac_header_preproc=yes
10760else
10761 $as_echo "$as_me: failed program was:" >&5
10762sed 's/^/| /' conftest.$ac_ext >&5
10763
10764 ac_header_preproc=no
10765fi
10766
10767rm -f conftest.err conftest.$ac_ext
10768{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10769$as_echo "$ac_header_preproc" >&6; }
10770
10771# So? What about this header?
10772case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10773 yes:no: )
10774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10775$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10777$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10778 ac_header_preproc=yes
10779 ;;
10780 no:yes:* )
10781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10782$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10784$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10786$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10788$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10790$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10792$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10793
10794 ;;
10795esac
10796{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10797$as_echo_n "checking for $ac_header... " >&6; }
10798if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10799 $as_echo_n "(cached) " >&6
10800else
10801 eval "$as_ac_Header=\$ac_header_preproc"
10802fi
10803ac_res=`eval 'as_val=${'$as_ac_Header'}
10804 $as_echo "$as_val"'`
10805 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10806$as_echo "$ac_res" >&6; }
10807
10808fi
10809as_val=`eval 'as_val=${'$as_ac_Header'}
10810 $as_echo "$as_val"'`
10811 if test "x$as_val" = x""yes; then
10812 cat >>confdefs.h <<_ACEOF
10813#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10814_ACEOF
10815
10816else
10817 $bailout
10818fi
10819
10820done
10821
10822 check_lib_no_libs cman cman_init
10823 if test $NOTFOUND = 0; then
10824 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10825$as_echo "no pkg for libcman, using -lcman" >&6; }
10826 CMAN_LIBS="-lcman"
10827 HAVE_CMAN=yes
10828 fi
10829else
10830 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
10831 CMAN_LIBS=$pkg_cv_CMAN_LIBS
10832 { $as_echo "$as_me:$LINENO: result: yes" >&5
10833$as_echo "yes" >&6; }
10834 HAVE_CMAN=yes
10835fi
10836 CHECKCONFDB=yes
10837 CHECKDLM=yes
10838fi
10839
10840if test x$BUILDCOROSYNC = xyes || \
10841 test x$BUILDOPENAIS = xyes; then
10842
10843pkg_failed=no
10844{ $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
10845$as_echo_n "checking for COROSYNC... " >&6; }
10846
10847if test -n "$COROSYNC_CFLAGS"; then
10848 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
10849 elif test -n "$PKG_CONFIG"; then
10850 if test -n "$PKG_CONFIG" && \
10851 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10852 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10853 ac_status=$?
10854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }; then
10856 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
10857else
10858 pkg_failed=yes
10859fi
10860 else
10861 pkg_failed=untried
10862fi
10863if test -n "$COROSYNC_LIBS"; then
10864 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
10865 elif test -n "$PKG_CONFIG"; then
10866 if test -n "$PKG_CONFIG" && \
10867 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10868 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10869 ac_status=$?
10870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); }; then
10872 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
10873else
10874 pkg_failed=yes
10875fi
10876 else
10877 pkg_failed=untried
10878fi
10879
10880
10881
10882if test $pkg_failed = yes; then
10883
10884if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10885 _pkg_short_errors_supported=yes
10886else
10887 _pkg_short_errors_supported=no
10888fi
10889 if test $_pkg_short_errors_supported = yes; then
10890 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
10891 else
10892 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
10893 fi
10894 # Put the nasty error message in config.log where it belongs
10895 echo "$COROSYNC_PKG_ERRORS" >&5
10896
10897 { $as_echo "$as_me:$LINENO: result: no" >&5
10898$as_echo "no" >&6; }
10899 $bailout
10900elif test $pkg_failed = untried; then
10901 $bailout
10902else
10903 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
10904 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
10905 { $as_echo "$as_me:$LINENO: result: yes" >&5
10906$as_echo "yes" >&6; }
10907 HAVE_COROSYNC=yes
10908fi
10909 CHECKCONFDB=yes
10910fi
10911
10912if test x$BUILDCOROSYNC = xyes; then
10913
10914pkg_failed=no
10915{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
10916$as_echo_n "checking for QUORUM... " >&6; }
10917
10918if test -n "$QUORUM_CFLAGS"; then
10919 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
10920 elif test -n "$PKG_CONFIG"; then
10921 if test -n "$PKG_CONFIG" && \
10922 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10923 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10924 ac_status=$?
10925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; then
10927 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
10928else
10929 pkg_failed=yes
10930fi
10931 else
10932 pkg_failed=untried
10933fi
10934if test -n "$QUORUM_LIBS"; then
10935 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
10936 elif test -n "$PKG_CONFIG"; then
10937 if test -n "$PKG_CONFIG" && \
10938 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10939 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10940 ac_status=$?
10941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; then
10943 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
10944else
10945 pkg_failed=yes
10946fi
10947 else
10948 pkg_failed=untried
10949fi
10950
10951
10952
10953if test $pkg_failed = yes; then
10954
10955if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10956 _pkg_short_errors_supported=yes
10957else
10958 _pkg_short_errors_supported=no
10959fi
10960 if test $_pkg_short_errors_supported = yes; then
10961 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
10962 else
10963 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
10964 fi
10965 # Put the nasty error message in config.log where it belongs
10966 echo "$QUORUM_PKG_ERRORS" >&5
10967
10968 { $as_echo "$as_me:$LINENO: result: no" >&5
10969$as_echo "no" >&6; }
10970 $bailout
10971elif test $pkg_failed = untried; then
10972 $bailout
10973else
10974 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
10975 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
10976 { $as_echo "$as_me:$LINENO: result: yes" >&5
10977$as_echo "yes" >&6; }
10978 HAVE_QUORUM=yes
10979fi
10980 CHECKCPG=yes
10981 CHECKDLM=yes
10982fi
10983
10984if test x$BUILDOPENAIS = xyes; then
10985
10986pkg_failed=no
10987{ $as_echo "$as_me:$LINENO: checking for SALCK" >&5
10988$as_echo_n "checking for SALCK... " >&6; }
10989
10990if test -n "$SALCK_CFLAGS"; then
10991 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
10992 elif test -n "$PKG_CONFIG"; then
10993 if test -n "$PKG_CONFIG" && \
10994 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
10995 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
10996 ac_status=$?
10997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; then
10999 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
11000else
11001 pkg_failed=yes
11002fi
11003 else
11004 pkg_failed=untried
11005fi
11006if test -n "$SALCK_LIBS"; then
11007 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
11008 elif test -n "$PKG_CONFIG"; then
11009 if test -n "$PKG_CONFIG" && \
11010 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
11011 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
11012 ac_status=$?
11013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); }; then
11015 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
11016else
11017 pkg_failed=yes
11018fi
11019 else
11020 pkg_failed=untried
11021fi
11022
11023
11024
11025if test $pkg_failed = yes; then
11026
11027if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11028 _pkg_short_errors_supported=yes
11029else
11030 _pkg_short_errors_supported=no
11031fi
11032 if test $_pkg_short_errors_supported = yes; then
11033 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
11034 else
11035 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
11036 fi
11037 # Put the nasty error message in config.log where it belongs
11038 echo "$SALCK_PKG_ERRORS" >&5
11039
11040 { $as_echo "$as_me:$LINENO: result: no" >&5
11041$as_echo "no" >&6; }
11042 $bailout
11043elif test $pkg_failed = untried; then
11044 $bailout
11045else
11046 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
11047 SALCK_LIBS=$pkg_cv_SALCK_LIBS
11048 { $as_echo "$as_me:$LINENO: result: yes" >&5
11049$as_echo "yes" >&6; }
11050 HAVE_SALCK=yes
11051fi
11052 CHECKCPG=yes
11053fi
11054
11055
11056
11057if test x$CHECKCONFDB = xyes; then
11058
11059pkg_failed=no
11060{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
11061$as_echo_n "checking for CONFDB... " >&6; }
11062
11063if test -n "$CONFDB_CFLAGS"; then
11064 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
11065 elif test -n "$PKG_CONFIG"; then
11066 if test -n "$PKG_CONFIG" && \
11067 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11068 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11069 ac_status=$?
11070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; then
11072 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
11073else
11074 pkg_failed=yes
11075fi
11076 else
11077 pkg_failed=untried
11078fi
11079if test -n "$CONFDB_LIBS"; then
11080 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
11081 elif test -n "$PKG_CONFIG"; then
11082 if test -n "$PKG_CONFIG" && \
11083 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11084 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11085 ac_status=$?
11086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); }; then
11088 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
11089else
11090 pkg_failed=yes
11091fi
11092 else
11093 pkg_failed=untried
11094fi
11095
11096
11097
11098if test $pkg_failed = yes; then
11099
11100if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11101 _pkg_short_errors_supported=yes
11102else
11103 _pkg_short_errors_supported=no
11104fi
11105 if test $_pkg_short_errors_supported = yes; then
11106 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
11107 else
11108 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
11109 fi
11110 # Put the nasty error message in config.log where it belongs
11111 echo "$CONFDB_PKG_ERRORS" >&5
11112
11113 { $as_echo "$as_me:$LINENO: result: no" >&5
11114$as_echo "no" >&6; }
11115 HAVE_CONFDB=no
11116elif test $pkg_failed = untried; then
11117 HAVE_CONFDB=no
11118else
11119 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
11120 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
11121 { $as_echo "$as_me:$LINENO: result: yes" >&5
11122$as_echo "yes" >&6; }
11123 HAVE_CONFDB=yes
11124fi
11125
11126
11127for ac_header in corosync/confdb.h
11128do
11129as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11130if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11131 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11132$as_echo_n "checking for $ac_header... " >&6; }
11133if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11134 $as_echo_n "(cached) " >&6
11135fi
11136ac_res=`eval 'as_val=${'$as_ac_Header'}
11137 $as_echo "$as_val"'`
11138 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11139$as_echo "$ac_res" >&6; }
11140else
11141 # Is the header compilable?
11142{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11143$as_echo_n "checking $ac_header usability... " >&6; }
11144cat >conftest.$ac_ext <<_ACEOF
11145/* confdefs.h. */
11146_ACEOF
11147cat confdefs.h >>conftest.$ac_ext
11148cat >>conftest.$ac_ext <<_ACEOF
11149/* end confdefs.h. */
11150$ac_includes_default
11151#include <$ac_header>
11152_ACEOF
11153rm -f conftest.$ac_objext
11154if { (ac_try="$ac_compile"
11155case "(($ac_try" in
11156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11157 *) ac_try_echo=$ac_try;;
11158esac
11159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11160$as_echo "$ac_try_echo") >&5
11161 (eval "$ac_compile") 2>conftest.er1
11162 ac_status=$?
11163 grep -v '^ *+' conftest.er1 >conftest.err
11164 rm -f conftest.er1
11165 cat conftest.err >&5
11166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); } && {
11168 test -z "$ac_c_werror_flag" ||
11169 test ! -s conftest.err
11170 } && test -s conftest.$ac_objext; then
11171 ac_header_compiler=yes
11172else
11173 $as_echo "$as_me: failed program was:" >&5
11174sed 's/^/| /' conftest.$ac_ext >&5
11175
11176 ac_header_compiler=no
11177fi
11178
11179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11180{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11181$as_echo "$ac_header_compiler" >&6; }
11182
11183# Is the header present?
11184{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11185$as_echo_n "checking $ac_header presence... " >&6; }
11186cat >conftest.$ac_ext <<_ACEOF
11187/* confdefs.h. */
11188_ACEOF
11189cat confdefs.h >>conftest.$ac_ext
11190cat >>conftest.$ac_ext <<_ACEOF
11191/* end confdefs.h. */
11192#include <$ac_header>
11193_ACEOF
11194if { (ac_try="$ac_cpp conftest.$ac_ext"
11195case "(($ac_try" in
11196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11197 *) ac_try_echo=$ac_try;;
11198esac
11199eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11200$as_echo "$ac_try_echo") >&5
11201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11202 ac_status=$?
11203 grep -v '^ *+' conftest.er1 >conftest.err
11204 rm -f conftest.er1
11205 cat conftest.err >&5
11206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); } >/dev/null && {
11208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11209 test ! -s conftest.err
11210 }; then
11211 ac_header_preproc=yes
11212else
11213 $as_echo "$as_me: failed program was:" >&5
11214sed 's/^/| /' conftest.$ac_ext >&5
11215
11216 ac_header_preproc=no
11217fi
11218
11219rm -f conftest.err conftest.$ac_ext
11220{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11221$as_echo "$ac_header_preproc" >&6; }
11222
11223# So? What about this header?
11224case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11225 yes:no: )
11226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11227$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11229$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11230 ac_header_preproc=yes
11231 ;;
11232 no:yes:* )
11233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11234$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11236$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11238$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11240$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11242$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11244$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11245
11246 ;;
11247esac
11248{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11249$as_echo_n "checking for $ac_header... " >&6; }
11250if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11251 $as_echo_n "(cached) " >&6
11252else
11253 eval "$as_ac_Header=\$ac_header_preproc"
11254fi
11255ac_res=`eval 'as_val=${'$as_ac_Header'}
11256 $as_echo "$as_val"'`
11257 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11258$as_echo "$ac_res" >&6; }
11259
11260fi
11261as_val=`eval 'as_val=${'$as_ac_Header'}
11262 $as_echo "$as_val"'`
11263 if test "x$as_val" = x""yes; then
11264 cat >>confdefs.h <<_ACEOF
11265#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11266_ACEOF
11267 HAVE_CONFDB_H=yes
11268else
11269 HAVE_CONFDB_H=no
11270fi
11271
11272done
11273
11274
11275 if test x$HAVE_CONFDB != xyes && \
11276 test x$HAVE_CONFDB_H = xyes; then
11277 check_lib_no_libs confdb confdb_initialize
11278 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
11279$as_echo "no pkg for confdb, using -lconfdb" >&6; }
11280 CONFDB_LIBS="-lconfdb"
11281 HAVE_CONFDB=yes
11282 fi
11283
11284 if test x$BUILDCOROSYNC = xyes && \
11285 test x$HAVE_CONFDB != xyes &&
11286 test x$CLVMD != xall; then
11287 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
11288$as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
11289 { (exit 1); exit 1; }; }
11290 fi
11291fi
11292
11293if test x$CHECKCPG = xyes; then
11294
11295pkg_failed=no
11296{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
11297$as_echo_n "checking for CPG... " >&6; }
11298
11299if test -n "$CPG_CFLAGS"; then
11300 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11301 elif test -n "$PKG_CONFIG"; then
11302 if test -n "$PKG_CONFIG" && \
11303 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11304 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11305 ac_status=$?
11306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); }; then
11308 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11309else
11310 pkg_failed=yes
11311fi
11312 else
11313 pkg_failed=untried
11314fi
11315if test -n "$CPG_LIBS"; then
11316 pkg_cv_CPG_LIBS="$CPG_LIBS"
11317 elif test -n "$PKG_CONFIG"; then
11318 if test -n "$PKG_CONFIG" && \
11319 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11320 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11321 ac_status=$?
11322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; then
11324 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11325else
11326 pkg_failed=yes
11327fi
11328 else
11329 pkg_failed=untried
11330fi
11331
11332
11333
11334if test $pkg_failed = yes; then
11335
11336if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11337 _pkg_short_errors_supported=yes
11338else
11339 _pkg_short_errors_supported=no
11340fi
11341 if test $_pkg_short_errors_supported = yes; then
11342 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11343 else
11344 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11345 fi
11346 # Put the nasty error message in config.log where it belongs
11347 echo "$CPG_PKG_ERRORS" >&5
11348
11349 { $as_echo "$as_me:$LINENO: result: no" >&5
11350$as_echo "no" >&6; }
11351 $bailout
11352elif test $pkg_failed = untried; then
11353 $bailout
11354else
11355 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11356 CPG_LIBS=$pkg_cv_CPG_LIBS
11357 { $as_echo "$as_me:$LINENO: result: yes" >&5
11358$as_echo "yes" >&6; }
11359 HAVE_CPG=yes
11360fi
11361fi
11362
11363if test x$CHECKDLM = xyes; then
11364
11365pkg_failed=no
11366{ $as_echo "$as_me:$LINENO: checking for DLM" >&5
11367$as_echo_n "checking for DLM... " >&6; }
11368
11369if test -n "$DLM_CFLAGS"; then
11370 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
11371 elif test -n "$PKG_CONFIG"; then
11372 if test -n "$PKG_CONFIG" && \
11373 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11374 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11375 ac_status=$?
11376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); }; then
11378 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
11379else
11380 pkg_failed=yes
11381fi
11382 else
11383 pkg_failed=untried
11384fi
11385if test -n "$DLM_LIBS"; then
11386 pkg_cv_DLM_LIBS="$DLM_LIBS"
11387 elif test -n "$PKG_CONFIG"; then
11388 if test -n "$PKG_CONFIG" && \
11389 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11390 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11391 ac_status=$?
11392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; then
11394 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
11395else
11396 pkg_failed=yes
11397fi
11398 else
11399 pkg_failed=untried
11400fi
11401
11402
11403
11404if test $pkg_failed = yes; then
11405
11406if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11407 _pkg_short_errors_supported=yes
11408else
11409 _pkg_short_errors_supported=no
11410fi
11411 if test $_pkg_short_errors_supported = yes; then
11412 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
11413 else
11414 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
11415 fi
11416 # Put the nasty error message in config.log where it belongs
11417 echo "$DLM_PKG_ERRORS" >&5
11418
11419 { $as_echo "$as_me:$LINENO: result: no" >&5
11420$as_echo "no" >&6; }
11421 NOTFOUND=0
11422
11423for ac_header in libdlm.h
11424do
11425as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11426if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11427 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11428$as_echo_n "checking for $ac_header... " >&6; }
11429if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11430 $as_echo_n "(cached) " >&6
11431fi
11432ac_res=`eval 'as_val=${'$as_ac_Header'}
11433 $as_echo "$as_val"'`
11434 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11435$as_echo "$ac_res" >&6; }
11436else
11437 # Is the header compilable?
11438{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11439$as_echo_n "checking $ac_header usability... " >&6; }
11440cat >conftest.$ac_ext <<_ACEOF
11441/* confdefs.h. */
11442_ACEOF
11443cat confdefs.h >>conftest.$ac_ext
11444cat >>conftest.$ac_ext <<_ACEOF
11445/* end confdefs.h. */
11446$ac_includes_default
11447#include <$ac_header>
11448_ACEOF
11449rm -f conftest.$ac_objext
11450if { (ac_try="$ac_compile"
11451case "(($ac_try" in
11452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11453 *) ac_try_echo=$ac_try;;
11454esac
11455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11456$as_echo "$ac_try_echo") >&5
11457 (eval "$ac_compile") 2>conftest.er1
11458 ac_status=$?
11459 grep -v '^ *+' conftest.er1 >conftest.err
11460 rm -f conftest.er1
11461 cat conftest.err >&5
11462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); } && {
11464 test -z "$ac_c_werror_flag" ||
11465 test ! -s conftest.err
11466 } && test -s conftest.$ac_objext; then
11467 ac_header_compiler=yes
11468else
11469 $as_echo "$as_me: failed program was:" >&5
11470sed 's/^/| /' conftest.$ac_ext >&5
11471
11472 ac_header_compiler=no
11473fi
11474
11475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11476{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11477$as_echo "$ac_header_compiler" >&6; }
11478
11479# Is the header present?
11480{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11481$as_echo_n "checking $ac_header presence... " >&6; }
11482cat >conftest.$ac_ext <<_ACEOF
11483/* confdefs.h. */
11484_ACEOF
11485cat confdefs.h >>conftest.$ac_ext
11486cat >>conftest.$ac_ext <<_ACEOF
11487/* end confdefs.h. */
11488#include <$ac_header>
11489_ACEOF
11490if { (ac_try="$ac_cpp conftest.$ac_ext"
11491case "(($ac_try" in
11492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11493 *) ac_try_echo=$ac_try;;
11494esac
11495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11496$as_echo "$ac_try_echo") >&5
11497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11498 ac_status=$?
11499 grep -v '^ *+' conftest.er1 >conftest.err
11500 rm -f conftest.er1
11501 cat conftest.err >&5
11502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } >/dev/null && {
11504 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11505 test ! -s conftest.err
11506 }; then
11507 ac_header_preproc=yes
11508else
11509 $as_echo "$as_me: failed program was:" >&5
11510sed 's/^/| /' conftest.$ac_ext >&5
11511
11512 ac_header_preproc=no
11513fi
11514
11515rm -f conftest.err conftest.$ac_ext
11516{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11517$as_echo "$ac_header_preproc" >&6; }
11518
11519# So? What about this header?
11520case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11521 yes:no: )
11522 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11523$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11524 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11525$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11526 ac_header_preproc=yes
11527 ;;
11528 no:yes:* )
11529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11530$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11532$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11534$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11536$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11538$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11540$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11541
11542 ;;
11543esac
11544{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11545$as_echo_n "checking for $ac_header... " >&6; }
11546if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11547 $as_echo_n "(cached) " >&6
11548else
11549 eval "$as_ac_Header=\$ac_header_preproc"
11550fi
11551ac_res=`eval 'as_val=${'$as_ac_Header'}
11552 $as_echo "$as_val"'`
11553 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11554$as_echo "$ac_res" >&6; }
11555
11556fi
11557as_val=`eval 'as_val=${'$as_ac_Header'}
11558 $as_echo "$as_val"'`
11559 if test "x$as_val" = x""yes; then
11560 cat >>confdefs.h <<_ACEOF
11561#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11562_ACEOF
11563
11564else
11565 $bailout
11566fi
11567
11568done
11569
11570 check_lib_no_libs dlm dlm_lock -lpthread
11571 if test $NOTFOUND = 0; then
11572 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11573$as_echo "no pkg for libdlm, using -ldlm" >&6; }
11574 DLM_LIBS="-ldlm -lpthread"
11575 HAVE_DLM=yes
11576 fi
11577elif test $pkg_failed = untried; then
11578 NOTFOUND=0
11579
11580for ac_header in libdlm.h
11581do
11582as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11583if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11584 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11585$as_echo_n "checking for $ac_header... " >&6; }
11586if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11587 $as_echo_n "(cached) " >&6
11588fi
11589ac_res=`eval 'as_val=${'$as_ac_Header'}
11590 $as_echo "$as_val"'`
11591 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11592$as_echo "$ac_res" >&6; }
11593else
11594 # Is the header compilable?
11595{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11596$as_echo_n "checking $ac_header usability... " >&6; }
11597cat >conftest.$ac_ext <<_ACEOF
11598/* confdefs.h. */
11599_ACEOF
11600cat confdefs.h >>conftest.$ac_ext
11601cat >>conftest.$ac_ext <<_ACEOF
11602/* end confdefs.h. */
11603$ac_includes_default
11604#include <$ac_header>
11605_ACEOF
11606rm -f conftest.$ac_objext
11607if { (ac_try="$ac_compile"
11608case "(($ac_try" in
11609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610 *) ac_try_echo=$ac_try;;
11611esac
11612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11613$as_echo "$ac_try_echo") >&5
11614 (eval "$ac_compile") 2>conftest.er1
11615 ac_status=$?
11616 grep -v '^ *+' conftest.er1 >conftest.err
11617 rm -f conftest.er1
11618 cat conftest.err >&5
11619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); } && {
11621 test -z "$ac_c_werror_flag" ||
11622 test ! -s conftest.err
11623 } && test -s conftest.$ac_objext; then
11624 ac_header_compiler=yes
11625else
11626 $as_echo "$as_me: failed program was:" >&5
11627sed 's/^/| /' conftest.$ac_ext >&5
11628
11629 ac_header_compiler=no
11630fi
11631
11632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11633{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11634$as_echo "$ac_header_compiler" >&6; }
11635
11636# Is the header present?
11637{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11638$as_echo_n "checking $ac_header presence... " >&6; }
11639cat >conftest.$ac_ext <<_ACEOF
11640/* confdefs.h. */
11641_ACEOF
11642cat confdefs.h >>conftest.$ac_ext
11643cat >>conftest.$ac_ext <<_ACEOF
11644/* end confdefs.h. */
11645#include <$ac_header>
11646_ACEOF
11647if { (ac_try="$ac_cpp conftest.$ac_ext"
11648case "(($ac_try" in
11649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650 *) ac_try_echo=$ac_try;;
11651esac
11652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11653$as_echo "$ac_try_echo") >&5
11654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11655 ac_status=$?
11656 grep -v '^ *+' conftest.er1 >conftest.err
11657 rm -f conftest.er1
11658 cat conftest.err >&5
11659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } >/dev/null && {
11661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11662 test ! -s conftest.err
11663 }; then
11664 ac_header_preproc=yes
11665else
11666 $as_echo "$as_me: failed program was:" >&5
11667sed 's/^/| /' conftest.$ac_ext >&5
11668
11669 ac_header_preproc=no
11670fi
11671
11672rm -f conftest.err conftest.$ac_ext
11673{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11674$as_echo "$ac_header_preproc" >&6; }
11675
11676# So? What about this header?
11677case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11678 yes:no: )
11679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11680$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11682$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11683 ac_header_preproc=yes
11684 ;;
11685 no:yes:* )
11686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11687$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11689$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11691$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11693$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11695$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11697$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11698
11699 ;;
11700esac
11701{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11702$as_echo_n "checking for $ac_header... " >&6; }
11703if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11704 $as_echo_n "(cached) " >&6
11705else
11706 eval "$as_ac_Header=\$ac_header_preproc"
11707fi
11708ac_res=`eval 'as_val=${'$as_ac_Header'}
11709 $as_echo "$as_val"'`
11710 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11711$as_echo "$ac_res" >&6; }
11712
11713fi
11714as_val=`eval 'as_val=${'$as_ac_Header'}
11715 $as_echo "$as_val"'`
11716 if test "x$as_val" = x""yes; then
11717 cat >>confdefs.h <<_ACEOF
11718#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11719_ACEOF
11720
11721else
11722 $bailout
11723fi
11724
11725done
11726
11727 check_lib_no_libs dlm dlm_lock -lpthread
11728 if test $NOTFOUND = 0; then
11729 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11730$as_echo "no pkg for libdlm, using -ldlm" >&6; }
11731 DLM_LIBS="-ldlm -lpthread"
11732 HAVE_DLM=yes
11733 fi
11734else
11735 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
11736 DLM_LIBS=$pkg_cv_DLM_LIBS
11737 { $as_echo "$as_me:$LINENO: result: yes" >&5
11738$as_echo "yes" >&6; }
11739 HAVE_DLM=yes
11740fi
11741fi
11742
11743if test x$CLVMD = xall; then
8c222979 11744 CLVMD=none
a946372e
AK
11745 if test x$HAVE_CCS = xyes && \
11746 test x$HAVE_GULM = xyes; then
8c222979
FDN
11747 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
11748$as_echo "Enabling clvmd gulm cluster manager" >&6; }
11749 CLVMD="$CLVMD,gulm"
a946372e
AK
11750 fi
11751 if test x$HAVE_CMAN = xyes && \
11752 test x$HAVE_DLM = xyes; then
8c222979
FDN
11753 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
11754$as_echo "Enabling clvmd cman cluster manager" >&6; }
11755 CLVMD="$CLVMD,cman"
a946372e
AK
11756 fi
11757 if test x$HAVE_COROSYNC = xyes && \
11758 test x$HAVE_QUORUM = xyes && \
11759 test x$HAVE_CPG = xyes && \
11760 test x$HAVE_DLM = xyes && \
11761 test x$HAVE_CONFDB = xyes; then
8c222979
FDN
11762 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
11763$as_echo "Enabling clvmd corosync cluster manager" >&6; }
11764 CLVMD="$CLVMD,corosync"
a946372e
AK
11765 fi
11766 if test x$HAVE_COROSYNC = xyes && \
11767 test x$HAVE_CPG = xyes && \
11768 test x$HAVE_SALCK = xyes; then
8c222979
FDN
11769 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
11770$as_echo "Enabling clvmd openais cluster manager" >&6; }
11771 CLVMD="$CLVMD,openais"
11772 fi
11773 if test x$CLVMD = xnone; then
11774 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
11775$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
a946372e 11776 fi
a946372e
AK
11777fi
11778
11779################################################################################
66fd4529
AK
11780{ $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
11781$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
11782# Check whether --enable-cmirrord was given.
11783if test "${enable_cmirrord+set}" = set; then
11784 enableval=$enable_cmirrord; CMIRRORD=$enableval
11785else
11786 CMIRRORD=no
11787fi
11788
11789{ $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
11790$as_echo "$CMIRRORD" >&6; }
11791
11792BUILD_CMIRRORD=$CMIRRORD
11793
11794################################################################################
11795
11796
11797if test "x$BUILD_CMIRRORD" = xyes; then
11798
11799# Check whether --with-cmirrord-pidfile was given.
11800if test "${with_cmirrord_pidfile+set}" = set; then
11801 withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF
11802#define CMIRRORD_PIDFILE "$withval"
11803_ACEOF
11804
11805else
11806 cat >>confdefs.h <<_ACEOF
11807#define CMIRRORD_PIDFILE "/var/run/cmirrord.pid"
11808_ACEOF
11809
a946372e
AK
11810fi
11811
66fd4529 11812fi
a946372e 11813
66fd4529
AK
11814################################################################################
11815if [ "x$BUILD_CMIRRORD" = xyes ]; then
90c80887
AK
11816 if test x$PKGCONFIG_INIT != x1; then
11817 pkg_config_init
11818 fi
11819
11820pkg_failed=no
11821{ $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
11822$as_echo_n "checking for SACKPT... " >&6; }
11823
11824if test -n "$SACKPT_CFLAGS"; then
11825 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
11826 elif test -n "$PKG_CONFIG"; then
11827 if test -n "$PKG_CONFIG" && \
11828 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11829 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11830 ac_status=$?
11831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; then
11833 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
11834else
11835 pkg_failed=yes
11836fi
11837 else
11838 pkg_failed=untried
11839fi
11840if test -n "$SACKPT_LIBS"; then
11841 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
11842 elif test -n "$PKG_CONFIG"; then
11843 if test -n "$PKG_CONFIG" && \
11844 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11845 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11846 ac_status=$?
11847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; then
11849 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
11850else
11851 pkg_failed=yes
11852fi
11853 else
11854 pkg_failed=untried
11855fi
11856
11857
11858
11859if test $pkg_failed = yes; then
11860
11861if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11862 _pkg_short_errors_supported=yes
11863else
11864 _pkg_short_errors_supported=no
11865fi
11866 if test $_pkg_short_errors_supported = yes; then
11867 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
11868 else
11869 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
11870 fi
11871 # Put the nasty error message in config.log where it belongs
11872 echo "$SACKPT_PKG_ERRORS" >&5
11873
11874 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
11875
11876$SACKPT_PKG_ERRORS
11877
11878Consider adjusting the PKG_CONFIG_PATH environment variable if you
11879installed software in a non-standard prefix.
11880
11881Alternatively, you may set the environment variables SACKPT_CFLAGS
11882and SACKPT_LIBS to avoid the need to call pkg-config.
11883See the pkg-config man page for more details.
11884" >&5
11885$as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
11886
11887$SACKPT_PKG_ERRORS
11888
11889Consider adjusting the PKG_CONFIG_PATH environment variable if you
11890installed software in a non-standard prefix.
11891
11892Alternatively, you may set the environment variables SACKPT_CFLAGS
11893and SACKPT_LIBS to avoid the need to call pkg-config.
11894See the pkg-config man page for more details.
11895" >&2;}
11896 { (exit 1); exit 1; }; }
11897elif test $pkg_failed = untried; then
11898 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11900{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11901is in your PATH or set the PKG_CONFIG environment variable to the full
11902path to pkg-config.
11903
11904Alternatively, you may set the environment variables SACKPT_CFLAGS
11905and SACKPT_LIBS to avoid the need to call pkg-config.
11906See the pkg-config man page for more details.
11907
11908To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11909See \`config.log' for more details." >&5
11910$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11911is in your PATH or set the PKG_CONFIG environment variable to the full
11912path to pkg-config.
11913
11914Alternatively, you may set the environment variables SACKPT_CFLAGS
11915and SACKPT_LIBS to avoid the need to call pkg-config.
11916See the pkg-config man page for more details.
11917
11918To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11919See \`config.log' for more details." >&2;}
11920 { (exit 1); exit 1; }; }; }
11921else
11922 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
11923 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
11924 { $as_echo "$as_me:$LINENO: result: yes" >&5
11925$as_echo "yes" >&6; }
11926 :
11927fi
11928 if test x$HAVE_CPG != xyes; then
a946372e
AK
11929
11930pkg_failed=no
11931{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
11932$as_echo_n "checking for CPG... " >&6; }
11933
11934if test -n "$CPG_CFLAGS"; then
11935 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11936 elif test -n "$PKG_CONFIG"; then
11937 if test -n "$PKG_CONFIG" && \
11938 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11939 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11940 ac_status=$?
11941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; then
11943 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11944else
11945 pkg_failed=yes
11946fi
11947 else
11948 pkg_failed=untried
11949fi
11950if test -n "$CPG_LIBS"; then
11951 pkg_cv_CPG_LIBS="$CPG_LIBS"
11952 elif test -n "$PKG_CONFIG"; then
11953 if test -n "$PKG_CONFIG" && \
11954 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11955 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11956 ac_status=$?
11957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; then
11959 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11960else
11961 pkg_failed=yes
11962fi
11963 else
11964 pkg_failed=untried
11965fi
11966
11967
11968
11969if test $pkg_failed = yes; then
11970
11971if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11972 _pkg_short_errors_supported=yes
11973else
11974 _pkg_short_errors_supported=no
11975fi
11976 if test $_pkg_short_errors_supported = yes; then
11977 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11978 else
11979 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11980 fi
11981 # Put the nasty error message in config.log where it belongs
11982 echo "$CPG_PKG_ERRORS" >&5
11983
90c80887
AK
11984 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
11985
11986$CPG_PKG_ERRORS
11987
11988Consider adjusting the PKG_CONFIG_PATH environment variable if you
11989installed software in a non-standard prefix.
11990
11991Alternatively, you may set the environment variables CPG_CFLAGS
11992and CPG_LIBS to avoid the need to call pkg-config.
11993See the pkg-config man page for more details.
11994" >&5
11995$as_echo "$as_me: error: Package requirements (libcpg) were not met:
11996
11997$CPG_PKG_ERRORS
11998
11999Consider adjusting the PKG_CONFIG_PATH environment variable if you
12000installed software in a non-standard prefix.
12001
12002Alternatively, you may set the environment variables CPG_CFLAGS
12003and CPG_LIBS to avoid the need to call pkg-config.
12004See the pkg-config man page for more details.
12005" >&2;}
12006 { (exit 1); exit 1; }; }
a946372e 12007elif test $pkg_failed = untried; then
90c80887
AK
12008 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12009$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12010{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12011is in your PATH or set the PKG_CONFIG environment variable to the full
12012path to pkg-config.
12013
12014Alternatively, you may set the environment variables CPG_CFLAGS
12015and CPG_LIBS to avoid the need to call pkg-config.
12016See the pkg-config man page for more details.
12017
12018To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12019See \`config.log' for more details." >&5
12020$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12021is in your PATH or set the PKG_CONFIG environment variable to the full
12022path to pkg-config.
12023
12024Alternatively, you may set the environment variables CPG_CFLAGS
12025and CPG_LIBS to avoid the need to call pkg-config.
12026See the pkg-config man page for more details.
12027
12028To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12029See \`config.log' for more details." >&2;}
12030 { (exit 1); exit 1; }; }; }
a946372e
AK
12031else
12032 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
12033 CPG_LIBS=$pkg_cv_CPG_LIBS
12034 { $as_echo "$as_me:$LINENO: result: yes" >&5
12035$as_echo "yes" >&6; }
12036 :
12037fi
90c80887 12038 fi
a946372e
AK
12039fi
12040
12041################################################################################
12042{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
12043$as_echo_n "checking whether to enable debugging... " >&6; }
12044# Check whether --enable-debug was given.
12045if test "${enable_debug+set}" = set; then
12046 enableval=$enable_debug; DEBUG=$enableval
12047else
12048 DEBUG=no
12049fi
12050
12051{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
12052$as_echo "$DEBUG" >&6; }
12053
12054if test x$DEBUG = xyes; then
12055 COPTIMISE_FLAG=
12056else
12057 CSCOPE_CMD=
12058fi
12059
12060################################################################################
12061{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
12062$as_echo_n "checking for C optimisation flag... " >&6; }
12063
12064# Check whether --with-optimisation was given.
12065if test "${with_optimisation+set}" = set; then
12066 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
12067fi
12068
12069{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
12070$as_echo "$COPTIMISE_FLAG" >&6; }
12071
12072################################################################################
12073{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
12074$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
12075# Check whether --enable-profiling was given.
12076if test "${enable_profiling+set}" = set; then
5556819a 12077 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 12078else
5556819a 12079 PROFILING=no
fddafd51
ZK
12080fi
12081
ec6a6fbe
AK
12082{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
12083$as_echo "$PROFILING" >&6; }
5556819a
AK
12084
12085if test "x$PROFILING" = xyes; then
12086 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
12087 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 12088set dummy lcov; ac_word=$2
ec6a6fbe
AK
12089{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12090$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 12091if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 12092 $as_echo_n "(cached) " >&6
fddafd51
ZK
12093else
12094 case $LCOV in
12095 [\\/]* | ?:[\\/]*)
12096 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
12097 ;;
12098 *)
12099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12100for as_dir in $PATH
12101do
12102 IFS=$as_save_IFS
12103 test -z "$as_dir" && as_dir=.
12104 for ac_exec_ext in '' $ac_executable_extensions; do
12105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12106 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 12107 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
12108 break 2
12109 fi
12110done
12111done
12112IFS=$as_save_IFS
12113
b145d876 12114 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
fddafd51
ZK
12115 ;;
12116esac
12117fi
12118LCOV=$ac_cv_path_LCOV
12119if test -n "$LCOV"; then
ec6a6fbe
AK
12120 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
12121$as_echo "$LCOV" >&6; }
fddafd51 12122else
ec6a6fbe
AK
12123 { $as_echo "$as_me:$LINENO: result: no" >&5
12124$as_echo "no" >&6; }
fddafd51
ZK
12125fi
12126
12127
5556819a 12128 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 12129set dummy genhtml; ac_word=$2
ec6a6fbe
AK
12130{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12131$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 12132if test "${ac_cv_path_GENHTML+set}" = set; then
ec6a6fbe 12133 $as_echo_n "(cached) " >&6
fddafd51
ZK
12134else
12135 case $GENHTML in
12136 [\\/]* | ?:[\\/]*)
12137 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
12138 ;;
12139 *)
12140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12141for as_dir in $PATH
12142do
12143 IFS=$as_save_IFS
12144 test -z "$as_dir" && as_dir=.
12145 for ac_exec_ext in '' $ac_executable_extensions; do
12146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12147 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 12148 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
12149 break 2
12150 fi
12151done
12152done
12153IFS=$as_save_IFS
12154
b145d876 12155 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
fddafd51
ZK
12156 ;;
12157esac
12158fi
12159GENHTML=$ac_cv_path_GENHTML
12160if test -n "$GENHTML"; then
ec6a6fbe
AK
12161 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
12162$as_echo "$GENHTML" >&6; }
fddafd51 12163else
ec6a6fbe
AK
12164 { $as_echo "$as_me:$LINENO: result: no" >&5
12165$as_echo "no" >&6; }
fddafd51
ZK
12166fi
12167
12168
b145d876 12169 if test "$LCOV" = no -o "$GENHTML" = no ; then
ec6a6fbe
AK
12170 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
12171$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
12172 { (exit 1); exit 1; }; }
12173 fi
5556819a 12174fi
d0191583
JM
12175
12176################################################################################
ec6a6fbe
AK
12177{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
12178$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
12179# Check whether --enable-devmapper was given.
12180if test "${enable_devmapper+set}" = set; then
12181 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
12182fi
12183
ec6a6fbe
AK
12184{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
12185$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
12186
12187if test x$DEVMAPPER = xyes; then
ad6254c5
AK
12188
12189cat >>confdefs.h <<\_ACEOF
d0191583 12190#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
12191_ACEOF
12192
12193fi
12194
a5f46f6a
AK
12195################################################################################
12196{ $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
12197$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
12198# Check whether --enable-udev_sync was given.
12199if test "${enable_udev_sync+set}" = set; then
12200 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
12201else
12202 UDEV_SYNC=no
12203fi
12204
12205{ $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
12206$as_echo "$UDEV_SYNC" >&6; }
12207
12208if test x$UDEV_SYNC = xyes; then
12209
12210cat >>confdefs.h <<\_ACEOF
12211#define UDEV_SYNC_SUPPORT 1
12212_ACEOF
12213
12214fi
12215
12216{ $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
12217$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
12218# Check whether --enable-udev_rules was given.
12219if test "${enable_udev_rules+set}" = set; then
12220 enableval=$enable_udev_rules; UDEV_RULES=$enableval
12221else
12222 UDEV_RULES=$UDEV_SYNC
12223fi
12224
12225{ $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
12226$as_echo "$UDEV_RULES" >&6; }
12227
90c80887
AK
12228################################################################################
12229
12230if test x$UDEV_SYNC = xyes; then
12231 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
12232$as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
12233if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
12234 $as_echo_n "(cached) " >&6
12235else
12236 ac_check_lib_save_LIBS=$LIBS
12237LIBS="-ludev $LIBS"
12238cat >conftest.$ac_ext <<_ACEOF
12239/* confdefs.h. */
12240_ACEOF
12241cat confdefs.h >>conftest.$ac_ext
12242cat >>conftest.$ac_ext <<_ACEOF
12243/* end confdefs.h. */
12244
12245/* Override any GCC internal prototype to avoid an error.
12246 Use char because int might match the return type of a GCC
12247 builtin and then its argument prototype would still apply. */
12248#ifdef __cplusplus
12249extern "C"
12250#endif
12251char udev_queue_get_udev_is_active ();
12252int
12253main ()
12254{
12255return udev_queue_get_udev_is_active ();
12256 ;
12257 return 0;
12258}
12259_ACEOF
12260rm -f conftest.$ac_objext conftest$ac_exeext
12261if { (ac_try="$ac_link"
12262case "(($ac_try" in
12263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12264 *) ac_try_echo=$ac_try;;
12265esac
12266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12267$as_echo "$ac_try_echo") >&5
12268 (eval "$ac_link") 2>conftest.er1
12269 ac_status=$?
12270 grep -v '^ *+' conftest.er1 >conftest.err
12271 rm -f conftest.er1
12272 cat conftest.err >&5
12273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } && {
12275 test -z "$ac_c_werror_flag" ||
12276 test ! -s conftest.err
12277 } && test -s conftest$ac_exeext && {
12278 test "$cross_compiling" = yes ||
12279 $as_test_x conftest$ac_exeext
12280 }; then
12281 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
12282else
12283 $as_echo "$as_me: failed program was:" >&5
12284sed 's/^/| /' conftest.$ac_ext >&5
12285
12286 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
12287fi
12288
12289rm -rf conftest.dSYM
12290rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12291 conftest$ac_exeext conftest.$ac_ext
12292LIBS=$ac_check_lib_save_LIBS
12293fi
12294{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
12295$as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
12296if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
12297 HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=yes
12298else
12299 HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=no
12300fi
12301
12302
12303 if test x$HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE = xyes; then
12304
12305cat >>confdefs.h <<\_ACEOF
12306#define HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE 1
12307_ACEOF
12308
12309 LIBS="-ludev $LIBS"
0878503f
PR
12310 else
12311 { $as_echo "$as_me:$LINENO: WARNING: It won't be possible to get udev state. We will assume that udev is not running." >&5
12312$as_echo "$as_me: WARNING: It won't be possible to get udev state. We will assume that udev is not running." >&2;}
90c80887
AK
12313 fi
12314fi
12315
93bd259b
AK
12316################################################################################
12317# Check whether --enable-compat was given.
12318if test "${enable_compat+set}" = set; then
12319 enableval=$enable_compat; DM_COMPAT=$enableval
12320else
12321 DM_COMPAT=no
12322fi
12323
12324
95eaa683
AK
12325################################################################################
12326# Check whether --enable-units-compat was given.
12327if test "${enable_units_compat+set}" = set; then
12328 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
12329else
12330 UNITS_COMPAT=no
12331fi
12332
12333
12334if test x$UNITS_COMPAT = xyes; then
12335
12336cat >>confdefs.h <<\_ACEOF
12337#define DEFAULT_SI_UNIT_CONSISTENCY 0
12338_ACEOF
12339
12340fi
12341
93bd259b
AK
12342################################################################################
12343# Check whether --enable-ioctl was given.
12344if test "${enable_ioctl+set}" = set; then
12345 enableval=$enable_ioctl; DM_IOCTLS=$enableval
12346fi
12347
12348
d0191583 12349################################################################################
ec6a6fbe
AK
12350{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
12351$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
12352# Check whether --enable-o_direct was given.
12353if test "${enable_o_direct+set}" = set; then
12354 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 12355fi
ad6254c5 12356
ec6a6fbe
AK
12357{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
12358$as_echo "$ODIRECT" >&6; }
ad6254c5 12359
d0191583 12360if test x$ODIRECT = xyes; then
ad6254c5 12361
d0191583
JM
12362cat >>confdefs.h <<\_ACEOF
12363#define O_DIRECT_SUPPORT 1
12364_ACEOF
ad6254c5 12365
d0191583 12366fi
ad6254c5 12367
572fefeb
AK
12368################################################################################
12369{ $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
12370$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
12371# Check whether --enable-applib was given.
12372if test "${enable_applib+set}" = set; then
12373 enableval=$enable_applib; APPLIB=$enableval
12374else
12375 APPLIB=no
12376fi
12377
12378{ $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
12379$as_echo "$APPLIB" >&6; }
12380
12381test x$APPLIB = xyes \
12382 && LVM2APP_LIB=-llvm2app \
12383 || LVM2APP_LIB=
12384
d0191583 12385################################################################################
ec6a6fbe
AK
12386{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
12387$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
12388# Check whether --enable-cmdlib was given.
12389if test "${enable_cmdlib+set}" = set; then
12390 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 12391else
d0191583
JM
12392 CMDLIB=no
12393fi
8a2fc586 12394
ec6a6fbe
AK
12395{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
12396$as_echo "$CMDLIB" >&6; }
8a2fc586 12397
2a9a80c9 12398test x$CMDLIB = xyes \
d179cc7a
JM
12399 && LVM2CMD_LIB=-llvm2cmd \
12400 || LVM2CMD_LIB=
12401
93bd259b
AK
12402################################################################################
12403# Check whether --enable-pkgconfig was given.
12404if test "${enable_pkgconfig+set}" = set; then
12405 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
12406else
12407 PKGCONFIG=no
12408fi
12409
2a9a80c9 12410
d0191583 12411################################################################################
ec6a6fbe
AK
12412{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
12413$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
12414# Check whether --enable-fsadm was given.
12415if test "${enable_fsadm+set}" = set; then
12416 enableval=$enable_fsadm; FSADM=$enableval
12417fi
8a2fc586 12418
ec6a6fbe
AK
12419{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
12420$as_echo "$FSADM" >&6; }
8a2fc586 12421
d0191583 12422################################################################################
ec6a6fbe
AK
12423{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
12424$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
12425# Check whether --enable-dmeventd was given.
12426if test "${enable_dmeventd+set}" = set; then
12427 enableval=$enable_dmeventd; DMEVENTD=$enableval
12428fi
ad6254c5 12429
ec6a6fbe
AK
12430{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
12431$as_echo "$DMEVENTD" >&6; }
ad6254c5 12432
93bd259b
AK
12433BUILD_DMEVENTD=$DMEVENTD
12434
2a9a80c9
PR
12435if test x$DMEVENTD = xyes; then
12436 if test x$MIRRORS != xinternal; then
ec6a6fbe 12437 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 12438 " >&5
ec6a6fbe 12439$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 12440 " >&2;}
d0191583 12441 { (exit 1); exit 1; }; }
2a9a80c9
PR
12442 fi
12443 if test x$CMDLIB = xno; then
ec6a6fbe 12444 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 12445 " >&5
ec6a6fbe 12446$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
12447 " >&2;}
12448 { (exit 1); exit 1; }; }
12449 fi
ad6254c5 12450fi
7a197a62 12451
d0191583
JM
12452if test x$DMEVENTD = xyes; then
12453
12454cat >>confdefs.h <<\_ACEOF
12455#define DMEVENTD 1
ad6254c5
AK
12456_ACEOF
12457
ad6254c5 12458fi
93bd259b
AK
12459
12460################################################################################
12461
ec6a6fbe
AK
12462{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
12463$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 12464if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 12465 $as_echo_n "(cached) " >&6
93bd259b
AK
12466else
12467 ac_check_lib_save_LIBS=$LIBS
12468LIBS="-lc $LIBS"
12469cat >conftest.$ac_ext <<_ACEOF
12470/* confdefs.h. */
12471_ACEOF
12472cat confdefs.h >>conftest.$ac_ext
12473cat >>conftest.$ac_ext <<_ACEOF
12474/* end confdefs.h. */
12475
12476/* Override any GCC internal prototype to avoid an error.
12477 Use char because int might match the return type of a GCC
12478 builtin and then its argument prototype would still apply. */
12479#ifdef __cplusplus
12480extern "C"
12481#endif
12482char getline ();
12483int
12484main ()
12485{
12486return getline ();
12487 ;
12488 return 0;
12489}
12490_ACEOF
12491rm -f conftest.$ac_objext conftest$ac_exeext
12492if { (ac_try="$ac_link"
12493case "(($ac_try" in
12494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12495 *) ac_try_echo=$ac_try;;
12496esac
ec6a6fbe
AK
12497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12498$as_echo "$ac_try_echo") >&5
93bd259b
AK
12499 (eval "$ac_link") 2>conftest.er1
12500 ac_status=$?
12501 grep -v '^ *+' conftest.er1 >conftest.err
12502 rm -f conftest.er1
12503 cat conftest.err >&5
ec6a6fbe 12504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
12505 (exit $ac_status); } && {
12506 test -z "$ac_c_werror_flag" ||
12507 test ! -s conftest.err
ec6a6fbe
AK
12508 } && test -s conftest$ac_exeext && {
12509 test "$cross_compiling" = yes ||
12510 $as_test_x conftest$ac_exeext
12511 }; then
93bd259b
AK
12512 ac_cv_lib_c_getline=yes
12513else
ec6a6fbe 12514 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
12515sed 's/^/| /' conftest.$ac_ext >&5
12516
12517 ac_cv_lib_c_getline=no
12518fi
12519
ec6a6fbe 12520rm -rf conftest.dSYM
93bd259b
AK
12521rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12522 conftest$ac_exeext conftest.$ac_ext
12523LIBS=$ac_check_lib_save_LIBS
12524fi
ec6a6fbe
AK
12525{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
12526$as_echo "$ac_cv_lib_c_getline" >&6; }
12527if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
12528
12529cat >>confdefs.h <<\_ACEOF
12530#define HAVE_GETLINE 1
12531_ACEOF
12532
12533fi
12534
12535
12536################################################################################
12537
ec6a6fbe
AK
12538{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
12539$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 12540if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 12541 $as_echo_n "(cached) " >&6
93bd259b
AK
12542else
12543 ac_check_lib_save_LIBS=$LIBS
12544LIBS="-lc $LIBS"
12545cat >conftest.$ac_ext <<_ACEOF
12546/* confdefs.h. */
12547_ACEOF
12548cat confdefs.h >>conftest.$ac_ext
12549cat >>conftest.$ac_ext <<_ACEOF
12550/* end confdefs.h. */
12551
12552/* Override any GCC internal prototype to avoid an error.
12553 Use char because int might match the return type of a GCC
12554 builtin and then its argument prototype would still apply. */
12555#ifdef __cplusplus
12556extern "C"
12557#endif
12558char canonicalize_file_name ();
12559int
12560main ()
12561{
12562return canonicalize_file_name ();
12563 ;
12564 return 0;
12565}
12566_ACEOF
12567rm -f conftest.$ac_objext conftest$ac_exeext
12568if { (ac_try="$ac_link"
12569case "(($ac_try" in
12570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12571 *) ac_try_echo=$ac_try;;
12572esac
ec6a6fbe
AK
12573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12574$as_echo "$ac_try_echo") >&5
93bd259b
AK
12575 (eval "$ac_link") 2>conftest.er1
12576 ac_status=$?
12577 grep -v '^ *+' conftest.er1 >conftest.err
12578 rm -f conftest.er1
12579 cat conftest.err >&5
ec6a6fbe 12580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
12581 (exit $ac_status); } && {
12582 test -z "$ac_c_werror_flag" ||
12583 test ! -s conftest.err
ec6a6fbe
AK
12584 } && test -s conftest$ac_exeext && {
12585 test "$cross_compiling" = yes ||
12586 $as_test_x conftest$ac_exeext
12587 }; then
93bd259b
AK
12588 ac_cv_lib_c_canonicalize_file_name=yes
12589else
ec6a6fbe 12590 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
12591sed 's/^/| /' conftest.$ac_ext >&5
12592
12593 ac_cv_lib_c_canonicalize_file_name=no
12594fi
12595
ec6a6fbe 12596rm -rf conftest.dSYM
93bd259b
AK
12597rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12598 conftest$ac_exeext conftest.$ac_ext
12599LIBS=$ac_check_lib_save_LIBS
12600fi
ec6a6fbe
AK
12601{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
12602$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
12603if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
12604
12605cat >>confdefs.h <<\_ACEOF
12606#define HAVE_CANONICALIZE_FILE_NAME 1
12607_ACEOF
12608
12609fi
12610
12611
d0191583
JM
12612################################################################################
12613if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
12614 then exec_prefix="";
12615fi;
ad6254c5 12616
ad6254c5 12617################################################################################
ec6a6fbe
AK
12618{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12619$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 12620if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 12621 $as_echo_n "(cached) " >&6
ad6254c5
AK
12622else
12623 ac_check_lib_save_LIBS=$LIBS
12624LIBS="-ldl $LIBS"
12625cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12626/* confdefs.h. */
12627_ACEOF
12628cat confdefs.h >>conftest.$ac_ext
12629cat >>conftest.$ac_ext <<_ACEOF
12630/* end confdefs.h. */
12631
7a197a62
AK
12632/* Override any GCC internal prototype to avoid an error.
12633 Use char because int might match the return type of a GCC
12634 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12635#ifdef __cplusplus
12636extern "C"
12637#endif
ad6254c5
AK
12638char dlopen ();
12639int
12640main ()
12641{
7a197a62 12642return dlopen ();
ad6254c5
AK
12643 ;
12644 return 0;
12645}
12646_ACEOF
12647rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12648if { (ac_try="$ac_link"
12649case "(($ac_try" in
12650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651 *) ac_try_echo=$ac_try;;
12652esac
ec6a6fbe
AK
12653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12654$as_echo "$ac_try_echo") >&5
7a197a62 12655 (eval "$ac_link") 2>conftest.er1
ad6254c5 12656 ac_status=$?
8a2fc586
AK
12657 grep -v '^ *+' conftest.er1 >conftest.err
12658 rm -f conftest.er1
12659 cat conftest.err >&5
ec6a6fbe 12660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12661 (exit $ac_status); } && {
12662 test -z "$ac_c_werror_flag" ||
12663 test ! -s conftest.err
ec6a6fbe
AK
12664 } && test -s conftest$ac_exeext && {
12665 test "$cross_compiling" = yes ||
12666 $as_test_x conftest$ac_exeext
12667 }; then
ad6254c5
AK
12668 ac_cv_lib_dl_dlopen=yes
12669else
ec6a6fbe 12670 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12671sed 's/^/| /' conftest.$ac_ext >&5
12672
7a197a62 12673 ac_cv_lib_dl_dlopen=no
ad6254c5 12674fi
7a197a62 12675
ec6a6fbe 12676rm -rf conftest.dSYM
25fbec5b 12677rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 12678 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
12679LIBS=$ac_check_lib_save_LIBS
12680fi
ec6a6fbe
AK
12681{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12682$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12683if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5
AK
12684 HAVE_LIBDL=yes
12685else
12686 HAVE_LIBDL=no
12687fi
12688
12689
7e9e9502 12690if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
12691
12692cat >>confdefs.h <<\_ACEOF
12693#define HAVE_LIBDL 1
12694_ACEOF
12695
ad6254c5
AK
12696 LIBS="-ldl $LIBS"
12697else
12698 HAVE_LIBDL=no
12699fi
12700
12701################################################################################
12702if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
12703 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
12704 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 12705 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 12706" >&5
ec6a6fbe 12707$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
12708" >&2;}
12709 { (exit 1); exit 1; }; }
12710fi
12711
f30875db
ZK
12712################################################################################
12713if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
12714 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
12715$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
12716if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
12717 $as_echo_n "(cached) " >&6
12718else
12719 ac_check_lib_save_LIBS=$LIBS
12720LIBS="-lpthread $LIBS"
12721cat >conftest.$ac_ext <<_ACEOF
12722/* confdefs.h. */
12723_ACEOF
12724cat confdefs.h >>conftest.$ac_ext
12725cat >>conftest.$ac_ext <<_ACEOF
12726/* end confdefs.h. */
12727
12728/* Override any GCC internal prototype to avoid an error.
12729 Use char because int might match the return type of a GCC
12730 builtin and then its argument prototype would still apply. */
12731#ifdef __cplusplus
12732extern "C"
12733#endif
12734char pthread_mutex_lock ();
12735int
12736main ()
12737{
12738return pthread_mutex_lock ();
12739 ;
12740 return 0;
12741}
12742_ACEOF
12743rm -f conftest.$ac_objext conftest$ac_exeext
12744if { (ac_try="$ac_link"
12745case "(($ac_try" in
12746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12747 *) ac_try_echo=$ac_try;;
12748esac
12749eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12750$as_echo "$ac_try_echo") >&5
12751 (eval "$ac_link") 2>conftest.er1
12752 ac_status=$?
12753 grep -v '^ *+' conftest.er1 >conftest.err
12754 rm -f conftest.er1
12755 cat conftest.err >&5
12756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); } && {
12758 test -z "$ac_c_werror_flag" ||
12759 test ! -s conftest.err
12760 } && test -s conftest$ac_exeext && {
12761 test "$cross_compiling" = yes ||
12762 $as_test_x conftest$ac_exeext
12763 }; then
12764 ac_cv_lib_pthread_pthread_mutex_lock=yes
12765else
12766 $as_echo "$as_me: failed program was:" >&5
12767sed 's/^/| /' conftest.$ac_ext >&5
12768
12769 ac_cv_lib_pthread_pthread_mutex_lock=no
12770fi
12771
12772rm -rf conftest.dSYM
12773rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12774 conftest$ac_exeext conftest.$ac_ext
12775LIBS=$ac_check_lib_save_LIBS
12776fi
12777{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
12778$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
12779if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
12780 PTHREAD_LIBS="-lpthread"
12781else
12782 hard_bailout
12783fi
12784
12785fi
12786
d0191583 12787################################################################################
ec6a6fbe
AK
12788{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
12789$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
12790# Check whether --enable-selinux was given.
12791if test "${enable_selinux+set}" = set; then
12792 enableval=$enable_selinux; SELINUX=$enableval
12793fi
12794
ec6a6fbe
AK
12795{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
12796$as_echo "$SELINUX" >&6; }
d0191583 12797
ad6254c5
AK
12798################################################################################
12799if test x$SELINUX = xyes; then
ec6a6fbe
AK
12800 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
12801$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 12802if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 12803 $as_echo_n "(cached) " >&6
8a2fc586
AK
12804else
12805 ac_check_lib_save_LIBS=$LIBS
12806LIBS="-lsepol $LIBS"
12807cat >conftest.$ac_ext <<_ACEOF
12808/* confdefs.h. */
12809_ACEOF
12810cat confdefs.h >>conftest.$ac_ext
12811cat >>conftest.$ac_ext <<_ACEOF
12812/* end confdefs.h. */
12813
7a197a62
AK
12814/* Override any GCC internal prototype to avoid an error.
12815 Use char because int might match the return type of a GCC
12816 builtin and then its argument prototype would still apply. */
8a2fc586
AK
12817#ifdef __cplusplus
12818extern "C"
12819#endif
8a2fc586
AK
12820char sepol_check_context ();
12821int
12822main ()
12823{
7a197a62 12824return sepol_check_context ();
8a2fc586
AK
12825 ;
12826 return 0;
12827}
12828_ACEOF
12829rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12830if { (ac_try="$ac_link"
12831case "(($ac_try" in
12832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12833 *) ac_try_echo=$ac_try;;
12834esac
ec6a6fbe
AK
12835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12836$as_echo "$ac_try_echo") >&5
7a197a62 12837 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
12838 ac_status=$?
12839 grep -v '^ *+' conftest.er1 >conftest.err
12840 rm -f conftest.er1
12841 cat conftest.err >&5
ec6a6fbe 12842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12843 (exit $ac_status); } && {
12844 test -z "$ac_c_werror_flag" ||
12845 test ! -s conftest.err
ec6a6fbe
AK
12846 } && test -s conftest$ac_exeext && {
12847 test "$cross_compiling" = yes ||
12848 $as_test_x conftest$ac_exeext
12849 }; then
8a2fc586
AK
12850 ac_cv_lib_sepol_sepol_check_context=yes
12851else
ec6a6fbe 12852 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
12853sed 's/^/| /' conftest.$ac_ext >&5
12854
7a197a62 12855 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 12856fi
7a197a62 12857
ec6a6fbe 12858rm -rf conftest.dSYM
25fbec5b 12859rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
12860 conftest$ac_exeext conftest.$ac_ext
12861LIBS=$ac_check_lib_save_LIBS
12862fi
ec6a6fbe
AK
12863{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
12864$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
12865if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586 12866
d0191583
JM
12867
12868cat >>confdefs.h <<\_ACEOF
12869#define HAVE_SEPOL 1
12870_ACEOF
12871
f8f6ec92
ZK
12872 SELINUX_LIBS="-lsepol"
12873fi
12874
8a2fc586 12875
ec6a6fbe
AK
12876 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
12877$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 12878if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 12879 $as_echo_n "(cached) " >&6
ad6254c5
AK
12880else
12881 ac_check_lib_save_LIBS=$LIBS
12882LIBS="-lselinux $LIBS"
12883cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12884/* confdefs.h. */
12885_ACEOF
12886cat confdefs.h >>conftest.$ac_ext
12887cat >>conftest.$ac_ext <<_ACEOF
12888/* end confdefs.h. */
12889
7a197a62
AK
12890/* Override any GCC internal prototype to avoid an error.
12891 Use char because int might match the return type of a GCC
12892 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12893#ifdef __cplusplus
12894extern "C"
12895#endif
ad6254c5
AK
12896char is_selinux_enabled ();
12897int
12898main ()
12899{
7a197a62 12900return is_selinux_enabled ();
ad6254c5
AK
12901 ;
12902 return 0;
12903}
12904_ACEOF
12905rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12906if { (ac_try="$ac_link"
12907case "(($ac_try" in
12908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909 *) ac_try_echo=$ac_try;;
12910esac
ec6a6fbe
AK
12911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12912$as_echo "$ac_try_echo") >&5
7a197a62 12913 (eval "$ac_link") 2>conftest.er1
ad6254c5 12914 ac_status=$?
8a2fc586
AK
12915 grep -v '^ *+' conftest.er1 >conftest.err
12916 rm -f conftest.er1
12917 cat conftest.err >&5
ec6a6fbe 12918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12919 (exit $ac_status); } && {
12920 test -z "$ac_c_werror_flag" ||
12921 test ! -s conftest.err
ec6a6fbe
AK
12922 } && test -s conftest$ac_exeext && {
12923 test "$cross_compiling" = yes ||
12924 $as_test_x conftest$ac_exeext
12925 }; then
ad6254c5
AK
12926 ac_cv_lib_selinux_is_selinux_enabled=yes
12927else
ec6a6fbe 12928 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12929sed 's/^/| /' conftest.$ac_ext >&5
12930
7a197a62 12931 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 12932fi
7a197a62 12933
ec6a6fbe 12934rm -rf conftest.dSYM
25fbec5b 12935rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 12936 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
12937LIBS=$ac_check_lib_save_LIBS
12938fi
ec6a6fbe
AK
12939{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
12940$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
12941if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5 12942
72b2cb61 12943
f8f6ec92
ZK
12944for ac_header in selinux/selinux.h
12945do
12946as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12947if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12948 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12949$as_echo_n "checking for $ac_header... " >&6; }
12950if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12951 $as_echo_n "(cached) " >&6
f8f6ec92
ZK
12952fi
12953ac_res=`eval 'as_val=${'$as_ac_Header'}
12954 $as_echo "$as_val"'`
12955 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12956$as_echo "$ac_res" >&6; }
66e941e8 12957else
f8f6ec92
ZK
12958 # Is the header compilable?
12959{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12960$as_echo_n "checking $ac_header usability... " >&6; }
66e941e8
JM
12961cat >conftest.$ac_ext <<_ACEOF
12962/* confdefs.h. */
12963_ACEOF
12964cat confdefs.h >>conftest.$ac_ext
12965cat >>conftest.$ac_ext <<_ACEOF
12966/* end confdefs.h. */
f8f6ec92
ZK
12967$ac_includes_default
12968#include <$ac_header>
66e941e8 12969_ACEOF
f8f6ec92
ZK
12970rm -f conftest.$ac_objext
12971if { (ac_try="$ac_compile"
66e941e8
JM
12972case "(($ac_try" in
12973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974 *) ac_try_echo=$ac_try;;
12975esac
ec6a6fbe
AK
12976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12977$as_echo "$ac_try_echo") >&5
f8f6ec92 12978 (eval "$ac_compile") 2>conftest.er1
66e941e8
JM
12979 ac_status=$?
12980 grep -v '^ *+' conftest.er1 >conftest.err
12981 rm -f conftest.er1
12982 cat conftest.err >&5
ec6a6fbe 12983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12984 (exit $ac_status); } && {
12985 test -z "$ac_c_werror_flag" ||
12986 test ! -s conftest.err
f8f6ec92
ZK
12987 } && test -s conftest.$ac_objext; then
12988 ac_header_compiler=yes
12989else
12990 $as_echo "$as_me: failed program was:" >&5
12991sed 's/^/| /' conftest.$ac_ext >&5
12992
12993 ac_header_compiler=no
12994fi
12995
12996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12997{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12998$as_echo "$ac_header_compiler" >&6; }
12999
13000# Is the header present?
13001{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13002$as_echo_n "checking $ac_header presence... " >&6; }
13003cat >conftest.$ac_ext <<_ACEOF
13004/* confdefs.h. */
13005_ACEOF
13006cat confdefs.h >>conftest.$ac_ext
13007cat >>conftest.$ac_ext <<_ACEOF
13008/* end confdefs.h. */
13009#include <$ac_header>
13010_ACEOF
13011if { (ac_try="$ac_cpp conftest.$ac_ext"
13012case "(($ac_try" in
13013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13014 *) ac_try_echo=$ac_try;;
13015esac
13016eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13017$as_echo "$ac_try_echo") >&5
13018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13019 ac_status=$?
13020 grep -v '^ *+' conftest.er1 >conftest.err
13021 rm -f conftest.er1
13022 cat conftest.err >&5
13023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } >/dev/null && {
13025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13026 test ! -s conftest.err
ec6a6fbe 13027 }; then
f8f6ec92 13028 ac_header_preproc=yes
66e941e8 13029else
ec6a6fbe 13030 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
13031sed 's/^/| /' conftest.$ac_ext >&5
13032
f8f6ec92
ZK
13033 ac_header_preproc=no
13034fi
13035
13036rm -f conftest.err conftest.$ac_ext
13037{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13038$as_echo "$ac_header_preproc" >&6; }
13039
13040# So? What about this header?
13041case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13042 yes:no: )
13043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13044$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13046$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13047 ac_header_preproc=yes
13048 ;;
13049 no:yes:* )
13050 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13051$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13053$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13055$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13057$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13059$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13061$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66e941e8 13062
f8f6ec92
ZK
13063 ;;
13064esac
13065{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13066$as_echo_n "checking for $ac_header... " >&6; }
13067if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13068 $as_echo_n "(cached) " >&6
13069else
13070 eval "$as_ac_Header=\$ac_header_preproc"
66e941e8 13071fi
f8f6ec92
ZK
13072ac_res=`eval 'as_val=${'$as_ac_Header'}
13073 $as_echo "$as_val"'`
13074 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13075$as_echo "$ac_res" >&6; }
66e941e8 13076
66e941e8 13077fi
f8f6ec92
ZK
13078as_val=`eval 'as_val=${'$as_ac_Header'}
13079 $as_echo "$as_val"'`
13080 if test "x$as_val" = x""yes; then
13081 cat >>confdefs.h <<_ACEOF
13082#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13083_ACEOF
13084
66e941e8 13085else
f8f6ec92 13086 hard_bailout
66e941e8 13087fi
f8f6ec92
ZK
13088
13089done
13090
13091
13092cat >>confdefs.h <<\_ACEOF
13093#define HAVE_SELINUX 1
13094_ACEOF
13095
13096 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
13097 HAVE_SELINUX=yes
13098else
13099
13100 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
13101$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
13102 SELINUX_LIBS=
13103 HAVE_SELINUX=no
66e941e8
JM
13104fi
13105
ad6254c5
AK
13106fi
13107
8b1a3214
AK
13108################################################################################
13109if test x$REALTIME = xyes; then
ec6a6fbe
AK
13110 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
13111$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 13112if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 13113 $as_echo_n "(cached) " >&6
8b1a3214
AK
13114else
13115 ac_check_lib_save_LIBS=$LIBS
13116LIBS="-lrt $LIBS"
13117cat >conftest.$ac_ext <<_ACEOF
13118/* confdefs.h. */
13119_ACEOF
13120cat confdefs.h >>conftest.$ac_ext
13121cat >>conftest.$ac_ext <<_ACEOF
13122/* end confdefs.h. */
13123
7a197a62
AK
13124/* Override any GCC internal prototype to avoid an error.
13125 Use char because int might match the return type of a GCC
13126 builtin and then its argument prototype would still apply. */
8b1a3214
AK
13127#ifdef __cplusplus
13128extern "C"
13129#endif
8b1a3214
AK
13130char clock_gettime ();
13131int
13132main ()
13133{
7a197a62 13134return clock_gettime ();
8b1a3214
AK
13135 ;
13136 return 0;
13137}
13138_ACEOF
13139rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13140if { (ac_try="$ac_link"
13141case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13144esac
ec6a6fbe
AK
13145eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13146$as_echo "$ac_try_echo") >&5
7a197a62 13147 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
13148 ac_status=$?
13149 grep -v '^ *+' conftest.er1 >conftest.err
13150 rm -f conftest.er1
13151 cat conftest.err >&5
ec6a6fbe 13152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13153 (exit $ac_status); } && {
13154 test -z "$ac_c_werror_flag" ||
13155 test ! -s conftest.err
ec6a6fbe
AK
13156 } && test -s conftest$ac_exeext && {
13157 test "$cross_compiling" = yes ||
13158 $as_test_x conftest$ac_exeext
13159 }; then
8b1a3214
AK
13160 ac_cv_lib_rt_clock_gettime=yes
13161else
ec6a6fbe 13162 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
13163sed 's/^/| /' conftest.$ac_ext >&5
13164
7a197a62 13165 ac_cv_lib_rt_clock_gettime=no
8b1a3214 13166fi
7a197a62 13167
ec6a6fbe 13168rm -rf conftest.dSYM
25fbec5b 13169rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
13170 conftest$ac_exeext conftest.$ac_ext
13171LIBS=$ac_check_lib_save_LIBS
13172fi
ec6a6fbe
AK
13173{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
13174$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13175if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
13176 HAVE_REALTIME=yes
13177else
13178 HAVE_REALTIME=no
13179fi
13180
8b1a3214
AK
13181
13182 if test x$HAVE_REALTIME = xyes; then
13183
13184cat >>confdefs.h <<\_ACEOF
13185#define HAVE_REALTIME 1
13186_ACEOF
13187
13188 LIBS="-lrt $LIBS"
13189 else
ec6a6fbe
AK
13190 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
13191$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
13192 fi
13193fi
13194
ad6254c5
AK
13195################################################################################
13196
13197for ac_header in getopt.h
13198do
ec6a6fbe 13199as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13200if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13201 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13202$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13203if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13204 $as_echo_n "(cached) " >&6
ad6254c5 13205fi
ec6a6fbe
AK
13206ac_res=`eval 'as_val=${'$as_ac_Header'}
13207 $as_echo "$as_val"'`
13208 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13209$as_echo "$ac_res" >&6; }
ad6254c5
AK
13210else
13211 # Is the header compilable?
ec6a6fbe
AK
13212{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13213$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13214cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13215/* confdefs.h. */
13216_ACEOF
13217cat confdefs.h >>conftest.$ac_ext
13218cat >>conftest.$ac_ext <<_ACEOF
13219/* end confdefs.h. */
13220$ac_includes_default
13221#include <$ac_header>
13222_ACEOF
13223rm -f conftest.$ac_objext
7a197a62
AK
13224if { (ac_try="$ac_compile"
13225case "(($ac_try" in
13226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13227 *) ac_try_echo=$ac_try;;
13228esac
ec6a6fbe
AK
13229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13230$as_echo "$ac_try_echo") >&5
7a197a62 13231 (eval "$ac_compile") 2>conftest.er1
ad6254c5 13232 ac_status=$?
8a2fc586
AK
13233 grep -v '^ *+' conftest.er1 >conftest.err
13234 rm -f conftest.er1
13235 cat conftest.err >&5
ec6a6fbe 13236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13237 (exit $ac_status); } && {
13238 test -z "$ac_c_werror_flag" ||
13239 test ! -s conftest.err
13240 } && test -s conftest.$ac_objext; then
ad6254c5
AK
13241 ac_header_compiler=yes
13242else
ec6a6fbe 13243 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13244sed 's/^/| /' conftest.$ac_ext >&5
13245
7a197a62 13246 ac_header_compiler=no
ad6254c5 13247fi
7a197a62
AK
13248
13249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13250{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13251$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13252
13253# Is the header present?
ec6a6fbe
AK
13254{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13255$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 13256cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13257/* confdefs.h. */
13258_ACEOF
13259cat confdefs.h >>conftest.$ac_ext
13260cat >>conftest.$ac_ext <<_ACEOF
13261/* end confdefs.h. */
13262#include <$ac_header>
13263_ACEOF
7a197a62
AK
13264if { (ac_try="$ac_cpp conftest.$ac_ext"
13265case "(($ac_try" in
13266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13267 *) ac_try_echo=$ac_try;;
13268esac
ec6a6fbe
AK
13269eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13270$as_echo "$ac_try_echo") >&5
7a197a62 13271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
13272 ac_status=$?
13273 grep -v '^ *+' conftest.er1 >conftest.err
13274 rm -f conftest.er1
13275 cat conftest.err >&5
ec6a6fbe 13276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13277 (exit $ac_status); } >/dev/null && {
13278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13279 test ! -s conftest.err
13280 }; then
ad6254c5
AK
13281 ac_header_preproc=yes
13282else
ec6a6fbe 13283 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13284sed 's/^/| /' conftest.$ac_ext >&5
13285
13286 ac_header_preproc=no
13287fi
7a197a62 13288
ad6254c5 13289rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
13290{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13291$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
13292
13293# So? What about this header?
8a2fc586
AK
13294case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13295 yes:no: )
ec6a6fbe
AK
13296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13297$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13299$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 13300 ac_header_preproc=yes
ad6254c5 13301 ;;
8a2fc586 13302 no:yes:* )
ec6a6fbe
AK
13303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13304$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13306$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13308$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13310$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13312$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13314$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 13315
ad6254c5
AK
13316 ;;
13317esac
ec6a6fbe
AK
13318{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13319$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13320if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13321 $as_echo_n "(cached) " >&6
ad6254c5 13322else
8a2fc586 13323 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 13324fi
ec6a6fbe
AK
13325ac_res=`eval 'as_val=${'$as_ac_Header'}
13326 $as_echo "$as_val"'`
13327 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13328$as_echo "$ac_res" >&6; }
ad6254c5
AK
13329
13330fi
ec6a6fbe
AK
13331as_val=`eval 'as_val=${'$as_ac_Header'}
13332 $as_echo "$as_val"'`
13333 if test "x$as_val" = x""yes; then
ad6254c5 13334 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13335#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 13336_ACEOF
72b2cb61
AK
13337
13338cat >>confdefs.h <<\_ACEOF
13339#define HAVE_GETOPTLONG 1
13340_ACEOF
13341
ad6254c5
AK
13342fi
13343
13344done
13345
13346
13347################################################################################
06e459df 13348if test x$READLINE != xno; then
539f4a77
ZK
13349 lvm_saved_libs=$LIBS
13350 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
13351$as_echo_n "checking for library containing tgetent... " >&6; }
13352if test "${ac_cv_search_tgetent+set}" = set; then
13353 $as_echo_n "(cached) " >&6
13354else
13355 ac_func_search_save_LIBS=$LIBS
13356cat >conftest.$ac_ext <<_ACEOF
13357/* confdefs.h. */
13358_ACEOF
13359cat confdefs.h >>conftest.$ac_ext
13360cat >>conftest.$ac_ext <<_ACEOF
13361/* end confdefs.h. */
bc1024f8 13362
539f4a77
ZK
13363/* Override any GCC internal prototype to avoid an error.
13364 Use char because int might match the return type of a GCC
13365 builtin and then its argument prototype would still apply. */
13366#ifdef __cplusplus
13367extern "C"
13368#endif
13369char tgetent ();
13370int
13371main ()
13372{
13373return tgetent ();
13374 ;
13375 return 0;
13376}
13377_ACEOF
13378for ac_lib in '' tinfo ncurses curses termcap termlib; do
13379 if test -z "$ac_lib"; then
13380 ac_res="none required"
13381 else
13382 ac_res=-l$ac_lib
13383 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13384 fi
13385 rm -f conftest.$ac_objext conftest$ac_exeext
13386if { (ac_try="$ac_link"
13387case "(($ac_try" in
13388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13389 *) ac_try_echo=$ac_try;;
13390esac
13391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13392$as_echo "$ac_try_echo") >&5
13393 (eval "$ac_link") 2>conftest.er1
13394 ac_status=$?
13395 grep -v '^ *+' conftest.er1 >conftest.err
13396 rm -f conftest.er1
13397 cat conftest.err >&5
13398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); } && {
13400 test -z "$ac_c_werror_flag" ||
13401 test ! -s conftest.err
13402 } && test -s conftest$ac_exeext && {
13403 test "$cross_compiling" = yes ||
13404 $as_test_x conftest$ac_exeext
13405 }; then
13406 ac_cv_search_tgetent=$ac_res
13407else
13408 $as_echo "$as_me: failed program was:" >&5
13409sed 's/^/| /' conftest.$ac_ext >&5
13410
13411
13412fi
13413
13414rm -rf conftest.dSYM
13415rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13416 conftest$ac_exeext
13417 if test "${ac_cv_search_tgetent+set}" = set; then
13418 break
13419fi
13420done
13421if test "${ac_cv_search_tgetent+set}" = set; then
13422 :
13423else
13424 ac_cv_search_tgetent=no
13425fi
13426rm conftest.$ac_ext
13427LIBS=$ac_func_search_save_LIBS
13428fi
13429{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
13430$as_echo "$ac_cv_search_tgetent" >&6; }
13431ac_res=$ac_cv_search_tgetent
13432if test "$ac_res" != no; then
13433 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13434 READLINE_LIBS=$ac_cv_search_tgetent
13435else
13436
13437 if test "$READLINE" = yes; then
13438 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
13439--enable-readline option (which is enabled by default). Either disable readline
13440support with --disable-readline or download and install termcap from:
13441 ftp.gnu.org/gnu/termcap
13442Note: if you are using precompiled packages you will also need the development
13443 package as well (which may be called termcap-devel or something similar).
13444Note: (n)curses also seems to work as a substitute for termcap. This was
13445 not found either - but you could try installing that as well." >&5
13446$as_echo "$as_me: error: termcap could not be found which is required for the
13447--enable-readline option (which is enabled by default). Either disable readline
13448support with --disable-readline or download and install termcap from:
13449 ftp.gnu.org/gnu/termcap
13450Note: if you are using precompiled packages you will also need the development
13451 package as well (which may be called termcap-devel or something similar).
13452Note: (n)curses also seems to work as a substitute for termcap. This was
13453 not found either - but you could try installing that as well." >&2;}
13454 { (exit 1); exit 1; }; }
13455 fi
13456fi
13457
13458 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
ec6a6fbe 13459$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 13460if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 13461 $as_echo_n "(cached) " >&6
ad6254c5
AK
13462else
13463 ac_check_lib_save_LIBS=$LIBS
13464LIBS="-lreadline $LIBS"
13465cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13466/* confdefs.h. */
13467_ACEOF
13468cat confdefs.h >>conftest.$ac_ext
13469cat >>conftest.$ac_ext <<_ACEOF
13470/* end confdefs.h. */
13471
7a197a62
AK
13472/* Override any GCC internal prototype to avoid an error.
13473 Use char because int might match the return type of a GCC
13474 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13475#ifdef __cplusplus
13476extern "C"
13477#endif
ad6254c5
AK
13478char readline ();
13479int
13480main ()
13481{
7a197a62 13482return readline ();
ad6254c5
AK
13483 ;
13484 return 0;
13485}
13486_ACEOF
13487rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13488if { (ac_try="$ac_link"
13489case "(($ac_try" in
13490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13491 *) ac_try_echo=$ac_try;;
13492esac
ec6a6fbe
AK
13493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13494$as_echo "$ac_try_echo") >&5
7a197a62 13495 (eval "$ac_link") 2>conftest.er1
ad6254c5 13496 ac_status=$?
8a2fc586
AK
13497 grep -v '^ *+' conftest.er1 >conftest.err
13498 rm -f conftest.er1
13499 cat conftest.err >&5
ec6a6fbe 13500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13501 (exit $ac_status); } && {
13502 test -z "$ac_c_werror_flag" ||
13503 test ! -s conftest.err
ec6a6fbe
AK
13504 } && test -s conftest$ac_exeext && {
13505 test "$cross_compiling" = yes ||
13506 $as_test_x conftest$ac_exeext
13507 }; then
ad6254c5
AK
13508 ac_cv_lib_readline_readline=yes
13509else
ec6a6fbe 13510 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13511sed 's/^/| /' conftest.$ac_ext >&5
13512
7a197a62 13513 ac_cv_lib_readline_readline=no
ad6254c5 13514fi
7a197a62 13515
ec6a6fbe 13516rm -rf conftest.dSYM
25fbec5b 13517rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13518 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
13519LIBS=$ac_check_lib_save_LIBS
13520fi
ec6a6fbe
AK
13521{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13522$as_echo "$ac_cv_lib_readline_readline" >&6; }
13523if test "x$ac_cv_lib_readline_readline" = x""yes; then
539f4a77
ZK
13524
13525
13526cat >>confdefs.h <<\_ACEOF
13527#define READLINE_SUPPORT 1
bc1024f8
JM
13528_ACEOF
13529
539f4a77
ZK
13530 LIBS=$lvm_saved_libs
13531 { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5
13532$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
13533if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then
13534 $as_echo_n "(cached) " >&6
13535else
13536 ac_check_lib_save_LIBS=$LIBS
13537LIBS="-lreadline $LIBS"
13538cat >conftest.$ac_ext <<_ACEOF
13539/* confdefs.h. */
13540_ACEOF
13541cat confdefs.h >>conftest.$ac_ext
13542cat >>conftest.$ac_ext <<_ACEOF
13543/* end confdefs.h. */
bc1024f8 13544
539f4a77
ZK
13545/* Override any GCC internal prototype to avoid an error.
13546 Use char because int might match the return type of a GCC
13547 builtin and then its argument prototype would still apply. */
13548#ifdef __cplusplus
13549extern "C"
13550#endif
13551char rl_line_buffer ();
13552int
13553main ()
13554{
13555return rl_line_buffer ();
13556 ;
13557 return 0;
13558}
13559_ACEOF
13560rm -f conftest.$ac_objext conftest$ac_exeext
13561if { (ac_try="$ac_link"
13562case "(($ac_try" in
13563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564 *) ac_try_echo=$ac_try;;
13565esac
13566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13567$as_echo "$ac_try_echo") >&5
13568 (eval "$ac_link") 2>conftest.er1
13569 ac_status=$?
13570 grep -v '^ *+' conftest.er1 >conftest.err
13571 rm -f conftest.er1
13572 cat conftest.err >&5
13573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } && {
13575 test -z "$ac_c_werror_flag" ||
13576 test ! -s conftest.err
13577 } && test -s conftest$ac_exeext && {
13578 test "$cross_compiling" = yes ||
13579 $as_test_x conftest$ac_exeext
13580 }; then
13581 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 13582else
539f4a77
ZK
13583 $as_echo "$as_me: failed program was:" >&5
13584sed 's/^/| /' conftest.$ac_ext >&5
13585
13586 ac_cv_lib_readline_rl_line_buffer=no
06e459df
JM
13587fi
13588
539f4a77
ZK
13589rm -rf conftest.dSYM
13590rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13591 conftest$ac_exeext conftest.$ac_ext
13592LIBS=$ac_check_lib_save_LIBS
13593fi
13594{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5
13595$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
13596if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then
13597 READLINE_LIBS="-lreadline"
13598else
13599
13600 { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5
13601$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
13602 READLINE_LIBS="-lreadline $READLINE_LIBS"
13603
13604fi
13605
13606else
13607
13608 READLINE_LIBS=
13609 if test "$READLINE" = yes; then
13610 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
13611--enable-readline option (which is enabled by default). Either disable readline
13612support with --disable-readline or download and install readline from:
13613 ftp.gnu.org/gnu/readline
13614Note: if you are using precompiled packages you will also need the development
539f4a77 13615package as well (which may be called readline-devel or something similar)." >&5
ec6a6fbe 13616$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
13617--enable-readline option (which is enabled by default). Either disable readline
13618support with --disable-readline or download and install readline from:
13619 ftp.gnu.org/gnu/readline
13620Note: if you are using precompiled packages you will also need the development
539f4a77 13621package as well (which may be called readline-devel or something similar)." >&2;}
ad6254c5 13622 { (exit 1); exit 1; }; }
539f4a77
ZK
13623 fi
13624fi
13625
13626 LIBS="$READLINE_LIBS $lvm_saved_libs"
bc1024f8
JM
13627
13628for ac_func in rl_completion_matches
13629do
ec6a6fbe
AK
13630as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13631{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13632$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 13633if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13634 $as_echo_n "(cached) " >&6
ad6254c5
AK
13635else
13636 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13637/* confdefs.h. */
13638_ACEOF
13639cat confdefs.h >>conftest.$ac_ext
13640cat >>conftest.$ac_ext <<_ACEOF
13641/* end confdefs.h. */
bc1024f8 13642/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 13643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 13644#define $ac_func innocuous_$ac_func
8a2fc586 13645
ad6254c5 13646/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 13647 which can conflict with char $ac_func (); below.
ad6254c5
AK
13648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13649 <limits.h> exists even on freestanding compilers. */
8a2fc586 13650
ad6254c5
AK
13651#ifdef __STDC__
13652# include <limits.h>
13653#else
13654# include <assert.h>
13655#endif
8a2fc586 13656
bc1024f8 13657#undef $ac_func
8a2fc586 13658
7a197a62
AK
13659/* Override any GCC internal prototype to avoid an error.
13660 Use char because int might match the return type of a GCC
13661 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13662#ifdef __cplusplus
13663extern "C"
ad6254c5 13664#endif
bc1024f8 13665char $ac_func ();
ad6254c5
AK
13666/* The GNU C library defines this for functions which it implements
13667 to always fail with ENOSYS. Some functions are actually named
13668 something starting with __ and the normal name is an alias. */
bc1024f8 13669#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 13670choke me
ad6254c5
AK
13671#endif
13672
13673int
13674main ()
13675{
bc1024f8 13676return $ac_func ();
ad6254c5
AK
13677 ;
13678 return 0;
13679}
13680_ACEOF
13681rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13682if { (ac_try="$ac_link"
13683case "(($ac_try" in
13684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13685 *) ac_try_echo=$ac_try;;
13686esac
ec6a6fbe
AK
13687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13688$as_echo "$ac_try_echo") >&5
7a197a62 13689 (eval "$ac_link") 2>conftest.er1
ad6254c5 13690 ac_status=$?
8a2fc586
AK
13691 grep -v '^ *+' conftest.er1 >conftest.err
13692 rm -f conftest.er1
13693 cat conftest.err >&5
ec6a6fbe 13694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13695 (exit $ac_status); } && {
13696 test -z "$ac_c_werror_flag" ||
13697 test ! -s conftest.err
ec6a6fbe
AK
13698 } && test -s conftest$ac_exeext && {
13699 test "$cross_compiling" = yes ||
13700 $as_test_x conftest$ac_exeext
13701 }; then
bc1024f8 13702 eval "$as_ac_var=yes"
ad6254c5 13703else
ec6a6fbe 13704 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13705sed 's/^/| /' conftest.$ac_ext >&5
13706
bc1024f8 13707 eval "$as_ac_var=no"
ad6254c5 13708fi
7a197a62 13709
ec6a6fbe 13710rm -rf conftest.dSYM
25fbec5b 13711rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13712 conftest$ac_exeext conftest.$ac_ext
ad6254c5 13713fi
ec6a6fbe
AK
13714ac_res=`eval 'as_val=${'$as_ac_var'}
13715 $as_echo "$as_val"'`
13716 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13717$as_echo "$ac_res" >&6; }
13718as_val=`eval 'as_val=${'$as_ac_var'}
13719 $as_echo "$as_val"'`
13720 if test "x$as_val" = x""yes; then
bc1024f8 13721 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13722#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
13723_ACEOF
13724
13725fi
bc1024f8 13726done
ad6254c5 13727
539f4a77 13728 LIBS=$lvm_saved_libs
ad6254c5
AK
13729fi
13730
13731################################################################################
ec6a6fbe
AK
13732{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
13733$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 13734# Check whether --enable-nls was given.
ad6254c5 13735if test "${enable_nls+set}" = set; then
7a197a62 13736 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
13737else
13738 INTL=no
7a197a62
AK
13739fi
13740
ec6a6fbe
AK
13741{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
13742$as_echo "$INTL" >&6; }
ad6254c5
AK
13743
13744if test x$INTL = xyes; then
93bd259b 13745# FIXME - Move this - can be device-mapper too
ad6254c5
AK
13746 INTL_PACKAGE="lvm2"
13747 # Extract the first word of "msgfmt", so it can be a program name with args.
13748set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
13749{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13750$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 13751if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 13752 $as_echo_n "(cached) " >&6
ad6254c5
AK
13753else
13754 case $MSGFMT in
13755 [\\/]* | ?:[\\/]*)
13756 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13757 ;;
13758 *)
13759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13760for as_dir in $PATH
13761do
13762 IFS=$as_save_IFS
13763 test -z "$as_dir" && as_dir=.
13764 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 13765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 13766 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 13767 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
13768 break 2
13769 fi
13770done
13771done
7a197a62 13772IFS=$as_save_IFS
ad6254c5
AK
13773
13774 ;;
13775esac
13776fi
13777MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 13778if test -n "$MSGFMT"; then
ec6a6fbe
AK
13779 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
13780$as_echo "$MSGFMT" >&6; }
ad6254c5 13781else
ec6a6fbe
AK
13782 { $as_echo "$as_me:$LINENO: result: no" >&5
13783$as_echo "no" >&6; }
ad6254c5
AK
13784fi
13785
7a197a62 13786
ad6254c5 13787 if [ "x$MSGFMT" == x ];
ec6a6fbe 13788 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 13789 " >&5
ec6a6fbe 13790$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
13791 " >&2;}
13792 { (exit 1); exit 1; }; }
13793 fi;
13794
13795
7a197a62 13796# Check whether --with-localedir was given.
ad6254c5 13797if test "${with_localedir+set}" = set; then
7a197a62 13798 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
13799else
13800 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
13801fi
13802
ad6254c5
AK
13803fi
13804
13805################################################################################
13806
7a197a62 13807# Check whether --with-confdir was given.
ad6254c5 13808if test "${with_confdir+set}" = set; then
7a197a62 13809 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
13810else
13811 CONFDIR='/etc'
7a197a62
AK
13812fi
13813
ad6254c5
AK
13814
13815
7a197a62 13816# Check whether --with-staticdir was given.
ad6254c5 13817if test "${with_staticdir+set}" = set; then
7a197a62 13818 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
13819else
13820 STATICDIR='${exec_prefix}/sbin'
7a197a62 13821fi
ad6254c5 13822
33f732c5 13823
7a197a62 13824
68f2de6d
AK
13825# Check whether --with-usrlibdir was given.
13826if test "${with_usrlibdir+set}" = set; then
13827 withval=$with_usrlibdir; usrlibdir="$withval"
13828else
13829 usrlibdir='${prefix}/lib'
13830fi
13831
13832
13833
13834# Check whether --with-usrsbindir was given.
13835if test "${with_usrsbindir+set}" = set; then
13836 withval=$with_usrsbindir; usrsbindir="$withval"
13837else
13838 usrsbindir='${prefix}/sbin'
13839fi
13840
13841
a5f46f6a
AK
13842################################################################################
13843
13844# Check whether --with-udev_prefix was given.
13845if test "${with_udev_prefix+set}" = set; then
13846 withval=$with_udev_prefix; udev_prefix="$withval"
13847else
13848 udev_prefix='${exec_prefix}'
13849fi
13850
13851
78ce7acc
AK
13852
13853# Check whether --with-udevdir was given.
13854if test "${with_udevdir+set}" = set; then
13855 withval=$with_udevdir; udevdir="$withval"
13856else
13857 udevdir='${udev_prefix}/lib/udev/rules.d'
13858fi
13859
a5f46f6a 13860
ad6254c5
AK
13861################################################################################
13862if test x$READLINE = xyes; then
13863
13864
13865for ac_header in readline/readline.h readline/history.h
13866do
ec6a6fbe 13867as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13868if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13869 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13870$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13871if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13872 $as_echo_n "(cached) " >&6
ad6254c5 13873fi
ec6a6fbe
AK
13874ac_res=`eval 'as_val=${'$as_ac_Header'}
13875 $as_echo "$as_val"'`
13876 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13877$as_echo "$ac_res" >&6; }
ad6254c5
AK
13878else
13879 # Is the header compilable?
ec6a6fbe
AK
13880{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13881$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13882cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13883/* confdefs.h. */
13884_ACEOF
13885cat confdefs.h >>conftest.$ac_ext
13886cat >>conftest.$ac_ext <<_ACEOF
13887/* end confdefs.h. */
13888$ac_includes_default
13889#include <$ac_header>
13890_ACEOF
13891rm -f conftest.$ac_objext
7a197a62
AK
13892if { (ac_try="$ac_compile"
13893case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13896esac
ec6a6fbe
AK
13897eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13898$as_echo "$ac_try_echo") >&5
7a197a62 13899 (eval "$ac_compile") 2>conftest.er1
ad6254c5 13900 ac_status=$?
8a2fc586
AK
13901 grep -v '^ *+' conftest.er1 >conftest.err
13902 rm -f conftest.er1
13903 cat conftest.err >&5
ec6a6fbe 13904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13905 (exit $ac_status); } && {
13906 test -z "$ac_c_werror_flag" ||
13907 test ! -s conftest.err
13908 } && test -s conftest.$ac_objext; then
ad6254c5
AK
13909 ac_header_compiler=yes
13910else
ec6a6fbe 13911 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13912sed 's/^/| /' conftest.$ac_ext >&5
13913
7a197a62 13914 ac_header_compiler=no
ad6254c5 13915fi
7a197a62
AK
13916
13917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13918{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13919$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13920
13921# Is the header present?
ec6a6fbe
AK
13922{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13923$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 13924cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13925/* confdefs.h. */
13926_ACEOF
13927cat confdefs.h >>conftest.$ac_ext
13928cat >>conftest.$ac_ext <<_ACEOF
13929/* end confdefs.h. */
13930#include <$ac_header>
13931_ACEOF
7a197a62
AK
13932if { (ac_try="$ac_cpp conftest.$ac_ext"
13933case "(($ac_try" in
13934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935 *) ac_try_echo=$ac_try;;
13936esac
ec6a6fbe
AK
13937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13938$as_echo "$ac_try_echo") >&5
7a197a62 13939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
13940 ac_status=$?
13941 grep -v '^ *+' conftest.er1 >conftest.err
13942 rm -f conftest.er1
13943 cat conftest.err >&5
ec6a6fbe 13944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13945 (exit $ac_status); } >/dev/null && {
13946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13947 test ! -s conftest.err
13948 }; then
ad6254c5
AK
13949 ac_header_preproc=yes
13950else
ec6a6fbe 13951 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13952sed 's/^/| /' conftest.$ac_ext >&5
13953
13954 ac_header_preproc=no
13955fi
7a197a62 13956
ad6254c5 13957rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
13958{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13959$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
13960
13961# So? What about this header?
8a2fc586
AK
13962case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13963 yes:no: )
ec6a6fbe
AK
13964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13965$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13967$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 13968 ac_header_preproc=yes
ad6254c5 13969 ;;
8a2fc586 13970 no:yes:* )
ec6a6fbe
AK
13971 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13972$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13973 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13974$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13976$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13978$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13979 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13980$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13982$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 13983
ad6254c5
AK
13984 ;;
13985esac
ec6a6fbe
AK
13986{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13987$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13988if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13989 $as_echo_n "(cached) " >&6
ad6254c5 13990else
8a2fc586 13991 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 13992fi
ec6a6fbe
AK
13993ac_res=`eval 'as_val=${'$as_ac_Header'}
13994 $as_echo "$as_val"'`
13995 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13996$as_echo "$ac_res" >&6; }
ad6254c5
AK
13997
13998fi
ec6a6fbe
AK
13999as_val=`eval 'as_val=${'$as_ac_Header'}
14000 $as_echo "$as_val"'`
14001 if test "x$as_val" = x""yes; then
ad6254c5 14002 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14003#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14004_ACEOF
14005
14006else
ec6a6fbe
AK
14007 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14008$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
14009 { (exit 1); exit 1; }; }
14010fi
14011
14012done
14013
14014fi
14015
5c7fc7c4 14016if test x$CLVMD != xnone; then
ad6254c5
AK
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027for 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
14028do
ec6a6fbe 14029as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14030if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14031 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14032$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14033if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14034 $as_echo_n "(cached) " >&6
ad6254c5 14035fi
ec6a6fbe
AK
14036ac_res=`eval 'as_val=${'$as_ac_Header'}
14037 $as_echo "$as_val"'`
14038 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14039$as_echo "$ac_res" >&6; }
ad6254c5
AK
14040else
14041 # Is the header compilable?
ec6a6fbe
AK
14042{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14043$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14044cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14045/* confdefs.h. */
14046_ACEOF
14047cat confdefs.h >>conftest.$ac_ext
14048cat >>conftest.$ac_ext <<_ACEOF
14049/* end confdefs.h. */
14050$ac_includes_default
14051#include <$ac_header>
14052_ACEOF
14053rm -f conftest.$ac_objext
7a197a62
AK
14054if { (ac_try="$ac_compile"
14055case "(($ac_try" in
14056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14057 *) ac_try_echo=$ac_try;;
14058esac
ec6a6fbe
AK
14059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14060$as_echo "$ac_try_echo") >&5
7a197a62 14061 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14062 ac_status=$?
8a2fc586
AK
14063 grep -v '^ *+' conftest.er1 >conftest.err
14064 rm -f conftest.er1
14065 cat conftest.err >&5
ec6a6fbe 14066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14067 (exit $ac_status); } && {
14068 test -z "$ac_c_werror_flag" ||
14069 test ! -s conftest.err
14070 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14071 ac_header_compiler=yes
14072else
ec6a6fbe 14073 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14074sed 's/^/| /' conftest.$ac_ext >&5
14075
7a197a62 14076 ac_header_compiler=no
ad6254c5 14077fi
7a197a62
AK
14078
14079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14080{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14081$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14082
14083# Is the header present?
ec6a6fbe
AK
14084{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14085$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14086cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14087/* confdefs.h. */
14088_ACEOF
14089cat confdefs.h >>conftest.$ac_ext
14090cat >>conftest.$ac_ext <<_ACEOF
14091/* end confdefs.h. */
14092#include <$ac_header>
14093_ACEOF
7a197a62
AK
14094if { (ac_try="$ac_cpp conftest.$ac_ext"
14095case "(($ac_try" in
14096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14097 *) ac_try_echo=$ac_try;;
14098esac
ec6a6fbe
AK
14099eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14100$as_echo "$ac_try_echo") >&5
7a197a62 14101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14102 ac_status=$?
14103 grep -v '^ *+' conftest.er1 >conftest.err
14104 rm -f conftest.er1
14105 cat conftest.err >&5
ec6a6fbe 14106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14107 (exit $ac_status); } >/dev/null && {
14108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14109 test ! -s conftest.err
14110 }; then
ad6254c5
AK
14111 ac_header_preproc=yes
14112else
ec6a6fbe 14113 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14114sed 's/^/| /' conftest.$ac_ext >&5
14115
14116 ac_header_preproc=no
14117fi
7a197a62 14118
ad6254c5 14119rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14120{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14121$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14122
14123# So? What about this header?
8a2fc586
AK
14124case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14125 yes:no: )
ec6a6fbe
AK
14126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14127$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14129$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14130 ac_header_preproc=yes
ad6254c5 14131 ;;
8a2fc586 14132 no:yes:* )
ec6a6fbe
AK
14133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14134$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14136$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14138$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14140$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14141 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14142$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14144$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14145
ad6254c5
AK
14146 ;;
14147esac
ec6a6fbe
AK
14148{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14149$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14150if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14151 $as_echo_n "(cached) " >&6
ad6254c5 14152else
8a2fc586 14153 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 14154fi
ec6a6fbe
AK
14155ac_res=`eval 'as_val=${'$as_ac_Header'}
14156 $as_echo "$as_val"'`
14157 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14158$as_echo "$ac_res" >&6; }
ad6254c5
AK
14159
14160fi
ec6a6fbe
AK
14161as_val=`eval 'as_val=${'$as_ac_Header'}
14162 $as_echo "$as_val"'`
14163 if test "x$as_val" = x""yes; then
ad6254c5 14164 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14165#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14166_ACEOF
14167
14168else
ec6a6fbe
AK
14169 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14170$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14171 { (exit 1); exit 1; }; }
795ca3e5
AK
14172fi
14173
ad6254c5
AK
14174done
14175
14176
795ca3e5 14177
8106cdd5 14178
ad6254c5
AK
14179
14180
14181for ac_func in dup2 getmntent memmove select socket
14182do
ec6a6fbe
AK
14183as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14184{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14185$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 14186if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14187 $as_echo_n "(cached) " >&6
795ca3e5 14188else
ad6254c5 14189 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14190/* confdefs.h. */
14191_ACEOF
14192cat confdefs.h >>conftest.$ac_ext
14193cat >>conftest.$ac_ext <<_ACEOF
14194/* end confdefs.h. */
8a2fc586
AK
14195/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14197#define $ac_func innocuous_$ac_func
14198
795ca3e5 14199/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
14200 which can conflict with char $ac_func (); below.
14201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14202 <limits.h> exists even on freestanding compilers. */
8a2fc586 14203
ad6254c5
AK
14204#ifdef __STDC__
14205# include <limits.h>
14206#else
14207# include <assert.h>
14208#endif
8a2fc586
AK
14209
14210#undef $ac_func
14211
7a197a62
AK
14212/* Override any GCC internal prototype to avoid an error.
14213 Use char because int might match the return type of a GCC
14214 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14215#ifdef __cplusplus
14216extern "C"
ad6254c5 14217#endif
ad6254c5 14218char $ac_func ();
795ca3e5
AK
14219/* The GNU C library defines this for functions which it implements
14220 to always fail with ENOSYS. Some functions are actually named
14221 something starting with __ and the normal name is an alias. */
7a197a62 14222#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 14223choke me
795ca3e5
AK
14224#endif
14225
ad6254c5
AK
14226int
14227main ()
14228{
7a197a62 14229return $ac_func ();
ad6254c5
AK
14230 ;
14231 return 0;
14232}
14233_ACEOF
14234rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14235if { (ac_try="$ac_link"
14236case "(($ac_try" in
14237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238 *) ac_try_echo=$ac_try;;
14239esac
ec6a6fbe
AK
14240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14241$as_echo "$ac_try_echo") >&5
7a197a62 14242 (eval "$ac_link") 2>conftest.er1
ad6254c5 14243 ac_status=$?
8a2fc586
AK
14244 grep -v '^ *+' conftest.er1 >conftest.err
14245 rm -f conftest.er1
14246 cat conftest.err >&5
ec6a6fbe 14247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14248 (exit $ac_status); } && {
14249 test -z "$ac_c_werror_flag" ||
14250 test ! -s conftest.err
ec6a6fbe
AK
14251 } && test -s conftest$ac_exeext && {
14252 test "$cross_compiling" = yes ||
14253 $as_test_x conftest$ac_exeext
14254 }; then
ad6254c5 14255 eval "$as_ac_var=yes"
795ca3e5 14256else
ec6a6fbe 14257 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14258sed 's/^/| /' conftest.$ac_ext >&5
14259
7a197a62 14260 eval "$as_ac_var=no"
80992638 14261fi
7a197a62 14262
ec6a6fbe 14263rm -rf conftest.dSYM
25fbec5b 14264rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 14265 conftest$ac_exeext conftest.$ac_ext
795ca3e5 14266fi
ec6a6fbe
AK
14267ac_res=`eval 'as_val=${'$as_ac_var'}
14268 $as_echo "$as_val"'`
14269 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14270$as_echo "$ac_res" >&6; }
14271as_val=`eval 'as_val=${'$as_ac_var'}
14272 $as_echo "$as_val"'`
14273 if test "x$as_val" = x""yes; then
ad6254c5 14274 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14275#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 14276_ACEOF
80992638
AK
14277
14278else
ec6a6fbe
AK
14279 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14280$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14281 { (exit 1); exit 1; }; }
8106cdd5 14282fi
ad6254c5 14283done
795ca3e5 14284
25fbec5b
AK
14285 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
14286# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
14287{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
14288$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 14289if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 14290 $as_echo_n "(cached) " >&6
25fbec5b
AK
14291else
14292 ac_func_search_save_LIBS=$LIBS
14293cat >conftest.$ac_ext <<_ACEOF
14294/* confdefs.h. */
14295_ACEOF
14296cat confdefs.h >>conftest.$ac_ext
14297cat >>conftest.$ac_ext <<_ACEOF
14298/* end confdefs.h. */
80992638 14299
7a197a62
AK
14300/* Override any GCC internal prototype to avoid an error.
14301 Use char because int might match the return type of a GCC
ad6254c5 14302 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14303#ifdef __cplusplus
14304extern "C"
14305#endif
25fbec5b 14306char getmntent ();
ad6254c5
AK
14307int
14308main ()
14309{
25fbec5b 14310return getmntent ();
ad6254c5
AK
14311 ;
14312 return 0;
14313}
14314_ACEOF
25fbec5b
AK
14315for ac_lib in '' sun seq gen; do
14316 if test -z "$ac_lib"; then
14317 ac_res="none required"
14318 else
14319 ac_res=-l$ac_lib
14320 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14321 fi
14322 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14323if { (ac_try="$ac_link"
14324case "(($ac_try" in
14325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14326 *) ac_try_echo=$ac_try;;
14327esac
ec6a6fbe
AK
14328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14329$as_echo "$ac_try_echo") >&5
7a197a62 14330 (eval "$ac_link") 2>conftest.er1
ad6254c5 14331 ac_status=$?
8a2fc586
AK
14332 grep -v '^ *+' conftest.er1 >conftest.err
14333 rm -f conftest.er1
14334 cat conftest.err >&5
ec6a6fbe 14335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14336 (exit $ac_status); } && {
14337 test -z "$ac_c_werror_flag" ||
14338 test ! -s conftest.err
ec6a6fbe
AK
14339 } && test -s conftest$ac_exeext && {
14340 test "$cross_compiling" = yes ||
14341 $as_test_x conftest$ac_exeext
14342 }; then
25fbec5b 14343 ac_cv_search_getmntent=$ac_res
80992638 14344else
ec6a6fbe 14345 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14346sed 's/^/| /' conftest.$ac_ext >&5
14347
25fbec5b 14348
795ca3e5
AK
14349fi
14350
ec6a6fbe 14351rm -rf conftest.dSYM
25fbec5b
AK
14352rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14353 conftest$ac_exeext
14354 if test "${ac_cv_search_getmntent+set}" = set; then
14355 break
795ca3e5 14356fi
25fbec5b
AK
14357done
14358if test "${ac_cv_search_getmntent+set}" = set; then
14359 :
14360else
14361 ac_cv_search_getmntent=no
14362fi
14363rm conftest.$ac_ext
14364LIBS=$ac_func_search_save_LIBS
14365fi
ec6a6fbe
AK
14366{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
14367$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
14368ac_res=$ac_cv_search_getmntent
14369if test "$ac_res" != no; then
14370 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14371 ac_cv_func_getmntent=yes
14372
14373cat >>confdefs.h <<\_ACEOF
9c961554 14374#define HAVE_GETMNTENT 1
ad6254c5 14375_ACEOF
795ca3e5 14376
25fbec5b
AK
14377else
14378 ac_cv_func_getmntent=no
795ca3e5 14379fi
795ca3e5
AK
14380
14381
ad6254c5
AK
14382# AC_FUNC_REALLOC
14383
14384
14385for ac_header in sys/select.h sys/socket.h
14386do
ec6a6fbe 14387as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14388if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14389 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14390$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14391if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14392 $as_echo_n "(cached) " >&6
ad6254c5 14393fi
ec6a6fbe
AK
14394ac_res=`eval 'as_val=${'$as_ac_Header'}
14395 $as_echo "$as_val"'`
14396 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14397$as_echo "$ac_res" >&6; }
795ca3e5 14398else
ad6254c5 14399 # Is the header compilable?
ec6a6fbe
AK
14400{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14401$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14402cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14403/* confdefs.h. */
14404_ACEOF
14405cat confdefs.h >>conftest.$ac_ext
14406cat >>conftest.$ac_ext <<_ACEOF
14407/* end confdefs.h. */
14408$ac_includes_default
14409#include <$ac_header>
14410_ACEOF
14411rm -f conftest.$ac_objext
7a197a62
AK
14412if { (ac_try="$ac_compile"
14413case "(($ac_try" in
14414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14415 *) ac_try_echo=$ac_try;;
14416esac
ec6a6fbe
AK
14417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14418$as_echo "$ac_try_echo") >&5
7a197a62 14419 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14420 ac_status=$?
8a2fc586
AK
14421 grep -v '^ *+' conftest.er1 >conftest.err
14422 rm -f conftest.er1
14423 cat conftest.err >&5
ec6a6fbe 14424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14425 (exit $ac_status); } && {
14426 test -z "$ac_c_werror_flag" ||
14427 test ! -s conftest.err
14428 } && test -s conftest.$ac_objext; then
ad6254c5 14429 ac_header_compiler=yes
80992638 14430else
ec6a6fbe 14431 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14432sed 's/^/| /' conftest.$ac_ext >&5
14433
7a197a62 14434 ac_header_compiler=no
ad6254c5 14435fi
7a197a62
AK
14436
14437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14438{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14439$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14440
14441# Is the header present?
ec6a6fbe
AK
14442{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14443$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14444cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14445/* confdefs.h. */
14446_ACEOF
14447cat confdefs.h >>conftest.$ac_ext
14448cat >>conftest.$ac_ext <<_ACEOF
14449/* end confdefs.h. */
14450#include <$ac_header>
14451_ACEOF
7a197a62
AK
14452if { (ac_try="$ac_cpp conftest.$ac_ext"
14453case "(($ac_try" in
14454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14455 *) ac_try_echo=$ac_try;;
14456esac
ec6a6fbe
AK
14457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14458$as_echo "$ac_try_echo") >&5
7a197a62 14459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14460 ac_status=$?
14461 grep -v '^ *+' conftest.er1 >conftest.err
14462 rm -f conftest.er1
14463 cat conftest.err >&5
ec6a6fbe 14464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14465 (exit $ac_status); } >/dev/null && {
14466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14467 test ! -s conftest.err
14468 }; then
ad6254c5
AK
14469 ac_header_preproc=yes
14470else
ec6a6fbe 14471 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14472sed 's/^/| /' conftest.$ac_ext >&5
14473
14474 ac_header_preproc=no
14475fi
7a197a62 14476
ad6254c5 14477rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14478{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14479$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14480
14481# So? What about this header?
8a2fc586
AK
14482case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14483 yes:no: )
ec6a6fbe
AK
14484 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14485$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14486 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14487$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14488 ac_header_preproc=yes
ad6254c5 14489 ;;
8a2fc586 14490 no:yes:* )
ec6a6fbe
AK
14491 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14492$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14493 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14494$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14496$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14497 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14498$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14500$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14501 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14502$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14503
ad6254c5
AK
14504 ;;
14505esac
ec6a6fbe
AK
14506{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14507$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14508if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14509 $as_echo_n "(cached) " >&6
ad6254c5 14510else
8a2fc586 14511 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 14512fi
ec6a6fbe
AK
14513ac_res=`eval 'as_val=${'$as_ac_Header'}
14514 $as_echo "$as_val"'`
14515 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14516$as_echo "$ac_res" >&6; }
8106cdd5 14517
795ca3e5 14518fi
ec6a6fbe
AK
14519as_val=`eval 'as_val=${'$as_ac_Header'}
14520 $as_echo "$as_val"'`
14521 if test "x$as_val" = x""yes; then
ad6254c5 14522 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14523#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14524_ACEOF
14525
795ca3e5
AK
14526fi
14527
ad6254c5
AK
14528done
14529
ec6a6fbe
AK
14530{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
14531$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 14532if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 14533 $as_echo_n "(cached) " >&6
26e7f2e0 14534else
ad6254c5 14535 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 14536 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
14537 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14538 cat >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$ac_includes_default
25fbec5b 14545#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
14546# include <sys/select.h>
14547#endif
25fbec5b 14548#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
14549# include <sys/socket.h>
14550#endif
14551
14552int
14553main ()
14554{
14555extern int select ($ac_arg1,
8a2fc586
AK
14556 $ac_arg234, $ac_arg234, $ac_arg234,
14557 $ac_arg5);
ad6254c5
AK
14558 ;
14559 return 0;
14560}
14561_ACEOF
14562rm -f conftest.$ac_objext
7a197a62
AK
14563if { (ac_try="$ac_compile"
14564case "(($ac_try" in
14565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566 *) ac_try_echo=$ac_try;;
14567esac
ec6a6fbe
AK
14568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14569$as_echo "$ac_try_echo") >&5
7a197a62 14570 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14571 ac_status=$?
8a2fc586
AK
14572 grep -v '^ *+' conftest.er1 >conftest.err
14573 rm -f conftest.er1
14574 cat conftest.err >&5
ec6a6fbe 14575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14576 (exit $ac_status); } && {
14577 test -z "$ac_c_werror_flag" ||
14578 test ! -s conftest.err
14579 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14580 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14581else
ec6a6fbe 14582 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14583sed 's/^/| /' conftest.$ac_ext >&5
14584
7a197a62 14585
ad6254c5 14586fi
7a197a62
AK
14587
14588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
14589 done
14590 done
14591done
14592# Provide a safe default value.
14593: ${ac_cv_func_select_args='int,int *,struct timeval *'}
14594
26e7f2e0 14595fi
ec6a6fbe
AK
14596{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
14597$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
14598ac_save_IFS=$IFS; IFS=','
14599set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14600IFS=$ac_save_IFS
14601shift
14602
14603cat >>confdefs.h <<_ACEOF
14604#define SELECT_TYPE_ARG1 $1
14605_ACEOF
14606
14607
14608cat >>confdefs.h <<_ACEOF
14609#define SELECT_TYPE_ARG234 ($2)
14610_ACEOF
14611
14612
14613cat >>confdefs.h <<_ACEOF
14614#define SELECT_TYPE_ARG5 ($3)
14615_ACEOF
14616
80992638 14617rm -f conftest*
80992638 14618
8106cdd5 14619fi
ad6254c5 14620
ad6254c5
AK
14621if test x$CLUSTER != xnone; then
14622
14623
14624for ac_header in sys/socket.h sys/un.h
b896caa1 14625do
ec6a6fbe 14626as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14627if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14628 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14629$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14630if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14631 $as_echo_n "(cached) " >&6
ad6254c5 14632fi
ec6a6fbe
AK
14633ac_res=`eval 'as_val=${'$as_ac_Header'}
14634 $as_echo "$as_val"'`
14635 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14636$as_echo "$ac_res" >&6; }
ad6254c5
AK
14637else
14638 # Is the header compilable?
ec6a6fbe
AK
14639{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14640$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14641cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14642/* confdefs.h. */
14643_ACEOF
14644cat confdefs.h >>conftest.$ac_ext
14645cat >>conftest.$ac_ext <<_ACEOF
14646/* end confdefs.h. */
14647$ac_includes_default
14648#include <$ac_header>
14649_ACEOF
14650rm -f conftest.$ac_objext
7a197a62
AK
14651if { (ac_try="$ac_compile"
14652case "(($ac_try" in
14653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14654 *) ac_try_echo=$ac_try;;
14655esac
ec6a6fbe
AK
14656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14657$as_echo "$ac_try_echo") >&5
7a197a62 14658 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14659 ac_status=$?
8a2fc586
AK
14660 grep -v '^ *+' conftest.er1 >conftest.err
14661 rm -f conftest.er1
14662 cat conftest.err >&5
ec6a6fbe 14663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14664 (exit $ac_status); } && {
14665 test -z "$ac_c_werror_flag" ||
14666 test ! -s conftest.err
14667 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14668 ac_header_compiler=yes
14669else
ec6a6fbe 14670 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14671sed 's/^/| /' conftest.$ac_ext >&5
14672
7a197a62 14673 ac_header_compiler=no
ad6254c5 14674fi
7a197a62
AK
14675
14676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14677{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14678$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14679
14680# Is the header present?
ec6a6fbe
AK
14681{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14682$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14683cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14684/* confdefs.h. */
14685_ACEOF
14686cat confdefs.h >>conftest.$ac_ext
14687cat >>conftest.$ac_ext <<_ACEOF
14688/* end confdefs.h. */
14689#include <$ac_header>
14690_ACEOF
7a197a62
AK
14691if { (ac_try="$ac_cpp conftest.$ac_ext"
14692case "(($ac_try" in
14693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694 *) ac_try_echo=$ac_try;;
14695esac
ec6a6fbe
AK
14696eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14697$as_echo "$ac_try_echo") >&5
7a197a62 14698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14699 ac_status=$?
14700 grep -v '^ *+' conftest.er1 >conftest.err
14701 rm -f conftest.er1
14702 cat conftest.err >&5
ec6a6fbe 14703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14704 (exit $ac_status); } >/dev/null && {
14705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14706 test ! -s conftest.err
14707 }; then
ad6254c5
AK
14708 ac_header_preproc=yes
14709else
ec6a6fbe 14710 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14711sed 's/^/| /' conftest.$ac_ext >&5
14712
14713 ac_header_preproc=no
14714fi
7a197a62 14715
ad6254c5 14716rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14717{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14718$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14719
14720# So? What about this header?
8a2fc586
AK
14721case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14722 yes:no: )
ec6a6fbe
AK
14723 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14724$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14725 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14726$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14727 ac_header_preproc=yes
ad6254c5 14728 ;;
8a2fc586 14729 no:yes:* )
ec6a6fbe
AK
14730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14731$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14732 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14733$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14734 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14735$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14737$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14739$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14741$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14742
ad6254c5
AK
14743 ;;
14744esac
ec6a6fbe
AK
14745{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14746$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14747if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14748 $as_echo_n "(cached) " >&6
ad6254c5 14749else
8a2fc586 14750 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 14751fi
ec6a6fbe
AK
14752ac_res=`eval 'as_val=${'$as_ac_Header'}
14753 $as_echo "$as_val"'`
14754 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14755$as_echo "$ac_res" >&6; }
ad6254c5
AK
14756
14757fi
ec6a6fbe
AK
14758as_val=`eval 'as_val=${'$as_ac_Header'}
14759 $as_echo "$as_val"'`
14760 if test "x$as_val" = x""yes; then
ad6254c5 14761 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14762#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14763_ACEOF
14764
80992638 14765else
ec6a6fbe
AK
14766 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14767$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14768 { (exit 1); exit 1; }; }
b896caa1 14769fi
ad6254c5 14770
b896caa1
AK
14771done
14772
14773
ad6254c5
AK
14774for ac_func in socket
14775do
ec6a6fbe
AK
14776as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14777{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14778$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 14779if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14780 $as_echo_n "(cached) " >&6
795ca3e5 14781else
ad6254c5 14782 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14783/* confdefs.h. */
14784_ACEOF
14785cat confdefs.h >>conftest.$ac_ext
14786cat >>conftest.$ac_ext <<_ACEOF
14787/* end confdefs.h. */
8a2fc586
AK
14788/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14790#define $ac_func innocuous_$ac_func
14791
ad6254c5
AK
14792/* System header to define __stub macros and hopefully few prototypes,
14793 which can conflict with char $ac_func (); below.
14794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14795 <limits.h> exists even on freestanding compilers. */
8a2fc586 14796
ad6254c5
AK
14797#ifdef __STDC__
14798# include <limits.h>
14799#else
14800# include <assert.h>
14801#endif
8a2fc586
AK
14802
14803#undef $ac_func
14804
7a197a62
AK
14805/* Override any GCC internal prototype to avoid an error.
14806 Use char because int might match the return type of a GCC
14807 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14808#ifdef __cplusplus
14809extern "C"
ad6254c5 14810#endif
ad6254c5
AK
14811char $ac_func ();
14812/* The GNU C library defines this for functions which it implements
14813 to always fail with ENOSYS. Some functions are actually named
14814 something starting with __ and the normal name is an alias. */
7a197a62 14815#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 14816choke me
ad6254c5
AK
14817#endif
14818
14819int
14820main ()
14821{
7a197a62 14822return $ac_func ();
ad6254c5
AK
14823 ;
14824 return 0;
14825}
14826_ACEOF
14827rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14828if { (ac_try="$ac_link"
14829case "(($ac_try" in
14830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831 *) ac_try_echo=$ac_try;;
14832esac
ec6a6fbe
AK
14833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14834$as_echo "$ac_try_echo") >&5
7a197a62 14835 (eval "$ac_link") 2>conftest.er1
ad6254c5 14836 ac_status=$?
8a2fc586
AK
14837 grep -v '^ *+' conftest.er1 >conftest.err
14838 rm -f conftest.er1
14839 cat conftest.err >&5
ec6a6fbe 14840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14841 (exit $ac_status); } && {
14842 test -z "$ac_c_werror_flag" ||
14843 test ! -s conftest.err
ec6a6fbe
AK
14844 } && test -s conftest$ac_exeext && {
14845 test "$cross_compiling" = yes ||
14846 $as_test_x conftest$ac_exeext
14847 }; then
ad6254c5
AK
14848 eval "$as_ac_var=yes"
14849else
ec6a6fbe 14850 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14851sed 's/^/| /' conftest.$ac_ext >&5
14852
7a197a62 14853 eval "$as_ac_var=no"
ad6254c5 14854fi
7a197a62 14855
ec6a6fbe 14856rm -rf conftest.dSYM
25fbec5b 14857rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 14858 conftest$ac_exeext conftest.$ac_ext
ad6254c5 14859fi
ec6a6fbe
AK
14860ac_res=`eval 'as_val=${'$as_ac_var'}
14861 $as_echo "$as_val"'`
14862 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14863$as_echo "$ac_res" >&6; }
14864as_val=`eval 'as_val=${'$as_ac_var'}
14865 $as_echo "$as_val"'`
14866 if test "x$as_val" = x""yes; then
ad6254c5 14867 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14868#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
14869_ACEOF
14870
14871else
ec6a6fbe
AK
14872 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14873$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
14874 { (exit 1); exit 1; }; }
14875fi
14876done
14877
14878fi
14879
14880if test x$HAVE_LIBDL = xyes; then
14881
14882for ac_header in dlfcn.h
14883do
ec6a6fbe 14884as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14885if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14886 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14887$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14888if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14889 $as_echo_n "(cached) " >&6
ad6254c5 14890fi
ec6a6fbe
AK
14891ac_res=`eval 'as_val=${'$as_ac_Header'}
14892 $as_echo "$as_val"'`
14893 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14894$as_echo "$ac_res" >&6; }
ad6254c5
AK
14895else
14896 # Is the header compilable?
ec6a6fbe
AK
14897{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14898$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14899cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14900/* confdefs.h. */
14901_ACEOF
14902cat confdefs.h >>conftest.$ac_ext
14903cat >>conftest.$ac_ext <<_ACEOF
14904/* end confdefs.h. */
14905$ac_includes_default
14906#include <$ac_header>
14907_ACEOF
14908rm -f conftest.$ac_objext
7a197a62
AK
14909if { (ac_try="$ac_compile"
14910case "(($ac_try" in
14911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14912 *) ac_try_echo=$ac_try;;
14913esac
ec6a6fbe
AK
14914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14915$as_echo "$ac_try_echo") >&5
7a197a62 14916 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14917 ac_status=$?
8a2fc586
AK
14918 grep -v '^ *+' conftest.er1 >conftest.err
14919 rm -f conftest.er1
14920 cat conftest.err >&5
ec6a6fbe 14921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14922 (exit $ac_status); } && {
14923 test -z "$ac_c_werror_flag" ||
14924 test ! -s conftest.err
14925 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14926 ac_header_compiler=yes
14927else
ec6a6fbe 14928 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14929sed 's/^/| /' conftest.$ac_ext >&5
14930
7a197a62 14931 ac_header_compiler=no
ad6254c5 14932fi
7a197a62
AK
14933
14934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14935{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14936$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14937
14938# Is the header present?
ec6a6fbe
AK
14939{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14940$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14941cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14942/* confdefs.h. */
14943_ACEOF
14944cat confdefs.h >>conftest.$ac_ext
14945cat >>conftest.$ac_ext <<_ACEOF
14946/* end confdefs.h. */
14947#include <$ac_header>
14948_ACEOF
7a197a62
AK
14949if { (ac_try="$ac_cpp conftest.$ac_ext"
14950case "(($ac_try" in
14951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14952 *) ac_try_echo=$ac_try;;
14953esac
ec6a6fbe
AK
14954eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14955$as_echo "$ac_try_echo") >&5
7a197a62 14956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14957 ac_status=$?
14958 grep -v '^ *+' conftest.er1 >conftest.err
14959 rm -f conftest.er1
14960 cat conftest.err >&5
ec6a6fbe 14961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14962 (exit $ac_status); } >/dev/null && {
14963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14964 test ! -s conftest.err
14965 }; then
ad6254c5
AK
14966 ac_header_preproc=yes
14967else
ec6a6fbe 14968 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14969sed 's/^/| /' conftest.$ac_ext >&5
14970
14971 ac_header_preproc=no
14972fi
7a197a62 14973
ad6254c5 14974rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14975{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14976$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14977
14978# So? What about this header?
8a2fc586
AK
14979case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14980 yes:no: )
ec6a6fbe
AK
14981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14982$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14984$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14985 ac_header_preproc=yes
ad6254c5 14986 ;;
8a2fc586 14987 no:yes:* )
ec6a6fbe
AK
14988 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14989$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14991$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14993$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14995$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14996 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14997$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14999$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 15000
ad6254c5
AK
15001 ;;
15002esac
ec6a6fbe
AK
15003{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15004$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15005if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15006 $as_echo_n "(cached) " >&6
ad6254c5 15007else
8a2fc586 15008 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 15009fi
ec6a6fbe
AK
15010ac_res=`eval 'as_val=${'$as_ac_Header'}
15011 $as_echo "$as_val"'`
15012 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15013$as_echo "$ac_res" >&6; }
80992638 15014
8106cdd5 15015fi
ec6a6fbe
AK
15016as_val=`eval 'as_val=${'$as_ac_Header'}
15017 $as_echo "$as_val"'`
15018 if test "x$as_val" = x""yes; then
ad6254c5 15019 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15020#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15021_ACEOF
795ca3e5
AK
15022
15023else
ec6a6fbe
AK
15024 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15025$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 15026 { (exit 1); exit 1; }; }
795ca3e5
AK
15027fi
15028
ad6254c5 15029done
80992638 15030
ad6254c5 15031fi
80992638 15032
ad6254c5 15033if test x$INTL = xyes; then
83912faa 15034
ad6254c5
AK
15035for ac_header in libintl.h
15036do
ec6a6fbe 15037as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 15038if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
15039 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15040$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15041if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15042 $as_echo_n "(cached) " >&6
ad6254c5 15043fi
ec6a6fbe
AK
15044ac_res=`eval 'as_val=${'$as_ac_Header'}
15045 $as_echo "$as_val"'`
15046 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15047$as_echo "$ac_res" >&6; }
83912faa 15048else
ad6254c5 15049 # Is the header compilable?
ec6a6fbe
AK
15050{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15051$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 15052cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15053/* confdefs.h. */
15054_ACEOF
15055cat confdefs.h >>conftest.$ac_ext
15056cat >>conftest.$ac_ext <<_ACEOF
15057/* end confdefs.h. */
15058$ac_includes_default
15059#include <$ac_header>
15060_ACEOF
15061rm -f conftest.$ac_objext
7a197a62
AK
15062if { (ac_try="$ac_compile"
15063case "(($ac_try" in
15064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065 *) ac_try_echo=$ac_try;;
15066esac
ec6a6fbe
AK
15067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15068$as_echo "$ac_try_echo") >&5
7a197a62 15069 (eval "$ac_compile") 2>conftest.er1
ad6254c5 15070 ac_status=$?
8a2fc586
AK
15071 grep -v '^ *+' conftest.er1 >conftest.err
15072 rm -f conftest.er1
15073 cat conftest.err >&5
ec6a6fbe 15074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15075 (exit $ac_status); } && {
15076 test -z "$ac_c_werror_flag" ||
15077 test ! -s conftest.err
15078 } && test -s conftest.$ac_objext; then
ad6254c5
AK
15079 ac_header_compiler=yes
15080else
ec6a6fbe 15081 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15082sed 's/^/| /' conftest.$ac_ext >&5
15083
7a197a62 15084 ac_header_compiler=no
ad6254c5 15085fi
7a197a62
AK
15086
15087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
15088{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15089$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
15090
15091# Is the header present?
ec6a6fbe
AK
15092{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15093$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 15094cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15095/* confdefs.h. */
15096_ACEOF
15097cat confdefs.h >>conftest.$ac_ext
15098cat >>conftest.$ac_ext <<_ACEOF
15099/* end confdefs.h. */
15100#include <$ac_header>
15101_ACEOF
7a197a62
AK
15102if { (ac_try="$ac_cpp conftest.$ac_ext"
15103case "(($ac_try" in
15104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105 *) ac_try_echo=$ac_try;;
15106esac
ec6a6fbe
AK
15107eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15108$as_echo "$ac_try_echo") >&5
7a197a62 15109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
15110 ac_status=$?
15111 grep -v '^ *+' conftest.er1 >conftest.err
15112 rm -f conftest.er1
15113 cat conftest.err >&5
ec6a6fbe 15114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15115 (exit $ac_status); } >/dev/null && {
15116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15117 test ! -s conftest.err
15118 }; then
ad6254c5
AK
15119 ac_header_preproc=yes
15120else
ec6a6fbe 15121 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15122sed 's/^/| /' conftest.$ac_ext >&5
15123
15124 ac_header_preproc=no
15125fi
7a197a62 15126
ad6254c5 15127rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
15128{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15129$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
15130
15131# So? What about this header?
8a2fc586
AK
15132case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15133 yes:no: )
ec6a6fbe
AK
15134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15135$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15137$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 15138 ac_header_preproc=yes
ad6254c5 15139 ;;
8a2fc586 15140 no:yes:* )
ec6a6fbe
AK
15141 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15142$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15144$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15146$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15148$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15150$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15151 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15152$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 15153
ad6254c5
AK
15154 ;;
15155esac
ec6a6fbe
AK
15156{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15157$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15158if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15159 $as_echo_n "(cached) " >&6
80992638 15160else
8a2fc586 15161 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 15162fi
ec6a6fbe
AK
15163ac_res=`eval 'as_val=${'$as_ac_Header'}
15164 $as_echo "$as_val"'`
15165 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15166$as_echo "$ac_res" >&6; }
83912faa 15167
69792976 15168fi
ec6a6fbe
AK
15169as_val=`eval 'as_val=${'$as_ac_Header'}
15170 $as_echo "$as_val"'`
15171 if test "x$as_val" = x""yes; then
ad6254c5 15172 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15173#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15174_ACEOF
69792976 15175
69792976 15176else
ec6a6fbe
AK
15177 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15178$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 15179 { (exit 1); exit 1; }; }
80992638
AK
15180fi
15181
ad6254c5 15182done
69792976 15183
ad6254c5
AK
15184fi
15185
a5f46f6a
AK
15186if test x$UDEV_SYNC = xyes; then
15187
15188
15189for ac_header in sys/ipc.h sys/sem.h
15190do
15191as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15192if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15193 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15194$as_echo_n "checking for $ac_header... " >&6; }
15195if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15196 $as_echo_n "(cached) " >&6
15197fi
15198ac_res=`eval 'as_val=${'$as_ac_Header'}
15199 $as_echo "$as_val"'`
15200 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15201$as_echo "$ac_res" >&6; }
15202else
15203 # Is the header compilable?
15204{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15205$as_echo_n "checking $ac_header usability... " >&6; }
15206cat >conftest.$ac_ext <<_ACEOF
15207/* confdefs.h. */
15208_ACEOF
15209cat confdefs.h >>conftest.$ac_ext
15210cat >>conftest.$ac_ext <<_ACEOF
15211/* end confdefs.h. */
15212$ac_includes_default
15213#include <$ac_header>
15214_ACEOF
15215rm -f conftest.$ac_objext
15216if { (ac_try="$ac_compile"
15217case "(($ac_try" in
15218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219 *) ac_try_echo=$ac_try;;
15220esac
15221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15222$as_echo "$ac_try_echo") >&5
15223 (eval "$ac_compile") 2>conftest.er1
15224 ac_status=$?
15225 grep -v '^ *+' conftest.er1 >conftest.err
15226 rm -f conftest.er1
15227 cat conftest.err >&5
15228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } && {
15230 test -z "$ac_c_werror_flag" ||
15231 test ! -s conftest.err
15232 } && test -s conftest.$ac_objext; then
15233 ac_header_compiler=yes
15234else
15235 $as_echo "$as_me: failed program was:" >&5
15236sed 's/^/| /' conftest.$ac_ext >&5
15237
15238 ac_header_compiler=no
15239fi
15240
15241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15242{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15243$as_echo "$ac_header_compiler" >&6; }
15244
15245# Is the header present?
15246{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15247$as_echo_n "checking $ac_header presence... " >&6; }
15248cat >conftest.$ac_ext <<_ACEOF
15249/* confdefs.h. */
15250_ACEOF
15251cat confdefs.h >>conftest.$ac_ext
15252cat >>conftest.$ac_ext <<_ACEOF
15253/* end confdefs.h. */
15254#include <$ac_header>
15255_ACEOF
15256if { (ac_try="$ac_cpp conftest.$ac_ext"
15257case "(($ac_try" in
15258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15259 *) ac_try_echo=$ac_try;;
15260esac
15261eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15262$as_echo "$ac_try_echo") >&5
15263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15264 ac_status=$?
15265 grep -v '^ *+' conftest.er1 >conftest.err
15266 rm -f conftest.er1
15267 cat conftest.err >&5
15268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); } >/dev/null && {
15270 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15271 test ! -s conftest.err
15272 }; then
15273 ac_header_preproc=yes
15274else
15275 $as_echo "$as_me: failed program was:" >&5
15276sed 's/^/| /' conftest.$ac_ext >&5
15277
15278 ac_header_preproc=no
15279fi
15280
15281rm -f conftest.err conftest.$ac_ext
15282{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15283$as_echo "$ac_header_preproc" >&6; }
15284
15285# So? What about this header?
15286case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15287 yes:no: )
15288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15289$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15291$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15292 ac_header_preproc=yes
15293 ;;
15294 no:yes:* )
15295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15296$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15298$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15300$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15302$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15304$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15306$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15307
15308 ;;
15309esac
15310{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15311$as_echo_n "checking for $ac_header... " >&6; }
15312if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15313 $as_echo_n "(cached) " >&6
15314else
15315 eval "$as_ac_Header=\$ac_header_preproc"
15316fi
15317ac_res=`eval 'as_val=${'$as_ac_Header'}
15318 $as_echo "$as_val"'`
15319 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15320$as_echo "$ac_res" >&6; }
15321
15322fi
15323as_val=`eval 'as_val=${'$as_ac_Header'}
15324 $as_echo "$as_val"'`
15325 if test "x$as_val" = x""yes; then
15326 cat >>confdefs.h <<_ACEOF
15327#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15328_ACEOF
15329
15330else
15331 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15332$as_echo "$as_me: error: bailing out" >&2;}
15333 { (exit 1); exit 1; }; }
15334fi
15335
15336done
15337
15338fi
15339
a653923f
AK
15340################################################################################
15341# Extract the first word of "modprobe", so it can be a program name with args.
15342set dummy modprobe; ac_word=$2
ec6a6fbe
AK
15343{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15344$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 15345if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 15346 $as_echo_n "(cached) " >&6
72b2cb61
AK
15347else
15348 case $MODPROBE_CMD in
15349 [\\/]* | ?:[\\/]*)
15350 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
15351 ;;
15352 *)
15353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15354for as_dir in $PATH
15355do
15356 IFS=$as_save_IFS
15357 test -z "$as_dir" && as_dir=.
15358 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 15359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 15360 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 15361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
15362 break 2
15363 fi
15364done
15365done
7a197a62 15366IFS=$as_save_IFS
72b2cb61
AK
15367
15368 ;;
15369esac
15370fi
15371MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 15372if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
15373 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
15374$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 15375else
ec6a6fbe
AK
15376 { $as_echo "$as_me:$LINENO: result: no" >&5
15377$as_echo "no" >&6; }
72b2cb61
AK
15378fi
15379
a653923f 15380
7a197a62 15381
a653923f 15382if test x$MODPROBE_CMD != x; then
72b2cb61
AK
15383
15384cat >>confdefs.h <<_ACEOF
15385#define MODPROBE_CMD "$MODPROBE_CMD"
15386_ACEOF
15387
a653923f
AK
15388fi
15389
80992638 15390################################################################################
93bd259b
AK
15391
15392
15393if test "$BUILD_DMEVENTD" = yes; then
15394
15395# Check whether --with-dmeventd-pidfile was given.
15396if test "${with_dmeventd_pidfile+set}" = set; then
15397 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
15398#define DMEVENTD_PIDFILE "$withval"
15399_ACEOF
15400
15401else
15402 cat >>confdefs.h <<_ACEOF
15403#define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
15404_ACEOF
15405
15406fi
15407
15408fi
15409
15410
15411
15412if test "$BUILD_DMEVENTD" = yes; then
15413 dmeventd_prefix="$exec_prefix"
15414 if test "x$dmeventd_prefix" = "xNONE"; then
15415 dmeventd_prefix="$prefix"
15416 fi
15417 if test "x$dmeventd_prefix" = "xNONE"; then
15418 dmeventd_prefix=""
15419 fi
15420
15421# Check whether --with-dmeventd-path was given.
15422if test "${with_dmeventd_path+set}" = set; then
15423 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
15424#define DMEVENTD_PATH "$withval"
15425_ACEOF
15426
15427else
15428 cat >>confdefs.h <<_ACEOF
15429#define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
15430_ACEOF
15431
15432fi
15433
15434fi
15435
15436################################################################################
ec6a6fbe
AK
15437{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
15438$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
15439
15440# Check whether --with-interface was given.
15441if test "${with_interface+set}" = set; then
15442 withval=$with_interface; interface="$withval"
15443else
15444 interface=ioctl
15445fi
15446
15447if [ "x$interface" != xioctl ];
15448then
ec6a6fbe
AK
15449 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
15450$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
15451 { (exit 1); exit 1; }; }
15452fi
ec6a6fbe
AK
15453{ $as_echo "$as_me:$LINENO: result: $interface" >&5
15454$as_echo "$interface" >&6; }
93bd259b
AK
15455
15456################################################################################
db8b5af9 15457DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
15458
15459cat >>confdefs.h <<_ACEOF
15460#define DM_LIB_VERSION $DM_LIB_VERSION
15461_ACEOF
15462
15463
db8b5af9 15464DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 15465
db8b5af9 15466LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 15467
db8b5af9 15468VER=`cat "$srcdir"/VERSION`
bf456146 15469LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
15470VER=`echo "$VER" | $AWK '{print $1}'`
15471LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
15472VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
15473LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
15474LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
15475LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
15476LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 15477
80992638 15478################################################################################
fae0c576 15479
83912faa 15480
795ca3e5
AK
15481
15482
15483
15484
15485
15486
5a52dca9 15487
8ef2b021 15488
199e490e 15489
69792976
AK
15490
15491
15492
d0191583 15493
69792976 15494
8106cdd5
AK
15495
15496
15497
15498
15499
d68a82ec 15500
036f273a 15501
7d1552c9 15502
8106cdd5 15503
0a62c911 15504
8106cdd5 15505
4a7f3eb2 15506
4922197a
AK
15507
15508
d8ac0fbc 15509
1a9ea74d 15510
8a2fc586
AK
15511
15512
d0191583 15513
93bd259b
AK
15514
15515
15516
15517
15518
d0191583
JM
15519
15520
15521
15522
15523
8a2fc586 15524
8ce0cbda 15525
8b1a3214 15526
ec6a6fbe
AK
15527
15528
15529
15530
e2997b73
AK
15531
15532
15533
15534
15535
15536
a946372e
AK
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
ec6a6fbe 15548
33f732c5 15549
66e941e8 15550
d3c8211f 15551
7e3fe830 15552
a5f46f6a
AK
15553
15554
15555
572fefeb 15556
90c80887
AK
15557
15558
bf456146 15559
e1b8a236 15560
0878503f 15561
68f2de6d
AK
15562
15563
80992638 15564################################################################################
d3d98fdc 15565ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile include/.symlinks 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/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile"
7a197a62 15566
ad6254c5 15567cat >confcache <<\_ACEOF
795ca3e5
AK
15568# This file is a shell script that caches the results of configure
15569# tests run on this system so they can be shared between configure
ad6254c5
AK
15570# scripts and configure runs, see configure's option --config-cache.
15571# It is not useful on other systems. If it contains results you don't
15572# want to keep, you may remove or edit it.
795ca3e5 15573#
ad6254c5
AK
15574# config.status only pays attention to the cache file if you give it
15575# the --recheck option to rerun configure.
795ca3e5 15576#
ad6254c5
AK
15577# `ac_cv_env_foo' variables (set or unset) will be overridden when
15578# loading this file, other *unset* `ac_cv_foo' will be assigned the
15579# following values.
15580
15581_ACEOF
15582
795ca3e5
AK
15583# The following way of writing the cache mishandles newlines in values,
15584# but we know of no workaround that is simple, portable, and efficient.
7a197a62 15585# So, we kill variables containing newlines.
795ca3e5
AK
15586# Ultrix sh set writes to stderr and can't be redirected directly,
15587# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
15588(
15589 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15590 eval ac_val=\$$ac_var
15591 case $ac_val in #(
15592 *${as_nl}*)
15593 case $ac_var in #(
ec6a6fbe
AK
15594 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15595$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
15596 esac
15597 case $ac_var in #(
15598 _ | IFS | as_nl) ;; #(
ec6a6fbe 15599 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
15600 *) $as_unset $ac_var ;;
15601 esac ;;
15602 esac
15603 done
15604
ad6254c5 15605 (set) 2>&1 |
7a197a62
AK
15606 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15607 *${as_nl}ac_space=\ *)
ad6254c5
AK
15608 # `set' does not quote correctly, so add quotes (double-quote
15609 # substitution turns \\\\ into \\, and sed turns \\ into \).
15610 sed -n \
8a2fc586
AK
15611 "s/'/'\\\\''/g;
15612 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 15613 ;; #(
ad6254c5
AK
15614 *)
15615 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 15616 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 15617 ;;
7a197a62
AK
15618 esac |
15619 sort
15620) |
ad6254c5 15621 sed '
7a197a62 15622 /^ac_cv_env_/b end
ad6254c5 15623 t clear
7a197a62 15624 :clear
ad6254c5
AK
15625 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15626 t end
7a197a62
AK
15627 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15628 :end' >>confcache
15629if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15630 if test -w "$cache_file"; then
15631 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
15632 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15633$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 15634 cat confcache >$cache_file
795ca3e5 15635 else
ec6a6fbe
AK
15636 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15637$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
15638 fi
15639fi
15640rm -f confcache
15641
795ca3e5
AK
15642test "x$prefix" = xNONE && prefix=$ac_default_prefix
15643# Let make expand exec_prefix.
15644test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15645
72b2cb61 15646DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
15647
15648ac_libobjs=
15649ac_ltlibobjs=
15650for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15651 # 1. Remove the extension, and $U if already installed.
7a197a62 15652 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 15653 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
15654 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15655 # will be set to the directory where LIBOBJS objects are built.
15656 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15657 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
15658done
15659LIBOBJS=$ac_libobjs
80992638 15660
ad6254c5
AK
15661LTLIBOBJS=$ac_ltlibobjs
15662
15663
15664
15665: ${CONFIG_STATUS=./config.status}
ec6a6fbe 15666ac_write_fail=0
ad6254c5
AK
15667ac_clean_files_save=$ac_clean_files
15668ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
15669{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15670$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15671cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
15672#! $SHELL
15673# Generated by $as_me.
795ca3e5 15674# Run this file to recreate the current configuration.
795ca3e5 15675# Compiler output produced by configure, useful for debugging
ad6254c5
AK
15676# configure, is in config.log if it exists.
15677
15678debug=false
15679ac_cs_recheck=false
15680ac_cs_silent=false
15681SHELL=\${CONFIG_SHELL-$SHELL}
15682_ACEOF
15683
ec6a6fbe 15684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
15685## --------------------- ##
15686## M4sh Initialization. ##
15687## --------------------- ##
15688
25fbec5b
AK
15689# Be more Bourne compatible
15690DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
15691if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15692 emulate sh
15693 NULLCMD=:
ec6a6fbe 15694 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
15695 # is contrary to our usage. Disable this feature.
15696 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
15697 setopt NO_GLOB_SUBST
15698else
25fbec5b
AK
15699 case `(set -o) 2>/dev/null` in
15700 *posix*) set -o posix ;;
15701esac
15702
7a197a62 15703fi
25fbec5b
AK
15704
15705
7a197a62
AK
15706
15707
15708# PATH needs CR
15709# Avoid depending upon Character Ranges.
15710as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15711as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15712as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15713as_cr_digits='0123456789'
15714as_cr_alnum=$as_cr_Letters$as_cr_digits
15715
ec6a6fbe
AK
15716as_nl='
15717'
15718export as_nl
15719# Printing a long string crashes Solaris 7 /usr/bin/printf.
15720as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15721as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15722as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15723if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15724 as_echo='printf %s\n'
15725 as_echo_n='printf %s'
15726else
15727 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15728 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15729 as_echo_n='/usr/ucb/echo -n'
68f2de6d 15730 else
ec6a6fbe
AK
15731 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15732 as_echo_n_body='eval
15733 arg=$1;
15734 case $arg in
15735 *"$as_nl"*)
15736 expr "X$arg" : "X\\(.*\\)$as_nl";
15737 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15738 esac;
15739 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15740 '
15741 export as_echo_n_body
15742 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 15743 fi
ec6a6fbe
AK
15744 export as_echo_body
15745 as_echo='sh -c $as_echo_body as_echo'
15746fi
15747
15748# The user is always right.
15749if test "${PATH_SEPARATOR+set}" != set; then
15750 PATH_SEPARATOR=:
15751 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15752 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15753 PATH_SEPARATOR=';'
15754 }
ad6254c5
AK
15755fi
15756
15757# Support unset when possible.
8a2fc586 15758if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
15759 as_unset=unset
15760else
15761 as_unset=false
15762fi
8106cdd5 15763
ad6254c5 15764
7a197a62
AK
15765# IFS
15766# We need space, tab and new line, in precisely that order. Quoting is
15767# there to prevent editors from complaining about space-tab.
15768# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15769# splitting by setting IFS to empty value.)
7a197a62
AK
15770IFS=" "" $as_nl"
15771
15772# Find who we are. Look in the path if we contain no directory separator.
15773case $0 in
15774 *[\\/]* ) as_myself=$0 ;;
15775 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15776for as_dir in $PATH
15777do
15778 IFS=$as_save_IFS
15779 test -z "$as_dir" && as_dir=.
15780 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15781done
15782IFS=$as_save_IFS
15783
15784 ;;
15785esac
15786# We did not find ourselves, most probably we were run as `sh COMMAND'
15787# in which case we are not to be found in the path.
15788if test "x$as_myself" = x; then
15789 as_myself=$0
15790fi
15791if test ! -f "$as_myself"; then
ec6a6fbe 15792 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
15793 { (exit 1); exit 1; }
15794fi
15795
ad6254c5 15796# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
15797for as_var in ENV MAIL MAILPATH
15798do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15799done
ad6254c5
AK
15800PS1='$ '
15801PS2='> '
15802PS4='+ '
15803
15804# NLS nuisances.
ec6a6fbe
AK
15805LC_ALL=C
15806export LC_ALL
15807LANGUAGE=C
15808export LANGUAGE
8106cdd5 15809
ad6254c5 15810# Required to use basename.
7a197a62
AK
15811if expr a : '\(a\)' >/dev/null 2>&1 &&
15812 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
15813 as_expr=expr
15814else
15815 as_expr=false
15816fi
8106cdd5 15817
7a197a62 15818if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
15819 as_basename=basename
15820else
15821 as_basename=false
15822fi
15823
15824
15825# Name of the executable.
7a197a62 15826as_me=`$as_basename -- "$0" ||
ad6254c5
AK
15827$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15828 X"$0" : 'X\(//\)$' \| \
7a197a62 15829 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 15830$as_echo X/"$0" |
7a197a62
AK
15831 sed '/^.*\/\([^/][^/]*\)\/*$/{
15832 s//\1/
15833 q
15834 }
15835 /^X\/\(\/\/\)$/{
15836 s//\1/
15837 q
15838 }
15839 /^X\/\(\/\).*/{
15840 s//\1/
15841 q
15842 }
15843 s/.*/./; q'`
ad6254c5 15844
7a197a62
AK
15845# CDPATH.
15846$as_unset CDPATH
ad6254c5
AK
15847
15848
ad6254c5 15849
ad6254c5
AK
15850 as_lineno_1=$LINENO
15851 as_lineno_2=$LINENO
ad6254c5 15852 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 15853 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 15854
ad6254c5
AK
15855 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15856 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
15857 # line-number line after each line using $LINENO; the second 'sed'
15858 # does the real work. The second script uses 'N' to pair each
15859 # line-number line with the line containing $LINENO, and appends
15860 # trailing '-' during substitution so that $LINENO is not a special
15861 # case at line end.
ad6254c5 15862 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
15863 # scripts with optimization help from Paolo Bonzini. Blame Lee
15864 # E. McMahon (1931-1989) for sed's syntax. :-)
15865 sed -n '
15866 p
15867 /[$]LINENO/=
15868 ' <$as_myself |
ad6254c5 15869 sed '
7a197a62
AK
15870 s/[$]LINENO.*/&-/
15871 t lineno
15872 b
15873 :lineno
ad6254c5 15874 N
7a197a62
AK
15875 :loop
15876 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 15877 t loop
7a197a62 15878 s/-\n.*//
ad6254c5 15879 ' >$as_me.lineno &&
7a197a62 15880 chmod +x "$as_me.lineno" ||
ec6a6fbe 15881 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
15882 { (exit 1); exit 1; }; }
15883
15884 # Don't try to exec as it changes $[0], causing all sort of problems
15885 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
15886 # original and so on. Autoconf is especially sensitive to this).
15887 . "./$as_me.lineno"
ad6254c5
AK
15888 # Exit status is that of the last command.
15889 exit
15890}
15891
15892
7a197a62
AK
15893if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15894 as_dirname=dirname
15895else
15896 as_dirname=false
15897fi
15898
15899ECHO_C= ECHO_N= ECHO_T=
15900case `echo -n x` in
15901-n*)
15902 case `echo 'x\c'` in
15903 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15904 *) ECHO_C='\c';;
15905 esac;;
15906*)
15907 ECHO_N='-n';;
ad6254c5 15908esac
7a197a62
AK
15909if expr a : '\(a\)' >/dev/null 2>&1 &&
15910 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
15911 as_expr=expr
15912else
15913 as_expr=false
15914fi
80992638 15915
ad6254c5 15916rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
15917if test -d conf$$.dir; then
15918 rm -f conf$$.dir/conf$$.file
15919else
15920 rm -f conf$$.dir
ec6a6fbe
AK
15921 mkdir conf$$.dir 2>/dev/null
15922fi
15923if (echo >conf$$.file) 2>/dev/null; then
15924 if ln -s conf$$.file conf$$ 2>/dev/null; then
15925 as_ln_s='ln -s'
15926 # ... but there are two gotchas:
15927 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15928 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15929 # In both cases, we have to default to `cp -p'.
15930 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15931 as_ln_s='cp -p'
15932 elif ln conf$$.file conf$$ 2>/dev/null; then
15933 as_ln_s=ln
15934 else
ad6254c5 15935 as_ln_s='cp -p'
ec6a6fbe 15936 fi
ad6254c5
AK
15937else
15938 as_ln_s='cp -p'
15939fi
7a197a62
AK
15940rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15941rmdir conf$$.dir 2>/dev/null
8106cdd5 15942
ad6254c5
AK
15943if mkdir -p . 2>/dev/null; then
15944 as_mkdir_p=:
15945else
8a2fc586 15946 test -d ./-p && rmdir ./-p
ad6254c5
AK
15947 as_mkdir_p=false
15948fi
15949
25fbec5b
AK
15950if test -x / >/dev/null 2>&1; then
15951 as_test_x='test -x'
7a197a62 15952else
25fbec5b
AK
15953 if ls -dL / >/dev/null 2>&1; then
15954 as_ls_L_option=L
15955 else
15956 as_ls_L_option=
15957 fi
15958 as_test_x='
15959 eval sh -c '\''
15960 if test -d "$1"; then
ec6a6fbe 15961 test -d "$1/.";
25fbec5b
AK
15962 else
15963 case $1 in
ec6a6fbe 15964 -*)set "./$1";;
25fbec5b
AK
15965 esac;
15966 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15967 ???[sx]*):;;*)false;;esac;fi
15968 '\'' sh
15969 '
7a197a62 15970fi
25fbec5b 15971as_executable_p=$as_test_x
ad6254c5
AK
15972
15973# Sed expression to map a string onto a valid CPP name.
8a2fc586 15974as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
15975
15976# Sed expression to map a string onto a valid variable name.
8a2fc586 15977as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
15978
15979
ad6254c5
AK
15980exec 6>&1
15981
7a197a62 15982# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 15983# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
15984# values after options handling.
15985ac_log="
ad6254c5 15986This file was extended by $as_me, which was
ec6a6fbe 15987generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
15988
15989 CONFIG_FILES = $CONFIG_FILES
15990 CONFIG_HEADERS = $CONFIG_HEADERS
15991 CONFIG_LINKS = $CONFIG_LINKS
15992 CONFIG_COMMANDS = $CONFIG_COMMANDS
15993 $ $0 $@
15994
7a197a62
AK
15995on `(hostname || uname -n) 2>/dev/null | sed 1q`
15996"
15997
ad6254c5
AK
15998_ACEOF
15999
ec6a6fbe
AK
16000case $ac_config_files in *"
16001"*) set x $ac_config_files; shift; ac_config_files=$*;;
16002esac
16003
16004case $ac_config_headers in *"
16005"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16006esac
16007
16008
16009cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 16010# Files that config.status was made for.
68f2de6d
AK
16011config_files="$ac_config_files"
16012config_headers="$ac_config_headers"
ad6254c5 16013
7a197a62 16014_ACEOF
ad6254c5 16015
ec6a6fbe 16016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
16017ac_cs_usage="\
16018\`$as_me' instantiates files from templates according to the
16019current configuration.
16020
ec6a6fbe 16021Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
16022
16023 -h, --help print this help, then exit
25fbec5b 16024 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
16025 -q, --quiet, --silent
16026 do not print progress messages
ad6254c5
AK
16027 -d, --debug don't remove temporary files
16028 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
16029 --file=FILE[:TEMPLATE]
16030 instantiate the configuration file FILE
16031 --header=FILE[:TEMPLATE]
16032 instantiate the configuration header FILE
ad6254c5
AK
16033
16034Configuration files:
16035$config_files
16036
72b2cb61
AK
16037Configuration headers:
16038$config_headers
16039
ad6254c5 16040Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 16041
7a197a62 16042_ACEOF
ec6a6fbe 16043cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
16044ac_cs_version="\\
16045config.status
ec6a6fbe
AK
16046configured by $0, generated by GNU Autoconf 2.63,
16047 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 16048
ec6a6fbe 16049Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
16050This config.status script is free software; the Free Software Foundation
16051gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
16052
16053ac_pwd='$ac_pwd'
16054srcdir='$srcdir'
16055INSTALL='$INSTALL'
fddafd51 16056MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
16057AWK='$AWK'
16058test -n "\$AWK" || AWK=awk
ad6254c5
AK
16059_ACEOF
16060
ec6a6fbe
AK
16061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16062# The default lists apply if the user does not specify any file.
ad6254c5
AK
16063ac_need_defaults=:
16064while test $# != 0
16065do
16066 case $1 in
16067 --*=*)
7a197a62
AK
16068 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16069 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
16070 ac_shift=:
16071 ;;
7a197a62 16072 *)
ad6254c5
AK
16073 ac_option=$1
16074 ac_optarg=$2
16075 ac_shift=shift
16076 ;;
ad6254c5
AK
16077 esac
16078
16079 case $ac_option in
16080 # Handling of the options.
ad6254c5
AK
16081 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16082 ac_cs_recheck=: ;;
7a197a62 16083 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 16084 $as_echo "$ac_cs_version"; exit ;;
7a197a62 16085 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
16086 debug=: ;;
16087 --file | --fil | --fi | --f )
16088 $ac_shift
ec6a6fbe
AK
16089 case $ac_optarg in
16090 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16091 esac
16092 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
16093 ac_need_defaults=false;;
16094 --header | --heade | --head | --hea )
16095 $ac_shift
ec6a6fbe
AK
16096 case $ac_optarg in
16097 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16098 esac
16099 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 16100 ac_need_defaults=false;;
7a197a62
AK
16101 --he | --h)
16102 # Conflict between --help and --header
ec6a6fbe 16103 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
16104Try \`$0 --help' for more information." >&2
16105 { (exit 1); exit 1; }; };;
16106 --help | --hel | -h )
ec6a6fbe 16107 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
16108 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16109 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16110 ac_cs_silent=: ;;
16111
16112 # This is an error.
ec6a6fbe 16113 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 16114Try \`$0 --help' for more information." >&2
ad6254c5
AK
16115 { (exit 1); exit 1; }; } ;;
16116
7a197a62
AK
16117 *) ac_config_targets="$ac_config_targets $1"
16118 ac_need_defaults=false ;;
ad6254c5
AK
16119
16120 esac
16121 shift
16122done
16123
16124ac_configure_extra_args=
16125
16126if $ac_cs_silent; then
16127 exec 6>/dev/null
16128 ac_configure_extra_args="$ac_configure_extra_args --silent"
16129fi
16130
16131_ACEOF
ec6a6fbe 16132cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 16133if \$ac_cs_recheck; then
ec6a6fbe
AK
16134 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16135 shift
16136 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16137 CONFIG_SHELL='$SHELL'
7a197a62 16138 export CONFIG_SHELL
ec6a6fbe 16139 exec "\$@"
ad6254c5
AK
16140fi
16141
16142_ACEOF
ec6a6fbe 16143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16144exec 5>>config.log
16145{
16146 echo
16147 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16148## Running $as_me. ##
16149_ASBOX
ec6a6fbe 16150 $as_echo "$ac_log"
7a197a62 16151} >&5
ad6254c5 16152
7a197a62 16153_ACEOF
ec6a6fbe 16154cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 16155_ACEOF
ad6254c5 16156
ec6a6fbe 16157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16158
16159# Handling of arguments.
ad6254c5
AK
16160for ac_config_target in $ac_config_targets
16161do
7a197a62
AK
16162 case $ac_config_target in
16163 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
16164 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16165 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
16166 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
16167 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 16168 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
16169 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
16170 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 16171 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 16172 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
93bd259b
AK
16173 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
16174 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 16175 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
db8b5af9 16176 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
16177 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16178 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
16179 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
16180 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
16181 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
16182 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
ec6a6fbe 16183 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 16184 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
16185 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
16186 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 16187 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 16188 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
16189 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16190 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 16191 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 16192 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 16193 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
7a197a62 16194 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 16195 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 16196 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 16197 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 16198 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
7a197a62 16199
ec6a6fbe
AK
16200 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16201$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 16202 { (exit 1); exit 1; }; };;
80992638 16203 esac
ad6254c5
AK
16204done
16205
7a197a62 16206
ad6254c5
AK
16207# If the user did not use the arguments to specify the items to instantiate,
16208# then the envvar interface is used. Set only those that are not.
16209# We use the long form for the default assignment because of an extremely
16210# bizarre bug on SunOS 4.1.3.
16211if $ac_need_defaults; then
16212 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 16213 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
16214fi
16215
16216# Have a temporary directory for convenience. Make it in the build tree
7a197a62 16217# simply because there is no reason against having it here, and in addition,
ad6254c5 16218# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
16219# Hook for its removal unless debugging.
16220# Note that there is a small window in which the directory will not be cleaned:
16221# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
16222$debug ||
16223{
7a197a62
AK
16224 tmp=
16225 trap 'exit_status=$?
16226 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16227' 0
ad6254c5
AK
16228 trap '{ (exit 1); exit 1; }' 1 2 13 15
16229}
ad6254c5
AK
16230# Create a (secure) tmp directory for tmp files.
16231
16232{
7a197a62 16233 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
16234 test -n "$tmp" && test -d "$tmp"
16235} ||
16236{
7a197a62
AK
16237 tmp=./conf$$-$RANDOM
16238 (umask 077 && mkdir "$tmp")
ad6254c5
AK
16239} ||
16240{
ec6a6fbe 16241 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
16242 { (exit 1); exit 1; }
16243}
16244
ec6a6fbe
AK
16245# Set up the scripts for CONFIG_FILES section.
16246# No need to generate them if there are no CONFIG_FILES.
16247# This happens for instance with `./config.status config.h'.
1995c9ff 16248if test -n "$CONFIG_FILES"; then
7a197a62 16249
68f2de6d 16250
ec6a6fbe
AK
16251ac_cr='\r'
16252ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16253if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16254 ac_cs_awk_cr='\\r'
16255else
16256 ac_cs_awk_cr=$ac_cr
1995c9ff 16257fi
7a197a62 16258
ec6a6fbe 16259echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 16260_ACEOF
7a197a62 16261
8106cdd5 16262
ec6a6fbe
AK
16263{
16264 echo "cat >conf$$subs.awk <<_ACEOF" &&
16265 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16266 echo "_ACEOF"
16267} >conf$$subs.sh ||
16268 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16269$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16270 { (exit 1); exit 1; }; }
16271ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
16272ac_delim='%!_!# '
16273for ac_last_try in false false false false false :; do
ec6a6fbe
AK
16274 . ./conf$$subs.sh ||
16275 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16276$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16277 { (exit 1); exit 1; }; }
16278
16279 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16280 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
16281 break
16282 elif $ac_last_try; then
ec6a6fbe
AK
16283 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16284$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
16285 { (exit 1); exit 1; }; }
16286 else
16287 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16288 fi
16289done
ec6a6fbe
AK
16290rm -f conf$$subs.sh
16291
16292cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16293cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16294_ACEOF
16295sed -n '
16296h
16297s/^/S["/; s/!.*/"]=/
16298p
16299g
16300s/^[^!]*!//
16301:repl
16302t repl
16303s/'"$ac_delim"'$//
16304t delim
16305:nl
16306h
16307s/\(.\{148\}\).*/\1/
16308t more1
16309s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16310p
16311n
16312b repl
16313:more1
16314s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16315p
16316g
16317s/.\{148\}//
16318t nl
16319:delim
16320h
16321s/\(.\{148\}\).*/\1/
16322t more2
16323s/["\\]/\\&/g; s/^/"/; s/$/"/
16324p
16325b
16326:more2
16327s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16328p
16329g
16330s/.\{148\}//
16331t delim
16332' <conf$$subs.awk | sed '
16333/^[^""]/{
16334 N
16335 s/\n//
16336}
16337' >>$CONFIG_STATUS || ac_write_fail=1
16338rm -f conf$$subs.awk
16339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16340_ACAWK
16341cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16342 for (key in S) S_is_set[key] = 1
16343 FS = "\a"
7a197a62 16344
ec6a6fbe
AK
16345}
16346{
16347 line = $ 0
16348 nfields = split(line, field, "@")
16349 substed = 0
16350 len = length(field[1])
16351 for (i = 2; i < nfields; i++) {
16352 key = field[i]
16353 keylen = length(key)
16354 if (S_is_set[key]) {
16355 value = S[key]
16356 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16357 len += length(value) + length(field[++i])
16358 substed = 1
16359 } else
16360 len += 1 + keylen
16361 }
16362
16363 print line
16364}
fddafd51 16365
ec6a6fbe 16366_ACAWK
1995c9ff 16367_ACEOF
ec6a6fbe
AK
16368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16369if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16370 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16371else
16372 cat
16373fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16374 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16375$as_echo "$as_me: error: could not setup config files machinery" >&2;}
16376 { (exit 1); exit 1; }; }
7a197a62
AK
16377_ACEOF
16378
7a197a62
AK
16379# VPATH may cause trouble with some makes, so we remove $(srcdir),
16380# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16381# trailing colons and then remove the whole line if VPATH becomes empty
16382# (actually we leave an empty line to preserve line numbers).
16383if test "x$srcdir" = x.; then
16384 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16385s/:*\$(srcdir):*/:/
16386s/:*\${srcdir}:*/:/
16387s/:*@srcdir@:*/:/
16388s/^\([^=]*=[ ]*\):*/\1/
16389s/:*$//
16390s/^[^=]*=[ ]*$//
16391}'
16392fi
16393
ec6a6fbe 16394cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16395fi # test -n "$CONFIG_FILES"
16396
ec6a6fbe
AK
16397# Set up the scripts for CONFIG_HEADERS section.
16398# No need to generate them if there are no CONFIG_HEADERS.
16399# This happens for instance with `./config.status Makefile'.
16400if test -n "$CONFIG_HEADERS"; then
16401cat >"$tmp/defines.awk" <<\_ACAWK ||
16402BEGIN {
16403_ACEOF
16404
16405# Transform confdefs.h into an awk script `defines.awk', embedded as
16406# here-document in config.status, that substitutes the proper values into
16407# config.h.in to produce config.h.
16408
16409# Create a delimiter string that does not exist in confdefs.h, to ease
16410# handling of long lines.
16411ac_delim='%!_!# '
16412for ac_last_try in false false :; do
16413 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16414 if test -z "$ac_t"; then
16415 break
16416 elif $ac_last_try; then
16417 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16418$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16419 { (exit 1); exit 1; }; }
16420 else
16421 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16422 fi
16423done
16424
16425# For the awk script, D is an array of macro values keyed by name,
16426# likewise P contains macro parameters if any. Preserve backslash
16427# newline sequences.
16428
16429ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16430sed -n '
16431s/.\{148\}/&'"$ac_delim"'/g
16432t rset
16433:rset
16434s/^[ ]*#[ ]*define[ ][ ]*/ /
16435t def
16436d
16437:def
16438s/\\$//
16439t bsnl
16440s/["\\]/\\&/g
16441s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16442D["\1"]=" \3"/p
16443s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16444d
16445:bsnl
16446s/["\\]/\\&/g
16447s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16448D["\1"]=" \3\\\\\\n"\\/p
16449t cont
16450s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16451t cont
16452d
16453:cont
16454n
16455s/.\{148\}/&'"$ac_delim"'/g
16456t clear
16457:clear
16458s/\\$//
16459t bsnlc
16460s/["\\]/\\&/g; s/^/"/; s/$/"/p
16461d
16462:bsnlc
16463s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16464b cont
16465' <confdefs.h | sed '
16466s/'"$ac_delim"'/"\\\
16467"/g' >>$CONFIG_STATUS || ac_write_fail=1
16468
16469cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16470 for (key in D) D_is_set[key] = 1
16471 FS = "\a"
16472}
16473/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16474 line = \$ 0
16475 split(line, arg, " ")
16476 if (arg[1] == "#") {
16477 defundef = arg[2]
16478 mac1 = arg[3]
16479 } else {
16480 defundef = substr(arg[1], 2)
16481 mac1 = arg[2]
16482 }
16483 split(mac1, mac2, "(") #)
16484 macro = mac2[1]
16485 prefix = substr(line, 1, index(line, defundef) - 1)
16486 if (D_is_set[macro]) {
16487 # Preserve the white space surrounding the "#".
16488 print prefix "define", macro P[macro] D[macro]
16489 next
16490 } else {
16491 # Replace #undef with comments. This is necessary, for example,
16492 # in the case of _POSIX_SOURCE, which is predefined and required
16493 # on some systems where configure will not decide to define it.
16494 if (defundef == "undef") {
16495 print "/*", prefix defundef, macro, "*/"
16496 next
16497 }
16498 }
16499}
16500{ print }
16501_ACAWK
16502_ACEOF
16503cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16504 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16505$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16506 { (exit 1); exit 1; }; }
16507fi # test -n "$CONFIG_HEADERS"
16508
7a197a62 16509
ec6a6fbe
AK
16510eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16511shift
16512for ac_tag
7a197a62
AK
16513do
16514 case $ac_tag in
16515 :[FHLC]) ac_mode=$ac_tag; continue;;
16516 esac
16517 case $ac_mode$ac_tag in
16518 :[FHL]*:*);;
ec6a6fbe
AK
16519 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16520$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
16521 { (exit 1); exit 1; }; };;
16522 :[FH]-) ac_tag=-:-;;
16523 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16524 esac
16525 ac_save_IFS=$IFS
16526 IFS=:
16527 set x $ac_tag
16528 IFS=$ac_save_IFS
16529 shift
16530 ac_file=$1
16531 shift
16532
16533 case $ac_mode in
16534 :L) ac_source=$1;;
16535 :[FH])
16536 ac_file_inputs=
16537 for ac_f
16538 do
16539 case $ac_f in
16540 -) ac_f="$tmp/stdin";;
16541 *) # Look for the file first in the build tree, then in the source tree
16542 # (if the path is not absolute). The absolute path cannot be DOS-style,
16543 # because $ac_f cannot contain `:'.
16544 test -f "$ac_f" ||
16545 case $ac_f in
16546 [\\/$]*) false;;
16547 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16548 esac ||
ec6a6fbe
AK
16549 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16550$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
16551 { (exit 1); exit 1; }; };;
16552 esac
ec6a6fbe
AK
16553 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16554 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
16555 done
16556
16557 # Let's still pretend it is `configure' which instantiates (i.e., don't
16558 # use $as_me), people would be surprised to read:
16559 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
16560 configure_input='Generated from '`
16561 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16562 `' by configure.'
7a197a62
AK
16563 if test x"$ac_file" != x-; then
16564 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
16565 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16566$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 16567 fi
ec6a6fbe
AK
16568 # Neutralize special characters interpreted by sed in replacement strings.
16569 case $configure_input in #(
16570 *\&* | *\|* | *\\* )
16571 ac_sed_conf_input=`$as_echo "$configure_input" |
16572 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16573 *) ac_sed_conf_input=$configure_input;;
16574 esac
7a197a62
AK
16575
16576 case $ac_tag in
ec6a6fbe
AK
16577 *:-:* | *:-) cat >"$tmp/stdin" \
16578 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16579$as_echo "$as_me: error: could not create $ac_file" >&2;}
16580 { (exit 1); exit 1; }; } ;;
7a197a62
AK
16581 esac
16582 ;;
80992638 16583 esac
8106cdd5 16584
7a197a62 16585 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 16586$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
16587 X"$ac_file" : 'X\(//\)[^/]' \| \
16588 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 16589 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 16590$as_echo X"$ac_file" |
7a197a62
AK
16591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16592 s//\1/
16593 q
16594 }
16595 /^X\(\/\/\)[^/].*/{
16596 s//\1/
16597 q
16598 }
16599 /^X\(\/\/\)$/{
16600 s//\1/
16601 q
16602 }
16603 /^X\(\/\).*/{
16604 s//\1/
16605 q
16606 }
16607 s/.*/./; q'`
16608 { as_dir="$ac_dir"
16609 case $as_dir in #(
16610 -*) as_dir=./$as_dir;;
16611 esac
16612 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 16613 as_dirs=
7a197a62
AK
16614 while :; do
16615 case $as_dir in #(
ec6a6fbe 16616 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
16617 *) as_qdir=$as_dir;;
16618 esac
16619 as_dirs="'$as_qdir' $as_dirs"
16620 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 16621$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
16622 X"$as_dir" : 'X\(//\)[^/]' \| \
16623 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 16624 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 16625$as_echo X"$as_dir" |
7a197a62
AK
16626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16627 s//\1/
16628 q
16629 }
16630 /^X\(\/\/\)[^/].*/{
16631 s//\1/
16632 q
16633 }
16634 /^X\(\/\/\)$/{
16635 s//\1/
16636 q
16637 }
16638 /^X\(\/\).*/{
16639 s//\1/
16640 q
16641 }
16642 s/.*/./; q'`
16643 test -d "$as_dir" && break
ad6254c5 16644 done
7a197a62 16645 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
16646 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16647$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 16648 { (exit 1); exit 1; }; }; }
ad6254c5
AK
16649 ac_builddir=.
16650
7a197a62
AK
16651case "$ac_dir" in
16652.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16653*)
ec6a6fbe 16654 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 16655 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 16656 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
16657 case $ac_top_builddir_sub in
16658 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16659 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16660 esac ;;
16661esac
16662ac_abs_top_builddir=$ac_pwd
16663ac_abs_builddir=$ac_pwd$ac_dir_suffix
16664# for backward compatibility:
16665ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
16666
16667case $srcdir in
7a197a62 16668 .) # We are building in place.
ad6254c5 16669 ac_srcdir=.
7a197a62
AK
16670 ac_top_srcdir=$ac_top_builddir_sub
16671 ac_abs_top_srcdir=$ac_pwd ;;
16672 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 16673 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
16674 ac_top_srcdir=$srcdir
16675 ac_abs_top_srcdir=$srcdir ;;
16676 *) # Relative name.
16677 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16678 ac_top_srcdir=$ac_top_build_prefix$srcdir
16679 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 16680esac
7a197a62 16681ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 16682
ad6254c5 16683
7a197a62
AK
16684 case $ac_mode in
16685 :F)
16686 #
16687 # CONFIG_FILE
16688 #
ad6254c5
AK
16689
16690 case $INSTALL in
16691 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 16692 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 16693 esac
fddafd51
ZK
16694 ac_MKDIR_P=$MKDIR_P
16695 case $MKDIR_P in
16696 [\\/$]* | ?:[\\/]* ) ;;
16697 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16698 esac
7a197a62 16699_ACEOF
795ca3e5 16700
ec6a6fbe 16701cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16702# If the template does not know about datarootdir, expand it.
16703# FIXME: This hack should be removed a few years after 2.60.
16704ac_datarootdir_hack=; ac_datarootdir_seen=
16705
ec6a6fbe
AK
16706ac_sed_dataroot='
16707/datarootdir/ {
7a197a62
AK
16708 p
16709 q
16710}
16711/@datadir@/p
16712/@docdir@/p
16713/@infodir@/p
16714/@localedir@/p
16715/@mandir@/p
ec6a6fbe
AK
16716'
16717case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
16718*datarootdir*) ac_datarootdir_seen=yes;;
16719*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
16720 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16721$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 16722_ACEOF
ec6a6fbe 16723cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
16724 ac_datarootdir_hack='
16725 s&@datadir@&$datadir&g
16726 s&@docdir@&$docdir&g
16727 s&@infodir@&$infodir&g
16728 s&@localedir@&$localedir&g
16729 s&@mandir@&$mandir&g
16730 s&\\\${datarootdir}&$datarootdir&g' ;;
16731esac
16732_ACEOF
16733
16734# Neutralize VPATH when `$srcdir' = `.'.
16735# Shell code in configure.ac might set extrasub.
16736# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
16737cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16738ac_sed_extra="$ac_vpsub
ad6254c5
AK
16739$extrasub
16740_ACEOF
ec6a6fbe 16741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
16742:t
16743/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 16744s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 16745s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 16746s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
16747s&@srcdir@&$ac_srcdir&;t t
16748s&@abs_srcdir@&$ac_abs_srcdir&;t t
16749s&@top_srcdir@&$ac_top_srcdir&;t t
16750s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16751s&@builddir@&$ac_builddir&;t t
16752s&@abs_builddir@&$ac_abs_builddir&;t t
16753s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16754s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 16755s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 16756$ac_datarootdir_hack
ec6a6fbe
AK
16757"
16758eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16759 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16760$as_echo "$as_me: error: could not create $ac_file" >&2;}
16761 { (exit 1); exit 1; }; }
7a197a62
AK
16762
16763test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16764 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16765 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 16766 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 16767which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 16768$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
16769which seems to be undefined. Please make sure it is defined." >&2;}
16770
16771 rm -f "$tmp/stdin"
72b2cb61 16772 case $ac_file in
ec6a6fbe
AK
16773 -) cat "$tmp/out" && rm -f "$tmp/out";;
16774 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16775 esac \
16776 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16777$as_echo "$as_me: error: could not create $ac_file" >&2;}
16778 { (exit 1); exit 1; }; }
7a197a62
AK
16779 ;;
16780 :H)
16781 #
16782 # CONFIG_HEADER
16783 #
72b2cb61 16784 if test x"$ac_file" != x-; then
ec6a6fbe
AK
16785 {
16786 $as_echo "/* $configure_input */" \
16787 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16788 } >"$tmp/config.h" \
16789 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16790$as_echo "$as_me: error: could not create $ac_file" >&2;}
16791 { (exit 1); exit 1; }; }
16792 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16793 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16794$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 16795 else
ec6a6fbe
AK
16796 rm -f "$ac_file"
16797 mv "$tmp/config.h" "$ac_file" \
16798 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16799$as_echo "$as_me: error: could not create $ac_file" >&2;}
16800 { (exit 1); exit 1; }; }
72b2cb61
AK
16801 fi
16802 else
ec6a6fbe
AK
16803 $as_echo "/* $configure_input */" \
16804 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16805 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16806$as_echo "$as_me: error: could not create -" >&2;}
16807 { (exit 1); exit 1; }; }
72b2cb61 16808 fi
7a197a62
AK
16809 ;;
16810
16811
16812 esac
16813
16814done # for ac_tag
795ca3e5 16815
795ca3e5 16816
ad6254c5
AK
16817{ (exit 0); exit 0; }
16818_ACEOF
795ca3e5 16819chmod +x $CONFIG_STATUS
ad6254c5
AK
16820ac_clean_files=$ac_clean_files_save
16821
ec6a6fbe
AK
16822test $ac_write_fail = 0 ||
16823 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16824$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16825 { (exit 1); exit 1; }; }
16826
ad6254c5
AK
16827
16828# configure is writing to config.log, and then calls config.status.
16829# config.status does its own redirection, appending to config.log.
16830# Unfortunately, on DOS this fails, as config.log is still kept open
16831# by configure, so config.status won't be able to write to it; its
16832# output is simply discarded. So we exec the FD to /dev/null,
16833# effectively closing config.log, so it can be properly (re)opened and
16834# appended to by config.status. When coming back to configure, we
16835# need to make the FD available again.
16836if test "$no_create" != yes; then
16837 ac_cs_success=:
16838 ac_config_status_args=
16839 test "$silent" = yes &&
16840 ac_config_status_args="$ac_config_status_args --quiet"
16841 exec 5>/dev/null
16842 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16843 exec 5>>config.log
16844 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16845 # would make configure fail if this is the last instruction.
16846 $ac_cs_success || { (exit 1); exit 1; }
16847fi
ec6a6fbe
AK
16848if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16849 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16850$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16851fi
795ca3e5 16852
2dc95e1c
AK
16853
16854if test x$ODIRECT != xyes; then
ec6a6fbe
AK
16855 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
16856$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 16857fi
This page took 2.185489 seconds and 5 git commands to generate.