]> sourceware.org Git - lvm2.git/blame - configure
Use vpath instead of VPATH.
[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
db724a44 651UDEV_LIBS
ec6a6fbe
AK
652STATIC_LINK
653STATICDIR
654SNAPSHOTS
e1b8a236 655SELINUX_LIBS
539f4a77 656READLINE_LIBS
f30875db 657PTHREAD_LIBS
ec6a6fbe
AK
658POOL
659PKGCONFIG
660OWNER
661MIRRORS
662LVM_RELEASE_DATE
663LVM_RELEASE
664LVM_PATCHLEVEL
665LVM_MINOR
666LVM_MAJOR
bf456146 667LVM_LIBAPI
ec6a6fbe 668LVM_VERSION
ec6a6fbe
AK
669LVM1_FALLBACK
670LVM1
671LOCALEDIR
672LIB_SUFFIX
673LDDEPS
674JOBS
675INTL_PACKAGE
676INTL
ec6a6fbe
AK
677HAVE_REALTIME
678HAVE_LIBDL
679GROUP
680FSADM
681DM_LIB_PATCHLEVEL
682DM_LIB_VERSION
683DM_IOCTLS
684DM_DEVICE_UID
685DM_DEVICE_MODE
686DM_DEVICE_GID
687DM_COMPAT
688DMEVENTD
19a2c6e0 689DL_LIBS
ec6a6fbe
AK
690DEVMAPPER
691DEBUG
692COPTIMISE_FLAG
e2997b73 693CONFDIR
ec6a6fbe
AK
694CMDLIB
695CLVMD
696CLUSTER
697CLDWHOLEARCHIVE
698CLDNOWHOLEARCHIVE
699CLDFLAGS
700BUILD_DMEVENTD
66fd4529 701BUILD_CMIRRORD
572fefeb 702APPLIB
ec6a6fbe
AK
703MODPROBE_CMD
704MSGFMT
705LVM2CMD_LIB
572fefeb 706LVM2APP_LIB
fd4728e1 707GENPNG
ec6a6fbe
AK
708GENHTML
709LCOV
90c80887
AK
710SACKPT_LIBS
711SACKPT_CFLAGS
a946372e
AK
712DLM_LIBS
713DLM_CFLAGS
e2997b73
AK
714CPG_LIBS
715CPG_CFLAGS
716CONFDB_LIBS
717CONFDB_CFLAGS
a946372e
AK
718SALCK_LIBS
719SALCK_CFLAGS
e2997b73
AK
720QUORUM_LIBS
721QUORUM_CFLAGS
a946372e
AK
722COROSYNC_LIBS
723COROSYNC_CFLAGS
724CMAN_LIBS
725CMAN_CFLAGS
726GULM_LIBS
727GULM_CFLAGS
728CCS_LIBS
729CCS_CFLAGS
730PKGCONFIGINIT_LIBS
731PKGCONFIGINIT_CFLAGS
e2997b73 732PKG_CONFIG
ec6a6fbe
AK
733POW_LIB
734LIBOBJS
735ALLOCA
736CSCOPE_CMD
737CFLOW_CMD
738RANLIB
739MKDIR_P
740SET_MAKE
741LN_S
742INSTALL_DATA
743INSTALL_SCRIPT
744INSTALL_PROGRAM
745EGREP
746GREP
747CPP
748OBJEXT
749EXEEXT
750ac_ct_CC
751CPPFLAGS
752LDFLAGS
753CFLAGS
754CC
755AWK
756SED
757target_os
758target_vendor
759target_cpu
760target
761host_os
762host_vendor
763host_cpu
764host
765build_os
766build_vendor
767build_cpu
768build
769target_alias
770host_alias
771build_alias
772LIBS
773ECHO_T
774ECHO_N
775ECHO_C
776DEFS
777mandir
778localedir
779libdir
780psdir
781pdfdir
782dvidir
783htmldir
784infodir
785docdir
786oldincludedir
787includedir
788localstatedir
789sharedstatedir
790sysconfdir
791datadir
792datarootdir
793libexecdir
794sbindir
795bindir
796program_transform_name
797prefix
798exec_prefix
799PACKAGE_BUGREPORT
800PACKAGE_STRING
801PACKAGE_VERSION
802PACKAGE_TARNAME
803PACKAGE_NAME
804PATH_SEPARATOR
805SHELL'
ad6254c5 806ac_subst_files=''
ec6a6fbe
AK
807ac_user_opts='
808enable_option_checking
809enable_static_link
810with_user
811with_group
812with_device_uid
813with_device_gid
814with_device_mode
815enable_lvm1_fallback
816with_lvm1
817with_pool
818with_cluster
819with_snapshots
820with_mirrors
821enable_readline
822enable_realtime
823with_clvmd
66fd4529
AK
824enable_cmirrord
825with_cmirrord_pidfile
ec6a6fbe
AK
826enable_debug
827with_optimisation
828enable_profiling
829enable_devmapper
a5f46f6a
AK
830enable_udev_sync
831enable_udev_rules
ec6a6fbe 832enable_compat
95eaa683 833enable_units_compat
ec6a6fbe
AK
834enable_ioctl
835enable_o_direct
572fefeb 836enable_applib
ec6a6fbe
AK
837enable_cmdlib
838enable_pkgconfig
839enable_fsadm
840enable_dmeventd
841enable_selinux
842enable_nls
843with_localedir
844with_confdir
845with_staticdir
846with_usrlibdir
847with_usrsbindir
a5f46f6a 848with_udev_prefix
78ce7acc 849with_udevdir
ec6a6fbe
AK
850with_dmeventd_pidfile
851with_dmeventd_path
852with_interface
853'
7a197a62
AK
854 ac_precious_vars='build_alias
855host_alias
856target_alias
857CC
858CFLAGS
859LDFLAGS
25fbec5b 860LIBS
7a197a62 861CPPFLAGS
e2997b73
AK
862CPP
863PKG_CONFIG
a946372e
AK
864PKGCONFIGINIT_CFLAGS
865PKGCONFIGINIT_LIBS
866CCS_CFLAGS
867CCS_LIBS
868GULM_CFLAGS
869GULM_LIBS
870CMAN_CFLAGS
871CMAN_LIBS
872COROSYNC_CFLAGS
873COROSYNC_LIBS
e2997b73
AK
874QUORUM_CFLAGS
875QUORUM_LIBS
a946372e
AK
876SALCK_CFLAGS
877SALCK_LIBS
e2997b73
AK
878CONFDB_CFLAGS
879CONFDB_LIBS
880CPG_CFLAGS
a946372e
AK
881CPG_LIBS
882DLM_CFLAGS
90c80887
AK
883DLM_LIBS
884SACKPT_CFLAGS
885SACKPT_LIBS'
7a197a62 886
795ca3e5
AK
887
888# Initialize some variables set by options.
ad6254c5
AK
889ac_init_help=
890ac_init_version=false
ec6a6fbe
AK
891ac_unrecognized_opts=
892ac_unrecognized_sep=
795ca3e5
AK
893# The variables have the same names as the options, with
894# dashes changed to underlines.
ad6254c5 895cache_file=/dev/null
795ca3e5 896exec_prefix=NONE
795ca3e5 897no_create=
795ca3e5
AK
898no_recursion=
899prefix=NONE
900program_prefix=NONE
901program_suffix=NONE
902program_transform_name=s,x,x,
903silent=
904site=
905srcdir=
795ca3e5
AK
906verbose=
907x_includes=NONE
908x_libraries=NONE
ad6254c5
AK
909
910# Installation directory options.
911# These are left unexpanded so users can "make install exec_prefix=/foo"
912# and all the variables that are supposed to be based on exec_prefix
913# by default will actually change.
914# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 915# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
916bindir='${exec_prefix}/bin'
917sbindir='${exec_prefix}/sbin'
918libexecdir='${exec_prefix}/libexec'
7a197a62
AK
919datarootdir='${prefix}/share'
920datadir='${datarootdir}'
795ca3e5
AK
921sysconfdir='${prefix}/etc'
922sharedstatedir='${prefix}/com'
923localstatedir='${prefix}/var'
795ca3e5
AK
924includedir='${prefix}/include'
925oldincludedir='/usr/include'
7a197a62
AK
926docdir='${datarootdir}/doc/${PACKAGE}'
927infodir='${datarootdir}/info'
928htmldir='${docdir}'
929dvidir='${docdir}'
930pdfdir='${docdir}'
931psdir='${docdir}'
932libdir='${exec_prefix}/lib'
933localedir='${datarootdir}/locale'
934mandir='${datarootdir}/man'
795ca3e5 935
795ca3e5 936ac_prev=
7a197a62 937ac_dashdash=
795ca3e5
AK
938for ac_option
939do
795ca3e5
AK
940 # If the previous option needs an argument, assign it.
941 if test -n "$ac_prev"; then
7a197a62 942 eval $ac_prev=\$ac_option
795ca3e5
AK
943 ac_prev=
944 continue
945 fi
946
7a197a62
AK
947 case $ac_option in
948 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
949 *) ac_optarg=yes ;;
950 esac
795ca3e5
AK
951
952 # Accept the important Cygnus configure options, so we can diagnose typos.
953
7a197a62
AK
954 case $ac_dashdash$ac_option in
955 --)
956 ac_dashdash=yes ;;
795ca3e5
AK
957
958 -bindir | --bindir | --bindi | --bind | --bin | --bi)
959 ac_prev=bindir ;;
960 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 961 bindir=$ac_optarg ;;
795ca3e5
AK
962
963 -build | --build | --buil | --bui | --bu)
ad6254c5 964 ac_prev=build_alias ;;
795ca3e5 965 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 966 build_alias=$ac_optarg ;;
795ca3e5
AK
967
968 -cache-file | --cache-file | --cache-fil | --cache-fi \
969 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
970 ac_prev=cache_file ;;
971 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
972 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
973 cache_file=$ac_optarg ;;
974
975 --config-cache | -C)
976 cache_file=config.cache ;;
795ca3e5 977
7a197a62 978 -datadir | --datadir | --datadi | --datad)
795ca3e5 979 ac_prev=datadir ;;
7a197a62 980 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 981 datadir=$ac_optarg ;;
795ca3e5 982
7a197a62
AK
983 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
984 | --dataroo | --dataro | --datar)
985 ac_prev=datarootdir ;;
986 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
987 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
988 datarootdir=$ac_optarg ;;
989
795ca3e5 990 -disable-* | --disable-*)
ec6a6fbe 991 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 992 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 995 { (exit 1); exit 1; }; }
ec6a6fbe
AK
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
999 *"
1000"enable_$ac_useropt"
1001"*) ;;
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1004 esac
1005 eval enable_$ac_useropt=no ;;
7a197a62
AK
1006
1007 -docdir | --docdir | --docdi | --doc | --do)
1008 ac_prev=docdir ;;
1009 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1010 docdir=$ac_optarg ;;
1011
1012 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1013 ac_prev=dvidir ;;
1014 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1015 dvidir=$ac_optarg ;;
795ca3e5
AK
1016
1017 -enable-* | --enable-*)
ec6a6fbe 1018 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1019 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1022 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1026 *"
1027"enable_$ac_useropt"
1028"*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
1031 esac
1032 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1033
1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036 | --exec | --exe | --ex)
1037 ac_prev=exec_prefix ;;
1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040 | --exec=* | --exe=* | --ex=*)
ad6254c5 1041 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1042
1043 -gas | --gas | --ga | --g)
1044 # Obsolete; use --with-gas.
1045 with_gas=yes ;;
1046
ad6254c5
AK
1047 -help | --help | --hel | --he | -h)
1048 ac_init_help=long ;;
1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050 ac_init_help=recursive ;;
1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052 ac_init_help=short ;;
795ca3e5
AK
1053
1054 -host | --host | --hos | --ho)
ad6254c5 1055 ac_prev=host_alias ;;
795ca3e5 1056 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1057 host_alias=$ac_optarg ;;
795ca3e5 1058
7a197a62
AK
1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 ac_prev=htmldir ;;
1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 | --ht=*)
1063 htmldir=$ac_optarg ;;
1064
795ca3e5
AK
1065 -includedir | --includedir | --includedi | --included | --include \
1066 | --includ | --inclu | --incl | --inc)
1067 ac_prev=includedir ;;
1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1070 includedir=$ac_optarg ;;
795ca3e5
AK
1071
1072 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 ac_prev=infodir ;;
1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1075 infodir=$ac_optarg ;;
795ca3e5
AK
1076
1077 -libdir | --libdir | --libdi | --libd)
1078 ac_prev=libdir ;;
1079 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1080 libdir=$ac_optarg ;;
795ca3e5
AK
1081
1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083 | --libexe | --libex | --libe)
1084 ac_prev=libexecdir ;;
1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1087 libexecdir=$ac_optarg ;;
795ca3e5 1088
7a197a62
AK
1089 -localedir | --localedir | --localedi | --localed | --locale)
1090 ac_prev=localedir ;;
1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092 localedir=$ac_optarg ;;
1093
795ca3e5 1094 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1095 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1096 ac_prev=localstatedir ;;
1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1099 localstatedir=$ac_optarg ;;
795ca3e5
AK
1100
1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 ac_prev=mandir ;;
1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1104 mandir=$ac_optarg ;;
795ca3e5
AK
1105
1106 -nfp | --nfp | --nf)
1107 # Obsolete; use --without-fp.
1108 with_fp=no ;;
1109
1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1111 | --no-cr | --no-c | -n)
795ca3e5
AK
1112 no_create=yes ;;
1113
1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 no_recursion=yes ;;
1117
1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120 | --oldin | --oldi | --old | --ol | --o)
1121 ac_prev=oldincludedir ;;
1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1125 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1126
1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 ac_prev=prefix ;;
1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1130 prefix=$ac_optarg ;;
795ca3e5
AK
1131
1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133 | --program-pre | --program-pr | --program-p)
1134 ac_prev=program_prefix ;;
1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1137 program_prefix=$ac_optarg ;;
795ca3e5
AK
1138
1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140 | --program-suf | --program-su | --program-s)
1141 ac_prev=program_suffix ;;
1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1144 program_suffix=$ac_optarg ;;
795ca3e5
AK
1145
1146 -program-transform-name | --program-transform-name \
1147 | --program-transform-nam | --program-transform-na \
1148 | --program-transform-n | --program-transform- \
1149 | --program-transform | --program-transfor \
1150 | --program-transfo | --program-transf \
1151 | --program-trans | --program-tran \
1152 | --progr-tra | --program-tr | --program-t)
1153 ac_prev=program_transform_name ;;
1154 -program-transform-name=* | --program-transform-name=* \
1155 | --program-transform-nam=* | --program-transform-na=* \
1156 | --program-transform-n=* | --program-transform-=* \
1157 | --program-transform=* | --program-transfor=* \
1158 | --program-transfo=* | --program-transf=* \
1159 | --program-trans=* | --program-tran=* \
1160 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1161 program_transform_name=$ac_optarg ;;
795ca3e5 1162
7a197a62
AK
1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 ac_prev=pdfdir ;;
1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166 pdfdir=$ac_optarg ;;
1167
1168 -psdir | --psdir | --psdi | --psd | --ps)
1169 ac_prev=psdir ;;
1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 psdir=$ac_optarg ;;
1172
795ca3e5
AK
1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174 | -silent | --silent | --silen | --sile | --sil)
1175 silent=yes ;;
1176
1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178 ac_prev=sbindir ;;
1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180 | --sbi=* | --sb=*)
ad6254c5 1181 sbindir=$ac_optarg ;;
795ca3e5
AK
1182
1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185 | --sharedst | --shareds | --shared | --share | --shar \
1186 | --sha | --sh)
1187 ac_prev=sharedstatedir ;;
1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191 | --sha=* | --sh=*)
ad6254c5 1192 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1193
1194 -site | --site | --sit)
1195 ac_prev=site ;;
1196 -site=* | --site=* | --sit=*)
ad6254c5 1197 site=$ac_optarg ;;
795ca3e5
AK
1198
1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200 ac_prev=srcdir ;;
1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1202 srcdir=$ac_optarg ;;
795ca3e5
AK
1203
1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205 | --syscon | --sysco | --sysc | --sys | --sy)
1206 ac_prev=sysconfdir ;;
1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1209 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1210
1211 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1212 ac_prev=target_alias ;;
795ca3e5 1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1214 target_alias=$ac_optarg ;;
795ca3e5
AK
1215
1216 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217 verbose=yes ;;
1218
ad6254c5
AK
1219 -version | --version | --versio | --versi | --vers | -V)
1220 ac_init_version=: ;;
795ca3e5
AK
1221
1222 -with-* | --with-*)
ec6a6fbe 1223 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1224 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1227 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1228 ac_useropt_orig=$ac_useropt
1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1231 *"
1232"with_$ac_useropt"
1233"*) ;;
1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1235 ac_unrecognized_sep=', ';;
1236 esac
1237 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1238
1239 -without-* | --without-*)
ec6a6fbe 1240 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1241 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1244 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1248 *"
1249"with_$ac_useropt"
1250"*) ;;
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
1253 esac
1254 eval with_$ac_useropt=no ;;
795ca3e5
AK
1255
1256 --x)
1257 # Obsolete; use --with-x.
1258 with_x=yes ;;
1259
1260 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1261 | --x-incl | --x-inc | --x-in | --x-i)
1262 ac_prev=x_includes ;;
1263 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1264 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1265 x_includes=$ac_optarg ;;
795ca3e5
AK
1266
1267 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1268 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1269 ac_prev=x_libraries ;;
1270 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1271 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1272 x_libraries=$ac_optarg ;;
795ca3e5 1273
ec6a6fbe 1274 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1275Try \`$0 --help' for more information." >&2
1276 { (exit 1); exit 1; }; }
795ca3e5
AK
1277 ;;
1278
ad6254c5
AK
1279 *=*)
1280 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1283 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1284 { (exit 1); exit 1; }; }
7a197a62 1285 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1286 export $ac_envvar ;;
1287
795ca3e5 1288 *)
ad6254c5 1289 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1290 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1291 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1292 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1293 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1294 ;;
1295
1296 esac
1297done
1298
1299if test -n "$ac_prev"; then
ad6254c5 1300 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec6a6fbe 1301 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1302 { (exit 1); exit 1; }; }
795ca3e5 1303fi
795ca3e5 1304
ec6a6fbe
AK
1305if test -n "$ac_unrecognized_opts"; then
1306 case $enable_option_checking in
1307 no) ;;
1308 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1309 { (exit 1); exit 1; }; } ;;
1310 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1311 esac
1312fi
1313
1314# Check all directory arguments for consistency.
7a197a62
AK
1315for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1316 datadir sysconfdir sharedstatedir localstatedir includedir \
1317 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1318 libdir localedir mandir
795ca3e5 1319do
7a197a62 1320 eval ac_val=\$$ac_var
ec6a6fbe
AK
1321 # Remove trailing slashes.
1322 case $ac_val in
1323 */ )
1324 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1325 eval $ac_var=\$ac_val;;
1326 esac
1327 # Be sure to have absolute directory names.
ad6254c5 1328 case $ac_val in
7a197a62
AK
1329 [\\/$]* | ?:[\\/]* ) continue;;
1330 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1331 esac
ec6a6fbe 1332 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1333 { (exit 1); exit 1; }; }
795ca3e5
AK
1334done
1335
ad6254c5
AK
1336# There might be people who depend on the old broken behavior: `$host'
1337# used to hold the argument of --host etc.
1338# FIXME: To remove some day.
1339build=$build_alias
1340host=$host_alias
1341target=$target_alias
1342
1343# FIXME: To remove some day.
1344if test "x$host_alias" != x; then
1345 if test "x$build_alias" = x; then
1346 cross_compiling=maybe
ec6a6fbe 1347 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1348 If a cross compiler is detected then cross compile mode will be used." >&2
1349 elif test "x$build_alias" != "x$host_alias"; then
1350 cross_compiling=yes
1351 fi
1352fi
8106cdd5 1353
ad6254c5
AK
1354ac_tool_prefix=
1355test -n "$host_alias" && ac_tool_prefix=$host_alias-
1356
1357test "$silent" = yes && exec 6>/dev/null
795ca3e5 1358
795ca3e5 1359
7a197a62
AK
1360ac_pwd=`pwd` && test -n "$ac_pwd" &&
1361ac_ls_di=`ls -di .` &&
1362ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec6a6fbe 1363 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7a197a62
AK
1364 { (exit 1); exit 1; }; }
1365test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec6a6fbe 1366 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1367 { (exit 1); exit 1; }; }
1368
1369
795ca3e5
AK
1370# Find the source files, if location was not specified.
1371if test -z "$srcdir"; then
1372 ac_srcdir_defaulted=yes
7a197a62 1373 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1374 ac_confdir=`$as_dirname -- "$as_myself" ||
1375$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1376 X"$as_myself" : 'X\(//\)[^/]' \| \
1377 X"$as_myself" : 'X\(//\)$' \| \
1378 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1379$as_echo X"$as_myself" |
7a197a62
AK
1380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1381 s//\1/
1382 q
1383 }
1384 /^X\(\/\/\)[^/].*/{
1385 s//\1/
1386 q
1387 }
1388 /^X\(\/\/\)$/{
1389 s//\1/
1390 q
1391 }
1392 /^X\(\/\).*/{
1393 s//\1/
1394 q
1395 }
1396 s/.*/./; q'`
795ca3e5 1397 srcdir=$ac_confdir
7a197a62 1398 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1399 srcdir=..
1400 fi
1401else
1402 ac_srcdir_defaulted=no
1403fi
7a197a62
AK
1404if test ! -r "$srcdir/$ac_unique_file"; then
1405 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec6a6fbe 1406 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1407 { (exit 1); exit 1; }; }
795ca3e5 1408fi
7a197a62
AK
1409ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1410ac_abs_confdir=`(
ec6a6fbe 1411 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1412 { (exit 1); exit 1; }; }
7a197a62
AK
1413 pwd)`
1414# When building in place, set srcdir=.
1415if test "$ac_abs_confdir" = "$ac_pwd"; then
1416 srcdir=.
1417fi
1418# Remove unnecessary trailing slashes from srcdir.
1419# Double slashes in file names in object file debugging info
1420# mess up M-x gdb in Emacs.
1421case $srcdir in
1422*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1423esac
1424for ac_var in $ac_precious_vars; do
1425 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_env_${ac_var}_value=\$${ac_var}
1427 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1428 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1429done
ad6254c5
AK
1430
1431#
1432# Report the --help message.
1433#
1434if test "$ac_init_help" = "long"; then
1435 # Omit some internal or obsolete options to make the list less imposing.
1436 # This message is too long to be a string in the A/UX 3.1 sh.
1437 cat <<_ACEOF
1438\`configure' configures this package to adapt to many kinds of systems.
1439
1440Usage: $0 [OPTION]... [VAR=VALUE]...
1441
1442To assign environment variables (e.g., CC, CFLAGS...), specify them as
1443VAR=VALUE. See below for descriptions of some of the useful variables.
1444
1445Defaults for the options are specified in brackets.
1446
1447Configuration:
1448 -h, --help display this help and exit
1449 --help=short display options specific to this package
1450 --help=recursive display the short help of all the included packages
1451 -V, --version display version information and exit
1452 -q, --quiet, --silent do not print \`checking...' messages
1453 --cache-file=FILE cache test results in FILE [disabled]
1454 -C, --config-cache alias for \`--cache-file=config.cache'
1455 -n, --no-create do not create output files
1456 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1457
ad6254c5
AK
1458Installation directories:
1459 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1460 [$ac_default_prefix]
ad6254c5 1461 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1462 [PREFIX]
ad6254c5
AK
1463
1464By default, \`make install' will install all the files in
1465\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1466an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1467for instance \`--prefix=\$HOME'.
1468
1469For better control, use the options below.
1470
1471Fine tuning of the installation directories:
ec6a6fbe
AK
1472 --bindir=DIR user executables [EPREFIX/bin]
1473 --sbindir=DIR system admin executables [EPREFIX/sbin]
1474 --libexecdir=DIR program executables [EPREFIX/libexec]
1475 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1476 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1477 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1478 --libdir=DIR object code libraries [EPREFIX/lib]
1479 --includedir=DIR C header files [PREFIX/include]
1480 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1481 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1482 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1483 --infodir=DIR info documentation [DATAROOTDIR/info]
1484 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1485 --mandir=DIR man documentation [DATAROOTDIR/man]
1486 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1487 --htmldir=DIR html documentation [DOCDIR]
1488 --dvidir=DIR dvi documentation [DOCDIR]
1489 --pdfdir=DIR pdf documentation [DOCDIR]
1490 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1491_ACEOF
1492
1493 cat <<\_ACEOF
1494
1495System types:
1496 --build=BUILD configure for building on BUILD [guessed]
1497 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1498 --target=TARGET configure for building compilers for TARGET [HOST]
1499_ACEOF
1500fi
1501
1502if test -n "$ac_init_help"; then
1503
1504 cat <<\_ACEOF
1505
1506Optional Features:
ec6a6fbe 1507 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1508 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1509 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
9c961554
MB
1510 --enable-static_link Use this to link the tools to their libraries
1511 statically. Default is dynamic linking
ad6254c5
AK
1512 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1513 device-mapper is missing from the kernel
1b523347 1514 --disable-readline Disable readline support
89044bc0 1515 --enable-realtime Enable realtime clock support
66fd4529 1516 --enable-cmirrord Enable the cluster mirror log daemon
ad6254c5 1517 --enable-debug Enable debugging
5556819a 1518 --enable-profiling Gather gcov profiling data
93bd259b 1519 --disable-devmapper Disable LVM2 device-mapper interaction
a5f46f6a
AK
1520 --enable-udev_sync Enable synchronisation with udev processing
1521 --enable-udev_rules Install rule files needed for udev synchronisation
93bd259b 1522 --enable-compat Enable support for old device-mapper versions
95eaa683
AK
1523 --enable-units-compat Enable output compatibility with old versions that
1524 that don't use KiB-style unit suffixes
93bd259b 1525 --disable-driver Disable calls to device-mapper in the kernel
ad6254c5 1526 --disable-o_direct Disable O_DIRECT
572fefeb 1527 --enable-applib Build application library
ad6254c5 1528 --enable-cmdlib Build shared command library
93bd259b 1529 --enable-pkgconfig Install pkgconfig support
c9274524 1530 --disable-fsadm Disable fsadm
15d91f5a 1531 --enable-dmeventd Enable the device-mapper event daemon
d0191583 1532 --disable-selinux Disable selinux support
ad6254c5
AK
1533 --enable-nls Enable Native Language Support
1534
1535Optional Packages:
1536 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1537 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
39dabc84
FDN
1538 --with-user=USER Set the owner of installed files [USER=]
1539 --with-group=GROUP Set the group owner of installed files [GROUP=]
24bbc4d7
AK
1540 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1541 --with-device-gid=UID Set the group used for new device nodes [GID=0]
93bd259b 1542 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
ad6254c5
AK
1543 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1544 TYPE=internal
1545 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1546 TYPE=internal
1547 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1548 TYPE=internal
1549 --with-snapshots=TYPE Snapshot support: internal/shared/none
1550 TYPE=internal
1551 --with-mirrors=TYPE Mirror support: internal/shared/none
1552 TYPE=internal
a946372e 1553 --with-clvmd=TYPE Build cluster LVM Daemon.
8c222979 1554 The following cluster manager combinations are valid:
a946372e
AK
1555 * cman,gulm (RHEL4 or equivalent)
1556 * cman (RHEL5 or equivalent)
1557 * cman,corosync,openais (or selection of them)
1091650a 1558 * singlenode (localhost only)
a946372e
AK
1559 * all (autodetect)
1560 * none (disable build)
a266258f 1561 TYPE=none
66fd4529 1562 --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid]
d0191583
JM
1563 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1564 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
a5f46f6a
AK
1565 --with-confdir=DIR Configuration files in DIR [/etc]
1566 --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin]
68f2de6d
AK
1567 --with-usrlibdir=DIR
1568 --with-usrsbindir=DIR
a5f46f6a 1569 --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX]
78ce7acc 1570 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
93bd259b 1571 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
a5f46f6a 1572 --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd]
93bd259b 1573 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1574
1575Some influential environment variables:
1576 CC C compiler command
1577 CFLAGS C compiler flags
1578 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1579 nonstandard directory <lib dir>
25fbec5b 1580 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1581 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1582 you have headers in a nonstandard directory <include dir>
ad6254c5 1583 CPP C preprocessor
e2997b73 1584 PKG_CONFIG path to pkg-config utility
a946372e
AK
1585 PKGCONFIGINIT_CFLAGS
1586 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1587 PKGCONFIGINIT_LIBS
1588 linker flags for PKGCONFIGINIT, overriding pkg-config
1589 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1590 CCS_LIBS linker flags for CCS, overriding pkg-config
1591 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1592 GULM_LIBS linker flags for GULM, overriding pkg-config
1593 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1594 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1595 COROSYNC_CFLAGS
1596 C compiler flags for COROSYNC, overriding pkg-config
1597 COROSYNC_LIBS
1598 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1599 QUORUM_CFLAGS
1600 C compiler flags for QUORUM, overriding pkg-config
1601 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1602 SALCK_CFLAGS
1603 C compiler flags for SALCK, overriding pkg-config
1604 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1605 CONFDB_CFLAGS
1606 C compiler flags for CONFDB, overriding pkg-config
1607 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1608 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1609 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1610 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1611 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1612 SACKPT_CFLAGS
1613 C compiler flags for SACKPT, overriding pkg-config
1614 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
ad6254c5
AK
1615
1616Use these variables to override the choices made by `configure' or to help
1617it to find libraries and programs with nonstandard names/locations.
1618
1619_ACEOF
7a197a62 1620ac_status=$?
ad6254c5
AK
1621fi
1622
1623if test "$ac_init_help" = "recursive"; then
1624 # If there are subdirs, report their specific --help.
ad6254c5 1625 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1626 test -d "$ac_dir" ||
1627 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1628 continue
ad6254c5
AK
1629 ac_builddir=.
1630
7a197a62
AK
1631case "$ac_dir" in
1632.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633*)
ec6a6fbe 1634 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1635 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1636 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1637 case $ac_top_builddir_sub in
1638 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1640 esac ;;
1641esac
1642ac_abs_top_builddir=$ac_pwd
1643ac_abs_builddir=$ac_pwd$ac_dir_suffix
1644# for backward compatibility:
1645ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1646
1647case $srcdir in
7a197a62 1648 .) # We are building in place.
ad6254c5 1649 ac_srcdir=.
7a197a62
AK
1650 ac_top_srcdir=$ac_top_builddir_sub
1651 ac_abs_top_srcdir=$ac_pwd ;;
1652 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1653 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1654 ac_top_srcdir=$srcdir
1655 ac_abs_top_srcdir=$srcdir ;;
1656 *) # Relative name.
1657 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1658 ac_top_srcdir=$ac_top_build_prefix$srcdir
1659 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1660esac
7a197a62
AK
1661ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1662
1663 cd "$ac_dir" || { ac_status=$?; continue; }
1664 # Check for guested configure.
1665 if test -f "$ac_srcdir/configure.gnu"; then
1666 echo &&
1667 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1668 elif test -f "$ac_srcdir/configure"; then
1669 echo &&
1670 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1671 else
ec6a6fbe 1672 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1673 fi || ac_status=$?
1674 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1675 done
1676fi
1677
7a197a62 1678test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1679if $ac_init_version; then
1680 cat <<\_ACEOF
7a197a62 1681configure
ec6a6fbe 1682generated by GNU Autoconf 2.63
ad6254c5 1683
7a197a62 1684Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 16852002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1686This configure script is free software; the Free Software Foundation
1687gives unlimited permission to copy, distribute and modify it.
1688_ACEOF
7a197a62 1689 exit
ad6254c5 1690fi
7a197a62 1691cat >config.log <<_ACEOF
ad6254c5
AK
1692This file contains any messages produced by compilers while
1693running configure, to aid debugging if configure makes a mistake.
1694
1695It was created by $as_me, which was
ec6a6fbe 1696generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
1697
1698 $ $0 $@
1699
1700_ACEOF
7a197a62 1701exec 5>>config.log
ad6254c5
AK
1702{
1703cat <<_ASUNAME
1704## --------- ##
1705## Platform. ##
1706## --------- ##
1707
1708hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1709uname -m = `(uname -m) 2>/dev/null || echo unknown`
1710uname -r = `(uname -r) 2>/dev/null || echo unknown`
1711uname -s = `(uname -s) 2>/dev/null || echo unknown`
1712uname -v = `(uname -v) 2>/dev/null || echo unknown`
1713
1714/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1715/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1716
1717/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1718/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1719/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1720/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1721/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1722/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1723/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1724
1725_ASUNAME
1726
1727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728for as_dir in $PATH
1729do
1730 IFS=$as_save_IFS
1731 test -z "$as_dir" && as_dir=.
ec6a6fbe 1732 $as_echo "PATH: $as_dir"
ad6254c5 1733done
7a197a62 1734IFS=$as_save_IFS
ad6254c5
AK
1735
1736} >&5
1737
1738cat >&5 <<_ACEOF
1739
1740
1741## ----------- ##
1742## Core tests. ##
1743## ----------- ##
1744
1745_ACEOF
1746
1747
1748# Keep a trace of the command line.
1749# Strip out --no-create and --no-recursion so they do not pile up.
1750# Strip out --silent because we don't want to record it for future runs.
1751# Also quote any args containing shell meta-characters.
1752# Make two passes to allow for proper duplicate-argument suppression.
1753ac_configure_args=
1754ac_configure_args0=
1755ac_configure_args1=
ad6254c5
AK
1756ac_must_keep_next=false
1757for ac_pass in 1 2
1758do
1759 for ac_arg
1760 do
1761 case $ac_arg in
1762 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1763 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1764 | -silent | --silent | --silen | --sile | --sil)
1765 continue ;;
7a197a62 1766 *\'*)
ec6a6fbe 1767 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1768 esac
1769 case $ac_pass in
1770 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1771 2)
1772 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1773 if test $ac_must_keep_next = true; then
8a2fc586 1774 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1775 else
8a2fc586
AK
1776 case $ac_arg in
1777 *=* | --config-cache | -C | -disable-* | --disable-* \
1778 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1779 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1780 | -with-* | --with-* | -without-* | --without-* | --x)
1781 case "$ac_configure_args0 " in
1782 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1783 esac
1784 ;;
1785 -* ) ac_must_keep_next=true ;;
1786 esac
ad6254c5 1787 fi
7a197a62 1788 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1789 ;;
1790 esac
1791 done
1792done
1793$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1794$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1795
1796# When interrupted or exit'd, cleanup temporary files, and complete
1797# config.log. We remove comments because anyway the quotes in there
1798# would cause problems or look ugly.
7a197a62
AK
1799# WARNING: Use '\'' to represent an apostrophe within the trap.
1800# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1801trap 'exit_status=$?
1802 # Save into config.log some information that might help in debugging.
1803 {
1804 echo
1805
1806 cat <<\_ASBOX
1807## ---------------- ##
1808## Cache variables. ##
1809## ---------------- ##
1810_ASBOX
1811 echo
1812 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1813(
1814 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1815 eval ac_val=\$$ac_var
1816 case $ac_val in #(
1817 *${as_nl}*)
1818 case $ac_var in #(
ec6a6fbe
AK
1819 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1820$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
1821 esac
1822 case $ac_var in #(
1823 _ | IFS | as_nl) ;; #(
ec6a6fbe 1824 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1825 *) $as_unset $ac_var ;;
1826 esac ;;
1827 esac
1828 done
ad6254c5 1829 (set) 2>&1 |
7a197a62
AK
1830 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1831 *${as_nl}ac_space=\ *)
ad6254c5 1832 sed -n \
7a197a62
AK
1833 "s/'\''/'\''\\\\'\'''\''/g;
1834 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1835 ;; #(
ad6254c5 1836 *)
7a197a62 1837 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1838 ;;
7a197a62
AK
1839 esac |
1840 sort
1841)
ad6254c5
AK
1842 echo
1843
1844 cat <<\_ASBOX
1845## ----------------- ##
1846## Output variables. ##
1847## ----------------- ##
1848_ASBOX
1849 echo
1850 for ac_var in $ac_subst_vars
1851 do
7a197a62
AK
1852 eval ac_val=\$$ac_var
1853 case $ac_val in
ec6a6fbe 1854 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1855 esac
ec6a6fbe 1856 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1857 done | sort
1858 echo
1859
1860 if test -n "$ac_subst_files"; then
1861 cat <<\_ASBOX
7a197a62
AK
1862## ------------------- ##
1863## File substitutions. ##
1864## ------------------- ##
ad6254c5
AK
1865_ASBOX
1866 echo
1867 for ac_var in $ac_subst_files
1868 do
7a197a62
AK
1869 eval ac_val=\$$ac_var
1870 case $ac_val in
ec6a6fbe 1871 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1872 esac
ec6a6fbe 1873 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1874 done | sort
1875 echo
1876 fi
1877
1878 if test -s confdefs.h; then
1879 cat <<\_ASBOX
1880## ----------- ##
1881## confdefs.h. ##
1882## ----------- ##
1883_ASBOX
1884 echo
7a197a62 1885 cat confdefs.h
ad6254c5
AK
1886 echo
1887 fi
1888 test "$ac_signal" != 0 &&
ec6a6fbe
AK
1889 $as_echo "$as_me: caught signal $ac_signal"
1890 $as_echo "$as_me: exit $exit_status"
ad6254c5 1891 } >&5
7a197a62
AK
1892 rm -f core *.core core.conftest.* &&
1893 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1894 exit $exit_status
7a197a62 1895' 0
ad6254c5
AK
1896for ac_signal in 1 2 13 15; do
1897 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1898done
1899ac_signal=0
1900
1901# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1902rm -f -r conftest* confdefs.h
ad6254c5
AK
1903
1904# Predefined preprocessor variables.
1905
1906cat >>confdefs.h <<_ACEOF
1907#define PACKAGE_NAME "$PACKAGE_NAME"
1908_ACEOF
1909
1910
1911cat >>confdefs.h <<_ACEOF
1912#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1913_ACEOF
1914
1915
1916cat >>confdefs.h <<_ACEOF
1917#define PACKAGE_VERSION "$PACKAGE_VERSION"
1918_ACEOF
8106cdd5 1919
ad6254c5
AK
1920
1921cat >>confdefs.h <<_ACEOF
1922#define PACKAGE_STRING "$PACKAGE_STRING"
1923_ACEOF
1924
1925
1926cat >>confdefs.h <<_ACEOF
1927#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1928_ACEOF
1929
1930
1931# Let the site file select an alternate cache file if it wants to.
ec6a6fbe
AK
1932# Prefer an explicitly selected file to automatically selected ones.
1933ac_site_file1=NONE
1934ac_site_file2=NONE
7a197a62 1935if test -n "$CONFIG_SITE"; then
ec6a6fbe 1936 ac_site_file1=$CONFIG_SITE
7a197a62 1937elif test "x$prefix" != xNONE; then
ec6a6fbe
AK
1938 ac_site_file1=$prefix/share/config.site
1939 ac_site_file2=$prefix/etc/config.site
7a197a62 1940else
ec6a6fbe
AK
1941 ac_site_file1=$ac_default_prefix/share/config.site
1942 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1943fi
ec6a6fbe 1944for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1945do
ec6a6fbe 1946 test "x$ac_site_file" = xNONE && continue
795ca3e5 1947 if test -r "$ac_site_file"; then
ec6a6fbe
AK
1948 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1949$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1950 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1951 . "$ac_site_file"
1952 fi
1953done
1954
1955if test -r "$cache_file"; then
ad6254c5
AK
1956 # Some versions of bash will fail to source /dev/null (special
1957 # files actually), so we avoid doing that.
1958 if test -f "$cache_file"; then
ec6a6fbe
AK
1959 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1960$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1961 case $cache_file in
7a197a62
AK
1962 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1963 *) . "./$cache_file";;
ad6254c5
AK
1964 esac
1965 fi
795ca3e5 1966else
ec6a6fbe
AK
1967 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1968$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1969 >$cache_file
1970fi
1971
1972# Check that the precious variables saved in the cache have kept the same
1973# value.
1974ac_cache_corrupted=false
7a197a62 1975for ac_var in $ac_precious_vars; do
ad6254c5
AK
1976 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1977 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1978 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1979 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1980 case $ac_old_set,$ac_new_set in
1981 set,)
ec6a6fbe
AK
1982 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1983$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
1984 ac_cache_corrupted=: ;;
1985 ,set)
ec6a6fbe
AK
1986 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1987$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
1988 ac_cache_corrupted=: ;;
1989 ,);;
1990 *)
1991 if test "x$ac_old_val" != "x$ac_new_val"; then
ec6a6fbe
AK
1992 # differences in whitespace do not lead to failure.
1993 ac_old_val_w=`echo x $ac_old_val`
1994 ac_new_val_w=`echo x $ac_new_val`
1995 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1996 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1997$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1998 ac_cache_corrupted=:
1999 else
2000 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2001$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2002 eval $ac_var=\$ac_old_val
2003 fi
2004 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2005$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2006 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2007$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
2008 fi;;
2009 esac
2010 # Pass precious variables to config.status.
2011 if test "$ac_new_set" = set; then
2012 case $ac_new_val in
ec6a6fbe 2013 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
2014 *) ac_arg=$ac_var=$ac_new_val ;;
2015 esac
2016 case " $ac_configure_args " in
2017 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2018 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2019 esac
2020 fi
2021done
2022if $ac_cache_corrupted; then
ec6a6fbe
AK
2023 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2025 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2026$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2027 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2028$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 2029 { (exit 1); exit 1; }; }
795ca3e5
AK
2030fi
2031
ad6254c5
AK
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
7a197a62
AK
2048ac_ext=c
2049ac_cpp='$CPP $CPPFLAGS'
2050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2052ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2053
795ca3e5
AK
2054
2055
7a197a62 2056ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
2057
2058
80992638 2059################################################################################
795ca3e5 2060ac_aux_dir=
7a197a62
AK
2061for ac_dir in autoconf "$srcdir"/autoconf; do
2062 if 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/install.sh"; then
795ca3e5
AK
2067 ac_aux_dir=$ac_dir
2068 ac_install_sh="$ac_aux_dir/install.sh -c"
2069 break
7a197a62 2070 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
2071 ac_aux_dir=$ac_dir
2072 ac_install_sh="$ac_aux_dir/shtool install -c"
2073 break
795ca3e5
AK
2074 fi
2075done
2076if test -z "$ac_aux_dir"; then
ec6a6fbe
AK
2077 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2078$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 2079 { (exit 1); exit 1; }; }
795ca3e5 2080fi
7a197a62
AK
2081
2082# These three variables are undocumented and unsupported,
2083# and are intended to be withdrawn in a future Autoconf release.
2084# They can cause serious problems if a builder's source tree is in a directory
2085# whose full name contains unusual characters.
2086ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2087ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2088ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2089
8ce0cbda
AK
2090
2091
ad6254c5 2092################################################################################
8ce0cbda 2093# Make sure we can run config.sub.
7a197a62 2094$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec6a6fbe
AK
2095 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2096$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
2097 { (exit 1); exit 1; }; }
2098
ec6a6fbe
AK
2099{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2100$as_echo_n "checking build system type... " >&6; }
ad6254c5 2101if test "${ac_cv_build+set}" = set; then
ec6a6fbe 2102 $as_echo_n "(cached) " >&6
ad6254c5 2103else
7a197a62
AK
2104 ac_build_alias=$build_alias
2105test "x$ac_build_alias" = x &&
2106 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2107test "x$ac_build_alias" = x &&
ec6a6fbe
AK
2108 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2109$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 2110 { (exit 1); exit 1; }; }
7a197a62 2111ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec6a6fbe
AK
2112 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2113$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
2114 { (exit 1); exit 1; }; }
2115
2116fi
ec6a6fbe
AK
2117{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2118$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
2119case $ac_cv_build in
2120*-*-*) ;;
ec6a6fbe
AK
2121*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2122$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
2123 { (exit 1); exit 1; }; };;
2124esac
ad6254c5 2125build=$ac_cv_build
7a197a62
AK
2126ac_save_IFS=$IFS; IFS='-'
2127set x $ac_cv_build
2128shift
2129build_cpu=$1
2130build_vendor=$2
2131shift; shift
2132# Remember, the first character of IFS is used to create $*,
2133# except with old shells:
2134build_os=$*
2135IFS=$ac_save_IFS
2136case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2137
2138
ec6a6fbe
AK
2139{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2140$as_echo_n "checking host system type... " >&6; }
ad6254c5 2141if test "${ac_cv_host+set}" = set; then
ec6a6fbe 2142 $as_echo_n "(cached) " >&6
ad6254c5 2143else
7a197a62
AK
2144 if test "x$host_alias" = x; then
2145 ac_cv_host=$ac_cv_build
2146else
2147 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec6a6fbe
AK
2148 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2149$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2150 { (exit 1); exit 1; }; }
7a197a62 2151fi
ad6254c5
AK
2152
2153fi
ec6a6fbe
AK
2154{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2155$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2156case $ac_cv_host in
2157*-*-*) ;;
ec6a6fbe
AK
2158*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2159$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2160 { (exit 1); exit 1; }; };;
2161esac
ad6254c5 2162host=$ac_cv_host
7a197a62
AK
2163ac_save_IFS=$IFS; IFS='-'
2164set x $ac_cv_host
2165shift
2166host_cpu=$1
2167host_vendor=$2
2168shift; shift
2169# Remember, the first character of IFS is used to create $*,
2170# except with old shells:
2171host_os=$*
2172IFS=$ac_save_IFS
2173case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2174
2175
ec6a6fbe
AK
2176{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2177$as_echo_n "checking target system type... " >&6; }
ad6254c5 2178if test "${ac_cv_target+set}" = set; then
ec6a6fbe 2179 $as_echo_n "(cached) " >&6
ad6254c5 2180else
7a197a62
AK
2181 if test "x$target_alias" = x; then
2182 ac_cv_target=$ac_cv_host
2183else
2184 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec6a6fbe
AK
2185 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2186$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2187 { (exit 1); exit 1; }; }
7a197a62 2188fi
8ce0cbda 2189
ad6254c5 2190fi
ec6a6fbe
AK
2191{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2192$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2193case $ac_cv_target in
2194*-*-*) ;;
ec6a6fbe
AK
2195*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2196$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2197 { (exit 1); exit 1; }; };;
2198esac
ad6254c5 2199target=$ac_cv_target
7a197a62
AK
2200ac_save_IFS=$IFS; IFS='-'
2201set x $ac_cv_target
2202shift
2203target_cpu=$1
2204target_vendor=$2
2205shift; shift
2206# Remember, the first character of IFS is used to create $*,
2207# except with old shells:
2208target_os=$*
2209IFS=$ac_save_IFS
2210case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2211
8ce0cbda 2212
ad6254c5
AK
2213# The aliases save the names the user supplied, while $host etc.
2214# will get canonicalized.
2215test -n "$target_alias" &&
8ce0cbda
AK
2216 test "$program_prefix$program_suffix$program_transform_name" = \
2217 NONENONEs,x,x, &&
2218 program_prefix=${target_alias}-
2219
8ce0cbda
AK
2220case "$host_os" in
2221 linux*)
7f54ef36 2222 CFLAGS="$CFLAGS"
8ce0cbda
AK
2223 COPTIMISE_FLAG="-O2"
2224 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2225 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2226 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2227 LDDEPS="$LDDEPS .export.sym"
2228 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2229 LIB_SUFFIX=so
8ce0cbda
AK
2230 DEVMAPPER=yes
2231 ODIRECT=yes
d0191583 2232 DM_IOCTLS=yes
8ce0cbda
AK
2233 SELINUX=yes
2234 CLUSTER=internal
93bd259b 2235 FSADM=yes
d0191583 2236 ;;
8ce0cbda
AK
2237 darwin*)
2238 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2239 COPTIMISE_FLAG="-O2"
2240 CLDFLAGS="$CLDFLAGS"
2241 CLDWHOLEARCHIVE="-all_load"
2242 CLDNOWHOLEARCHIVE=
d0191583 2243 LIB_SUFFIX=dylib
a653923f 2244 DEVMAPPER=yes
8ce0cbda 2245 ODIRECT=no
d0191583 2246 DM_IOCTLS=no
8ce0cbda
AK
2247 SELINUX=no
2248 CLUSTER=none
d0191583
JM
2249 FSADM=no
2250 ;;
8ce0cbda
AK
2251esac
2252
80992638 2253################################################################################
ec6a6fbe
AK
2254{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2255$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2256if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2257 $as_echo_n "(cached) " >&6
5951ef33
AK
2258else
2259 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2260 for ac_i in 1 2 3 4 5 6 7; do
2261 ac_script="$ac_script$as_nl$ac_script"
2262 done
ec6a6fbe 2263 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2264 $as_unset ac_script || ac_script=
ec6a6fbe 2265 if test -z "$SED"; then
5951ef33 2266 ac_path_SED_found=false
ec6a6fbe
AK
2267 # Loop through the user's path and test for each of PROGNAME-LIST
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2269for as_dir in $PATH
2270do
2271 IFS=$as_save_IFS
2272 test -z "$as_dir" && as_dir=.
2273 for ac_prog in sed gsed; do
ec6a6fbe
AK
2274 for ac_exec_ext in '' $ac_executable_extensions; do
2275 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2276 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2277# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2278 # Check for GNU $ac_path_SED
2279case `"$ac_path_SED" --version 2>&1` in
2280*GNU*)
2281 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2282*)
2283 ac_count=0
ec6a6fbe 2284 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2285 while :
2286 do
2287 cat "conftest.in" "conftest.in" >"conftest.tmp"
2288 mv "conftest.tmp" "conftest.in"
2289 cp "conftest.in" "conftest.nl"
ec6a6fbe 2290 $as_echo '' >> "conftest.nl"
5951ef33
AK
2291 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2292 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2293 ac_count=`expr $ac_count + 1`
2294 if test $ac_count -gt ${ac_path_SED_max-0}; then
2295 # Best one so far, save it but keep looking for a better one
2296 ac_cv_path_SED="$ac_path_SED"
2297 ac_path_SED_max=$ac_count
2298 fi
2299 # 10*(2^10) chars as input seems more than enough
2300 test $ac_count -gt 10 && break
2301 done
2302 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2303esac
2304
ec6a6fbe
AK
2305 $ac_path_SED_found && break 3
2306 done
5951ef33
AK
2307 done
2308done
5951ef33 2309IFS=$as_save_IFS
ec6a6fbe
AK
2310 if test -z "$ac_cv_path_SED"; then
2311 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2312$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2313 { (exit 1); exit 1; }; }
ec6a6fbe 2314 fi
5951ef33
AK
2315else
2316 ac_cv_path_SED=$SED
2317fi
2318
2319fi
ec6a6fbe
AK
2320{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2321$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2322 SED="$ac_cv_path_SED"
2323 rm -f conftest.sed
2324
ad6254c5 2325for ac_prog in gawk mawk nawk awk
795ca3e5 2326do
ad6254c5 2327 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2328set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2329{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2330$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2331if test "${ac_cv_prog_AWK+set}" = set; then
ec6a6fbe 2332 $as_echo_n "(cached) " >&6
795ca3e5
AK
2333else
2334 if test -n "$AWK"; then
2335 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2336else
ad6254c5
AK
2337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338for as_dir in $PATH
2339do
2340 IFS=$as_save_IFS
2341 test -z "$as_dir" && as_dir=.
2342 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2344 ac_cv_prog_AWK="$ac_prog"
ec6a6fbe 2345 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2346 break 2
2347 fi
2348done
2349done
7a197a62 2350IFS=$as_save_IFS
ad6254c5 2351
795ca3e5
AK
2352fi
2353fi
ad6254c5 2354AWK=$ac_cv_prog_AWK
795ca3e5 2355if test -n "$AWK"; then
ec6a6fbe
AK
2356 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2357$as_echo "$AWK" >&6; }
795ca3e5 2358else
ec6a6fbe
AK
2359 { $as_echo "$as_me:$LINENO: result: no" >&5
2360$as_echo "no" >&6; }
795ca3e5
AK
2361fi
2362
7a197a62 2363
ad6254c5
AK
2364 test -n "$AWK" && break
2365done
2366
2367ac_ext=c
2368ac_cpp='$CPP $CPPFLAGS'
2369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2371ac_compiler_gnu=$ac_cv_c_compiler_gnu
2372if test -n "$ac_tool_prefix"; then
2373 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2374set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2375{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2376$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2377if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2378 $as_echo_n "(cached) " >&6
ad6254c5
AK
2379else
2380 if test -n "$CC"; then
2381 ac_cv_prog_CC="$CC" # Let the user override the test.
2382else
2383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384for as_dir in $PATH
2385do
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2390 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2391 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2392 break 2
2393 fi
2394done
8106cdd5 2395done
7a197a62 2396IFS=$as_save_IFS
8106cdd5 2397
ad6254c5
AK
2398fi
2399fi
2400CC=$ac_cv_prog_CC
2401if test -n "$CC"; then
ec6a6fbe
AK
2402 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2403$as_echo "$CC" >&6; }
ad6254c5 2404else
ec6a6fbe
AK
2405 { $as_echo "$as_me:$LINENO: result: no" >&5
2406$as_echo "no" >&6; }
ad6254c5
AK
2407fi
2408
7a197a62 2409
ad6254c5
AK
2410fi
2411if test -z "$ac_cv_prog_CC"; then
2412 ac_ct_CC=$CC
2413 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2414set dummy gcc; ac_word=$2
ec6a6fbe
AK
2415{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2416$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2417if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2418 $as_echo_n "(cached) " >&6
ad6254c5
AK
2419else
2420 if test -n "$ac_ct_CC"; then
2421 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2422else
2423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424for as_dir in $PATH
2425do
2426 IFS=$as_save_IFS
2427 test -z "$as_dir" && as_dir=.
2428 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2430 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2431 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2432 break 2
2433 fi
2434done
2435done
7a197a62 2436IFS=$as_save_IFS
ad6254c5
AK
2437
2438fi
2439fi
2440ac_ct_CC=$ac_cv_prog_ac_ct_CC
2441if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2442 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2443$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2444else
ec6a6fbe
AK
2445 { $as_echo "$as_me:$LINENO: result: no" >&5
2446$as_echo "no" >&6; }
ad6254c5
AK
2447fi
2448
7a197a62
AK
2449 if test "x$ac_ct_CC" = x; then
2450 CC=""
2451 else
2452 case $cross_compiling:$ac_tool_warned in
2453yes:)
ec6a6fbe
AK
2454{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2456ac_tool_warned=yes ;;
2457esac
2458 CC=$ac_ct_CC
2459 fi
ad6254c5
AK
2460else
2461 CC="$ac_cv_prog_CC"
2462fi
2463
2464if test -z "$CC"; then
7a197a62
AK
2465 if test -n "$ac_tool_prefix"; then
2466 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2467set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2468{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2469$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2470if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2471 $as_echo_n "(cached) " >&6
8106cdd5
AK
2472else
2473 if test -n "$CC"; then
2474 ac_cv_prog_CC="$CC" # Let the user override the test.
2475else
ad6254c5
AK
2476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477for as_dir in $PATH
2478do
2479 IFS=$as_save_IFS
2480 test -z "$as_dir" && as_dir=.
2481 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2483 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec6a6fbe 2484 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2485 break 2
2486 fi
2487done
2488done
7a197a62 2489IFS=$as_save_IFS
ad6254c5 2490
8106cdd5
AK
2491fi
2492fi
ad6254c5 2493CC=$ac_cv_prog_CC
8106cdd5 2494if test -n "$CC"; then
ec6a6fbe
AK
2495 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2496$as_echo "$CC" >&6; }
ad6254c5 2497else
ec6a6fbe
AK
2498 { $as_echo "$as_me:$LINENO: result: no" >&5
2499$as_echo "no" >&6; }
ad6254c5
AK
2500fi
2501
8106cdd5 2502
7a197a62 2503 fi
ad6254c5 2504fi
795ca3e5
AK
2505if test -z "$CC"; then
2506 # Extract the first word of "cc", so it can be a program name with args.
2507set dummy cc; ac_word=$2
ec6a6fbe
AK
2508{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2509$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2510if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2511 $as_echo_n "(cached) " >&6
795ca3e5
AK
2512else
2513 if test -n "$CC"; then
2514 ac_cv_prog_CC="$CC" # Let the user override the test.
2515else
795ca3e5 2516 ac_prog_rejected=no
ad6254c5
AK
2517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518for as_dir in $PATH
2519do
2520 IFS=$as_save_IFS
2521 test -z "$as_dir" && as_dir=.
2522 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2524 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2525 ac_prog_rejected=yes
2526 continue
2527 fi
2528 ac_cv_prog_CC="cc"
ec6a6fbe 2529 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2530 break 2
2531 fi
2532done
2533done
7a197a62 2534IFS=$as_save_IFS
ad6254c5 2535
795ca3e5
AK
2536if test $ac_prog_rejected = yes; then
2537 # We found a bogon in the path, so make sure we never use it.
2538 set dummy $ac_cv_prog_CC
2539 shift
ad6254c5 2540 if test $# != 0; then
795ca3e5
AK
2541 # We chose a different compiler from the bogus one.
2542 # However, it has the same basename, so the bogon will be chosen
2543 # first if we set CC to just the basename; use the full file name.
2544 shift
ad6254c5 2545 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2546 fi
2547fi
2548fi
2549fi
ad6254c5 2550CC=$ac_cv_prog_CC
795ca3e5 2551if test -n "$CC"; then
ec6a6fbe
AK
2552 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2553$as_echo "$CC" >&6; }
795ca3e5 2554else
ec6a6fbe
AK
2555 { $as_echo "$as_me:$LINENO: result: no" >&5
2556$as_echo "no" >&6; }
795ca3e5
AK
2557fi
2558
7a197a62 2559
ad6254c5
AK
2560fi
2561if test -z "$CC"; then
2562 if test -n "$ac_tool_prefix"; then
7a197a62 2563 for ac_prog in cl.exe
ad6254c5
AK
2564 do
2565 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2566set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2567{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2568$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2569if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2570 $as_echo_n "(cached) " >&6
795ca3e5
AK
2571else
2572 if test -n "$CC"; then
2573 ac_cv_prog_CC="$CC" # Let the user override the test.
2574else
ad6254c5
AK
2575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576for as_dir in $PATH
2577do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2582 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2583 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2584 break 2
2585 fi
2586done
2587done
7a197a62 2588IFS=$as_save_IFS
ad6254c5 2589
795ca3e5
AK
2590fi
2591fi
ad6254c5 2592CC=$ac_cv_prog_CC
795ca3e5 2593if test -n "$CC"; then
ec6a6fbe
AK
2594 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2595$as_echo "$CC" >&6; }
795ca3e5 2596else
ec6a6fbe
AK
2597 { $as_echo "$as_me:$LINENO: result: no" >&5
2598$as_echo "no" >&6; }
795ca3e5 2599fi
ad6254c5 2600
7a197a62 2601
ad6254c5
AK
2602 test -n "$CC" && break
2603 done
2604fi
2605if test -z "$CC"; then
2606 ac_ct_CC=$CC
7a197a62 2607 for ac_prog in cl.exe
ad6254c5
AK
2608do
2609 # Extract the first word of "$ac_prog", so it can be a program name with args.
2610set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2611{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2612$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2613if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2614 $as_echo_n "(cached) " >&6
ad6254c5
AK
2615else
2616 if test -n "$ac_ct_CC"; then
2617 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2618else
2619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620for as_dir in $PATH
2621do
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2626 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2627 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2628 break 2
795ca3e5 2629 fi
ad6254c5
AK
2630done
2631done
7a197a62 2632IFS=$as_save_IFS
ad6254c5
AK
2633
2634fi
2635fi
2636ac_ct_CC=$ac_cv_prog_ac_ct_CC
2637if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2638 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2639$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2640else
ec6a6fbe
AK
2641 { $as_echo "$as_me:$LINENO: result: no" >&5
2642$as_echo "no" >&6; }
795ca3e5
AK
2643fi
2644
7a197a62 2645
ad6254c5
AK
2646 test -n "$ac_ct_CC" && break
2647done
795ca3e5 2648
7a197a62
AK
2649 if test "x$ac_ct_CC" = x; then
2650 CC=""
2651 else
2652 case $cross_compiling:$ac_tool_warned in
2653yes:)
ec6a6fbe
AK
2654{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2656ac_tool_warned=yes ;;
2657esac
2658 CC=$ac_ct_CC
2659 fi
ad6254c5
AK
2660fi
2661
2662fi
2663
2664
ec6a6fbe
AK
2665test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2666$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2667{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2668See \`config.log' for more details." >&5
ec6a6fbe 2669$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2670See \`config.log' for more details." >&2;}
ec6a6fbe 2671 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2672
2673# Provide some information about the compiler.
ec6a6fbe
AK
2674$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2675set X $ac_compile
2676ac_compiler=$2
7a197a62
AK
2677{ (ac_try="$ac_compiler --version >&5"
2678case "(($ac_try" in
2679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2680 *) ac_try_echo=$ac_try;;
2681esac
ec6a6fbe
AK
2682eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2683$as_echo "$ac_try_echo") >&5
7a197a62 2684 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2685 ac_status=$?
ec6a6fbe 2686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2687 (exit $ac_status); }
7a197a62
AK
2688{ (ac_try="$ac_compiler -v >&5"
2689case "(($ac_try" in
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2692esac
ec6a6fbe
AK
2693eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2694$as_echo "$ac_try_echo") >&5
7a197a62 2695 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2696 ac_status=$?
ec6a6fbe 2697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2698 (exit $ac_status); }
7a197a62
AK
2699{ (ac_try="$ac_compiler -V >&5"
2700case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703esac
ec6a6fbe
AK
2704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2705$as_echo "$ac_try_echo") >&5
7a197a62 2706 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2707 ac_status=$?
ec6a6fbe 2708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2709 (exit $ac_status); }
2710
2711cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2712/* confdefs.h. */
2713_ACEOF
2714cat confdefs.h >>conftest.$ac_ext
2715cat >>conftest.$ac_ext <<_ACEOF
2716/* end confdefs.h. */
2717
2718int
2719main ()
2720{
2721
2722 ;
2723 return 0;
2724}
2725_ACEOF
2726ac_clean_files_save=$ac_clean_files
ec6a6fbe 2727ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2728# Try to create an executable without -o first, disregard a.out.
2729# It will help us diagnose broken compilers, and finding out an intuition
2730# of exeext.
ec6a6fbe
AK
2731{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2732$as_echo_n "checking for C compiler default output file name... " >&6; }
2733ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2734
2735# The possible output files:
2736ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2737
7a197a62
AK
2738ac_rmfiles=
2739for ac_file in $ac_files
2740do
2741 case $ac_file in
ec6a6fbe 2742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2743 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2744 esac
2745done
2746rm -f $ac_rmfiles
2747
2748if { (ac_try="$ac_link_default"
2749case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2752esac
ec6a6fbe
AK
2753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2754$as_echo "$ac_try_echo") >&5
7a197a62 2755 (eval "$ac_link_default") 2>&5
ad6254c5 2756 ac_status=$?
ec6a6fbe 2757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2758 (exit $ac_status); }; then
7a197a62
AK
2759 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2760# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2761# in a Makefile. We should not override ac_cv_exeext if it was cached,
2762# so that the user can short-circuit this test for compilers unknown to
2763# Autoconf.
25fbec5b 2764for ac_file in $ac_files ''
ad6254c5
AK
2765do
2766 test -f "$ac_file" || continue
2767 case $ac_file in
ec6a6fbe 2768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2769 ;;
ad6254c5 2770 [ab].out )
8a2fc586
AK
2771 # We found the default executable, but exeext='' is most
2772 # certainly right.
2773 break;;
ad6254c5 2774 *.* )
7a197a62
AK
2775 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2776 then :; else
2777 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2778 fi
2779 # We set ac_cv_exeext here because the later test for it is not
2780 # safe: cross compilers may not add the suffix if given an `-o'
2781 # argument, so we may need to know it at that point already.
2782 # Even if this section looks crufty: it has the advantage of
2783 # actually working.
8a2fc586 2784 break;;
ad6254c5 2785 * )
8a2fc586 2786 break;;
ad6254c5
AK
2787 esac
2788done
7a197a62
AK
2789test "$ac_cv_exeext" = no && ac_cv_exeext=
2790
ad6254c5 2791else
25fbec5b
AK
2792 ac_file=''
2793fi
2794
ec6a6fbe
AK
2795{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2796$as_echo "$ac_file" >&6; }
25fbec5b 2797if test -z "$ac_file"; then
ec6a6fbe 2798 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2799sed 's/^/| /' conftest.$ac_ext >&5
2800
ec6a6fbe
AK
2801{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2802$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2803{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2804See \`config.log' for more details." >&5
ec6a6fbe 2805$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2806See \`config.log' for more details." >&2;}
ec6a6fbe 2807 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2808fi
2809
2810ac_exeext=$ac_cv_exeext
ad6254c5 2811
7a197a62 2812# Check that the compiler produces executables we can run. If not, either
ad6254c5 2813# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2814{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2815$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2816# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2817# If not cross compiling, check that we can run a simple program.
2818if test "$cross_compiling" != yes; then
2819 if { ac_try='./$ac_file'
7a197a62
AK
2820 { (case "(($ac_try" in
2821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2822 *) ac_try_echo=$ac_try;;
2823esac
ec6a6fbe
AK
2824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2825$as_echo "$ac_try_echo") >&5
7a197a62 2826 (eval "$ac_try") 2>&5
ad6254c5 2827 ac_status=$?
ec6a6fbe 2828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2829 (exit $ac_status); }; }; then
2830 cross_compiling=no
795ca3e5 2831 else
ad6254c5
AK
2832 if test "$cross_compiling" = maybe; then
2833 cross_compiling=yes
2834 else
ec6a6fbe
AK
2835 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2836$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2837{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2838If you meant to cross compile, use \`--host'.
2839See \`config.log' for more details." >&5
ec6a6fbe 2840$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2841If you meant to cross compile, use \`--host'.
2842See \`config.log' for more details." >&2;}
ec6a6fbe 2843 { (exit 1); exit 1; }; }; }
ad6254c5 2844 fi
795ca3e5 2845 fi
80992638 2846fi
ec6a6fbe
AK
2847{ $as_echo "$as_me:$LINENO: result: yes" >&5
2848$as_echo "yes" >&6; }
ad6254c5 2849
ec6a6fbe 2850rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2851ac_clean_files=$ac_clean_files_save
7a197a62 2852# Check that the compiler produces executables we can run. If not, either
ad6254c5 2853# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2854{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2855$as_echo_n "checking whether we are cross compiling... " >&6; }
2856{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2857$as_echo "$cross_compiling" >&6; }
7a197a62 2858
ec6a6fbe
AK
2859{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2860$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2861if { (ac_try="$ac_link"
2862case "(($ac_try" in
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2865esac
ec6a6fbe
AK
2866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2867$as_echo "$ac_try_echo") >&5
7a197a62 2868 (eval "$ac_link") 2>&5
ad6254c5 2869 ac_status=$?
ec6a6fbe 2870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2871 (exit $ac_status); }; then
2872 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2873# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2874# work properly (i.e., refer to `conftest.exe'), while it won't with
2875# `rm'.
2876for ac_file in conftest.exe conftest conftest.*; do
2877 test -f "$ac_file" || continue
2878 case $ac_file in
ec6a6fbe 2879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2880 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2881 break;;
ad6254c5
AK
2882 * ) break;;
2883 esac
2884done
80992638 2885else
ec6a6fbe
AK
2886 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2887$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2888{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2889See \`config.log' for more details." >&5
ec6a6fbe 2890$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2891See \`config.log' for more details." >&2;}
ec6a6fbe 2892 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2893fi
2894
2895rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2896{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2897$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2898
2899rm -f conftest.$ac_ext
2900EXEEXT=$ac_cv_exeext
2901ac_exeext=$EXEEXT
ec6a6fbe
AK
2902{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2903$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2904if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2905 $as_echo_n "(cached) " >&6
795ca3e5 2906else
ad6254c5 2907 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2908/* confdefs.h. */
2909_ACEOF
2910cat confdefs.h >>conftest.$ac_ext
2911cat >>conftest.$ac_ext <<_ACEOF
2912/* end confdefs.h. */
2913
2914int
2915main ()
2916{
2917
2918 ;
2919 return 0;
2920}
2921_ACEOF
2922rm -f conftest.o conftest.obj
7a197a62
AK
2923if { (ac_try="$ac_compile"
2924case "(($ac_try" in
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2927esac
ec6a6fbe
AK
2928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2929$as_echo "$ac_try_echo") >&5
7a197a62 2930 (eval "$ac_compile") 2>&5
ad6254c5 2931 ac_status=$?
ec6a6fbe 2932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2933 (exit $ac_status); }; then
7a197a62
AK
2934 for ac_file in conftest.o conftest.obj conftest.*; do
2935 test -f "$ac_file" || continue;
ad6254c5 2936 case $ac_file in
ec6a6fbe 2937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2938 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2939 break;;
2940 esac
2941done
2942else
ec6a6fbe 2943 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2944sed 's/^/| /' conftest.$ac_ext >&5
2945
ec6a6fbe
AK
2946{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2947$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2948{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2949See \`config.log' for more details." >&5
ec6a6fbe 2950$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 2951See \`config.log' for more details." >&2;}
ec6a6fbe 2952 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2953fi
2954
2955rm -f conftest.$ac_cv_objext conftest.$ac_ext
2956fi
ec6a6fbe
AK
2957{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2958$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
2959OBJEXT=$ac_cv_objext
2960ac_objext=$OBJEXT
ec6a6fbe
AK
2961{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2962$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 2963if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 2964 $as_echo_n "(cached) " >&6
ad6254c5
AK
2965else
2966 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2967/* confdefs.h. */
2968_ACEOF
2969cat confdefs.h >>conftest.$ac_ext
2970cat >>conftest.$ac_ext <<_ACEOF
2971/* end confdefs.h. */
2972
2973int
2974main ()
2975{
2976#ifndef __GNUC__
2977 choke me
2978#endif
80992638 2979
ad6254c5
AK
2980 ;
2981 return 0;
2982}
2983_ACEOF
2984rm -f conftest.$ac_objext
7a197a62
AK
2985if { (ac_try="$ac_compile"
2986case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2989esac
ec6a6fbe
AK
2990eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2991$as_echo "$ac_try_echo") >&5
7a197a62 2992 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2993 ac_status=$?
8a2fc586
AK
2994 grep -v '^ *+' conftest.er1 >conftest.err
2995 rm -f conftest.er1
2996 cat conftest.err >&5
ec6a6fbe 2997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2998 (exit $ac_status); } && {
2999 test -z "$ac_c_werror_flag" ||
3000 test ! -s conftest.err
3001 } && test -s conftest.$ac_objext; then
ad6254c5 3002 ac_compiler_gnu=yes
80992638 3003else
ec6a6fbe 3004 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3005sed 's/^/| /' conftest.$ac_ext >&5
3006
7a197a62 3007 ac_compiler_gnu=no
8106cdd5 3008fi
7a197a62
AK
3009
3010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 3011ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 3012
ad6254c5 3013fi
ec6a6fbe
AK
3014{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3015$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3016if test $ac_compiler_gnu = yes; then
3017 GCC=yes
3018else
3019 GCC=
3020fi
ad6254c5
AK
3021ac_test_CFLAGS=${CFLAGS+set}
3022ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
3023{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3024$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 3025if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 3026 $as_echo_n "(cached) " >&6
795ca3e5 3027else
7a197a62
AK
3028 ac_save_c_werror_flag=$ac_c_werror_flag
3029 ac_c_werror_flag=yes
3030 ac_cv_prog_cc_g=no
3031 CFLAGS="-g"
3032 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3033/* confdefs.h. */
3034_ACEOF
3035cat confdefs.h >>conftest.$ac_ext
3036cat >>conftest.$ac_ext <<_ACEOF
3037/* end confdefs.h. */
3038
3039int
3040main ()
3041{
3042
3043 ;
3044 return 0;
3045}
3046_ACEOF
3047rm -f conftest.$ac_objext
7a197a62
AK
3048if { (ac_try="$ac_compile"
3049case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3052esac
ec6a6fbe
AK
3053eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3054$as_echo "$ac_try_echo") >&5
7a197a62 3055 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3056 ac_status=$?
8a2fc586
AK
3057 grep -v '^ *+' conftest.er1 >conftest.err
3058 rm -f conftest.er1
3059 cat conftest.err >&5
ec6a6fbe 3060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3061 (exit $ac_status); } && {
3062 test -z "$ac_c_werror_flag" ||
3063 test ! -s conftest.err
3064 } && test -s conftest.$ac_objext; then
7a197a62
AK
3065 ac_cv_prog_cc_g=yes
3066else
ec6a6fbe 3067 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3068sed 's/^/| /' conftest.$ac_ext >&5
3069
3070 CFLAGS=""
3071 cat >conftest.$ac_ext <<_ACEOF
3072/* confdefs.h. */
3073_ACEOF
3074cat confdefs.h >>conftest.$ac_ext
3075cat >>conftest.$ac_ext <<_ACEOF
3076/* end confdefs.h. */
3077
3078int
3079main ()
3080{
3081
3082 ;
3083 return 0;
3084}
3085_ACEOF
3086rm -f conftest.$ac_objext
3087if { (ac_try="$ac_compile"
3088case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091esac
ec6a6fbe
AK
3092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3093$as_echo "$ac_try_echo") >&5
7a197a62 3094 (eval "$ac_compile") 2>conftest.er1
8a2fc586 3095 ac_status=$?
7a197a62
AK
3096 grep -v '^ *+' conftest.er1 >conftest.err
3097 rm -f conftest.er1
3098 cat conftest.err >&5
ec6a6fbe 3099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3100 (exit $ac_status); } && {
3101 test -z "$ac_c_werror_flag" ||
3102 test ! -s conftest.err
3103 } && test -s conftest.$ac_objext; then
7a197a62
AK
3104 :
3105else
ec6a6fbe 3106 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3107sed 's/^/| /' conftest.$ac_ext >&5
3108
3109 ac_c_werror_flag=$ac_save_c_werror_flag
3110 CFLAGS="-g"
3111 cat >conftest.$ac_ext <<_ACEOF
3112/* confdefs.h. */
3113_ACEOF
3114cat confdefs.h >>conftest.$ac_ext
3115cat >>conftest.$ac_ext <<_ACEOF
3116/* end confdefs.h. */
3117
3118int
3119main ()
3120{
3121
3122 ;
3123 return 0;
3124}
3125_ACEOF
3126rm -f conftest.$ac_objext
3127if { (ac_try="$ac_compile"
3128case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131esac
ec6a6fbe
AK
3132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3133$as_echo "$ac_try_echo") >&5
7a197a62 3134 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3135 ac_status=$?
7a197a62
AK
3136 grep -v '^ *+' conftest.er1 >conftest.err
3137 rm -f conftest.er1
3138 cat conftest.err >&5
ec6a6fbe 3139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3140 (exit $ac_status); } && {
3141 test -z "$ac_c_werror_flag" ||
3142 test ! -s conftest.err
3143 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3144 ac_cv_prog_cc_g=yes
3145else
ec6a6fbe 3146 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3147sed 's/^/| /' conftest.$ac_ext >&5
80992638 3148
7a197a62
AK
3149
3150fi
3151
3152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3153fi
3154
3155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3156fi
7a197a62
AK
3157
3158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3160fi
ec6a6fbe
AK
3161{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3162$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3163if test "$ac_test_CFLAGS" = set; then
ad6254c5 3164 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3165elif test $ac_cv_prog_cc_g = yes; then
3166 if test "$GCC" = yes; then
3167 CFLAGS="-g -O2"
3168 else
3169 CFLAGS="-g"
3170 fi
3171else
3172 if test "$GCC" = yes; then
3173 CFLAGS="-O2"
3174 else
3175 CFLAGS=
3176 fi
3177fi
ec6a6fbe
AK
3178{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3179$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3180if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3181 $as_echo_n "(cached) " >&6
ad6254c5 3182else
7a197a62 3183 ac_cv_prog_cc_c89=no
ad6254c5
AK
3184ac_save_CC=$CC
3185cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3186/* confdefs.h. */
3187_ACEOF
3188cat confdefs.h >>conftest.$ac_ext
3189cat >>conftest.$ac_ext <<_ACEOF
3190/* end confdefs.h. */
3191#include <stdarg.h>
3192#include <stdio.h>
3193#include <sys/types.h>
3194#include <sys/stat.h>
3195/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3196struct buf { int x; };
3197FILE * (*rcsopen) (struct buf *, struct stat *, int);
3198static char *e (p, i)
3199 char **p;
3200 int i;
3201{
3202 return p[i];
3203}
3204static char *f (char * (*g) (char **, int), char **p, ...)
3205{
3206 char *s;
3207 va_list v;
3208 va_start (v,p);
3209 s = g (p, va_arg (v,int));
3210 va_end (v);
3211 return s;
3212}
8a2fc586
AK
3213
3214/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3215 function prototypes and stuff, but not '\xHH' hex character constants.
3216 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3217 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3218 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3219 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3220 that's true only with -std. */
8a2fc586
AK
3221int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3222
7a197a62
AK
3223/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3224 inside strings and character constants. */
3225#define FOO(x) 'x'
3226int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3227
ad6254c5
AK
3228int test (int i, double x);
3229struct s1 {int (*f) (int a);};
3230struct s2 {int (*f) (double a);};
3231int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3232int argc;
3233char **argv;
3234int
3235main ()
3236{
3237return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3238 ;
3239 return 0;
3240}
3241_ACEOF
7a197a62
AK
3242for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3243 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3244do
3245 CC="$ac_save_CC $ac_arg"
3246 rm -f conftest.$ac_objext
7a197a62
AK
3247if { (ac_try="$ac_compile"
3248case "(($ac_try" in
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3251esac
ec6a6fbe
AK
3252eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3253$as_echo "$ac_try_echo") >&5
7a197a62 3254 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3255 ac_status=$?
8a2fc586
AK
3256 grep -v '^ *+' conftest.er1 >conftest.err
3257 rm -f conftest.er1
3258 cat conftest.err >&5
ec6a6fbe 3259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3260 (exit $ac_status); } && {
3261 test -z "$ac_c_werror_flag" ||
3262 test ! -s conftest.err
3263 } && test -s conftest.$ac_objext; then
7a197a62 3264 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3265else
ec6a6fbe 3266 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3267sed 's/^/| /' conftest.$ac_ext >&5
3268
7a197a62 3269
ad6254c5 3270fi
7a197a62
AK
3271
3272rm -f core conftest.err conftest.$ac_objext
3273 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3274done
7a197a62 3275rm -f conftest.$ac_ext
ad6254c5
AK
3276CC=$ac_save_CC
3277
3278fi
7a197a62
AK
3279# AC_CACHE_VAL
3280case "x$ac_cv_prog_cc_c89" in
3281 x)
ec6a6fbe
AK
3282 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3283$as_echo "none needed" >&6; } ;;
7a197a62 3284 xno)
ec6a6fbe
AK
3285 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3286$as_echo "unsupported" >&6; } ;;
ad6254c5 3287 *)
7a197a62 3288 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3289 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3290$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3291esac
3292
ad6254c5 3293
ad6254c5
AK
3294ac_ext=c
3295ac_cpp='$CPP $CPPFLAGS'
3296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3298ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3299
d0191583
JM
3300
3301
3302ac_ext=c
3303ac_cpp='$CPP $CPPFLAGS'
3304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3306ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3307{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3308$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3309# On Suns, sometimes $CPP names a directory.
3310if test -n "$CPP" && test -d "$CPP"; then
3311 CPP=
3312fi
3313if test -z "$CPP"; then
3314 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3315 $as_echo_n "(cached) " >&6
ad6254c5 3316else
d0191583
JM
3317 # Double quotes because CPP needs to be expanded
3318 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3319 do
3320 ac_preproc_ok=false
3321for ac_c_preproc_warn_flag in '' yes
ad6254c5 3322do
d0191583
JM
3323 # Use a header file that comes with gcc, so configuring glibc
3324 # with a fresh cross-compiler works.
3325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3326 # <limits.h> exists even on freestanding compilers.
3327 # On the NeXT, cc -E runs the code through the compiler's parser,
3328 # not just through cpp. "Syntax error" is here to catch this case.
3329 cat >conftest.$ac_ext <<_ACEOF
3330/* confdefs.h. */
3331_ACEOF
3332cat confdefs.h >>conftest.$ac_ext
3333cat >>conftest.$ac_ext <<_ACEOF
3334/* end confdefs.h. */
3335#ifdef __STDC__
3336# include <limits.h>
3337#else
3338# include <assert.h>
3339#endif
3340 Syntax error
3341_ACEOF
3342if { (ac_try="$ac_cpp conftest.$ac_ext"
3343case "(($ac_try" in
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
ad6254c5 3346esac
ec6a6fbe
AK
3347eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3348$as_echo "$ac_try_echo") >&5
d0191583
JM
3349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3350 ac_status=$?
3351 grep -v '^ *+' conftest.er1 >conftest.err
3352 rm -f conftest.er1
3353 cat conftest.err >&5
ec6a6fbe 3354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3355 (exit $ac_status); } >/dev/null && {
3356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3357 test ! -s conftest.err
3358 }; then
3359 :
3360else
ec6a6fbe 3361 $as_echo "$as_me: failed program was:" >&5
d0191583 3362sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3363
d0191583
JM
3364 # Broken: fails on valid input.
3365continue
795ca3e5 3366fi
795ca3e5 3367
d0191583 3368rm -f conftest.err conftest.$ac_ext
795ca3e5 3369
d0191583
JM
3370 # OK, works on sane cases. Now check whether nonexistent headers
3371 # can be detected and how.
3372 cat >conftest.$ac_ext <<_ACEOF
3373/* confdefs.h. */
3374_ACEOF
3375cat confdefs.h >>conftest.$ac_ext
3376cat >>conftest.$ac_ext <<_ACEOF
3377/* end confdefs.h. */
3378#include <ac_nonexistent.h>
3379_ACEOF
3380if { (ac_try="$ac_cpp conftest.$ac_ext"
3381case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3384esac
ec6a6fbe
AK
3385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3386$as_echo "$ac_try_echo") >&5
d0191583
JM
3387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3388 ac_status=$?
3389 grep -v '^ *+' conftest.er1 >conftest.err
3390 rm -f conftest.er1
3391 cat conftest.err >&5
ec6a6fbe 3392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3393 (exit $ac_status); } >/dev/null && {
3394 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3395 test ! -s conftest.err
3396 }; then
3397 # Broken: success on invalid input.
3398continue
3399else
ec6a6fbe 3400 $as_echo "$as_me: failed program was:" >&5
d0191583 3401sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3402
d0191583
JM
3403 # Passes both tests.
3404ac_preproc_ok=:
3405break
3406fi
795ca3e5 3407
d0191583
JM
3408rm -f conftest.err conftest.$ac_ext
3409
3410done
3411# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3412rm -f conftest.err conftest.$ac_ext
3413if $ac_preproc_ok; then
3414 break
795ca3e5
AK
3415fi
3416
d0191583
JM
3417 done
3418 ac_cv_prog_CPP=$CPP
3419
3420fi
3421 CPP=$ac_cv_prog_CPP
795ca3e5 3422else
d0191583
JM
3423 ac_cv_prog_CPP=$CPP
3424fi
ec6a6fbe
AK
3425{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3426$as_echo "$CPP" >&6; }
d0191583
JM
3427ac_preproc_ok=false
3428for ac_c_preproc_warn_flag in '' yes
3429do
3430 # Use a header file that comes with gcc, so configuring glibc
3431 # with a fresh cross-compiler works.
3432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3433 # <limits.h> exists even on freestanding compilers.
3434 # On the NeXT, cc -E runs the code through the compiler's parser,
3435 # not just through cpp. "Syntax error" is here to catch this case.
3436 cat >conftest.$ac_ext <<_ACEOF
3437/* confdefs.h. */
ad6254c5 3438_ACEOF
d0191583
JM
3439cat confdefs.h >>conftest.$ac_ext
3440cat >>conftest.$ac_ext <<_ACEOF
3441/* end confdefs.h. */
3442#ifdef __STDC__
3443# include <limits.h>
3444#else
3445# include <assert.h>
3446#endif
3447 Syntax error
3448_ACEOF
3449if { (ac_try="$ac_cpp conftest.$ac_ext"
3450case "(($ac_try" in
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
7a197a62 3453esac
ec6a6fbe
AK
3454eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3455$as_echo "$ac_try_echo") >&5
d0191583
JM
3456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3457 ac_status=$?
3458 grep -v '^ *+' conftest.er1 >conftest.err
3459 rm -f conftest.er1
3460 cat conftest.err >&5
ec6a6fbe 3461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3462 (exit $ac_status); } >/dev/null && {
3463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3464 test ! -s conftest.err
3465 }; then
3466 :
795ca3e5 3467else
ec6a6fbe 3468 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3469sed 's/^/| /' conftest.$ac_ext >&5
3470
3471 # Broken: fails on valid input.
3472continue
795ca3e5
AK
3473fi
3474
d0191583
JM
3475rm -f conftest.err conftest.$ac_ext
3476
3477 # OK, works on sane cases. Now check whether nonexistent headers
3478 # can be detected and how.
3479 cat >conftest.$ac_ext <<_ACEOF
3480/* confdefs.h. */
3481_ACEOF
3482cat confdefs.h >>conftest.$ac_ext
3483cat >>conftest.$ac_ext <<_ACEOF
3484/* end confdefs.h. */
3485#include <ac_nonexistent.h>
3486_ACEOF
3487if { (ac_try="$ac_cpp conftest.$ac_ext"
3488case "(($ac_try" in
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3491esac
ec6a6fbe
AK
3492eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3493$as_echo "$ac_try_echo") >&5
d0191583
JM
3494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3495 ac_status=$?
3496 grep -v '^ *+' conftest.er1 >conftest.err
3497 rm -f conftest.er1
3498 cat conftest.err >&5
ec6a6fbe 3499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3500 (exit $ac_status); } >/dev/null && {
3501 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3502 test ! -s conftest.err
3503 }; then
3504 # Broken: success on invalid input.
3505continue
795ca3e5 3506else
ec6a6fbe 3507 $as_echo "$as_me: failed program was:" >&5
d0191583 3508sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3509
d0191583
JM
3510 # Passes both tests.
3511ac_preproc_ok=:
3512break
795ca3e5 3513fi
d0191583
JM
3514
3515rm -f conftest.err conftest.$ac_ext
3516
3517done
3518# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3519rm -f conftest.err conftest.$ac_ext
3520if $ac_preproc_ok; then
3521 :
8106cdd5 3522else
ec6a6fbe
AK
3523 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3525{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3526See \`config.log' for more details." >&5
ec6a6fbe 3527$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3528See \`config.log' for more details." >&2;}
ec6a6fbe 3529 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3530fi
3531
d0191583
JM
3532ac_ext=c
3533ac_cpp='$CPP $CPPFLAGS'
3534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536ac_compiler_gnu=$ac_cv_c_compiler_gnu
3537
7a197a62 3538
ec6a6fbe
AK
3539{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3540$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3541if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3542 $as_echo_n "(cached) " >&6
ad6254c5 3543else
ec6a6fbe 3544 if test -z "$GREP"; then
d0191583 3545 ac_path_GREP_found=false
ec6a6fbe
AK
3546 # Loop through the user's path and test for each of PROGNAME-LIST
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3548for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3549do
3550 IFS=$as_save_IFS
3551 test -z "$as_dir" && as_dir=.
d0191583 3552 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3555 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3556# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3557 # Check for GNU $ac_path_GREP
3558case `"$ac_path_GREP" --version 2>&1` in
3559*GNU*)
3560 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3561*)
3562 ac_count=0
ec6a6fbe 3563 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3564 while :
3565 do
3566 cat "conftest.in" "conftest.in" >"conftest.tmp"
3567 mv "conftest.tmp" "conftest.in"
3568 cp "conftest.in" "conftest.nl"
ec6a6fbe 3569 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3570 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3571 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3572 ac_count=`expr $ac_count + 1`
3573 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3574 # Best one so far, save it but keep looking for a better one
3575 ac_cv_path_GREP="$ac_path_GREP"
3576 ac_path_GREP_max=$ac_count
3577 fi
3578 # 10*(2^10) chars as input seems more than enough
3579 test $ac_count -gt 10 && break
3580 done
3581 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3582esac
3583
ec6a6fbe
AK
3584 $ac_path_GREP_found && break 3
3585 done
d0191583 3586 done
ad6254c5 3587done
7a197a62 3588IFS=$as_save_IFS
ec6a6fbe
AK
3589 if test -z "$ac_cv_path_GREP"; then
3590 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3591$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3592 { (exit 1); exit 1; }; }
ec6a6fbe 3593 fi
80992638 3594else
d0191583 3595 ac_cv_path_GREP=$GREP
8106cdd5 3596fi
8106cdd5 3597
80992638 3598fi
ec6a6fbe
AK
3599{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3600$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3601 GREP="$ac_cv_path_GREP"
795ca3e5 3602
d0191583 3603
ec6a6fbe
AK
3604{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3605$as_echo_n "checking for egrep... " >&6; }
d0191583 3606if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3607 $as_echo_n "(cached) " >&6
8a2fc586 3608else
d0191583
JM
3609 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3610 then ac_cv_path_EGREP="$GREP -E"
3611 else
ec6a6fbe 3612 if test -z "$EGREP"; then
d0191583 3613 ac_path_EGREP_found=false
ec6a6fbe
AK
3614 # Loop through the user's path and test for each of PROGNAME-LIST
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3616for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3617do
3618 IFS=$as_save_IFS
3619 test -z "$as_dir" && as_dir=.
d0191583 3620 for ac_prog in egrep; do
ec6a6fbe
AK
3621 for ac_exec_ext in '' $ac_executable_extensions; do
3622 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3623 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3624# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3625 # Check for GNU $ac_path_EGREP
3626case `"$ac_path_EGREP" --version 2>&1` in
3627*GNU*)
3628 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3629*)
3630 ac_count=0
ec6a6fbe 3631 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3632 while :
3633 do
3634 cat "conftest.in" "conftest.in" >"conftest.tmp"
3635 mv "conftest.tmp" "conftest.in"
3636 cp "conftest.in" "conftest.nl"
ec6a6fbe 3637 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3638 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3639 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3640 ac_count=`expr $ac_count + 1`
3641 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3642 # Best one so far, save it but keep looking for a better one
3643 ac_cv_path_EGREP="$ac_path_EGREP"
3644 ac_path_EGREP_max=$ac_count
3645 fi
3646 # 10*(2^10) chars as input seems more than enough
3647 test $ac_count -gt 10 && break
3648 done
3649 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3650esac
8a2fc586 3651
ec6a6fbe
AK
3652 $ac_path_EGREP_found && break 3
3653 done
d0191583 3654 done
8a2fc586 3655done
7a197a62 3656IFS=$as_save_IFS
ec6a6fbe
AK
3657 if test -z "$ac_cv_path_EGREP"; then
3658 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3659$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3660 { (exit 1); exit 1; }; }
ec6a6fbe 3661 fi
d0191583
JM
3662else
3663 ac_cv_path_EGREP=$EGREP
3664fi
ad6254c5 3665
d0191583
JM
3666 fi
3667fi
ec6a6fbe
AK
3668{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3669$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3670 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3671
3672
d0191583 3673if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3674 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3675$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3676if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3677 $as_echo_n "(cached) " >&6
8106cdd5 3678else
d0191583 3679 ac_pattern="Autoconf.*'x'"
ad6254c5 3680 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3681/* confdefs.h. */
3682_ACEOF
3683cat confdefs.h >>conftest.$ac_ext
3684cat >>conftest.$ac_ext <<_ACEOF
3685/* end confdefs.h. */
d0191583
JM
3686#include <sgtty.h>
3687Autoconf TIOCGETP
ad6254c5 3688_ACEOF
d0191583
JM
3689if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3690 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3691 ac_cv_prog_gcc_traditional=yes
8106cdd5 3692else
d0191583 3693 ac_cv_prog_gcc_traditional=no
80992638 3694fi
d0191583 3695rm -f conftest*
ad6254c5 3696
8106cdd5 3697
d0191583
JM
3698 if test $ac_cv_prog_gcc_traditional = no; then
3699 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3700/* confdefs.h. */
3701_ACEOF
3702cat confdefs.h >>conftest.$ac_ext
3703cat >>conftest.$ac_ext <<_ACEOF
3704/* end confdefs.h. */
d0191583
JM
3705#include <termio.h>
3706Autoconf TCGETA
ad6254c5 3707_ACEOF
d0191583
JM
3708if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3709 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3710 ac_cv_prog_gcc_traditional=yes
7a197a62 3711fi
d0191583 3712rm -f conftest*
795ca3e5 3713
d0191583 3714 fi
795ca3e5 3715fi
ec6a6fbe
AK
3716{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3717$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3718 if test $ac_cv_prog_gcc_traditional = yes; then
3719 CC="$CC -traditional"
3720 fi
795ca3e5
AK
3721fi
3722
d0191583
JM
3723# Find a good install program. We prefer a C program (faster),
3724# so one script is as good as another. But avoid the broken or
3725# incompatible versions:
3726# SysV /etc/install, /usr/sbin/install
3727# SunOS /usr/etc/install
3728# IRIX /sbin/install
3729# AIX /bin/install
3730# AmigaOS /C/install, which installs bootblocks on floppy discs
3731# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3732# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3733# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3734# OS/2's system install, which has a completely different semantic
3735# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3736# Reject install programs that cannot install multiple files.
3737{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3738$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3739if test -z "$INSTALL"; then
3740if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3741 $as_echo_n "(cached) " >&6
ad6254c5 3742else
d0191583
JM
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744for as_dir in $PATH
3745do
3746 IFS=$as_save_IFS
3747 test -z "$as_dir" && as_dir=.
3748 # Account for people who put trailing slashes in PATH elements.
3749case $as_dir/ in
3750 ./ | .// | /cC/* | \
3751 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3752 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3753 /usr/ucb/* ) ;;
3754 *)
3755 # OSF1 and SCO ODT 3.0 have their own names for install.
3756 # Don't use installbsd from OSF since it installs stuff as root
3757 # by default.
3758 for ac_prog in ginstall scoinst install; do
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3761 if test $ac_prog = install &&
3762 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3763 # AIX install. It has an incompatible calling convention.
3764 :
3765 elif test $ac_prog = install &&
3766 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3767 # program-specific install script used by HP pwplus--don't use.
3768 :
3769 else
ec6a6fbe
AK
3770 rm -rf conftest.one conftest.two conftest.dir
3771 echo one > conftest.one
3772 echo two > conftest.two
3773 mkdir conftest.dir
3774 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3775 test -s conftest.one && test -s conftest.two &&
3776 test -s conftest.dir/conftest.one &&
3777 test -s conftest.dir/conftest.two
3778 then
3779 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3780 break 3
3781 fi
d0191583
JM
3782 fi
3783 fi
3784 done
3785 done
3786 ;;
3787esac
ec6a6fbe 3788
d0191583
JM
3789done
3790IFS=$as_save_IFS
80992638 3791
ec6a6fbe 3792rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3793
3794fi
3795 if test "${ac_cv_path_install+set}" = set; then
3796 INSTALL=$ac_cv_path_install
7a197a62 3797 else
d0191583
JM
3798 # As a last resort, use the slow shell script. Don't cache a
3799 # value for INSTALL within a source directory, because that will
3800 # break other packages using the cache if that directory is
3801 # removed, or if the value is a relative name.
3802 INSTALL=$ac_install_sh
7a197a62 3803 fi
d0191583 3804fi
ec6a6fbe
AK
3805{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3806$as_echo "$INSTALL" >&6; }
ad6254c5 3807
d0191583
JM
3808# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3809# It thinks the first close brace ends the variable substitution.
3810test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3811
d0191583 3812test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3813
d0191583
JM
3814test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3815
ec6a6fbe
AK
3816{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3817$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3818LN_S=$as_ln_s
3819if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3820 { $as_echo "$as_me:$LINENO: result: yes" >&5
3821$as_echo "yes" >&6; }
d0191583 3822else
ec6a6fbe
AK
3823 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3824$as_echo "no, using $LN_S" >&6; }
795ca3e5 3825fi
d0191583 3826
ec6a6fbe
AK
3827{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3828$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3829set x ${MAKE-make}
3830ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3831if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3832 $as_echo_n "(cached) " >&6
7a197a62 3833else
d0191583
JM
3834 cat >conftest.make <<\_ACEOF
3835SHELL = /bin/sh
3836all:
3837 @echo '@@@%%%=$(MAKE)=@@@%%%'
3838_ACEOF
3839# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3840case `${MAKE-make} -f conftest.make 2>/dev/null` in
3841 *@@@%%%=?*=@@@%%%*)
3842 eval ac_cv_prog_make_${ac_make}_set=yes;;
3843 *)
3844 eval ac_cv_prog_make_${ac_make}_set=no;;
3845esac
3846rm -f conftest.make
ad6254c5 3847fi
d0191583 3848if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3849 { $as_echo "$as_me:$LINENO: result: yes" >&5
3850$as_echo "yes" >&6; }
d0191583
JM
3851 SET_MAKE=
3852else
ec6a6fbe
AK
3853 { $as_echo "$as_me:$LINENO: result: no" >&5
3854$as_echo "no" >&6; }
d0191583 3855 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3856fi
8106cdd5 3857
ec6a6fbe
AK
3858{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3859$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3860if test -z "$MKDIR_P"; then
3861 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3862 $as_echo_n "(cached) " >&6
5556819a
AK
3863else
3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3866do
3867 IFS=$as_save_IFS
3868 test -z "$as_dir" && as_dir=.
3869 for ac_prog in mkdir gmkdir; do
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3872 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3873 'mkdir (GNU coreutils) '* | \
3874 'mkdir (coreutils) '* | \
3875 'mkdir (fileutils) '4.1*)
3876 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3877 break 3;;
3878 esac
3879 done
3880 done
3881done
3882IFS=$as_save_IFS
3883
3884fi
3885
3886 if test "${ac_cv_path_mkdir+set}" = set; then
3887 MKDIR_P="$ac_cv_path_mkdir -p"
3888 else
3889 # As a last resort, use the slow shell script. Don't cache a
3890 # value for MKDIR_P within a source directory, because that will
3891 # break other packages using the cache if that directory is
3892 # removed, or if the value is a relative name.
3893 test -d ./--version && rmdir ./--version
3894 MKDIR_P="$ac_install_sh -d"
3895 fi
3896fi
ec6a6fbe
AK
3897{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3898$as_echo "$MKDIR_P" >&6; }
5556819a 3899
d0191583
JM
3900if test -n "$ac_tool_prefix"; then
3901 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3902set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3903{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3904$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3905if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3906 $as_echo_n "(cached) " >&6
d0191583
JM
3907else
3908 if test -n "$RANLIB"; then
3909 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3910else
3911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912for as_dir in $PATH
3913do
3914 IFS=$as_save_IFS
3915 test -z "$as_dir" && as_dir=.
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3918 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3919 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3920 break 2
3921 fi
3922done
3923done
3924IFS=$as_save_IFS
8106cdd5 3925
795ca3e5 3926fi
d0191583
JM
3927fi
3928RANLIB=$ac_cv_prog_RANLIB
3929if test -n "$RANLIB"; then
ec6a6fbe
AK
3930 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3931$as_echo "$RANLIB" >&6; }
d0191583 3932else
ec6a6fbe
AK
3933 { $as_echo "$as_me:$LINENO: result: no" >&5
3934$as_echo "no" >&6; }
d0191583
JM
3935fi
3936
8106cdd5 3937
ad6254c5 3938fi
d0191583
JM
3939if test -z "$ac_cv_prog_RANLIB"; then
3940 ac_ct_RANLIB=$RANLIB
3941 # Extract the first word of "ranlib", so it can be a program name with args.
3942set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3943{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3944$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3945if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 3946 $as_echo_n "(cached) " >&6
ad6254c5 3947else
d0191583
JM
3948 if test -n "$ac_ct_RANLIB"; then
3949 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3950else
3951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952for as_dir in $PATH
8106cdd5 3953do
d0191583
JM
3954 IFS=$as_save_IFS
3955 test -z "$as_dir" && as_dir=.
3956 for ac_exec_ext in '' $ac_executable_extensions; do
3957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3958 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 3959 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3960 break 2
3961 fi
3962done
3963done
3964IFS=$as_save_IFS
3965
3966fi
3967fi
3968ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3969if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
3970 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3971$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 3972else
ec6a6fbe
AK
3973 { $as_echo "$as_me:$LINENO: result: no" >&5
3974$as_echo "no" >&6; }
d0191583 3975fi
ad6254c5 3976
d0191583
JM
3977 if test "x$ac_ct_RANLIB" = x; then
3978 RANLIB=":"
3979 else
3980 case $cross_compiling:$ac_tool_warned in
3981yes:)
ec6a6fbe
AK
3982{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
3984ac_tool_warned=yes ;;
3985esac
3986 RANLIB=$ac_ct_RANLIB
3987 fi
3988else
3989 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 3990fi
7a197a62 3991
d0191583
JM
3992# Extract the first word of "cflow", so it can be a program name with args.
3993set dummy cflow; ac_word=$2
ec6a6fbe
AK
3994{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3995$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3996if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 3997 $as_echo_n "(cached) " >&6
d0191583
JM
3998else
3999 case $CFLOW_CMD in
4000 [\\/]* | ?:[\\/]*)
4001 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4002 ;;
4003 *)
4004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005for as_dir in $PATH
4006do
4007 IFS=$as_save_IFS
4008 test -z "$as_dir" && as_dir=.
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4011 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4012 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4013 break 2
4014 fi
4015done
4016done
4017IFS=$as_save_IFS
ad6254c5 4018
d0191583 4019 ;;
7a197a62 4020esac
d0191583
JM
4021fi
4022CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4023if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
4024 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4025$as_echo "$CFLOW_CMD" >&6; }
80992638 4026else
ec6a6fbe
AK
4027 { $as_echo "$as_me:$LINENO: result: no" >&5
4028$as_echo "no" >&6; }
795ca3e5 4029fi
7a197a62 4030
ad6254c5 4031
d0191583
JM
4032# Extract the first word of "cscope", so it can be a program name with args.
4033set dummy cscope; ac_word=$2
ec6a6fbe
AK
4034{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4035$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4036if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 4037 $as_echo_n "(cached) " >&6
d0191583
JM
4038else
4039 case $CSCOPE_CMD in
4040 [\\/]* | ?:[\\/]*)
4041 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4042 ;;
4043 *)
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045for as_dir in $PATH
4046do
4047 IFS=$as_save_IFS
4048 test -z "$as_dir" && as_dir=.
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4051 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4052 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4053 break 2
4054 fi
795ca3e5 4055done
d0191583
JM
4056done
4057IFS=$as_save_IFS
795ca3e5 4058
d0191583
JM
4059 ;;
4060esac
ad6254c5 4061fi
d0191583
JM
4062CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4063if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
4064 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4065$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 4066else
ec6a6fbe
AK
4067 { $as_echo "$as_me:$LINENO: result: no" >&5
4068$as_echo "no" >&6; }
795ca3e5 4069fi
ad6254c5 4070
7a197a62 4071
ad6254c5 4072
d0191583
JM
4073################################################################################
4074
4075
4076
4077
4078
4079ac_header_dirent=no
4080for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
4081 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4082{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4083$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 4084if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4085 $as_echo_n "(cached) " >&6
d0191583 4086else
ad6254c5 4087 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4088/* confdefs.h. */
4089_ACEOF
4090cat confdefs.h >>conftest.$ac_ext
4091cat >>conftest.$ac_ext <<_ACEOF
4092/* end confdefs.h. */
d0191583
JM
4093#include <sys/types.h>
4094#include <$ac_hdr>
4095
4096int
4097main ()
4098{
4099if ((DIR *) 0)
4100return 0;
4101 ;
4102 return 0;
4103}
ad6254c5 4104_ACEOF
d0191583
JM
4105rm -f conftest.$ac_objext
4106if { (ac_try="$ac_compile"
7a197a62
AK
4107case "(($ac_try" in
4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109 *) ac_try_echo=$ac_try;;
4110esac
ec6a6fbe
AK
4111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4112$as_echo "$ac_try_echo") >&5
d0191583 4113 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4114 ac_status=$?
4115 grep -v '^ *+' conftest.er1 >conftest.err
4116 rm -f conftest.er1
4117 cat conftest.err >&5
ec6a6fbe 4118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4119 (exit $ac_status); } && {
4120 test -z "$ac_c_werror_flag" ||
25fbec5b 4121 test ! -s conftest.err
d0191583
JM
4122 } && test -s conftest.$ac_objext; then
4123 eval "$as_ac_Header=yes"
ad6254c5 4124else
ec6a6fbe 4125 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4126sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4127
d0191583 4128 eval "$as_ac_Header=no"
795ca3e5 4129fi
7a197a62 4130
d0191583 4131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4132fi
ec6a6fbe
AK
4133ac_res=`eval 'as_val=${'$as_ac_Header'}
4134 $as_echo "$as_val"'`
4135 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4136$as_echo "$ac_res" >&6; }
4137as_val=`eval 'as_val=${'$as_ac_Header'}
4138 $as_echo "$as_val"'`
4139 if test "x$as_val" = x""yes; then
d0191583 4140 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4141#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4142_ACEOF
795ca3e5 4143
d0191583
JM
4144ac_header_dirent=$ac_hdr; break
4145fi
ad6254c5 4146
d0191583
JM
4147done
4148# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4149if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4150 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4151$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4152if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4153 $as_echo_n "(cached) " >&6
ad6254c5 4154else
d0191583
JM
4155 ac_func_search_save_LIBS=$LIBS
4156cat >conftest.$ac_ext <<_ACEOF
4157/* confdefs.h. */
4158_ACEOF
4159cat confdefs.h >>conftest.$ac_ext
4160cat >>conftest.$ac_ext <<_ACEOF
4161/* end confdefs.h. */
ad6254c5 4162
d0191583
JM
4163/* Override any GCC internal prototype to avoid an error.
4164 Use char because int might match the return type of a GCC
4165 builtin and then its argument prototype would still apply. */
4166#ifdef __cplusplus
4167extern "C"
4168#endif
4169char opendir ();
4170int
4171main ()
4172{
4173return opendir ();
4174 ;
4175 return 0;
4176}
4177_ACEOF
4178for ac_lib in '' dir; do
4179 if test -z "$ac_lib"; then
4180 ac_res="none required"
4181 else
4182 ac_res=-l$ac_lib
4183 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4184 fi
4185 rm -f conftest.$ac_objext conftest$ac_exeext
4186if { (ac_try="$ac_link"
4187case "(($ac_try" in
4188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189 *) ac_try_echo=$ac_try;;
4190esac
ec6a6fbe
AK
4191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4192$as_echo "$ac_try_echo") >&5
d0191583
JM
4193 (eval "$ac_link") 2>conftest.er1
4194 ac_status=$?
4195 grep -v '^ *+' conftest.er1 >conftest.err
4196 rm -f conftest.er1
4197 cat conftest.err >&5
ec6a6fbe 4198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4199 (exit $ac_status); } && {
4200 test -z "$ac_c_werror_flag" ||
4201 test ! -s conftest.err
ec6a6fbe
AK
4202 } && test -s conftest$ac_exeext && {
4203 test "$cross_compiling" = yes ||
4204 $as_test_x conftest$ac_exeext
4205 }; then
d0191583
JM
4206 ac_cv_search_opendir=$ac_res
4207else
ec6a6fbe 4208 $as_echo "$as_me: failed program was:" >&5
d0191583 4209sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4210
ad6254c5 4211
795ca3e5 4212fi
ad6254c5 4213
ec6a6fbe 4214rm -rf conftest.dSYM
d0191583
JM
4215rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4216 conftest$ac_exeext
4217 if test "${ac_cv_search_opendir+set}" = set; then
4218 break
7a197a62 4219fi
d0191583
JM
4220done
4221if test "${ac_cv_search_opendir+set}" = set; then
4222 :
7a197a62 4223else
d0191583 4224 ac_cv_search_opendir=no
7a197a62 4225fi
d0191583
JM
4226rm conftest.$ac_ext
4227LIBS=$ac_func_search_save_LIBS
7a197a62 4228fi
ec6a6fbe
AK
4229{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4230$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4231ac_res=$ac_cv_search_opendir
4232if test "$ac_res" != no; then
4233 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4234
d0191583 4235fi
7a197a62 4236
7a197a62 4237else
ec6a6fbe
AK
4238 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4239$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4240if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4241 $as_echo_n "(cached) " >&6
7a197a62 4242else
d0191583
JM
4243 ac_func_search_save_LIBS=$LIBS
4244cat >conftest.$ac_ext <<_ACEOF
4245/* confdefs.h. */
4246_ACEOF
4247cat confdefs.h >>conftest.$ac_ext
4248cat >>conftest.$ac_ext <<_ACEOF
4249/* end confdefs.h. */
7a197a62 4250
d0191583
JM
4251/* Override any GCC internal prototype to avoid an error.
4252 Use char because int might match the return type of a GCC
4253 builtin and then its argument prototype would still apply. */
4254#ifdef __cplusplus
4255extern "C"
4256#endif
4257char opendir ();
4258int
4259main ()
4260{
4261return opendir ();
4262 ;
4263 return 0;
4264}
4265_ACEOF
4266for ac_lib in '' x; do
4267 if test -z "$ac_lib"; then
4268 ac_res="none required"
4269 else
4270 ac_res=-l$ac_lib
4271 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4272 fi
4273 rm -f conftest.$ac_objext conftest$ac_exeext
4274if { (ac_try="$ac_link"
4275case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278esac
ec6a6fbe
AK
4279eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4280$as_echo "$ac_try_echo") >&5
d0191583
JM
4281 (eval "$ac_link") 2>conftest.er1
4282 ac_status=$?
4283 grep -v '^ *+' conftest.er1 >conftest.err
4284 rm -f conftest.er1
4285 cat conftest.err >&5
ec6a6fbe 4286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4287 (exit $ac_status); } && {
4288 test -z "$ac_c_werror_flag" ||
4289 test ! -s conftest.err
ec6a6fbe
AK
4290 } && test -s conftest$ac_exeext && {
4291 test "$cross_compiling" = yes ||
4292 $as_test_x conftest$ac_exeext
4293 }; then
d0191583
JM
4294 ac_cv_search_opendir=$ac_res
4295else
ec6a6fbe 4296 $as_echo "$as_me: failed program was:" >&5
d0191583 4297sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4298
4299
4300fi
4301
ec6a6fbe 4302rm -rf conftest.dSYM
d0191583
JM
4303rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4304 conftest$ac_exeext
4305 if test "${ac_cv_search_opendir+set}" = set; then
4306 break
7a197a62 4307fi
d0191583
JM
4308done
4309if test "${ac_cv_search_opendir+set}" = set; then
4310 :
7a197a62 4311else
d0191583 4312 ac_cv_search_opendir=no
7a197a62 4313fi
d0191583
JM
4314rm conftest.$ac_ext
4315LIBS=$ac_func_search_save_LIBS
4316fi
ec6a6fbe
AK
4317{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4318$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4319ac_res=$ac_cv_search_opendir
4320if test "$ac_res" != no; then
4321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4322
7a197a62 4323fi
7a197a62 4324
d0191583 4325fi
7a197a62 4326
ec6a6fbe
AK
4327{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4328$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4329if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4330 $as_echo_n "(cached) " >&6
7a197a62
AK
4331else
4332 cat >conftest.$ac_ext <<_ACEOF
4333/* confdefs.h. */
4334_ACEOF
4335cat confdefs.h >>conftest.$ac_ext
4336cat >>conftest.$ac_ext <<_ACEOF
4337/* end confdefs.h. */
4338#include <stdlib.h>
4339#include <stdarg.h>
4340#include <string.h>
4341#include <float.h>
4342
4343int
4344main ()
4345{
4346
4347 ;
4348 return 0;
4349}
4350_ACEOF
4351rm -f conftest.$ac_objext
4352if { (ac_try="$ac_compile"
4353case "(($ac_try" in
4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355 *) ac_try_echo=$ac_try;;
4356esac
ec6a6fbe
AK
4357eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4358$as_echo "$ac_try_echo") >&5
7a197a62
AK
4359 (eval "$ac_compile") 2>conftest.er1
4360 ac_status=$?
4361 grep -v '^ *+' conftest.er1 >conftest.err
4362 rm -f conftest.er1
4363 cat conftest.err >&5
ec6a6fbe 4364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4365 (exit $ac_status); } && {
4366 test -z "$ac_c_werror_flag" ||
4367 test ! -s conftest.err
4368 } && test -s conftest.$ac_objext; then
7a197a62
AK
4369 ac_cv_header_stdc=yes
4370else
ec6a6fbe 4371 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4372sed 's/^/| /' conftest.$ac_ext >&5
4373
4374 ac_cv_header_stdc=no
4375fi
4376
4377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4378
4379if test $ac_cv_header_stdc = yes; then
4380 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4381 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4382/* confdefs.h. */
4383_ACEOF
4384cat confdefs.h >>conftest.$ac_ext
4385cat >>conftest.$ac_ext <<_ACEOF
4386/* end confdefs.h. */
4387#include <string.h>
8106cdd5 4388
ad6254c5
AK
4389_ACEOF
4390if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4391 $EGREP "memchr" >/dev/null 2>&1; then
4392 :
4393else
4394 ac_cv_header_stdc=no
80992638 4395fi
ad6254c5 4396rm -f conftest*
795ca3e5
AK
4397
4398fi
4399
ad6254c5
AK
4400if test $ac_cv_header_stdc = yes; then
4401 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4402 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4403/* confdefs.h. */
4404_ACEOF
4405cat confdefs.h >>conftest.$ac_ext
4406cat >>conftest.$ac_ext <<_ACEOF
4407/* end confdefs.h. */
80992638 4408#include <stdlib.h>
ad6254c5
AK
4409
4410_ACEOF
80992638 4411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4412 $EGREP "free" >/dev/null 2>&1; then
4413 :
795ca3e5 4414else
ad6254c5 4415 ac_cv_header_stdc=no
795ca3e5 4416fi
80992638 4417rm -f conftest*
8106cdd5 4418
795ca3e5
AK
4419fi
4420
ad6254c5
AK
4421if test $ac_cv_header_stdc = yes; then
4422 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4423 if test "$cross_compiling" = yes; then
4424 :
795ca3e5 4425else
ad6254c5 4426 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4427/* confdefs.h. */
4428_ACEOF
4429cat confdefs.h >>conftest.$ac_ext
4430cat >>conftest.$ac_ext <<_ACEOF
4431/* end confdefs.h. */
4432#include <ctype.h>
7a197a62 4433#include <stdlib.h>
ad6254c5
AK
4434#if ((' ' & 0x0FF) == 0x020)
4435# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4436# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4437#else
4438# define ISLOWER(c) \
8a2fc586
AK
4439 (('a' <= (c) && (c) <= 'i') \
4440 || ('j' <= (c) && (c) <= 'r') \
4441 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4442# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4443#endif
ad6254c5
AK
4444
4445#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4446int
4447main ()
4448{
4449 int i;
4450 for (i = 0; i < 256; i++)
4451 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4452 || toupper (i) != TOUPPER (i))
7a197a62
AK
4453 return 2;
4454 return 0;
ad6254c5
AK
4455}
4456_ACEOF
4457rm -f conftest$ac_exeext
7a197a62
AK
4458if { (ac_try="$ac_link"
4459case "(($ac_try" in
4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4462esac
ec6a6fbe
AK
4463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4464$as_echo "$ac_try_echo") >&5
7a197a62 4465 (eval "$ac_link") 2>&5
ad6254c5 4466 ac_status=$?
ec6a6fbe 4467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4469 { (case "(($ac_try" in
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4472esac
ec6a6fbe
AK
4473eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4474$as_echo "$ac_try_echo") >&5
7a197a62 4475 (eval "$ac_try") 2>&5
ad6254c5 4476 ac_status=$?
ec6a6fbe 4477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4478 (exit $ac_status); }; }; then
4479 :
795ca3e5 4480else
ec6a6fbe
AK
4481 $as_echo "$as_me: program exited with status $ac_status" >&5
4482$as_echo "$as_me: failed program was:" >&5
ad6254c5 4483sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4484
ad6254c5
AK
4485( exit $ac_status )
4486ac_cv_header_stdc=no
80992638 4487fi
ec6a6fbe 4488rm -rf conftest.dSYM
7a197a62 4489rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4490fi
7a197a62
AK
4491
4492
ad6254c5
AK
4493fi
4494fi
ec6a6fbe
AK
4495{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4496$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4497if test $ac_cv_header_stdc = yes; then
4498
4499cat >>confdefs.h <<\_ACEOF
4500#define STDC_HEADERS 1
4501_ACEOF
795ca3e5
AK
4502
4503fi
4504
ec6a6fbe
AK
4505{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4506$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
ad6254c5 4507if test "${ac_cv_header_sys_wait_h+set}" = set; then
ec6a6fbe 4508 $as_echo_n "(cached) " >&6
8106cdd5 4509else
ad6254c5 4510 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4511/* confdefs.h. */
4512_ACEOF
4513cat confdefs.h >>conftest.$ac_ext
4514cat >>conftest.$ac_ext <<_ACEOF
4515/* end confdefs.h. */
80992638 4516#include <sys/types.h>
ad6254c5
AK
4517#include <sys/wait.h>
4518#ifndef WEXITSTATUS
7a197a62 4519# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4520#endif
4521#ifndef WIFEXITED
4522# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4523#endif
4524
4525int
4526main ()
4527{
4528 int s;
4529 wait (&s);
4530 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4531 ;
4532 return 0;
4533}
4534_ACEOF
4535rm -f conftest.$ac_objext
7a197a62
AK
4536if { (ac_try="$ac_compile"
4537case "(($ac_try" in
4538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539 *) ac_try_echo=$ac_try;;
4540esac
ec6a6fbe
AK
4541eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4542$as_echo "$ac_try_echo") >&5
7a197a62 4543 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4544 ac_status=$?
8a2fc586
AK
4545 grep -v '^ *+' conftest.er1 >conftest.err
4546 rm -f conftest.er1
4547 cat conftest.err >&5
ec6a6fbe 4548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4549 (exit $ac_status); } && {
4550 test -z "$ac_c_werror_flag" ||
4551 test ! -s conftest.err
4552 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4553 ac_cv_header_sys_wait_h=yes
4554else
ec6a6fbe 4555 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4556sed 's/^/| /' conftest.$ac_ext >&5
4557
7a197a62 4558 ac_cv_header_sys_wait_h=no
8106cdd5 4559fi
7a197a62
AK
4560
4561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4562fi
ec6a6fbe
AK
4563{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4564$as_echo "$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4565if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4566
ad6254c5
AK
4567cat >>confdefs.h <<\_ACEOF
4568#define HAVE_SYS_WAIT_H 1
4569_ACEOF
795ca3e5
AK
4570
4571fi
4572
ec6a6fbe
AK
4573{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4574$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
ad6254c5 4575if test "${ac_cv_header_time+set}" = set; then
ec6a6fbe 4576 $as_echo_n "(cached) " >&6
795ca3e5 4577else
ad6254c5 4578 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4579/* confdefs.h. */
4580_ACEOF
4581cat confdefs.h >>conftest.$ac_ext
4582cat >>conftest.$ac_ext <<_ACEOF
4583/* end confdefs.h. */
795ca3e5
AK
4584#include <sys/types.h>
4585#include <sys/time.h>
4586#include <time.h>
ad6254c5
AK
4587
4588int
4589main ()
4590{
4591if ((struct tm *) 0)
4592return 0;
4593 ;
4594 return 0;
4595}
4596_ACEOF
4597rm -f conftest.$ac_objext
7a197a62
AK
4598if { (ac_try="$ac_compile"
4599case "(($ac_try" in
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4602esac
ec6a6fbe
AK
4603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4604$as_echo "$ac_try_echo") >&5
7a197a62 4605 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4606 ac_status=$?
8a2fc586
AK
4607 grep -v '^ *+' conftest.er1 >conftest.err
4608 rm -f conftest.er1
4609 cat conftest.err >&5
ec6a6fbe 4610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4611 (exit $ac_status); } && {
4612 test -z "$ac_c_werror_flag" ||
4613 test ! -s conftest.err
4614 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4615 ac_cv_header_time=yes
4616else
ec6a6fbe 4617 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4618sed 's/^/| /' conftest.$ac_ext >&5
4619
7a197a62 4620 ac_cv_header_time=no
795ca3e5 4621fi
7a197a62
AK
4622
4623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4624fi
ec6a6fbe
AK
4625{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4626$as_echo "$ac_cv_header_time" >&6; }
80992638 4627if test $ac_cv_header_time = yes; then
ad6254c5
AK
4628
4629cat >>confdefs.h <<\_ACEOF
795ca3e5 4630#define TIME_WITH_SYS_TIME 1
ad6254c5 4631_ACEOF
b896caa1 4632
8106cdd5 4633fi
b896caa1 4634
b896caa1 4635
d0191583
JM
4636# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4647 inttypes.h stdint.h unistd.h
4648do
ec6a6fbe
AK
4649as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4650{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4651$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4652if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4653 $as_echo_n "(cached) " >&6
d0191583
JM
4654else
4655 cat >conftest.$ac_ext <<_ACEOF
4656/* confdefs.h. */
4657_ACEOF
4658cat confdefs.h >>conftest.$ac_ext
4659cat >>conftest.$ac_ext <<_ACEOF
4660/* end confdefs.h. */
4661$ac_includes_default
4662
4663#include <$ac_header>
4664_ACEOF
4665rm -f conftest.$ac_objext
4666if { (ac_try="$ac_compile"
4667case "(($ac_try" in
4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 *) ac_try_echo=$ac_try;;
4670esac
ec6a6fbe
AK
4671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4672$as_echo "$ac_try_echo") >&5
d0191583
JM
4673 (eval "$ac_compile") 2>conftest.er1
4674 ac_status=$?
4675 grep -v '^ *+' conftest.er1 >conftest.err
4676 rm -f conftest.er1
4677 cat conftest.err >&5
ec6a6fbe 4678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4679 (exit $ac_status); } && {
4680 test -z "$ac_c_werror_flag" ||
4681 test ! -s conftest.err
4682 } && test -s conftest.$ac_objext; then
4683 eval "$as_ac_Header=yes"
4684else
ec6a6fbe 4685 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4686sed 's/^/| /' conftest.$ac_ext >&5
4687
4688 eval "$as_ac_Header=no"
4689fi
4690
4691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692fi
ec6a6fbe
AK
4693ac_res=`eval 'as_val=${'$as_ac_Header'}
4694 $as_echo "$as_val"'`
4695 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4696$as_echo "$ac_res" >&6; }
4697as_val=`eval 'as_val=${'$as_ac_Header'}
4698 $as_echo "$as_val"'`
4699 if test "x$as_val" = x""yes; then
d0191583 4700 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4701#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d0191583
JM
4702_ACEOF
4703
4704fi
4705
4706done
4707
b896caa1 4708
b896caa1
AK
4709
4710
795ca3e5 4711
8106cdd5 4712
80992638 4713
795ca3e5 4714
a38df97f 4715
80992638 4716
d0191583
JM
4717
4718
4719
4720
4721
4722for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4723 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
ad6254c5 4724do
ec6a6fbe 4725as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0191583 4726if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4727 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4728$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4729if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4730 $as_echo_n "(cached) " >&6
d0191583 4731fi
ec6a6fbe
AK
4732ac_res=`eval 'as_val=${'$as_ac_Header'}
4733 $as_echo "$as_val"'`
4734 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4735$as_echo "$ac_res" >&6; }
ad6254c5 4736else
d0191583 4737 # Is the header compilable?
ec6a6fbe
AK
4738{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4739$as_echo_n "checking $ac_header usability... " >&6; }
d0191583 4740cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4741/* confdefs.h. */
4742_ACEOF
4743cat confdefs.h >>conftest.$ac_ext
4744cat >>conftest.$ac_ext <<_ACEOF
4745/* end confdefs.h. */
4746$ac_includes_default
ad6254c5
AK
4747#include <$ac_header>
4748_ACEOF
4749rm -f conftest.$ac_objext
7a197a62
AK
4750if { (ac_try="$ac_compile"
4751case "(($ac_try" in
4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4754esac
ec6a6fbe
AK
4755eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4756$as_echo "$ac_try_echo") >&5
7a197a62 4757 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4758 ac_status=$?
8a2fc586
AK
4759 grep -v '^ *+' conftest.er1 >conftest.err
4760 rm -f conftest.er1
4761 cat conftest.err >&5
ec6a6fbe 4762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4763 (exit $ac_status); } && {
4764 test -z "$ac_c_werror_flag" ||
4765 test ! -s conftest.err
4766 } && test -s conftest.$ac_objext; then
d0191583 4767 ac_header_compiler=yes
ad6254c5 4768else
ec6a6fbe 4769 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4770sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4771
d0191583 4772 ac_header_compiler=no
ad6254c5 4773fi
7a197a62
AK
4774
4775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4776{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4777$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4778
4779# Is the header present?
ec6a6fbe
AK
4780{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4781$as_echo_n "checking $ac_header presence... " >&6; }
d0191583
JM
4782cat >conftest.$ac_ext <<_ACEOF
4783/* confdefs.h. */
4784_ACEOF
4785cat confdefs.h >>conftest.$ac_ext
4786cat >>conftest.$ac_ext <<_ACEOF
4787/* end confdefs.h. */
4788#include <$ac_header>
4789_ACEOF
4790if { (ac_try="$ac_cpp conftest.$ac_ext"
4791case "(($ac_try" in
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4794esac
ec6a6fbe
AK
4795eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4796$as_echo "$ac_try_echo") >&5
d0191583
JM
4797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4798 ac_status=$?
4799 grep -v '^ *+' conftest.er1 >conftest.err
4800 rm -f conftest.er1
4801 cat conftest.err >&5
ec6a6fbe 4802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4803 (exit $ac_status); } >/dev/null && {
4804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4805 test ! -s conftest.err
4806 }; then
4807 ac_header_preproc=yes
4808else
ec6a6fbe 4809 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4810sed 's/^/| /' conftest.$ac_ext >&5
4811
4812 ac_header_preproc=no
4813fi
4814
4815rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4816{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4817$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4818
4819# So? What about this header?
4820case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4821 yes:no: )
ec6a6fbe
AK
4822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4823$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4824 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4825$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d0191583
JM
4826 ac_header_preproc=yes
4827 ;;
4828 no:yes:* )
ec6a6fbe
AK
4829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4830$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4832$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4834$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4836$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4838$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4840$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4841
4842 ;;
4843esac
ec6a6fbe
AK
4844{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4845$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4846if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4847 $as_echo_n "(cached) " >&6
d0191583
JM
4848else
4849 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4850fi
ec6a6fbe
AK
4851ac_res=`eval 'as_val=${'$as_ac_Header'}
4852 $as_echo "$as_val"'`
4853 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4854$as_echo "$ac_res" >&6; }
d0191583
JM
4855
4856fi
ec6a6fbe
AK
4857as_val=`eval 'as_val=${'$as_ac_Header'}
4858 $as_echo "$as_val"'`
4859 if test "x$as_val" = x""yes; then
ad6254c5 4860 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4861#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4862_ACEOF
a38df97f 4863
d0191583 4864else
ec6a6fbe
AK
4865 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4866$as_echo "$as_me: error: bailing out" >&2;}
d0191583 4867 { (exit 1); exit 1; }; }
80992638
AK
4868fi
4869
ad6254c5
AK
4870done
4871
7d1552c9 4872
d0191583
JM
4873case "$host_os" in
4874 linux*)
7d1552c9 4875
80992638 4876
5a52dca9 4877
d0191583 4878for ac_header in asm/byteorder.h linux/fs.h malloc.h
ad6254c5 4879do
ec6a6fbe 4880as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4881if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4882 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4883$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4884if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4885 $as_echo_n "(cached) " >&6
ad6254c5 4886fi
ec6a6fbe
AK
4887ac_res=`eval 'as_val=${'$as_ac_Header'}
4888 $as_echo "$as_val"'`
4889 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4890$as_echo "$ac_res" >&6; }
ad6254c5
AK
4891else
4892 # Is the header compilable?
ec6a6fbe
AK
4893{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4894$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4895cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4896/* confdefs.h. */
4897_ACEOF
4898cat confdefs.h >>conftest.$ac_ext
4899cat >>conftest.$ac_ext <<_ACEOF
4900/* end confdefs.h. */
4901$ac_includes_default
4902#include <$ac_header>
4903_ACEOF
4904rm -f conftest.$ac_objext
7a197a62
AK
4905if { (ac_try="$ac_compile"
4906case "(($ac_try" in
4907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4908 *) ac_try_echo=$ac_try;;
4909esac
ec6a6fbe
AK
4910eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4911$as_echo "$ac_try_echo") >&5
7a197a62 4912 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4913 ac_status=$?
8a2fc586
AK
4914 grep -v '^ *+' conftest.er1 >conftest.err
4915 rm -f conftest.er1
4916 cat conftest.err >&5
ec6a6fbe 4917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4918 (exit $ac_status); } && {
4919 test -z "$ac_c_werror_flag" ||
4920 test ! -s conftest.err
4921 } && test -s conftest.$ac_objext; then
fc54be10
AK
4922 ac_header_compiler=yes
4923else
ec6a6fbe 4924 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4925sed 's/^/| /' conftest.$ac_ext >&5
4926
4927 ac_header_compiler=no
4928fi
4929
4930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4931{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4932$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4933
4934# Is the header present?
ec6a6fbe
AK
4935{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4936$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 4937cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4938/* confdefs.h. */
4939_ACEOF
4940cat confdefs.h >>conftest.$ac_ext
4941cat >>conftest.$ac_ext <<_ACEOF
4942/* end confdefs.h. */
4943#include <$ac_header>
4944_ACEOF
7a197a62
AK
4945if { (ac_try="$ac_cpp conftest.$ac_ext"
4946case "(($ac_try" in
4947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948 *) ac_try_echo=$ac_try;;
4949esac
ec6a6fbe
AK
4950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4951$as_echo "$ac_try_echo") >&5
7a197a62 4952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4953 ac_status=$?
4954 grep -v '^ *+' conftest.er1 >conftest.err
4955 rm -f conftest.er1
4956 cat conftest.err >&5
ec6a6fbe 4957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4958 (exit $ac_status); } >/dev/null && {
4959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4960 test ! -s conftest.err
4961 }; then
ad6254c5
AK
4962 ac_header_preproc=yes
4963else
ec6a6fbe 4964 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4965sed 's/^/| /' conftest.$ac_ext >&5
4966
4967 ac_header_preproc=no
4968fi
7a197a62 4969
ad6254c5 4970rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4971{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4972$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4973
4974# So? What about this header?
8a2fc586
AK
4975case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4976 yes:no: )
ec6a6fbe
AK
4977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4978$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4979 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4980$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4981 ac_header_preproc=yes
ad6254c5 4982 ;;
8a2fc586 4983 no:yes:* )
ec6a6fbe
AK
4984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4985$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4986 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4987$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4988 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4989$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4991$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4993$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4995$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4996
ad6254c5
AK
4997 ;;
4998esac
ec6a6fbe
AK
4999{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5000$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5001if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5002 $as_echo_n "(cached) " >&6
ad6254c5 5003else
8a2fc586 5004 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5005fi
ec6a6fbe
AK
5006ac_res=`eval 'as_val=${'$as_ac_Header'}
5007 $as_echo "$as_val"'`
5008 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5009$as_echo "$ac_res" >&6; }
ad6254c5
AK
5010
5011fi
ec6a6fbe
AK
5012as_val=`eval 'as_val=${'$as_ac_Header'}
5013 $as_echo "$as_val"'`
5014 if test "x$as_val" = x""yes; then
ad6254c5 5015 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5016#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5017_ACEOF
b896caa1 5018
d8ac0fbc 5019else
ec6a6fbe
AK
5020 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5021$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5022 { (exit 1); exit 1; }; }
80992638
AK
5023fi
5024
ad6254c5 5025done
d0191583
JM
5026 ;;
5027 darwin*)
d8ac0fbc 5028
d8ac0fbc 5029
d0191583 5030for ac_header in machine/endian.h sys/disk.h
ad6254c5 5031do
ec6a6fbe 5032as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5033if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5034 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5035$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5036if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5037 $as_echo_n "(cached) " >&6
ad6254c5 5038fi
ec6a6fbe
AK
5039ac_res=`eval 'as_val=${'$as_ac_Header'}
5040 $as_echo "$as_val"'`
5041 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5042$as_echo "$ac_res" >&6; }
ad6254c5
AK
5043else
5044 # Is the header compilable?
ec6a6fbe
AK
5045{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5046$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5047cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5048/* confdefs.h. */
5049_ACEOF
5050cat confdefs.h >>conftest.$ac_ext
5051cat >>conftest.$ac_ext <<_ACEOF
5052/* end confdefs.h. */
5053$ac_includes_default
5054#include <$ac_header>
5055_ACEOF
5056rm -f conftest.$ac_objext
7a197a62
AK
5057if { (ac_try="$ac_compile"
5058case "(($ac_try" in
5059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5060 *) ac_try_echo=$ac_try;;
5061esac
ec6a6fbe
AK
5062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5063$as_echo "$ac_try_echo") >&5
7a197a62 5064 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5065 ac_status=$?
8a2fc586
AK
5066 grep -v '^ *+' conftest.er1 >conftest.err
5067 rm -f conftest.er1
5068 cat conftest.err >&5
ec6a6fbe 5069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5070 (exit $ac_status); } && {
5071 test -z "$ac_c_werror_flag" ||
5072 test ! -s conftest.err
5073 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5074 ac_header_compiler=yes
5075else
ec6a6fbe 5076 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5077sed 's/^/| /' conftest.$ac_ext >&5
5078
7a197a62 5079 ac_header_compiler=no
ad6254c5 5080fi
7a197a62
AK
5081
5082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5083{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5084$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5085
5086# Is the header present?
ec6a6fbe
AK
5087{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5088$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5089cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5090/* confdefs.h. */
5091_ACEOF
5092cat confdefs.h >>conftest.$ac_ext
5093cat >>conftest.$ac_ext <<_ACEOF
5094/* end confdefs.h. */
5095#include <$ac_header>
5096_ACEOF
7a197a62
AK
5097if { (ac_try="$ac_cpp conftest.$ac_ext"
5098case "(($ac_try" in
5099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100 *) ac_try_echo=$ac_try;;
5101esac
ec6a6fbe
AK
5102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5103$as_echo "$ac_try_echo") >&5
7a197a62 5104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5105 ac_status=$?
5106 grep -v '^ *+' conftest.er1 >conftest.err
5107 rm -f conftest.er1
5108 cat conftest.err >&5
ec6a6fbe 5109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5110 (exit $ac_status); } >/dev/null && {
5111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5112 test ! -s conftest.err
5113 }; then
ad6254c5
AK
5114 ac_header_preproc=yes
5115else
ec6a6fbe 5116 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5117sed 's/^/| /' conftest.$ac_ext >&5
5118
5119 ac_header_preproc=no
5120fi
7a197a62 5121
ad6254c5 5122rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5123{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5124$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5125
5126# So? What about this header?
8a2fc586
AK
5127case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5128 yes:no: )
ec6a6fbe
AK
5129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5130$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5132$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5133 ac_header_preproc=yes
ad6254c5 5134 ;;
8a2fc586 5135 no:yes:* )
ec6a6fbe
AK
5136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5137$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5139$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5141$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5143$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5145$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5147$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5148
ad6254c5
AK
5149 ;;
5150esac
ec6a6fbe
AK
5151{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5152$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5153if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5154 $as_echo_n "(cached) " >&6
ad6254c5 5155else
8a2fc586 5156 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 5157fi
ec6a6fbe
AK
5158ac_res=`eval 'as_val=${'$as_ac_Header'}
5159 $as_echo "$as_val"'`
5160 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5161$as_echo "$ac_res" >&6; }
ad6254c5
AK
5162
5163fi
ec6a6fbe
AK
5164as_val=`eval 'as_val=${'$as_ac_Header'}
5165 $as_echo "$as_val"'`
5166 if test "x$as_val" = x""yes; then
ad6254c5 5167 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5168#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5169_ACEOF
4922197a 5170
4922197a 5171else
ec6a6fbe
AK
5172 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5173$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5174 { (exit 1); exit 1; }; }
80992638
AK
5175fi
5176
ad6254c5 5177done
d0191583
JM
5178 ;;
5179esac
4922197a 5180
4922197a 5181
4922197a 5182
ad6254c5
AK
5183
5184
d0191583
JM
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5198 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5199 sys/types.h unistd.h
ad6254c5 5200do
ec6a6fbe 5201as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5202if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5203 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5204$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5205if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5206 $as_echo_n "(cached) " >&6
ad6254c5 5207fi
ec6a6fbe
AK
5208ac_res=`eval 'as_val=${'$as_ac_Header'}
5209 $as_echo "$as_val"'`
5210 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5211$as_echo "$ac_res" >&6; }
795ca3e5 5212else
ad6254c5 5213 # Is the header compilable?
ec6a6fbe
AK
5214{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5215$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5216cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5217/* confdefs.h. */
5218_ACEOF
5219cat confdefs.h >>conftest.$ac_ext
5220cat >>conftest.$ac_ext <<_ACEOF
5221/* end confdefs.h. */
5222$ac_includes_default
5223#include <$ac_header>
5224_ACEOF
5225rm -f conftest.$ac_objext
7a197a62
AK
5226if { (ac_try="$ac_compile"
5227case "(($ac_try" in
5228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5229 *) ac_try_echo=$ac_try;;
5230esac
ec6a6fbe
AK
5231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5232$as_echo "$ac_try_echo") >&5
7a197a62 5233 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5234 ac_status=$?
8a2fc586
AK
5235 grep -v '^ *+' conftest.er1 >conftest.err
5236 rm -f conftest.er1
5237 cat conftest.err >&5
ec6a6fbe 5238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5239 (exit $ac_status); } && {
5240 test -z "$ac_c_werror_flag" ||
5241 test ! -s conftest.err
5242 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5243 ac_header_compiler=yes
5244else
ec6a6fbe 5245 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5246sed 's/^/| /' conftest.$ac_ext >&5
5247
7a197a62 5248 ac_header_compiler=no
ad6254c5 5249fi
7a197a62
AK
5250
5251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5252{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5253$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5254
5255# Is the header present?
ec6a6fbe
AK
5256{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5257$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5258cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5259/* confdefs.h. */
5260_ACEOF
5261cat confdefs.h >>conftest.$ac_ext
5262cat >>conftest.$ac_ext <<_ACEOF
5263/* end confdefs.h. */
5264#include <$ac_header>
5265_ACEOF
7a197a62
AK
5266if { (ac_try="$ac_cpp conftest.$ac_ext"
5267case "(($ac_try" in
5268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269 *) ac_try_echo=$ac_try;;
5270esac
ec6a6fbe
AK
5271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5272$as_echo "$ac_try_echo") >&5
7a197a62 5273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5274 ac_status=$?
5275 grep -v '^ *+' conftest.er1 >conftest.err
5276 rm -f conftest.er1
5277 cat conftest.err >&5
ec6a6fbe 5278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5279 (exit $ac_status); } >/dev/null && {
5280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5281 test ! -s conftest.err
5282 }; then
ad6254c5
AK
5283 ac_header_preproc=yes
5284else
ec6a6fbe 5285 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5286sed 's/^/| /' conftest.$ac_ext >&5
5287
5288 ac_header_preproc=no
5289fi
7a197a62 5290
ad6254c5 5291rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5292{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5293$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5294
5295# So? What about this header?
8a2fc586
AK
5296case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5297 yes:no: )
ec6a6fbe
AK
5298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5299$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5301$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5302 ac_header_preproc=yes
ad6254c5 5303 ;;
8a2fc586 5304 no:yes:* )
ec6a6fbe
AK
5305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5306$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5308$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5310$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5312$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5314$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5316$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5317
ad6254c5
AK
5318 ;;
5319esac
ec6a6fbe
AK
5320{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5321$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5322if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5323 $as_echo_n "(cached) " >&6
ad6254c5 5324else
8a2fc586 5325 eval "$as_ac_Header=\$ac_header_preproc"
80992638 5326fi
ec6a6fbe
AK
5327ac_res=`eval 'as_val=${'$as_ac_Header'}
5328 $as_echo "$as_val"'`
5329 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5330$as_echo "$ac_res" >&6; }
80992638 5331
ad6254c5 5332fi
ec6a6fbe
AK
5333as_val=`eval 'as_val=${'$as_ac_Header'}
5334 $as_echo "$as_val"'`
5335 if test "x$as_val" = x""yes; then
ad6254c5 5336 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5337#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5338_ACEOF
795ca3e5 5339
795ca3e5 5340else
ec6a6fbe
AK
5341 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5342$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5343 { (exit 1); exit 1; }; }
80992638
AK
5344fi
5345
ad6254c5 5346done
ad6254c5 5347
795ca3e5 5348
d0191583
JM
5349
5350for ac_header in termios.h sys/statvfs.h
ad6254c5 5351do
ec6a6fbe 5352as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5354 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5355$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5357 $as_echo_n "(cached) " >&6
ad6254c5 5358fi
ec6a6fbe
AK
5359ac_res=`eval 'as_val=${'$as_ac_Header'}
5360 $as_echo "$as_val"'`
5361 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5362$as_echo "$ac_res" >&6; }
ad6254c5
AK
5363else
5364 # Is the header compilable?
ec6a6fbe
AK
5365{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5366$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5367cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5368/* confdefs.h. */
5369_ACEOF
5370cat confdefs.h >>conftest.$ac_ext
5371cat >>conftest.$ac_ext <<_ACEOF
5372/* end confdefs.h. */
5373$ac_includes_default
5374#include <$ac_header>
5375_ACEOF
5376rm -f conftest.$ac_objext
7a197a62
AK
5377if { (ac_try="$ac_compile"
5378case "(($ac_try" in
5379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380 *) ac_try_echo=$ac_try;;
5381esac
ec6a6fbe
AK
5382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5383$as_echo "$ac_try_echo") >&5
7a197a62 5384 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5385 ac_status=$?
8a2fc586
AK
5386 grep -v '^ *+' conftest.er1 >conftest.err
5387 rm -f conftest.er1
5388 cat conftest.err >&5
ec6a6fbe 5389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5390 (exit $ac_status); } && {
5391 test -z "$ac_c_werror_flag" ||
5392 test ! -s conftest.err
5393 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5394 ac_header_compiler=yes
5395else
ec6a6fbe 5396 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5397sed 's/^/| /' conftest.$ac_ext >&5
5398
7a197a62 5399 ac_header_compiler=no
ad6254c5 5400fi
7a197a62
AK
5401
5402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5403{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5404$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5405
5406# Is the header present?
ec6a6fbe
AK
5407{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5408$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5409cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5410/* confdefs.h. */
5411_ACEOF
5412cat confdefs.h >>conftest.$ac_ext
5413cat >>conftest.$ac_ext <<_ACEOF
5414/* end confdefs.h. */
5415#include <$ac_header>
5416_ACEOF
7a197a62
AK
5417if { (ac_try="$ac_cpp conftest.$ac_ext"
5418case "(($ac_try" in
5419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5420 *) ac_try_echo=$ac_try;;
5421esac
ec6a6fbe
AK
5422eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5423$as_echo "$ac_try_echo") >&5
7a197a62 5424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5425 ac_status=$?
5426 grep -v '^ *+' conftest.er1 >conftest.err
5427 rm -f conftest.er1
5428 cat conftest.err >&5
ec6a6fbe 5429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5430 (exit $ac_status); } >/dev/null && {
5431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5432 test ! -s conftest.err
5433 }; then
ad6254c5
AK
5434 ac_header_preproc=yes
5435else
ec6a6fbe 5436 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5437sed 's/^/| /' conftest.$ac_ext >&5
5438
5439 ac_header_preproc=no
5440fi
7a197a62 5441
ad6254c5 5442rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5443{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5444$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5445
5446# So? What about this header?
8a2fc586
AK
5447case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5448 yes:no: )
ec6a6fbe
AK
5449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5450$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5452$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5453 ac_header_preproc=yes
ad6254c5 5454 ;;
8a2fc586 5455 no:yes:* )
ec6a6fbe
AK
5456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5457$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5459$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5461$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5463$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5465$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5467$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5468
ad6254c5
AK
5469 ;;
5470esac
ec6a6fbe
AK
5471{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5472$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5473if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5474 $as_echo_n "(cached) " >&6
ad6254c5 5475else
8a2fc586 5476 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5477fi
ec6a6fbe
AK
5478ac_res=`eval 'as_val=${'$as_ac_Header'}
5479 $as_echo "$as_val"'`
5480 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5481$as_echo "$ac_res" >&6; }
b896caa1 5482
ad6254c5 5483fi
ec6a6fbe
AK
5484as_val=`eval 'as_val=${'$as_ac_Header'}
5485 $as_echo "$as_val"'`
5486 if test "x$as_val" = x""yes; then
ad6254c5 5487 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5488#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5489_ACEOF
5490
80992638
AK
5491fi
5492
ad6254c5 5493done
d0191583 5494
d3c8211f 5495
80992638 5496################################################################################
ec6a6fbe
AK
5497{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5498$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
ad6254c5 5499if test "${ac_cv_c_const+set}" = set; then
ec6a6fbe 5500 $as_echo_n "(cached) " >&6
d3c8211f 5501else
ad6254c5 5502 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5503/* confdefs.h. */
5504_ACEOF
5505cat confdefs.h >>conftest.$ac_ext
5506cat >>conftest.$ac_ext <<_ACEOF
5507/* end confdefs.h. */
5508
5509int
5510main ()
5511{
5512/* FIXME: Include the comments suggested by Paul. */
5513#ifndef __cplusplus
5514 /* Ultrix mips cc rejects this. */
5515 typedef int charset[2];
25fbec5b 5516 const charset cs;
ad6254c5 5517 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
5518 char const *const *pcpcc;
5519 char **ppc;
ad6254c5
AK
5520 /* NEC SVR4.0.2 mips cc rejects this. */
5521 struct point {int x, y;};
5522 static struct point const zero = {0,0};
5523 /* AIX XL C 1.02.0.0 rejects this.
5524 It does not let you subtract one const X* pointer from another in
5525 an arm of an if-expression whose if-part is not a constant
5526 expression */
5527 const char *g = "string";
25fbec5b 5528 pcpcc = &g + (g ? g-g : 0);
ad6254c5 5529 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
5530 ++pcpcc;
5531 ppc = (char**) pcpcc;
5532 pcpcc = (char const *const *) ppc;
ad6254c5
AK
5533 { /* SCO 3.2v4 cc rejects this. */
5534 char *t;
5535 char const *s = 0 ? (char *) 0 : (char const *) 0;
5536
5537 *t++ = 0;
7a197a62 5538 if (s) return 0;
ad6254c5
AK
5539 }
5540 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5541 int x[] = {25, 17};
5542 const int *foo = &x[0];
5543 ++foo;
5544 }
5545 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5546 typedef const int *iptr;
5547 iptr p = 0;
5548 ++p;
5549 }
5550 { /* AIX XL C 1.02.0.0 rejects this saying
5551 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5552 struct s { int j; const int *ap[3]; };
5553 struct s *b; b->j = 5;
5554 }
5555 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5556 const int foo = 10;
7a197a62 5557 if (!foo) return 0;
ad6254c5 5558 }
25fbec5b 5559 return !cs[0] && !zero.x;
ad6254c5
AK
5560#endif
5561
5562 ;
5563 return 0;
5564}
5565_ACEOF
5566rm -f conftest.$ac_objext
7a197a62
AK
5567if { (ac_try="$ac_compile"
5568case "(($ac_try" in
5569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570 *) ac_try_echo=$ac_try;;
5571esac
ec6a6fbe
AK
5572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5573$as_echo "$ac_try_echo") >&5
7a197a62 5574 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5575 ac_status=$?
8a2fc586
AK
5576 grep -v '^ *+' conftest.er1 >conftest.err
5577 rm -f conftest.er1
5578 cat conftest.err >&5
ec6a6fbe 5579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5580 (exit $ac_status); } && {
5581 test -z "$ac_c_werror_flag" ||
5582 test ! -s conftest.err
5583 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5584 ac_cv_c_const=yes
5585else
ec6a6fbe 5586 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5587sed 's/^/| /' conftest.$ac_ext >&5
5588
7a197a62 5589 ac_cv_c_const=no
ad6254c5 5590fi
7a197a62
AK
5591
5592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5593fi
ec6a6fbe
AK
5594{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5595$as_echo "$ac_cv_c_const" >&6; }
ad6254c5 5596if test $ac_cv_c_const = no; then
80992638 5597
ad6254c5 5598cat >>confdefs.h <<\_ACEOF
ec6a6fbe 5599#define const /**/
ad6254c5 5600_ACEOF
80992638 5601
d3c8211f 5602fi
d3c8211f 5603
ec6a6fbe
AK
5604{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5605$as_echo_n "checking for inline... " >&6; }
ad6254c5 5606if test "${ac_cv_c_inline+set}" = set; then
ec6a6fbe 5607 $as_echo_n "(cached) " >&6
8ef2b021 5608else
ad6254c5
AK
5609 ac_cv_c_inline=no
5610for ac_kw in inline __inline__ __inline; do
5611 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5612/* confdefs.h. */
5613_ACEOF
5614cat confdefs.h >>conftest.$ac_ext
5615cat >>conftest.$ac_ext <<_ACEOF
5616/* end confdefs.h. */
5617#ifndef __cplusplus
5618typedef int foo_t;
5619static $ac_kw foo_t static_foo () {return 0; }
5620$ac_kw foo_t foo () {return 0; }
5621#endif
80992638 5622
ad6254c5
AK
5623_ACEOF
5624rm -f conftest.$ac_objext
7a197a62
AK
5625if { (ac_try="$ac_compile"
5626case "(($ac_try" in
5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5629esac
ec6a6fbe
AK
5630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5631$as_echo "$ac_try_echo") >&5
7a197a62 5632 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5633 ac_status=$?
8a2fc586
AK
5634 grep -v '^ *+' conftest.er1 >conftest.err
5635 rm -f conftest.er1
5636 cat conftest.err >&5
ec6a6fbe 5637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5638 (exit $ac_status); } && {
5639 test -z "$ac_c_werror_flag" ||
5640 test ! -s conftest.err
5641 } && test -s conftest.$ac_objext; then
7a197a62 5642 ac_cv_c_inline=$ac_kw
ad6254c5 5643else
ec6a6fbe 5644 $as_echo "$as_me: failed program was:" >&5
ad6254c5 5645sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5646
7a197a62 5647
8ce0cbda 5648fi
7a197a62
AK
5649
5650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651 test "$ac_cv_c_inline" != no && break
ad6254c5 5652done
8ce0cbda 5653
8ce0cbda 5654fi
ec6a6fbe
AK
5655{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5656$as_echo "$ac_cv_c_inline" >&6; }
8a2fc586
AK
5657
5658
ad6254c5
AK
5659case $ac_cv_c_inline in
5660 inline | yes) ;;
8a2fc586
AK
5661 *)
5662 case $ac_cv_c_inline in
5663 no) ac_val=;;
5664 *) ac_val=$ac_cv_c_inline;;
5665 esac
5666 cat >>confdefs.h <<_ACEOF
5667#ifndef __cplusplus
5668#define inline $ac_val
5669#endif
c1c065a3 5670_ACEOF
d0191583
JM
5671 ;;
5672esac
5673
ec6a6fbe
AK
5674{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5675$as_echo_n "checking for struct stat.st_rdev... " >&6; }
d0191583 5676if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 5677 $as_echo_n "(cached) " >&6
d0191583
JM
5678else
5679 cat >conftest.$ac_ext <<_ACEOF
5680/* confdefs.h. */
5681_ACEOF
5682cat confdefs.h >>conftest.$ac_ext
5683cat >>conftest.$ac_ext <<_ACEOF
5684/* end confdefs.h. */
5685$ac_includes_default
5686int
5687main ()
5688{
5689static struct stat ac_aggr;
5690if (ac_aggr.st_rdev)
5691return 0;
5692 ;
5693 return 0;
5694}
5695_ACEOF
5696rm -f conftest.$ac_objext
5697if { (ac_try="$ac_compile"
5698case "(($ac_try" in
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5701esac
ec6a6fbe
AK
5702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5703$as_echo "$ac_try_echo") >&5
5704 (eval "$ac_compile") 2>conftest.er1
5705 ac_status=$?
5706 grep -v '^ *+' conftest.er1 >conftest.err
5707 rm -f conftest.er1
5708 cat conftest.err >&5
5709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } && {
5711 test -z "$ac_c_werror_flag" ||
5712 test ! -s conftest.err
5713 } && test -s conftest.$ac_objext; then
5714 ac_cv_member_struct_stat_st_rdev=yes
5715else
5716 $as_echo "$as_me: failed program was:" >&5
5717sed 's/^/| /' conftest.$ac_ext >&5
5718
5719 cat >conftest.$ac_ext <<_ACEOF
5720/* confdefs.h. */
5721_ACEOF
5722cat confdefs.h >>conftest.$ac_ext
5723cat >>conftest.$ac_ext <<_ACEOF
5724/* end confdefs.h. */
5725$ac_includes_default
5726int
5727main ()
5728{
5729static struct stat ac_aggr;
5730if (sizeof ac_aggr.st_rdev)
5731return 0;
5732 ;
5733 return 0;
5734}
5735_ACEOF
5736rm -f conftest.$ac_objext
5737if { (ac_try="$ac_compile"
5738case "(($ac_try" in
5739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740 *) ac_try_echo=$ac_try;;
5741esac
5742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5743$as_echo "$ac_try_echo") >&5
5744 (eval "$ac_compile") 2>conftest.er1
5745 ac_status=$?
5746 grep -v '^ *+' conftest.er1 >conftest.err
5747 rm -f conftest.er1
5748 cat conftest.err >&5
5749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } && {
5751 test -z "$ac_c_werror_flag" ||
5752 test ! -s conftest.err
5753 } && test -s conftest.$ac_objext; then
5754 ac_cv_member_struct_stat_st_rdev=yes
5755else
5756 $as_echo "$as_me: failed program was:" >&5
5757sed 's/^/| /' conftest.$ac_ext >&5
5758
5759 ac_cv_member_struct_stat_st_rdev=no
5760fi
5761
5762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5763fi
5764
5765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766fi
5767{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5768$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5769if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5770
5771cat >>confdefs.h <<_ACEOF
5772#define HAVE_STRUCT_STAT_ST_RDEV 1
5773_ACEOF
5774
5775
5776fi
5777
5778{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
5779$as_echo_n "checking for off_t... " >&6; }
5780if test "${ac_cv_type_off_t+set}" = set; then
5781 $as_echo_n "(cached) " >&6
5782else
5783 ac_cv_type_off_t=no
5784cat >conftest.$ac_ext <<_ACEOF
5785/* confdefs.h. */
5786_ACEOF
5787cat confdefs.h >>conftest.$ac_ext
5788cat >>conftest.$ac_ext <<_ACEOF
5789/* end confdefs.h. */
5790$ac_includes_default
5791int
5792main ()
5793{
5794if (sizeof (off_t))
5795 return 0;
5796 ;
5797 return 0;
5798}
5799_ACEOF
5800rm -f conftest.$ac_objext
5801if { (ac_try="$ac_compile"
5802case "(($ac_try" in
5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5805esac
5806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5807$as_echo "$ac_try_echo") >&5
5808 (eval "$ac_compile") 2>conftest.er1
5809 ac_status=$?
5810 grep -v '^ *+' conftest.er1 >conftest.err
5811 rm -f conftest.er1
5812 cat conftest.err >&5
5813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } && {
5815 test -z "$ac_c_werror_flag" ||
5816 test ! -s conftest.err
5817 } && test -s conftest.$ac_objext; then
5818 cat >conftest.$ac_ext <<_ACEOF
5819/* confdefs.h. */
5820_ACEOF
5821cat confdefs.h >>conftest.$ac_ext
5822cat >>conftest.$ac_ext <<_ACEOF
5823/* end confdefs.h. */
5824$ac_includes_default
5825int
5826main ()
5827{
5828if (sizeof ((off_t)))
5829 return 0;
5830 ;
5831 return 0;
5832}
5833_ACEOF
5834rm -f conftest.$ac_objext
5835if { (ac_try="$ac_compile"
5836case "(($ac_try" in
5837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5838 *) ac_try_echo=$ac_try;;
5839esac
5840eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5841$as_echo "$ac_try_echo") >&5
5842 (eval "$ac_compile") 2>conftest.er1
5843 ac_status=$?
5844 grep -v '^ *+' conftest.er1 >conftest.err
5845 rm -f conftest.er1
5846 cat conftest.err >&5
5847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } && {
5849 test -z "$ac_c_werror_flag" ||
5850 test ! -s conftest.err
5851 } && test -s conftest.$ac_objext; then
5852 :
5853else
5854 $as_echo "$as_me: failed program was:" >&5
5855sed 's/^/| /' conftest.$ac_ext >&5
5856
5857 ac_cv_type_off_t=yes
5858fi
5859
5860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861else
5862 $as_echo "$as_me: failed program was:" >&5
5863sed 's/^/| /' conftest.$ac_ext >&5
5864
5865
5866fi
5867
5868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5869fi
5870{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5871$as_echo "$ac_cv_type_off_t" >&6; }
5872if test "x$ac_cv_type_off_t" = x""yes; then
5873 :
5874else
5875
5876cat >>confdefs.h <<_ACEOF
5877#define off_t long int
5878_ACEOF
5879
5880fi
5881
5882{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5883$as_echo_n "checking for pid_t... " >&6; }
5884if test "${ac_cv_type_pid_t+set}" = set; then
5885 $as_echo_n "(cached) " >&6
5886else
5887 ac_cv_type_pid_t=no
5888cat >conftest.$ac_ext <<_ACEOF
5889/* confdefs.h. */
5890_ACEOF
5891cat confdefs.h >>conftest.$ac_ext
5892cat >>conftest.$ac_ext <<_ACEOF
5893/* end confdefs.h. */
5894$ac_includes_default
5895int
5896main ()
5897{
5898if (sizeof (pid_t))
5899 return 0;
5900 ;
5901 return 0;
5902}
5903_ACEOF
5904rm -f conftest.$ac_objext
5905if { (ac_try="$ac_compile"
5906case "(($ac_try" in
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5909esac
5910eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5911$as_echo "$ac_try_echo") >&5
d0191583
JM
5912 (eval "$ac_compile") 2>conftest.er1
5913 ac_status=$?
5914 grep -v '^ *+' conftest.er1 >conftest.err
5915 rm -f conftest.er1
5916 cat conftest.err >&5
ec6a6fbe 5917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5918 (exit $ac_status); } && {
5919 test -z "$ac_c_werror_flag" ||
5920 test ! -s conftest.err
5921 } && test -s conftest.$ac_objext; then
ec6a6fbe 5922 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
5923/* confdefs.h. */
5924_ACEOF
5925cat confdefs.h >>conftest.$ac_ext
5926cat >>conftest.$ac_ext <<_ACEOF
5927/* end confdefs.h. */
5928$ac_includes_default
5929int
5930main ()
5931{
ec6a6fbe
AK
5932if (sizeof ((pid_t)))
5933 return 0;
d0191583
JM
5934 ;
5935 return 0;
5936}
5937_ACEOF
5938rm -f conftest.$ac_objext
5939if { (ac_try="$ac_compile"
5940case "(($ac_try" in
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5943esac
ec6a6fbe
AK
5944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5945$as_echo "$ac_try_echo") >&5
d0191583
JM
5946 (eval "$ac_compile") 2>conftest.er1
5947 ac_status=$?
5948 grep -v '^ *+' conftest.er1 >conftest.err
5949 rm -f conftest.er1
5950 cat conftest.err >&5
ec6a6fbe 5951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5952 (exit $ac_status); } && {
5953 test -z "$ac_c_werror_flag" ||
5954 test ! -s conftest.err
5955 } && test -s conftest.$ac_objext; then
ec6a6fbe 5956 :
d0191583 5957else
ec6a6fbe 5958 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
5959sed 's/^/| /' conftest.$ac_ext >&5
5960
ec6a6fbe 5961 ac_cv_type_pid_t=yes
d0191583
JM
5962fi
5963
5964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5965else
5966 $as_echo "$as_me: failed program was:" >&5
5967sed 's/^/| /' conftest.$ac_ext >&5
5968
5969
d0191583
JM
5970fi
5971
5972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973fi
ec6a6fbe
AK
5974{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5975$as_echo "$ac_cv_type_pid_t" >&6; }
5976if test "x$ac_cv_type_pid_t" = x""yes; then
5977 :
5978else
d0191583
JM
5979
5980cat >>confdefs.h <<_ACEOF
ec6a6fbe 5981#define pid_t int
d0191583
JM
5982_ACEOF
5983
d0191583 5984fi
8ce0cbda 5985
ec6a6fbe
AK
5986{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5987$as_echo_n "checking return type of signal handlers... " >&6; }
5988if test "${ac_cv_type_signal+set}" = set; then
5989 $as_echo_n "(cached) " >&6
ad6254c5 5990else
b145d876
ZK
5991 cat >conftest.$ac_ext <<_ACEOF
5992/* confdefs.h. */
5993_ACEOF
5994cat confdefs.h >>conftest.$ac_ext
5995cat >>conftest.$ac_ext <<_ACEOF
5996/* end confdefs.h. */
ec6a6fbe
AK
5997#include <sys/types.h>
5998#include <signal.h>
5999
b145d876
ZK
6000int
6001main ()
6002{
ec6a6fbe 6003return *(signal (0, 0)) (0) == 1;
ad6254c5
AK
6004 ;
6005 return 0;
6006}
6007_ACEOF
6008rm -f conftest.$ac_objext
7a197a62
AK
6009if { (ac_try="$ac_compile"
6010case "(($ac_try" in
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6013esac
ec6a6fbe
AK
6014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6015$as_echo "$ac_try_echo") >&5
7a197a62 6016 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6017 ac_status=$?
8a2fc586
AK
6018 grep -v '^ *+' conftest.er1 >conftest.err
6019 rm -f conftest.er1
6020 cat conftest.err >&5
ec6a6fbe 6021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6022 (exit $ac_status); } && {
6023 test -z "$ac_c_werror_flag" ||
6024 test ! -s conftest.err
6025 } && test -s conftest.$ac_objext; then
ec6a6fbe 6026 ac_cv_type_signal=int
b145d876 6027else
ec6a6fbe 6028 $as_echo "$as_me: failed program was:" >&5
b145d876
ZK
6029sed 's/^/| /' conftest.$ac_ext >&5
6030
ec6a6fbe 6031 ac_cv_type_signal=void
ad6254c5 6032fi
b145d876
ZK
6033
6034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6035fi
ec6a6fbe
AK
6036{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6037$as_echo "$ac_cv_type_signal" >&6; }
80992638 6038
ad6254c5 6039cat >>confdefs.h <<_ACEOF
ec6a6fbe 6040#define RETSIGTYPE $ac_cv_type_signal
ad6254c5 6041_ACEOF
199e490e 6042
b896caa1 6043
ec6a6fbe
AK
6044{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
6045$as_echo_n "checking for size_t... " >&6; }
6046if test "${ac_cv_type_size_t+set}" = set; then
6047 $as_echo_n "(cached) " >&6
ad6254c5 6048else
ec6a6fbe
AK
6049 ac_cv_type_size_t=no
6050cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6051/* confdefs.h. */
6052_ACEOF
6053cat confdefs.h >>conftest.$ac_ext
6054cat >>conftest.$ac_ext <<_ACEOF
6055/* end confdefs.h. */
6056$ac_includes_default
6057int
6058main ()
6059{
ec6a6fbe
AK
6060if (sizeof (size_t))
6061 return 0;
ad6254c5
AK
6062 ;
6063 return 0;
6064}
6065_ACEOF
6066rm -f conftest.$ac_objext
7a197a62
AK
6067if { (ac_try="$ac_compile"
6068case "(($ac_try" in
6069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070 *) ac_try_echo=$ac_try;;
6071esac
ec6a6fbe
AK
6072eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6073$as_echo "$ac_try_echo") >&5
7a197a62 6074 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6075 ac_status=$?
8a2fc586
AK
6076 grep -v '^ *+' conftest.er1 >conftest.err
6077 rm -f conftest.er1
6078 cat conftest.err >&5
ec6a6fbe 6079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6080 (exit $ac_status); } && {
6081 test -z "$ac_c_werror_flag" ||
6082 test ! -s conftest.err
6083 } && test -s conftest.$ac_objext; then
d0191583
JM
6084 cat >conftest.$ac_ext <<_ACEOF
6085/* confdefs.h. */
6086_ACEOF
6087cat confdefs.h >>conftest.$ac_ext
6088cat >>conftest.$ac_ext <<_ACEOF
6089/* end confdefs.h. */
ec6a6fbe 6090$ac_includes_default
d0191583
JM
6091int
6092main ()
6093{
ec6a6fbe
AK
6094if (sizeof ((size_t)))
6095 return 0;
d0191583
JM
6096 ;
6097 return 0;
6098}
6099_ACEOF
6100rm -f conftest.$ac_objext
6101if { (ac_try="$ac_compile"
6102case "(($ac_try" in
6103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104 *) ac_try_echo=$ac_try;;
6105esac
ec6a6fbe
AK
6106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6107$as_echo "$ac_try_echo") >&5
d0191583
JM
6108 (eval "$ac_compile") 2>conftest.er1
6109 ac_status=$?
6110 grep -v '^ *+' conftest.er1 >conftest.err
6111 rm -f conftest.er1
6112 cat conftest.err >&5
ec6a6fbe 6113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
6114 (exit $ac_status); } && {
6115 test -z "$ac_c_werror_flag" ||
6116 test ! -s conftest.err
6117 } && test -s conftest.$ac_objext; then
ec6a6fbe 6118 :
d0191583 6119else
ec6a6fbe 6120 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
6121sed 's/^/| /' conftest.$ac_ext >&5
6122
ec6a6fbe
AK
6123 ac_cv_type_size_t=yes
6124fi
6125
6126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6127else
6128 $as_echo "$as_me: failed program was:" >&5
6129sed 's/^/| /' conftest.$ac_ext >&5
6130
6131
d0191583
JM
6132fi
6133
6134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6135fi
ec6a6fbe
AK
6136{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6137$as_echo "$ac_cv_type_size_t" >&6; }
6138if test "x$ac_cv_type_size_t" = x""yes; then
6139 :
6140else
d0191583
JM
6141
6142cat >>confdefs.h <<_ACEOF
ec6a6fbe 6143#define size_t unsigned int
d0191583
JM
6144_ACEOF
6145
ec6a6fbe 6146fi
d0191583 6147
ec6a6fbe
AK
6148{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6149$as_echo_n "checking for mode_t... " >&6; }
6150if test "${ac_cv_type_mode_t+set}" = set; then
6151 $as_echo_n "(cached) " >&6
8106cdd5 6152else
ec6a6fbe
AK
6153 ac_cv_type_mode_t=no
6154cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6155/* confdefs.h. */
6156_ACEOF
6157cat confdefs.h >>conftest.$ac_ext
6158cat >>conftest.$ac_ext <<_ACEOF
6159/* end confdefs.h. */
6160$ac_includes_default
6161int
6162main ()
6163{
ec6a6fbe
AK
6164if (sizeof (mode_t))
6165 return 0;
ad6254c5
AK
6166 ;
6167 return 0;
6168}
6169_ACEOF
6170rm -f conftest.$ac_objext
7a197a62
AK
6171if { (ac_try="$ac_compile"
6172case "(($ac_try" in
6173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174 *) ac_try_echo=$ac_try;;
6175esac
ec6a6fbe
AK
6176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6177$as_echo "$ac_try_echo") >&5
7a197a62 6178 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6179 ac_status=$?
8a2fc586
AK
6180 grep -v '^ *+' conftest.er1 >conftest.err
6181 rm -f conftest.er1
6182 cat conftest.err >&5
ec6a6fbe 6183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6184 (exit $ac_status); } && {
6185 test -z "$ac_c_werror_flag" ||
6186 test ! -s conftest.err
6187 } && test -s conftest.$ac_objext; then
b145d876
ZK
6188 cat >conftest.$ac_ext <<_ACEOF
6189/* confdefs.h. */
6190_ACEOF
6191cat confdefs.h >>conftest.$ac_ext
6192cat >>conftest.$ac_ext <<_ACEOF
6193/* end confdefs.h. */
6194$ac_includes_default
6195int
6196main ()
6197{
ec6a6fbe
AK
6198if (sizeof ((mode_t)))
6199 return 0;
ad6254c5
AK
6200 ;
6201 return 0;
6202}
6203_ACEOF
6204rm -f conftest.$ac_objext
7a197a62
AK
6205if { (ac_try="$ac_compile"
6206case "(($ac_try" in
6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6209esac
ec6a6fbe
AK
6210eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6211$as_echo "$ac_try_echo") >&5
7a197a62 6212 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6213 ac_status=$?
8a2fc586
AK
6214 grep -v '^ *+' conftest.er1 >conftest.err
6215 rm -f conftest.er1
6216 cat conftest.err >&5
ec6a6fbe 6217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6218 (exit $ac_status); } && {
6219 test -z "$ac_c_werror_flag" ||
6220 test ! -s conftest.err
6221 } && test -s conftest.$ac_objext; then
ec6a6fbe
AK
6222 :
6223else
6224 $as_echo "$as_me: failed program was:" >&5
6225sed 's/^/| /' conftest.$ac_ext >&5
6226
6227 ac_cv_type_mode_t=yes
6228fi
6229
6230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51 6231else
ec6a6fbe 6232 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
6233sed 's/^/| /' conftest.$ac_ext >&5
6234
ec6a6fbe 6235
80992638 6236fi
7a197a62
AK
6237
6238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6239fi
ec6a6fbe
AK
6240{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6241$as_echo "$ac_cv_type_mode_t" >&6; }
6242if test "x$ac_cv_type_mode_t" = x""yes; then
ad6254c5
AK
6243 :
6244else
80992638 6245
ad6254c5
AK
6246cat >>confdefs.h <<_ACEOF
6247#define mode_t int
6248_ACEOF
6249
6250fi
6251
ec6a6fbe
AK
6252{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6253$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 6254if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 6255 $as_echo_n "(cached) " >&6
ad6254c5
AK
6256else
6257 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6258/* confdefs.h. */
6259_ACEOF
6260cat confdefs.h >>conftest.$ac_ext
6261cat >>conftest.$ac_ext <<_ACEOF
6262/* end confdefs.h. */
6263$ac_includes_default
6264int
6265main ()
6266{
6267static struct stat ac_aggr;
6268if (ac_aggr.st_rdev)
6269return 0;
6270 ;
6271 return 0;
6272}
6273_ACEOF
6274rm -f conftest.$ac_objext
7a197a62
AK
6275if { (ac_try="$ac_compile"
6276case "(($ac_try" in
6277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6278 *) ac_try_echo=$ac_try;;
6279esac
ec6a6fbe
AK
6280eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6281$as_echo "$ac_try_echo") >&5
7a197a62 6282 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6283 ac_status=$?
8a2fc586
AK
6284 grep -v '^ *+' conftest.er1 >conftest.err
6285 rm -f conftest.er1
6286 cat conftest.err >&5
ec6a6fbe 6287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6288 (exit $ac_status); } && {
6289 test -z "$ac_c_werror_flag" ||
6290 test ! -s conftest.err
6291 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6292 ac_cv_member_struct_stat_st_rdev=yes
6293else
ec6a6fbe 6294 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6295sed 's/^/| /' conftest.$ac_ext >&5
6296
7a197a62 6297 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6298/* confdefs.h. */
6299_ACEOF
6300cat confdefs.h >>conftest.$ac_ext
6301cat >>conftest.$ac_ext <<_ACEOF
6302/* end confdefs.h. */
6303$ac_includes_default
6304int
6305main ()
6306{
6307static struct stat ac_aggr;
6308if (sizeof ac_aggr.st_rdev)
6309return 0;
6310 ;
6311 return 0;
6312}
6313_ACEOF
6314rm -f conftest.$ac_objext
7a197a62
AK
6315if { (ac_try="$ac_compile"
6316case "(($ac_try" in
6317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6318 *) ac_try_echo=$ac_try;;
6319esac
ec6a6fbe
AK
6320eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6321$as_echo "$ac_try_echo") >&5
7a197a62 6322 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6323 ac_status=$?
8a2fc586
AK
6324 grep -v '^ *+' conftest.er1 >conftest.err
6325 rm -f conftest.er1
6326 cat conftest.err >&5
ec6a6fbe 6327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6328 (exit $ac_status); } && {
6329 test -z "$ac_c_werror_flag" ||
6330 test ! -s conftest.err
6331 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6332 ac_cv_member_struct_stat_st_rdev=yes
6333else
ec6a6fbe 6334 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6335sed 's/^/| /' conftest.$ac_ext >&5
6336
7a197a62 6337 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 6338fi
7a197a62
AK
6339
6340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6341fi
7a197a62
AK
6342
6343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6344fi
ec6a6fbe
AK
6345{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6346$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6347if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
ad6254c5
AK
6348
6349cat >>confdefs.h <<_ACEOF
6350#define HAVE_STRUCT_STAT_ST_RDEV 1
6351_ACEOF
6352
6353
ad6254c5
AK
6354fi
6355
ec6a6fbe
AK
6356{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6357$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 6358if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 6359 $as_echo_n "(cached) " >&6
ad6254c5
AK
6360else
6361 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6362/* confdefs.h. */
6363_ACEOF
6364cat confdefs.h >>conftest.$ac_ext
6365cat >>conftest.$ac_ext <<_ACEOF
6366/* end confdefs.h. */
6367#include <sys/types.h>
6368#include <time.h>
6369
6370int
6371main ()
6372{
25fbec5b
AK
6373struct tm tm;
6374 int *p = &tm.tm_sec;
ec6a6fbe 6375 return !p;
ad6254c5
AK
6376 ;
6377 return 0;
6378}
6379_ACEOF
6380rm -f conftest.$ac_objext
7a197a62
AK
6381if { (ac_try="$ac_compile"
6382case "(($ac_try" in
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6385esac
ec6a6fbe
AK
6386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6387$as_echo "$ac_try_echo") >&5
7a197a62 6388 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6389 ac_status=$?
8a2fc586
AK
6390 grep -v '^ *+' conftest.er1 >conftest.err
6391 rm -f conftest.er1
6392 cat conftest.err >&5
ec6a6fbe 6393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6394 (exit $ac_status); } && {
6395 test -z "$ac_c_werror_flag" ||
6396 test ! -s conftest.err
6397 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6398 ac_cv_struct_tm=time.h
6399else
ec6a6fbe 6400 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6401sed 's/^/| /' conftest.$ac_ext >&5
6402
7a197a62 6403 ac_cv_struct_tm=sys/time.h
ad6254c5 6404fi
7a197a62
AK
6405
6406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6407fi
ec6a6fbe
AK
6408{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6409$as_echo "$ac_cv_struct_tm" >&6; }
ad6254c5
AK
6410if test $ac_cv_struct_tm = sys/time.h; then
6411
6412cat >>confdefs.h <<\_ACEOF
6413#define TM_IN_SYS_TIME 1
6414_ACEOF
6415
6416fi
809fae91 6417
795ca3e5 6418
80992638 6419################################################################################
ad6254c5
AK
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
d0191583
JM
6434
6435
6436
6437for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6438 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6439 uname
ad6254c5 6440do
ec6a6fbe
AK
6441as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6442{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6443$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6444if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6445 $as_echo_n "(cached) " >&6
795ca3e5 6446else
ad6254c5 6447 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6448/* confdefs.h. */
6449_ACEOF
6450cat confdefs.h >>conftest.$ac_ext
6451cat >>conftest.$ac_ext <<_ACEOF
6452/* end confdefs.h. */
8a2fc586
AK
6453/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6455#define $ac_func innocuous_$ac_func
6456
ad6254c5
AK
6457/* System header to define __stub macros and hopefully few prototypes,
6458 which can conflict with char $ac_func (); below.
6459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6460 <limits.h> exists even on freestanding compilers. */
8a2fc586 6461
ad6254c5
AK
6462#ifdef __STDC__
6463# include <limits.h>
6464#else
6465# include <assert.h>
6466#endif
8a2fc586
AK
6467
6468#undef $ac_func
6469
7a197a62
AK
6470/* Override any GCC internal prototype to avoid an error.
6471 Use char because int might match the return type of a GCC
6472 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6473#ifdef __cplusplus
6474extern "C"
ad6254c5 6475#endif
ad6254c5
AK
6476char $ac_func ();
6477/* The GNU C library defines this for functions which it implements
6478 to always fail with ENOSYS. Some functions are actually named
6479 something starting with __ and the normal name is an alias. */
7a197a62 6480#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6481choke me
ad6254c5
AK
6482#endif
6483
6484int
6485main ()
6486{
7a197a62 6487return $ac_func ();
ad6254c5
AK
6488 ;
6489 return 0;
6490}
6491_ACEOF
6492rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6493if { (ac_try="$ac_link"
6494case "(($ac_try" in
6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496 *) ac_try_echo=$ac_try;;
6497esac
ec6a6fbe
AK
6498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6499$as_echo "$ac_try_echo") >&5
7a197a62 6500 (eval "$ac_link") 2>conftest.er1
ad6254c5 6501 ac_status=$?
8a2fc586
AK
6502 grep -v '^ *+' conftest.er1 >conftest.err
6503 rm -f conftest.er1
6504 cat conftest.err >&5
ec6a6fbe 6505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6506 (exit $ac_status); } && {
6507 test -z "$ac_c_werror_flag" ||
6508 test ! -s conftest.err
ec6a6fbe
AK
6509 } && test -s conftest$ac_exeext && {
6510 test "$cross_compiling" = yes ||
6511 $as_test_x conftest$ac_exeext
6512 }; then
fc54be10
AK
6513 eval "$as_ac_var=yes"
6514else
ec6a6fbe 6515 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
6516sed 's/^/| /' conftest.$ac_ext >&5
6517
6518 eval "$as_ac_var=no"
6519fi
6520
ec6a6fbe 6521rm -rf conftest.dSYM
25fbec5b 6522rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
6523 conftest$ac_exeext conftest.$ac_ext
6524fi
ec6a6fbe
AK
6525ac_res=`eval 'as_val=${'$as_ac_var'}
6526 $as_echo "$as_val"'`
6527 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6528$as_echo "$ac_res" >&6; }
6529as_val=`eval 'as_val=${'$as_ac_var'}
6530 $as_echo "$as_val"'`
6531 if test "x$as_val" = x""yes; then
ad6254c5 6532 cat >>confdefs.h <<_ACEOF
ec6a6fbe 6533#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6534_ACEOF
6535
6536else
ec6a6fbe
AK
6537 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6538$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
6539 { (exit 1); exit 1; }; }
6540fi
6541done
795ca3e5 6542
a0f9708e
AK
6543
6544for ac_func in siginterrupt
6545do
6546as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6547{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6548$as_echo_n "checking for $ac_func... " >&6; }
6549if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6550 $as_echo_n "(cached) " >&6
6551else
6552 cat >conftest.$ac_ext <<_ACEOF
6553/* confdefs.h. */
6554_ACEOF
6555cat confdefs.h >>conftest.$ac_ext
6556cat >>conftest.$ac_ext <<_ACEOF
6557/* end confdefs.h. */
6558/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6560#define $ac_func innocuous_$ac_func
6561
6562/* System header to define __stub macros and hopefully few prototypes,
6563 which can conflict with char $ac_func (); below.
6564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6565 <limits.h> exists even on freestanding compilers. */
6566
6567#ifdef __STDC__
6568# include <limits.h>
6569#else
6570# include <assert.h>
6571#endif
6572
6573#undef $ac_func
6574
6575/* Override any GCC internal prototype to avoid an error.
6576 Use char because int might match the return type of a GCC
6577 builtin and then its argument prototype would still apply. */
6578#ifdef __cplusplus
6579extern "C"
6580#endif
6581char $ac_func ();
6582/* The GNU C library defines this for functions which it implements
6583 to always fail with ENOSYS. Some functions are actually named
6584 something starting with __ and the normal name is an alias. */
6585#if defined __stub_$ac_func || defined __stub___$ac_func
6586choke me
6587#endif
6588
6589int
6590main ()
6591{
6592return $ac_func ();
6593 ;
6594 return 0;
6595}
6596_ACEOF
6597rm -f conftest.$ac_objext conftest$ac_exeext
6598if { (ac_try="$ac_link"
6599case "(($ac_try" in
6600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6601 *) ac_try_echo=$ac_try;;
6602esac
6603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6604$as_echo "$ac_try_echo") >&5
6605 (eval "$ac_link") 2>conftest.er1
6606 ac_status=$?
6607 grep -v '^ *+' conftest.er1 >conftest.err
6608 rm -f conftest.er1
6609 cat conftest.err >&5
6610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); } && {
6612 test -z "$ac_c_werror_flag" ||
6613 test ! -s conftest.err
6614 } && test -s conftest$ac_exeext && {
6615 test "$cross_compiling" = yes ||
6616 $as_test_x conftest$ac_exeext
6617 }; then
6618 eval "$as_ac_var=yes"
6619else
6620 $as_echo "$as_me: failed program was:" >&5
6621sed 's/^/| /' conftest.$ac_ext >&5
6622
6623 eval "$as_ac_var=no"
6624fi
6625
6626rm -rf conftest.dSYM
6627rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6628 conftest$ac_exeext conftest.$ac_ext
6629fi
6630ac_res=`eval 'as_val=${'$as_ac_var'}
6631 $as_echo "$as_val"'`
6632 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6633$as_echo "$ac_res" >&6; }
6634as_val=`eval 'as_val=${'$as_ac_var'}
6635 $as_echo "$as_val"'`
6636 if test "x$as_val" = x""yes; then
6637 cat >>confdefs.h <<_ACEOF
6638#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6639_ACEOF
6640
6641fi
6642done
6643
ad6254c5
AK
6644# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6645# for constant arguments. Useless!
ec6a6fbe
AK
6646{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6647$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 6648if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 6649 $as_echo_n "(cached) " >&6
ad6254c5
AK
6650else
6651 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6652/* confdefs.h. */
6653_ACEOF
6654cat confdefs.h >>conftest.$ac_ext
6655cat >>conftest.$ac_ext <<_ACEOF
6656/* end confdefs.h. */
6657#include <alloca.h>
6658int
6659main ()
6660{
6661char *p = (char *) alloca (2 * sizeof (int));
7a197a62 6662 if (p) return 0;
ad6254c5
AK
6663 ;
6664 return 0;
6665}
6666_ACEOF
6667rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6668if { (ac_try="$ac_link"
6669case "(($ac_try" in
6670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6671 *) ac_try_echo=$ac_try;;
6672esac
ec6a6fbe
AK
6673eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6674$as_echo "$ac_try_echo") >&5
7a197a62 6675 (eval "$ac_link") 2>conftest.er1
ad6254c5 6676 ac_status=$?
8a2fc586
AK
6677 grep -v '^ *+' conftest.er1 >conftest.err
6678 rm -f conftest.er1
6679 cat conftest.err >&5
ec6a6fbe 6680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6681 (exit $ac_status); } && {
6682 test -z "$ac_c_werror_flag" ||
6683 test ! -s conftest.err
ec6a6fbe
AK
6684 } && test -s conftest$ac_exeext && {
6685 test "$cross_compiling" = yes ||
6686 $as_test_x conftest$ac_exeext
6687 }; then
ad6254c5
AK
6688 ac_cv_working_alloca_h=yes
6689else
ec6a6fbe 6690 $as_echo "$as_me: failed program was:" >&5
ad6254c5 6691sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 6692
7a197a62 6693 ac_cv_working_alloca_h=no
ad6254c5 6694fi
7a197a62 6695
ec6a6fbe 6696rm -rf conftest.dSYM
25fbec5b 6697rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6698 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6699fi
ec6a6fbe
AK
6700{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6701$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
6702if test $ac_cv_working_alloca_h = yes; then
6703
6704cat >>confdefs.h <<\_ACEOF
6705#define HAVE_ALLOCA_H 1
6706_ACEOF
6707
6708fi
6709
ec6a6fbe
AK
6710{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
6711$as_echo_n "checking for alloca... " >&6; }
ad6254c5 6712if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 6713 $as_echo_n "(cached) " >&6
ad6254c5
AK
6714else
6715 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6716/* confdefs.h. */
6717_ACEOF
6718cat confdefs.h >>conftest.$ac_ext
6719cat >>conftest.$ac_ext <<_ACEOF
6720/* end confdefs.h. */
6721#ifdef __GNUC__
6722# define alloca __builtin_alloca
6723#else
6724# ifdef _MSC_VER
6725# include <malloc.h>
6726# define alloca _alloca
6727# else
25fbec5b 6728# ifdef HAVE_ALLOCA_H
ad6254c5
AK
6729# include <alloca.h>
6730# else
6731# ifdef _AIX
6732 #pragma alloca
6733# else
6734# ifndef alloca /* predefined by HP cc +Olibcalls */
6735char *alloca ();
6736# endif
6737# endif
6738# endif
6739# endif
6740#endif
6741
6742int
6743main ()
6744{
6745char *p = (char *) alloca (1);
7a197a62 6746 if (p) return 0;
ad6254c5
AK
6747 ;
6748 return 0;
6749}
6750_ACEOF
6751rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6752if { (ac_try="$ac_link"
6753case "(($ac_try" in
6754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6755 *) ac_try_echo=$ac_try;;
6756esac
ec6a6fbe
AK
6757eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6758$as_echo "$ac_try_echo") >&5
7a197a62 6759 (eval "$ac_link") 2>conftest.er1
ad6254c5 6760 ac_status=$?
8a2fc586
AK
6761 grep -v '^ *+' conftest.er1 >conftest.err
6762 rm -f conftest.er1
6763 cat conftest.err >&5
ec6a6fbe 6764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6765 (exit $ac_status); } && {
6766 test -z "$ac_c_werror_flag" ||
6767 test ! -s conftest.err
ec6a6fbe
AK
6768 } && test -s conftest$ac_exeext && {
6769 test "$cross_compiling" = yes ||
6770 $as_test_x conftest$ac_exeext
6771 }; then
ad6254c5
AK
6772 ac_cv_func_alloca_works=yes
6773else
ec6a6fbe 6774 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6775sed 's/^/| /' conftest.$ac_ext >&5
6776
7a197a62 6777 ac_cv_func_alloca_works=no
ad6254c5 6778fi
7a197a62 6779
ec6a6fbe 6780rm -rf conftest.dSYM
25fbec5b 6781rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6782 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6783fi
ec6a6fbe
AK
6784{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6785$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6786
6787if test $ac_cv_func_alloca_works = yes; then
6788
6789cat >>confdefs.h <<\_ACEOF
6790#define HAVE_ALLOCA 1
6791_ACEOF
6792
6793else
6794 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6795# that cause trouble. Some versions do not even contain alloca or
6796# contain a buggy version. If you still want to use their alloca,
6797# use ar to extract alloca.o from them instead of compiling alloca.c.
6798
7a197a62 6799ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6800
6801cat >>confdefs.h <<\_ACEOF
6802#define C_ALLOCA 1
6803_ACEOF
6804
6805
ec6a6fbe
AK
6806{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6807$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 6808if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 6809 $as_echo_n "(cached) " >&6
ad6254c5
AK
6810else
6811 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6812/* confdefs.h. */
6813_ACEOF
6814cat confdefs.h >>conftest.$ac_ext
6815cat >>conftest.$ac_ext <<_ACEOF
6816/* end confdefs.h. */
7a197a62 6817#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6818webecray
6819#else
6820wenotbecray
6821#endif
6822
6823_ACEOF
795ca3e5 6824if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6825 $EGREP "webecray" >/dev/null 2>&1; then
6826 ac_cv_os_cray=yes
6827else
6828 ac_cv_os_cray=no
795ca3e5
AK
6829fi
6830rm -f conftest*
6831
795ca3e5 6832fi
ec6a6fbe
AK
6833{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6834$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
6835if test $ac_cv_os_cray = yes; then
6836 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
6837 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6838{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6839$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6840if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6841 $as_echo_n "(cached) " >&6
ad6254c5
AK
6842else
6843 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6844/* confdefs.h. */
6845_ACEOF
6846cat confdefs.h >>conftest.$ac_ext
6847cat >>conftest.$ac_ext <<_ACEOF
6848/* end confdefs.h. */
8a2fc586
AK
6849/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6851#define $ac_func innocuous_$ac_func
6852
ad6254c5
AK
6853/* System header to define __stub macros and hopefully few prototypes,
6854 which can conflict with char $ac_func (); below.
6855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6856 <limits.h> exists even on freestanding compilers. */
8a2fc586 6857
ad6254c5
AK
6858#ifdef __STDC__
6859# include <limits.h>
6860#else
6861# include <assert.h>
6862#endif
8a2fc586
AK
6863
6864#undef $ac_func
6865
7a197a62
AK
6866/* Override any GCC internal prototype to avoid an error.
6867 Use char because int might match the return type of a GCC
6868 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6869#ifdef __cplusplus
6870extern "C"
ad6254c5 6871#endif
ad6254c5
AK
6872char $ac_func ();
6873/* The GNU C library defines this for functions which it implements
6874 to always fail with ENOSYS. Some functions are actually named
6875 something starting with __ and the normal name is an alias. */
7a197a62 6876#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6877choke me
ad6254c5
AK
6878#endif
6879
6880int
6881main ()
6882{
7a197a62 6883return $ac_func ();
ad6254c5
AK
6884 ;
6885 return 0;
6886}
6887_ACEOF
6888rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6889if { (ac_try="$ac_link"
6890case "(($ac_try" in
6891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892 *) ac_try_echo=$ac_try;;
6893esac
ec6a6fbe
AK
6894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6895$as_echo "$ac_try_echo") >&5
7a197a62 6896 (eval "$ac_link") 2>conftest.er1
ad6254c5 6897 ac_status=$?
8a2fc586
AK
6898 grep -v '^ *+' conftest.er1 >conftest.err
6899 rm -f conftest.er1
6900 cat conftest.err >&5
ec6a6fbe 6901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6902 (exit $ac_status); } && {
6903 test -z "$ac_c_werror_flag" ||
6904 test ! -s conftest.err
ec6a6fbe
AK
6905 } && test -s conftest$ac_exeext && {
6906 test "$cross_compiling" = yes ||
6907 $as_test_x conftest$ac_exeext
6908 }; then
ad6254c5
AK
6909 eval "$as_ac_var=yes"
6910else
ec6a6fbe 6911 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6912sed 's/^/| /' conftest.$ac_ext >&5
6913
7a197a62 6914 eval "$as_ac_var=no"
ad6254c5 6915fi
7a197a62 6916
ec6a6fbe 6917rm -rf conftest.dSYM
25fbec5b 6918rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6919 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6920fi
ec6a6fbe
AK
6921ac_res=`eval 'as_val=${'$as_ac_var'}
6922 $as_echo "$as_val"'`
6923 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6924$as_echo "$ac_res" >&6; }
6925as_val=`eval 'as_val=${'$as_ac_var'}
6926 $as_echo "$as_val"'`
6927 if test "x$as_val" = x""yes; then
80992638 6928
ad6254c5
AK
6929cat >>confdefs.h <<_ACEOF
6930#define CRAY_STACKSEG_END $ac_func
6931_ACEOF
6932
6933 break
6934fi
6935
6936 done
6937fi
6938
ec6a6fbe
AK
6939{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6940$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 6941if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 6942 $as_echo_n "(cached) " >&6
ad6254c5
AK
6943else
6944 if test "$cross_compiling" = yes; then
6945 ac_cv_c_stack_direction=0
6946else
6947 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6948/* confdefs.h. */
6949_ACEOF
6950cat confdefs.h >>conftest.$ac_ext
6951cat >>conftest.$ac_ext <<_ACEOF
6952/* end confdefs.h. */
7a197a62 6953$ac_includes_default
ad6254c5
AK
6954int
6955find_stack_direction ()
6956{
6957 static char *addr = 0;
6958 auto char dummy;
6959 if (addr == 0)
6960 {
6961 addr = &dummy;
6962 return find_stack_direction ();
6963 }
6964 else
6965 return (&dummy > addr) ? 1 : -1;
6966}
6967
6968int
6969main ()
6970{
7a197a62 6971 return find_stack_direction () < 0;
ad6254c5
AK
6972}
6973_ACEOF
6974rm -f conftest$ac_exeext
7a197a62
AK
6975if { (ac_try="$ac_link"
6976case "(($ac_try" in
6977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6978 *) ac_try_echo=$ac_try;;
6979esac
ec6a6fbe
AK
6980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6981$as_echo "$ac_try_echo") >&5
7a197a62 6982 (eval "$ac_link") 2>&5
ad6254c5 6983 ac_status=$?
ec6a6fbe 6984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6986 { (case "(($ac_try" in
6987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6988 *) ac_try_echo=$ac_try;;
6989esac
ec6a6fbe
AK
6990eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6991$as_echo "$ac_try_echo") >&5
7a197a62 6992 (eval "$ac_try") 2>&5
ad6254c5 6993 ac_status=$?
ec6a6fbe 6994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6995 (exit $ac_status); }; }; then
6996 ac_cv_c_stack_direction=1
6997else
ec6a6fbe
AK
6998 $as_echo "$as_me: program exited with status $ac_status" >&5
6999$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7000sed 's/^/| /' conftest.$ac_ext >&5
7001
7002( exit $ac_status )
7003ac_cv_c_stack_direction=-1
7004fi
ec6a6fbe 7005rm -rf conftest.dSYM
7a197a62 7006rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7007fi
7a197a62
AK
7008
7009
ad6254c5 7010fi
ec6a6fbe
AK
7011{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7012$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
7013
7014cat >>confdefs.h <<_ACEOF
7015#define STACK_DIRECTION $ac_cv_c_stack_direction
7016_ACEOF
7017
7018
7019fi
7020
ec6a6fbe
AK
7021{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
7022$as_echo_n "checking whether closedir returns void... " >&6; }
ad6254c5 7023if test "${ac_cv_func_closedir_void+set}" = set; then
ec6a6fbe 7024 $as_echo_n "(cached) " >&6
ad6254c5
AK
7025else
7026 if test "$cross_compiling" = yes; then
7027 ac_cv_func_closedir_void=yes
7028else
7029 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7030/* confdefs.h. */
7031_ACEOF
7032cat confdefs.h >>conftest.$ac_ext
7033cat >>conftest.$ac_ext <<_ACEOF
7034/* end confdefs.h. */
7035$ac_includes_default
7036#include <$ac_header_dirent>
7037#ifndef __cplusplus
7038int closedir ();
7039#endif
7040
7041int
7042main ()
7043{
7a197a62 7044return closedir (opendir (".")) != 0;
ad6254c5
AK
7045 ;
7046 return 0;
7047}
7048_ACEOF
7049rm -f conftest$ac_exeext
7a197a62
AK
7050if { (ac_try="$ac_link"
7051case "(($ac_try" in
7052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7053 *) ac_try_echo=$ac_try;;
7054esac
ec6a6fbe
AK
7055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7056$as_echo "$ac_try_echo") >&5
7a197a62 7057 (eval "$ac_link") 2>&5
ad6254c5 7058 ac_status=$?
ec6a6fbe 7059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7061 { (case "(($ac_try" in
7062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7063 *) ac_try_echo=$ac_try;;
7064esac
ec6a6fbe
AK
7065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7066$as_echo "$ac_try_echo") >&5
7a197a62 7067 (eval "$ac_try") 2>&5
ad6254c5 7068 ac_status=$?
ec6a6fbe 7069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7070 (exit $ac_status); }; }; then
7071 ac_cv_func_closedir_void=no
7072else
ec6a6fbe
AK
7073 $as_echo "$as_me: program exited with status $ac_status" >&5
7074$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7075sed 's/^/| /' conftest.$ac_ext >&5
7076
7077( exit $ac_status )
7078ac_cv_func_closedir_void=yes
7079fi
ec6a6fbe 7080rm -rf conftest.dSYM
7a197a62 7081rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7082fi
7a197a62
AK
7083
7084
ad6254c5 7085fi
ec6a6fbe
AK
7086{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
7087$as_echo "$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
7088if test $ac_cv_func_closedir_void = yes; then
7089
7090cat >>confdefs.h <<\_ACEOF
7091#define CLOSEDIR_VOID 1
7092_ACEOF
7093
7094fi
7095
7096
7a197a62 7097for ac_header in vfork.h
ad6254c5 7098do
ec6a6fbe 7099as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7100if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7101 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7102$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7103if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7104 $as_echo_n "(cached) " >&6
ad6254c5 7105fi
ec6a6fbe
AK
7106ac_res=`eval 'as_val=${'$as_ac_Header'}
7107 $as_echo "$as_val"'`
7108 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7109$as_echo "$ac_res" >&6; }
ad6254c5
AK
7110else
7111 # Is the header compilable?
ec6a6fbe
AK
7112{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7113$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7114cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7115/* confdefs.h. */
7116_ACEOF
7117cat confdefs.h >>conftest.$ac_ext
7118cat >>conftest.$ac_ext <<_ACEOF
7119/* end confdefs.h. */
7120$ac_includes_default
7121#include <$ac_header>
7122_ACEOF
7123rm -f conftest.$ac_objext
7a197a62
AK
7124if { (ac_try="$ac_compile"
7125case "(($ac_try" in
7126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7127 *) ac_try_echo=$ac_try;;
7128esac
ec6a6fbe
AK
7129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7130$as_echo "$ac_try_echo") >&5
7a197a62 7131 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7132 ac_status=$?
8a2fc586
AK
7133 grep -v '^ *+' conftest.er1 >conftest.err
7134 rm -f conftest.er1
7135 cat conftest.err >&5
ec6a6fbe 7136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7137 (exit $ac_status); } && {
7138 test -z "$ac_c_werror_flag" ||
7139 test ! -s conftest.err
7140 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7141 ac_header_compiler=yes
7142else
ec6a6fbe 7143 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7144sed 's/^/| /' conftest.$ac_ext >&5
7145
7a197a62 7146 ac_header_compiler=no
ad6254c5 7147fi
7a197a62
AK
7148
7149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7150{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7151$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7152
7153# Is the header present?
ec6a6fbe
AK
7154{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7155$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7156cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7157/* confdefs.h. */
7158_ACEOF
7159cat confdefs.h >>conftest.$ac_ext
7160cat >>conftest.$ac_ext <<_ACEOF
7161/* end confdefs.h. */
7162#include <$ac_header>
7163_ACEOF
7a197a62
AK
7164if { (ac_try="$ac_cpp conftest.$ac_ext"
7165case "(($ac_try" in
7166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7167 *) ac_try_echo=$ac_try;;
7168esac
ec6a6fbe
AK
7169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7170$as_echo "$ac_try_echo") >&5
7a197a62 7171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7172 ac_status=$?
7173 grep -v '^ *+' conftest.er1 >conftest.err
7174 rm -f conftest.er1
7175 cat conftest.err >&5
ec6a6fbe 7176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7177 (exit $ac_status); } >/dev/null && {
7178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7179 test ! -s conftest.err
7180 }; then
ad6254c5
AK
7181 ac_header_preproc=yes
7182else
ec6a6fbe 7183 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7184sed 's/^/| /' conftest.$ac_ext >&5
7185
7186 ac_header_preproc=no
7187fi
7a197a62 7188
ad6254c5 7189rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7190{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7191$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7192
7193# So? What about this header?
8a2fc586
AK
7194case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7195 yes:no: )
ec6a6fbe
AK
7196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7197$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7199$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7200 ac_header_preproc=yes
ad6254c5 7201 ;;
8a2fc586 7202 no:yes:* )
ec6a6fbe
AK
7203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7204$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7206$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7208$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7210$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7212$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7214$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7215
ad6254c5
AK
7216 ;;
7217esac
ec6a6fbe
AK
7218{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7219$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7221 $as_echo_n "(cached) " >&6
ad6254c5 7222else
8a2fc586 7223 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7224fi
ec6a6fbe
AK
7225ac_res=`eval 'as_val=${'$as_ac_Header'}
7226 $as_echo "$as_val"'`
7227 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7228$as_echo "$ac_res" >&6; }
ad6254c5 7229
795ca3e5 7230fi
ec6a6fbe
AK
7231as_val=`eval 'as_val=${'$as_ac_Header'}
7232 $as_echo "$as_val"'`
7233 if test "x$as_val" = x""yes; then
ad6254c5 7234 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7235#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7236_ACEOF
7237
7238fi
7239
7240done
795ca3e5 7241
ad6254c5
AK
7242
7243
7244for ac_func in fork vfork
7245do
ec6a6fbe
AK
7246as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7247{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7248$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 7249if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7250 $as_echo_n "(cached) " >&6
795ca3e5 7251else
ad6254c5 7252 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7253/* confdefs.h. */
7254_ACEOF
7255cat confdefs.h >>conftest.$ac_ext
7256cat >>conftest.$ac_ext <<_ACEOF
7257/* end confdefs.h. */
8a2fc586
AK
7258/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7260#define $ac_func innocuous_$ac_func
7261
ad6254c5
AK
7262/* System header to define __stub macros and hopefully few prototypes,
7263 which can conflict with char $ac_func (); below.
7264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7265 <limits.h> exists even on freestanding compilers. */
8a2fc586 7266
ad6254c5
AK
7267#ifdef __STDC__
7268# include <limits.h>
7269#else
7270# include <assert.h>
795ca3e5 7271#endif
8a2fc586
AK
7272
7273#undef $ac_func
7274
7a197a62
AK
7275/* Override any GCC internal prototype to avoid an error.
7276 Use char because int might match the return type of a GCC
7277 builtin and then its argument prototype would still apply. */
795ca3e5 7278#ifdef __cplusplus
ad6254c5 7279extern "C"
ad6254c5 7280#endif
ad6254c5
AK
7281char $ac_func ();
7282/* The GNU C library defines this for functions which it implements
7283 to always fail with ENOSYS. Some functions are actually named
7284 something starting with __ and the normal name is an alias. */
7a197a62 7285#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7286choke me
795ca3e5
AK
7287#endif
7288
ad6254c5
AK
7289int
7290main ()
7291{
7a197a62 7292return $ac_func ();
ad6254c5
AK
7293 ;
7294 return 0;
7295}
7296_ACEOF
7297rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7298if { (ac_try="$ac_link"
7299case "(($ac_try" in
7300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7301 *) ac_try_echo=$ac_try;;
7302esac
ec6a6fbe
AK
7303eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7304$as_echo "$ac_try_echo") >&5
7a197a62 7305 (eval "$ac_link") 2>conftest.er1
ad6254c5 7306 ac_status=$?
8a2fc586
AK
7307 grep -v '^ *+' conftest.er1 >conftest.err
7308 rm -f conftest.er1
7309 cat conftest.err >&5
ec6a6fbe 7310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7311 (exit $ac_status); } && {
7312 test -z "$ac_c_werror_flag" ||
7313 test ! -s conftest.err
ec6a6fbe
AK
7314 } && test -s conftest$ac_exeext && {
7315 test "$cross_compiling" = yes ||
7316 $as_test_x conftest$ac_exeext
7317 }; then
ad6254c5 7318 eval "$as_ac_var=yes"
795ca3e5 7319else
ec6a6fbe 7320 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7321sed 's/^/| /' conftest.$ac_ext >&5
7322
7a197a62 7323 eval "$as_ac_var=no"
795ca3e5 7324fi
7a197a62 7325
ec6a6fbe 7326rm -rf conftest.dSYM
25fbec5b 7327rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7328 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7329fi
ec6a6fbe
AK
7330ac_res=`eval 'as_val=${'$as_ac_var'}
7331 $as_echo "$as_val"'`
7332 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7333$as_echo "$ac_res" >&6; }
7334as_val=`eval 'as_val=${'$as_ac_var'}
7335 $as_echo "$as_val"'`
7336 if test "x$as_val" = x""yes; then
ad6254c5 7337 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7338#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7339_ACEOF
7340
7341fi
7342done
7343
7344if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
7345 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7346$as_echo_n "checking for working fork... " >&6; }
ad6254c5 7347if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 7348 $as_echo_n "(cached) " >&6
ad6254c5
AK
7349else
7350 if test "$cross_compiling" = yes; then
7351 ac_cv_func_fork_works=cross
7352else
7353 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
7354/* confdefs.h. */
7355_ACEOF
7356cat confdefs.h >>conftest.$ac_ext
7357cat >>conftest.$ac_ext <<_ACEOF
7358/* end confdefs.h. */
7359$ac_includes_default
7360int
7361main ()
7362{
7363
7364 /* By Ruediger Kuhlmann. */
7365 return fork () < 0;
7366
7367 ;
7368 return 0;
7369}
ad6254c5
AK
7370_ACEOF
7371rm -f conftest$ac_exeext
7a197a62
AK
7372if { (ac_try="$ac_link"
7373case "(($ac_try" in
7374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7375 *) ac_try_echo=$ac_try;;
7376esac
ec6a6fbe
AK
7377eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7378$as_echo "$ac_try_echo") >&5
7a197a62 7379 (eval "$ac_link") 2>&5
ad6254c5 7380 ac_status=$?
ec6a6fbe 7381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7383 { (case "(($ac_try" in
7384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385 *) ac_try_echo=$ac_try;;
7386esac
ec6a6fbe
AK
7387eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7388$as_echo "$ac_try_echo") >&5
7a197a62 7389 (eval "$ac_try") 2>&5
ad6254c5 7390 ac_status=$?
ec6a6fbe 7391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7392 (exit $ac_status); }; }; then
7393 ac_cv_func_fork_works=yes
7394else
ec6a6fbe
AK
7395 $as_echo "$as_me: program exited with status $ac_status" >&5
7396$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7397sed 's/^/| /' conftest.$ac_ext >&5
7398
7399( exit $ac_status )
7400ac_cv_func_fork_works=no
7401fi
ec6a6fbe 7402rm -rf conftest.dSYM
7a197a62 7403rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7404fi
7a197a62
AK
7405
7406
ad6254c5 7407fi
ec6a6fbe
AK
7408{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7409$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
7410
7411else
7412 ac_cv_func_fork_works=$ac_cv_func_fork
7413fi
7414if test "x$ac_cv_func_fork_works" = xcross; then
7415 case $host in
7416 *-*-amigaos* | *-*-msdosdjgpp*)
7417 # Override, as these systems have only a dummy fork() stub
7418 ac_cv_func_fork_works=no
7419 ;;
7420 *)
7421 ac_cv_func_fork_works=yes
7422 ;;
7423 esac
ec6a6fbe
AK
7424 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7425$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7426fi
7427ac_cv_func_vfork_works=$ac_cv_func_vfork
7428if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
7429 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7430$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 7431if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 7432 $as_echo_n "(cached) " >&6
ad6254c5
AK
7433else
7434 if test "$cross_compiling" = yes; then
7435 ac_cv_func_vfork_works=cross
7436else
7437 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7438/* confdefs.h. */
7439_ACEOF
7440cat confdefs.h >>conftest.$ac_ext
7441cat >>conftest.$ac_ext <<_ACEOF
7442/* end confdefs.h. */
7443/* Thanks to Paul Eggert for this test. */
7a197a62 7444$ac_includes_default
ad6254c5 7445#include <sys/wait.h>
25fbec5b 7446#ifdef HAVE_VFORK_H
ad6254c5
AK
7447# include <vfork.h>
7448#endif
7449/* On some sparc systems, changes by the child to local and incoming
7450 argument registers are propagated back to the parent. The compiler
7451 is told about this with #include <vfork.h>, but some compilers
7452 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7453 static variable whose address is put into a register that is
7454 clobbered by the vfork. */
7455static void
7456#ifdef __cplusplus
7457sparc_address_test (int arg)
7458# else
7459sparc_address_test (arg) int arg;
7460#endif
7461{
7462 static pid_t child;
7463 if (!child) {
7464 child = vfork ();
7465 if (child < 0) {
7466 perror ("vfork");
7467 _exit(2);
7468 }
7469 if (!child) {
7470 arg = getpid();
7471 write(-1, "", 0);
7472 _exit (arg);
7473 }
7474 }
7475}
7476
7477int
7478main ()
7479{
7480 pid_t parent = getpid ();
7481 pid_t child;
7482
7483 sparc_address_test (0);
7484
7485 child = vfork ();
7486
7487 if (child == 0) {
7488 /* Here is another test for sparc vfork register problems. This
7489 test uses lots of local variables, at least as many local
7490 variables as main has allocated so far including compiler
7491 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7492 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7493 reuse the register of parent for one of the local variables,
7494 since it will think that parent can't possibly be used any more
7495 in this routine. Assigning to the local variable will thus
7496 munge parent in the parent process. */
7497 pid_t
7498 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7499 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7500 /* Convince the compiler that p..p7 are live; otherwise, it might
7501 use the same hardware register for all 8 local variables. */
7502 if (p != p1 || p != p2 || p != p3 || p != p4
7503 || p != p5 || p != p6 || p != p7)
7504 _exit(1);
7505
7506 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7507 from child file descriptors. If the child closes a descriptor
7508 before it execs or exits, this munges the parent's descriptor
7509 as well. Test for this by closing stdout in the child. */
7510 _exit(close(fileno(stdout)) != 0);
7511 } else {
7512 int status;
7513 struct stat st;
7514
7515 while (wait(&status) != child)
7516 ;
7a197a62 7517 return (
ad6254c5
AK
7518 /* Was there some problem with vforking? */
7519 child < 0
7520
7521 /* Did the child fail? (This shouldn't happen.) */
7522 || status
7523
7524 /* Did the vfork/compiler bug occur? */
7525 || parent != getpid()
7526
7527 /* Did the file descriptor bug occur? */
7528 || fstat(fileno(stdout), &st) != 0
7529 );
7530 }
7531}
7532_ACEOF
7533rm -f conftest$ac_exeext
7a197a62
AK
7534if { (ac_try="$ac_link"
7535case "(($ac_try" in
7536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7538esac
ec6a6fbe
AK
7539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7540$as_echo "$ac_try_echo") >&5
7a197a62 7541 (eval "$ac_link") 2>&5
ad6254c5 7542 ac_status=$?
ec6a6fbe 7543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7545 { (case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7548esac
ec6a6fbe
AK
7549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7550$as_echo "$ac_try_echo") >&5
7a197a62 7551 (eval "$ac_try") 2>&5
ad6254c5 7552 ac_status=$?
ec6a6fbe 7553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7554 (exit $ac_status); }; }; then
7555 ac_cv_func_vfork_works=yes
7556else
ec6a6fbe
AK
7557 $as_echo "$as_me: program exited with status $ac_status" >&5
7558$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7559sed 's/^/| /' conftest.$ac_ext >&5
7560
7561( exit $ac_status )
7562ac_cv_func_vfork_works=no
7563fi
ec6a6fbe 7564rm -rf conftest.dSYM
7a197a62 7565rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7566fi
7a197a62
AK
7567
7568
ad6254c5 7569fi
ec6a6fbe
AK
7570{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7571$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
7572
7573fi;
7574if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 7575 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
7576 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7577$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7578fi
7579
7580if test "x$ac_cv_func_vfork_works" = xyes; then
7581
7582cat >>confdefs.h <<\_ACEOF
7583#define HAVE_WORKING_VFORK 1
7584_ACEOF
7585
7586else
7587
7588cat >>confdefs.h <<\_ACEOF
7589#define vfork fork
7590_ACEOF
7591
7592fi
7593if test "x$ac_cv_func_fork_works" = xyes; then
7594
7595cat >>confdefs.h <<\_ACEOF
7596#define HAVE_WORKING_FORK 1
7597_ACEOF
7598
7599fi
7600
ec6a6fbe
AK
7601{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7602$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 7603if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 7604 $as_echo_n "(cached) " >&6
ad6254c5
AK
7605else
7606 rm -f conftest.sym conftest.file
7607echo >conftest.file
7608if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7609 if test "$cross_compiling" = yes; then
7610 ac_cv_func_lstat_dereferences_slashed_symlink=no
7611else
7612 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7613/* confdefs.h. */
7614_ACEOF
7615cat confdefs.h >>conftest.$ac_ext
7616cat >>conftest.$ac_ext <<_ACEOF
7617/* end confdefs.h. */
7618$ac_includes_default
7619int
7620main ()
7621{
7622struct stat sbuf;
7623 /* Linux will dereference the symlink and fail.
8a2fc586
AK
7624 That is better in the sense that it means we will not
7625 have to compile and use the lstat wrapper. */
7a197a62 7626 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
7627 ;
7628 return 0;
7629}
7630_ACEOF
7631rm -f conftest$ac_exeext
7a197a62
AK
7632if { (ac_try="$ac_link"
7633case "(($ac_try" in
7634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7635 *) ac_try_echo=$ac_try;;
7636esac
ec6a6fbe
AK
7637eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7638$as_echo "$ac_try_echo") >&5
7a197a62 7639 (eval "$ac_link") 2>&5
ad6254c5 7640 ac_status=$?
ec6a6fbe 7641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7643 { (case "(($ac_try" in
7644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7645 *) ac_try_echo=$ac_try;;
7646esac
ec6a6fbe
AK
7647eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7648$as_echo "$ac_try_echo") >&5
7a197a62 7649 (eval "$ac_try") 2>&5
ad6254c5 7650 ac_status=$?
ec6a6fbe 7651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7652 (exit $ac_status); }; }; then
7653 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7654else
ec6a6fbe
AK
7655 $as_echo "$as_me: program exited with status $ac_status" >&5
7656$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7657sed 's/^/| /' conftest.$ac_ext >&5
7658
7659( exit $ac_status )
7660ac_cv_func_lstat_dereferences_slashed_symlink=no
7661fi
ec6a6fbe 7662rm -rf conftest.dSYM
7a197a62 7663rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7664fi
7a197a62
AK
7665
7666
ad6254c5
AK
7667else
7668 # If the `ln -s' command failed, then we probably don't even
7669 # have an lstat function.
7670 ac_cv_func_lstat_dereferences_slashed_symlink=no
7671fi
7672rm -f conftest.sym conftest.file
7673
7674fi
ec6a6fbe
AK
7675{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7676$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
7677
7678test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7679
7680cat >>confdefs.h <<_ACEOF
7681#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7682_ACEOF
7683
7684
7685if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 7686 case " $LIBOBJS " in
8a2fc586 7687 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7688 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7689 ;;
8a2fc586
AK
7690esac
7691
ad6254c5
AK
7692fi
7693
ec6a6fbe
AK
7694{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7695$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 7696if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 7697 $as_echo_n "(cached) " >&6
ad6254c5
AK
7698else
7699 if test "$cross_compiling" = yes; then
7700 ac_cv_func_lstat_empty_string_bug=yes
7701else
7702 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7703/* confdefs.h. */
7704_ACEOF
7705cat confdefs.h >>conftest.$ac_ext
7706cat >>conftest.$ac_ext <<_ACEOF
7707/* end confdefs.h. */
7708$ac_includes_default
7709int
7710main ()
7711{
7712struct stat sbuf;
7a197a62 7713 return lstat ("", &sbuf) == 0;
ad6254c5
AK
7714 ;
7715 return 0;
7716}
7717_ACEOF
7718rm -f conftest$ac_exeext
7a197a62
AK
7719if { (ac_try="$ac_link"
7720case "(($ac_try" in
7721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7722 *) ac_try_echo=$ac_try;;
7723esac
ec6a6fbe
AK
7724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7725$as_echo "$ac_try_echo") >&5
7a197a62 7726 (eval "$ac_link") 2>&5
ad6254c5 7727 ac_status=$?
ec6a6fbe 7728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7730 { (case "(($ac_try" in
7731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732 *) ac_try_echo=$ac_try;;
7733esac
ec6a6fbe
AK
7734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7735$as_echo "$ac_try_echo") >&5
7a197a62 7736 (eval "$ac_try") 2>&5
ad6254c5 7737 ac_status=$?
ec6a6fbe 7738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7739 (exit $ac_status); }; }; then
7a197a62 7740 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 7741else
ec6a6fbe
AK
7742 $as_echo "$as_me: program exited with status $ac_status" >&5
7743$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7744sed 's/^/| /' conftest.$ac_ext >&5
7745
7746( exit $ac_status )
7a197a62 7747ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 7748fi
ec6a6fbe 7749rm -rf conftest.dSYM
7a197a62 7750rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7751fi
7a197a62
AK
7752
7753
ad6254c5 7754fi
ec6a6fbe
AK
7755{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7756$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 7757if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 7758 case " $LIBOBJS " in
8a2fc586 7759 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7760 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7761 ;;
8a2fc586
AK
7762esac
7763
ad6254c5
AK
7764
7765cat >>confdefs.h <<_ACEOF
7766#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7767_ACEOF
7768
7769fi
7770
7771
7772for ac_header in stdlib.h
7773do
ec6a6fbe 7774as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7775if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7776 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7777$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7778if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7779 $as_echo_n "(cached) " >&6
ad6254c5 7780fi
ec6a6fbe
AK
7781ac_res=`eval 'as_val=${'$as_ac_Header'}
7782 $as_echo "$as_val"'`
7783 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7784$as_echo "$ac_res" >&6; }
ad6254c5
AK
7785else
7786 # Is the header compilable?
ec6a6fbe
AK
7787{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7788$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7789cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7790/* confdefs.h. */
7791_ACEOF
7792cat confdefs.h >>conftest.$ac_ext
7793cat >>conftest.$ac_ext <<_ACEOF
7794/* end confdefs.h. */
7795$ac_includes_default
7796#include <$ac_header>
7797_ACEOF
7798rm -f conftest.$ac_objext
7a197a62
AK
7799if { (ac_try="$ac_compile"
7800case "(($ac_try" in
7801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802 *) ac_try_echo=$ac_try;;
7803esac
ec6a6fbe
AK
7804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7805$as_echo "$ac_try_echo") >&5
7a197a62 7806 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7807 ac_status=$?
8a2fc586
AK
7808 grep -v '^ *+' conftest.er1 >conftest.err
7809 rm -f conftest.er1
7810 cat conftest.err >&5
ec6a6fbe 7811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7812 (exit $ac_status); } && {
7813 test -z "$ac_c_werror_flag" ||
7814 test ! -s conftest.err
7815 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7816 ac_header_compiler=yes
7817else
ec6a6fbe 7818 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7819sed 's/^/| /' conftest.$ac_ext >&5
7820
7a197a62 7821 ac_header_compiler=no
ad6254c5 7822fi
7a197a62
AK
7823
7824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7825{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7826$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7827
7828# Is the header present?
ec6a6fbe
AK
7829{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7830$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7831cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7832/* confdefs.h. */
7833_ACEOF
7834cat confdefs.h >>conftest.$ac_ext
7835cat >>conftest.$ac_ext <<_ACEOF
7836/* end confdefs.h. */
7837#include <$ac_header>
7838_ACEOF
7a197a62
AK
7839if { (ac_try="$ac_cpp conftest.$ac_ext"
7840case "(($ac_try" in
7841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7842 *) ac_try_echo=$ac_try;;
7843esac
ec6a6fbe
AK
7844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7845$as_echo "$ac_try_echo") >&5
7a197a62 7846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7847 ac_status=$?
7848 grep -v '^ *+' conftest.er1 >conftest.err
7849 rm -f conftest.er1
7850 cat conftest.err >&5
ec6a6fbe 7851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7852 (exit $ac_status); } >/dev/null && {
7853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7854 test ! -s conftest.err
7855 }; then
ad6254c5
AK
7856 ac_header_preproc=yes
7857else
ec6a6fbe 7858 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7859sed 's/^/| /' conftest.$ac_ext >&5
7860
7861 ac_header_preproc=no
7862fi
7a197a62 7863
ad6254c5 7864rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7865{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7866$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7867
7868# So? What about this header?
8a2fc586
AK
7869case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7870 yes:no: )
ec6a6fbe
AK
7871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7872$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7874$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7875 ac_header_preproc=yes
ad6254c5 7876 ;;
8a2fc586 7877 no:yes:* )
ec6a6fbe
AK
7878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7879$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7881$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7883$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7885$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7887$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7889$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7890
ad6254c5
AK
7891 ;;
7892esac
ec6a6fbe
AK
7893{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7894$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7895if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7896 $as_echo_n "(cached) " >&6
ad6254c5 7897else
8a2fc586 7898 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7899fi
ec6a6fbe
AK
7900ac_res=`eval 'as_val=${'$as_ac_Header'}
7901 $as_echo "$as_val"'`
7902 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7903$as_echo "$ac_res" >&6; }
ad6254c5
AK
7904
7905fi
ec6a6fbe
AK
7906as_val=`eval 'as_val=${'$as_ac_Header'}
7907 $as_echo "$as_val"'`
7908 if test "x$as_val" = x""yes; then
ad6254c5 7909 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7910#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7911_ACEOF
7912
7913fi
7914
7915done
7916
ec6a6fbe
AK
7917{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7918$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 7919if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 7920 $as_echo_n "(cached) " >&6
ad6254c5
AK
7921else
7922 if test "$cross_compiling" = yes; then
7923 ac_cv_func_malloc_0_nonnull=no
7924else
7925 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7926/* confdefs.h. */
7927_ACEOF
7928cat confdefs.h >>conftest.$ac_ext
7929cat >>conftest.$ac_ext <<_ACEOF
7930/* end confdefs.h. */
25fbec5b 7931#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
7932# include <stdlib.h>
7933#else
7934char *malloc ();
7935#endif
7936
7937int
7938main ()
7939{
7a197a62 7940return ! malloc (0);
ad6254c5
AK
7941 ;
7942 return 0;
7943}
7944_ACEOF
7945rm -f conftest$ac_exeext
7a197a62
AK
7946if { (ac_try="$ac_link"
7947case "(($ac_try" in
7948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949 *) ac_try_echo=$ac_try;;
7950esac
ec6a6fbe
AK
7951eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7952$as_echo "$ac_try_echo") >&5
7a197a62 7953 (eval "$ac_link") 2>&5
ad6254c5 7954 ac_status=$?
ec6a6fbe 7955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7957 { (case "(($ac_try" in
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7960esac
ec6a6fbe
AK
7961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7962$as_echo "$ac_try_echo") >&5
7a197a62 7963 (eval "$ac_try") 2>&5
ad6254c5 7964 ac_status=$?
ec6a6fbe 7965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7966 (exit $ac_status); }; }; then
7967 ac_cv_func_malloc_0_nonnull=yes
7968else
ec6a6fbe
AK
7969 $as_echo "$as_me: program exited with status $ac_status" >&5
7970$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7971sed 's/^/| /' conftest.$ac_ext >&5
7972
7973( exit $ac_status )
7974ac_cv_func_malloc_0_nonnull=no
7975fi
ec6a6fbe 7976rm -rf conftest.dSYM
7a197a62 7977rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7978fi
7a197a62
AK
7979
7980
ad6254c5 7981fi
ec6a6fbe
AK
7982{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7983$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
7984if test $ac_cv_func_malloc_0_nonnull = yes; then
7985
7986cat >>confdefs.h <<\_ACEOF
7987#define HAVE_MALLOC 1
7988_ACEOF
7989
7990else
7991 cat >>confdefs.h <<\_ACEOF
7992#define HAVE_MALLOC 0
7993_ACEOF
7994
7a197a62 7995 case " $LIBOBJS " in
8a2fc586 7996 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
7997 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7998 ;;
8a2fc586
AK
7999esac
8000
ad6254c5
AK
8001
8002cat >>confdefs.h <<\_ACEOF
8003#define malloc rpl_malloc
8004_ACEOF
8005
8006fi
8007
8008
8009
ec6a6fbe
AK
8010{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
8011$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 8012if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 8013 $as_echo_n "(cached) " >&6
ad6254c5
AK
8014else
8015 if test "$cross_compiling" = yes; then
8016 ac_cv_func_memcmp_working=no
8017else
8018 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8019/* confdefs.h. */
8020_ACEOF
8021cat confdefs.h >>conftest.$ac_ext
8022cat >>conftest.$ac_ext <<_ACEOF
8023/* end confdefs.h. */
8a2fc586 8024$ac_includes_default
ad6254c5
AK
8025int
8026main ()
8027{
8028
8029 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 8030 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 8031 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 8032 return 1;
ad6254c5
AK
8033
8034 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8035 or more and with at least one buffer not starting on a 4-byte boundary.
8036 William Lewis provided this test program. */
8037 {
8038 char foo[21];
8039 char bar[21];
8040 int i;
8041 for (i = 0; i < 4; i++)
8042 {
8a2fc586
AK
8043 char *a = foo + i;
8044 char *b = bar + i;
8045 strcpy (a, "--------01111111");
8046 strcpy (b, "--------10000000");
8047 if (memcmp (a, b, 16) >= 0)
7a197a62 8048 return 1;
ad6254c5 8049 }
7a197a62 8050 return 0;
ad6254c5
AK
8051 }
8052
8053 ;
8054 return 0;
8055}
8056_ACEOF
8057rm -f conftest$ac_exeext
7a197a62
AK
8058if { (ac_try="$ac_link"
8059case "(($ac_try" in
8060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8061 *) ac_try_echo=$ac_try;;
8062esac
ec6a6fbe
AK
8063eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8064$as_echo "$ac_try_echo") >&5
7a197a62 8065 (eval "$ac_link") 2>&5
ad6254c5 8066 ac_status=$?
ec6a6fbe 8067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8069 { (case "(($ac_try" in
8070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071 *) ac_try_echo=$ac_try;;
8072esac
ec6a6fbe
AK
8073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8074$as_echo "$ac_try_echo") >&5
7a197a62 8075 (eval "$ac_try") 2>&5
ad6254c5 8076 ac_status=$?
ec6a6fbe 8077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8078 (exit $ac_status); }; }; then
8079 ac_cv_func_memcmp_working=yes
8080else
ec6a6fbe
AK
8081 $as_echo "$as_me: program exited with status $ac_status" >&5
8082$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8083sed 's/^/| /' conftest.$ac_ext >&5
8084
8085( exit $ac_status )
8086ac_cv_func_memcmp_working=no
8087fi
ec6a6fbe 8088rm -rf conftest.dSYM
7a197a62 8089rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8090fi
7a197a62
AK
8091
8092
ad6254c5 8093fi
ec6a6fbe
AK
8094{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8095$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 8096test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 8097 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
8098 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8099 ;;
8a2fc586
AK
8100esac
8101
ad6254c5
AK
8102
8103
8104
8105for ac_header in stdlib.h unistd.h
8106do
ec6a6fbe 8107as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 8108if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
8109 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8110$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8111if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8112 $as_echo_n "(cached) " >&6
ad6254c5 8113fi
ec6a6fbe
AK
8114ac_res=`eval 'as_val=${'$as_ac_Header'}
8115 $as_echo "$as_val"'`
8116 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8117$as_echo "$ac_res" >&6; }
ad6254c5
AK
8118else
8119 # Is the header compilable?
ec6a6fbe
AK
8120{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8121$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 8122cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8123/* confdefs.h. */
8124_ACEOF
8125cat confdefs.h >>conftest.$ac_ext
8126cat >>conftest.$ac_ext <<_ACEOF
8127/* end confdefs.h. */
8128$ac_includes_default
8129#include <$ac_header>
8130_ACEOF
8131rm -f conftest.$ac_objext
7a197a62
AK
8132if { (ac_try="$ac_compile"
8133case "(($ac_try" in
8134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8135 *) ac_try_echo=$ac_try;;
8136esac
ec6a6fbe
AK
8137eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8138$as_echo "$ac_try_echo") >&5
7a197a62 8139 (eval "$ac_compile") 2>conftest.er1
ad6254c5 8140 ac_status=$?
8a2fc586
AK
8141 grep -v '^ *+' conftest.er1 >conftest.err
8142 rm -f conftest.er1
8143 cat conftest.err >&5
ec6a6fbe 8144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8145 (exit $ac_status); } && {
8146 test -z "$ac_c_werror_flag" ||
8147 test ! -s conftest.err
8148 } && test -s conftest.$ac_objext; then
ad6254c5
AK
8149 ac_header_compiler=yes
8150else
ec6a6fbe 8151 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8152sed 's/^/| /' conftest.$ac_ext >&5
8153
7a197a62 8154 ac_header_compiler=no
ad6254c5 8155fi
7a197a62
AK
8156
8157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
8158{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8159$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
8160
8161# Is the header present?
ec6a6fbe
AK
8162{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8163$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 8164cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8165/* confdefs.h. */
8166_ACEOF
8167cat confdefs.h >>conftest.$ac_ext
8168cat >>conftest.$ac_ext <<_ACEOF
8169/* end confdefs.h. */
8170#include <$ac_header>
8171_ACEOF
7a197a62
AK
8172if { (ac_try="$ac_cpp conftest.$ac_ext"
8173case "(($ac_try" in
8174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8175 *) ac_try_echo=$ac_try;;
8176esac
ec6a6fbe
AK
8177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8178$as_echo "$ac_try_echo") >&5
7a197a62 8179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
8180 ac_status=$?
8181 grep -v '^ *+' conftest.er1 >conftest.err
8182 rm -f conftest.er1
8183 cat conftest.err >&5
ec6a6fbe 8184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8185 (exit $ac_status); } >/dev/null && {
8186 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8187 test ! -s conftest.err
8188 }; then
ad6254c5
AK
8189 ac_header_preproc=yes
8190else
ec6a6fbe 8191 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8192sed 's/^/| /' conftest.$ac_ext >&5
8193
8194 ac_header_preproc=no
8195fi
7a197a62 8196
ad6254c5 8197rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
8198{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8199$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
8200
8201# So? What about this header?
8a2fc586
AK
8202case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8203 yes:no: )
ec6a6fbe
AK
8204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8205$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8207$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 8208 ac_header_preproc=yes
ad6254c5 8209 ;;
8a2fc586 8210 no:yes:* )
ec6a6fbe
AK
8211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8212$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8214$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8216$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8218$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8219 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8220$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8222$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 8223
ad6254c5
AK
8224 ;;
8225esac
ec6a6fbe
AK
8226{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8227$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8228if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8229 $as_echo_n "(cached) " >&6
ad6254c5 8230else
8a2fc586 8231 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 8232fi
ec6a6fbe
AK
8233ac_res=`eval 'as_val=${'$as_ac_Header'}
8234 $as_echo "$as_val"'`
8235 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8236$as_echo "$ac_res" >&6; }
ad6254c5
AK
8237
8238fi
ec6a6fbe
AK
8239as_val=`eval 'as_val=${'$as_ac_Header'}
8240 $as_echo "$as_val"'`
8241 if test "x$as_val" = x""yes; then
ad6254c5 8242 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8243#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8244_ACEOF
8245
8246fi
8247
8248done
8249
8250
8251for ac_func in getpagesize
8252do
ec6a6fbe
AK
8253as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8254{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8255$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8256if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8257 $as_echo_n "(cached) " >&6
ad6254c5
AK
8258else
8259 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8260/* confdefs.h. */
8261_ACEOF
8262cat confdefs.h >>conftest.$ac_ext
8263cat >>conftest.$ac_ext <<_ACEOF
8264/* end confdefs.h. */
8a2fc586
AK
8265/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8267#define $ac_func innocuous_$ac_func
8268
ad6254c5
AK
8269/* System header to define __stub macros and hopefully few prototypes,
8270 which can conflict with char $ac_func (); below.
8271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8272 <limits.h> exists even on freestanding compilers. */
8a2fc586 8273
ad6254c5
AK
8274#ifdef __STDC__
8275# include <limits.h>
8276#else
8277# include <assert.h>
8278#endif
8a2fc586
AK
8279
8280#undef $ac_func
8281
7a197a62
AK
8282/* Override any GCC internal prototype to avoid an error.
8283 Use char because int might match the return type of a GCC
8284 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8285#ifdef __cplusplus
8286extern "C"
ad6254c5 8287#endif
ad6254c5
AK
8288char $ac_func ();
8289/* The GNU C library defines this for functions which it implements
8290 to always fail with ENOSYS. Some functions are actually named
8291 something starting with __ and the normal name is an alias. */
7a197a62 8292#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8293choke me
ad6254c5
AK
8294#endif
8295
8296int
8297main ()
8298{
7a197a62 8299return $ac_func ();
ad6254c5
AK
8300 ;
8301 return 0;
8302}
8303_ACEOF
8304rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8305if { (ac_try="$ac_link"
8306case "(($ac_try" in
8307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308 *) ac_try_echo=$ac_try;;
8309esac
ec6a6fbe
AK
8310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8311$as_echo "$ac_try_echo") >&5
7a197a62 8312 (eval "$ac_link") 2>conftest.er1
ad6254c5 8313 ac_status=$?
8a2fc586
AK
8314 grep -v '^ *+' conftest.er1 >conftest.err
8315 rm -f conftest.er1
8316 cat conftest.err >&5
ec6a6fbe 8317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8318 (exit $ac_status); } && {
8319 test -z "$ac_c_werror_flag" ||
8320 test ! -s conftest.err
ec6a6fbe
AK
8321 } && test -s conftest$ac_exeext && {
8322 test "$cross_compiling" = yes ||
8323 $as_test_x conftest$ac_exeext
8324 }; then
ad6254c5
AK
8325 eval "$as_ac_var=yes"
8326else
ec6a6fbe 8327 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8328sed 's/^/| /' conftest.$ac_ext >&5
8329
7a197a62 8330 eval "$as_ac_var=no"
ad6254c5 8331fi
7a197a62 8332
ec6a6fbe 8333rm -rf conftest.dSYM
25fbec5b 8334rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8335 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8336fi
ec6a6fbe
AK
8337ac_res=`eval 'as_val=${'$as_ac_var'}
8338 $as_echo "$as_val"'`
8339 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8340$as_echo "$ac_res" >&6; }
8341as_val=`eval 'as_val=${'$as_ac_var'}
8342 $as_echo "$as_val"'`
8343 if test "x$as_val" = x""yes; then
ad6254c5 8344 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8345#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8346_ACEOF
8347
8348fi
8349done
8350
ec6a6fbe
AK
8351{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8352$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 8353if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 8354 $as_echo_n "(cached) " >&6
ad6254c5
AK
8355else
8356 if test "$cross_compiling" = yes; then
8357 ac_cv_func_mmap_fixed_mapped=no
8358else
8359 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8360/* confdefs.h. */
8361_ACEOF
8362cat confdefs.h >>conftest.$ac_ext
8363cat >>conftest.$ac_ext <<_ACEOF
8364/* end confdefs.h. */
8365$ac_includes_default
8366/* malloc might have been renamed as rpl_malloc. */
8367#undef malloc
8368
8369/* Thanks to Mike Haertel and Jim Avera for this test.
8370 Here is a matrix of mmap possibilities:
8371 mmap private not fixed
8372 mmap private fixed at somewhere currently unmapped
8373 mmap private fixed at somewhere already mapped
8374 mmap shared not fixed
8375 mmap shared fixed at somewhere currently unmapped
8376 mmap shared fixed at somewhere already mapped
8377 For private mappings, we should verify that changes cannot be read()
8378 back from the file, nor mmap's back from the file at a different
8379 address. (There have been systems where private was not correctly
8380 implemented like the infamous i386 svr4.0, and systems where the
8381 VM page cache was not coherent with the file system buffer cache
8382 like early versions of FreeBSD and possibly contemporary NetBSD.)
8383 For shared mappings, we should conversely verify that changes get
8384 propagated back to all the places they're supposed to be.
8385
8386 Grep wants private fixed already mapped.
8387 The main things grep needs to know about mmap are:
8388 * does it exist and is it safe to write into the mmap'd area
8389 * how to use it (BSD variants) */
8390
8391#include <fcntl.h>
8392#include <sys/mman.h>
8393
25fbec5b 8394#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
8395char *malloc ();
8396#endif
8397
8398/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 8399#ifndef HAVE_GETPAGESIZE
ad6254c5 8400/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 8401# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
8402# define HAVE_SYS_PARAM_H 1
8403# endif
8404
8405# ifdef _SC_PAGESIZE
8406# define getpagesize() sysconf(_SC_PAGESIZE)
8407# else /* no _SC_PAGESIZE */
25fbec5b 8408# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
8409# include <sys/param.h>
8410# ifdef EXEC_PAGESIZE
8411# define getpagesize() EXEC_PAGESIZE
8412# else /* no EXEC_PAGESIZE */
8413# ifdef NBPG
8414# define getpagesize() NBPG * CLSIZE
8415# ifndef CLSIZE
8416# define CLSIZE 1
8417# endif /* no CLSIZE */
8418# else /* no NBPG */
8419# ifdef NBPC
8420# define getpagesize() NBPC
8421# else /* no NBPC */
8422# ifdef PAGESIZE
8423# define getpagesize() PAGESIZE
8424# endif /* PAGESIZE */
8425# endif /* no NBPC */
8426# endif /* no NBPG */
8427# endif /* no EXEC_PAGESIZE */
8428# else /* no HAVE_SYS_PARAM_H */
8429# define getpagesize() 8192 /* punt totally */
8430# endif /* no HAVE_SYS_PARAM_H */
8431# endif /* no _SC_PAGESIZE */
8432
8433#endif /* no HAVE_GETPAGESIZE */
8434
8435int
8436main ()
8437{
8438 char *data, *data2, *data3;
8439 int i, pagesize;
8440 int fd;
8441
8442 pagesize = getpagesize ();
8443
8444 /* First, make a file with some known garbage in it. */
8445 data = (char *) malloc (pagesize);
8446 if (!data)
7a197a62 8447 return 1;
ad6254c5
AK
8448 for (i = 0; i < pagesize; ++i)
8449 *(data + i) = rand ();
8450 umask (0);
8451 fd = creat ("conftest.mmap", 0600);
8452 if (fd < 0)
7a197a62 8453 return 1;
ad6254c5 8454 if (write (fd, data, pagesize) != pagesize)
7a197a62 8455 return 1;
ad6254c5
AK
8456 close (fd);
8457
8458 /* Next, try to mmap the file at a fixed address which already has
8459 something else allocated at it. If we can, also make sure that
8460 we see the same garbage. */
8461 fd = open ("conftest.mmap", O_RDWR);
8462 if (fd < 0)
7a197a62 8463 return 1;
ad6254c5
AK
8464 data2 = (char *) malloc (2 * pagesize);
8465 if (!data2)
7a197a62
AK
8466 return 1;
8467 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 8468 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 8469 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 8470 return 1;
ad6254c5
AK
8471 for (i = 0; i < pagesize; ++i)
8472 if (*(data + i) != *(data2 + i))
7a197a62 8473 return 1;
ad6254c5
AK
8474
8475 /* Finally, make sure that changes to the mapped area do not
8476 percolate back to the file as seen by read(). (This is a bug on
8477 some variants of i386 svr4.0.) */
8478 for (i = 0; i < pagesize; ++i)
8479 *(data2 + i) = *(data2 + i) + 1;
8480 data3 = (char *) malloc (pagesize);
8481 if (!data3)
7a197a62 8482 return 1;
ad6254c5 8483 if (read (fd, data3, pagesize) != pagesize)
7a197a62 8484 return 1;
ad6254c5
AK
8485 for (i = 0; i < pagesize; ++i)
8486 if (*(data + i) != *(data3 + i))
7a197a62 8487 return 1;
ad6254c5 8488 close (fd);
7a197a62 8489 return 0;
ad6254c5
AK
8490}
8491_ACEOF
8492rm -f conftest$ac_exeext
7a197a62
AK
8493if { (ac_try="$ac_link"
8494case "(($ac_try" in
8495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496 *) ac_try_echo=$ac_try;;
8497esac
ec6a6fbe
AK
8498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8499$as_echo "$ac_try_echo") >&5
7a197a62 8500 (eval "$ac_link") 2>&5
ad6254c5 8501 ac_status=$?
ec6a6fbe 8502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8504 { (case "(($ac_try" in
8505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8506 *) ac_try_echo=$ac_try;;
8507esac
ec6a6fbe
AK
8508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8509$as_echo "$ac_try_echo") >&5
7a197a62 8510 (eval "$ac_try") 2>&5
ad6254c5 8511 ac_status=$?
ec6a6fbe 8512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8513 (exit $ac_status); }; }; then
8514 ac_cv_func_mmap_fixed_mapped=yes
8515else
ec6a6fbe
AK
8516 $as_echo "$as_me: program exited with status $ac_status" >&5
8517$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8518sed 's/^/| /' conftest.$ac_ext >&5
8519
8520( exit $ac_status )
8521ac_cv_func_mmap_fixed_mapped=no
8522fi
ec6a6fbe 8523rm -rf conftest.dSYM
7a197a62 8524rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8525fi
7a197a62
AK
8526
8527
ad6254c5 8528fi
ec6a6fbe
AK
8529{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8530$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
8531if test $ac_cv_func_mmap_fixed_mapped = yes; then
8532
8533cat >>confdefs.h <<\_ACEOF
8534#define HAVE_MMAP 1
8535_ACEOF
8536
8537fi
8538rm -f conftest.mmap
8539
ec6a6fbe
AK
8540{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8541$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 8542if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 8543 $as_echo_n "(cached) " >&6
ad6254c5
AK
8544else
8545 if test "$cross_compiling" = yes; then
8546 ac_cv_func_stat_empty_string_bug=yes
8547else
8548 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8549/* confdefs.h. */
8550_ACEOF
8551cat confdefs.h >>conftest.$ac_ext
8552cat >>conftest.$ac_ext <<_ACEOF
8553/* end confdefs.h. */
8554$ac_includes_default
8555int
8556main ()
8557{
8558struct stat sbuf;
7a197a62 8559 return stat ("", &sbuf) == 0;
ad6254c5
AK
8560 ;
8561 return 0;
8562}
8563_ACEOF
8564rm -f conftest$ac_exeext
7a197a62
AK
8565if { (ac_try="$ac_link"
8566case "(($ac_try" in
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8569esac
ec6a6fbe
AK
8570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8571$as_echo "$ac_try_echo") >&5
7a197a62 8572 (eval "$ac_link") 2>&5
ad6254c5 8573 ac_status=$?
ec6a6fbe 8574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8576 { (case "(($ac_try" in
8577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8578 *) ac_try_echo=$ac_try;;
8579esac
ec6a6fbe
AK
8580eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8581$as_echo "$ac_try_echo") >&5
7a197a62 8582 (eval "$ac_try") 2>&5
ad6254c5 8583 ac_status=$?
ec6a6fbe 8584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8585 (exit $ac_status); }; }; then
7a197a62 8586 ac_cv_func_stat_empty_string_bug=no
ad6254c5 8587else
ec6a6fbe
AK
8588 $as_echo "$as_me: program exited with status $ac_status" >&5
8589$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8590sed 's/^/| /' conftest.$ac_ext >&5
8591
8592( exit $ac_status )
7a197a62 8593ac_cv_func_stat_empty_string_bug=yes
ad6254c5 8594fi
ec6a6fbe 8595rm -rf conftest.dSYM
7a197a62 8596rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8597fi
7a197a62
AK
8598
8599
ad6254c5 8600fi
ec6a6fbe
AK
8601{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8602$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 8603if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 8604 case " $LIBOBJS " in
8a2fc586 8605 *" stat.$ac_objext "* ) ;;
7a197a62
AK
8606 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8607 ;;
8a2fc586
AK
8608esac
8609
ad6254c5
AK
8610
8611cat >>confdefs.h <<_ACEOF
8612#define HAVE_STAT_EMPTY_STRING_BUG 1
8613_ACEOF
8614
8615fi
8616
ec6a6fbe
AK
8617{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8618$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 8619if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 8620 $as_echo_n "(cached) " >&6
ad6254c5
AK
8621else
8622 if test "$cross_compiling" = yes; then
8623 ac_cv_func_strtod=no
8624else
8625 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8626/* confdefs.h. */
8627_ACEOF
8628cat confdefs.h >>conftest.$ac_ext
8629cat >>conftest.$ac_ext <<_ACEOF
8630/* end confdefs.h. */
8631
7a197a62
AK
8632$ac_includes_default
8633#ifndef strtod
ad6254c5 8634double strtod ();
7a197a62 8635#endif
ad6254c5
AK
8636int
8637main()
8638{
8639 {
8640 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8641 char *string = " +69";
8642 char *term;
8643 double value;
8644 value = strtod (string, &term);
8645 if (value != 69 || term != (string + 4))
7a197a62 8646 return 1;
ad6254c5
AK
8647 }
8648
8649 {
8650 /* Under Solaris 2.4, strtod returns the wrong value for the
8651 terminating character under some conditions. */
8652 char *string = "NaN";
8653 char *term;
8654 strtod (string, &term);
8655 if (term != string && *(term - 1) == 0)
7a197a62 8656 return 1;
ad6254c5 8657 }
7a197a62 8658 return 0;
ad6254c5
AK
8659}
8660
8661_ACEOF
8662rm -f conftest$ac_exeext
7a197a62
AK
8663if { (ac_try="$ac_link"
8664case "(($ac_try" in
8665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8666 *) ac_try_echo=$ac_try;;
8667esac
ec6a6fbe
AK
8668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8669$as_echo "$ac_try_echo") >&5
7a197a62 8670 (eval "$ac_link") 2>&5
ad6254c5 8671 ac_status=$?
ec6a6fbe 8672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8674 { (case "(($ac_try" in
8675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8676 *) ac_try_echo=$ac_try;;
8677esac
ec6a6fbe
AK
8678eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8679$as_echo "$ac_try_echo") >&5
7a197a62 8680 (eval "$ac_try") 2>&5
ad6254c5 8681 ac_status=$?
ec6a6fbe 8682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8683 (exit $ac_status); }; }; then
8684 ac_cv_func_strtod=yes
8685else
ec6a6fbe
AK
8686 $as_echo "$as_me: program exited with status $ac_status" >&5
8687$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8688sed 's/^/| /' conftest.$ac_ext >&5
8689
8690( exit $ac_status )
8691ac_cv_func_strtod=no
8692fi
ec6a6fbe 8693rm -rf conftest.dSYM
7a197a62 8694rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8695fi
7a197a62
AK
8696
8697
ad6254c5 8698fi
ec6a6fbe
AK
8699{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8700$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 8701if test $ac_cv_func_strtod = no; then
7a197a62 8702 case " $LIBOBJS " in
8a2fc586 8703 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
8704 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8705 ;;
8a2fc586
AK
8706esac
8707
ec6a6fbe
AK
8708{ $as_echo "$as_me:$LINENO: checking for pow" >&5
8709$as_echo_n "checking for pow... " >&6; }
ad6254c5 8710if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 8711 $as_echo_n "(cached) " >&6
ad6254c5
AK
8712else
8713 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8714/* confdefs.h. */
8715_ACEOF
8716cat confdefs.h >>conftest.$ac_ext
8717cat >>conftest.$ac_ext <<_ACEOF
8718/* end confdefs.h. */
8a2fc586
AK
8719/* Define pow to an innocuous variant, in case <limits.h> declares pow.
8720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8721#define pow innocuous_pow
8722
ad6254c5
AK
8723/* System header to define __stub macros and hopefully few prototypes,
8724 which can conflict with char pow (); below.
8725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8726 <limits.h> exists even on freestanding compilers. */
8a2fc586 8727
ad6254c5
AK
8728#ifdef __STDC__
8729# include <limits.h>
8730#else
8731# include <assert.h>
8732#endif
8a2fc586
AK
8733
8734#undef pow
8735
7a197a62
AK
8736/* Override any GCC internal prototype to avoid an error.
8737 Use char because int might match the return type of a GCC
8738 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8739#ifdef __cplusplus
8740extern "C"
ad6254c5 8741#endif
ad6254c5
AK
8742char pow ();
8743/* The GNU C library defines this for functions which it implements
8744 to always fail with ENOSYS. Some functions are actually named
8745 something starting with __ and the normal name is an alias. */
7a197a62 8746#if defined __stub_pow || defined __stub___pow
ad6254c5 8747choke me
ad6254c5
AK
8748#endif
8749
8750int
8751main ()
8752{
7a197a62 8753return pow ();
ad6254c5
AK
8754 ;
8755 return 0;
8756}
8757_ACEOF
8758rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8759if { (ac_try="$ac_link"
8760case "(($ac_try" in
8761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762 *) ac_try_echo=$ac_try;;
8763esac
ec6a6fbe
AK
8764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8765$as_echo "$ac_try_echo") >&5
7a197a62 8766 (eval "$ac_link") 2>conftest.er1
ad6254c5 8767 ac_status=$?
8a2fc586
AK
8768 grep -v '^ *+' conftest.er1 >conftest.err
8769 rm -f conftest.er1
8770 cat conftest.err >&5
ec6a6fbe 8771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8772 (exit $ac_status); } && {
8773 test -z "$ac_c_werror_flag" ||
8774 test ! -s conftest.err
ec6a6fbe
AK
8775 } && test -s conftest$ac_exeext && {
8776 test "$cross_compiling" = yes ||
8777 $as_test_x conftest$ac_exeext
8778 }; then
ad6254c5
AK
8779 ac_cv_func_pow=yes
8780else
ec6a6fbe 8781 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8782sed 's/^/| /' conftest.$ac_ext >&5
8783
7a197a62 8784 ac_cv_func_pow=no
ad6254c5 8785fi
7a197a62 8786
ec6a6fbe 8787rm -rf conftest.dSYM
25fbec5b 8788rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8789 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8790fi
ec6a6fbe
AK
8791{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8792$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
8793
8794if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
8795 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8796$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 8797if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 8798 $as_echo_n "(cached) " >&6
ad6254c5
AK
8799else
8800 ac_check_lib_save_LIBS=$LIBS
8801LIBS="-lm $LIBS"
8802cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8803/* confdefs.h. */
8804_ACEOF
8805cat confdefs.h >>conftest.$ac_ext
8806cat >>conftest.$ac_ext <<_ACEOF
8807/* end confdefs.h. */
8808
7a197a62
AK
8809/* Override any GCC internal prototype to avoid an error.
8810 Use char because int might match the return type of a GCC
8811 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8812#ifdef __cplusplus
8813extern "C"
8814#endif
ad6254c5
AK
8815char pow ();
8816int
8817main ()
8818{
7a197a62 8819return pow ();
ad6254c5
AK
8820 ;
8821 return 0;
8822}
8823_ACEOF
8824rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8825if { (ac_try="$ac_link"
8826case "(($ac_try" in
8827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8828 *) ac_try_echo=$ac_try;;
8829esac
ec6a6fbe
AK
8830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8831$as_echo "$ac_try_echo") >&5
7a197a62 8832 (eval "$ac_link") 2>conftest.er1
ad6254c5 8833 ac_status=$?
8a2fc586
AK
8834 grep -v '^ *+' conftest.er1 >conftest.err
8835 rm -f conftest.er1
8836 cat conftest.err >&5
ec6a6fbe 8837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8838 (exit $ac_status); } && {
8839 test -z "$ac_c_werror_flag" ||
8840 test ! -s conftest.err
ec6a6fbe
AK
8841 } && test -s conftest$ac_exeext && {
8842 test "$cross_compiling" = yes ||
8843 $as_test_x conftest$ac_exeext
8844 }; then
ad6254c5
AK
8845 ac_cv_lib_m_pow=yes
8846else
ec6a6fbe 8847 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8848sed 's/^/| /' conftest.$ac_ext >&5
8849
7a197a62 8850 ac_cv_lib_m_pow=no
ad6254c5 8851fi
7a197a62 8852
ec6a6fbe 8853rm -rf conftest.dSYM
25fbec5b 8854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8855 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8856LIBS=$ac_check_lib_save_LIBS
d0191583 8857fi
ec6a6fbe
AK
8858{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8859$as_echo "$ac_cv_lib_m_pow" >&6; }
8860if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
8861 POW_LIB=-lm
8862else
ec6a6fbe
AK
8863 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8864$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 8865fi
72b2cb61 8866
d0191583 8867fi
72b2cb61 8868
ad6254c5
AK
8869fi
8870
ad6254c5 8871
d0191583
JM
8872for ac_func in vprintf
8873do
ec6a6fbe
AK
8874as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8875{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8876$as_echo_n "checking for $ac_func... " >&6; }
d0191583 8877if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8878 $as_echo_n "(cached) " >&6
ad6254c5 8879else
d0191583
JM
8880 cat >conftest.$ac_ext <<_ACEOF
8881/* confdefs.h. */
8882_ACEOF
8883cat confdefs.h >>conftest.$ac_ext
8884cat >>conftest.$ac_ext <<_ACEOF
8885/* end confdefs.h. */
8886/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8888#define $ac_func innocuous_$ac_func
7a197a62 8889
d0191583
JM
8890/* System header to define __stub macros and hopefully few prototypes,
8891 which can conflict with char $ac_func (); below.
8892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8893 <limits.h> exists even on freestanding compilers. */
ad6254c5 8894
d0191583
JM
8895#ifdef __STDC__
8896# include <limits.h>
8897#else
8898# include <assert.h>
8899#endif
ad6254c5 8900
d0191583 8901#undef $ac_func
72b2cb61 8902
d0191583
JM
8903/* Override any GCC internal prototype to avoid an error.
8904 Use char because int might match the return type of a GCC
8905 builtin and then its argument prototype would still apply. */
8906#ifdef __cplusplus
8907extern "C"
8908#endif
8909char $ac_func ();
8910/* The GNU C library defines this for functions which it implements
8911 to always fail with ENOSYS. Some functions are actually named
8912 something starting with __ and the normal name is an alias. */
8913#if defined __stub_$ac_func || defined __stub___$ac_func
8914choke me
8915#endif
8916
8917int
8918main ()
8919{
8920return $ac_func ();
8921 ;
8922 return 0;
8923}
72b2cb61 8924_ACEOF
d0191583
JM
8925rm -f conftest.$ac_objext conftest$ac_exeext
8926if { (ac_try="$ac_link"
8927case "(($ac_try" in
8928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929 *) ac_try_echo=$ac_try;;
8930esac
ec6a6fbe
AK
8931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8932$as_echo "$ac_try_echo") >&5
d0191583
JM
8933 (eval "$ac_link") 2>conftest.er1
8934 ac_status=$?
8935 grep -v '^ *+' conftest.er1 >conftest.err
8936 rm -f conftest.er1
8937 cat conftest.err >&5
ec6a6fbe 8938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8939 (exit $ac_status); } && {
8940 test -z "$ac_c_werror_flag" ||
8941 test ! -s conftest.err
ec6a6fbe
AK
8942 } && test -s conftest$ac_exeext && {
8943 test "$cross_compiling" = yes ||
8944 $as_test_x conftest$ac_exeext
8945 }; then
d0191583
JM
8946 eval "$as_ac_var=yes"
8947else
ec6a6fbe 8948 $as_echo "$as_me: failed program was:" >&5
d0191583 8949sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8950
d0191583 8951 eval "$as_ac_var=no"
ad6254c5
AK
8952fi
8953
ec6a6fbe 8954rm -rf conftest.dSYM
d0191583
JM
8955rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8956 conftest$ac_exeext conftest.$ac_ext
7a197a62 8957fi
ec6a6fbe
AK
8958ac_res=`eval 'as_val=${'$as_ac_var'}
8959 $as_echo "$as_val"'`
8960 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8961$as_echo "$ac_res" >&6; }
8962as_val=`eval 'as_val=${'$as_ac_var'}
8963 $as_echo "$as_val"'`
8964 if test "x$as_val" = x""yes; then
d0191583 8965 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8966#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 8967_ACEOF
7a197a62 8968
ec6a6fbe
AK
8969{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8970$as_echo_n "checking for _doprnt... " >&6; }
d0191583 8971if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 8972 $as_echo_n "(cached) " >&6
ad6254c5 8973else
d0191583
JM
8974 cat >conftest.$ac_ext <<_ACEOF
8975/* confdefs.h. */
8976_ACEOF
8977cat confdefs.h >>conftest.$ac_ext
8978cat >>conftest.$ac_ext <<_ACEOF
8979/* end confdefs.h. */
8980/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8982#define _doprnt innocuous__doprnt
7a197a62 8983
d0191583
JM
8984/* System header to define __stub macros and hopefully few prototypes,
8985 which can conflict with char _doprnt (); below.
8986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8987 <limits.h> exists even on freestanding compilers. */
ad6254c5 8988
d0191583
JM
8989#ifdef __STDC__
8990# include <limits.h>
8991#else
8992# include <assert.h>
8993#endif
72b2cb61 8994
d0191583
JM
8995#undef _doprnt
8996
8997/* Override any GCC internal prototype to avoid an error.
8998 Use char because int might match the return type of a GCC
8999 builtin and then its argument prototype would still apply. */
9000#ifdef __cplusplus
9001extern "C"
9002#endif
9003char _doprnt ();
9004/* The GNU C library defines this for functions which it implements
9005 to always fail with ENOSYS. Some functions are actually named
9006 something starting with __ and the normal name is an alias. */
9007#if defined __stub__doprnt || defined __stub____doprnt
9008choke me
9009#endif
9010
9011int
9012main ()
9013{
9014return _doprnt ();
9015 ;
9016 return 0;
9017}
72b2cb61 9018_ACEOF
d0191583
JM
9019rm -f conftest.$ac_objext conftest$ac_exeext
9020if { (ac_try="$ac_link"
9021case "(($ac_try" in
9022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023 *) ac_try_echo=$ac_try;;
9024esac
ec6a6fbe
AK
9025eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9026$as_echo "$ac_try_echo") >&5
d0191583
JM
9027 (eval "$ac_link") 2>conftest.er1
9028 ac_status=$?
9029 grep -v '^ *+' conftest.er1 >conftest.err
9030 rm -f conftest.er1
9031 cat conftest.err >&5
ec6a6fbe 9032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
9033 (exit $ac_status); } && {
9034 test -z "$ac_c_werror_flag" ||
9035 test ! -s conftest.err
ec6a6fbe
AK
9036 } && test -s conftest$ac_exeext && {
9037 test "$cross_compiling" = yes ||
9038 $as_test_x conftest$ac_exeext
9039 }; then
d0191583
JM
9040 ac_cv_func__doprnt=yes
9041else
ec6a6fbe 9042 $as_echo "$as_me: failed program was:" >&5
d0191583 9043sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 9044
d0191583 9045 ac_cv_func__doprnt=no
ad6254c5
AK
9046fi
9047
ec6a6fbe 9048rm -rf conftest.dSYM
d0191583
JM
9049rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9050 conftest$ac_exeext conftest.$ac_ext
7a197a62 9051fi
ec6a6fbe
AK
9052{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9053$as_echo "$ac_cv_func__doprnt" >&6; }
9054if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 9055
d0191583
JM
9056cat >>confdefs.h <<\_ACEOF
9057#define HAVE_DOPRNT 1
9058_ACEOF
ad6254c5 9059
7a197a62
AK
9060fi
9061
d0191583
JM
9062fi
9063done
8b1a3214 9064
ad6254c5 9065
7a197a62 9066
9c961554 9067################################################################################
ec6a6fbe
AK
9068{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
9069$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
9070# Check whether --enable-static_link was given.
9071if test "${enable_static_link+set}" = set; then
9072 enableval=$enable_static_link; STATIC_LINK=$enableval
9073else
9074 STATIC_LINK=no
9075fi
9076
ec6a6fbe
AK
9077{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
9078$as_echo "$STATIC_LINK" >&6; }
9c961554 9079
d0191583 9080################################################################################
ad6254c5 9081
ad6254c5
AK
9082
9083################################################################################
ec6a6fbe
AK
9084{ $as_echo "$as_me:$LINENO: checking file owner" >&5
9085$as_echo_n "checking file owner... " >&6; }
39dabc84 9086OWNER=""
d0191583
JM
9087
9088
9089# Check whether --with-user was given.
9090if test "${with_user+set}" = set; then
9091 withval=$with_user; OWNER="$withval"
7a197a62
AK
9092fi
9093
ec6a6fbe
AK
9094{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
9095$as_echo "$OWNER" >&6; }
ad6254c5 9096
d0191583
JM
9097if test x$OWNER != x; then
9098 OWNER="-o $OWNER"
ad6254c5
AK
9099fi
9100
9101################################################################################
ec6a6fbe
AK
9102{ $as_echo "$as_me:$LINENO: checking group owner" >&5
9103$as_echo_n "checking group owner... " >&6; }
39dabc84 9104GROUP=""
ad6254c5 9105
d0191583
JM
9106# Check whether --with-group was given.
9107if test "${with_group+set}" = set; then
9108 withval=$with_group; GROUP="$withval"
7a197a62
AK
9109fi
9110
ec6a6fbe
AK
9111{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
9112$as_echo "$GROUP" >&6; }
d0191583
JM
9113
9114if test x$GROUP != x; then
9115 GROUP="-g $GROUP"
9116fi
ad6254c5 9117
24bbc4d7 9118################################################################################
ec6a6fbe
AK
9119{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
9120$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
9121
9122
9123# Check whether --with-device-uid was given.
9124if test "${with_device_uid+set}" = set; then
9125 withval=$with_device_uid; DM_DEVICE_UID="$withval"
9126else
9127 DM_DEVICE_UID="0"
9128fi
9129
ec6a6fbe
AK
9130{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
9131$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
9132
9133################################################################################
ec6a6fbe
AK
9134{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
9135$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
9136
9137
9138# Check whether --with-device-gid was given.
9139if test "${with_device_gid+set}" = set; then
9140 withval=$with_device_gid; DM_DEVICE_GID="$withval"
9141else
9142 DM_DEVICE_GID="0"
9143fi
9144
ec6a6fbe
AK
9145{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
9146$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 9147
93bd259b 9148################################################################################
ec6a6fbe
AK
9149{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
9150$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
9151
9152
9153# Check whether --with-device-mode was given.
9154if test "${with_device_mode+set}" = set; then
9155 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
9156else
9157 DM_DEVICE_MODE="0600"
9158fi
9159
ec6a6fbe
AK
9160{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
9161$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 9162
ad6254c5 9163################################################################################
ec6a6fbe
AK
9164{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
9165$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
9166# Check whether --enable-lvm1_fallback was given.
9167if test "${enable_lvm1_fallback+set}" = set; then
9168 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
9169else
9170 LVM1_FALLBACK=no
7a197a62
AK
9171fi
9172
ec6a6fbe
AK
9173{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
9174$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 9175
d0191583 9176if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
9177
9178cat >>confdefs.h <<\_ACEOF
d0191583 9179#define LVM1_FALLBACK 1
72b2cb61
AK
9180_ACEOF
9181
ad6254c5
AK
9182fi
9183
9184################################################################################
ec6a6fbe
AK
9185{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9186$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
9187
9188# Check whether --with-lvm1 was given.
9189if test "${with_lvm1+set}" = set; then
9190 withval=$with_lvm1; LVM1="$withval"
9191else
9192 LVM1="internal"
7a197a62
AK
9193fi
9194
ec6a6fbe
AK
9195{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9196$as_echo "$LVM1" >&6; }
ad6254c5 9197
d0191583 9198if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 9199 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 9200" >&5
ec6a6fbe 9201$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
9202" >&2;}
9203 { (exit 1); exit 1; }; }
9204fi;
9205
9206if test x$LVM1 = xinternal; then
72b2cb61
AK
9207
9208cat >>confdefs.h <<\_ACEOF
d0191583 9209#define LVM1_INTERNAL 1
72b2cb61
AK
9210_ACEOF
9211
ad6254c5
AK
9212fi
9213
9214################################################################################
ec6a6fbe
AK
9215{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9216$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
9217
9218# Check whether --with-pool was given.
9219if test "${with_pool+set}" = set; then
9220 withval=$with_pool; POOL="$withval"
ad6254c5 9221else
d0191583 9222 POOL="internal"
7a197a62
AK
9223fi
9224
ec6a6fbe
AK
9225{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
9226$as_echo "$POOL" >&6; }
ad6254c5 9227
d0191583 9228if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 9229 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 9230" >&5
ec6a6fbe 9231$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
9232" >&2;}
9233 { (exit 1); exit 1; }; }
9234fi;
7a197a62 9235
d0191583
JM
9236if test x$POOL = xinternal; then
9237
9238cat >>confdefs.h <<\_ACEOF
9239#define POOL_INTERNAL 1
9240_ACEOF
9241
9242fi
ad6254c5 9243
06f62ad1 9244################################################################################
ec6a6fbe
AK
9245{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9246$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
9247
9248# Check whether --with-cluster was given.
9249if test "${with_cluster+set}" = set; then
9250 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
9251fi
9252
ec6a6fbe
AK
9253{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9254$as_echo "$CLUSTER" >&6; }
06f62ad1 9255
d0191583 9256if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 9257 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 9258" >&5
ec6a6fbe 9259$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
9260" >&2;}
9261 { (exit 1); exit 1; }; }
d0191583 9262fi;
06f62ad1 9263
d0191583 9264if test x$CLUSTER = xinternal; then
72b2cb61
AK
9265
9266cat >>confdefs.h <<\_ACEOF
d0191583 9267#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
9268_ACEOF
9269
15d91f5a 9270fi
ad6254c5
AK
9271
9272################################################################################
ec6a6fbe
AK
9273{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9274$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 9275
d0191583
JM
9276# Check whether --with-snapshots was given.
9277if test "${with_snapshots+set}" = set; then
9278 withval=$with_snapshots; SNAPSHOTS="$withval"
9279else
9280 SNAPSHOTS="internal"
ad6254c5
AK
9281fi
9282
ec6a6fbe
AK
9283{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9284$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 9285
d0191583 9286if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 9287 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 9288" >&5
ec6a6fbe 9289$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
9290" >&2;}
9291 { (exit 1); exit 1; }; }
9292fi;
9293
9294if test x$SNAPSHOTS = xinternal; then
9295
9296cat >>confdefs.h <<\_ACEOF
9297#define SNAPSHOT_INTERNAL 1
9298_ACEOF
ad6254c5 9299
ad6254c5 9300fi
7a197a62 9301
d0191583 9302################################################################################
ec6a6fbe
AK
9303{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9304$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
9305
9306# Check whether --with-mirrors was given.
9307if test "${with_mirrors+set}" = set; then
9308 withval=$with_mirrors; MIRRORS="$withval"
9309else
9310 MIRRORS="internal"
ad6254c5 9311fi
ad6254c5 9312
ec6a6fbe
AK
9313{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9314$as_echo "$MIRRORS" >&6; }
ad6254c5 9315
d0191583 9316if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 9317 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 9318" >&5
ec6a6fbe 9319$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
9320" >&2;}
9321 { (exit 1); exit 1; }; }
9322fi;
ad6254c5 9323
d0191583 9324if test x$MIRRORS = xinternal; then
ad6254c5 9325
d0191583
JM
9326cat >>confdefs.h <<\_ACEOF
9327#define MIRRORED_INTERNAL 1
ad6254c5 9328_ACEOF
8a2fc586 9329
d0191583 9330fi
8a2fc586 9331
d0191583 9332################################################################################
ec6a6fbe
AK
9333{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9334$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
9335# Check whether --enable-readline was given.
9336if test "${enable_readline+set}" = set; then
9337 enableval=$enable_readline; READLINE=$enableval
9338else
06e459df 9339 READLINE=maybe
d0191583 9340fi
8a2fc586 9341
ec6a6fbe
AK
9342{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9343$as_echo "$READLINE" >&6; }
8a2fc586 9344
d0191583 9345################################################################################
ec6a6fbe
AK
9346{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9347$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
9348# Check whether --enable-realtime was given.
9349if test "${enable_realtime+set}" = set; then
9350 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 9351fi
ad6254c5 9352
ec6a6fbe
AK
9353{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9354$as_echo "$REALTIME" >&6; }
d0191583
JM
9355
9356################################################################################
90c80887 9357pkg_config_init() {
e2997b73
AK
9358
9359
9360if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9361 if test -n "$ac_tool_prefix"; then
9362 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9363set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9364{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9365$as_echo_n "checking for $ac_word... " >&6; }
9366if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9367 $as_echo_n "(cached) " >&6
9368else
9369 case $PKG_CONFIG in
9370 [\\/]* | ?:[\\/]*)
9371 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9372 ;;
9373 *)
9374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9375for as_dir in $PATH
9376do
9377 IFS=$as_save_IFS
9378 test -z "$as_dir" && as_dir=.
9379 for ac_exec_ext in '' $ac_executable_extensions; do
9380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9381 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9382 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9383 break 2
9384 fi
9385done
9386done
9387IFS=$as_save_IFS
9388
9389 ;;
9390esac
9391fi
9392PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9393if test -n "$PKG_CONFIG"; then
9394 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9395$as_echo "$PKG_CONFIG" >&6; }
9396else
9397 { $as_echo "$as_me:$LINENO: result: no" >&5
9398$as_echo "no" >&6; }
9399fi
9400
9401
9402fi
9403if test -z "$ac_cv_path_PKG_CONFIG"; then
9404 ac_pt_PKG_CONFIG=$PKG_CONFIG
9405 # Extract the first word of "pkg-config", so it can be a program name with args.
9406set dummy pkg-config; ac_word=$2
9407{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9408$as_echo_n "checking for $ac_word... " >&6; }
9409if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9410 $as_echo_n "(cached) " >&6
9411else
9412 case $ac_pt_PKG_CONFIG in
9413 [\\/]* | ?:[\\/]*)
9414 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9415 ;;
9416 *)
9417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9418for as_dir in $PATH
9419do
9420 IFS=$as_save_IFS
9421 test -z "$as_dir" && as_dir=.
9422 for ac_exec_ext in '' $ac_executable_extensions; do
9423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9424 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9425 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9426 break 2
9427 fi
9428done
9429done
9430IFS=$as_save_IFS
9431
9432 ;;
9433esac
9434fi
9435ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9436if test -n "$ac_pt_PKG_CONFIG"; then
9437 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9438$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9439else
9440 { $as_echo "$as_me:$LINENO: result: no" >&5
9441$as_echo "no" >&6; }
9442fi
9443
9444 if test "x$ac_pt_PKG_CONFIG" = x; then
9445 PKG_CONFIG=""
9446 else
9447 case $cross_compiling:$ac_tool_warned in
9448yes:)
9449{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9451ac_tool_warned=yes ;;
9452esac
9453 PKG_CONFIG=$ac_pt_PKG_CONFIG
9454 fi
9455else
9456 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9457fi
9458
9459fi
9460if test -n "$PKG_CONFIG"; then
9461 _pkg_min_version=0.9.0
9462 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9463$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9464 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9465 { $as_echo "$as_me:$LINENO: result: yes" >&5
9466$as_echo "yes" >&6; }
9467 else
9468 { $as_echo "$as_me:$LINENO: result: no" >&5
9469$as_echo "no" >&6; }
9470 PKG_CONFIG=""
9471 fi
9472
9473fi
9474
9475pkg_failed=no
a946372e
AK
9476{ $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
9477$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
e2997b73 9478
a946372e
AK
9479if test -n "$PKGCONFIGINIT_CFLAGS"; then
9480 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
e2997b73
AK
9481 elif test -n "$PKG_CONFIG"; then
9482 if test -n "$PKG_CONFIG" && \
a946372e
AK
9483 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9484 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
9485 ac_status=$?
9486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; then
a946372e 9488 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
e2997b73
AK
9489else
9490 pkg_failed=yes
9491fi
9492 else
9493 pkg_failed=untried
9494fi
a946372e
AK
9495if test -n "$PKGCONFIGINIT_LIBS"; then
9496 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
e2997b73
AK
9497 elif test -n "$PKG_CONFIG"; then
9498 if test -n "$PKG_CONFIG" && \
a946372e
AK
9499 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9500 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
9501 ac_status=$?
9502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); }; then
a946372e 9504 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
e2997b73
AK
9505else
9506 pkg_failed=yes
9507fi
9508 else
9509 pkg_failed=untried
9510fi
9511
9512
9513
9514if test $pkg_failed = yes; then
9515
9516if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9517 _pkg_short_errors_supported=yes
9518else
9519 _pkg_short_errors_supported=no
9520fi
9521 if test $_pkg_short_errors_supported = yes; then
a946372e 9522 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
e2997b73 9523 else
a946372e 9524 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
e2997b73
AK
9525 fi
9526 # Put the nasty error message in config.log where it belongs
a946372e 9527 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
e2997b73
AK
9528
9529 { $as_echo "$as_me:$LINENO: result: no" >&5
9530$as_echo "no" >&6; }
a946372e
AK
9531 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9532$as_echo "pkg-config initialized" >&6; }
e2997b73 9533elif test $pkg_failed = untried; then
a946372e
AK
9534 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9535$as_echo "pkg-config initialized" >&6; }
e2997b73 9536else
a946372e
AK
9537 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
9538 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
e2997b73
AK
9539 { $as_echo "$as_me:$LINENO: result: yes" >&5
9540$as_echo "yes" >&6; }
9541 :
9542fi
90c80887
AK
9543 PKGCONFIG_INIT=1
9544}
9545
9546################################################################################
9547{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9548$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
9549
9550# Check whether --with-clvmd was given.
9551if test "${with_clvmd+set}" = set; then
9552 withval=$with_clvmd; CLVMD="$withval"
9553else
9554 CLVMD="none"
9555fi
9556
9557if test x$CLVMD = xyes; then
9558 CLVMD=all
9559fi
9560{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9561$as_echo "$CLVMD" >&6; }
9562
9563if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9564 CLUSTER=internal
9565fi
9566
9567if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
9568 pkg_config_init
9569fi
9570
9571
9572if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
9573 BUILDGULM=yes
9574fi
9575if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
9576 BUILDCOROSYNC=yes
9577fi
9578if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
9579 BUILDOPENAIS=yes
9580fi
9581if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
9582 BUILDCMAN=yes
9583fi
9584
9585if test x$BUILDGULM = xyes; then
9586 if test x$BUILDCOROSYNC = xyes || \
9587 test x$BUILDOPENAIS = xyes; then
9588 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
9589$as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
9590 { (exit 1); exit 1; }; }
9591 fi
a946372e 9592fi
e2997b73 9593
a946372e
AK
9594soft_bailout() {
9595 NOTFOUND=1
9596}
e2997b73 9597
a946372e
AK
9598hard_bailout() {
9599 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
9600$as_echo "$as_me: error: bailing out" >&2;}
9601 { (exit 1); exit 1; }; }
9602}
9603
9604if test x$CLVMD = xall; then
9605 bailout=soft_bailout
9606 BUILDGULM=yes
9607 BUILDCMAN=yes
9608 BUILDCOROSYNC=yes
9609 BUILDOPENAIS=yes
e2997b73 9610else
a946372e 9611 bailout=hard_bailout
e2997b73 9612fi
a946372e
AK
9613
9614check_lib_no_libs() {
9615 lib_no_libs_arg1=$1
9616 shift
9617 lib_no_libs_arg2=$1
9618 shift
9619 lib_no_libs_args=$@
9620
9621as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
9622{ $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
9623$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
9624if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9625 $as_echo_n "(cached) " >&6
9626else
9627 ac_check_lib_save_LIBS=$LIBS
9628LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
9629cat >conftest.$ac_ext <<_ACEOF
9630/* confdefs.h. */
9631_ACEOF
9632cat confdefs.h >>conftest.$ac_ext
9633cat >>conftest.$ac_ext <<_ACEOF
9634/* end confdefs.h. */
9635
9636/* Override any GCC internal prototype to avoid an error.
9637 Use char because int might match the return type of a GCC
9638 builtin and then its argument prototype would still apply. */
9639#ifdef __cplusplus
9640extern "C"
9641#endif
9642char $lib_no_libs_arg2 ();
9643int
9644main ()
9645{
9646return $lib_no_libs_arg2 ();
9647 ;
9648 return 0;
9649}
9650_ACEOF
9651rm -f conftest.$ac_objext conftest$ac_exeext
9652if { (ac_try="$ac_link"
9653case "(($ac_try" in
9654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9655 *) ac_try_echo=$ac_try;;
9656esac
9657eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9658$as_echo "$ac_try_echo") >&5
9659 (eval "$ac_link") 2>conftest.er1
e2997b73 9660 ac_status=$?
a946372e
AK
9661 grep -v '^ *+' conftest.er1 >conftest.err
9662 rm -f conftest.er1
9663 cat conftest.err >&5
e2997b73 9664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a946372e
AK
9665 (exit $ac_status); } && {
9666 test -z "$ac_c_werror_flag" ||
9667 test ! -s conftest.err
9668 } && test -s conftest$ac_exeext && {
9669 test "$cross_compiling" = yes ||
9670 $as_test_x conftest$ac_exeext
9671 }; then
9672 eval "$as_ac_Lib=yes"
e2997b73 9673else
a946372e
AK
9674 $as_echo "$as_me: failed program was:" >&5
9675sed 's/^/| /' conftest.$ac_ext >&5
e2997b73 9676
a946372e
AK
9677 eval "$as_ac_Lib=no"
9678fi
e2997b73 9679
a946372e
AK
9680rm -rf conftest.dSYM
9681rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9682 conftest$ac_exeext conftest.$ac_ext
9683LIBS=$ac_check_lib_save_LIBS
9684fi
9685ac_res=`eval 'as_val=${'$as_ac_Lib'}
9686 $as_echo "$as_val"'`
9687 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9688$as_echo "$ac_res" >&6; }
9689as_val=`eval 'as_val=${'$as_ac_Lib'}
9690 $as_echo "$as_val"'`
9691 if test "x$as_val" = x""yes; then
9692 cat >>confdefs.h <<_ACEOF
9693#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
9694_ACEOF
e2997b73 9695
a946372e 9696 LIBS="-l$lib_no_libs_arg1 $LIBS"
e2997b73 9697
e2997b73 9698else
a946372e 9699 $bailout
e2997b73 9700fi
e2997b73 9701
a946372e
AK
9702 LIBS=$ac_check_lib_save_LIBS
9703}
9704
9705if test x$BUILDGULM = xyes; then
e2997b73
AK
9706
9707pkg_failed=no
a946372e
AK
9708{ $as_echo "$as_me:$LINENO: checking for CCS" >&5
9709$as_echo_n "checking for CCS... " >&6; }
e2997b73 9710
a946372e
AK
9711if test -n "$CCS_CFLAGS"; then
9712 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
e2997b73
AK
9713 elif test -n "$PKG_CONFIG"; then
9714 if test -n "$PKG_CONFIG" && \
a946372e
AK
9715 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9716 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
9717 ac_status=$?
9718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; then
a946372e 9720 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
e2997b73
AK
9721else
9722 pkg_failed=yes
9723fi
9724 else
9725 pkg_failed=untried
9726fi
a946372e
AK
9727if test -n "$CCS_LIBS"; then
9728 pkg_cv_CCS_LIBS="$CCS_LIBS"
e2997b73
AK
9729 elif test -n "$PKG_CONFIG"; then
9730 if test -n "$PKG_CONFIG" && \
a946372e
AK
9731 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9732 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
9733 ac_status=$?
9734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); }; then
a946372e 9736 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
e2997b73
AK
9737else
9738 pkg_failed=yes
9739fi
9740 else
9741 pkg_failed=untried
9742fi
9743
9744
9745
9746if test $pkg_failed = yes; then
9747
9748if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9749 _pkg_short_errors_supported=yes
9750else
9751 _pkg_short_errors_supported=no
9752fi
9753 if test $_pkg_short_errors_supported = yes; then
a946372e 9754 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
e2997b73 9755 else
a946372e 9756 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
e2997b73
AK
9757 fi
9758 # Put the nasty error message in config.log where it belongs
a946372e 9759 echo "$CCS_PKG_ERRORS" >&5
e2997b73
AK
9760
9761 { $as_echo "$as_me:$LINENO: result: no" >&5
9762$as_echo "no" >&6; }
a946372e 9763 NOTFOUND=0
e2997b73 9764
a946372e
AK
9765for ac_header in ccs.h
9766do
9767as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9768if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9769 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9770$as_echo_n "checking for $ac_header... " >&6; }
9771if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9772 $as_echo_n "(cached) " >&6
d0191583 9773fi
a946372e
AK
9774ac_res=`eval 'as_val=${'$as_ac_Header'}
9775 $as_echo "$as_val"'`
9776 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9777$as_echo "$ac_res" >&6; }
fc54be10 9778else
a946372e
AK
9779 # Is the header compilable?
9780{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9781$as_echo_n "checking $ac_header usability... " >&6; }
9782cat >conftest.$ac_ext <<_ACEOF
9783/* confdefs.h. */
9784_ACEOF
9785cat confdefs.h >>conftest.$ac_ext
9786cat >>conftest.$ac_ext <<_ACEOF
9787/* end confdefs.h. */
9788$ac_includes_default
9789#include <$ac_header>
9790_ACEOF
9791rm -f conftest.$ac_objext
9792if { (ac_try="$ac_compile"
9793case "(($ac_try" in
9794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795 *) ac_try_echo=$ac_try;;
9796esac
9797eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9798$as_echo "$ac_try_echo") >&5
9799 (eval "$ac_compile") 2>conftest.er1
9800 ac_status=$?
9801 grep -v '^ *+' conftest.er1 >conftest.err
9802 rm -f conftest.er1
9803 cat conftest.err >&5
9804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); } && {
9806 test -z "$ac_c_werror_flag" ||
9807 test ! -s conftest.err
9808 } && test -s conftest.$ac_objext; then
9809 ac_header_compiler=yes
9810else
9811 $as_echo "$as_me: failed program was:" >&5
9812sed 's/^/| /' conftest.$ac_ext >&5
d0191583 9813
a946372e 9814 ac_header_compiler=no
d0191583
JM
9815fi
9816
a946372e
AK
9817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9818{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9819$as_echo "$ac_header_compiler" >&6; }
fddafd51 9820
a946372e
AK
9821# Is the header present?
9822{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9823$as_echo_n "checking $ac_header presence... " >&6; }
9824cat >conftest.$ac_ext <<_ACEOF
9825/* confdefs.h. */
9826_ACEOF
9827cat confdefs.h >>conftest.$ac_ext
9828cat >>conftest.$ac_ext <<_ACEOF
9829/* end confdefs.h. */
9830#include <$ac_header>
9831_ACEOF
9832if { (ac_try="$ac_cpp conftest.$ac_ext"
9833case "(($ac_try" in
9834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835 *) ac_try_echo=$ac_try;;
9836esac
9837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9838$as_echo "$ac_try_echo") >&5
9839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9840 ac_status=$?
9841 grep -v '^ *+' conftest.er1 >conftest.err
9842 rm -f conftest.er1
9843 cat conftest.err >&5
9844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } >/dev/null && {
9846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9847 test ! -s conftest.err
9848 }; then
9849 ac_header_preproc=yes
9850else
9851 $as_echo "$as_me: failed program was:" >&5
9852sed 's/^/| /' conftest.$ac_ext >&5
9853
9854 ac_header_preproc=no
9855fi
9856
9857rm -f conftest.err conftest.$ac_ext
9858{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9859$as_echo "$ac_header_preproc" >&6; }
9860
9861# So? What about this header?
9862case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9863 yes:no: )
9864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9865$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9867$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9868 ac_header_preproc=yes
9869 ;;
9870 no:yes:* )
9871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9872$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9874$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9876$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9878$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9880$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9882$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9883
9884 ;;
9885esac
9886{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9887$as_echo_n "checking for $ac_header... " >&6; }
9888if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9889 $as_echo_n "(cached) " >&6
9890else
9891 eval "$as_ac_Header=\$ac_header_preproc"
9892fi
9893ac_res=`eval 'as_val=${'$as_ac_Header'}
9894 $as_echo "$as_val"'`
9895 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9896$as_echo "$ac_res" >&6; }
9897
9898fi
9899as_val=`eval 'as_val=${'$as_ac_Header'}
9900 $as_echo "$as_val"'`
9901 if test "x$as_val" = x""yes; then
9902 cat >>confdefs.h <<_ACEOF
9903#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9904_ACEOF
9905
9906else
9907 $bailout
9908fi
9909
9910done
9911
9912 check_lib_no_libs ccs ccs_connect
9913 if test $NOTFOUND = 0; then
9914 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9915$as_echo "no pkg for libccs, using -lccs" >&6; }
9916 CCS_LIBS="-lccs"
9917 HAVE_CCS=yes
9918 fi
9919elif test $pkg_failed = untried; then
9920 NOTFOUND=0
9921
9922for ac_header in ccs.h
9923do
9924as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9925if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9926 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9927$as_echo_n "checking for $ac_header... " >&6; }
9928if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9929 $as_echo_n "(cached) " >&6
9930fi
9931ac_res=`eval 'as_val=${'$as_ac_Header'}
9932 $as_echo "$as_val"'`
9933 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9934$as_echo "$ac_res" >&6; }
9935else
9936 # Is the header compilable?
9937{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9938$as_echo_n "checking $ac_header usability... " >&6; }
9939cat >conftest.$ac_ext <<_ACEOF
9940/* confdefs.h. */
9941_ACEOF
9942cat confdefs.h >>conftest.$ac_ext
9943cat >>conftest.$ac_ext <<_ACEOF
9944/* end confdefs.h. */
9945$ac_includes_default
9946#include <$ac_header>
9947_ACEOF
9948rm -f conftest.$ac_objext
9949if { (ac_try="$ac_compile"
9950case "(($ac_try" in
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9953esac
9954eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9955$as_echo "$ac_try_echo") >&5
9956 (eval "$ac_compile") 2>conftest.er1
9957 ac_status=$?
9958 grep -v '^ *+' conftest.er1 >conftest.err
9959 rm -f conftest.er1
9960 cat conftest.err >&5
9961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); } && {
9963 test -z "$ac_c_werror_flag" ||
9964 test ! -s conftest.err
9965 } && test -s conftest.$ac_objext; then
9966 ac_header_compiler=yes
9967else
9968 $as_echo "$as_me: failed program was:" >&5
9969sed 's/^/| /' conftest.$ac_ext >&5
9970
9971 ac_header_compiler=no
9972fi
9973
9974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9975{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9976$as_echo "$ac_header_compiler" >&6; }
9977
9978# Is the header present?
9979{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9980$as_echo_n "checking $ac_header presence... " >&6; }
9981cat >conftest.$ac_ext <<_ACEOF
9982/* confdefs.h. */
9983_ACEOF
9984cat confdefs.h >>conftest.$ac_ext
9985cat >>conftest.$ac_ext <<_ACEOF
9986/* end confdefs.h. */
9987#include <$ac_header>
9988_ACEOF
9989if { (ac_try="$ac_cpp conftest.$ac_ext"
9990case "(($ac_try" in
9991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9992 *) ac_try_echo=$ac_try;;
9993esac
9994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9995$as_echo "$ac_try_echo") >&5
9996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9997 ac_status=$?
9998 grep -v '^ *+' conftest.er1 >conftest.err
9999 rm -f conftest.er1
10000 cat conftest.err >&5
10001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } >/dev/null && {
10003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10004 test ! -s conftest.err
10005 }; then
10006 ac_header_preproc=yes
10007else
10008 $as_echo "$as_me: failed program was:" >&5
10009sed 's/^/| /' conftest.$ac_ext >&5
10010
10011 ac_header_preproc=no
10012fi
10013
10014rm -f conftest.err conftest.$ac_ext
10015{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10016$as_echo "$ac_header_preproc" >&6; }
10017
10018# So? What about this header?
10019case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10020 yes:no: )
10021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10022$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10024$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10025 ac_header_preproc=yes
10026 ;;
10027 no:yes:* )
10028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10029$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10031$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10033$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10035$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10037$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10039$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10040
10041 ;;
10042esac
10043{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10044$as_echo_n "checking for $ac_header... " >&6; }
10045if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10046 $as_echo_n "(cached) " >&6
10047else
10048 eval "$as_ac_Header=\$ac_header_preproc"
10049fi
10050ac_res=`eval 'as_val=${'$as_ac_Header'}
10051 $as_echo "$as_val"'`
10052 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10053$as_echo "$ac_res" >&6; }
10054
10055fi
10056as_val=`eval 'as_val=${'$as_ac_Header'}
10057 $as_echo "$as_val"'`
10058 if test "x$as_val" = x""yes; then
10059 cat >>confdefs.h <<_ACEOF
10060#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10061_ACEOF
10062
10063else
10064 $bailout
10065fi
10066
10067done
10068
10069 check_lib_no_libs ccs ccs_connect
10070 if test $NOTFOUND = 0; then
10071 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
10072$as_echo "no pkg for libccs, using -lccs" >&6; }
10073 CCS_LIBS="-lccs"
10074 HAVE_CCS=yes
10075 fi
10076else
10077 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
10078 CCS_LIBS=$pkg_cv_CCS_LIBS
10079 { $as_echo "$as_me:$LINENO: result: yes" >&5
10080$as_echo "yes" >&6; }
10081 HAVE_CCS=yes
10082fi
10083
10084pkg_failed=no
10085{ $as_echo "$as_me:$LINENO: checking for GULM" >&5
10086$as_echo_n "checking for GULM... " >&6; }
10087
10088if test -n "$GULM_CFLAGS"; then
10089 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
10090 elif test -n "$PKG_CONFIG"; then
10091 if test -n "$PKG_CONFIG" && \
10092 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10093 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10094 ac_status=$?
10095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; then
10097 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
10098else
10099 pkg_failed=yes
10100fi
10101 else
10102 pkg_failed=untried
10103fi
10104if test -n "$GULM_LIBS"; then
10105 pkg_cv_GULM_LIBS="$GULM_LIBS"
10106 elif test -n "$PKG_CONFIG"; then
10107 if test -n "$PKG_CONFIG" && \
10108 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10109 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10110 ac_status=$?
10111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; then
10113 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
10114else
10115 pkg_failed=yes
10116fi
10117 else
10118 pkg_failed=untried
10119fi
10120
10121
10122
10123if test $pkg_failed = yes; then
10124
10125if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10126 _pkg_short_errors_supported=yes
10127else
10128 _pkg_short_errors_supported=no
10129fi
10130 if test $_pkg_short_errors_supported = yes; then
10131 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
10132 else
10133 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
10134 fi
10135 # Put the nasty error message in config.log where it belongs
10136 echo "$GULM_PKG_ERRORS" >&5
10137
10138 { $as_echo "$as_me:$LINENO: result: no" >&5
10139$as_echo "no" >&6; }
10140 NOTFOUND=0
10141
10142for ac_header in libgulm.h
10143do
10144as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10145if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10146 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10147$as_echo_n "checking for $ac_header... " >&6; }
10148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10149 $as_echo_n "(cached) " >&6
10150fi
10151ac_res=`eval 'as_val=${'$as_ac_Header'}
10152 $as_echo "$as_val"'`
10153 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10154$as_echo "$ac_res" >&6; }
10155else
10156 # Is the header compilable?
10157{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10158$as_echo_n "checking $ac_header usability... " >&6; }
10159cat >conftest.$ac_ext <<_ACEOF
10160/* confdefs.h. */
10161_ACEOF
10162cat confdefs.h >>conftest.$ac_ext
10163cat >>conftest.$ac_ext <<_ACEOF
10164/* end confdefs.h. */
10165$ac_includes_default
10166#include <$ac_header>
10167_ACEOF
10168rm -f conftest.$ac_objext
10169if { (ac_try="$ac_compile"
10170case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10173esac
10174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10175$as_echo "$ac_try_echo") >&5
10176 (eval "$ac_compile") 2>conftest.er1
10177 ac_status=$?
10178 grep -v '^ *+' conftest.er1 >conftest.err
10179 rm -f conftest.er1
10180 cat conftest.err >&5
10181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } && {
10183 test -z "$ac_c_werror_flag" ||
10184 test ! -s conftest.err
10185 } && test -s conftest.$ac_objext; then
10186 ac_header_compiler=yes
10187else
10188 $as_echo "$as_me: failed program was:" >&5
10189sed 's/^/| /' conftest.$ac_ext >&5
10190
10191 ac_header_compiler=no
10192fi
10193
10194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10195{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10196$as_echo "$ac_header_compiler" >&6; }
10197
10198# Is the header present?
10199{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10200$as_echo_n "checking $ac_header presence... " >&6; }
10201cat >conftest.$ac_ext <<_ACEOF
10202/* confdefs.h. */
10203_ACEOF
10204cat confdefs.h >>conftest.$ac_ext
10205cat >>conftest.$ac_ext <<_ACEOF
10206/* end confdefs.h. */
10207#include <$ac_header>
10208_ACEOF
10209if { (ac_try="$ac_cpp conftest.$ac_ext"
10210case "(($ac_try" in
10211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212 *) ac_try_echo=$ac_try;;
10213esac
10214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10215$as_echo "$ac_try_echo") >&5
10216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10217 ac_status=$?
10218 grep -v '^ *+' conftest.er1 >conftest.err
10219 rm -f conftest.er1
10220 cat conftest.err >&5
10221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } >/dev/null && {
10223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10224 test ! -s conftest.err
10225 }; then
10226 ac_header_preproc=yes
10227else
10228 $as_echo "$as_me: failed program was:" >&5
10229sed 's/^/| /' conftest.$ac_ext >&5
10230
10231 ac_header_preproc=no
10232fi
10233
10234rm -f conftest.err conftest.$ac_ext
10235{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10236$as_echo "$ac_header_preproc" >&6; }
10237
10238# So? What about this header?
10239case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10240 yes:no: )
10241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10242$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10244$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10245 ac_header_preproc=yes
10246 ;;
10247 no:yes:* )
10248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10249$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10250 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10251$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10253$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10255$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10257$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10259$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10260
10261 ;;
10262esac
10263{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10264$as_echo_n "checking for $ac_header... " >&6; }
10265if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10266 $as_echo_n "(cached) " >&6
10267else
10268 eval "$as_ac_Header=\$ac_header_preproc"
10269fi
10270ac_res=`eval 'as_val=${'$as_ac_Header'}
10271 $as_echo "$as_val"'`
10272 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10273$as_echo "$ac_res" >&6; }
10274
10275fi
10276as_val=`eval 'as_val=${'$as_ac_Header'}
10277 $as_echo "$as_val"'`
10278 if test "x$as_val" = x""yes; then
10279 cat >>confdefs.h <<_ACEOF
10280#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10281_ACEOF
10282
10283else
10284 $bailout
10285fi
10286
10287done
10288
10289 check_lib_no_libs gulm lg_core_login
10290 if test $NOTFOUND = 0; then
10291 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10292$as_echo "no pkg for libgulm, using -lgulm" >&6; }
10293 GULM_LIBS="-lgulm"
10294 HAVE_GULM=yes
10295 fi
10296elif test $pkg_failed = untried; then
10297 NOTFOUND=0
10298
10299for ac_header in libgulm.h
10300do
10301as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10302if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10303 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10304$as_echo_n "checking for $ac_header... " >&6; }
10305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10306 $as_echo_n "(cached) " >&6
10307fi
10308ac_res=`eval 'as_val=${'$as_ac_Header'}
10309 $as_echo "$as_val"'`
10310 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10311$as_echo "$ac_res" >&6; }
10312else
10313 # Is the header compilable?
10314{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10315$as_echo_n "checking $ac_header usability... " >&6; }
10316cat >conftest.$ac_ext <<_ACEOF
10317/* confdefs.h. */
10318_ACEOF
10319cat confdefs.h >>conftest.$ac_ext
10320cat >>conftest.$ac_ext <<_ACEOF
10321/* end confdefs.h. */
10322$ac_includes_default
10323#include <$ac_header>
10324_ACEOF
10325rm -f conftest.$ac_objext
10326if { (ac_try="$ac_compile"
10327case "(($ac_try" in
10328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10330esac
10331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10332$as_echo "$ac_try_echo") >&5
10333 (eval "$ac_compile") 2>conftest.er1
10334 ac_status=$?
10335 grep -v '^ *+' conftest.er1 >conftest.err
10336 rm -f conftest.er1
10337 cat conftest.err >&5
10338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } && {
10340 test -z "$ac_c_werror_flag" ||
10341 test ! -s conftest.err
10342 } && test -s conftest.$ac_objext; then
10343 ac_header_compiler=yes
10344else
10345 $as_echo "$as_me: failed program was:" >&5
10346sed 's/^/| /' conftest.$ac_ext >&5
10347
10348 ac_header_compiler=no
10349fi
10350
10351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10352{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10353$as_echo "$ac_header_compiler" >&6; }
10354
10355# Is the header present?
10356{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10357$as_echo_n "checking $ac_header presence... " >&6; }
10358cat >conftest.$ac_ext <<_ACEOF
10359/* confdefs.h. */
10360_ACEOF
10361cat confdefs.h >>conftest.$ac_ext
10362cat >>conftest.$ac_ext <<_ACEOF
10363/* end confdefs.h. */
10364#include <$ac_header>
10365_ACEOF
10366if { (ac_try="$ac_cpp conftest.$ac_ext"
10367case "(($ac_try" in
10368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10369 *) ac_try_echo=$ac_try;;
10370esac
10371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10372$as_echo "$ac_try_echo") >&5
10373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10374 ac_status=$?
10375 grep -v '^ *+' conftest.er1 >conftest.err
10376 rm -f conftest.er1
10377 cat conftest.err >&5
10378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); } >/dev/null && {
10380 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10381 test ! -s conftest.err
10382 }; then
10383 ac_header_preproc=yes
10384else
10385 $as_echo "$as_me: failed program was:" >&5
10386sed 's/^/| /' conftest.$ac_ext >&5
10387
10388 ac_header_preproc=no
10389fi
10390
10391rm -f conftest.err conftest.$ac_ext
10392{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10393$as_echo "$ac_header_preproc" >&6; }
10394
10395# So? What about this header?
10396case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10397 yes:no: )
10398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10399$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10400 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10401$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10402 ac_header_preproc=yes
10403 ;;
10404 no:yes:* )
10405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10406$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10408$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10410$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10412$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10414$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10416$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10417
10418 ;;
10419esac
10420{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10421$as_echo_n "checking for $ac_header... " >&6; }
10422if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10423 $as_echo_n "(cached) " >&6
10424else
10425 eval "$as_ac_Header=\$ac_header_preproc"
10426fi
10427ac_res=`eval 'as_val=${'$as_ac_Header'}
10428 $as_echo "$as_val"'`
10429 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10430$as_echo "$ac_res" >&6; }
10431
10432fi
10433as_val=`eval 'as_val=${'$as_ac_Header'}
10434 $as_echo "$as_val"'`
10435 if test "x$as_val" = x""yes; then
10436 cat >>confdefs.h <<_ACEOF
10437#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10438_ACEOF
10439
10440else
10441 $bailout
10442fi
10443
10444done
10445
10446 check_lib_no_libs gulm lg_core_login
10447 if test $NOTFOUND = 0; then
10448 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10449$as_echo "no pkg for libgulm, using -lgulm" >&6; }
10450 GULM_LIBS="-lgulm"
10451 HAVE_GULM=yes
10452 fi
10453else
10454 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
10455 GULM_LIBS=$pkg_cv_GULM_LIBS
10456 { $as_echo "$as_me:$LINENO: result: yes" >&5
10457$as_echo "yes" >&6; }
10458 HAVE_GULM=yes
10459fi
10460fi
10461
10462if test x$BUILDCMAN = xyes; then
10463
10464pkg_failed=no
10465{ $as_echo "$as_me:$LINENO: checking for CMAN" >&5
10466$as_echo_n "checking for CMAN... " >&6; }
10467
10468if test -n "$CMAN_CFLAGS"; then
10469 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
10470 elif test -n "$PKG_CONFIG"; then
10471 if test -n "$PKG_CONFIG" && \
10472 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10473 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10474 ac_status=$?
10475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; then
10477 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
10478else
10479 pkg_failed=yes
10480fi
10481 else
10482 pkg_failed=untried
10483fi
10484if test -n "$CMAN_LIBS"; then
10485 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
10486 elif test -n "$PKG_CONFIG"; then
10487 if test -n "$PKG_CONFIG" && \
10488 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10489 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10490 ac_status=$?
10491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); }; then
10493 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
10494else
10495 pkg_failed=yes
10496fi
10497 else
10498 pkg_failed=untried
10499fi
10500
10501
10502
10503if test $pkg_failed = yes; then
10504
10505if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10506 _pkg_short_errors_supported=yes
10507else
10508 _pkg_short_errors_supported=no
10509fi
10510 if test $_pkg_short_errors_supported = yes; then
10511 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
10512 else
10513 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
10514 fi
10515 # Put the nasty error message in config.log where it belongs
10516 echo "$CMAN_PKG_ERRORS" >&5
10517
10518 { $as_echo "$as_me:$LINENO: result: no" >&5
10519$as_echo "no" >&6; }
10520 NOTFOUND=0
10521
10522for ac_header in libcman.h
10523do
10524as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10525if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10526 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10527$as_echo_n "checking for $ac_header... " >&6; }
10528if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10529 $as_echo_n "(cached) " >&6
10530fi
10531ac_res=`eval 'as_val=${'$as_ac_Header'}
10532 $as_echo "$as_val"'`
10533 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10534$as_echo "$ac_res" >&6; }
10535else
10536 # Is the header compilable?
10537{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10538$as_echo_n "checking $ac_header usability... " >&6; }
10539cat >conftest.$ac_ext <<_ACEOF
10540/* confdefs.h. */
10541_ACEOF
10542cat confdefs.h >>conftest.$ac_ext
10543cat >>conftest.$ac_ext <<_ACEOF
10544/* end confdefs.h. */
10545$ac_includes_default
10546#include <$ac_header>
10547_ACEOF
10548rm -f conftest.$ac_objext
10549if { (ac_try="$ac_compile"
10550case "(($ac_try" in
10551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552 *) ac_try_echo=$ac_try;;
10553esac
10554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10555$as_echo "$ac_try_echo") >&5
10556 (eval "$ac_compile") 2>conftest.er1
10557 ac_status=$?
10558 grep -v '^ *+' conftest.er1 >conftest.err
10559 rm -f conftest.er1
10560 cat conftest.err >&5
10561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } && {
10563 test -z "$ac_c_werror_flag" ||
10564 test ! -s conftest.err
10565 } && test -s conftest.$ac_objext; then
10566 ac_header_compiler=yes
10567else
10568 $as_echo "$as_me: failed program was:" >&5
10569sed 's/^/| /' conftest.$ac_ext >&5
10570
10571 ac_header_compiler=no
10572fi
10573
10574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10575{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10576$as_echo "$ac_header_compiler" >&6; }
10577
10578# Is the header present?
10579{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10580$as_echo_n "checking $ac_header presence... " >&6; }
10581cat >conftest.$ac_ext <<_ACEOF
10582/* confdefs.h. */
10583_ACEOF
10584cat confdefs.h >>conftest.$ac_ext
10585cat >>conftest.$ac_ext <<_ACEOF
10586/* end confdefs.h. */
10587#include <$ac_header>
10588_ACEOF
10589if { (ac_try="$ac_cpp conftest.$ac_ext"
10590case "(($ac_try" in
10591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592 *) ac_try_echo=$ac_try;;
10593esac
10594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10595$as_echo "$ac_try_echo") >&5
10596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10597 ac_status=$?
10598 grep -v '^ *+' conftest.er1 >conftest.err
10599 rm -f conftest.er1
10600 cat conftest.err >&5
10601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } >/dev/null && {
10603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10604 test ! -s conftest.err
10605 }; then
10606 ac_header_preproc=yes
10607else
10608 $as_echo "$as_me: failed program was:" >&5
10609sed 's/^/| /' conftest.$ac_ext >&5
10610
10611 ac_header_preproc=no
10612fi
10613
10614rm -f conftest.err conftest.$ac_ext
10615{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10616$as_echo "$ac_header_preproc" >&6; }
10617
10618# So? What about this header?
10619case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10620 yes:no: )
10621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10622$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10624$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10625 ac_header_preproc=yes
10626 ;;
10627 no:yes:* )
10628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10629$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10631$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10633$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10635$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10637$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10639$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10640
10641 ;;
10642esac
10643{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10644$as_echo_n "checking for $ac_header... " >&6; }
10645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10646 $as_echo_n "(cached) " >&6
10647else
10648 eval "$as_ac_Header=\$ac_header_preproc"
10649fi
10650ac_res=`eval 'as_val=${'$as_ac_Header'}
10651 $as_echo "$as_val"'`
10652 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10653$as_echo "$ac_res" >&6; }
10654
10655fi
10656as_val=`eval 'as_val=${'$as_ac_Header'}
10657 $as_echo "$as_val"'`
10658 if test "x$as_val" = x""yes; then
10659 cat >>confdefs.h <<_ACEOF
10660#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10661_ACEOF
10662
10663else
10664 $bailout
10665fi
10666
10667done
10668
10669 check_lib_no_libs cman cman_init
10670 if test $NOTFOUND = 0; then
10671 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10672$as_echo "no pkg for libcman, using -lcman" >&6; }
10673 CMAN_LIBS="-lcman"
10674 HAVE_CMAN=yes
10675 fi
10676elif test $pkg_failed = untried; then
10677 NOTFOUND=0
10678
10679for ac_header in libcman.h
10680do
10681as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10682if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10683 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10684$as_echo_n "checking for $ac_header... " >&6; }
10685if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10686 $as_echo_n "(cached) " >&6
10687fi
10688ac_res=`eval 'as_val=${'$as_ac_Header'}
10689 $as_echo "$as_val"'`
10690 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10691$as_echo "$ac_res" >&6; }
10692else
10693 # Is the header compilable?
10694{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10695$as_echo_n "checking $ac_header usability... " >&6; }
10696cat >conftest.$ac_ext <<_ACEOF
10697/* confdefs.h. */
10698_ACEOF
10699cat confdefs.h >>conftest.$ac_ext
10700cat >>conftest.$ac_ext <<_ACEOF
10701/* end confdefs.h. */
10702$ac_includes_default
10703#include <$ac_header>
10704_ACEOF
10705rm -f conftest.$ac_objext
10706if { (ac_try="$ac_compile"
10707case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10710esac
10711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10712$as_echo "$ac_try_echo") >&5
10713 (eval "$ac_compile") 2>conftest.er1
10714 ac_status=$?
10715 grep -v '^ *+' conftest.er1 >conftest.err
10716 rm -f conftest.er1
10717 cat conftest.err >&5
10718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } && {
10720 test -z "$ac_c_werror_flag" ||
10721 test ! -s conftest.err
10722 } && test -s conftest.$ac_objext; then
10723 ac_header_compiler=yes
10724else
10725 $as_echo "$as_me: failed program was:" >&5
10726sed 's/^/| /' conftest.$ac_ext >&5
10727
10728 ac_header_compiler=no
10729fi
10730
10731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10732{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10733$as_echo "$ac_header_compiler" >&6; }
10734
10735# Is the header present?
10736{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10737$as_echo_n "checking $ac_header presence... " >&6; }
10738cat >conftest.$ac_ext <<_ACEOF
10739/* confdefs.h. */
10740_ACEOF
10741cat confdefs.h >>conftest.$ac_ext
10742cat >>conftest.$ac_ext <<_ACEOF
10743/* end confdefs.h. */
10744#include <$ac_header>
10745_ACEOF
10746if { (ac_try="$ac_cpp conftest.$ac_ext"
10747case "(($ac_try" in
10748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749 *) ac_try_echo=$ac_try;;
10750esac
10751eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10752$as_echo "$ac_try_echo") >&5
10753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10754 ac_status=$?
10755 grep -v '^ *+' conftest.er1 >conftest.err
10756 rm -f conftest.er1
10757 cat conftest.err >&5
10758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); } >/dev/null && {
10760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10761 test ! -s conftest.err
10762 }; then
10763 ac_header_preproc=yes
10764else
10765 $as_echo "$as_me: failed program was:" >&5
10766sed 's/^/| /' conftest.$ac_ext >&5
10767
10768 ac_header_preproc=no
10769fi
10770
10771rm -f conftest.err conftest.$ac_ext
10772{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10773$as_echo "$ac_header_preproc" >&6; }
10774
10775# So? What about this header?
10776case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10777 yes:no: )
10778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10779$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10781$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10782 ac_header_preproc=yes
10783 ;;
10784 no:yes:* )
10785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10786$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10788$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10790$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10792$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10794$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10795 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10796$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10797
10798 ;;
10799esac
10800{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10801$as_echo_n "checking for $ac_header... " >&6; }
10802if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10803 $as_echo_n "(cached) " >&6
10804else
10805 eval "$as_ac_Header=\$ac_header_preproc"
10806fi
10807ac_res=`eval 'as_val=${'$as_ac_Header'}
10808 $as_echo "$as_val"'`
10809 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10810$as_echo "$ac_res" >&6; }
10811
10812fi
10813as_val=`eval 'as_val=${'$as_ac_Header'}
10814 $as_echo "$as_val"'`
10815 if test "x$as_val" = x""yes; then
10816 cat >>confdefs.h <<_ACEOF
10817#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10818_ACEOF
10819
10820else
10821 $bailout
10822fi
10823
10824done
10825
10826 check_lib_no_libs cman cman_init
10827 if test $NOTFOUND = 0; then
10828 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10829$as_echo "no pkg for libcman, using -lcman" >&6; }
10830 CMAN_LIBS="-lcman"
10831 HAVE_CMAN=yes
10832 fi
10833else
10834 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
10835 CMAN_LIBS=$pkg_cv_CMAN_LIBS
10836 { $as_echo "$as_me:$LINENO: result: yes" >&5
10837$as_echo "yes" >&6; }
10838 HAVE_CMAN=yes
10839fi
10840 CHECKCONFDB=yes
10841 CHECKDLM=yes
10842fi
10843
10844if test x$BUILDCOROSYNC = xyes || \
10845 test x$BUILDOPENAIS = xyes; then
10846
10847pkg_failed=no
10848{ $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
10849$as_echo_n "checking for COROSYNC... " >&6; }
10850
10851if test -n "$COROSYNC_CFLAGS"; then
10852 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
10853 elif test -n "$PKG_CONFIG"; then
10854 if test -n "$PKG_CONFIG" && \
10855 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10856 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10857 ac_status=$?
10858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; then
10860 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
10861else
10862 pkg_failed=yes
10863fi
10864 else
10865 pkg_failed=untried
10866fi
10867if test -n "$COROSYNC_LIBS"; then
10868 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
10869 elif test -n "$PKG_CONFIG"; then
10870 if test -n "$PKG_CONFIG" && \
10871 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10872 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10873 ac_status=$?
10874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); }; then
10876 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
10877else
10878 pkg_failed=yes
10879fi
10880 else
10881 pkg_failed=untried
10882fi
10883
10884
10885
10886if test $pkg_failed = yes; then
10887
10888if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10889 _pkg_short_errors_supported=yes
10890else
10891 _pkg_short_errors_supported=no
10892fi
10893 if test $_pkg_short_errors_supported = yes; then
10894 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
10895 else
10896 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
10897 fi
10898 # Put the nasty error message in config.log where it belongs
10899 echo "$COROSYNC_PKG_ERRORS" >&5
10900
10901 { $as_echo "$as_me:$LINENO: result: no" >&5
10902$as_echo "no" >&6; }
10903 $bailout
10904elif test $pkg_failed = untried; then
10905 $bailout
10906else
10907 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
10908 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
10909 { $as_echo "$as_me:$LINENO: result: yes" >&5
10910$as_echo "yes" >&6; }
10911 HAVE_COROSYNC=yes
10912fi
10913 CHECKCONFDB=yes
10914fi
10915
10916if test x$BUILDCOROSYNC = xyes; then
10917
10918pkg_failed=no
10919{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
10920$as_echo_n "checking for QUORUM... " >&6; }
10921
10922if test -n "$QUORUM_CFLAGS"; then
10923 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
10924 elif test -n "$PKG_CONFIG"; then
10925 if test -n "$PKG_CONFIG" && \
10926 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10927 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10928 ac_status=$?
10929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; then
10931 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
10932else
10933 pkg_failed=yes
10934fi
10935 else
10936 pkg_failed=untried
10937fi
10938if test -n "$QUORUM_LIBS"; then
10939 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
10940 elif test -n "$PKG_CONFIG"; then
10941 if test -n "$PKG_CONFIG" && \
10942 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10943 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10944 ac_status=$?
10945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); }; then
10947 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
10948else
10949 pkg_failed=yes
10950fi
10951 else
10952 pkg_failed=untried
10953fi
10954
10955
10956
10957if test $pkg_failed = yes; then
10958
10959if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10960 _pkg_short_errors_supported=yes
10961else
10962 _pkg_short_errors_supported=no
10963fi
10964 if test $_pkg_short_errors_supported = yes; then
10965 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
10966 else
10967 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
10968 fi
10969 # Put the nasty error message in config.log where it belongs
10970 echo "$QUORUM_PKG_ERRORS" >&5
10971
10972 { $as_echo "$as_me:$LINENO: result: no" >&5
10973$as_echo "no" >&6; }
10974 $bailout
10975elif test $pkg_failed = untried; then
10976 $bailout
10977else
10978 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
10979 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
10980 { $as_echo "$as_me:$LINENO: result: yes" >&5
10981$as_echo "yes" >&6; }
10982 HAVE_QUORUM=yes
10983fi
10984 CHECKCPG=yes
10985 CHECKDLM=yes
10986fi
10987
10988if test x$BUILDOPENAIS = xyes; then
10989
10990pkg_failed=no
10991{ $as_echo "$as_me:$LINENO: checking for SALCK" >&5
10992$as_echo_n "checking for SALCK... " >&6; }
10993
10994if test -n "$SALCK_CFLAGS"; then
10995 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
10996 elif test -n "$PKG_CONFIG"; then
10997 if test -n "$PKG_CONFIG" && \
10998 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
10999 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
11000 ac_status=$?
11001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; then
11003 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
11004else
11005 pkg_failed=yes
11006fi
11007 else
11008 pkg_failed=untried
11009fi
11010if test -n "$SALCK_LIBS"; then
11011 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
11012 elif test -n "$PKG_CONFIG"; then
11013 if test -n "$PKG_CONFIG" && \
11014 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
11015 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
11016 ac_status=$?
11017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; then
11019 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
11020else
11021 pkg_failed=yes
11022fi
11023 else
11024 pkg_failed=untried
11025fi
11026
11027
11028
11029if test $pkg_failed = yes; then
11030
11031if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11032 _pkg_short_errors_supported=yes
11033else
11034 _pkg_short_errors_supported=no
11035fi
11036 if test $_pkg_short_errors_supported = yes; then
11037 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
11038 else
11039 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
11040 fi
11041 # Put the nasty error message in config.log where it belongs
11042 echo "$SALCK_PKG_ERRORS" >&5
11043
11044 { $as_echo "$as_me:$LINENO: result: no" >&5
11045$as_echo "no" >&6; }
11046 $bailout
11047elif test $pkg_failed = untried; then
11048 $bailout
11049else
11050 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
11051 SALCK_LIBS=$pkg_cv_SALCK_LIBS
11052 { $as_echo "$as_me:$LINENO: result: yes" >&5
11053$as_echo "yes" >&6; }
11054 HAVE_SALCK=yes
11055fi
11056 CHECKCPG=yes
11057fi
11058
11059
11060
11061if test x$CHECKCONFDB = xyes; then
11062
11063pkg_failed=no
11064{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
11065$as_echo_n "checking for CONFDB... " >&6; }
11066
11067if test -n "$CONFDB_CFLAGS"; then
11068 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
11069 elif test -n "$PKG_CONFIG"; then
11070 if test -n "$PKG_CONFIG" && \
11071 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11072 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11073 ac_status=$?
11074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; then
11076 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
11077else
11078 pkg_failed=yes
11079fi
11080 else
11081 pkg_failed=untried
11082fi
11083if test -n "$CONFDB_LIBS"; then
11084 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
11085 elif test -n "$PKG_CONFIG"; then
11086 if test -n "$PKG_CONFIG" && \
11087 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11088 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11089 ac_status=$?
11090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); }; then
11092 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
11093else
11094 pkg_failed=yes
11095fi
11096 else
11097 pkg_failed=untried
11098fi
11099
11100
11101
11102if test $pkg_failed = yes; then
11103
11104if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11105 _pkg_short_errors_supported=yes
11106else
11107 _pkg_short_errors_supported=no
11108fi
11109 if test $_pkg_short_errors_supported = yes; then
11110 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
11111 else
11112 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
11113 fi
11114 # Put the nasty error message in config.log where it belongs
11115 echo "$CONFDB_PKG_ERRORS" >&5
11116
11117 { $as_echo "$as_me:$LINENO: result: no" >&5
11118$as_echo "no" >&6; }
11119 HAVE_CONFDB=no
11120elif test $pkg_failed = untried; then
11121 HAVE_CONFDB=no
11122else
11123 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
11124 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
11125 { $as_echo "$as_me:$LINENO: result: yes" >&5
11126$as_echo "yes" >&6; }
11127 HAVE_CONFDB=yes
11128fi
11129
11130
11131for ac_header in corosync/confdb.h
11132do
11133as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11134if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11135 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11136$as_echo_n "checking for $ac_header... " >&6; }
11137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11138 $as_echo_n "(cached) " >&6
11139fi
11140ac_res=`eval 'as_val=${'$as_ac_Header'}
11141 $as_echo "$as_val"'`
11142 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11143$as_echo "$ac_res" >&6; }
11144else
11145 # Is the header compilable?
11146{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11147$as_echo_n "checking $ac_header usability... " >&6; }
11148cat >conftest.$ac_ext <<_ACEOF
11149/* confdefs.h. */
11150_ACEOF
11151cat confdefs.h >>conftest.$ac_ext
11152cat >>conftest.$ac_ext <<_ACEOF
11153/* end confdefs.h. */
11154$ac_includes_default
11155#include <$ac_header>
11156_ACEOF
11157rm -f conftest.$ac_objext
11158if { (ac_try="$ac_compile"
11159case "(($ac_try" in
11160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161 *) ac_try_echo=$ac_try;;
11162esac
11163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11164$as_echo "$ac_try_echo") >&5
11165 (eval "$ac_compile") 2>conftest.er1
11166 ac_status=$?
11167 grep -v '^ *+' conftest.er1 >conftest.err
11168 rm -f conftest.er1
11169 cat conftest.err >&5
11170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); } && {
11172 test -z "$ac_c_werror_flag" ||
11173 test ! -s conftest.err
11174 } && test -s conftest.$ac_objext; then
11175 ac_header_compiler=yes
11176else
11177 $as_echo "$as_me: failed program was:" >&5
11178sed 's/^/| /' conftest.$ac_ext >&5
11179
11180 ac_header_compiler=no
11181fi
11182
11183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11184{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11185$as_echo "$ac_header_compiler" >&6; }
11186
11187# Is the header present?
11188{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11189$as_echo_n "checking $ac_header presence... " >&6; }
11190cat >conftest.$ac_ext <<_ACEOF
11191/* confdefs.h. */
11192_ACEOF
11193cat confdefs.h >>conftest.$ac_ext
11194cat >>conftest.$ac_ext <<_ACEOF
11195/* end confdefs.h. */
11196#include <$ac_header>
11197_ACEOF
11198if { (ac_try="$ac_cpp conftest.$ac_ext"
11199case "(($ac_try" in
11200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11201 *) ac_try_echo=$ac_try;;
11202esac
11203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11204$as_echo "$ac_try_echo") >&5
11205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11206 ac_status=$?
11207 grep -v '^ *+' conftest.er1 >conftest.err
11208 rm -f conftest.er1
11209 cat conftest.err >&5
11210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); } >/dev/null && {
11212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11213 test ! -s conftest.err
11214 }; then
11215 ac_header_preproc=yes
11216else
11217 $as_echo "$as_me: failed program was:" >&5
11218sed 's/^/| /' conftest.$ac_ext >&5
11219
11220 ac_header_preproc=no
11221fi
11222
11223rm -f conftest.err conftest.$ac_ext
11224{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11225$as_echo "$ac_header_preproc" >&6; }
11226
11227# So? What about this header?
11228case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11229 yes:no: )
11230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11231$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11233$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11234 ac_header_preproc=yes
11235 ;;
11236 no:yes:* )
11237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11238$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11240$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11242$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11244$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11246$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11248$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11249
11250 ;;
11251esac
11252{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11253$as_echo_n "checking for $ac_header... " >&6; }
11254if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11255 $as_echo_n "(cached) " >&6
11256else
11257 eval "$as_ac_Header=\$ac_header_preproc"
11258fi
11259ac_res=`eval 'as_val=${'$as_ac_Header'}
11260 $as_echo "$as_val"'`
11261 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11262$as_echo "$ac_res" >&6; }
11263
11264fi
11265as_val=`eval 'as_val=${'$as_ac_Header'}
11266 $as_echo "$as_val"'`
11267 if test "x$as_val" = x""yes; then
11268 cat >>confdefs.h <<_ACEOF
11269#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11270_ACEOF
11271 HAVE_CONFDB_H=yes
11272else
11273 HAVE_CONFDB_H=no
11274fi
11275
11276done
11277
11278
11279 if test x$HAVE_CONFDB != xyes && \
11280 test x$HAVE_CONFDB_H = xyes; then
11281 check_lib_no_libs confdb confdb_initialize
11282 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
11283$as_echo "no pkg for confdb, using -lconfdb" >&6; }
11284 CONFDB_LIBS="-lconfdb"
11285 HAVE_CONFDB=yes
11286 fi
11287
11288 if test x$BUILDCOROSYNC = xyes && \
11289 test x$HAVE_CONFDB != xyes &&
11290 test x$CLVMD != xall; then
11291 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
11292$as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
11293 { (exit 1); exit 1; }; }
11294 fi
11295fi
11296
11297if test x$CHECKCPG = xyes; then
11298
11299pkg_failed=no
11300{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
11301$as_echo_n "checking for CPG... " >&6; }
11302
11303if test -n "$CPG_CFLAGS"; then
11304 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11305 elif test -n "$PKG_CONFIG"; then
11306 if test -n "$PKG_CONFIG" && \
11307 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11308 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11309 ac_status=$?
11310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; then
11312 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11313else
11314 pkg_failed=yes
11315fi
11316 else
11317 pkg_failed=untried
11318fi
11319if test -n "$CPG_LIBS"; then
11320 pkg_cv_CPG_LIBS="$CPG_LIBS"
11321 elif test -n "$PKG_CONFIG"; then
11322 if test -n "$PKG_CONFIG" && \
11323 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11324 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11325 ac_status=$?
11326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; then
11328 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11329else
11330 pkg_failed=yes
11331fi
11332 else
11333 pkg_failed=untried
11334fi
11335
11336
11337
11338if test $pkg_failed = yes; then
11339
11340if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11341 _pkg_short_errors_supported=yes
11342else
11343 _pkg_short_errors_supported=no
11344fi
11345 if test $_pkg_short_errors_supported = yes; then
11346 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11347 else
11348 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11349 fi
11350 # Put the nasty error message in config.log where it belongs
11351 echo "$CPG_PKG_ERRORS" >&5
11352
11353 { $as_echo "$as_me:$LINENO: result: no" >&5
11354$as_echo "no" >&6; }
11355 $bailout
11356elif test $pkg_failed = untried; then
11357 $bailout
11358else
11359 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11360 CPG_LIBS=$pkg_cv_CPG_LIBS
11361 { $as_echo "$as_me:$LINENO: result: yes" >&5
11362$as_echo "yes" >&6; }
11363 HAVE_CPG=yes
11364fi
11365fi
11366
11367if test x$CHECKDLM = xyes; then
11368
11369pkg_failed=no
11370{ $as_echo "$as_me:$LINENO: checking for DLM" >&5
11371$as_echo_n "checking for DLM... " >&6; }
11372
11373if test -n "$DLM_CFLAGS"; then
11374 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
11375 elif test -n "$PKG_CONFIG"; then
11376 if test -n "$PKG_CONFIG" && \
11377 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11378 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11379 ac_status=$?
11380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; then
11382 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
11383else
11384 pkg_failed=yes
11385fi
11386 else
11387 pkg_failed=untried
11388fi
11389if test -n "$DLM_LIBS"; then
11390 pkg_cv_DLM_LIBS="$DLM_LIBS"
11391 elif test -n "$PKG_CONFIG"; then
11392 if test -n "$PKG_CONFIG" && \
11393 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11394 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11395 ac_status=$?
11396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); }; then
11398 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
11399else
11400 pkg_failed=yes
11401fi
11402 else
11403 pkg_failed=untried
11404fi
11405
11406
11407
11408if test $pkg_failed = yes; then
11409
11410if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11411 _pkg_short_errors_supported=yes
11412else
11413 _pkg_short_errors_supported=no
11414fi
11415 if test $_pkg_short_errors_supported = yes; then
11416 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
11417 else
11418 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
11419 fi
11420 # Put the nasty error message in config.log where it belongs
11421 echo "$DLM_PKG_ERRORS" >&5
11422
11423 { $as_echo "$as_me:$LINENO: result: no" >&5
11424$as_echo "no" >&6; }
11425 NOTFOUND=0
11426
11427for ac_header in libdlm.h
11428do
11429as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11430if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11431 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11432$as_echo_n "checking for $ac_header... " >&6; }
11433if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11434 $as_echo_n "(cached) " >&6
11435fi
11436ac_res=`eval 'as_val=${'$as_ac_Header'}
11437 $as_echo "$as_val"'`
11438 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11439$as_echo "$ac_res" >&6; }
11440else
11441 # Is the header compilable?
11442{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11443$as_echo_n "checking $ac_header usability... " >&6; }
11444cat >conftest.$ac_ext <<_ACEOF
11445/* confdefs.h. */
11446_ACEOF
11447cat confdefs.h >>conftest.$ac_ext
11448cat >>conftest.$ac_ext <<_ACEOF
11449/* end confdefs.h. */
11450$ac_includes_default
11451#include <$ac_header>
11452_ACEOF
11453rm -f conftest.$ac_objext
11454if { (ac_try="$ac_compile"
11455case "(($ac_try" in
11456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11457 *) ac_try_echo=$ac_try;;
11458esac
11459eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11460$as_echo "$ac_try_echo") >&5
11461 (eval "$ac_compile") 2>conftest.er1
11462 ac_status=$?
11463 grep -v '^ *+' conftest.er1 >conftest.err
11464 rm -f conftest.er1
11465 cat conftest.err >&5
11466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); } && {
11468 test -z "$ac_c_werror_flag" ||
11469 test ! -s conftest.err
11470 } && test -s conftest.$ac_objext; then
11471 ac_header_compiler=yes
11472else
11473 $as_echo "$as_me: failed program was:" >&5
11474sed 's/^/| /' conftest.$ac_ext >&5
11475
11476 ac_header_compiler=no
11477fi
11478
11479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11480{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11481$as_echo "$ac_header_compiler" >&6; }
11482
11483# Is the header present?
11484{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11485$as_echo_n "checking $ac_header presence... " >&6; }
11486cat >conftest.$ac_ext <<_ACEOF
11487/* confdefs.h. */
11488_ACEOF
11489cat confdefs.h >>conftest.$ac_ext
11490cat >>conftest.$ac_ext <<_ACEOF
11491/* end confdefs.h. */
11492#include <$ac_header>
11493_ACEOF
11494if { (ac_try="$ac_cpp conftest.$ac_ext"
11495case "(($ac_try" in
11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497 *) ac_try_echo=$ac_try;;
11498esac
11499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11500$as_echo "$ac_try_echo") >&5
11501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11502 ac_status=$?
11503 grep -v '^ *+' conftest.er1 >conftest.err
11504 rm -f conftest.er1
11505 cat conftest.err >&5
11506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); } >/dev/null && {
11508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11509 test ! -s conftest.err
11510 }; then
11511 ac_header_preproc=yes
11512else
11513 $as_echo "$as_me: failed program was:" >&5
11514sed 's/^/| /' conftest.$ac_ext >&5
11515
11516 ac_header_preproc=no
11517fi
11518
11519rm -f conftest.err conftest.$ac_ext
11520{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11521$as_echo "$ac_header_preproc" >&6; }
11522
11523# So? What about this header?
11524case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11525 yes:no: )
11526 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11527$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11528 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11529$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11530 ac_header_preproc=yes
11531 ;;
11532 no:yes:* )
11533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11534$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11536$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11538$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11540$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11542$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11544$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11545
11546 ;;
11547esac
11548{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11549$as_echo_n "checking for $ac_header... " >&6; }
11550if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11551 $as_echo_n "(cached) " >&6
11552else
11553 eval "$as_ac_Header=\$ac_header_preproc"
11554fi
11555ac_res=`eval 'as_val=${'$as_ac_Header'}
11556 $as_echo "$as_val"'`
11557 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11558$as_echo "$ac_res" >&6; }
11559
11560fi
11561as_val=`eval 'as_val=${'$as_ac_Header'}
11562 $as_echo "$as_val"'`
11563 if test "x$as_val" = x""yes; then
11564 cat >>confdefs.h <<_ACEOF
11565#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11566_ACEOF
11567
11568else
11569 $bailout
11570fi
11571
11572done
11573
11574 check_lib_no_libs dlm dlm_lock -lpthread
11575 if test $NOTFOUND = 0; then
11576 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11577$as_echo "no pkg for libdlm, using -ldlm" >&6; }
11578 DLM_LIBS="-ldlm -lpthread"
11579 HAVE_DLM=yes
11580 fi
11581elif test $pkg_failed = untried; then
11582 NOTFOUND=0
11583
11584for ac_header in libdlm.h
11585do
11586as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11587if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11588 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11589$as_echo_n "checking for $ac_header... " >&6; }
11590if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11591 $as_echo_n "(cached) " >&6
11592fi
11593ac_res=`eval 'as_val=${'$as_ac_Header'}
11594 $as_echo "$as_val"'`
11595 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11596$as_echo "$ac_res" >&6; }
11597else
11598 # Is the header compilable?
11599{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11600$as_echo_n "checking $ac_header usability... " >&6; }
11601cat >conftest.$ac_ext <<_ACEOF
11602/* confdefs.h. */
11603_ACEOF
11604cat confdefs.h >>conftest.$ac_ext
11605cat >>conftest.$ac_ext <<_ACEOF
11606/* end confdefs.h. */
11607$ac_includes_default
11608#include <$ac_header>
11609_ACEOF
11610rm -f conftest.$ac_objext
11611if { (ac_try="$ac_compile"
11612case "(($ac_try" in
11613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11615esac
11616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11617$as_echo "$ac_try_echo") >&5
11618 (eval "$ac_compile") 2>conftest.er1
11619 ac_status=$?
11620 grep -v '^ *+' conftest.er1 >conftest.err
11621 rm -f conftest.er1
11622 cat conftest.err >&5
11623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } && {
11625 test -z "$ac_c_werror_flag" ||
11626 test ! -s conftest.err
11627 } && test -s conftest.$ac_objext; then
11628 ac_header_compiler=yes
11629else
11630 $as_echo "$as_me: failed program was:" >&5
11631sed 's/^/| /' conftest.$ac_ext >&5
11632
11633 ac_header_compiler=no
11634fi
11635
11636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11637{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11638$as_echo "$ac_header_compiler" >&6; }
11639
11640# Is the header present?
11641{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11642$as_echo_n "checking $ac_header presence... " >&6; }
11643cat >conftest.$ac_ext <<_ACEOF
11644/* confdefs.h. */
11645_ACEOF
11646cat confdefs.h >>conftest.$ac_ext
11647cat >>conftest.$ac_ext <<_ACEOF
11648/* end confdefs.h. */
11649#include <$ac_header>
11650_ACEOF
11651if { (ac_try="$ac_cpp conftest.$ac_ext"
11652case "(($ac_try" in
11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654 *) ac_try_echo=$ac_try;;
11655esac
11656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11657$as_echo "$ac_try_echo") >&5
11658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11659 ac_status=$?
11660 grep -v '^ *+' conftest.er1 >conftest.err
11661 rm -f conftest.er1
11662 cat conftest.err >&5
11663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } >/dev/null && {
11665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11666 test ! -s conftest.err
11667 }; then
11668 ac_header_preproc=yes
11669else
11670 $as_echo "$as_me: failed program was:" >&5
11671sed 's/^/| /' conftest.$ac_ext >&5
11672
11673 ac_header_preproc=no
11674fi
11675
11676rm -f conftest.err conftest.$ac_ext
11677{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11678$as_echo "$ac_header_preproc" >&6; }
11679
11680# So? What about this header?
11681case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11682 yes:no: )
11683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11684$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11686$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11687 ac_header_preproc=yes
11688 ;;
11689 no:yes:* )
11690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11691$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11693$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11695$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11697$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11699$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11701$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11702
11703 ;;
11704esac
11705{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11706$as_echo_n "checking for $ac_header... " >&6; }
11707if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11708 $as_echo_n "(cached) " >&6
11709else
11710 eval "$as_ac_Header=\$ac_header_preproc"
11711fi
11712ac_res=`eval 'as_val=${'$as_ac_Header'}
11713 $as_echo "$as_val"'`
11714 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11715$as_echo "$ac_res" >&6; }
11716
11717fi
11718as_val=`eval 'as_val=${'$as_ac_Header'}
11719 $as_echo "$as_val"'`
11720 if test "x$as_val" = x""yes; then
11721 cat >>confdefs.h <<_ACEOF
11722#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11723_ACEOF
11724
11725else
11726 $bailout
11727fi
11728
11729done
11730
11731 check_lib_no_libs dlm dlm_lock -lpthread
11732 if test $NOTFOUND = 0; then
11733 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11734$as_echo "no pkg for libdlm, using -ldlm" >&6; }
11735 DLM_LIBS="-ldlm -lpthread"
11736 HAVE_DLM=yes
11737 fi
11738else
11739 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
11740 DLM_LIBS=$pkg_cv_DLM_LIBS
11741 { $as_echo "$as_me:$LINENO: result: yes" >&5
11742$as_echo "yes" >&6; }
11743 HAVE_DLM=yes
11744fi
11745fi
11746
11747if test x$CLVMD = xall; then
8c222979 11748 CLVMD=none
a946372e
AK
11749 if test x$HAVE_CCS = xyes && \
11750 test x$HAVE_GULM = xyes; then
8c222979
FDN
11751 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
11752$as_echo "Enabling clvmd gulm cluster manager" >&6; }
11753 CLVMD="$CLVMD,gulm"
a946372e
AK
11754 fi
11755 if test x$HAVE_CMAN = xyes && \
11756 test x$HAVE_DLM = xyes; then
8c222979
FDN
11757 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
11758$as_echo "Enabling clvmd cman cluster manager" >&6; }
11759 CLVMD="$CLVMD,cman"
a946372e
AK
11760 fi
11761 if test x$HAVE_COROSYNC = xyes && \
11762 test x$HAVE_QUORUM = xyes && \
11763 test x$HAVE_CPG = xyes && \
11764 test x$HAVE_DLM = xyes && \
11765 test x$HAVE_CONFDB = xyes; then
8c222979
FDN
11766 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
11767$as_echo "Enabling clvmd corosync cluster manager" >&6; }
11768 CLVMD="$CLVMD,corosync"
a946372e
AK
11769 fi
11770 if test x$HAVE_COROSYNC = xyes && \
11771 test x$HAVE_CPG = xyes && \
11772 test x$HAVE_SALCK = xyes; then
8c222979
FDN
11773 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
11774$as_echo "Enabling clvmd openais cluster manager" >&6; }
11775 CLVMD="$CLVMD,openais"
11776 fi
11777 if test x$CLVMD = xnone; then
11778 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
11779$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
a946372e 11780 fi
a946372e
AK
11781fi
11782
11783################################################################################
66fd4529
AK
11784{ $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
11785$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
11786# Check whether --enable-cmirrord was given.
11787if test "${enable_cmirrord+set}" = set; then
11788 enableval=$enable_cmirrord; CMIRRORD=$enableval
11789else
11790 CMIRRORD=no
11791fi
11792
11793{ $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
11794$as_echo "$CMIRRORD" >&6; }
11795
11796BUILD_CMIRRORD=$CMIRRORD
11797
11798################################################################################
11799
11800
11801if test "x$BUILD_CMIRRORD" = xyes; then
11802
11803# Check whether --with-cmirrord-pidfile was given.
11804if test "${with_cmirrord_pidfile+set}" = set; then
11805 withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF
11806#define CMIRRORD_PIDFILE "$withval"
11807_ACEOF
11808
11809else
11810 cat >>confdefs.h <<_ACEOF
11811#define CMIRRORD_PIDFILE "/var/run/cmirrord.pid"
11812_ACEOF
11813
a946372e
AK
11814fi
11815
66fd4529 11816fi
a946372e 11817
66fd4529
AK
11818################################################################################
11819if [ "x$BUILD_CMIRRORD" = xyes ]; then
90c80887
AK
11820 if test x$PKGCONFIG_INIT != x1; then
11821 pkg_config_init
11822 fi
11823
11824pkg_failed=no
11825{ $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
11826$as_echo_n "checking for SACKPT... " >&6; }
11827
11828if test -n "$SACKPT_CFLAGS"; then
11829 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
11830 elif test -n "$PKG_CONFIG"; then
11831 if test -n "$PKG_CONFIG" && \
11832 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11833 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11834 ac_status=$?
11835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); }; then
11837 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
11838else
11839 pkg_failed=yes
11840fi
11841 else
11842 pkg_failed=untried
11843fi
11844if test -n "$SACKPT_LIBS"; then
11845 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
11846 elif test -n "$PKG_CONFIG"; then
11847 if test -n "$PKG_CONFIG" && \
11848 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11849 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11850 ac_status=$?
11851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; then
11853 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
11854else
11855 pkg_failed=yes
11856fi
11857 else
11858 pkg_failed=untried
11859fi
11860
11861
11862
11863if test $pkg_failed = yes; then
11864
11865if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11866 _pkg_short_errors_supported=yes
11867else
11868 _pkg_short_errors_supported=no
11869fi
11870 if test $_pkg_short_errors_supported = yes; then
11871 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
11872 else
11873 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
11874 fi
11875 # Put the nasty error message in config.log where it belongs
11876 echo "$SACKPT_PKG_ERRORS" >&5
11877
11878 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
11879
11880$SACKPT_PKG_ERRORS
11881
11882Consider adjusting the PKG_CONFIG_PATH environment variable if you
11883installed software in a non-standard prefix.
11884
11885Alternatively, you may set the environment variables SACKPT_CFLAGS
11886and SACKPT_LIBS to avoid the need to call pkg-config.
11887See the pkg-config man page for more details.
11888" >&5
11889$as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
11890
11891$SACKPT_PKG_ERRORS
11892
11893Consider adjusting the PKG_CONFIG_PATH environment variable if you
11894installed software in a non-standard prefix.
11895
11896Alternatively, you may set the environment variables SACKPT_CFLAGS
11897and SACKPT_LIBS to avoid the need to call pkg-config.
11898See the pkg-config man page for more details.
11899" >&2;}
11900 { (exit 1); exit 1; }; }
11901elif test $pkg_failed = untried; then
11902 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11903$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11904{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11905is in your PATH or set the PKG_CONFIG environment variable to the full
11906path to pkg-config.
11907
11908Alternatively, you may set the environment variables SACKPT_CFLAGS
11909and SACKPT_LIBS to avoid the need to call pkg-config.
11910See the pkg-config man page for more details.
11911
11912To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11913See \`config.log' for more details." >&5
11914$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11915is in your PATH or set the PKG_CONFIG environment variable to the full
11916path to pkg-config.
11917
11918Alternatively, you may set the environment variables SACKPT_CFLAGS
11919and SACKPT_LIBS to avoid the need to call pkg-config.
11920See the pkg-config man page for more details.
11921
11922To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11923See \`config.log' for more details." >&2;}
11924 { (exit 1); exit 1; }; }; }
11925else
11926 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
11927 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
11928 { $as_echo "$as_me:$LINENO: result: yes" >&5
11929$as_echo "yes" >&6; }
11930 :
11931fi
11932 if test x$HAVE_CPG != xyes; then
a946372e
AK
11933
11934pkg_failed=no
11935{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
11936$as_echo_n "checking for CPG... " >&6; }
11937
11938if test -n "$CPG_CFLAGS"; then
11939 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11940 elif test -n "$PKG_CONFIG"; then
11941 if test -n "$PKG_CONFIG" && \
11942 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11943 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11944 ac_status=$?
11945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; then
11947 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11948else
11949 pkg_failed=yes
11950fi
11951 else
11952 pkg_failed=untried
11953fi
11954if test -n "$CPG_LIBS"; then
11955 pkg_cv_CPG_LIBS="$CPG_LIBS"
11956 elif test -n "$PKG_CONFIG"; then
11957 if test -n "$PKG_CONFIG" && \
11958 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11959 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11960 ac_status=$?
11961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); }; then
11963 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11964else
11965 pkg_failed=yes
11966fi
11967 else
11968 pkg_failed=untried
11969fi
11970
11971
11972
11973if test $pkg_failed = yes; then
11974
11975if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11976 _pkg_short_errors_supported=yes
11977else
11978 _pkg_short_errors_supported=no
11979fi
11980 if test $_pkg_short_errors_supported = yes; then
11981 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11982 else
11983 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11984 fi
11985 # Put the nasty error message in config.log where it belongs
11986 echo "$CPG_PKG_ERRORS" >&5
11987
90c80887
AK
11988 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
11989
11990$CPG_PKG_ERRORS
11991
11992Consider adjusting the PKG_CONFIG_PATH environment variable if you
11993installed software in a non-standard prefix.
11994
11995Alternatively, you may set the environment variables CPG_CFLAGS
11996and CPG_LIBS to avoid the need to call pkg-config.
11997See the pkg-config man page for more details.
11998" >&5
11999$as_echo "$as_me: error: Package requirements (libcpg) were not met:
12000
12001$CPG_PKG_ERRORS
12002
12003Consider adjusting the PKG_CONFIG_PATH environment variable if you
12004installed software in a non-standard prefix.
12005
12006Alternatively, you may set the environment variables CPG_CFLAGS
12007and CPG_LIBS to avoid the need to call pkg-config.
12008See the pkg-config man page for more details.
12009" >&2;}
12010 { (exit 1); exit 1; }; }
a946372e 12011elif test $pkg_failed = untried; then
90c80887
AK
12012 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12013$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12014{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12015is in your PATH or set the PKG_CONFIG environment variable to the full
12016path to pkg-config.
12017
12018Alternatively, you may set the environment variables CPG_CFLAGS
12019and CPG_LIBS to avoid the need to call pkg-config.
12020See the pkg-config man page for more details.
12021
12022To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12023See \`config.log' for more details." >&5
12024$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12025is in your PATH or set the PKG_CONFIG environment variable to the full
12026path to pkg-config.
12027
12028Alternatively, you may set the environment variables CPG_CFLAGS
12029and CPG_LIBS to avoid the need to call pkg-config.
12030See the pkg-config man page for more details.
12031
12032To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12033See \`config.log' for more details." >&2;}
12034 { (exit 1); exit 1; }; }; }
a946372e
AK
12035else
12036 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
12037 CPG_LIBS=$pkg_cv_CPG_LIBS
12038 { $as_echo "$as_me:$LINENO: result: yes" >&5
12039$as_echo "yes" >&6; }
12040 :
12041fi
90c80887 12042 fi
a946372e
AK
12043fi
12044
12045################################################################################
12046{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
12047$as_echo_n "checking whether to enable debugging... " >&6; }
12048# Check whether --enable-debug was given.
12049if test "${enable_debug+set}" = set; then
12050 enableval=$enable_debug; DEBUG=$enableval
12051else
12052 DEBUG=no
12053fi
12054
12055{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
12056$as_echo "$DEBUG" >&6; }
12057
12058if test x$DEBUG = xyes; then
12059 COPTIMISE_FLAG=
12060else
12061 CSCOPE_CMD=
12062fi
12063
12064################################################################################
12065{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
12066$as_echo_n "checking for C optimisation flag... " >&6; }
12067
12068# Check whether --with-optimisation was given.
12069if test "${with_optimisation+set}" = set; then
12070 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
12071fi
12072
12073{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
12074$as_echo "$COPTIMISE_FLAG" >&6; }
12075
12076################################################################################
12077{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
12078$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
12079# Check whether --enable-profiling was given.
12080if test "${enable_profiling+set}" = set; then
5556819a 12081 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 12082else
5556819a 12083 PROFILING=no
fddafd51
ZK
12084fi
12085
ec6a6fbe
AK
12086{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
12087$as_echo "$PROFILING" >&6; }
5556819a
AK
12088
12089if test "x$PROFILING" = xyes; then
12090 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
12091 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 12092set dummy lcov; ac_word=$2
ec6a6fbe
AK
12093{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12094$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 12095if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 12096 $as_echo_n "(cached) " >&6
fddafd51
ZK
12097else
12098 case $LCOV in
12099 [\\/]* | ?:[\\/]*)
12100 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
12101 ;;
12102 *)
12103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12104for as_dir in $PATH
12105do
12106 IFS=$as_save_IFS
12107 test -z "$as_dir" && as_dir=.
12108 for ac_exec_ext in '' $ac_executable_extensions; do
12109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12110 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 12111 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
12112 break 2
12113 fi
12114done
12115done
12116IFS=$as_save_IFS
12117
12118 ;;
12119esac
12120fi
12121LCOV=$ac_cv_path_LCOV
12122if test -n "$LCOV"; then
ec6a6fbe
AK
12123 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
12124$as_echo "$LCOV" >&6; }
fddafd51 12125else
ec6a6fbe
AK
12126 { $as_echo "$as_me:$LINENO: result: no" >&5
12127$as_echo "no" >&6; }
fddafd51
ZK
12128fi
12129
12130
5556819a 12131 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 12132set dummy genhtml; ac_word=$2
ec6a6fbe
AK
12133{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12134$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 12135if test "${ac_cv_path_GENHTML+set}" = set; then
ec6a6fbe 12136 $as_echo_n "(cached) " >&6
fddafd51
ZK
12137else
12138 case $GENHTML in
12139 [\\/]* | ?:[\\/]*)
12140 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
12141 ;;
12142 *)
12143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12144for as_dir in $PATH
12145do
12146 IFS=$as_save_IFS
12147 test -z "$as_dir" && as_dir=.
12148 for ac_exec_ext in '' $ac_executable_extensions; do
12149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12150 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 12151 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
12152 break 2
12153 fi
12154done
12155done
12156IFS=$as_save_IFS
12157
12158 ;;
12159esac
12160fi
12161GENHTML=$ac_cv_path_GENHTML
12162if test -n "$GENHTML"; then
ec6a6fbe
AK
12163 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
12164$as_echo "$GENHTML" >&6; }
fddafd51 12165else
ec6a6fbe
AK
12166 { $as_echo "$as_me:$LINENO: result: no" >&5
12167$as_echo "no" >&6; }
fddafd51
ZK
12168fi
12169
12170
fd4728e1 12171 if test -z "$LCOV" -o -z "$GENHTML"; then
ec6a6fbe
AK
12172 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
12173$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
12174 { (exit 1); exit 1; }; }
12175 fi
fd4728e1
ZK
12176 # Extract the first word of "genpng", so it can be a program name with args.
12177set dummy genpng; ac_word=$2
12178{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12179$as_echo_n "checking for $ac_word... " >&6; }
12180if test "${ac_cv_path_GENPNG+set}" = set; then
12181 $as_echo_n "(cached) " >&6
12182else
12183 case $GENPNG in
12184 [\\/]* | ?:[\\/]*)
12185 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
12186 ;;
12187 *)
12188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12189for as_dir in $PATH
12190do
12191 IFS=$as_save_IFS
12192 test -z "$as_dir" && as_dir=.
12193 for ac_exec_ext in '' $ac_executable_extensions; do
12194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12195 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
12196 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12197 break 2
12198 fi
12199done
12200done
12201IFS=$as_save_IFS
12202
12203 ;;
12204esac
12205fi
12206GENPNG=$ac_cv_path_GENPNG
12207if test -n "$GENPNG"; then
12208 { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5
12209$as_echo "$GENPNG" >&6; }
12210else
12211 { $as_echo "$as_me:$LINENO: result: no" >&5
12212$as_echo "no" >&6; }
12213fi
12214
12215
12216 if test -n "$GENPNG"; then
12217 { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5
12218$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
12219 if $GENPNG --help > /dev/null 2>&1 ; then
12220 { $as_echo "$as_me:$LINENO: result: ok" >&5
12221$as_echo "ok" >&6; }
12222 GENHTML="$GENHTML --frames"
12223 else
12224 { $as_echo "$as_me:$LINENO: result: not supported" >&5
12225$as_echo "not supported" >&6; }
12226 { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5
12227$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
12228 GENPNG=
12229 fi
12230 fi
5556819a 12231fi
d0191583
JM
12232
12233################################################################################
ec6a6fbe
AK
12234{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
12235$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
12236# Check whether --enable-devmapper was given.
12237if test "${enable_devmapper+set}" = set; then
12238 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
12239fi
12240
ec6a6fbe
AK
12241{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
12242$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
12243
12244if test x$DEVMAPPER = xyes; then
ad6254c5
AK
12245
12246cat >>confdefs.h <<\_ACEOF
d0191583 12247#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
12248_ACEOF
12249
12250fi
12251
a5f46f6a
AK
12252################################################################################
12253{ $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
12254$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
12255# Check whether --enable-udev_sync was given.
12256if test "${enable_udev_sync+set}" = set; then
12257 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
12258else
12259 UDEV_SYNC=no
12260fi
12261
12262{ $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
12263$as_echo "$UDEV_SYNC" >&6; }
12264
90c80887
AK
12265if test x$UDEV_SYNC = xyes; then
12266 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
12267$as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
12268if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
12269 $as_echo_n "(cached) " >&6
12270else
12271 ac_check_lib_save_LIBS=$LIBS
12272LIBS="-ludev $LIBS"
12273cat >conftest.$ac_ext <<_ACEOF
12274/* confdefs.h. */
12275_ACEOF
12276cat confdefs.h >>conftest.$ac_ext
12277cat >>conftest.$ac_ext <<_ACEOF
12278/* end confdefs.h. */
12279
12280/* Override any GCC internal prototype to avoid an error.
12281 Use char because int might match the return type of a GCC
12282 builtin and then its argument prototype would still apply. */
12283#ifdef __cplusplus
12284extern "C"
12285#endif
12286char udev_queue_get_udev_is_active ();
12287int
12288main ()
12289{
12290return udev_queue_get_udev_is_active ();
12291 ;
12292 return 0;
12293}
12294_ACEOF
12295rm -f conftest.$ac_objext conftest$ac_exeext
12296if { (ac_try="$ac_link"
12297case "(($ac_try" in
12298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299 *) ac_try_echo=$ac_try;;
12300esac
12301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12302$as_echo "$ac_try_echo") >&5
12303 (eval "$ac_link") 2>conftest.er1
12304 ac_status=$?
12305 grep -v '^ *+' conftest.er1 >conftest.err
12306 rm -f conftest.er1
12307 cat conftest.err >&5
12308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } && {
12310 test -z "$ac_c_werror_flag" ||
12311 test ! -s conftest.err
12312 } && test -s conftest$ac_exeext && {
12313 test "$cross_compiling" = yes ||
12314 $as_test_x conftest$ac_exeext
12315 }; then
12316 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
12317else
12318 $as_echo "$as_me: failed program was:" >&5
12319sed 's/^/| /' conftest.$ac_ext >&5
12320
12321 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
12322fi
12323
12324rm -rf conftest.dSYM
12325rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12326 conftest$ac_exeext conftest.$ac_ext
12327LIBS=$ac_check_lib_save_LIBS
12328fi
12329{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
12330$as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
12331if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
5161ecb9 12332 UDEV_LIBS="-ludev"
90c80887 12333else
5161ecb9
PR
12334 { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5
12335$as_echo "$as_me: error: bailing out... libudev library is required" >&2;}
12336 { (exit 1); exit 1; }; }
90c80887
AK
12337fi
12338
12339
90c80887 12340cat >>confdefs.h <<\_ACEOF
5161ecb9 12341#define UDEV_SYNC_SUPPORT 1
90c80887
AK
12342_ACEOF
12343
90c80887
AK
12344fi
12345
5161ecb9
PR
12346{ $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
12347$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
12348# Check whether --enable-udev_rules was given.
12349if test "${enable_udev_rules+set}" = set; then
12350 enableval=$enable_udev_rules; UDEV_RULES=$enableval
12351else
12352 UDEV_RULES=$UDEV_SYNC
12353fi
12354
12355{ $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
12356$as_echo "$UDEV_RULES" >&6; }
12357
93bd259b
AK
12358################################################################################
12359# Check whether --enable-compat was given.
12360if test "${enable_compat+set}" = set; then
12361 enableval=$enable_compat; DM_COMPAT=$enableval
12362else
12363 DM_COMPAT=no
12364fi
12365
12366
95eaa683
AK
12367################################################################################
12368# Check whether --enable-units-compat was given.
12369if test "${enable_units_compat+set}" = set; then
12370 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
12371else
12372 UNITS_COMPAT=no
12373fi
12374
12375
12376if test x$UNITS_COMPAT = xyes; then
12377
12378cat >>confdefs.h <<\_ACEOF
12379#define DEFAULT_SI_UNIT_CONSISTENCY 0
12380_ACEOF
12381
12382fi
12383
93bd259b
AK
12384################################################################################
12385# Check whether --enable-ioctl was given.
12386if test "${enable_ioctl+set}" = set; then
12387 enableval=$enable_ioctl; DM_IOCTLS=$enableval
12388fi
12389
12390
d0191583 12391################################################################################
ec6a6fbe
AK
12392{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
12393$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
12394# Check whether --enable-o_direct was given.
12395if test "${enable_o_direct+set}" = set; then
12396 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 12397fi
ad6254c5 12398
ec6a6fbe
AK
12399{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
12400$as_echo "$ODIRECT" >&6; }
ad6254c5 12401
d0191583 12402if test x$ODIRECT = xyes; then
ad6254c5 12403
d0191583
JM
12404cat >>confdefs.h <<\_ACEOF
12405#define O_DIRECT_SUPPORT 1
12406_ACEOF
ad6254c5 12407
d0191583 12408fi
ad6254c5 12409
572fefeb
AK
12410################################################################################
12411{ $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
12412$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
12413# Check whether --enable-applib was given.
12414if test "${enable_applib+set}" = set; then
12415 enableval=$enable_applib; APPLIB=$enableval
12416else
12417 APPLIB=no
12418fi
12419
12420{ $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
12421$as_echo "$APPLIB" >&6; }
12422
12423test x$APPLIB = xyes \
12424 && LVM2APP_LIB=-llvm2app \
12425 || LVM2APP_LIB=
12426
d0191583 12427################################################################################
ec6a6fbe
AK
12428{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
12429$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
12430# Check whether --enable-cmdlib was given.
12431if test "${enable_cmdlib+set}" = set; then
12432 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 12433else
d0191583
JM
12434 CMDLIB=no
12435fi
8a2fc586 12436
ec6a6fbe
AK
12437{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
12438$as_echo "$CMDLIB" >&6; }
8a2fc586 12439
2a9a80c9 12440test x$CMDLIB = xyes \
d179cc7a
JM
12441 && LVM2CMD_LIB=-llvm2cmd \
12442 || LVM2CMD_LIB=
12443
93bd259b
AK
12444################################################################################
12445# Check whether --enable-pkgconfig was given.
12446if test "${enable_pkgconfig+set}" = set; then
12447 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
12448else
12449 PKGCONFIG=no
12450fi
12451
2a9a80c9 12452
d0191583 12453################################################################################
ec6a6fbe
AK
12454{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
12455$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
12456# Check whether --enable-fsadm was given.
12457if test "${enable_fsadm+set}" = set; then
12458 enableval=$enable_fsadm; FSADM=$enableval
12459fi
8a2fc586 12460
ec6a6fbe
AK
12461{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
12462$as_echo "$FSADM" >&6; }
8a2fc586 12463
d0191583 12464################################################################################
ec6a6fbe
AK
12465{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
12466$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
12467# Check whether --enable-dmeventd was given.
12468if test "${enable_dmeventd+set}" = set; then
12469 enableval=$enable_dmeventd; DMEVENTD=$enableval
12470fi
ad6254c5 12471
ec6a6fbe
AK
12472{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
12473$as_echo "$DMEVENTD" >&6; }
ad6254c5 12474
93bd259b
AK
12475BUILD_DMEVENTD=$DMEVENTD
12476
2a9a80c9
PR
12477if test x$DMEVENTD = xyes; then
12478 if test x$MIRRORS != xinternal; then
ec6a6fbe 12479 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 12480 " >&5
ec6a6fbe 12481$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 12482 " >&2;}
d0191583 12483 { (exit 1); exit 1; }; }
2a9a80c9
PR
12484 fi
12485 if test x$CMDLIB = xno; then
ec6a6fbe 12486 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 12487 " >&5
ec6a6fbe 12488$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
12489 " >&2;}
12490 { (exit 1); exit 1; }; }
12491 fi
ad6254c5 12492fi
7a197a62 12493
d0191583
JM
12494if test x$DMEVENTD = xyes; then
12495
12496cat >>confdefs.h <<\_ACEOF
12497#define DMEVENTD 1
ad6254c5
AK
12498_ACEOF
12499
ad6254c5 12500fi
93bd259b
AK
12501
12502################################################################################
12503
ec6a6fbe
AK
12504{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
12505$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 12506if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 12507 $as_echo_n "(cached) " >&6
93bd259b
AK
12508else
12509 ac_check_lib_save_LIBS=$LIBS
12510LIBS="-lc $LIBS"
12511cat >conftest.$ac_ext <<_ACEOF
12512/* confdefs.h. */
12513_ACEOF
12514cat confdefs.h >>conftest.$ac_ext
12515cat >>conftest.$ac_ext <<_ACEOF
12516/* end confdefs.h. */
12517
12518/* Override any GCC internal prototype to avoid an error.
12519 Use char because int might match the return type of a GCC
12520 builtin and then its argument prototype would still apply. */
12521#ifdef __cplusplus
12522extern "C"
12523#endif
12524char getline ();
12525int
12526main ()
12527{
12528return getline ();
12529 ;
12530 return 0;
12531}
12532_ACEOF
12533rm -f conftest.$ac_objext conftest$ac_exeext
12534if { (ac_try="$ac_link"
12535case "(($ac_try" in
12536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12537 *) ac_try_echo=$ac_try;;
12538esac
ec6a6fbe
AK
12539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12540$as_echo "$ac_try_echo") >&5
93bd259b
AK
12541 (eval "$ac_link") 2>conftest.er1
12542 ac_status=$?
12543 grep -v '^ *+' conftest.er1 >conftest.err
12544 rm -f conftest.er1
12545 cat conftest.err >&5
ec6a6fbe 12546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
12547 (exit $ac_status); } && {
12548 test -z "$ac_c_werror_flag" ||
12549 test ! -s conftest.err
ec6a6fbe
AK
12550 } && test -s conftest$ac_exeext && {
12551 test "$cross_compiling" = yes ||
12552 $as_test_x conftest$ac_exeext
12553 }; then
93bd259b
AK
12554 ac_cv_lib_c_getline=yes
12555else
ec6a6fbe 12556 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
12557sed 's/^/| /' conftest.$ac_ext >&5
12558
12559 ac_cv_lib_c_getline=no
12560fi
12561
ec6a6fbe 12562rm -rf conftest.dSYM
93bd259b
AK
12563rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12564 conftest$ac_exeext conftest.$ac_ext
12565LIBS=$ac_check_lib_save_LIBS
12566fi
ec6a6fbe
AK
12567{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
12568$as_echo "$ac_cv_lib_c_getline" >&6; }
12569if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
12570
12571cat >>confdefs.h <<\_ACEOF
12572#define HAVE_GETLINE 1
12573_ACEOF
12574
12575fi
12576
12577
12578################################################################################
12579
ec6a6fbe
AK
12580{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
12581$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 12582if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 12583 $as_echo_n "(cached) " >&6
93bd259b
AK
12584else
12585 ac_check_lib_save_LIBS=$LIBS
12586LIBS="-lc $LIBS"
12587cat >conftest.$ac_ext <<_ACEOF
12588/* confdefs.h. */
12589_ACEOF
12590cat confdefs.h >>conftest.$ac_ext
12591cat >>conftest.$ac_ext <<_ACEOF
12592/* end confdefs.h. */
12593
12594/* Override any GCC internal prototype to avoid an error.
12595 Use char because int might match the return type of a GCC
12596 builtin and then its argument prototype would still apply. */
12597#ifdef __cplusplus
12598extern "C"
12599#endif
12600char canonicalize_file_name ();
12601int
12602main ()
12603{
12604return canonicalize_file_name ();
12605 ;
12606 return 0;
12607}
12608_ACEOF
12609rm -f conftest.$ac_objext conftest$ac_exeext
12610if { (ac_try="$ac_link"
12611case "(($ac_try" in
12612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12613 *) ac_try_echo=$ac_try;;
12614esac
ec6a6fbe
AK
12615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12616$as_echo "$ac_try_echo") >&5
93bd259b
AK
12617 (eval "$ac_link") 2>conftest.er1
12618 ac_status=$?
12619 grep -v '^ *+' conftest.er1 >conftest.err
12620 rm -f conftest.er1
12621 cat conftest.err >&5
ec6a6fbe 12622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
12623 (exit $ac_status); } && {
12624 test -z "$ac_c_werror_flag" ||
12625 test ! -s conftest.err
ec6a6fbe
AK
12626 } && test -s conftest$ac_exeext && {
12627 test "$cross_compiling" = yes ||
12628 $as_test_x conftest$ac_exeext
12629 }; then
93bd259b
AK
12630 ac_cv_lib_c_canonicalize_file_name=yes
12631else
ec6a6fbe 12632 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
12633sed 's/^/| /' conftest.$ac_ext >&5
12634
12635 ac_cv_lib_c_canonicalize_file_name=no
12636fi
12637
ec6a6fbe 12638rm -rf conftest.dSYM
93bd259b
AK
12639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12640 conftest$ac_exeext conftest.$ac_ext
12641LIBS=$ac_check_lib_save_LIBS
12642fi
ec6a6fbe
AK
12643{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
12644$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
12645if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
12646
12647cat >>confdefs.h <<\_ACEOF
12648#define HAVE_CANONICALIZE_FILE_NAME 1
12649_ACEOF
12650
12651fi
12652
12653
d0191583
JM
12654################################################################################
12655if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
12656 then exec_prefix="";
12657fi;
ad6254c5 12658
ad6254c5 12659################################################################################
ec6a6fbe
AK
12660{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12661$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 12662if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 12663 $as_echo_n "(cached) " >&6
ad6254c5
AK
12664else
12665 ac_check_lib_save_LIBS=$LIBS
12666LIBS="-ldl $LIBS"
12667cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12668/* confdefs.h. */
12669_ACEOF
12670cat confdefs.h >>conftest.$ac_ext
12671cat >>conftest.$ac_ext <<_ACEOF
12672/* end confdefs.h. */
12673
7a197a62
AK
12674/* Override any GCC internal prototype to avoid an error.
12675 Use char because int might match the return type of a GCC
12676 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12677#ifdef __cplusplus
12678extern "C"
12679#endif
ad6254c5
AK
12680char dlopen ();
12681int
12682main ()
12683{
7a197a62 12684return dlopen ();
ad6254c5
AK
12685 ;
12686 return 0;
12687}
12688_ACEOF
12689rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12690if { (ac_try="$ac_link"
12691case "(($ac_try" in
12692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12693 *) ac_try_echo=$ac_try;;
12694esac
ec6a6fbe
AK
12695eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12696$as_echo "$ac_try_echo") >&5
7a197a62 12697 (eval "$ac_link") 2>conftest.er1
ad6254c5 12698 ac_status=$?
8a2fc586
AK
12699 grep -v '^ *+' conftest.er1 >conftest.err
12700 rm -f conftest.er1
12701 cat conftest.err >&5
ec6a6fbe 12702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12703 (exit $ac_status); } && {
12704 test -z "$ac_c_werror_flag" ||
12705 test ! -s conftest.err
ec6a6fbe
AK
12706 } && test -s conftest$ac_exeext && {
12707 test "$cross_compiling" = yes ||
12708 $as_test_x conftest$ac_exeext
12709 }; then
ad6254c5
AK
12710 ac_cv_lib_dl_dlopen=yes
12711else
ec6a6fbe 12712 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12713sed 's/^/| /' conftest.$ac_ext >&5
12714
7a197a62 12715 ac_cv_lib_dl_dlopen=no
ad6254c5 12716fi
7a197a62 12717
ec6a6fbe 12718rm -rf conftest.dSYM
25fbec5b 12719rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 12720 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
12721LIBS=$ac_check_lib_save_LIBS
12722fi
ec6a6fbe
AK
12723{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12724$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12725if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5 12726
72b2cb61
AK
12727
12728cat >>confdefs.h <<\_ACEOF
12729#define HAVE_LIBDL 1
12730_ACEOF
12731
19a2c6e0
ZK
12732 DL_LIBS="-ldl"
12733 HAVE_LIBDL=yes
ad6254c5 12734else
19a2c6e0
ZK
12735
12736 DL_LIBS=
ad6254c5
AK
12737 HAVE_LIBDL=no
12738fi
12739
19a2c6e0 12740
ad6254c5
AK
12741################################################################################
12742if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
12743 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
12744 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 12745 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 12746" >&5
ec6a6fbe 12747$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
12748" >&2;}
12749 { (exit 1); exit 1; }; }
12750fi
12751
f30875db
ZK
12752################################################################################
12753if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
12754 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
12755$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
12756if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
12757 $as_echo_n "(cached) " >&6
12758else
12759 ac_check_lib_save_LIBS=$LIBS
12760LIBS="-lpthread $LIBS"
12761cat >conftest.$ac_ext <<_ACEOF
12762/* confdefs.h. */
12763_ACEOF
12764cat confdefs.h >>conftest.$ac_ext
12765cat >>conftest.$ac_ext <<_ACEOF
12766/* end confdefs.h. */
12767
12768/* Override any GCC internal prototype to avoid an error.
12769 Use char because int might match the return type of a GCC
12770 builtin and then its argument prototype would still apply. */
12771#ifdef __cplusplus
12772extern "C"
12773#endif
12774char pthread_mutex_lock ();
12775int
12776main ()
12777{
12778return pthread_mutex_lock ();
12779 ;
12780 return 0;
12781}
12782_ACEOF
12783rm -f conftest.$ac_objext conftest$ac_exeext
12784if { (ac_try="$ac_link"
12785case "(($ac_try" in
12786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12787 *) ac_try_echo=$ac_try;;
12788esac
12789eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12790$as_echo "$ac_try_echo") >&5
12791 (eval "$ac_link") 2>conftest.er1
12792 ac_status=$?
12793 grep -v '^ *+' conftest.er1 >conftest.err
12794 rm -f conftest.er1
12795 cat conftest.err >&5
12796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } && {
12798 test -z "$ac_c_werror_flag" ||
12799 test ! -s conftest.err
12800 } && test -s conftest$ac_exeext && {
12801 test "$cross_compiling" = yes ||
12802 $as_test_x conftest$ac_exeext
12803 }; then
12804 ac_cv_lib_pthread_pthread_mutex_lock=yes
12805else
12806 $as_echo "$as_me: failed program was:" >&5
12807sed 's/^/| /' conftest.$ac_ext >&5
12808
12809 ac_cv_lib_pthread_pthread_mutex_lock=no
12810fi
12811
12812rm -rf conftest.dSYM
12813rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12814 conftest$ac_exeext conftest.$ac_ext
12815LIBS=$ac_check_lib_save_LIBS
12816fi
12817{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
12818$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
12819if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
12820 PTHREAD_LIBS="-lpthread"
12821else
12822 hard_bailout
12823fi
12824
12825fi
12826
d0191583 12827################################################################################
ec6a6fbe
AK
12828{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
12829$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
12830# Check whether --enable-selinux was given.
12831if test "${enable_selinux+set}" = set; then
12832 enableval=$enable_selinux; SELINUX=$enableval
12833fi
12834
ec6a6fbe
AK
12835{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
12836$as_echo "$SELINUX" >&6; }
d0191583 12837
ad6254c5
AK
12838################################################################################
12839if test x$SELINUX = xyes; then
ec6a6fbe
AK
12840 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
12841$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 12842if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 12843 $as_echo_n "(cached) " >&6
8a2fc586
AK
12844else
12845 ac_check_lib_save_LIBS=$LIBS
12846LIBS="-lsepol $LIBS"
12847cat >conftest.$ac_ext <<_ACEOF
12848/* confdefs.h. */
12849_ACEOF
12850cat confdefs.h >>conftest.$ac_ext
12851cat >>conftest.$ac_ext <<_ACEOF
12852/* end confdefs.h. */
12853
7a197a62
AK
12854/* Override any GCC internal prototype to avoid an error.
12855 Use char because int might match the return type of a GCC
12856 builtin and then its argument prototype would still apply. */
8a2fc586
AK
12857#ifdef __cplusplus
12858extern "C"
12859#endif
8a2fc586
AK
12860char sepol_check_context ();
12861int
12862main ()
12863{
7a197a62 12864return sepol_check_context ();
8a2fc586
AK
12865 ;
12866 return 0;
12867}
12868_ACEOF
12869rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12870if { (ac_try="$ac_link"
12871case "(($ac_try" in
12872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12873 *) ac_try_echo=$ac_try;;
12874esac
ec6a6fbe
AK
12875eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12876$as_echo "$ac_try_echo") >&5
7a197a62 12877 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
12878 ac_status=$?
12879 grep -v '^ *+' conftest.er1 >conftest.err
12880 rm -f conftest.er1
12881 cat conftest.err >&5
ec6a6fbe 12882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12883 (exit $ac_status); } && {
12884 test -z "$ac_c_werror_flag" ||
12885 test ! -s conftest.err
ec6a6fbe
AK
12886 } && test -s conftest$ac_exeext && {
12887 test "$cross_compiling" = yes ||
12888 $as_test_x conftest$ac_exeext
12889 }; then
8a2fc586
AK
12890 ac_cv_lib_sepol_sepol_check_context=yes
12891else
ec6a6fbe 12892 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
12893sed 's/^/| /' conftest.$ac_ext >&5
12894
7a197a62 12895 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 12896fi
7a197a62 12897
ec6a6fbe 12898rm -rf conftest.dSYM
25fbec5b 12899rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
12900 conftest$ac_exeext conftest.$ac_ext
12901LIBS=$ac_check_lib_save_LIBS
12902fi
ec6a6fbe
AK
12903{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
12904$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
12905if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586 12906
d0191583
JM
12907
12908cat >>confdefs.h <<\_ACEOF
12909#define HAVE_SEPOL 1
12910_ACEOF
12911
f8f6ec92
ZK
12912 SELINUX_LIBS="-lsepol"
12913fi
12914
8a2fc586 12915
ec6a6fbe
AK
12916 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
12917$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 12918if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 12919 $as_echo_n "(cached) " >&6
ad6254c5
AK
12920else
12921 ac_check_lib_save_LIBS=$LIBS
12922LIBS="-lselinux $LIBS"
12923cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12924/* confdefs.h. */
12925_ACEOF
12926cat confdefs.h >>conftest.$ac_ext
12927cat >>conftest.$ac_ext <<_ACEOF
12928/* end confdefs.h. */
12929
7a197a62
AK
12930/* Override any GCC internal prototype to avoid an error.
12931 Use char because int might match the return type of a GCC
12932 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12933#ifdef __cplusplus
12934extern "C"
12935#endif
ad6254c5
AK
12936char is_selinux_enabled ();
12937int
12938main ()
12939{
7a197a62 12940return is_selinux_enabled ();
ad6254c5
AK
12941 ;
12942 return 0;
12943}
12944_ACEOF
12945rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12946if { (ac_try="$ac_link"
12947case "(($ac_try" in
12948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12949 *) ac_try_echo=$ac_try;;
12950esac
ec6a6fbe
AK
12951eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12952$as_echo "$ac_try_echo") >&5
7a197a62 12953 (eval "$ac_link") 2>conftest.er1
ad6254c5 12954 ac_status=$?
8a2fc586
AK
12955 grep -v '^ *+' conftest.er1 >conftest.err
12956 rm -f conftest.er1
12957 cat conftest.err >&5
ec6a6fbe 12958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12959 (exit $ac_status); } && {
12960 test -z "$ac_c_werror_flag" ||
12961 test ! -s conftest.err
ec6a6fbe
AK
12962 } && test -s conftest$ac_exeext && {
12963 test "$cross_compiling" = yes ||
12964 $as_test_x conftest$ac_exeext
12965 }; then
ad6254c5
AK
12966 ac_cv_lib_selinux_is_selinux_enabled=yes
12967else
ec6a6fbe 12968 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12969sed 's/^/| /' conftest.$ac_ext >&5
12970
7a197a62 12971 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 12972fi
7a197a62 12973
ec6a6fbe 12974rm -rf conftest.dSYM
25fbec5b 12975rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 12976 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
12977LIBS=$ac_check_lib_save_LIBS
12978fi
ec6a6fbe
AK
12979{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
12980$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
12981if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5 12982
72b2cb61 12983
f8f6ec92
ZK
12984for ac_header in selinux/selinux.h
12985do
12986as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12987if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12988 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12989$as_echo_n "checking for $ac_header... " >&6; }
12990if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12991 $as_echo_n "(cached) " >&6
f8f6ec92
ZK
12992fi
12993ac_res=`eval 'as_val=${'$as_ac_Header'}
12994 $as_echo "$as_val"'`
12995 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12996$as_echo "$ac_res" >&6; }
66e941e8 12997else
f8f6ec92
ZK
12998 # Is the header compilable?
12999{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13000$as_echo_n "checking $ac_header usability... " >&6; }
66e941e8
JM
13001cat >conftest.$ac_ext <<_ACEOF
13002/* confdefs.h. */
13003_ACEOF
13004cat confdefs.h >>conftest.$ac_ext
13005cat >>conftest.$ac_ext <<_ACEOF
13006/* end confdefs.h. */
f8f6ec92
ZK
13007$ac_includes_default
13008#include <$ac_header>
66e941e8 13009_ACEOF
f8f6ec92
ZK
13010rm -f conftest.$ac_objext
13011if { (ac_try="$ac_compile"
66e941e8
JM
13012case "(($ac_try" in
13013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13014 *) ac_try_echo=$ac_try;;
13015esac
ec6a6fbe
AK
13016eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13017$as_echo "$ac_try_echo") >&5
f8f6ec92 13018 (eval "$ac_compile") 2>conftest.er1
66e941e8
JM
13019 ac_status=$?
13020 grep -v '^ *+' conftest.er1 >conftest.err
13021 rm -f conftest.er1
13022 cat conftest.err >&5
ec6a6fbe 13023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13024 (exit $ac_status); } && {
13025 test -z "$ac_c_werror_flag" ||
13026 test ! -s conftest.err
f8f6ec92
ZK
13027 } && test -s conftest.$ac_objext; then
13028 ac_header_compiler=yes
13029else
13030 $as_echo "$as_me: failed program was:" >&5
13031sed 's/^/| /' conftest.$ac_ext >&5
13032
13033 ac_header_compiler=no
13034fi
13035
13036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13037{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13038$as_echo "$ac_header_compiler" >&6; }
13039
13040# Is the header present?
13041{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13042$as_echo_n "checking $ac_header presence... " >&6; }
13043cat >conftest.$ac_ext <<_ACEOF
13044/* confdefs.h. */
13045_ACEOF
13046cat confdefs.h >>conftest.$ac_ext
13047cat >>conftest.$ac_ext <<_ACEOF
13048/* end confdefs.h. */
13049#include <$ac_header>
13050_ACEOF
13051if { (ac_try="$ac_cpp conftest.$ac_ext"
13052case "(($ac_try" in
13053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13054 *) ac_try_echo=$ac_try;;
13055esac
13056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13057$as_echo "$ac_try_echo") >&5
13058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13059 ac_status=$?
13060 grep -v '^ *+' conftest.er1 >conftest.err
13061 rm -f conftest.er1
13062 cat conftest.err >&5
13063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); } >/dev/null && {
13065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13066 test ! -s conftest.err
ec6a6fbe 13067 }; then
f8f6ec92 13068 ac_header_preproc=yes
66e941e8 13069else
ec6a6fbe 13070 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
13071sed 's/^/| /' conftest.$ac_ext >&5
13072
f8f6ec92
ZK
13073 ac_header_preproc=no
13074fi
13075
13076rm -f conftest.err conftest.$ac_ext
13077{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13078$as_echo "$ac_header_preproc" >&6; }
13079
13080# So? What about this header?
13081case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13082 yes:no: )
13083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13084$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13086$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13087 ac_header_preproc=yes
13088 ;;
13089 no:yes:* )
13090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13091$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13093$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13095$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13097$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13099$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13101$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66e941e8 13102
f8f6ec92
ZK
13103 ;;
13104esac
13105{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13106$as_echo_n "checking for $ac_header... " >&6; }
13107if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13108 $as_echo_n "(cached) " >&6
13109else
13110 eval "$as_ac_Header=\$ac_header_preproc"
66e941e8 13111fi
f8f6ec92
ZK
13112ac_res=`eval 'as_val=${'$as_ac_Header'}
13113 $as_echo "$as_val"'`
13114 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13115$as_echo "$ac_res" >&6; }
66e941e8 13116
66e941e8 13117fi
f8f6ec92
ZK
13118as_val=`eval 'as_val=${'$as_ac_Header'}
13119 $as_echo "$as_val"'`
13120 if test "x$as_val" = x""yes; then
13121 cat >>confdefs.h <<_ACEOF
13122#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13123_ACEOF
13124
66e941e8 13125else
f8f6ec92 13126 hard_bailout
66e941e8 13127fi
f8f6ec92
ZK
13128
13129done
13130
13131
13132cat >>confdefs.h <<\_ACEOF
13133#define HAVE_SELINUX 1
13134_ACEOF
13135
13136 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
13137 HAVE_SELINUX=yes
13138else
13139
13140 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
13141$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
13142 SELINUX_LIBS=
13143 HAVE_SELINUX=no
66e941e8
JM
13144fi
13145
ad6254c5
AK
13146fi
13147
8b1a3214
AK
13148################################################################################
13149if test x$REALTIME = xyes; then
ec6a6fbe
AK
13150 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
13151$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 13152if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 13153 $as_echo_n "(cached) " >&6
8b1a3214
AK
13154else
13155 ac_check_lib_save_LIBS=$LIBS
13156LIBS="-lrt $LIBS"
13157cat >conftest.$ac_ext <<_ACEOF
13158/* confdefs.h. */
13159_ACEOF
13160cat confdefs.h >>conftest.$ac_ext
13161cat >>conftest.$ac_ext <<_ACEOF
13162/* end confdefs.h. */
13163
7a197a62
AK
13164/* Override any GCC internal prototype to avoid an error.
13165 Use char because int might match the return type of a GCC
13166 builtin and then its argument prototype would still apply. */
8b1a3214
AK
13167#ifdef __cplusplus
13168extern "C"
13169#endif
8b1a3214
AK
13170char clock_gettime ();
13171int
13172main ()
13173{
7a197a62 13174return clock_gettime ();
8b1a3214
AK
13175 ;
13176 return 0;
13177}
13178_ACEOF
13179rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13180if { (ac_try="$ac_link"
13181case "(($ac_try" in
13182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183 *) ac_try_echo=$ac_try;;
13184esac
ec6a6fbe
AK
13185eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13186$as_echo "$ac_try_echo") >&5
7a197a62 13187 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
13188 ac_status=$?
13189 grep -v '^ *+' conftest.er1 >conftest.err
13190 rm -f conftest.er1
13191 cat conftest.err >&5
ec6a6fbe 13192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13193 (exit $ac_status); } && {
13194 test -z "$ac_c_werror_flag" ||
13195 test ! -s conftest.err
ec6a6fbe
AK
13196 } && test -s conftest$ac_exeext && {
13197 test "$cross_compiling" = yes ||
13198 $as_test_x conftest$ac_exeext
13199 }; then
8b1a3214
AK
13200 ac_cv_lib_rt_clock_gettime=yes
13201else
ec6a6fbe 13202 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
13203sed 's/^/| /' conftest.$ac_ext >&5
13204
7a197a62 13205 ac_cv_lib_rt_clock_gettime=no
8b1a3214 13206fi
7a197a62 13207
ec6a6fbe 13208rm -rf conftest.dSYM
25fbec5b 13209rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
13210 conftest$ac_exeext conftest.$ac_ext
13211LIBS=$ac_check_lib_save_LIBS
13212fi
ec6a6fbe
AK
13213{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
13214$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13215if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
13216 HAVE_REALTIME=yes
13217else
13218 HAVE_REALTIME=no
13219fi
13220
8b1a3214
AK
13221
13222 if test x$HAVE_REALTIME = xyes; then
13223
13224cat >>confdefs.h <<\_ACEOF
13225#define HAVE_REALTIME 1
13226_ACEOF
13227
13228 LIBS="-lrt $LIBS"
13229 else
ec6a6fbe
AK
13230 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
13231$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
13232 fi
13233fi
13234
ad6254c5
AK
13235################################################################################
13236
13237for ac_header in getopt.h
13238do
ec6a6fbe 13239as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13241 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13242$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13243if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13244 $as_echo_n "(cached) " >&6
ad6254c5 13245fi
ec6a6fbe
AK
13246ac_res=`eval 'as_val=${'$as_ac_Header'}
13247 $as_echo "$as_val"'`
13248 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13249$as_echo "$ac_res" >&6; }
ad6254c5
AK
13250else
13251 # Is the header compilable?
ec6a6fbe
AK
13252{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13253$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13254cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13255/* confdefs.h. */
13256_ACEOF
13257cat confdefs.h >>conftest.$ac_ext
13258cat >>conftest.$ac_ext <<_ACEOF
13259/* end confdefs.h. */
13260$ac_includes_default
13261#include <$ac_header>
13262_ACEOF
13263rm -f conftest.$ac_objext
7a197a62
AK
13264if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
ad6254c5 13272 ac_status=$?
8a2fc586
AK
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); } && {
13278 test -z "$ac_c_werror_flag" ||
13279 test ! -s conftest.err
13280 } && test -s conftest.$ac_objext; then
ad6254c5
AK
13281 ac_header_compiler=yes
13282else
ec6a6fbe 13283 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13284sed 's/^/| /' conftest.$ac_ext >&5
13285
7a197a62 13286 ac_header_compiler=no
ad6254c5 13287fi
7a197a62
AK
13288
13289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13290{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13291$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13292
13293# Is the header present?
ec6a6fbe
AK
13294{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13295$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 13296cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13297/* confdefs.h. */
13298_ACEOF
13299cat confdefs.h >>conftest.$ac_ext
13300cat >>conftest.$ac_ext <<_ACEOF
13301/* end confdefs.h. */
13302#include <$ac_header>
13303_ACEOF
7a197a62
AK
13304if { (ac_try="$ac_cpp conftest.$ac_ext"
13305case "(($ac_try" in
13306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307 *) ac_try_echo=$ac_try;;
13308esac
ec6a6fbe
AK
13309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13310$as_echo "$ac_try_echo") >&5
7a197a62 13311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
13312 ac_status=$?
13313 grep -v '^ *+' conftest.er1 >conftest.err
13314 rm -f conftest.er1
13315 cat conftest.err >&5
ec6a6fbe 13316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13317 (exit $ac_status); } >/dev/null && {
13318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13319 test ! -s conftest.err
13320 }; then
ad6254c5
AK
13321 ac_header_preproc=yes
13322else
ec6a6fbe 13323 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13324sed 's/^/| /' conftest.$ac_ext >&5
13325
13326 ac_header_preproc=no
13327fi
7a197a62 13328
ad6254c5 13329rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
13330{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13331$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
13332
13333# So? What about this header?
8a2fc586
AK
13334case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13335 yes:no: )
ec6a6fbe
AK
13336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13337$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13339$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 13340 ac_header_preproc=yes
ad6254c5 13341 ;;
8a2fc586 13342 no:yes:* )
ec6a6fbe
AK
13343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13344$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13346$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13348$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13350$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13352$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13354$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 13355
ad6254c5
AK
13356 ;;
13357esac
ec6a6fbe
AK
13358{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13359$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13360if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13361 $as_echo_n "(cached) " >&6
ad6254c5 13362else
8a2fc586 13363 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 13364fi
ec6a6fbe
AK
13365ac_res=`eval 'as_val=${'$as_ac_Header'}
13366 $as_echo "$as_val"'`
13367 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13368$as_echo "$ac_res" >&6; }
ad6254c5
AK
13369
13370fi
ec6a6fbe
AK
13371as_val=`eval 'as_val=${'$as_ac_Header'}
13372 $as_echo "$as_val"'`
13373 if test "x$as_val" = x""yes; then
ad6254c5 13374 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13375#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 13376_ACEOF
72b2cb61
AK
13377
13378cat >>confdefs.h <<\_ACEOF
13379#define HAVE_GETOPTLONG 1
13380_ACEOF
13381
ad6254c5
AK
13382fi
13383
13384done
13385
13386
13387################################################################################
06e459df 13388if test x$READLINE != xno; then
539f4a77
ZK
13389 lvm_saved_libs=$LIBS
13390 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
13391$as_echo_n "checking for library containing tgetent... " >&6; }
13392if test "${ac_cv_search_tgetent+set}" = set; then
13393 $as_echo_n "(cached) " >&6
13394else
13395 ac_func_search_save_LIBS=$LIBS
13396cat >conftest.$ac_ext <<_ACEOF
13397/* confdefs.h. */
13398_ACEOF
13399cat confdefs.h >>conftest.$ac_ext
13400cat >>conftest.$ac_ext <<_ACEOF
13401/* end confdefs.h. */
bc1024f8 13402
539f4a77
ZK
13403/* Override any GCC internal prototype to avoid an error.
13404 Use char because int might match the return type of a GCC
13405 builtin and then its argument prototype would still apply. */
13406#ifdef __cplusplus
13407extern "C"
13408#endif
13409char tgetent ();
13410int
13411main ()
13412{
13413return tgetent ();
13414 ;
13415 return 0;
13416}
13417_ACEOF
13418for ac_lib in '' tinfo ncurses curses termcap termlib; do
13419 if test -z "$ac_lib"; then
13420 ac_res="none required"
13421 else
13422 ac_res=-l$ac_lib
13423 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13424 fi
13425 rm -f conftest.$ac_objext conftest$ac_exeext
13426if { (ac_try="$ac_link"
13427case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13430esac
13431eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13432$as_echo "$ac_try_echo") >&5
13433 (eval "$ac_link") 2>conftest.er1
13434 ac_status=$?
13435 grep -v '^ *+' conftest.er1 >conftest.err
13436 rm -f conftest.er1
13437 cat conftest.err >&5
13438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); } && {
13440 test -z "$ac_c_werror_flag" ||
13441 test ! -s conftest.err
13442 } && test -s conftest$ac_exeext && {
13443 test "$cross_compiling" = yes ||
13444 $as_test_x conftest$ac_exeext
13445 }; then
13446 ac_cv_search_tgetent=$ac_res
13447else
13448 $as_echo "$as_me: failed program was:" >&5
13449sed 's/^/| /' conftest.$ac_ext >&5
13450
13451
13452fi
13453
13454rm -rf conftest.dSYM
13455rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13456 conftest$ac_exeext
13457 if test "${ac_cv_search_tgetent+set}" = set; then
13458 break
13459fi
13460done
13461if test "${ac_cv_search_tgetent+set}" = set; then
13462 :
13463else
13464 ac_cv_search_tgetent=no
13465fi
13466rm conftest.$ac_ext
13467LIBS=$ac_func_search_save_LIBS
13468fi
13469{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
13470$as_echo "$ac_cv_search_tgetent" >&6; }
13471ac_res=$ac_cv_search_tgetent
13472if test "$ac_res" != no; then
13473 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13474 READLINE_LIBS=$ac_cv_search_tgetent
13475else
13476
13477 if test "$READLINE" = yes; then
13478 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
13479--enable-readline option (which is enabled by default). Either disable readline
13480support with --disable-readline or download and install termcap from:
13481 ftp.gnu.org/gnu/termcap
13482Note: if you are using precompiled packages you will also need the development
13483 package as well (which may be called termcap-devel or something similar).
13484Note: (n)curses also seems to work as a substitute for termcap. This was
13485 not found either - but you could try installing that as well." >&5
13486$as_echo "$as_me: error: termcap could not be found which is required for the
13487--enable-readline option (which is enabled by default). Either disable readline
13488support with --disable-readline or download and install termcap from:
13489 ftp.gnu.org/gnu/termcap
13490Note: if you are using precompiled packages you will also need the development
13491 package as well (which may be called termcap-devel or something similar).
13492Note: (n)curses also seems to work as a substitute for termcap. This was
13493 not found either - but you could try installing that as well." >&2;}
13494 { (exit 1); exit 1; }; }
13495 fi
13496fi
13497
13498 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
ec6a6fbe 13499$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 13500if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 13501 $as_echo_n "(cached) " >&6
ad6254c5
AK
13502else
13503 ac_check_lib_save_LIBS=$LIBS
13504LIBS="-lreadline $LIBS"
13505cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13506/* confdefs.h. */
13507_ACEOF
13508cat confdefs.h >>conftest.$ac_ext
13509cat >>conftest.$ac_ext <<_ACEOF
13510/* end confdefs.h. */
13511
7a197a62
AK
13512/* Override any GCC internal prototype to avoid an error.
13513 Use char because int might match the return type of a GCC
13514 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13515#ifdef __cplusplus
13516extern "C"
13517#endif
ad6254c5
AK
13518char readline ();
13519int
13520main ()
13521{
7a197a62 13522return readline ();
ad6254c5
AK
13523 ;
13524 return 0;
13525}
13526_ACEOF
13527rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13528if { (ac_try="$ac_link"
13529case "(($ac_try" in
13530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531 *) ac_try_echo=$ac_try;;
13532esac
ec6a6fbe
AK
13533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13534$as_echo "$ac_try_echo") >&5
7a197a62 13535 (eval "$ac_link") 2>conftest.er1
ad6254c5 13536 ac_status=$?
8a2fc586
AK
13537 grep -v '^ *+' conftest.er1 >conftest.err
13538 rm -f conftest.er1
13539 cat conftest.err >&5
ec6a6fbe 13540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13541 (exit $ac_status); } && {
13542 test -z "$ac_c_werror_flag" ||
13543 test ! -s conftest.err
ec6a6fbe
AK
13544 } && test -s conftest$ac_exeext && {
13545 test "$cross_compiling" = yes ||
13546 $as_test_x conftest$ac_exeext
13547 }; then
ad6254c5
AK
13548 ac_cv_lib_readline_readline=yes
13549else
ec6a6fbe 13550 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13551sed 's/^/| /' conftest.$ac_ext >&5
13552
7a197a62 13553 ac_cv_lib_readline_readline=no
ad6254c5 13554fi
7a197a62 13555
ec6a6fbe 13556rm -rf conftest.dSYM
25fbec5b 13557rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13558 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
13559LIBS=$ac_check_lib_save_LIBS
13560fi
ec6a6fbe
AK
13561{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13562$as_echo "$ac_cv_lib_readline_readline" >&6; }
13563if test "x$ac_cv_lib_readline_readline" = x""yes; then
539f4a77
ZK
13564
13565
13566cat >>confdefs.h <<\_ACEOF
13567#define READLINE_SUPPORT 1
bc1024f8
JM
13568_ACEOF
13569
539f4a77
ZK
13570 LIBS=$lvm_saved_libs
13571 { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5
13572$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
13573if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then
13574 $as_echo_n "(cached) " >&6
13575else
13576 ac_check_lib_save_LIBS=$LIBS
13577LIBS="-lreadline $LIBS"
13578cat >conftest.$ac_ext <<_ACEOF
13579/* confdefs.h. */
13580_ACEOF
13581cat confdefs.h >>conftest.$ac_ext
13582cat >>conftest.$ac_ext <<_ACEOF
13583/* end confdefs.h. */
bc1024f8 13584
539f4a77
ZK
13585/* Override any GCC internal prototype to avoid an error.
13586 Use char because int might match the return type of a GCC
13587 builtin and then its argument prototype would still apply. */
13588#ifdef __cplusplus
13589extern "C"
13590#endif
13591char rl_line_buffer ();
13592int
13593main ()
13594{
13595return rl_line_buffer ();
13596 ;
13597 return 0;
13598}
13599_ACEOF
13600rm -f conftest.$ac_objext conftest$ac_exeext
13601if { (ac_try="$ac_link"
13602case "(($ac_try" in
13603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13604 *) ac_try_echo=$ac_try;;
13605esac
13606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13607$as_echo "$ac_try_echo") >&5
13608 (eval "$ac_link") 2>conftest.er1
13609 ac_status=$?
13610 grep -v '^ *+' conftest.er1 >conftest.err
13611 rm -f conftest.er1
13612 cat conftest.err >&5
13613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); } && {
13615 test -z "$ac_c_werror_flag" ||
13616 test ! -s conftest.err
13617 } && test -s conftest$ac_exeext && {
13618 test "$cross_compiling" = yes ||
13619 $as_test_x conftest$ac_exeext
13620 }; then
13621 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 13622else
539f4a77
ZK
13623 $as_echo "$as_me: failed program was:" >&5
13624sed 's/^/| /' conftest.$ac_ext >&5
13625
13626 ac_cv_lib_readline_rl_line_buffer=no
06e459df
JM
13627fi
13628
539f4a77
ZK
13629rm -rf conftest.dSYM
13630rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13631 conftest$ac_exeext conftest.$ac_ext
13632LIBS=$ac_check_lib_save_LIBS
13633fi
13634{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5
13635$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
13636if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then
13637 READLINE_LIBS="-lreadline"
13638else
13639
13640 { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5
13641$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
13642 READLINE_LIBS="-lreadline $READLINE_LIBS"
13643
13644fi
13645
13646else
13647
13648 READLINE_LIBS=
13649 if test "$READLINE" = yes; then
13650 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
13651--enable-readline option (which is enabled by default). Either disable readline
13652support with --disable-readline or download and install readline from:
13653 ftp.gnu.org/gnu/readline
13654Note: if you are using precompiled packages you will also need the development
539f4a77 13655package as well (which may be called readline-devel or something similar)." >&5
ec6a6fbe 13656$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
13657--enable-readline option (which is enabled by default). Either disable readline
13658support with --disable-readline or download and install readline from:
13659 ftp.gnu.org/gnu/readline
13660Note: if you are using precompiled packages you will also need the development
539f4a77 13661package as well (which may be called readline-devel or something similar)." >&2;}
ad6254c5 13662 { (exit 1); exit 1; }; }
539f4a77
ZK
13663 fi
13664fi
13665
13666 LIBS="$READLINE_LIBS $lvm_saved_libs"
bc1024f8
JM
13667
13668for ac_func in rl_completion_matches
13669do
ec6a6fbe
AK
13670as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13671{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13672$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 13673if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13674 $as_echo_n "(cached) " >&6
ad6254c5
AK
13675else
13676 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13677/* confdefs.h. */
13678_ACEOF
13679cat confdefs.h >>conftest.$ac_ext
13680cat >>conftest.$ac_ext <<_ACEOF
13681/* end confdefs.h. */
bc1024f8 13682/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 13683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 13684#define $ac_func innocuous_$ac_func
8a2fc586 13685
ad6254c5 13686/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 13687 which can conflict with char $ac_func (); below.
ad6254c5
AK
13688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13689 <limits.h> exists even on freestanding compilers. */
8a2fc586 13690
ad6254c5
AK
13691#ifdef __STDC__
13692# include <limits.h>
13693#else
13694# include <assert.h>
13695#endif
8a2fc586 13696
bc1024f8 13697#undef $ac_func
8a2fc586 13698
7a197a62
AK
13699/* Override any GCC internal prototype to avoid an error.
13700 Use char because int might match the return type of a GCC
13701 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13702#ifdef __cplusplus
13703extern "C"
ad6254c5 13704#endif
bc1024f8 13705char $ac_func ();
ad6254c5
AK
13706/* The GNU C library defines this for functions which it implements
13707 to always fail with ENOSYS. Some functions are actually named
13708 something starting with __ and the normal name is an alias. */
bc1024f8 13709#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 13710choke me
ad6254c5
AK
13711#endif
13712
13713int
13714main ()
13715{
bc1024f8 13716return $ac_func ();
ad6254c5
AK
13717 ;
13718 return 0;
13719}
13720_ACEOF
13721rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13722if { (ac_try="$ac_link"
13723case "(($ac_try" in
13724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13725 *) ac_try_echo=$ac_try;;
13726esac
ec6a6fbe
AK
13727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13728$as_echo "$ac_try_echo") >&5
7a197a62 13729 (eval "$ac_link") 2>conftest.er1
ad6254c5 13730 ac_status=$?
8a2fc586
AK
13731 grep -v '^ *+' conftest.er1 >conftest.err
13732 rm -f conftest.er1
13733 cat conftest.err >&5
ec6a6fbe 13734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13735 (exit $ac_status); } && {
13736 test -z "$ac_c_werror_flag" ||
13737 test ! -s conftest.err
ec6a6fbe
AK
13738 } && test -s conftest$ac_exeext && {
13739 test "$cross_compiling" = yes ||
13740 $as_test_x conftest$ac_exeext
13741 }; then
bc1024f8 13742 eval "$as_ac_var=yes"
ad6254c5 13743else
ec6a6fbe 13744 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13745sed 's/^/| /' conftest.$ac_ext >&5
13746
bc1024f8 13747 eval "$as_ac_var=no"
ad6254c5 13748fi
7a197a62 13749
ec6a6fbe 13750rm -rf conftest.dSYM
25fbec5b 13751rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13752 conftest$ac_exeext conftest.$ac_ext
ad6254c5 13753fi
ec6a6fbe
AK
13754ac_res=`eval 'as_val=${'$as_ac_var'}
13755 $as_echo "$as_val"'`
13756 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13757$as_echo "$ac_res" >&6; }
13758as_val=`eval 'as_val=${'$as_ac_var'}
13759 $as_echo "$as_val"'`
13760 if test "x$as_val" = x""yes; then
bc1024f8 13761 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13762#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
13763_ACEOF
13764
13765fi
bc1024f8 13766done
ad6254c5 13767
539f4a77 13768 LIBS=$lvm_saved_libs
ad6254c5
AK
13769fi
13770
13771################################################################################
ec6a6fbe
AK
13772{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
13773$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 13774# Check whether --enable-nls was given.
ad6254c5 13775if test "${enable_nls+set}" = set; then
7a197a62 13776 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
13777else
13778 INTL=no
7a197a62
AK
13779fi
13780
ec6a6fbe
AK
13781{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
13782$as_echo "$INTL" >&6; }
ad6254c5
AK
13783
13784if test x$INTL = xyes; then
93bd259b 13785# FIXME - Move this - can be device-mapper too
ad6254c5
AK
13786 INTL_PACKAGE="lvm2"
13787 # Extract the first word of "msgfmt", so it can be a program name with args.
13788set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
13789{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13790$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 13791if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 13792 $as_echo_n "(cached) " >&6
ad6254c5
AK
13793else
13794 case $MSGFMT in
13795 [\\/]* | ?:[\\/]*)
13796 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13797 ;;
13798 *)
13799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13800for as_dir in $PATH
13801do
13802 IFS=$as_save_IFS
13803 test -z "$as_dir" && as_dir=.
13804 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 13805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 13806 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 13807 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
13808 break 2
13809 fi
13810done
13811done
7a197a62 13812IFS=$as_save_IFS
ad6254c5
AK
13813
13814 ;;
13815esac
13816fi
13817MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 13818if test -n "$MSGFMT"; then
ec6a6fbe
AK
13819 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
13820$as_echo "$MSGFMT" >&6; }
ad6254c5 13821else
ec6a6fbe
AK
13822 { $as_echo "$as_me:$LINENO: result: no" >&5
13823$as_echo "no" >&6; }
ad6254c5
AK
13824fi
13825
7a197a62 13826
ad6254c5 13827 if [ "x$MSGFMT" == x ];
ec6a6fbe 13828 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 13829 " >&5
ec6a6fbe 13830$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
13831 " >&2;}
13832 { (exit 1); exit 1; }; }
13833 fi;
13834
13835
7a197a62 13836# Check whether --with-localedir was given.
ad6254c5 13837if test "${with_localedir+set}" = set; then
7a197a62 13838 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
13839else
13840 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
13841fi
13842
ad6254c5
AK
13843fi
13844
13845################################################################################
13846
7a197a62 13847# Check whether --with-confdir was given.
ad6254c5 13848if test "${with_confdir+set}" = set; then
7a197a62 13849 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
13850else
13851 CONFDIR='/etc'
7a197a62
AK
13852fi
13853
ad6254c5
AK
13854
13855
7a197a62 13856# Check whether --with-staticdir was given.
ad6254c5 13857if test "${with_staticdir+set}" = set; then
7a197a62 13858 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
13859else
13860 STATICDIR='${exec_prefix}/sbin'
7a197a62 13861fi
ad6254c5 13862
33f732c5 13863
7a197a62 13864
68f2de6d
AK
13865# Check whether --with-usrlibdir was given.
13866if test "${with_usrlibdir+set}" = set; then
13867 withval=$with_usrlibdir; usrlibdir="$withval"
13868else
13869 usrlibdir='${prefix}/lib'
13870fi
13871
13872
13873
13874# Check whether --with-usrsbindir was given.
13875if test "${with_usrsbindir+set}" = set; then
13876 withval=$with_usrsbindir; usrsbindir="$withval"
13877else
13878 usrsbindir='${prefix}/sbin'
13879fi
13880
13881
a5f46f6a
AK
13882################################################################################
13883
13884# Check whether --with-udev_prefix was given.
13885if test "${with_udev_prefix+set}" = set; then
13886 withval=$with_udev_prefix; udev_prefix="$withval"
13887else
13888 udev_prefix='${exec_prefix}'
13889fi
13890
13891
78ce7acc
AK
13892
13893# Check whether --with-udevdir was given.
13894if test "${with_udevdir+set}" = set; then
13895 withval=$with_udevdir; udevdir="$withval"
13896else
13897 udevdir='${udev_prefix}/lib/udev/rules.d'
13898fi
13899
a5f46f6a 13900
ad6254c5
AK
13901################################################################################
13902if test x$READLINE = xyes; then
13903
13904
13905for ac_header in readline/readline.h readline/history.h
13906do
ec6a6fbe 13907as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13908if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13909 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13910$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13911if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13912 $as_echo_n "(cached) " >&6
ad6254c5 13913fi
ec6a6fbe
AK
13914ac_res=`eval 'as_val=${'$as_ac_Header'}
13915 $as_echo "$as_val"'`
13916 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13917$as_echo "$ac_res" >&6; }
ad6254c5
AK
13918else
13919 # Is the header compilable?
ec6a6fbe
AK
13920{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13921$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13922cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13923/* confdefs.h. */
13924_ACEOF
13925cat confdefs.h >>conftest.$ac_ext
13926cat >>conftest.$ac_ext <<_ACEOF
13927/* end confdefs.h. */
13928$ac_includes_default
13929#include <$ac_header>
13930_ACEOF
13931rm -f conftest.$ac_objext
7a197a62
AK
13932if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
ad6254c5 13940 ac_status=$?
8a2fc586
AK
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); } && {
13946 test -z "$ac_c_werror_flag" ||
13947 test ! -s conftest.err
13948 } && test -s conftest.$ac_objext; then
ad6254c5
AK
13949 ac_header_compiler=yes
13950else
ec6a6fbe 13951 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13952sed 's/^/| /' conftest.$ac_ext >&5
13953
7a197a62 13954 ac_header_compiler=no
ad6254c5 13955fi
7a197a62
AK
13956
13957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13958{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13959$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13960
13961# Is the header present?
ec6a6fbe
AK
13962{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13963$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 13964cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13965/* confdefs.h. */
13966_ACEOF
13967cat confdefs.h >>conftest.$ac_ext
13968cat >>conftest.$ac_ext <<_ACEOF
13969/* end confdefs.h. */
13970#include <$ac_header>
13971_ACEOF
7a197a62
AK
13972if { (ac_try="$ac_cpp conftest.$ac_ext"
13973case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13976esac
ec6a6fbe
AK
13977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13978$as_echo "$ac_try_echo") >&5
7a197a62 13979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
13980 ac_status=$?
13981 grep -v '^ *+' conftest.er1 >conftest.err
13982 rm -f conftest.er1
13983 cat conftest.err >&5
ec6a6fbe 13984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13985 (exit $ac_status); } >/dev/null && {
13986 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13987 test ! -s conftest.err
13988 }; then
ad6254c5
AK
13989 ac_header_preproc=yes
13990else
ec6a6fbe 13991 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13992sed 's/^/| /' conftest.$ac_ext >&5
13993
13994 ac_header_preproc=no
13995fi
7a197a62 13996
ad6254c5 13997rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
13998{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13999$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14000
14001# So? What about this header?
8a2fc586
AK
14002case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14003 yes:no: )
ec6a6fbe
AK
14004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14005$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14007$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14008 ac_header_preproc=yes
ad6254c5 14009 ;;
8a2fc586 14010 no:yes:* )
ec6a6fbe
AK
14011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14012$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14014$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14016$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14018$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14020$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14022$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14023
ad6254c5
AK
14024 ;;
14025esac
ec6a6fbe
AK
14026{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14027$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14028if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14029 $as_echo_n "(cached) " >&6
ad6254c5 14030else
8a2fc586 14031 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 14032fi
ec6a6fbe
AK
14033ac_res=`eval 'as_val=${'$as_ac_Header'}
14034 $as_echo "$as_val"'`
14035 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14036$as_echo "$ac_res" >&6; }
ad6254c5
AK
14037
14038fi
ec6a6fbe
AK
14039as_val=`eval 'as_val=${'$as_ac_Header'}
14040 $as_echo "$as_val"'`
14041 if test "x$as_val" = x""yes; then
ad6254c5 14042 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14043#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14044_ACEOF
14045
14046else
ec6a6fbe
AK
14047 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14048$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
14049 { (exit 1); exit 1; }; }
14050fi
14051
14052done
14053
14054fi
14055
5c7fc7c4 14056if test x$CLVMD != xnone; then
ad6254c5
AK
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067for 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
14068do
ec6a6fbe 14069as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14070if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14071 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14072$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14073if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14074 $as_echo_n "(cached) " >&6
ad6254c5 14075fi
ec6a6fbe
AK
14076ac_res=`eval 'as_val=${'$as_ac_Header'}
14077 $as_echo "$as_val"'`
14078 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14079$as_echo "$ac_res" >&6; }
ad6254c5
AK
14080else
14081 # Is the header compilable?
ec6a6fbe
AK
14082{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14083$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14084cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14085/* confdefs.h. */
14086_ACEOF
14087cat confdefs.h >>conftest.$ac_ext
14088cat >>conftest.$ac_ext <<_ACEOF
14089/* end confdefs.h. */
14090$ac_includes_default
14091#include <$ac_header>
14092_ACEOF
14093rm -f conftest.$ac_objext
7a197a62
AK
14094if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
ad6254c5 14102 ac_status=$?
8a2fc586
AK
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); } && {
14108 test -z "$ac_c_werror_flag" ||
14109 test ! -s conftest.err
14110 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14111 ac_header_compiler=yes
14112else
ec6a6fbe 14113 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14114sed 's/^/| /' conftest.$ac_ext >&5
14115
7a197a62 14116 ac_header_compiler=no
ad6254c5 14117fi
7a197a62
AK
14118
14119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14120{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14121$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14122
14123# Is the header present?
ec6a6fbe
AK
14124{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14125$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14126cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14127/* confdefs.h. */
14128_ACEOF
14129cat confdefs.h >>conftest.$ac_ext
14130cat >>conftest.$ac_ext <<_ACEOF
14131/* end confdefs.h. */
14132#include <$ac_header>
14133_ACEOF
7a197a62
AK
14134if { (ac_try="$ac_cpp conftest.$ac_ext"
14135case "(($ac_try" in
14136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14137 *) ac_try_echo=$ac_try;;
14138esac
ec6a6fbe
AK
14139eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14140$as_echo "$ac_try_echo") >&5
7a197a62 14141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14142 ac_status=$?
14143 grep -v '^ *+' conftest.er1 >conftest.err
14144 rm -f conftest.er1
14145 cat conftest.err >&5
ec6a6fbe 14146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14147 (exit $ac_status); } >/dev/null && {
14148 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14149 test ! -s conftest.err
14150 }; then
ad6254c5
AK
14151 ac_header_preproc=yes
14152else
ec6a6fbe 14153 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14154sed 's/^/| /' conftest.$ac_ext >&5
14155
14156 ac_header_preproc=no
14157fi
7a197a62 14158
ad6254c5 14159rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14160{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14161$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14162
14163# So? What about this header?
8a2fc586
AK
14164case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14165 yes:no: )
ec6a6fbe
AK
14166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14167$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14169$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14170 ac_header_preproc=yes
ad6254c5 14171 ;;
8a2fc586 14172 no:yes:* )
ec6a6fbe
AK
14173 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14174$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14175 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14176$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14178$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14179 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14180$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14181 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14182$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14184$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14185
ad6254c5
AK
14186 ;;
14187esac
ec6a6fbe
AK
14188{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14189$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14190if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14191 $as_echo_n "(cached) " >&6
ad6254c5 14192else
8a2fc586 14193 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 14194fi
ec6a6fbe
AK
14195ac_res=`eval 'as_val=${'$as_ac_Header'}
14196 $as_echo "$as_val"'`
14197 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14198$as_echo "$ac_res" >&6; }
ad6254c5
AK
14199
14200fi
ec6a6fbe
AK
14201as_val=`eval 'as_val=${'$as_ac_Header'}
14202 $as_echo "$as_val"'`
14203 if test "x$as_val" = x""yes; then
ad6254c5 14204 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14205#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14206_ACEOF
14207
14208else
ec6a6fbe
AK
14209 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14210$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14211 { (exit 1); exit 1; }; }
795ca3e5
AK
14212fi
14213
ad6254c5
AK
14214done
14215
14216
795ca3e5 14217
8106cdd5 14218
ad6254c5
AK
14219
14220
14221for ac_func in dup2 getmntent memmove select socket
14222do
ec6a6fbe
AK
14223as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14224{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14225$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 14226if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14227 $as_echo_n "(cached) " >&6
795ca3e5 14228else
ad6254c5 14229 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14230/* confdefs.h. */
14231_ACEOF
14232cat confdefs.h >>conftest.$ac_ext
14233cat >>conftest.$ac_ext <<_ACEOF
14234/* end confdefs.h. */
8a2fc586
AK
14235/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14237#define $ac_func innocuous_$ac_func
14238
795ca3e5 14239/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
14240 which can conflict with char $ac_func (); below.
14241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14242 <limits.h> exists even on freestanding compilers. */
8a2fc586 14243
ad6254c5
AK
14244#ifdef __STDC__
14245# include <limits.h>
14246#else
14247# include <assert.h>
14248#endif
8a2fc586
AK
14249
14250#undef $ac_func
14251
7a197a62
AK
14252/* Override any GCC internal prototype to avoid an error.
14253 Use char because int might match the return type of a GCC
14254 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14255#ifdef __cplusplus
14256extern "C"
ad6254c5 14257#endif
ad6254c5 14258char $ac_func ();
795ca3e5
AK
14259/* The GNU C library defines this for functions which it implements
14260 to always fail with ENOSYS. Some functions are actually named
14261 something starting with __ and the normal name is an alias. */
7a197a62 14262#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 14263choke me
795ca3e5
AK
14264#endif
14265
ad6254c5
AK
14266int
14267main ()
14268{
7a197a62 14269return $ac_func ();
ad6254c5
AK
14270 ;
14271 return 0;
14272}
14273_ACEOF
14274rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14275if { (ac_try="$ac_link"
14276case "(($ac_try" in
14277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14278 *) ac_try_echo=$ac_try;;
14279esac
ec6a6fbe
AK
14280eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14281$as_echo "$ac_try_echo") >&5
7a197a62 14282 (eval "$ac_link") 2>conftest.er1
ad6254c5 14283 ac_status=$?
8a2fc586
AK
14284 grep -v '^ *+' conftest.er1 >conftest.err
14285 rm -f conftest.er1
14286 cat conftest.err >&5
ec6a6fbe 14287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14288 (exit $ac_status); } && {
14289 test -z "$ac_c_werror_flag" ||
14290 test ! -s conftest.err
ec6a6fbe
AK
14291 } && test -s conftest$ac_exeext && {
14292 test "$cross_compiling" = yes ||
14293 $as_test_x conftest$ac_exeext
14294 }; then
ad6254c5 14295 eval "$as_ac_var=yes"
795ca3e5 14296else
ec6a6fbe 14297 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14298sed 's/^/| /' conftest.$ac_ext >&5
14299
7a197a62 14300 eval "$as_ac_var=no"
80992638 14301fi
7a197a62 14302
ec6a6fbe 14303rm -rf conftest.dSYM
25fbec5b 14304rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 14305 conftest$ac_exeext conftest.$ac_ext
795ca3e5 14306fi
ec6a6fbe
AK
14307ac_res=`eval 'as_val=${'$as_ac_var'}
14308 $as_echo "$as_val"'`
14309 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14310$as_echo "$ac_res" >&6; }
14311as_val=`eval 'as_val=${'$as_ac_var'}
14312 $as_echo "$as_val"'`
14313 if test "x$as_val" = x""yes; then
ad6254c5 14314 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14315#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 14316_ACEOF
80992638
AK
14317
14318else
ec6a6fbe
AK
14319 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14320$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14321 { (exit 1); exit 1; }; }
8106cdd5 14322fi
ad6254c5 14323done
795ca3e5 14324
25fbec5b
AK
14325 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
14326# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
14327{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
14328$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 14329if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 14330 $as_echo_n "(cached) " >&6
25fbec5b
AK
14331else
14332 ac_func_search_save_LIBS=$LIBS
14333cat >conftest.$ac_ext <<_ACEOF
14334/* confdefs.h. */
14335_ACEOF
14336cat confdefs.h >>conftest.$ac_ext
14337cat >>conftest.$ac_ext <<_ACEOF
14338/* end confdefs.h. */
80992638 14339
7a197a62
AK
14340/* Override any GCC internal prototype to avoid an error.
14341 Use char because int might match the return type of a GCC
ad6254c5 14342 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14343#ifdef __cplusplus
14344extern "C"
14345#endif
25fbec5b 14346char getmntent ();
ad6254c5
AK
14347int
14348main ()
14349{
25fbec5b 14350return getmntent ();
ad6254c5
AK
14351 ;
14352 return 0;
14353}
14354_ACEOF
25fbec5b
AK
14355for ac_lib in '' sun seq gen; do
14356 if test -z "$ac_lib"; then
14357 ac_res="none required"
14358 else
14359 ac_res=-l$ac_lib
14360 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14361 fi
14362 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14363if { (ac_try="$ac_link"
14364case "(($ac_try" in
14365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14366 *) ac_try_echo=$ac_try;;
14367esac
ec6a6fbe
AK
14368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14369$as_echo "$ac_try_echo") >&5
7a197a62 14370 (eval "$ac_link") 2>conftest.er1
ad6254c5 14371 ac_status=$?
8a2fc586
AK
14372 grep -v '^ *+' conftest.er1 >conftest.err
14373 rm -f conftest.er1
14374 cat conftest.err >&5
ec6a6fbe 14375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14376 (exit $ac_status); } && {
14377 test -z "$ac_c_werror_flag" ||
14378 test ! -s conftest.err
ec6a6fbe
AK
14379 } && test -s conftest$ac_exeext && {
14380 test "$cross_compiling" = yes ||
14381 $as_test_x conftest$ac_exeext
14382 }; then
25fbec5b 14383 ac_cv_search_getmntent=$ac_res
80992638 14384else
ec6a6fbe 14385 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14386sed 's/^/| /' conftest.$ac_ext >&5
14387
25fbec5b 14388
795ca3e5
AK
14389fi
14390
ec6a6fbe 14391rm -rf conftest.dSYM
25fbec5b
AK
14392rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14393 conftest$ac_exeext
14394 if test "${ac_cv_search_getmntent+set}" = set; then
14395 break
795ca3e5 14396fi
25fbec5b
AK
14397done
14398if test "${ac_cv_search_getmntent+set}" = set; then
14399 :
14400else
14401 ac_cv_search_getmntent=no
14402fi
14403rm conftest.$ac_ext
14404LIBS=$ac_func_search_save_LIBS
14405fi
ec6a6fbe
AK
14406{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
14407$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
14408ac_res=$ac_cv_search_getmntent
14409if test "$ac_res" != no; then
14410 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14411 ac_cv_func_getmntent=yes
14412
14413cat >>confdefs.h <<\_ACEOF
9c961554 14414#define HAVE_GETMNTENT 1
ad6254c5 14415_ACEOF
795ca3e5 14416
25fbec5b
AK
14417else
14418 ac_cv_func_getmntent=no
795ca3e5 14419fi
795ca3e5
AK
14420
14421
ad6254c5
AK
14422# AC_FUNC_REALLOC
14423
14424
14425for ac_header in sys/select.h sys/socket.h
14426do
ec6a6fbe 14427as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14428if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14429 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14430$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14432 $as_echo_n "(cached) " >&6
ad6254c5 14433fi
ec6a6fbe
AK
14434ac_res=`eval 'as_val=${'$as_ac_Header'}
14435 $as_echo "$as_val"'`
14436 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14437$as_echo "$ac_res" >&6; }
795ca3e5 14438else
ad6254c5 14439 # Is the header compilable?
ec6a6fbe
AK
14440{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14441$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14442cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14443/* confdefs.h. */
14444_ACEOF
14445cat confdefs.h >>conftest.$ac_ext
14446cat >>conftest.$ac_ext <<_ACEOF
14447/* end confdefs.h. */
14448$ac_includes_default
14449#include <$ac_header>
14450_ACEOF
14451rm -f conftest.$ac_objext
7a197a62
AK
14452if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
ad6254c5 14460 ac_status=$?
8a2fc586
AK
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); } && {
14466 test -z "$ac_c_werror_flag" ||
14467 test ! -s conftest.err
14468 } && test -s conftest.$ac_objext; then
ad6254c5 14469 ac_header_compiler=yes
80992638 14470else
ec6a6fbe 14471 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14472sed 's/^/| /' conftest.$ac_ext >&5
14473
7a197a62 14474 ac_header_compiler=no
ad6254c5 14475fi
7a197a62
AK
14476
14477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14478{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14479$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14480
14481# Is the header present?
ec6a6fbe
AK
14482{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14483$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14484cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14485/* confdefs.h. */
14486_ACEOF
14487cat confdefs.h >>conftest.$ac_ext
14488cat >>conftest.$ac_ext <<_ACEOF
14489/* end confdefs.h. */
14490#include <$ac_header>
14491_ACEOF
7a197a62
AK
14492if { (ac_try="$ac_cpp conftest.$ac_ext"
14493case "(($ac_try" in
14494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14495 *) ac_try_echo=$ac_try;;
14496esac
ec6a6fbe
AK
14497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14498$as_echo "$ac_try_echo") >&5
7a197a62 14499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14500 ac_status=$?
14501 grep -v '^ *+' conftest.er1 >conftest.err
14502 rm -f conftest.er1
14503 cat conftest.err >&5
ec6a6fbe 14504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14505 (exit $ac_status); } >/dev/null && {
14506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14507 test ! -s conftest.err
14508 }; then
ad6254c5
AK
14509 ac_header_preproc=yes
14510else
ec6a6fbe 14511 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14512sed 's/^/| /' conftest.$ac_ext >&5
14513
14514 ac_header_preproc=no
14515fi
7a197a62 14516
ad6254c5 14517rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14518{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14519$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14520
14521# So? What about this header?
8a2fc586
AK
14522case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14523 yes:no: )
ec6a6fbe
AK
14524 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14525$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14526 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14527$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14528 ac_header_preproc=yes
ad6254c5 14529 ;;
8a2fc586 14530 no:yes:* )
ec6a6fbe
AK
14531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14532$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14534$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14536$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14538$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14540$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14542$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14543
ad6254c5
AK
14544 ;;
14545esac
ec6a6fbe
AK
14546{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14547$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14548if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14549 $as_echo_n "(cached) " >&6
ad6254c5 14550else
8a2fc586 14551 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 14552fi
ec6a6fbe
AK
14553ac_res=`eval 'as_val=${'$as_ac_Header'}
14554 $as_echo "$as_val"'`
14555 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14556$as_echo "$ac_res" >&6; }
8106cdd5 14557
795ca3e5 14558fi
ec6a6fbe
AK
14559as_val=`eval 'as_val=${'$as_ac_Header'}
14560 $as_echo "$as_val"'`
14561 if test "x$as_val" = x""yes; then
ad6254c5 14562 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14563#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14564_ACEOF
14565
795ca3e5
AK
14566fi
14567
ad6254c5
AK
14568done
14569
ec6a6fbe
AK
14570{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
14571$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 14572if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 14573 $as_echo_n "(cached) " >&6
26e7f2e0 14574else
ad6254c5 14575 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 14576 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
14577 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14578 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14579/* confdefs.h. */
14580_ACEOF
14581cat confdefs.h >>conftest.$ac_ext
14582cat >>conftest.$ac_ext <<_ACEOF
14583/* end confdefs.h. */
14584$ac_includes_default
25fbec5b 14585#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
14586# include <sys/select.h>
14587#endif
25fbec5b 14588#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
14589# include <sys/socket.h>
14590#endif
14591
14592int
14593main ()
14594{
14595extern int select ($ac_arg1,
8a2fc586
AK
14596 $ac_arg234, $ac_arg234, $ac_arg234,
14597 $ac_arg5);
ad6254c5
AK
14598 ;
14599 return 0;
14600}
14601_ACEOF
14602rm -f conftest.$ac_objext
7a197a62
AK
14603if { (ac_try="$ac_compile"
14604case "(($ac_try" in
14605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14606 *) ac_try_echo=$ac_try;;
14607esac
ec6a6fbe
AK
14608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14609$as_echo "$ac_try_echo") >&5
7a197a62 14610 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14611 ac_status=$?
8a2fc586
AK
14612 grep -v '^ *+' conftest.er1 >conftest.err
14613 rm -f conftest.er1
14614 cat conftest.err >&5
ec6a6fbe 14615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14616 (exit $ac_status); } && {
14617 test -z "$ac_c_werror_flag" ||
14618 test ! -s conftest.err
14619 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14620 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14621else
ec6a6fbe 14622 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14623sed 's/^/| /' conftest.$ac_ext >&5
14624
7a197a62 14625
ad6254c5 14626fi
7a197a62
AK
14627
14628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
14629 done
14630 done
14631done
14632# Provide a safe default value.
14633: ${ac_cv_func_select_args='int,int *,struct timeval *'}
14634
26e7f2e0 14635fi
ec6a6fbe
AK
14636{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
14637$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
14638ac_save_IFS=$IFS; IFS=','
14639set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14640IFS=$ac_save_IFS
14641shift
14642
14643cat >>confdefs.h <<_ACEOF
14644#define SELECT_TYPE_ARG1 $1
14645_ACEOF
14646
14647
14648cat >>confdefs.h <<_ACEOF
14649#define SELECT_TYPE_ARG234 ($2)
14650_ACEOF
14651
14652
14653cat >>confdefs.h <<_ACEOF
14654#define SELECT_TYPE_ARG5 ($3)
14655_ACEOF
14656
80992638 14657rm -f conftest*
80992638 14658
8106cdd5 14659fi
ad6254c5 14660
ad6254c5
AK
14661if test x$CLUSTER != xnone; then
14662
14663
14664for ac_header in sys/socket.h sys/un.h
b896caa1 14665do
ec6a6fbe 14666as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14668 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14669$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14671 $as_echo_n "(cached) " >&6
ad6254c5 14672fi
ec6a6fbe
AK
14673ac_res=`eval 'as_val=${'$as_ac_Header'}
14674 $as_echo "$as_val"'`
14675 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14676$as_echo "$ac_res" >&6; }
ad6254c5
AK
14677else
14678 # Is the header compilable?
ec6a6fbe
AK
14679{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14680$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14681cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14682/* confdefs.h. */
14683_ACEOF
14684cat confdefs.h >>conftest.$ac_ext
14685cat >>conftest.$ac_ext <<_ACEOF
14686/* end confdefs.h. */
14687$ac_includes_default
14688#include <$ac_header>
14689_ACEOF
14690rm -f conftest.$ac_objext
7a197a62
AK
14691if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
ad6254c5 14699 ac_status=$?
8a2fc586
AK
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); } && {
14705 test -z "$ac_c_werror_flag" ||
14706 test ! -s conftest.err
14707 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14708 ac_header_compiler=yes
14709else
ec6a6fbe 14710 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14711sed 's/^/| /' conftest.$ac_ext >&5
14712
7a197a62 14713 ac_header_compiler=no
ad6254c5 14714fi
7a197a62
AK
14715
14716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14717{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14718$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14719
14720# Is the header present?
ec6a6fbe
AK
14721{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14722$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14723cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14724/* confdefs.h. */
14725_ACEOF
14726cat confdefs.h >>conftest.$ac_ext
14727cat >>conftest.$ac_ext <<_ACEOF
14728/* end confdefs.h. */
14729#include <$ac_header>
14730_ACEOF
7a197a62
AK
14731if { (ac_try="$ac_cpp conftest.$ac_ext"
14732case "(($ac_try" in
14733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14734 *) ac_try_echo=$ac_try;;
14735esac
ec6a6fbe
AK
14736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14737$as_echo "$ac_try_echo") >&5
7a197a62 14738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14739 ac_status=$?
14740 grep -v '^ *+' conftest.er1 >conftest.err
14741 rm -f conftest.er1
14742 cat conftest.err >&5
ec6a6fbe 14743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14744 (exit $ac_status); } >/dev/null && {
14745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14746 test ! -s conftest.err
14747 }; then
ad6254c5
AK
14748 ac_header_preproc=yes
14749else
ec6a6fbe 14750 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14751sed 's/^/| /' conftest.$ac_ext >&5
14752
14753 ac_header_preproc=no
14754fi
7a197a62 14755
ad6254c5 14756rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14757{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14758$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14759
14760# So? What about this header?
8a2fc586
AK
14761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14762 yes:no: )
ec6a6fbe
AK
14763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14764$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14766$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14767 ac_header_preproc=yes
ad6254c5 14768 ;;
8a2fc586 14769 no:yes:* )
ec6a6fbe
AK
14770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14771$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14773$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14775$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14777$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14779$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14781$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14782
ad6254c5
AK
14783 ;;
14784esac
ec6a6fbe
AK
14785{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14786$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14787if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14788 $as_echo_n "(cached) " >&6
ad6254c5 14789else
8a2fc586 14790 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 14791fi
ec6a6fbe
AK
14792ac_res=`eval 'as_val=${'$as_ac_Header'}
14793 $as_echo "$as_val"'`
14794 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14795$as_echo "$ac_res" >&6; }
ad6254c5
AK
14796
14797fi
ec6a6fbe
AK
14798as_val=`eval 'as_val=${'$as_ac_Header'}
14799 $as_echo "$as_val"'`
14800 if test "x$as_val" = x""yes; then
ad6254c5 14801 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14802#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14803_ACEOF
14804
80992638 14805else
ec6a6fbe
AK
14806 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14807$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14808 { (exit 1); exit 1; }; }
b896caa1 14809fi
ad6254c5 14810
b896caa1
AK
14811done
14812
14813
ad6254c5
AK
14814for ac_func in socket
14815do
ec6a6fbe
AK
14816as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14817{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14818$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 14819if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14820 $as_echo_n "(cached) " >&6
795ca3e5 14821else
ad6254c5 14822 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14823/* confdefs.h. */
14824_ACEOF
14825cat confdefs.h >>conftest.$ac_ext
14826cat >>conftest.$ac_ext <<_ACEOF
14827/* end confdefs.h. */
8a2fc586
AK
14828/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14830#define $ac_func innocuous_$ac_func
14831
ad6254c5
AK
14832/* System header to define __stub macros and hopefully few prototypes,
14833 which can conflict with char $ac_func (); below.
14834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14835 <limits.h> exists even on freestanding compilers. */
8a2fc586 14836
ad6254c5
AK
14837#ifdef __STDC__
14838# include <limits.h>
14839#else
14840# include <assert.h>
14841#endif
8a2fc586
AK
14842
14843#undef $ac_func
14844
7a197a62
AK
14845/* Override any GCC internal prototype to avoid an error.
14846 Use char because int might match the return type of a GCC
14847 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14848#ifdef __cplusplus
14849extern "C"
ad6254c5 14850#endif
ad6254c5
AK
14851char $ac_func ();
14852/* The GNU C library defines this for functions which it implements
14853 to always fail with ENOSYS. Some functions are actually named
14854 something starting with __ and the normal name is an alias. */
7a197a62 14855#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 14856choke me
ad6254c5
AK
14857#endif
14858
14859int
14860main ()
14861{
7a197a62 14862return $ac_func ();
ad6254c5
AK
14863 ;
14864 return 0;
14865}
14866_ACEOF
14867rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14868if { (ac_try="$ac_link"
14869case "(($ac_try" in
14870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871 *) ac_try_echo=$ac_try;;
14872esac
ec6a6fbe
AK
14873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14874$as_echo "$ac_try_echo") >&5
7a197a62 14875 (eval "$ac_link") 2>conftest.er1
ad6254c5 14876 ac_status=$?
8a2fc586
AK
14877 grep -v '^ *+' conftest.er1 >conftest.err
14878 rm -f conftest.er1
14879 cat conftest.err >&5
ec6a6fbe 14880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14881 (exit $ac_status); } && {
14882 test -z "$ac_c_werror_flag" ||
14883 test ! -s conftest.err
ec6a6fbe
AK
14884 } && test -s conftest$ac_exeext && {
14885 test "$cross_compiling" = yes ||
14886 $as_test_x conftest$ac_exeext
14887 }; then
ad6254c5
AK
14888 eval "$as_ac_var=yes"
14889else
ec6a6fbe 14890 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14891sed 's/^/| /' conftest.$ac_ext >&5
14892
7a197a62 14893 eval "$as_ac_var=no"
ad6254c5 14894fi
7a197a62 14895
ec6a6fbe 14896rm -rf conftest.dSYM
25fbec5b 14897rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 14898 conftest$ac_exeext conftest.$ac_ext
ad6254c5 14899fi
ec6a6fbe
AK
14900ac_res=`eval 'as_val=${'$as_ac_var'}
14901 $as_echo "$as_val"'`
14902 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14903$as_echo "$ac_res" >&6; }
14904as_val=`eval 'as_val=${'$as_ac_var'}
14905 $as_echo "$as_val"'`
14906 if test "x$as_val" = x""yes; then
ad6254c5 14907 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14908#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
14909_ACEOF
14910
14911else
ec6a6fbe
AK
14912 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14913$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
14914 { (exit 1); exit 1; }; }
14915fi
14916done
14917
14918fi
14919
14920if test x$HAVE_LIBDL = xyes; then
14921
14922for ac_header in dlfcn.h
14923do
ec6a6fbe 14924as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14925if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14926 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14927$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14928if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14929 $as_echo_n "(cached) " >&6
ad6254c5 14930fi
ec6a6fbe
AK
14931ac_res=`eval 'as_val=${'$as_ac_Header'}
14932 $as_echo "$as_val"'`
14933 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14934$as_echo "$ac_res" >&6; }
ad6254c5
AK
14935else
14936 # Is the header compilable?
ec6a6fbe
AK
14937{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14938$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14939cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14940/* confdefs.h. */
14941_ACEOF
14942cat confdefs.h >>conftest.$ac_ext
14943cat >>conftest.$ac_ext <<_ACEOF
14944/* end confdefs.h. */
14945$ac_includes_default
14946#include <$ac_header>
14947_ACEOF
14948rm -f conftest.$ac_objext
7a197a62
AK
14949if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
ad6254c5 14957 ac_status=$?
8a2fc586
AK
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); } && {
14963 test -z "$ac_c_werror_flag" ||
14964 test ! -s conftest.err
14965 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14966 ac_header_compiler=yes
14967else
ec6a6fbe 14968 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14969sed 's/^/| /' conftest.$ac_ext >&5
14970
7a197a62 14971 ac_header_compiler=no
ad6254c5 14972fi
7a197a62
AK
14973
14974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14975{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14976$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14977
14978# Is the header present?
ec6a6fbe
AK
14979{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14980$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14981cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14982/* confdefs.h. */
14983_ACEOF
14984cat confdefs.h >>conftest.$ac_ext
14985cat >>conftest.$ac_ext <<_ACEOF
14986/* end confdefs.h. */
14987#include <$ac_header>
14988_ACEOF
7a197a62
AK
14989if { (ac_try="$ac_cpp conftest.$ac_ext"
14990case "(($ac_try" in
14991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992 *) ac_try_echo=$ac_try;;
14993esac
ec6a6fbe
AK
14994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14995$as_echo "$ac_try_echo") >&5
7a197a62 14996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14997 ac_status=$?
14998 grep -v '^ *+' conftest.er1 >conftest.err
14999 rm -f conftest.er1
15000 cat conftest.err >&5
ec6a6fbe 15001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15002 (exit $ac_status); } >/dev/null && {
15003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15004 test ! -s conftest.err
15005 }; then
ad6254c5
AK
15006 ac_header_preproc=yes
15007else
ec6a6fbe 15008 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15009sed 's/^/| /' conftest.$ac_ext >&5
15010
15011 ac_header_preproc=no
15012fi
7a197a62 15013
ad6254c5 15014rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
15015{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15016$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
15017
15018# So? What about this header?
8a2fc586
AK
15019case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15020 yes:no: )
ec6a6fbe
AK
15021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15022$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15024$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 15025 ac_header_preproc=yes
ad6254c5 15026 ;;
8a2fc586 15027 no:yes:* )
ec6a6fbe
AK
15028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15029$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15031$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15033$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15035$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15037$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15039$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 15040
ad6254c5
AK
15041 ;;
15042esac
ec6a6fbe
AK
15043{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15044$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15045if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15046 $as_echo_n "(cached) " >&6
ad6254c5 15047else
8a2fc586 15048 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 15049fi
ec6a6fbe
AK
15050ac_res=`eval 'as_val=${'$as_ac_Header'}
15051 $as_echo "$as_val"'`
15052 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15053$as_echo "$ac_res" >&6; }
80992638 15054
8106cdd5 15055fi
ec6a6fbe
AK
15056as_val=`eval 'as_val=${'$as_ac_Header'}
15057 $as_echo "$as_val"'`
15058 if test "x$as_val" = x""yes; then
ad6254c5 15059 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15060#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15061_ACEOF
795ca3e5
AK
15062
15063else
ec6a6fbe
AK
15064 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15065$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 15066 { (exit 1); exit 1; }; }
795ca3e5
AK
15067fi
15068
ad6254c5 15069done
80992638 15070
ad6254c5 15071fi
80992638 15072
ad6254c5 15073if test x$INTL = xyes; then
83912faa 15074
ad6254c5
AK
15075for ac_header in libintl.h
15076do
ec6a6fbe 15077as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 15078if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
15079 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15080$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15081if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15082 $as_echo_n "(cached) " >&6
ad6254c5 15083fi
ec6a6fbe
AK
15084ac_res=`eval 'as_val=${'$as_ac_Header'}
15085 $as_echo "$as_val"'`
15086 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15087$as_echo "$ac_res" >&6; }
83912faa 15088else
ad6254c5 15089 # Is the header compilable?
ec6a6fbe
AK
15090{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15091$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 15092cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15093/* confdefs.h. */
15094_ACEOF
15095cat confdefs.h >>conftest.$ac_ext
15096cat >>conftest.$ac_ext <<_ACEOF
15097/* end confdefs.h. */
15098$ac_includes_default
15099#include <$ac_header>
15100_ACEOF
15101rm -f conftest.$ac_objext
7a197a62
AK
15102if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
ad6254c5 15110 ac_status=$?
8a2fc586
AK
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); } && {
15116 test -z "$ac_c_werror_flag" ||
15117 test ! -s conftest.err
15118 } && test -s conftest.$ac_objext; then
ad6254c5
AK
15119 ac_header_compiler=yes
15120else
ec6a6fbe 15121 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15122sed 's/^/| /' conftest.$ac_ext >&5
15123
7a197a62 15124 ac_header_compiler=no
ad6254c5 15125fi
7a197a62
AK
15126
15127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
15128{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15129$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
15130
15131# Is the header present?
ec6a6fbe
AK
15132{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15133$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 15134cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15135/* confdefs.h. */
15136_ACEOF
15137cat confdefs.h >>conftest.$ac_ext
15138cat >>conftest.$ac_ext <<_ACEOF
15139/* end confdefs.h. */
15140#include <$ac_header>
15141_ACEOF
7a197a62
AK
15142if { (ac_try="$ac_cpp conftest.$ac_ext"
15143case "(($ac_try" in
15144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15145 *) ac_try_echo=$ac_try;;
15146esac
ec6a6fbe
AK
15147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15148$as_echo "$ac_try_echo") >&5
7a197a62 15149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
15150 ac_status=$?
15151 grep -v '^ *+' conftest.er1 >conftest.err
15152 rm -f conftest.er1
15153 cat conftest.err >&5
ec6a6fbe 15154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15155 (exit $ac_status); } >/dev/null && {
15156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15157 test ! -s conftest.err
15158 }; then
ad6254c5
AK
15159 ac_header_preproc=yes
15160else
ec6a6fbe 15161 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15162sed 's/^/| /' conftest.$ac_ext >&5
15163
15164 ac_header_preproc=no
15165fi
7a197a62 15166
ad6254c5 15167rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
15168{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15169$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
15170
15171# So? What about this header?
8a2fc586
AK
15172case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15173 yes:no: )
ec6a6fbe
AK
15174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15175$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15176 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15177$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 15178 ac_header_preproc=yes
ad6254c5 15179 ;;
8a2fc586 15180 no:yes:* )
ec6a6fbe
AK
15181 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15182$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15184$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15185 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15186$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15187 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15188$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15189 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15190$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15192$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 15193
ad6254c5
AK
15194 ;;
15195esac
ec6a6fbe
AK
15196{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15197$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15198if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15199 $as_echo_n "(cached) " >&6
80992638 15200else
8a2fc586 15201 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 15202fi
ec6a6fbe
AK
15203ac_res=`eval 'as_val=${'$as_ac_Header'}
15204 $as_echo "$as_val"'`
15205 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15206$as_echo "$ac_res" >&6; }
83912faa 15207
69792976 15208fi
ec6a6fbe
AK
15209as_val=`eval 'as_val=${'$as_ac_Header'}
15210 $as_echo "$as_val"'`
15211 if test "x$as_val" = x""yes; then
ad6254c5 15212 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15213#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15214_ACEOF
69792976 15215
69792976 15216else
ec6a6fbe
AK
15217 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15218$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 15219 { (exit 1); exit 1; }; }
80992638
AK
15220fi
15221
ad6254c5 15222done
69792976 15223
ad6254c5
AK
15224fi
15225
a5f46f6a
AK
15226if test x$UDEV_SYNC = xyes; then
15227
15228
15229for ac_header in sys/ipc.h sys/sem.h
15230do
15231as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15232if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15233 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15234$as_echo_n "checking for $ac_header... " >&6; }
15235if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15236 $as_echo_n "(cached) " >&6
15237fi
15238ac_res=`eval 'as_val=${'$as_ac_Header'}
15239 $as_echo "$as_val"'`
15240 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15241$as_echo "$ac_res" >&6; }
15242else
15243 # Is the header compilable?
15244{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15245$as_echo_n "checking $ac_header usability... " >&6; }
15246cat >conftest.$ac_ext <<_ACEOF
15247/* confdefs.h. */
15248_ACEOF
15249cat confdefs.h >>conftest.$ac_ext
15250cat >>conftest.$ac_ext <<_ACEOF
15251/* end confdefs.h. */
15252$ac_includes_default
15253#include <$ac_header>
15254_ACEOF
15255rm -f conftest.$ac_objext
15256if { (ac_try="$ac_compile"
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_compile") 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); } && {
15270 test -z "$ac_c_werror_flag" ||
15271 test ! -s conftest.err
15272 } && test -s conftest.$ac_objext; then
15273 ac_header_compiler=yes
15274else
15275 $as_echo "$as_me: failed program was:" >&5
15276sed 's/^/| /' conftest.$ac_ext >&5
15277
15278 ac_header_compiler=no
15279fi
15280
15281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15282{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15283$as_echo "$ac_header_compiler" >&6; }
15284
15285# Is the header present?
15286{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15287$as_echo_n "checking $ac_header presence... " >&6; }
15288cat >conftest.$ac_ext <<_ACEOF
15289/* confdefs.h. */
15290_ACEOF
15291cat confdefs.h >>conftest.$ac_ext
15292cat >>conftest.$ac_ext <<_ACEOF
15293/* end confdefs.h. */
15294#include <$ac_header>
15295_ACEOF
15296if { (ac_try="$ac_cpp conftest.$ac_ext"
15297case "(($ac_try" in
15298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15299 *) ac_try_echo=$ac_try;;
15300esac
15301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15302$as_echo "$ac_try_echo") >&5
15303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15304 ac_status=$?
15305 grep -v '^ *+' conftest.er1 >conftest.err
15306 rm -f conftest.er1
15307 cat conftest.err >&5
15308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); } >/dev/null && {
15310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15311 test ! -s conftest.err
15312 }; then
15313 ac_header_preproc=yes
15314else
15315 $as_echo "$as_me: failed program was:" >&5
15316sed 's/^/| /' conftest.$ac_ext >&5
15317
15318 ac_header_preproc=no
15319fi
15320
15321rm -f conftest.err conftest.$ac_ext
15322{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15323$as_echo "$ac_header_preproc" >&6; }
15324
15325# So? What about this header?
15326case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15327 yes:no: )
15328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15329$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15331$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15332 ac_header_preproc=yes
15333 ;;
15334 no:yes:* )
15335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15336$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15338$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15340$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15342$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15344$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15346$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15347
15348 ;;
15349esac
15350{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15351$as_echo_n "checking for $ac_header... " >&6; }
15352if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15353 $as_echo_n "(cached) " >&6
15354else
15355 eval "$as_ac_Header=\$ac_header_preproc"
15356fi
15357ac_res=`eval 'as_val=${'$as_ac_Header'}
15358 $as_echo "$as_val"'`
15359 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15360$as_echo "$ac_res" >&6; }
15361
15362fi
15363as_val=`eval 'as_val=${'$as_ac_Header'}
15364 $as_echo "$as_val"'`
15365 if test "x$as_val" = x""yes; then
15366 cat >>confdefs.h <<_ACEOF
15367#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15368_ACEOF
15369
15370else
15371 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15372$as_echo "$as_me: error: bailing out" >&2;}
15373 { (exit 1); exit 1; }; }
15374fi
15375
15376done
15377
15378fi
15379
a653923f
AK
15380################################################################################
15381# Extract the first word of "modprobe", so it can be a program name with args.
15382set dummy modprobe; ac_word=$2
ec6a6fbe
AK
15383{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15384$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 15385if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 15386 $as_echo_n "(cached) " >&6
72b2cb61
AK
15387else
15388 case $MODPROBE_CMD in
15389 [\\/]* | ?:[\\/]*)
15390 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
15391 ;;
15392 *)
15393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15394for as_dir in $PATH
15395do
15396 IFS=$as_save_IFS
15397 test -z "$as_dir" && as_dir=.
15398 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 15399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 15400 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 15401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
15402 break 2
15403 fi
15404done
15405done
7a197a62 15406IFS=$as_save_IFS
72b2cb61
AK
15407
15408 ;;
15409esac
15410fi
15411MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 15412if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
15413 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
15414$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 15415else
ec6a6fbe
AK
15416 { $as_echo "$as_me:$LINENO: result: no" >&5
15417$as_echo "no" >&6; }
72b2cb61
AK
15418fi
15419
a653923f 15420
7a197a62 15421
a653923f 15422if test x$MODPROBE_CMD != x; then
72b2cb61
AK
15423
15424cat >>confdefs.h <<_ACEOF
15425#define MODPROBE_CMD "$MODPROBE_CMD"
15426_ACEOF
15427
a653923f
AK
15428fi
15429
80992638 15430################################################################################
93bd259b
AK
15431
15432
15433if test "$BUILD_DMEVENTD" = yes; then
15434
15435# Check whether --with-dmeventd-pidfile was given.
15436if test "${with_dmeventd_pidfile+set}" = set; then
15437 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
15438#define DMEVENTD_PIDFILE "$withval"
15439_ACEOF
15440
15441else
15442 cat >>confdefs.h <<_ACEOF
15443#define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
15444_ACEOF
15445
15446fi
15447
15448fi
15449
15450
15451
15452if test "$BUILD_DMEVENTD" = yes; then
15453 dmeventd_prefix="$exec_prefix"
15454 if test "x$dmeventd_prefix" = "xNONE"; then
15455 dmeventd_prefix="$prefix"
15456 fi
15457 if test "x$dmeventd_prefix" = "xNONE"; then
15458 dmeventd_prefix=""
15459 fi
15460
15461# Check whether --with-dmeventd-path was given.
15462if test "${with_dmeventd_path+set}" = set; then
15463 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
15464#define DMEVENTD_PATH "$withval"
15465_ACEOF
15466
15467else
15468 cat >>confdefs.h <<_ACEOF
15469#define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
15470_ACEOF
15471
15472fi
15473
15474fi
15475
15476################################################################################
ec6a6fbe
AK
15477{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
15478$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
15479
15480# Check whether --with-interface was given.
15481if test "${with_interface+set}" = set; then
15482 withval=$with_interface; interface="$withval"
15483else
15484 interface=ioctl
15485fi
15486
15487if [ "x$interface" != xioctl ];
15488then
ec6a6fbe
AK
15489 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
15490$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
15491 { (exit 1); exit 1; }; }
15492fi
ec6a6fbe
AK
15493{ $as_echo "$as_me:$LINENO: result: $interface" >&5
15494$as_echo "$interface" >&6; }
93bd259b
AK
15495
15496################################################################################
db8b5af9 15497DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
15498
15499cat >>confdefs.h <<_ACEOF
15500#define DM_LIB_VERSION $DM_LIB_VERSION
15501_ACEOF
15502
15503
db8b5af9 15504DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 15505
db8b5af9 15506LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 15507
db8b5af9 15508VER=`cat "$srcdir"/VERSION`
bf456146 15509LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
15510VER=`echo "$VER" | $AWK '{print $1}'`
15511LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
15512VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
15513LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
15514LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
15515LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
15516LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 15517
80992638 15518################################################################################
fae0c576 15519
83912faa 15520
795ca3e5
AK
15521
15522
15523
15524
15525
15526
5a52dca9 15527
8ef2b021 15528
199e490e 15529
69792976
AK
15530
15531
15532
d0191583 15533
69792976 15534
8106cdd5
AK
15535
15536
15537
15538
15539
d68a82ec 15540
036f273a 15541
7d1552c9 15542
8106cdd5 15543
0a62c911 15544
8106cdd5 15545
4a7f3eb2 15546
4922197a
AK
15547
15548
d8ac0fbc 15549
1a9ea74d 15550
8a2fc586
AK
15551
15552
d0191583 15553
93bd259b
AK
15554
15555
15556
15557
15558
d0191583
JM
15559
15560
15561
15562
15563
8a2fc586 15564
19a2c6e0 15565
db724a44 15566
8ce0cbda 15567
8b1a3214 15568
ec6a6fbe
AK
15569
15570
15571
15572
e2997b73
AK
15573
15574
15575
15576
15577
15578
a946372e
AK
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
ec6a6fbe 15590
33f732c5 15591
66e941e8 15592
d3c8211f 15593
7e3fe830 15594
a5f46f6a
AK
15595
15596
15597
572fefeb 15598
90c80887
AK
15599
15600
bf456146 15601
e1b8a236 15602
0878503f 15603
68f2de6d
AK
15604
15605
80992638 15606################################################################################
d3d98fdc 15607ac_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 15608
ad6254c5 15609cat >confcache <<\_ACEOF
795ca3e5
AK
15610# This file is a shell script that caches the results of configure
15611# tests run on this system so they can be shared between configure
ad6254c5
AK
15612# scripts and configure runs, see configure's option --config-cache.
15613# It is not useful on other systems. If it contains results you don't
15614# want to keep, you may remove or edit it.
795ca3e5 15615#
ad6254c5
AK
15616# config.status only pays attention to the cache file if you give it
15617# the --recheck option to rerun configure.
795ca3e5 15618#
ad6254c5
AK
15619# `ac_cv_env_foo' variables (set or unset) will be overridden when
15620# loading this file, other *unset* `ac_cv_foo' will be assigned the
15621# following values.
15622
15623_ACEOF
15624
795ca3e5
AK
15625# The following way of writing the cache mishandles newlines in values,
15626# but we know of no workaround that is simple, portable, and efficient.
7a197a62 15627# So, we kill variables containing newlines.
795ca3e5
AK
15628# Ultrix sh set writes to stderr and can't be redirected directly,
15629# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
15630(
15631 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15632 eval ac_val=\$$ac_var
15633 case $ac_val in #(
15634 *${as_nl}*)
15635 case $ac_var in #(
ec6a6fbe
AK
15636 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15637$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
15638 esac
15639 case $ac_var in #(
15640 _ | IFS | as_nl) ;; #(
ec6a6fbe 15641 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
15642 *) $as_unset $ac_var ;;
15643 esac ;;
15644 esac
15645 done
15646
ad6254c5 15647 (set) 2>&1 |
7a197a62
AK
15648 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15649 *${as_nl}ac_space=\ *)
ad6254c5
AK
15650 # `set' does not quote correctly, so add quotes (double-quote
15651 # substitution turns \\\\ into \\, and sed turns \\ into \).
15652 sed -n \
8a2fc586
AK
15653 "s/'/'\\\\''/g;
15654 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 15655 ;; #(
ad6254c5
AK
15656 *)
15657 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 15658 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 15659 ;;
7a197a62
AK
15660 esac |
15661 sort
15662) |
ad6254c5 15663 sed '
7a197a62 15664 /^ac_cv_env_/b end
ad6254c5 15665 t clear
7a197a62 15666 :clear
ad6254c5
AK
15667 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15668 t end
7a197a62
AK
15669 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15670 :end' >>confcache
15671if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15672 if test -w "$cache_file"; then
15673 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
15674 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15675$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 15676 cat confcache >$cache_file
795ca3e5 15677 else
ec6a6fbe
AK
15678 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15679$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
15680 fi
15681fi
15682rm -f confcache
15683
795ca3e5
AK
15684test "x$prefix" = xNONE && prefix=$ac_default_prefix
15685# Let make expand exec_prefix.
15686test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15687
72b2cb61 15688DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
15689
15690ac_libobjs=
15691ac_ltlibobjs=
15692for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15693 # 1. Remove the extension, and $U if already installed.
7a197a62 15694 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 15695 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
15696 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15697 # will be set to the directory where LIBOBJS objects are built.
15698 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15699 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
15700done
15701LIBOBJS=$ac_libobjs
80992638 15702
ad6254c5
AK
15703LTLIBOBJS=$ac_ltlibobjs
15704
15705
15706
15707: ${CONFIG_STATUS=./config.status}
ec6a6fbe 15708ac_write_fail=0
ad6254c5
AK
15709ac_clean_files_save=$ac_clean_files
15710ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
15711{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15712$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15713cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
15714#! $SHELL
15715# Generated by $as_me.
795ca3e5 15716# Run this file to recreate the current configuration.
795ca3e5 15717# Compiler output produced by configure, useful for debugging
ad6254c5
AK
15718# configure, is in config.log if it exists.
15719
15720debug=false
15721ac_cs_recheck=false
15722ac_cs_silent=false
15723SHELL=\${CONFIG_SHELL-$SHELL}
15724_ACEOF
15725
ec6a6fbe 15726cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
15727## --------------------- ##
15728## M4sh Initialization. ##
15729## --------------------- ##
15730
25fbec5b
AK
15731# Be more Bourne compatible
15732DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
15733if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15734 emulate sh
15735 NULLCMD=:
ec6a6fbe 15736 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
15737 # is contrary to our usage. Disable this feature.
15738 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
15739 setopt NO_GLOB_SUBST
15740else
25fbec5b
AK
15741 case `(set -o) 2>/dev/null` in
15742 *posix*) set -o posix ;;
15743esac
15744
7a197a62 15745fi
25fbec5b
AK
15746
15747
7a197a62
AK
15748
15749
15750# PATH needs CR
15751# Avoid depending upon Character Ranges.
15752as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15753as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15754as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15755as_cr_digits='0123456789'
15756as_cr_alnum=$as_cr_Letters$as_cr_digits
15757
ec6a6fbe
AK
15758as_nl='
15759'
15760export as_nl
15761# Printing a long string crashes Solaris 7 /usr/bin/printf.
15762as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15763as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15764as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15765if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15766 as_echo='printf %s\n'
15767 as_echo_n='printf %s'
15768else
15769 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15770 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15771 as_echo_n='/usr/ucb/echo -n'
68f2de6d 15772 else
ec6a6fbe
AK
15773 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15774 as_echo_n_body='eval
15775 arg=$1;
15776 case $arg in
15777 *"$as_nl"*)
15778 expr "X$arg" : "X\\(.*\\)$as_nl";
15779 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15780 esac;
15781 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15782 '
15783 export as_echo_n_body
15784 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 15785 fi
ec6a6fbe
AK
15786 export as_echo_body
15787 as_echo='sh -c $as_echo_body as_echo'
15788fi
15789
15790# The user is always right.
15791if test "${PATH_SEPARATOR+set}" != set; then
15792 PATH_SEPARATOR=:
15793 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15794 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15795 PATH_SEPARATOR=';'
15796 }
ad6254c5
AK
15797fi
15798
15799# Support unset when possible.
8a2fc586 15800if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
15801 as_unset=unset
15802else
15803 as_unset=false
15804fi
8106cdd5 15805
ad6254c5 15806
7a197a62
AK
15807# IFS
15808# We need space, tab and new line, in precisely that order. Quoting is
15809# there to prevent editors from complaining about space-tab.
15810# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15811# splitting by setting IFS to empty value.)
7a197a62
AK
15812IFS=" "" $as_nl"
15813
15814# Find who we are. Look in the path if we contain no directory separator.
15815case $0 in
15816 *[\\/]* ) as_myself=$0 ;;
15817 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15818for as_dir in $PATH
15819do
15820 IFS=$as_save_IFS
15821 test -z "$as_dir" && as_dir=.
15822 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15823done
15824IFS=$as_save_IFS
15825
15826 ;;
15827esac
15828# We did not find ourselves, most probably we were run as `sh COMMAND'
15829# in which case we are not to be found in the path.
15830if test "x$as_myself" = x; then
15831 as_myself=$0
15832fi
15833if test ! -f "$as_myself"; then
ec6a6fbe 15834 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
15835 { (exit 1); exit 1; }
15836fi
15837
ad6254c5 15838# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
15839for as_var in ENV MAIL MAILPATH
15840do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15841done
ad6254c5
AK
15842PS1='$ '
15843PS2='> '
15844PS4='+ '
15845
15846# NLS nuisances.
ec6a6fbe
AK
15847LC_ALL=C
15848export LC_ALL
15849LANGUAGE=C
15850export LANGUAGE
8106cdd5 15851
ad6254c5 15852# Required to use basename.
7a197a62
AK
15853if expr a : '\(a\)' >/dev/null 2>&1 &&
15854 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
15855 as_expr=expr
15856else
15857 as_expr=false
15858fi
8106cdd5 15859
7a197a62 15860if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
15861 as_basename=basename
15862else
15863 as_basename=false
15864fi
15865
15866
15867# Name of the executable.
7a197a62 15868as_me=`$as_basename -- "$0" ||
ad6254c5
AK
15869$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15870 X"$0" : 'X\(//\)$' \| \
7a197a62 15871 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 15872$as_echo X/"$0" |
7a197a62
AK
15873 sed '/^.*\/\([^/][^/]*\)\/*$/{
15874 s//\1/
15875 q
15876 }
15877 /^X\/\(\/\/\)$/{
15878 s//\1/
15879 q
15880 }
15881 /^X\/\(\/\).*/{
15882 s//\1/
15883 q
15884 }
15885 s/.*/./; q'`
ad6254c5 15886
7a197a62
AK
15887# CDPATH.
15888$as_unset CDPATH
ad6254c5
AK
15889
15890
ad6254c5 15891
ad6254c5
AK
15892 as_lineno_1=$LINENO
15893 as_lineno_2=$LINENO
ad6254c5 15894 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 15895 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 15896
ad6254c5
AK
15897 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15898 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
15899 # line-number line after each line using $LINENO; the second 'sed'
15900 # does the real work. The second script uses 'N' to pair each
15901 # line-number line with the line containing $LINENO, and appends
15902 # trailing '-' during substitution so that $LINENO is not a special
15903 # case at line end.
ad6254c5 15904 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
15905 # scripts with optimization help from Paolo Bonzini. Blame Lee
15906 # E. McMahon (1931-1989) for sed's syntax. :-)
15907 sed -n '
15908 p
15909 /[$]LINENO/=
15910 ' <$as_myself |
ad6254c5 15911 sed '
7a197a62
AK
15912 s/[$]LINENO.*/&-/
15913 t lineno
15914 b
15915 :lineno
ad6254c5 15916 N
7a197a62
AK
15917 :loop
15918 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 15919 t loop
7a197a62 15920 s/-\n.*//
ad6254c5 15921 ' >$as_me.lineno &&
7a197a62 15922 chmod +x "$as_me.lineno" ||
ec6a6fbe 15923 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
15924 { (exit 1); exit 1; }; }
15925
15926 # Don't try to exec as it changes $[0], causing all sort of problems
15927 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
15928 # original and so on. Autoconf is especially sensitive to this).
15929 . "./$as_me.lineno"
ad6254c5
AK
15930 # Exit status is that of the last command.
15931 exit
15932}
15933
15934
7a197a62
AK
15935if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15936 as_dirname=dirname
15937else
15938 as_dirname=false
15939fi
15940
15941ECHO_C= ECHO_N= ECHO_T=
15942case `echo -n x` in
15943-n*)
15944 case `echo 'x\c'` in
15945 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15946 *) ECHO_C='\c';;
15947 esac;;
15948*)
15949 ECHO_N='-n';;
ad6254c5 15950esac
7a197a62
AK
15951if expr a : '\(a\)' >/dev/null 2>&1 &&
15952 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
15953 as_expr=expr
15954else
15955 as_expr=false
15956fi
80992638 15957
ad6254c5 15958rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
15959if test -d conf$$.dir; then
15960 rm -f conf$$.dir/conf$$.file
15961else
15962 rm -f conf$$.dir
ec6a6fbe
AK
15963 mkdir conf$$.dir 2>/dev/null
15964fi
15965if (echo >conf$$.file) 2>/dev/null; then
15966 if ln -s conf$$.file conf$$ 2>/dev/null; then
15967 as_ln_s='ln -s'
15968 # ... but there are two gotchas:
15969 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15970 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15971 # In both cases, we have to default to `cp -p'.
15972 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15973 as_ln_s='cp -p'
15974 elif ln conf$$.file conf$$ 2>/dev/null; then
15975 as_ln_s=ln
15976 else
ad6254c5 15977 as_ln_s='cp -p'
ec6a6fbe 15978 fi
ad6254c5
AK
15979else
15980 as_ln_s='cp -p'
15981fi
7a197a62
AK
15982rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15983rmdir conf$$.dir 2>/dev/null
8106cdd5 15984
ad6254c5
AK
15985if mkdir -p . 2>/dev/null; then
15986 as_mkdir_p=:
15987else
8a2fc586 15988 test -d ./-p && rmdir ./-p
ad6254c5
AK
15989 as_mkdir_p=false
15990fi
15991
25fbec5b
AK
15992if test -x / >/dev/null 2>&1; then
15993 as_test_x='test -x'
7a197a62 15994else
25fbec5b
AK
15995 if ls -dL / >/dev/null 2>&1; then
15996 as_ls_L_option=L
15997 else
15998 as_ls_L_option=
15999 fi
16000 as_test_x='
16001 eval sh -c '\''
16002 if test -d "$1"; then
ec6a6fbe 16003 test -d "$1/.";
25fbec5b
AK
16004 else
16005 case $1 in
ec6a6fbe 16006 -*)set "./$1";;
25fbec5b
AK
16007 esac;
16008 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16009 ???[sx]*):;;*)false;;esac;fi
16010 '\'' sh
16011 '
7a197a62 16012fi
25fbec5b 16013as_executable_p=$as_test_x
ad6254c5
AK
16014
16015# Sed expression to map a string onto a valid CPP name.
8a2fc586 16016as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
16017
16018# Sed expression to map a string onto a valid variable name.
8a2fc586 16019as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
16020
16021
ad6254c5
AK
16022exec 6>&1
16023
7a197a62 16024# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 16025# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
16026# values after options handling.
16027ac_log="
ad6254c5 16028This file was extended by $as_me, which was
ec6a6fbe 16029generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
16030
16031 CONFIG_FILES = $CONFIG_FILES
16032 CONFIG_HEADERS = $CONFIG_HEADERS
16033 CONFIG_LINKS = $CONFIG_LINKS
16034 CONFIG_COMMANDS = $CONFIG_COMMANDS
16035 $ $0 $@
16036
7a197a62
AK
16037on `(hostname || uname -n) 2>/dev/null | sed 1q`
16038"
16039
ad6254c5
AK
16040_ACEOF
16041
ec6a6fbe
AK
16042case $ac_config_files in *"
16043"*) set x $ac_config_files; shift; ac_config_files=$*;;
16044esac
16045
16046case $ac_config_headers in *"
16047"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16048esac
16049
16050
16051cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 16052# Files that config.status was made for.
68f2de6d
AK
16053config_files="$ac_config_files"
16054config_headers="$ac_config_headers"
ad6254c5 16055
7a197a62 16056_ACEOF
ad6254c5 16057
ec6a6fbe 16058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
16059ac_cs_usage="\
16060\`$as_me' instantiates files from templates according to the
16061current configuration.
16062
ec6a6fbe 16063Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
16064
16065 -h, --help print this help, then exit
25fbec5b 16066 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
16067 -q, --quiet, --silent
16068 do not print progress messages
ad6254c5
AK
16069 -d, --debug don't remove temporary files
16070 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
16071 --file=FILE[:TEMPLATE]
16072 instantiate the configuration file FILE
16073 --header=FILE[:TEMPLATE]
16074 instantiate the configuration header FILE
ad6254c5
AK
16075
16076Configuration files:
16077$config_files
16078
72b2cb61
AK
16079Configuration headers:
16080$config_headers
16081
ad6254c5 16082Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 16083
7a197a62 16084_ACEOF
ec6a6fbe 16085cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
16086ac_cs_version="\\
16087config.status
ec6a6fbe
AK
16088configured by $0, generated by GNU Autoconf 2.63,
16089 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 16090
ec6a6fbe 16091Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
16092This config.status script is free software; the Free Software Foundation
16093gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
16094
16095ac_pwd='$ac_pwd'
16096srcdir='$srcdir'
16097INSTALL='$INSTALL'
fddafd51 16098MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
16099AWK='$AWK'
16100test -n "\$AWK" || AWK=awk
ad6254c5
AK
16101_ACEOF
16102
ec6a6fbe
AK
16103cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16104# The default lists apply if the user does not specify any file.
ad6254c5
AK
16105ac_need_defaults=:
16106while test $# != 0
16107do
16108 case $1 in
16109 --*=*)
7a197a62
AK
16110 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16111 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
16112 ac_shift=:
16113 ;;
7a197a62 16114 *)
ad6254c5
AK
16115 ac_option=$1
16116 ac_optarg=$2
16117 ac_shift=shift
16118 ;;
ad6254c5
AK
16119 esac
16120
16121 case $ac_option in
16122 # Handling of the options.
ad6254c5
AK
16123 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16124 ac_cs_recheck=: ;;
7a197a62 16125 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 16126 $as_echo "$ac_cs_version"; exit ;;
7a197a62 16127 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
16128 debug=: ;;
16129 --file | --fil | --fi | --f )
16130 $ac_shift
ec6a6fbe
AK
16131 case $ac_optarg in
16132 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16133 esac
16134 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
16135 ac_need_defaults=false;;
16136 --header | --heade | --head | --hea )
16137 $ac_shift
ec6a6fbe
AK
16138 case $ac_optarg in
16139 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16140 esac
16141 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 16142 ac_need_defaults=false;;
7a197a62
AK
16143 --he | --h)
16144 # Conflict between --help and --header
ec6a6fbe 16145 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
16146Try \`$0 --help' for more information." >&2
16147 { (exit 1); exit 1; }; };;
16148 --help | --hel | -h )
ec6a6fbe 16149 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
16150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16151 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16152 ac_cs_silent=: ;;
16153
16154 # This is an error.
ec6a6fbe 16155 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 16156Try \`$0 --help' for more information." >&2
ad6254c5
AK
16157 { (exit 1); exit 1; }; } ;;
16158
7a197a62
AK
16159 *) ac_config_targets="$ac_config_targets $1"
16160 ac_need_defaults=false ;;
ad6254c5
AK
16161
16162 esac
16163 shift
16164done
16165
16166ac_configure_extra_args=
16167
16168if $ac_cs_silent; then
16169 exec 6>/dev/null
16170 ac_configure_extra_args="$ac_configure_extra_args --silent"
16171fi
16172
16173_ACEOF
ec6a6fbe 16174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 16175if \$ac_cs_recheck; then
ec6a6fbe
AK
16176 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16177 shift
16178 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16179 CONFIG_SHELL='$SHELL'
7a197a62 16180 export CONFIG_SHELL
ec6a6fbe 16181 exec "\$@"
ad6254c5
AK
16182fi
16183
16184_ACEOF
ec6a6fbe 16185cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16186exec 5>>config.log
16187{
16188 echo
16189 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16190## Running $as_me. ##
16191_ASBOX
ec6a6fbe 16192 $as_echo "$ac_log"
7a197a62 16193} >&5
ad6254c5 16194
7a197a62 16195_ACEOF
ec6a6fbe 16196cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 16197_ACEOF
ad6254c5 16198
ec6a6fbe 16199cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16200
16201# Handling of arguments.
ad6254c5
AK
16202for ac_config_target in $ac_config_targets
16203do
7a197a62
AK
16204 case $ac_config_target in
16205 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
16206 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16207 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
16208 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
16209 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 16210 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
16211 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
16212 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 16213 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 16214 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
93bd259b
AK
16215 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
16216 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 16217 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
db8b5af9 16218 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
16219 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16220 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
16221 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
16222 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
16223 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
16224 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
ec6a6fbe 16225 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 16226 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
16227 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
16228 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 16229 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 16230 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
16231 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16232 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 16233 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 16234 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 16235 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
7a197a62 16236 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 16237 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 16238 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 16239 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 16240 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
7a197a62 16241
ec6a6fbe
AK
16242 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16243$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 16244 { (exit 1); exit 1; }; };;
80992638 16245 esac
ad6254c5
AK
16246done
16247
7a197a62 16248
ad6254c5
AK
16249# If the user did not use the arguments to specify the items to instantiate,
16250# then the envvar interface is used. Set only those that are not.
16251# We use the long form for the default assignment because of an extremely
16252# bizarre bug on SunOS 4.1.3.
16253if $ac_need_defaults; then
16254 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 16255 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
16256fi
16257
16258# Have a temporary directory for convenience. Make it in the build tree
7a197a62 16259# simply because there is no reason against having it here, and in addition,
ad6254c5 16260# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
16261# Hook for its removal unless debugging.
16262# Note that there is a small window in which the directory will not be cleaned:
16263# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
16264$debug ||
16265{
7a197a62
AK
16266 tmp=
16267 trap 'exit_status=$?
16268 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16269' 0
ad6254c5
AK
16270 trap '{ (exit 1); exit 1; }' 1 2 13 15
16271}
ad6254c5
AK
16272# Create a (secure) tmp directory for tmp files.
16273
16274{
7a197a62 16275 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
16276 test -n "$tmp" && test -d "$tmp"
16277} ||
16278{
7a197a62
AK
16279 tmp=./conf$$-$RANDOM
16280 (umask 077 && mkdir "$tmp")
ad6254c5
AK
16281} ||
16282{
ec6a6fbe 16283 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
16284 { (exit 1); exit 1; }
16285}
16286
ec6a6fbe
AK
16287# Set up the scripts for CONFIG_FILES section.
16288# No need to generate them if there are no CONFIG_FILES.
16289# This happens for instance with `./config.status config.h'.
1995c9ff 16290if test -n "$CONFIG_FILES"; then
7a197a62 16291
68f2de6d 16292
ec6a6fbe
AK
16293ac_cr='\r'
16294ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16295if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16296 ac_cs_awk_cr='\\r'
16297else
16298 ac_cs_awk_cr=$ac_cr
1995c9ff 16299fi
7a197a62 16300
ec6a6fbe 16301echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 16302_ACEOF
7a197a62 16303
8106cdd5 16304
ec6a6fbe
AK
16305{
16306 echo "cat >conf$$subs.awk <<_ACEOF" &&
16307 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16308 echo "_ACEOF"
16309} >conf$$subs.sh ||
16310 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16311$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16312 { (exit 1); exit 1; }; }
16313ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
16314ac_delim='%!_!# '
16315for ac_last_try in false false false false false :; do
ec6a6fbe
AK
16316 . ./conf$$subs.sh ||
16317 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16318$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16319 { (exit 1); exit 1; }; }
16320
16321 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16322 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
16323 break
16324 elif $ac_last_try; then
ec6a6fbe
AK
16325 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16326$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
16327 { (exit 1); exit 1; }; }
16328 else
16329 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16330 fi
16331done
ec6a6fbe
AK
16332rm -f conf$$subs.sh
16333
16334cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16335cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16336_ACEOF
16337sed -n '
16338h
16339s/^/S["/; s/!.*/"]=/
16340p
16341g
16342s/^[^!]*!//
16343:repl
16344t repl
16345s/'"$ac_delim"'$//
16346t delim
16347:nl
16348h
16349s/\(.\{148\}\).*/\1/
16350t more1
16351s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16352p
16353n
16354b repl
16355:more1
16356s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16357p
16358g
16359s/.\{148\}//
16360t nl
16361:delim
16362h
16363s/\(.\{148\}\).*/\1/
16364t more2
16365s/["\\]/\\&/g; s/^/"/; s/$/"/
16366p
16367b
16368:more2
16369s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16370p
16371g
16372s/.\{148\}//
16373t delim
16374' <conf$$subs.awk | sed '
16375/^[^""]/{
16376 N
16377 s/\n//
16378}
16379' >>$CONFIG_STATUS || ac_write_fail=1
16380rm -f conf$$subs.awk
16381cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16382_ACAWK
16383cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16384 for (key in S) S_is_set[key] = 1
16385 FS = "\a"
7a197a62 16386
ec6a6fbe
AK
16387}
16388{
16389 line = $ 0
16390 nfields = split(line, field, "@")
16391 substed = 0
16392 len = length(field[1])
16393 for (i = 2; i < nfields; i++) {
16394 key = field[i]
16395 keylen = length(key)
16396 if (S_is_set[key]) {
16397 value = S[key]
16398 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16399 len += length(value) + length(field[++i])
16400 substed = 1
16401 } else
16402 len += 1 + keylen
16403 }
16404
16405 print line
16406}
fddafd51 16407
ec6a6fbe 16408_ACAWK
1995c9ff 16409_ACEOF
ec6a6fbe
AK
16410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16411if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16412 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16413else
16414 cat
16415fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16416 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16417$as_echo "$as_me: error: could not setup config files machinery" >&2;}
16418 { (exit 1); exit 1; }; }
7a197a62
AK
16419_ACEOF
16420
7a197a62
AK
16421# VPATH may cause trouble with some makes, so we remove $(srcdir),
16422# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16423# trailing colons and then remove the whole line if VPATH becomes empty
16424# (actually we leave an empty line to preserve line numbers).
16425if test "x$srcdir" = x.; then
16426 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16427s/:*\$(srcdir):*/:/
16428s/:*\${srcdir}:*/:/
16429s/:*@srcdir@:*/:/
16430s/^\([^=]*=[ ]*\):*/\1/
16431s/:*$//
16432s/^[^=]*=[ ]*$//
16433}'
16434fi
16435
ec6a6fbe 16436cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16437fi # test -n "$CONFIG_FILES"
16438
ec6a6fbe
AK
16439# Set up the scripts for CONFIG_HEADERS section.
16440# No need to generate them if there are no CONFIG_HEADERS.
16441# This happens for instance with `./config.status Makefile'.
16442if test -n "$CONFIG_HEADERS"; then
16443cat >"$tmp/defines.awk" <<\_ACAWK ||
16444BEGIN {
16445_ACEOF
16446
16447# Transform confdefs.h into an awk script `defines.awk', embedded as
16448# here-document in config.status, that substitutes the proper values into
16449# config.h.in to produce config.h.
16450
16451# Create a delimiter string that does not exist in confdefs.h, to ease
16452# handling of long lines.
16453ac_delim='%!_!# '
16454for ac_last_try in false false :; do
16455 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16456 if test -z "$ac_t"; then
16457 break
16458 elif $ac_last_try; then
16459 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16460$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16461 { (exit 1); exit 1; }; }
16462 else
16463 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16464 fi
16465done
16466
16467# For the awk script, D is an array of macro values keyed by name,
16468# likewise P contains macro parameters if any. Preserve backslash
16469# newline sequences.
16470
16471ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16472sed -n '
16473s/.\{148\}/&'"$ac_delim"'/g
16474t rset
16475:rset
16476s/^[ ]*#[ ]*define[ ][ ]*/ /
16477t def
16478d
16479:def
16480s/\\$//
16481t bsnl
16482s/["\\]/\\&/g
16483s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16484D["\1"]=" \3"/p
16485s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16486d
16487:bsnl
16488s/["\\]/\\&/g
16489s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16490D["\1"]=" \3\\\\\\n"\\/p
16491t cont
16492s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16493t cont
16494d
16495:cont
16496n
16497s/.\{148\}/&'"$ac_delim"'/g
16498t clear
16499:clear
16500s/\\$//
16501t bsnlc
16502s/["\\]/\\&/g; s/^/"/; s/$/"/p
16503d
16504:bsnlc
16505s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16506b cont
16507' <confdefs.h | sed '
16508s/'"$ac_delim"'/"\\\
16509"/g' >>$CONFIG_STATUS || ac_write_fail=1
16510
16511cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16512 for (key in D) D_is_set[key] = 1
16513 FS = "\a"
16514}
16515/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16516 line = \$ 0
16517 split(line, arg, " ")
16518 if (arg[1] == "#") {
16519 defundef = arg[2]
16520 mac1 = arg[3]
16521 } else {
16522 defundef = substr(arg[1], 2)
16523 mac1 = arg[2]
16524 }
16525 split(mac1, mac2, "(") #)
16526 macro = mac2[1]
16527 prefix = substr(line, 1, index(line, defundef) - 1)
16528 if (D_is_set[macro]) {
16529 # Preserve the white space surrounding the "#".
16530 print prefix "define", macro P[macro] D[macro]
16531 next
16532 } else {
16533 # Replace #undef with comments. This is necessary, for example,
16534 # in the case of _POSIX_SOURCE, which is predefined and required
16535 # on some systems where configure will not decide to define it.
16536 if (defundef == "undef") {
16537 print "/*", prefix defundef, macro, "*/"
16538 next
16539 }
16540 }
16541}
16542{ print }
16543_ACAWK
16544_ACEOF
16545cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16546 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16547$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16548 { (exit 1); exit 1; }; }
16549fi # test -n "$CONFIG_HEADERS"
16550
7a197a62 16551
ec6a6fbe
AK
16552eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16553shift
16554for ac_tag
7a197a62
AK
16555do
16556 case $ac_tag in
16557 :[FHLC]) ac_mode=$ac_tag; continue;;
16558 esac
16559 case $ac_mode$ac_tag in
16560 :[FHL]*:*);;
ec6a6fbe
AK
16561 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16562$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
16563 { (exit 1); exit 1; }; };;
16564 :[FH]-) ac_tag=-:-;;
16565 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16566 esac
16567 ac_save_IFS=$IFS
16568 IFS=:
16569 set x $ac_tag
16570 IFS=$ac_save_IFS
16571 shift
16572 ac_file=$1
16573 shift
16574
16575 case $ac_mode in
16576 :L) ac_source=$1;;
16577 :[FH])
16578 ac_file_inputs=
16579 for ac_f
16580 do
16581 case $ac_f in
16582 -) ac_f="$tmp/stdin";;
16583 *) # Look for the file first in the build tree, then in the source tree
16584 # (if the path is not absolute). The absolute path cannot be DOS-style,
16585 # because $ac_f cannot contain `:'.
16586 test -f "$ac_f" ||
16587 case $ac_f in
16588 [\\/$]*) false;;
16589 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16590 esac ||
ec6a6fbe
AK
16591 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16592$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
16593 { (exit 1); exit 1; }; };;
16594 esac
ec6a6fbe
AK
16595 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16596 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
16597 done
16598
16599 # Let's still pretend it is `configure' which instantiates (i.e., don't
16600 # use $as_me), people would be surprised to read:
16601 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
16602 configure_input='Generated from '`
16603 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16604 `' by configure.'
7a197a62
AK
16605 if test x"$ac_file" != x-; then
16606 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
16607 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16608$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 16609 fi
ec6a6fbe
AK
16610 # Neutralize special characters interpreted by sed in replacement strings.
16611 case $configure_input in #(
16612 *\&* | *\|* | *\\* )
16613 ac_sed_conf_input=`$as_echo "$configure_input" |
16614 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16615 *) ac_sed_conf_input=$configure_input;;
16616 esac
7a197a62
AK
16617
16618 case $ac_tag in
ec6a6fbe
AK
16619 *:-:* | *:-) cat >"$tmp/stdin" \
16620 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16621$as_echo "$as_me: error: could not create $ac_file" >&2;}
16622 { (exit 1); exit 1; }; } ;;
7a197a62
AK
16623 esac
16624 ;;
80992638 16625 esac
8106cdd5 16626
7a197a62 16627 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 16628$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
16629 X"$ac_file" : 'X\(//\)[^/]' \| \
16630 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 16631 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 16632$as_echo X"$ac_file" |
7a197a62
AK
16633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16634 s//\1/
16635 q
16636 }
16637 /^X\(\/\/\)[^/].*/{
16638 s//\1/
16639 q
16640 }
16641 /^X\(\/\/\)$/{
16642 s//\1/
16643 q
16644 }
16645 /^X\(\/\).*/{
16646 s//\1/
16647 q
16648 }
16649 s/.*/./; q'`
16650 { as_dir="$ac_dir"
16651 case $as_dir in #(
16652 -*) as_dir=./$as_dir;;
16653 esac
16654 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 16655 as_dirs=
7a197a62
AK
16656 while :; do
16657 case $as_dir in #(
ec6a6fbe 16658 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
16659 *) as_qdir=$as_dir;;
16660 esac
16661 as_dirs="'$as_qdir' $as_dirs"
16662 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 16663$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
16664 X"$as_dir" : 'X\(//\)[^/]' \| \
16665 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 16666 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 16667$as_echo X"$as_dir" |
7a197a62
AK
16668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16669 s//\1/
16670 q
16671 }
16672 /^X\(\/\/\)[^/].*/{
16673 s//\1/
16674 q
16675 }
16676 /^X\(\/\/\)$/{
16677 s//\1/
16678 q
16679 }
16680 /^X\(\/\).*/{
16681 s//\1/
16682 q
16683 }
16684 s/.*/./; q'`
16685 test -d "$as_dir" && break
ad6254c5 16686 done
7a197a62 16687 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
16688 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16689$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 16690 { (exit 1); exit 1; }; }; }
ad6254c5
AK
16691 ac_builddir=.
16692
7a197a62
AK
16693case "$ac_dir" in
16694.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16695*)
ec6a6fbe 16696 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 16697 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 16698 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
16699 case $ac_top_builddir_sub in
16700 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16701 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16702 esac ;;
16703esac
16704ac_abs_top_builddir=$ac_pwd
16705ac_abs_builddir=$ac_pwd$ac_dir_suffix
16706# for backward compatibility:
16707ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
16708
16709case $srcdir in
7a197a62 16710 .) # We are building in place.
ad6254c5 16711 ac_srcdir=.
7a197a62
AK
16712 ac_top_srcdir=$ac_top_builddir_sub
16713 ac_abs_top_srcdir=$ac_pwd ;;
16714 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 16715 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
16716 ac_top_srcdir=$srcdir
16717 ac_abs_top_srcdir=$srcdir ;;
16718 *) # Relative name.
16719 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16720 ac_top_srcdir=$ac_top_build_prefix$srcdir
16721 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 16722esac
7a197a62 16723ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 16724
ad6254c5 16725
7a197a62
AK
16726 case $ac_mode in
16727 :F)
16728 #
16729 # CONFIG_FILE
16730 #
ad6254c5
AK
16731
16732 case $INSTALL in
16733 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 16734 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 16735 esac
fddafd51
ZK
16736 ac_MKDIR_P=$MKDIR_P
16737 case $MKDIR_P in
16738 [\\/$]* | ?:[\\/]* ) ;;
16739 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16740 esac
7a197a62 16741_ACEOF
795ca3e5 16742
ec6a6fbe 16743cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16744# If the template does not know about datarootdir, expand it.
16745# FIXME: This hack should be removed a few years after 2.60.
16746ac_datarootdir_hack=; ac_datarootdir_seen=
16747
ec6a6fbe
AK
16748ac_sed_dataroot='
16749/datarootdir/ {
7a197a62
AK
16750 p
16751 q
16752}
16753/@datadir@/p
16754/@docdir@/p
16755/@infodir@/p
16756/@localedir@/p
16757/@mandir@/p
ec6a6fbe
AK
16758'
16759case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
16760*datarootdir*) ac_datarootdir_seen=yes;;
16761*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
16762 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16763$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 16764_ACEOF
ec6a6fbe 16765cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
16766 ac_datarootdir_hack='
16767 s&@datadir@&$datadir&g
16768 s&@docdir@&$docdir&g
16769 s&@infodir@&$infodir&g
16770 s&@localedir@&$localedir&g
16771 s&@mandir@&$mandir&g
16772 s&\\\${datarootdir}&$datarootdir&g' ;;
16773esac
16774_ACEOF
16775
16776# Neutralize VPATH when `$srcdir' = `.'.
16777# Shell code in configure.ac might set extrasub.
16778# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
16779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16780ac_sed_extra="$ac_vpsub
ad6254c5
AK
16781$extrasub
16782_ACEOF
ec6a6fbe 16783cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
16784:t
16785/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 16786s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 16787s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 16788s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
16789s&@srcdir@&$ac_srcdir&;t t
16790s&@abs_srcdir@&$ac_abs_srcdir&;t t
16791s&@top_srcdir@&$ac_top_srcdir&;t t
16792s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16793s&@builddir@&$ac_builddir&;t t
16794s&@abs_builddir@&$ac_abs_builddir&;t t
16795s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16796s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 16797s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 16798$ac_datarootdir_hack
ec6a6fbe
AK
16799"
16800eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16801 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16802$as_echo "$as_me: error: could not create $ac_file" >&2;}
16803 { (exit 1); exit 1; }; }
7a197a62
AK
16804
16805test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16806 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16807 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 16808 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 16809which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 16810$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
16811which seems to be undefined. Please make sure it is defined." >&2;}
16812
16813 rm -f "$tmp/stdin"
72b2cb61 16814 case $ac_file in
ec6a6fbe
AK
16815 -) cat "$tmp/out" && rm -f "$tmp/out";;
16816 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16817 esac \
16818 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16819$as_echo "$as_me: error: could not create $ac_file" >&2;}
16820 { (exit 1); exit 1; }; }
7a197a62
AK
16821 ;;
16822 :H)
16823 #
16824 # CONFIG_HEADER
16825 #
72b2cb61 16826 if test x"$ac_file" != x-; then
ec6a6fbe
AK
16827 {
16828 $as_echo "/* $configure_input */" \
16829 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16830 } >"$tmp/config.h" \
16831 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16832$as_echo "$as_me: error: could not create $ac_file" >&2;}
16833 { (exit 1); exit 1; }; }
16834 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16835 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16836$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 16837 else
ec6a6fbe
AK
16838 rm -f "$ac_file"
16839 mv "$tmp/config.h" "$ac_file" \
16840 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16841$as_echo "$as_me: error: could not create $ac_file" >&2;}
16842 { (exit 1); exit 1; }; }
72b2cb61
AK
16843 fi
16844 else
ec6a6fbe
AK
16845 $as_echo "/* $configure_input */" \
16846 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16847 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16848$as_echo "$as_me: error: could not create -" >&2;}
16849 { (exit 1); exit 1; }; }
72b2cb61 16850 fi
7a197a62
AK
16851 ;;
16852
16853
16854 esac
16855
16856done # for ac_tag
795ca3e5 16857
795ca3e5 16858
ad6254c5
AK
16859{ (exit 0); exit 0; }
16860_ACEOF
795ca3e5 16861chmod +x $CONFIG_STATUS
ad6254c5
AK
16862ac_clean_files=$ac_clean_files_save
16863
ec6a6fbe
AK
16864test $ac_write_fail = 0 ||
16865 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16866$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16867 { (exit 1); exit 1; }; }
16868
ad6254c5
AK
16869
16870# configure is writing to config.log, and then calls config.status.
16871# config.status does its own redirection, appending to config.log.
16872# Unfortunately, on DOS this fails, as config.log is still kept open
16873# by configure, so config.status won't be able to write to it; its
16874# output is simply discarded. So we exec the FD to /dev/null,
16875# effectively closing config.log, so it can be properly (re)opened and
16876# appended to by config.status. When coming back to configure, we
16877# need to make the FD available again.
16878if test "$no_create" != yes; then
16879 ac_cs_success=:
16880 ac_config_status_args=
16881 test "$silent" = yes &&
16882 ac_config_status_args="$ac_config_status_args --quiet"
16883 exec 5>/dev/null
16884 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16885 exec 5>>config.log
16886 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16887 # would make configure fail if this is the last instruction.
16888 $ac_cs_success || { (exit 1); exit 1; }
16889fi
ec6a6fbe
AK
16890if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16891 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16892$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16893fi
795ca3e5 16894
2dc95e1c
AK
16895
16896if test x$ODIRECT != xyes; then
ec6a6fbe
AK
16897 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
16898$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 16899fi
This page took 2.141301 seconds and 5 git commands to generate.