]> sourceware.org Git - lvm2.git/blame - configure
Fix lvm2app test to run under test/api subdirectory only when configured.
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
ec6a6fbe 3# Generated by GNU Autoconf 2.63.
795ca3e5 4#
7a197a62 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
795ca3e5
AK
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
ad6254c5
AK
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
25fbec5b
AK
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
ec6a6fbe 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
21 setopt NO_GLOB_SUBST
22else
25fbec5b
AK
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
7a197a62 27fi
25fbec5b
AK
28
29
7a197a62
AK
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
ec6a6fbe
AK
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
68f2de6d 54 else
ec6a6fbe
AK
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 67 fi
ec6a6fbe
AK
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
ad6254c5
AK
79fi
80
81# Support unset when possible.
8a2fc586 82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
83 as_unset=unset
84else
85 as_unset=false
86fi
87
88
7a197a62
AK
89# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
7a197a62
AK
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
ec6a6fbe 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
117 { (exit 1); exit 1; }
118fi
119
ad6254c5 120# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
ad6254c5
AK
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
ec6a6fbe
AK
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
ad6254c5
AK
133
134# Required to use basename.
7a197a62
AK
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
137 as_expr=expr
138else
139 as_expr=false
140fi
141
7a197a62 142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
7a197a62 150as_me=`$as_basename -- "$0" ||
ad6254c5
AK
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
7a197a62 153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 154$as_echo X/"$0" |
7a197a62
AK
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
ad6254c5 168
7a197a62
AK
169# CDPATH.
170$as_unset CDPATH
ad6254c5 171
ad6254c5 172
7a197a62
AK
173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
ad6254c5
AK
178fi
179
ec6a6fbe 180 if test $as_have_required = yes && (eval ":
7a197a62
AK
181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
ad6254c5 196
7a197a62
AK
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
ad6254c5 204
7a197a62
AK
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
ad6254c5 240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25fbec5b 241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
ad6254c5
AK
242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
7a197a62 245 case $as_dir in
ad6254c5 246 /*)
7a197a62
AK
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251done
252IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
ec6a6fbe 262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7a197a62
AK
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
25fbec5b
AK
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
7a197a62 271fi
25fbec5b 272
7a197a62
AK
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
ec6a6fbe 283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7a197a62
AK
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
25fbec5b
AK
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
7a197a62 292fi
25fbec5b 293
7a197a62
AK
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
ad6254c5
AK
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
ad6254c5 349 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62
AK
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
ec6a6fbe
AK
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
7a197a62
AK
367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
ec6a6fbe
AK
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
7a197a62
AK
439}
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
ad6254c5
AK
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
ad6254c5 455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
ad6254c5 462 sed '
7a197a62
AK
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
ad6254c5 467 N
7a197a62
AK
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 470 t loop
7a197a62 471 s/-\n.*//
ad6254c5 472 ' >$as_me.lineno &&
7a197a62 473 chmod +x "$as_me.lineno" ||
ec6a6fbe 474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
ad6254c5
AK
481 # Exit status is that of the last command.
482 exit
483}
795ca3e5 484
ad6254c5 485
7a197a62
AK
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499*)
500 ECHO_N='-n';;
ad6254c5 501esac
7a197a62
AK
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
ec6a6fbe
AK
514 mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
ad6254c5 528 as_ln_s='cp -p'
ec6a6fbe 529 fi
ad6254c5
AK
530else
531 as_ln_s='cp -p'
532fi
7a197a62
AK
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
ad6254c5
AK
535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
8a2fc586 539 test -d ./-p && rmdir ./-p
ad6254c5
AK
540 as_mkdir_p=false
541fi
542
25fbec5b
AK
543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
7a197a62 545else
25fbec5b
AK
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
ec6a6fbe 554 test -d "$1/.";
25fbec5b
AK
555 else
556 case $1 in
ec6a6fbe 557 -*)set "./$1";;
25fbec5b
AK
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
7a197a62 563fi
25fbec5b 564as_executable_p=$as_test_x
ad6254c5
AK
565
566# Sed expression to map a string onto a valid CPP name.
8a2fc586 567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
568
569# Sed expression to map a string onto a valid variable name.
8a2fc586 570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
571
572
ad6254c5 573
7a197a62 574exec 7<&0 </dev/null 6>&1
ad6254c5
AK
575
576# Name of the host.
577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578# so uname gets run too.
579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
ad6254c5
AK
581#
582# Initializations.
583#
795ca3e5 584ac_default_prefix=/usr/local
7a197a62 585ac_clean_files=
ad6254c5 586ac_config_libobj_dir=.
7a197a62 587LIBOBJS=
ad6254c5
AK
588cross_compiling=no
589subdirs=
590MFLAGS=
591MAKEFLAGS=
592SHELL=${CONFIG_SHELL-/bin/sh}
593
ad6254c5
AK
594# Identity of this package.
595PACKAGE_NAME=
596PACKAGE_TARNAME=
597PACKAGE_VERSION=
598PACKAGE_STRING=
599PACKAGE_BUGREPORT=
600
601ac_unique_file="lib/device/dev-cache.h"
602# Factoring default headers for most tests.
603ac_includes_default="\
604#include <stdio.h>
25fbec5b 605#ifdef HAVE_SYS_TYPES_H
ad6254c5
AK
606# include <sys/types.h>
607#endif
25fbec5b 608#ifdef HAVE_SYS_STAT_H
ad6254c5
AK
609# include <sys/stat.h>
610#endif
25fbec5b 611#ifdef STDC_HEADERS
ad6254c5
AK
612# include <stdlib.h>
613# include <stddef.h>
614#else
25fbec5b 615# ifdef HAVE_STDLIB_H
ad6254c5
AK
616# include <stdlib.h>
617# endif
618#endif
25fbec5b
AK
619#ifdef HAVE_STRING_H
620# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ad6254c5
AK
621# include <memory.h>
622# endif
623# include <string.h>
624#endif
25fbec5b 625#ifdef HAVE_STRINGS_H
ad6254c5
AK
626# include <strings.h>
627#endif
25fbec5b 628#ifdef HAVE_INTTYPES_H
ad6254c5 629# include <inttypes.h>
ad6254c5 630#endif
25fbec5b 631#ifdef HAVE_STDINT_H
7a197a62
AK
632# include <stdint.h>
633#endif
25fbec5b 634#ifdef HAVE_UNISTD_H
ad6254c5
AK
635# include <unistd.h>
636#endif"
637
795ca3e5 638ac_default_prefix=/usr
ec6a6fbe 639ac_subst_vars='LTLIBOBJS
68f2de6d 640usrsbindir
ec6a6fbe 641usrlibdir
a5f46f6a
AK
642udevdir
643udev_prefix
ec6a6fbe
AK
644tmpdir
645kernelvsn
646missingkernel
647kerneldir
648interface
649LIB_PTHREAD
a5f46f6a 650UDEV_RULES
ec6a6fbe
AK
651STATIC_LINK
652STATICDIR
653SNAPSHOTS
654POOL
655PKGCONFIG
656OWNER
657MIRRORS
658LVM_RELEASE_DATE
659LVM_RELEASE
660LVM_PATCHLEVEL
661LVM_MINOR
662LVM_MAJOR
bf456146 663LVM_LIBAPI
ec6a6fbe 664LVM_VERSION
ec6a6fbe
AK
665LVM1_FALLBACK
666LVM1
667LOCALEDIR
668LIB_SUFFIX
669LDDEPS
670JOBS
671INTL_PACKAGE
672INTL
673HAVE_SELINUX
674HAVE_REALTIME
675HAVE_LIBDL
676GROUP
677FSADM
678DM_LIB_PATCHLEVEL
679DM_LIB_VERSION
680DM_IOCTLS
681DM_DEVICE_UID
682DM_DEVICE_MODE
683DM_DEVICE_GID
684DM_COMPAT
685DMEVENTD
686DEVMAPPER
687DEBUG
688COPTIMISE_FLAG
e2997b73 689CONFDIR
ec6a6fbe
AK
690CMDLIB
691CLVMD
692CLUSTER
693CLDWHOLEARCHIVE
694CLDNOWHOLEARCHIVE
695CLDFLAGS
696BUILD_DMEVENTD
66fd4529 697BUILD_CMIRRORD
572fefeb 698APPLIB
ec6a6fbe
AK
699MODPROBE_CMD
700MSGFMT
701LVM2CMD_LIB
572fefeb 702LVM2APP_LIB
ec6a6fbe
AK
703GENHTML
704LCOV
90c80887
AK
705SACKPT_LIBS
706SACKPT_CFLAGS
a946372e
AK
707DLM_LIBS
708DLM_CFLAGS
e2997b73
AK
709CPG_LIBS
710CPG_CFLAGS
711CONFDB_LIBS
712CONFDB_CFLAGS
a946372e
AK
713SALCK_LIBS
714SALCK_CFLAGS
e2997b73
AK
715QUORUM_LIBS
716QUORUM_CFLAGS
a946372e
AK
717COROSYNC_LIBS
718COROSYNC_CFLAGS
719CMAN_LIBS
720CMAN_CFLAGS
721GULM_LIBS
722GULM_CFLAGS
723CCS_LIBS
724CCS_CFLAGS
725PKGCONFIGINIT_LIBS
726PKGCONFIGINIT_CFLAGS
e2997b73 727PKG_CONFIG
ec6a6fbe
AK
728POW_LIB
729LIBOBJS
730ALLOCA
731CSCOPE_CMD
732CFLOW_CMD
733RANLIB
734MKDIR_P
735SET_MAKE
736LN_S
737INSTALL_DATA
738INSTALL_SCRIPT
739INSTALL_PROGRAM
740EGREP
741GREP
742CPP
743OBJEXT
744EXEEXT
745ac_ct_CC
746CPPFLAGS
747LDFLAGS
748CFLAGS
749CC
750AWK
751SED
752target_os
753target_vendor
754target_cpu
755target
756host_os
757host_vendor
758host_cpu
759host
760build_os
761build_vendor
762build_cpu
763build
764target_alias
765host_alias
766build_alias
767LIBS
768ECHO_T
769ECHO_N
770ECHO_C
771DEFS
772mandir
773localedir
774libdir
775psdir
776pdfdir
777dvidir
778htmldir
779infodir
780docdir
781oldincludedir
782includedir
783localstatedir
784sharedstatedir
785sysconfdir
786datadir
787datarootdir
788libexecdir
789sbindir
790bindir
791program_transform_name
792prefix
793exec_prefix
794PACKAGE_BUGREPORT
795PACKAGE_STRING
796PACKAGE_VERSION
797PACKAGE_TARNAME
798PACKAGE_NAME
799PATH_SEPARATOR
800SHELL'
ad6254c5 801ac_subst_files=''
ec6a6fbe
AK
802ac_user_opts='
803enable_option_checking
804enable_static_link
805with_user
806with_group
807with_device_uid
808with_device_gid
809with_device_mode
810enable_lvm1_fallback
811with_lvm1
812with_pool
813with_cluster
814with_snapshots
815with_mirrors
816enable_readline
817enable_realtime
818with_clvmd
66fd4529
AK
819enable_cmirrord
820with_cmirrord_pidfile
ec6a6fbe
AK
821enable_debug
822with_optimisation
823enable_profiling
824enable_devmapper
a5f46f6a
AK
825enable_udev_sync
826enable_udev_rules
ec6a6fbe
AK
827enable_compat
828enable_ioctl
829enable_o_direct
572fefeb 830enable_applib
ec6a6fbe
AK
831enable_cmdlib
832enable_pkgconfig
833enable_fsadm
834enable_dmeventd
835enable_selinux
836enable_nls
837with_localedir
838with_confdir
839with_staticdir
840with_usrlibdir
841with_usrsbindir
a5f46f6a 842with_udev_prefix
78ce7acc 843with_udevdir
ec6a6fbe
AK
844with_dmeventd_pidfile
845with_dmeventd_path
846with_interface
847'
7a197a62
AK
848 ac_precious_vars='build_alias
849host_alias
850target_alias
851CC
852CFLAGS
853LDFLAGS
25fbec5b 854LIBS
7a197a62 855CPPFLAGS
e2997b73
AK
856CPP
857PKG_CONFIG
a946372e
AK
858PKGCONFIGINIT_CFLAGS
859PKGCONFIGINIT_LIBS
860CCS_CFLAGS
861CCS_LIBS
862GULM_CFLAGS
863GULM_LIBS
864CMAN_CFLAGS
865CMAN_LIBS
866COROSYNC_CFLAGS
867COROSYNC_LIBS
e2997b73
AK
868QUORUM_CFLAGS
869QUORUM_LIBS
a946372e
AK
870SALCK_CFLAGS
871SALCK_LIBS
e2997b73
AK
872CONFDB_CFLAGS
873CONFDB_LIBS
874CPG_CFLAGS
a946372e
AK
875CPG_LIBS
876DLM_CFLAGS
90c80887
AK
877DLM_LIBS
878SACKPT_CFLAGS
879SACKPT_LIBS'
7a197a62 880
795ca3e5
AK
881
882# Initialize some variables set by options.
ad6254c5
AK
883ac_init_help=
884ac_init_version=false
ec6a6fbe
AK
885ac_unrecognized_opts=
886ac_unrecognized_sep=
795ca3e5
AK
887# The variables have the same names as the options, with
888# dashes changed to underlines.
ad6254c5 889cache_file=/dev/null
795ca3e5 890exec_prefix=NONE
795ca3e5 891no_create=
795ca3e5
AK
892no_recursion=
893prefix=NONE
894program_prefix=NONE
895program_suffix=NONE
896program_transform_name=s,x,x,
897silent=
898site=
899srcdir=
795ca3e5
AK
900verbose=
901x_includes=NONE
902x_libraries=NONE
ad6254c5
AK
903
904# Installation directory options.
905# These are left unexpanded so users can "make install exec_prefix=/foo"
906# and all the variables that are supposed to be based on exec_prefix
907# by default will actually change.
908# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 909# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
910bindir='${exec_prefix}/bin'
911sbindir='${exec_prefix}/sbin'
912libexecdir='${exec_prefix}/libexec'
7a197a62
AK
913datarootdir='${prefix}/share'
914datadir='${datarootdir}'
795ca3e5
AK
915sysconfdir='${prefix}/etc'
916sharedstatedir='${prefix}/com'
917localstatedir='${prefix}/var'
795ca3e5
AK
918includedir='${prefix}/include'
919oldincludedir='/usr/include'
7a197a62
AK
920docdir='${datarootdir}/doc/${PACKAGE}'
921infodir='${datarootdir}/info'
922htmldir='${docdir}'
923dvidir='${docdir}'
924pdfdir='${docdir}'
925psdir='${docdir}'
926libdir='${exec_prefix}/lib'
927localedir='${datarootdir}/locale'
928mandir='${datarootdir}/man'
795ca3e5 929
795ca3e5 930ac_prev=
7a197a62 931ac_dashdash=
795ca3e5
AK
932for ac_option
933do
795ca3e5
AK
934 # If the previous option needs an argument, assign it.
935 if test -n "$ac_prev"; then
7a197a62 936 eval $ac_prev=\$ac_option
795ca3e5
AK
937 ac_prev=
938 continue
939 fi
940
7a197a62
AK
941 case $ac_option in
942 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
943 *) ac_optarg=yes ;;
944 esac
795ca3e5
AK
945
946 # Accept the important Cygnus configure options, so we can diagnose typos.
947
7a197a62
AK
948 case $ac_dashdash$ac_option in
949 --)
950 ac_dashdash=yes ;;
795ca3e5
AK
951
952 -bindir | --bindir | --bindi | --bind | --bin | --bi)
953 ac_prev=bindir ;;
954 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 955 bindir=$ac_optarg ;;
795ca3e5
AK
956
957 -build | --build | --buil | --bui | --bu)
ad6254c5 958 ac_prev=build_alias ;;
795ca3e5 959 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 960 build_alias=$ac_optarg ;;
795ca3e5
AK
961
962 -cache-file | --cache-file | --cache-fil | --cache-fi \
963 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
964 ac_prev=cache_file ;;
965 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
966 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
967 cache_file=$ac_optarg ;;
968
969 --config-cache | -C)
970 cache_file=config.cache ;;
795ca3e5 971
7a197a62 972 -datadir | --datadir | --datadi | --datad)
795ca3e5 973 ac_prev=datadir ;;
7a197a62 974 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 975 datadir=$ac_optarg ;;
795ca3e5 976
7a197a62
AK
977 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
978 | --dataroo | --dataro | --datar)
979 ac_prev=datarootdir ;;
980 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
981 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
982 datarootdir=$ac_optarg ;;
983
795ca3e5 984 -disable-* | --disable-*)
ec6a6fbe 985 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 986 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 989 { (exit 1); exit 1; }; }
ec6a6fbe
AK
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
993 *"
994"enable_$ac_useropt"
995"*) ;;
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
998 esac
999 eval enable_$ac_useropt=no ;;
7a197a62
AK
1000
1001 -docdir | --docdir | --docdi | --doc | --do)
1002 ac_prev=docdir ;;
1003 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1004 docdir=$ac_optarg ;;
1005
1006 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1007 ac_prev=dvidir ;;
1008 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1009 dvidir=$ac_optarg ;;
795ca3e5
AK
1010
1011 -enable-* | --enable-*)
ec6a6fbe 1012 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1013 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1016 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1017 ac_useropt_orig=$ac_useropt
1018 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019 case $ac_user_opts in
1020 *"
1021"enable_$ac_useropt"
1022"*) ;;
1023 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1024 ac_unrecognized_sep=', ';;
1025 esac
1026 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1027
1028 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1029 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1030 | --exec | --exe | --ex)
1031 ac_prev=exec_prefix ;;
1032 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1033 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1034 | --exec=* | --exe=* | --ex=*)
ad6254c5 1035 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1036
1037 -gas | --gas | --ga | --g)
1038 # Obsolete; use --with-gas.
1039 with_gas=yes ;;
1040
ad6254c5
AK
1041 -help | --help | --hel | --he | -h)
1042 ac_init_help=long ;;
1043 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1044 ac_init_help=recursive ;;
1045 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1046 ac_init_help=short ;;
795ca3e5
AK
1047
1048 -host | --host | --hos | --ho)
ad6254c5 1049 ac_prev=host_alias ;;
795ca3e5 1050 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1051 host_alias=$ac_optarg ;;
795ca3e5 1052
7a197a62
AK
1053 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1054 ac_prev=htmldir ;;
1055 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1056 | --ht=*)
1057 htmldir=$ac_optarg ;;
1058
795ca3e5
AK
1059 -includedir | --includedir | --includedi | --included | --include \
1060 | --includ | --inclu | --incl | --inc)
1061 ac_prev=includedir ;;
1062 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1063 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1064 includedir=$ac_optarg ;;
795ca3e5
AK
1065
1066 -infodir | --infodir | --infodi | --infod | --info | --inf)
1067 ac_prev=infodir ;;
1068 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1069 infodir=$ac_optarg ;;
795ca3e5
AK
1070
1071 -libdir | --libdir | --libdi | --libd)
1072 ac_prev=libdir ;;
1073 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1074 libdir=$ac_optarg ;;
795ca3e5
AK
1075
1076 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1077 | --libexe | --libex | --libe)
1078 ac_prev=libexecdir ;;
1079 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1080 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1081 libexecdir=$ac_optarg ;;
795ca3e5 1082
7a197a62
AK
1083 -localedir | --localedir | --localedi | --localed | --locale)
1084 ac_prev=localedir ;;
1085 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1086 localedir=$ac_optarg ;;
1087
795ca3e5 1088 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1089 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1090 ac_prev=localstatedir ;;
1091 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1092 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1093 localstatedir=$ac_optarg ;;
795ca3e5
AK
1094
1095 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1096 ac_prev=mandir ;;
1097 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1098 mandir=$ac_optarg ;;
795ca3e5
AK
1099
1100 -nfp | --nfp | --nf)
1101 # Obsolete; use --without-fp.
1102 with_fp=no ;;
1103
1104 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1105 | --no-cr | --no-c | -n)
795ca3e5
AK
1106 no_create=yes ;;
1107
1108 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1109 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1110 no_recursion=yes ;;
1111
1112 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1113 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1114 | --oldin | --oldi | --old | --ol | --o)
1115 ac_prev=oldincludedir ;;
1116 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1117 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1118 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1119 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1120
1121 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1122 ac_prev=prefix ;;
1123 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1124 prefix=$ac_optarg ;;
795ca3e5
AK
1125
1126 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1127 | --program-pre | --program-pr | --program-p)
1128 ac_prev=program_prefix ;;
1129 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1130 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1131 program_prefix=$ac_optarg ;;
795ca3e5
AK
1132
1133 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1134 | --program-suf | --program-su | --program-s)
1135 ac_prev=program_suffix ;;
1136 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1137 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1138 program_suffix=$ac_optarg ;;
795ca3e5
AK
1139
1140 -program-transform-name | --program-transform-name \
1141 | --program-transform-nam | --program-transform-na \
1142 | --program-transform-n | --program-transform- \
1143 | --program-transform | --program-transfor \
1144 | --program-transfo | --program-transf \
1145 | --program-trans | --program-tran \
1146 | --progr-tra | --program-tr | --program-t)
1147 ac_prev=program_transform_name ;;
1148 -program-transform-name=* | --program-transform-name=* \
1149 | --program-transform-nam=* | --program-transform-na=* \
1150 | --program-transform-n=* | --program-transform-=* \
1151 | --program-transform=* | --program-transfor=* \
1152 | --program-transfo=* | --program-transf=* \
1153 | --program-trans=* | --program-tran=* \
1154 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1155 program_transform_name=$ac_optarg ;;
795ca3e5 1156
7a197a62
AK
1157 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1158 ac_prev=pdfdir ;;
1159 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1160 pdfdir=$ac_optarg ;;
1161
1162 -psdir | --psdir | --psdi | --psd | --ps)
1163 ac_prev=psdir ;;
1164 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1165 psdir=$ac_optarg ;;
1166
795ca3e5
AK
1167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1168 | -silent | --silent | --silen | --sile | --sil)
1169 silent=yes ;;
1170
1171 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1172 ac_prev=sbindir ;;
1173 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1174 | --sbi=* | --sb=*)
ad6254c5 1175 sbindir=$ac_optarg ;;
795ca3e5
AK
1176
1177 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1178 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1179 | --sharedst | --shareds | --shared | --share | --shar \
1180 | --sha | --sh)
1181 ac_prev=sharedstatedir ;;
1182 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1183 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1184 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1185 | --sha=* | --sh=*)
ad6254c5 1186 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1187
1188 -site | --site | --sit)
1189 ac_prev=site ;;
1190 -site=* | --site=* | --sit=*)
ad6254c5 1191 site=$ac_optarg ;;
795ca3e5
AK
1192
1193 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1194 ac_prev=srcdir ;;
1195 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1196 srcdir=$ac_optarg ;;
795ca3e5
AK
1197
1198 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1199 | --syscon | --sysco | --sysc | --sys | --sy)
1200 ac_prev=sysconfdir ;;
1201 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1202 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1203 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1204
1205 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1206 ac_prev=target_alias ;;
795ca3e5 1207 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1208 target_alias=$ac_optarg ;;
795ca3e5
AK
1209
1210 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1211 verbose=yes ;;
1212
ad6254c5
AK
1213 -version | --version | --versio | --versi | --vers | -V)
1214 ac_init_version=: ;;
795ca3e5
AK
1215
1216 -with-* | --with-*)
ec6a6fbe 1217 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1218 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1221 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1222 ac_useropt_orig=$ac_useropt
1223 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224 case $ac_user_opts in
1225 *"
1226"with_$ac_useropt"
1227"*) ;;
1228 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1229 ac_unrecognized_sep=', ';;
1230 esac
1231 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1232
1233 -without-* | --without-*)
ec6a6fbe 1234 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1235 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1238 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1242 *"
1243"with_$ac_useropt"
1244"*) ;;
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1247 esac
1248 eval with_$ac_useropt=no ;;
795ca3e5
AK
1249
1250 --x)
1251 # Obsolete; use --with-x.
1252 with_x=yes ;;
1253
1254 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255 | --x-incl | --x-inc | --x-in | --x-i)
1256 ac_prev=x_includes ;;
1257 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1259 x_includes=$ac_optarg ;;
795ca3e5
AK
1260
1261 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1262 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263 ac_prev=x_libraries ;;
1264 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1266 x_libraries=$ac_optarg ;;
795ca3e5 1267
ec6a6fbe 1268 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1269Try \`$0 --help' for more information." >&2
1270 { (exit 1); exit 1; }; }
795ca3e5
AK
1271 ;;
1272
ad6254c5
AK
1273 *=*)
1274 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1277 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1278 { (exit 1); exit 1; }; }
7a197a62 1279 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1280 export $ac_envvar ;;
1281
795ca3e5 1282 *)
ad6254c5 1283 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1284 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1285 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1286 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1287 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1288 ;;
1289
1290 esac
1291done
1292
1293if test -n "$ac_prev"; then
ad6254c5 1294 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec6a6fbe 1295 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1296 { (exit 1); exit 1; }; }
795ca3e5 1297fi
795ca3e5 1298
ec6a6fbe
AK
1299if test -n "$ac_unrecognized_opts"; then
1300 case $enable_option_checking in
1301 no) ;;
1302 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1303 { (exit 1); exit 1; }; } ;;
1304 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1305 esac
1306fi
1307
1308# Check all directory arguments for consistency.
7a197a62
AK
1309for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1310 datadir sysconfdir sharedstatedir localstatedir includedir \
1311 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1312 libdir localedir mandir
795ca3e5 1313do
7a197a62 1314 eval ac_val=\$$ac_var
ec6a6fbe
AK
1315 # Remove trailing slashes.
1316 case $ac_val in
1317 */ )
1318 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1319 eval $ac_var=\$ac_val;;
1320 esac
1321 # Be sure to have absolute directory names.
ad6254c5 1322 case $ac_val in
7a197a62
AK
1323 [\\/$]* | ?:[\\/]* ) continue;;
1324 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1325 esac
ec6a6fbe 1326 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1327 { (exit 1); exit 1; }; }
795ca3e5
AK
1328done
1329
ad6254c5
AK
1330# There might be people who depend on the old broken behavior: `$host'
1331# used to hold the argument of --host etc.
1332# FIXME: To remove some day.
1333build=$build_alias
1334host=$host_alias
1335target=$target_alias
1336
1337# FIXME: To remove some day.
1338if test "x$host_alias" != x; then
1339 if test "x$build_alias" = x; then
1340 cross_compiling=maybe
ec6a6fbe 1341 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1342 If a cross compiler is detected then cross compile mode will be used." >&2
1343 elif test "x$build_alias" != "x$host_alias"; then
1344 cross_compiling=yes
1345 fi
1346fi
8106cdd5 1347
ad6254c5
AK
1348ac_tool_prefix=
1349test -n "$host_alias" && ac_tool_prefix=$host_alias-
1350
1351test "$silent" = yes && exec 6>/dev/null
795ca3e5 1352
795ca3e5 1353
7a197a62
AK
1354ac_pwd=`pwd` && test -n "$ac_pwd" &&
1355ac_ls_di=`ls -di .` &&
1356ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec6a6fbe 1357 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7a197a62
AK
1358 { (exit 1); exit 1; }; }
1359test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec6a6fbe 1360 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1361 { (exit 1); exit 1; }; }
1362
1363
795ca3e5
AK
1364# Find the source files, if location was not specified.
1365if test -z "$srcdir"; then
1366 ac_srcdir_defaulted=yes
7a197a62 1367 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1368 ac_confdir=`$as_dirname -- "$as_myself" ||
1369$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1370 X"$as_myself" : 'X\(//\)[^/]' \| \
1371 X"$as_myself" : 'X\(//\)$' \| \
1372 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1373$as_echo X"$as_myself" |
7a197a62
AK
1374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375 s//\1/
1376 q
1377 }
1378 /^X\(\/\/\)[^/].*/{
1379 s//\1/
1380 q
1381 }
1382 /^X\(\/\/\)$/{
1383 s//\1/
1384 q
1385 }
1386 /^X\(\/\).*/{
1387 s//\1/
1388 q
1389 }
1390 s/.*/./; q'`
795ca3e5 1391 srcdir=$ac_confdir
7a197a62 1392 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1393 srcdir=..
1394 fi
1395else
1396 ac_srcdir_defaulted=no
1397fi
7a197a62
AK
1398if test ! -r "$srcdir/$ac_unique_file"; then
1399 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec6a6fbe 1400 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1401 { (exit 1); exit 1; }; }
795ca3e5 1402fi
7a197a62
AK
1403ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1404ac_abs_confdir=`(
ec6a6fbe 1405 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1406 { (exit 1); exit 1; }; }
7a197a62
AK
1407 pwd)`
1408# When building in place, set srcdir=.
1409if test "$ac_abs_confdir" = "$ac_pwd"; then
1410 srcdir=.
1411fi
1412# Remove unnecessary trailing slashes from srcdir.
1413# Double slashes in file names in object file debugging info
1414# mess up M-x gdb in Emacs.
1415case $srcdir in
1416*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1417esac
1418for ac_var in $ac_precious_vars; do
1419 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_env_${ac_var}_value=\$${ac_var}
1421 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423done
ad6254c5
AK
1424
1425#
1426# Report the --help message.
1427#
1428if test "$ac_init_help" = "long"; then
1429 # Omit some internal or obsolete options to make the list less imposing.
1430 # This message is too long to be a string in the A/UX 3.1 sh.
1431 cat <<_ACEOF
1432\`configure' configures this package to adapt to many kinds of systems.
1433
1434Usage: $0 [OPTION]... [VAR=VALUE]...
1435
1436To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437VAR=VALUE. See below for descriptions of some of the useful variables.
1438
1439Defaults for the options are specified in brackets.
1440
1441Configuration:
1442 -h, --help display this help and exit
1443 --help=short display options specific to this package
1444 --help=recursive display the short help of all the included packages
1445 -V, --version display version information and exit
1446 -q, --quiet, --silent do not print \`checking...' messages
1447 --cache-file=FILE cache test results in FILE [disabled]
1448 -C, --config-cache alias for \`--cache-file=config.cache'
1449 -n, --no-create do not create output files
1450 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1451
ad6254c5
AK
1452Installation directories:
1453 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1454 [$ac_default_prefix]
ad6254c5 1455 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1456 [PREFIX]
ad6254c5
AK
1457
1458By default, \`make install' will install all the files in
1459\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1460an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461for instance \`--prefix=\$HOME'.
1462
1463For better control, use the options below.
1464
1465Fine tuning of the installation directories:
ec6a6fbe
AK
1466 --bindir=DIR user executables [EPREFIX/bin]
1467 --sbindir=DIR system admin executables [EPREFIX/sbin]
1468 --libexecdir=DIR program executables [EPREFIX/libexec]
1469 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1470 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1471 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1472 --libdir=DIR object code libraries [EPREFIX/lib]
1473 --includedir=DIR C header files [PREFIX/include]
1474 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1475 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1476 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1477 --infodir=DIR info documentation [DATAROOTDIR/info]
1478 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1479 --mandir=DIR man documentation [DATAROOTDIR/man]
1480 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1481 --htmldir=DIR html documentation [DOCDIR]
1482 --dvidir=DIR dvi documentation [DOCDIR]
1483 --pdfdir=DIR pdf documentation [DOCDIR]
1484 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1485_ACEOF
1486
1487 cat <<\_ACEOF
1488
1489System types:
1490 --build=BUILD configure for building on BUILD [guessed]
1491 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1492 --target=TARGET configure for building compilers for TARGET [HOST]
1493_ACEOF
1494fi
1495
1496if test -n "$ac_init_help"; then
1497
1498 cat <<\_ACEOF
1499
1500Optional Features:
ec6a6fbe 1501 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1502 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1503 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
9c961554
MB
1504 --enable-static_link Use this to link the tools to their libraries
1505 statically. Default is dynamic linking
ad6254c5
AK
1506 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1507 device-mapper is missing from the kernel
1b523347 1508 --disable-readline Disable readline support
3d978351 1509 --disable-realtime Disable realtime clock support
66fd4529 1510 --enable-cmirrord Enable the cluster mirror log daemon
ad6254c5 1511 --enable-debug Enable debugging
5556819a 1512 --enable-profiling Gather gcov profiling data
93bd259b 1513 --disable-devmapper Disable LVM2 device-mapper interaction
a5f46f6a
AK
1514 --enable-udev_sync Enable synchronisation with udev processing
1515 --enable-udev_rules Install rule files needed for udev synchronisation
93bd259b
AK
1516 --enable-compat Enable support for old device-mapper versions
1517 --disable-driver Disable calls to device-mapper in the kernel
ad6254c5 1518 --disable-o_direct Disable O_DIRECT
572fefeb 1519 --enable-applib Build application library
ad6254c5 1520 --enable-cmdlib Build shared command library
93bd259b 1521 --enable-pkgconfig Install pkgconfig support
ad6254c5 1522 --enable-fsadm Enable fsadm
15d91f5a 1523 --enable-dmeventd Enable the device-mapper event daemon
d0191583 1524 --disable-selinux Disable selinux support
ad6254c5
AK
1525 --enable-nls Enable Native Language Support
1526
1527Optional Packages:
1528 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1529 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d0191583
JM
1530 --with-user=USER Set the owner of installed files [USER=root]
1531 --with-group=GROUP Set the group owner of installed files [GROUP=root]
24bbc4d7
AK
1532 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1533 --with-device-gid=UID Set the group used for new device nodes [GID=0]
93bd259b 1534 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
ad6254c5
AK
1535 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1536 TYPE=internal
1537 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1538 TYPE=internal
1539 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1540 TYPE=internal
1541 --with-snapshots=TYPE Snapshot support: internal/shared/none
1542 TYPE=internal
1543 --with-mirrors=TYPE Mirror support: internal/shared/none
1544 TYPE=internal
a946372e 1545 --with-clvmd=TYPE Build cluster LVM Daemon.
8c222979 1546 The following cluster manager combinations are valid:
a946372e
AK
1547 * cman,gulm (RHEL4 or equivalent)
1548 * cman (RHEL5 or equivalent)
1549 * cman,corosync,openais (or selection of them)
1550 * all (autodetect)
1551 * none (disable build)
a266258f 1552 TYPE=none
66fd4529 1553 --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid]
d0191583
JM
1554 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1555 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
a5f46f6a
AK
1556 --with-confdir=DIR Configuration files in DIR [/etc]
1557 --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin]
68f2de6d
AK
1558 --with-usrlibdir=DIR
1559 --with-usrsbindir=DIR
a5f46f6a 1560 --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX]
78ce7acc 1561 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
93bd259b 1562 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
a5f46f6a 1563 --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd]
93bd259b 1564 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1565
1566Some influential environment variables:
1567 CC C compiler command
1568 CFLAGS C compiler flags
1569 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1570 nonstandard directory <lib dir>
25fbec5b 1571 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1572 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1573 you have headers in a nonstandard directory <include dir>
ad6254c5 1574 CPP C preprocessor
e2997b73 1575 PKG_CONFIG path to pkg-config utility
a946372e
AK
1576 PKGCONFIGINIT_CFLAGS
1577 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1578 PKGCONFIGINIT_LIBS
1579 linker flags for PKGCONFIGINIT, overriding pkg-config
1580 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1581 CCS_LIBS linker flags for CCS, overriding pkg-config
1582 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1583 GULM_LIBS linker flags for GULM, overriding pkg-config
1584 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1585 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1586 COROSYNC_CFLAGS
1587 C compiler flags for COROSYNC, overriding pkg-config
1588 COROSYNC_LIBS
1589 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1590 QUORUM_CFLAGS
1591 C compiler flags for QUORUM, overriding pkg-config
1592 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1593 SALCK_CFLAGS
1594 C compiler flags for SALCK, overriding pkg-config
1595 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1596 CONFDB_CFLAGS
1597 C compiler flags for CONFDB, overriding pkg-config
1598 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1599 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1600 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1601 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1602 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1603 SACKPT_CFLAGS
1604 C compiler flags for SACKPT, overriding pkg-config
1605 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
ad6254c5
AK
1606
1607Use these variables to override the choices made by `configure' or to help
1608it to find libraries and programs with nonstandard names/locations.
1609
1610_ACEOF
7a197a62 1611ac_status=$?
ad6254c5
AK
1612fi
1613
1614if test "$ac_init_help" = "recursive"; then
1615 # If there are subdirs, report their specific --help.
ad6254c5 1616 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1617 test -d "$ac_dir" ||
1618 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1619 continue
ad6254c5
AK
1620 ac_builddir=.
1621
7a197a62
AK
1622case "$ac_dir" in
1623.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624*)
ec6a6fbe 1625 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1626 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1627 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1628 case $ac_top_builddir_sub in
1629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1631 esac ;;
1632esac
1633ac_abs_top_builddir=$ac_pwd
1634ac_abs_builddir=$ac_pwd$ac_dir_suffix
1635# for backward compatibility:
1636ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1637
1638case $srcdir in
7a197a62 1639 .) # We are building in place.
ad6254c5 1640 ac_srcdir=.
7a197a62
AK
1641 ac_top_srcdir=$ac_top_builddir_sub
1642 ac_abs_top_srcdir=$ac_pwd ;;
1643 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1644 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1645 ac_top_srcdir=$srcdir
1646 ac_abs_top_srcdir=$srcdir ;;
1647 *) # Relative name.
1648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1649 ac_top_srcdir=$ac_top_build_prefix$srcdir
1650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1651esac
7a197a62
AK
1652ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1653
1654 cd "$ac_dir" || { ac_status=$?; continue; }
1655 # Check for guested configure.
1656 if test -f "$ac_srcdir/configure.gnu"; then
1657 echo &&
1658 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1659 elif test -f "$ac_srcdir/configure"; then
1660 echo &&
1661 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1662 else
ec6a6fbe 1663 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1664 fi || ac_status=$?
1665 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1666 done
1667fi
1668
7a197a62 1669test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1670if $ac_init_version; then
1671 cat <<\_ACEOF
7a197a62 1672configure
ec6a6fbe 1673generated by GNU Autoconf 2.63
ad6254c5 1674
7a197a62 1675Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 16762002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1677This configure script is free software; the Free Software Foundation
1678gives unlimited permission to copy, distribute and modify it.
1679_ACEOF
7a197a62 1680 exit
ad6254c5 1681fi
7a197a62 1682cat >config.log <<_ACEOF
ad6254c5
AK
1683This file contains any messages produced by compilers while
1684running configure, to aid debugging if configure makes a mistake.
1685
1686It was created by $as_me, which was
ec6a6fbe 1687generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
1688
1689 $ $0 $@
1690
1691_ACEOF
7a197a62 1692exec 5>>config.log
ad6254c5
AK
1693{
1694cat <<_ASUNAME
1695## --------- ##
1696## Platform. ##
1697## --------- ##
1698
1699hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1700uname -m = `(uname -m) 2>/dev/null || echo unknown`
1701uname -r = `(uname -r) 2>/dev/null || echo unknown`
1702uname -s = `(uname -s) 2>/dev/null || echo unknown`
1703uname -v = `(uname -v) 2>/dev/null || echo unknown`
1704
1705/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1706/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1707
1708/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1709/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1710/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1711/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1712/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1713/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1714/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1715
1716_ASUNAME
1717
1718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719for as_dir in $PATH
1720do
1721 IFS=$as_save_IFS
1722 test -z "$as_dir" && as_dir=.
ec6a6fbe 1723 $as_echo "PATH: $as_dir"
ad6254c5 1724done
7a197a62 1725IFS=$as_save_IFS
ad6254c5
AK
1726
1727} >&5
1728
1729cat >&5 <<_ACEOF
1730
1731
1732## ----------- ##
1733## Core tests. ##
1734## ----------- ##
1735
1736_ACEOF
1737
1738
1739# Keep a trace of the command line.
1740# Strip out --no-create and --no-recursion so they do not pile up.
1741# Strip out --silent because we don't want to record it for future runs.
1742# Also quote any args containing shell meta-characters.
1743# Make two passes to allow for proper duplicate-argument suppression.
1744ac_configure_args=
1745ac_configure_args0=
1746ac_configure_args1=
ad6254c5
AK
1747ac_must_keep_next=false
1748for ac_pass in 1 2
1749do
1750 for ac_arg
1751 do
1752 case $ac_arg in
1753 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1754 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1755 | -silent | --silent | --silen | --sile | --sil)
1756 continue ;;
7a197a62 1757 *\'*)
ec6a6fbe 1758 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1759 esac
1760 case $ac_pass in
1761 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1762 2)
1763 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1764 if test $ac_must_keep_next = true; then
8a2fc586 1765 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1766 else
8a2fc586
AK
1767 case $ac_arg in
1768 *=* | --config-cache | -C | -disable-* | --disable-* \
1769 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1770 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1771 | -with-* | --with-* | -without-* | --without-* | --x)
1772 case "$ac_configure_args0 " in
1773 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1774 esac
1775 ;;
1776 -* ) ac_must_keep_next=true ;;
1777 esac
ad6254c5 1778 fi
7a197a62 1779 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1780 ;;
1781 esac
1782 done
1783done
1784$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1785$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1786
1787# When interrupted or exit'd, cleanup temporary files, and complete
1788# config.log. We remove comments because anyway the quotes in there
1789# would cause problems or look ugly.
7a197a62
AK
1790# WARNING: Use '\'' to represent an apostrophe within the trap.
1791# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1792trap 'exit_status=$?
1793 # Save into config.log some information that might help in debugging.
1794 {
1795 echo
1796
1797 cat <<\_ASBOX
1798## ---------------- ##
1799## Cache variables. ##
1800## ---------------- ##
1801_ASBOX
1802 echo
1803 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1804(
1805 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1806 eval ac_val=\$$ac_var
1807 case $ac_val in #(
1808 *${as_nl}*)
1809 case $ac_var in #(
ec6a6fbe
AK
1810 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1811$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
1812 esac
1813 case $ac_var in #(
1814 _ | IFS | as_nl) ;; #(
ec6a6fbe 1815 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1816 *) $as_unset $ac_var ;;
1817 esac ;;
1818 esac
1819 done
ad6254c5 1820 (set) 2>&1 |
7a197a62
AK
1821 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1822 *${as_nl}ac_space=\ *)
ad6254c5 1823 sed -n \
7a197a62
AK
1824 "s/'\''/'\''\\\\'\'''\''/g;
1825 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1826 ;; #(
ad6254c5 1827 *)
7a197a62 1828 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1829 ;;
7a197a62
AK
1830 esac |
1831 sort
1832)
ad6254c5
AK
1833 echo
1834
1835 cat <<\_ASBOX
1836## ----------------- ##
1837## Output variables. ##
1838## ----------------- ##
1839_ASBOX
1840 echo
1841 for ac_var in $ac_subst_vars
1842 do
7a197a62
AK
1843 eval ac_val=\$$ac_var
1844 case $ac_val in
ec6a6fbe 1845 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1846 esac
ec6a6fbe 1847 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1848 done | sort
1849 echo
1850
1851 if test -n "$ac_subst_files"; then
1852 cat <<\_ASBOX
7a197a62
AK
1853## ------------------- ##
1854## File substitutions. ##
1855## ------------------- ##
ad6254c5
AK
1856_ASBOX
1857 echo
1858 for ac_var in $ac_subst_files
1859 do
7a197a62
AK
1860 eval ac_val=\$$ac_var
1861 case $ac_val in
ec6a6fbe 1862 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1863 esac
ec6a6fbe 1864 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1865 done | sort
1866 echo
1867 fi
1868
1869 if test -s confdefs.h; then
1870 cat <<\_ASBOX
1871## ----------- ##
1872## confdefs.h. ##
1873## ----------- ##
1874_ASBOX
1875 echo
7a197a62 1876 cat confdefs.h
ad6254c5
AK
1877 echo
1878 fi
1879 test "$ac_signal" != 0 &&
ec6a6fbe
AK
1880 $as_echo "$as_me: caught signal $ac_signal"
1881 $as_echo "$as_me: exit $exit_status"
ad6254c5 1882 } >&5
7a197a62
AK
1883 rm -f core *.core core.conftest.* &&
1884 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1885 exit $exit_status
7a197a62 1886' 0
ad6254c5
AK
1887for ac_signal in 1 2 13 15; do
1888 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1889done
1890ac_signal=0
1891
1892# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1893rm -f -r conftest* confdefs.h
ad6254c5
AK
1894
1895# Predefined preprocessor variables.
1896
1897cat >>confdefs.h <<_ACEOF
1898#define PACKAGE_NAME "$PACKAGE_NAME"
1899_ACEOF
1900
1901
1902cat >>confdefs.h <<_ACEOF
1903#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1904_ACEOF
1905
1906
1907cat >>confdefs.h <<_ACEOF
1908#define PACKAGE_VERSION "$PACKAGE_VERSION"
1909_ACEOF
8106cdd5 1910
ad6254c5
AK
1911
1912cat >>confdefs.h <<_ACEOF
1913#define PACKAGE_STRING "$PACKAGE_STRING"
1914_ACEOF
1915
1916
1917cat >>confdefs.h <<_ACEOF
1918#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1919_ACEOF
1920
1921
1922# Let the site file select an alternate cache file if it wants to.
ec6a6fbe
AK
1923# Prefer an explicitly selected file to automatically selected ones.
1924ac_site_file1=NONE
1925ac_site_file2=NONE
7a197a62 1926if test -n "$CONFIG_SITE"; then
ec6a6fbe 1927 ac_site_file1=$CONFIG_SITE
7a197a62 1928elif test "x$prefix" != xNONE; then
ec6a6fbe
AK
1929 ac_site_file1=$prefix/share/config.site
1930 ac_site_file2=$prefix/etc/config.site
7a197a62 1931else
ec6a6fbe
AK
1932 ac_site_file1=$ac_default_prefix/share/config.site
1933 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1934fi
ec6a6fbe 1935for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1936do
ec6a6fbe 1937 test "x$ac_site_file" = xNONE && continue
795ca3e5 1938 if test -r "$ac_site_file"; then
ec6a6fbe
AK
1939 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1940$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1941 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1942 . "$ac_site_file"
1943 fi
1944done
1945
1946if test -r "$cache_file"; then
ad6254c5
AK
1947 # Some versions of bash will fail to source /dev/null (special
1948 # files actually), so we avoid doing that.
1949 if test -f "$cache_file"; then
ec6a6fbe
AK
1950 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1951$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1952 case $cache_file in
7a197a62
AK
1953 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1954 *) . "./$cache_file";;
ad6254c5
AK
1955 esac
1956 fi
795ca3e5 1957else
ec6a6fbe
AK
1958 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1959$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1960 >$cache_file
1961fi
1962
1963# Check that the precious variables saved in the cache have kept the same
1964# value.
1965ac_cache_corrupted=false
7a197a62 1966for ac_var in $ac_precious_vars; do
ad6254c5
AK
1967 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1968 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1969 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1970 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1971 case $ac_old_set,$ac_new_set in
1972 set,)
ec6a6fbe
AK
1973 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1974$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
1975 ac_cache_corrupted=: ;;
1976 ,set)
ec6a6fbe
AK
1977 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1978$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
1979 ac_cache_corrupted=: ;;
1980 ,);;
1981 *)
1982 if test "x$ac_old_val" != "x$ac_new_val"; then
ec6a6fbe
AK
1983 # differences in whitespace do not lead to failure.
1984 ac_old_val_w=`echo x $ac_old_val`
1985 ac_new_val_w=`echo x $ac_new_val`
1986 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1987 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1988$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1989 ac_cache_corrupted=:
1990 else
1991 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1992$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1993 eval $ac_var=\$ac_old_val
1994 fi
1995 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1996$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1997 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1998$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
1999 fi;;
2000 esac
2001 # Pass precious variables to config.status.
2002 if test "$ac_new_set" = set; then
2003 case $ac_new_val in
ec6a6fbe 2004 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
2005 *) ac_arg=$ac_var=$ac_new_val ;;
2006 esac
2007 case " $ac_configure_args " in
2008 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2009 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2010 esac
2011 fi
2012done
2013if $ac_cache_corrupted; then
ec6a6fbe
AK
2014 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2015$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2016 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2017$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2018 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2019$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 2020 { (exit 1); exit 1; }; }
795ca3e5
AK
2021fi
2022
ad6254c5
AK
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
7a197a62
AK
2039ac_ext=c
2040ac_cpp='$CPP $CPPFLAGS'
2041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2043ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2044
795ca3e5
AK
2045
2046
7a197a62 2047ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
2048
2049
80992638 2050################################################################################
795ca3e5 2051ac_aux_dir=
7a197a62
AK
2052for ac_dir in autoconf "$srcdir"/autoconf; do
2053 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
2054 ac_aux_dir=$ac_dir
2055 ac_install_sh="$ac_aux_dir/install-sh -c"
2056 break
7a197a62 2057 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
2058 ac_aux_dir=$ac_dir
2059 ac_install_sh="$ac_aux_dir/install.sh -c"
2060 break
7a197a62 2061 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
2062 ac_aux_dir=$ac_dir
2063 ac_install_sh="$ac_aux_dir/shtool install -c"
2064 break
795ca3e5
AK
2065 fi
2066done
2067if test -z "$ac_aux_dir"; then
ec6a6fbe
AK
2068 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2069$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 2070 { (exit 1); exit 1; }; }
795ca3e5 2071fi
7a197a62
AK
2072
2073# These three variables are undocumented and unsupported,
2074# and are intended to be withdrawn in a future Autoconf release.
2075# They can cause serious problems if a builder's source tree is in a directory
2076# whose full name contains unusual characters.
2077ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2078ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2079ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2080
8ce0cbda
AK
2081
2082
ad6254c5 2083################################################################################
8ce0cbda 2084# Make sure we can run config.sub.
7a197a62 2085$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec6a6fbe
AK
2086 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2087$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
2088 { (exit 1); exit 1; }; }
2089
ec6a6fbe
AK
2090{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2091$as_echo_n "checking build system type... " >&6; }
ad6254c5 2092if test "${ac_cv_build+set}" = set; then
ec6a6fbe 2093 $as_echo_n "(cached) " >&6
ad6254c5 2094else
7a197a62
AK
2095 ac_build_alias=$build_alias
2096test "x$ac_build_alias" = x &&
2097 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2098test "x$ac_build_alias" = x &&
ec6a6fbe
AK
2099 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2100$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 2101 { (exit 1); exit 1; }; }
7a197a62 2102ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec6a6fbe
AK
2103 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2104$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
2105 { (exit 1); exit 1; }; }
2106
2107fi
ec6a6fbe
AK
2108{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2109$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
2110case $ac_cv_build in
2111*-*-*) ;;
ec6a6fbe
AK
2112*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2113$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
2114 { (exit 1); exit 1; }; };;
2115esac
ad6254c5 2116build=$ac_cv_build
7a197a62
AK
2117ac_save_IFS=$IFS; IFS='-'
2118set x $ac_cv_build
2119shift
2120build_cpu=$1
2121build_vendor=$2
2122shift; shift
2123# Remember, the first character of IFS is used to create $*,
2124# except with old shells:
2125build_os=$*
2126IFS=$ac_save_IFS
2127case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2128
2129
ec6a6fbe
AK
2130{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2131$as_echo_n "checking host system type... " >&6; }
ad6254c5 2132if test "${ac_cv_host+set}" = set; then
ec6a6fbe 2133 $as_echo_n "(cached) " >&6
ad6254c5 2134else
7a197a62
AK
2135 if test "x$host_alias" = x; then
2136 ac_cv_host=$ac_cv_build
2137else
2138 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec6a6fbe
AK
2139 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2140$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2141 { (exit 1); exit 1; }; }
7a197a62 2142fi
ad6254c5
AK
2143
2144fi
ec6a6fbe
AK
2145{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2146$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2147case $ac_cv_host in
2148*-*-*) ;;
ec6a6fbe
AK
2149*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2150$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2151 { (exit 1); exit 1; }; };;
2152esac
ad6254c5 2153host=$ac_cv_host
7a197a62
AK
2154ac_save_IFS=$IFS; IFS='-'
2155set x $ac_cv_host
2156shift
2157host_cpu=$1
2158host_vendor=$2
2159shift; shift
2160# Remember, the first character of IFS is used to create $*,
2161# except with old shells:
2162host_os=$*
2163IFS=$ac_save_IFS
2164case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2165
2166
ec6a6fbe
AK
2167{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2168$as_echo_n "checking target system type... " >&6; }
ad6254c5 2169if test "${ac_cv_target+set}" = set; then
ec6a6fbe 2170 $as_echo_n "(cached) " >&6
ad6254c5 2171else
7a197a62
AK
2172 if test "x$target_alias" = x; then
2173 ac_cv_target=$ac_cv_host
2174else
2175 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec6a6fbe
AK
2176 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2177$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2178 { (exit 1); exit 1; }; }
7a197a62 2179fi
8ce0cbda 2180
ad6254c5 2181fi
ec6a6fbe
AK
2182{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2183$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2184case $ac_cv_target in
2185*-*-*) ;;
ec6a6fbe
AK
2186*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2187$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2188 { (exit 1); exit 1; }; };;
2189esac
ad6254c5 2190target=$ac_cv_target
7a197a62
AK
2191ac_save_IFS=$IFS; IFS='-'
2192set x $ac_cv_target
2193shift
2194target_cpu=$1
2195target_vendor=$2
2196shift; shift
2197# Remember, the first character of IFS is used to create $*,
2198# except with old shells:
2199target_os=$*
2200IFS=$ac_save_IFS
2201case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2202
8ce0cbda 2203
ad6254c5
AK
2204# The aliases save the names the user supplied, while $host etc.
2205# will get canonicalized.
2206test -n "$target_alias" &&
8ce0cbda
AK
2207 test "$program_prefix$program_suffix$program_transform_name" = \
2208 NONENONEs,x,x, &&
2209 program_prefix=${target_alias}-
2210
8ce0cbda
AK
2211case "$host_os" in
2212 linux*)
7f54ef36 2213 CFLAGS="$CFLAGS"
8ce0cbda
AK
2214 COPTIMISE_FLAG="-O2"
2215 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2216 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2217 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2218 LDDEPS="$LDDEPS .export.sym"
2219 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2220 LIB_SUFFIX=so
8ce0cbda
AK
2221 DEVMAPPER=yes
2222 ODIRECT=yes
d0191583 2223 DM_IOCTLS=yes
8ce0cbda 2224 SELINUX=yes
8b1a3214 2225 REALTIME=yes
8ce0cbda 2226 CLUSTER=internal
93bd259b 2227 FSADM=yes
d0191583 2228 ;;
8ce0cbda
AK
2229 darwin*)
2230 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2231 COPTIMISE_FLAG="-O2"
2232 CLDFLAGS="$CLDFLAGS"
2233 CLDWHOLEARCHIVE="-all_load"
2234 CLDNOWHOLEARCHIVE=
d0191583 2235 LIB_SUFFIX=dylib
a653923f 2236 DEVMAPPER=yes
8ce0cbda 2237 ODIRECT=no
d0191583 2238 DM_IOCTLS=no
8ce0cbda 2239 SELINUX=no
8b1a3214 2240 REALTIME=no
8ce0cbda 2241 CLUSTER=none
d0191583
JM
2242 FSADM=no
2243 ;;
8ce0cbda
AK
2244esac
2245
80992638 2246################################################################################
ec6a6fbe
AK
2247{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2248$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2249if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2250 $as_echo_n "(cached) " >&6
5951ef33
AK
2251else
2252 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2253 for ac_i in 1 2 3 4 5 6 7; do
2254 ac_script="$ac_script$as_nl$ac_script"
2255 done
ec6a6fbe 2256 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2257 $as_unset ac_script || ac_script=
ec6a6fbe 2258 if test -z "$SED"; then
5951ef33 2259 ac_path_SED_found=false
ec6a6fbe
AK
2260 # Loop through the user's path and test for each of PROGNAME-LIST
2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2262for as_dir in $PATH
2263do
2264 IFS=$as_save_IFS
2265 test -z "$as_dir" && as_dir=.
2266 for ac_prog in sed gsed; do
ec6a6fbe
AK
2267 for ac_exec_ext in '' $ac_executable_extensions; do
2268 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2269 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2270# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2271 # Check for GNU $ac_path_SED
2272case `"$ac_path_SED" --version 2>&1` in
2273*GNU*)
2274 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2275*)
2276 ac_count=0
ec6a6fbe 2277 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2278 while :
2279 do
2280 cat "conftest.in" "conftest.in" >"conftest.tmp"
2281 mv "conftest.tmp" "conftest.in"
2282 cp "conftest.in" "conftest.nl"
ec6a6fbe 2283 $as_echo '' >> "conftest.nl"
5951ef33
AK
2284 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2285 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2286 ac_count=`expr $ac_count + 1`
2287 if test $ac_count -gt ${ac_path_SED_max-0}; then
2288 # Best one so far, save it but keep looking for a better one
2289 ac_cv_path_SED="$ac_path_SED"
2290 ac_path_SED_max=$ac_count
2291 fi
2292 # 10*(2^10) chars as input seems more than enough
2293 test $ac_count -gt 10 && break
2294 done
2295 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2296esac
2297
ec6a6fbe
AK
2298 $ac_path_SED_found && break 3
2299 done
5951ef33
AK
2300 done
2301done
5951ef33 2302IFS=$as_save_IFS
ec6a6fbe
AK
2303 if test -z "$ac_cv_path_SED"; then
2304 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2305$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2306 { (exit 1); exit 1; }; }
ec6a6fbe 2307 fi
5951ef33
AK
2308else
2309 ac_cv_path_SED=$SED
2310fi
2311
2312fi
ec6a6fbe
AK
2313{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2314$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2315 SED="$ac_cv_path_SED"
2316 rm -f conftest.sed
2317
ad6254c5 2318for ac_prog in gawk mawk nawk awk
795ca3e5 2319do
ad6254c5 2320 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2321set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2322{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2323$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2324if test "${ac_cv_prog_AWK+set}" = set; then
ec6a6fbe 2325 $as_echo_n "(cached) " >&6
795ca3e5
AK
2326else
2327 if test -n "$AWK"; then
2328 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2329else
ad6254c5
AK
2330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331for as_dir in $PATH
2332do
2333 IFS=$as_save_IFS
2334 test -z "$as_dir" && as_dir=.
2335 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2337 ac_cv_prog_AWK="$ac_prog"
ec6a6fbe 2338 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2339 break 2
2340 fi
2341done
2342done
7a197a62 2343IFS=$as_save_IFS
ad6254c5 2344
795ca3e5
AK
2345fi
2346fi
ad6254c5 2347AWK=$ac_cv_prog_AWK
795ca3e5 2348if test -n "$AWK"; then
ec6a6fbe
AK
2349 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2350$as_echo "$AWK" >&6; }
795ca3e5 2351else
ec6a6fbe
AK
2352 { $as_echo "$as_me:$LINENO: result: no" >&5
2353$as_echo "no" >&6; }
795ca3e5
AK
2354fi
2355
7a197a62 2356
ad6254c5
AK
2357 test -n "$AWK" && break
2358done
2359
2360ac_ext=c
2361ac_cpp='$CPP $CPPFLAGS'
2362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2364ac_compiler_gnu=$ac_cv_c_compiler_gnu
2365if test -n "$ac_tool_prefix"; then
2366 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2367set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2368{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2369$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2370if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2371 $as_echo_n "(cached) " >&6
ad6254c5
AK
2372else
2373 if test -n "$CC"; then
2374 ac_cv_prog_CC="$CC" # Let the user override the test.
2375else
2376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377for as_dir in $PATH
2378do
2379 IFS=$as_save_IFS
2380 test -z "$as_dir" && as_dir=.
2381 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2383 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2384 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2385 break 2
2386 fi
2387done
8106cdd5 2388done
7a197a62 2389IFS=$as_save_IFS
8106cdd5 2390
ad6254c5
AK
2391fi
2392fi
2393CC=$ac_cv_prog_CC
2394if test -n "$CC"; then
ec6a6fbe
AK
2395 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2396$as_echo "$CC" >&6; }
ad6254c5 2397else
ec6a6fbe
AK
2398 { $as_echo "$as_me:$LINENO: result: no" >&5
2399$as_echo "no" >&6; }
ad6254c5
AK
2400fi
2401
7a197a62 2402
ad6254c5
AK
2403fi
2404if test -z "$ac_cv_prog_CC"; then
2405 ac_ct_CC=$CC
2406 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2407set dummy gcc; ac_word=$2
ec6a6fbe
AK
2408{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2409$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2410if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2411 $as_echo_n "(cached) " >&6
ad6254c5
AK
2412else
2413 if test -n "$ac_ct_CC"; then
2414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2415else
2416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417for as_dir in $PATH
2418do
2419 IFS=$as_save_IFS
2420 test -z "$as_dir" && as_dir=.
2421 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2423 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2424 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2425 break 2
2426 fi
2427done
2428done
7a197a62 2429IFS=$as_save_IFS
ad6254c5
AK
2430
2431fi
2432fi
2433ac_ct_CC=$ac_cv_prog_ac_ct_CC
2434if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2435 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2436$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2437else
ec6a6fbe
AK
2438 { $as_echo "$as_me:$LINENO: result: no" >&5
2439$as_echo "no" >&6; }
ad6254c5
AK
2440fi
2441
7a197a62
AK
2442 if test "x$ac_ct_CC" = x; then
2443 CC=""
2444 else
2445 case $cross_compiling:$ac_tool_warned in
2446yes:)
ec6a6fbe
AK
2447{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2448$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2449ac_tool_warned=yes ;;
2450esac
2451 CC=$ac_ct_CC
2452 fi
ad6254c5
AK
2453else
2454 CC="$ac_cv_prog_CC"
2455fi
2456
2457if test -z "$CC"; then
7a197a62
AK
2458 if test -n "$ac_tool_prefix"; then
2459 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2460set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2461{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2462$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2463if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2464 $as_echo_n "(cached) " >&6
8106cdd5
AK
2465else
2466 if test -n "$CC"; then
2467 ac_cv_prog_CC="$CC" # Let the user override the test.
2468else
ad6254c5
AK
2469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470for as_dir in $PATH
2471do
2472 IFS=$as_save_IFS
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2476 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec6a6fbe 2477 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2478 break 2
2479 fi
2480done
2481done
7a197a62 2482IFS=$as_save_IFS
ad6254c5 2483
8106cdd5
AK
2484fi
2485fi
ad6254c5 2486CC=$ac_cv_prog_CC
8106cdd5 2487if test -n "$CC"; then
ec6a6fbe
AK
2488 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2489$as_echo "$CC" >&6; }
ad6254c5 2490else
ec6a6fbe
AK
2491 { $as_echo "$as_me:$LINENO: result: no" >&5
2492$as_echo "no" >&6; }
ad6254c5
AK
2493fi
2494
8106cdd5 2495
7a197a62 2496 fi
ad6254c5 2497fi
795ca3e5
AK
2498if test -z "$CC"; then
2499 # Extract the first word of "cc", so it can be a program name with args.
2500set dummy cc; ac_word=$2
ec6a6fbe
AK
2501{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2502$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2503if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2504 $as_echo_n "(cached) " >&6
795ca3e5
AK
2505else
2506 if test -n "$CC"; then
2507 ac_cv_prog_CC="$CC" # Let the user override the test.
2508else
795ca3e5 2509 ac_prog_rejected=no
ad6254c5
AK
2510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511for as_dir in $PATH
2512do
2513 IFS=$as_save_IFS
2514 test -z "$as_dir" && as_dir=.
2515 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2517 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2518 ac_prog_rejected=yes
2519 continue
2520 fi
2521 ac_cv_prog_CC="cc"
ec6a6fbe 2522 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2523 break 2
2524 fi
2525done
2526done
7a197a62 2527IFS=$as_save_IFS
ad6254c5 2528
795ca3e5
AK
2529if test $ac_prog_rejected = yes; then
2530 # We found a bogon in the path, so make sure we never use it.
2531 set dummy $ac_cv_prog_CC
2532 shift
ad6254c5 2533 if test $# != 0; then
795ca3e5
AK
2534 # We chose a different compiler from the bogus one.
2535 # However, it has the same basename, so the bogon will be chosen
2536 # first if we set CC to just the basename; use the full file name.
2537 shift
ad6254c5 2538 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2539 fi
2540fi
2541fi
2542fi
ad6254c5 2543CC=$ac_cv_prog_CC
795ca3e5 2544if test -n "$CC"; then
ec6a6fbe
AK
2545 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2546$as_echo "$CC" >&6; }
795ca3e5 2547else
ec6a6fbe
AK
2548 { $as_echo "$as_me:$LINENO: result: no" >&5
2549$as_echo "no" >&6; }
795ca3e5
AK
2550fi
2551
7a197a62 2552
ad6254c5
AK
2553fi
2554if test -z "$CC"; then
2555 if test -n "$ac_tool_prefix"; then
7a197a62 2556 for ac_prog in cl.exe
ad6254c5
AK
2557 do
2558 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2559set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2560{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2561$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2562if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2563 $as_echo_n "(cached) " >&6
795ca3e5
AK
2564else
2565 if test -n "$CC"; then
2566 ac_cv_prog_CC="$CC" # Let the user override the test.
2567else
ad6254c5
AK
2568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569for as_dir in $PATH
2570do
2571 IFS=$as_save_IFS
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2575 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2576 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2577 break 2
2578 fi
2579done
2580done
7a197a62 2581IFS=$as_save_IFS
ad6254c5 2582
795ca3e5
AK
2583fi
2584fi
ad6254c5 2585CC=$ac_cv_prog_CC
795ca3e5 2586if test -n "$CC"; then
ec6a6fbe
AK
2587 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2588$as_echo "$CC" >&6; }
795ca3e5 2589else
ec6a6fbe
AK
2590 { $as_echo "$as_me:$LINENO: result: no" >&5
2591$as_echo "no" >&6; }
795ca3e5 2592fi
ad6254c5 2593
7a197a62 2594
ad6254c5
AK
2595 test -n "$CC" && break
2596 done
2597fi
2598if test -z "$CC"; then
2599 ac_ct_CC=$CC
7a197a62 2600 for ac_prog in cl.exe
ad6254c5
AK
2601do
2602 # Extract the first word of "$ac_prog", so it can be a program name with args.
2603set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2604{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2605$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2606if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2607 $as_echo_n "(cached) " >&6
ad6254c5
AK
2608else
2609 if test -n "$ac_ct_CC"; then
2610 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2611else
2612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613for as_dir in $PATH
2614do
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2619 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2620 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2621 break 2
795ca3e5 2622 fi
ad6254c5
AK
2623done
2624done
7a197a62 2625IFS=$as_save_IFS
ad6254c5
AK
2626
2627fi
2628fi
2629ac_ct_CC=$ac_cv_prog_ac_ct_CC
2630if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2631 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2632$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2633else
ec6a6fbe
AK
2634 { $as_echo "$as_me:$LINENO: result: no" >&5
2635$as_echo "no" >&6; }
795ca3e5
AK
2636fi
2637
7a197a62 2638
ad6254c5
AK
2639 test -n "$ac_ct_CC" && break
2640done
795ca3e5 2641
7a197a62
AK
2642 if test "x$ac_ct_CC" = x; then
2643 CC=""
2644 else
2645 case $cross_compiling:$ac_tool_warned in
2646yes:)
ec6a6fbe
AK
2647{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2648$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2649ac_tool_warned=yes ;;
2650esac
2651 CC=$ac_ct_CC
2652 fi
ad6254c5
AK
2653fi
2654
2655fi
2656
2657
ec6a6fbe
AK
2658test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2659$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2660{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2661See \`config.log' for more details." >&5
ec6a6fbe 2662$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2663See \`config.log' for more details." >&2;}
ec6a6fbe 2664 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2665
2666# Provide some information about the compiler.
ec6a6fbe
AK
2667$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2668set X $ac_compile
2669ac_compiler=$2
7a197a62
AK
2670{ (ac_try="$ac_compiler --version >&5"
2671case "(($ac_try" in
2672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673 *) ac_try_echo=$ac_try;;
2674esac
ec6a6fbe
AK
2675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2676$as_echo "$ac_try_echo") >&5
7a197a62 2677 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2678 ac_status=$?
ec6a6fbe 2679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2680 (exit $ac_status); }
7a197a62
AK
2681{ (ac_try="$ac_compiler -v >&5"
2682case "(($ac_try" in
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2685esac
ec6a6fbe
AK
2686eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2687$as_echo "$ac_try_echo") >&5
7a197a62 2688 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2689 ac_status=$?
ec6a6fbe 2690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2691 (exit $ac_status); }
7a197a62
AK
2692{ (ac_try="$ac_compiler -V >&5"
2693case "(($ac_try" in
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2696esac
ec6a6fbe
AK
2697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2698$as_echo "$ac_try_echo") >&5
7a197a62 2699 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2700 ac_status=$?
ec6a6fbe 2701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2702 (exit $ac_status); }
2703
2704cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2705/* confdefs.h. */
2706_ACEOF
2707cat confdefs.h >>conftest.$ac_ext
2708cat >>conftest.$ac_ext <<_ACEOF
2709/* end confdefs.h. */
2710
2711int
2712main ()
2713{
2714
2715 ;
2716 return 0;
2717}
2718_ACEOF
2719ac_clean_files_save=$ac_clean_files
ec6a6fbe 2720ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2721# Try to create an executable without -o first, disregard a.out.
2722# It will help us diagnose broken compilers, and finding out an intuition
2723# of exeext.
ec6a6fbe
AK
2724{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2725$as_echo_n "checking for C compiler default output file name... " >&6; }
2726ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2727
2728# The possible output files:
2729ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2730
7a197a62
AK
2731ac_rmfiles=
2732for ac_file in $ac_files
2733do
2734 case $ac_file in
ec6a6fbe 2735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2736 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2737 esac
2738done
2739rm -f $ac_rmfiles
2740
2741if { (ac_try="$ac_link_default"
2742case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2745esac
ec6a6fbe
AK
2746eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2747$as_echo "$ac_try_echo") >&5
7a197a62 2748 (eval "$ac_link_default") 2>&5
ad6254c5 2749 ac_status=$?
ec6a6fbe 2750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2751 (exit $ac_status); }; then
7a197a62
AK
2752 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2753# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2754# in a Makefile. We should not override ac_cv_exeext if it was cached,
2755# so that the user can short-circuit this test for compilers unknown to
2756# Autoconf.
25fbec5b 2757for ac_file in $ac_files ''
ad6254c5
AK
2758do
2759 test -f "$ac_file" || continue
2760 case $ac_file in
ec6a6fbe 2761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2762 ;;
ad6254c5 2763 [ab].out )
8a2fc586
AK
2764 # We found the default executable, but exeext='' is most
2765 # certainly right.
2766 break;;
ad6254c5 2767 *.* )
7a197a62
AK
2768 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2769 then :; else
2770 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2771 fi
2772 # We set ac_cv_exeext here because the later test for it is not
2773 # safe: cross compilers may not add the suffix if given an `-o'
2774 # argument, so we may need to know it at that point already.
2775 # Even if this section looks crufty: it has the advantage of
2776 # actually working.
8a2fc586 2777 break;;
ad6254c5 2778 * )
8a2fc586 2779 break;;
ad6254c5
AK
2780 esac
2781done
7a197a62
AK
2782test "$ac_cv_exeext" = no && ac_cv_exeext=
2783
ad6254c5 2784else
25fbec5b
AK
2785 ac_file=''
2786fi
2787
ec6a6fbe
AK
2788{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2789$as_echo "$ac_file" >&6; }
25fbec5b 2790if test -z "$ac_file"; then
ec6a6fbe 2791 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2792sed 's/^/| /' conftest.$ac_ext >&5
2793
ec6a6fbe
AK
2794{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2796{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2797See \`config.log' for more details." >&5
ec6a6fbe 2798$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2799See \`config.log' for more details." >&2;}
ec6a6fbe 2800 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2801fi
2802
2803ac_exeext=$ac_cv_exeext
ad6254c5 2804
7a197a62 2805# Check that the compiler produces executables we can run. If not, either
ad6254c5 2806# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2807{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2808$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2809# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2810# If not cross compiling, check that we can run a simple program.
2811if test "$cross_compiling" != yes; then
2812 if { ac_try='./$ac_file'
7a197a62
AK
2813 { (case "(($ac_try" in
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2816esac
ec6a6fbe
AK
2817eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2818$as_echo "$ac_try_echo") >&5
7a197a62 2819 (eval "$ac_try") 2>&5
ad6254c5 2820 ac_status=$?
ec6a6fbe 2821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2822 (exit $ac_status); }; }; then
2823 cross_compiling=no
795ca3e5 2824 else
ad6254c5
AK
2825 if test "$cross_compiling" = maybe; then
2826 cross_compiling=yes
2827 else
ec6a6fbe
AK
2828 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2829$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2830{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2831If you meant to cross compile, use \`--host'.
2832See \`config.log' for more details." >&5
ec6a6fbe 2833$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2834If you meant to cross compile, use \`--host'.
2835See \`config.log' for more details." >&2;}
ec6a6fbe 2836 { (exit 1); exit 1; }; }; }
ad6254c5 2837 fi
795ca3e5 2838 fi
80992638 2839fi
ec6a6fbe
AK
2840{ $as_echo "$as_me:$LINENO: result: yes" >&5
2841$as_echo "yes" >&6; }
ad6254c5 2842
ec6a6fbe 2843rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2844ac_clean_files=$ac_clean_files_save
7a197a62 2845# Check that the compiler produces executables we can run. If not, either
ad6254c5 2846# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2847{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2848$as_echo_n "checking whether we are cross compiling... " >&6; }
2849{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2850$as_echo "$cross_compiling" >&6; }
7a197a62 2851
ec6a6fbe
AK
2852{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2853$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2854if { (ac_try="$ac_link"
2855case "(($ac_try" in
2856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2857 *) ac_try_echo=$ac_try;;
2858esac
ec6a6fbe
AK
2859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2860$as_echo "$ac_try_echo") >&5
7a197a62 2861 (eval "$ac_link") 2>&5
ad6254c5 2862 ac_status=$?
ec6a6fbe 2863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2864 (exit $ac_status); }; then
2865 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2866# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2867# work properly (i.e., refer to `conftest.exe'), while it won't with
2868# `rm'.
2869for ac_file in conftest.exe conftest conftest.*; do
2870 test -f "$ac_file" || continue
2871 case $ac_file in
ec6a6fbe 2872 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2873 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2874 break;;
ad6254c5
AK
2875 * ) break;;
2876 esac
2877done
80992638 2878else
ec6a6fbe
AK
2879 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2880$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2881{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2882See \`config.log' for more details." >&5
ec6a6fbe 2883$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2884See \`config.log' for more details." >&2;}
ec6a6fbe 2885 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2886fi
2887
2888rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2889{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2890$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2891
2892rm -f conftest.$ac_ext
2893EXEEXT=$ac_cv_exeext
2894ac_exeext=$EXEEXT
ec6a6fbe
AK
2895{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2896$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2897if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2898 $as_echo_n "(cached) " >&6
795ca3e5 2899else
ad6254c5 2900 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2901/* confdefs.h. */
2902_ACEOF
2903cat confdefs.h >>conftest.$ac_ext
2904cat >>conftest.$ac_ext <<_ACEOF
2905/* end confdefs.h. */
2906
2907int
2908main ()
2909{
2910
2911 ;
2912 return 0;
2913}
2914_ACEOF
2915rm -f conftest.o conftest.obj
7a197a62
AK
2916if { (ac_try="$ac_compile"
2917case "(($ac_try" in
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2920esac
ec6a6fbe
AK
2921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2922$as_echo "$ac_try_echo") >&5
7a197a62 2923 (eval "$ac_compile") 2>&5
ad6254c5 2924 ac_status=$?
ec6a6fbe 2925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2926 (exit $ac_status); }; then
7a197a62
AK
2927 for ac_file in conftest.o conftest.obj conftest.*; do
2928 test -f "$ac_file" || continue;
ad6254c5 2929 case $ac_file in
ec6a6fbe 2930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2931 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2932 break;;
2933 esac
2934done
2935else
ec6a6fbe 2936 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2937sed 's/^/| /' conftest.$ac_ext >&5
2938
ec6a6fbe
AK
2939{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2940$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2941{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2942See \`config.log' for more details." >&5
ec6a6fbe 2943$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 2944See \`config.log' for more details." >&2;}
ec6a6fbe 2945 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2946fi
2947
2948rm -f conftest.$ac_cv_objext conftest.$ac_ext
2949fi
ec6a6fbe
AK
2950{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2951$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
2952OBJEXT=$ac_cv_objext
2953ac_objext=$OBJEXT
ec6a6fbe
AK
2954{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2955$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 2956if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 2957 $as_echo_n "(cached) " >&6
ad6254c5
AK
2958else
2959 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2960/* confdefs.h. */
2961_ACEOF
2962cat confdefs.h >>conftest.$ac_ext
2963cat >>conftest.$ac_ext <<_ACEOF
2964/* end confdefs.h. */
2965
2966int
2967main ()
2968{
2969#ifndef __GNUC__
2970 choke me
2971#endif
80992638 2972
ad6254c5
AK
2973 ;
2974 return 0;
2975}
2976_ACEOF
2977rm -f conftest.$ac_objext
7a197a62
AK
2978if { (ac_try="$ac_compile"
2979case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2982esac
ec6a6fbe
AK
2983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2984$as_echo "$ac_try_echo") >&5
7a197a62 2985 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2986 ac_status=$?
8a2fc586
AK
2987 grep -v '^ *+' conftest.er1 >conftest.err
2988 rm -f conftest.er1
2989 cat conftest.err >&5
ec6a6fbe 2990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2991 (exit $ac_status); } && {
2992 test -z "$ac_c_werror_flag" ||
2993 test ! -s conftest.err
2994 } && test -s conftest.$ac_objext; then
ad6254c5 2995 ac_compiler_gnu=yes
80992638 2996else
ec6a6fbe 2997 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2998sed 's/^/| /' conftest.$ac_ext >&5
2999
7a197a62 3000 ac_compiler_gnu=no
8106cdd5 3001fi
7a197a62
AK
3002
3003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 3004ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 3005
ad6254c5 3006fi
ec6a6fbe
AK
3007{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3008$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3009if test $ac_compiler_gnu = yes; then
3010 GCC=yes
3011else
3012 GCC=
3013fi
ad6254c5
AK
3014ac_test_CFLAGS=${CFLAGS+set}
3015ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
3016{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3017$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 3018if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 3019 $as_echo_n "(cached) " >&6
795ca3e5 3020else
7a197a62
AK
3021 ac_save_c_werror_flag=$ac_c_werror_flag
3022 ac_c_werror_flag=yes
3023 ac_cv_prog_cc_g=no
3024 CFLAGS="-g"
3025 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3026/* confdefs.h. */
3027_ACEOF
3028cat confdefs.h >>conftest.$ac_ext
3029cat >>conftest.$ac_ext <<_ACEOF
3030/* end confdefs.h. */
3031
3032int
3033main ()
3034{
3035
3036 ;
3037 return 0;
3038}
3039_ACEOF
3040rm -f conftest.$ac_objext
7a197a62
AK
3041if { (ac_try="$ac_compile"
3042case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045esac
ec6a6fbe
AK
3046eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3047$as_echo "$ac_try_echo") >&5
7a197a62 3048 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3049 ac_status=$?
8a2fc586
AK
3050 grep -v '^ *+' conftest.er1 >conftest.err
3051 rm -f conftest.er1
3052 cat conftest.err >&5
ec6a6fbe 3053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3054 (exit $ac_status); } && {
3055 test -z "$ac_c_werror_flag" ||
3056 test ! -s conftest.err
3057 } && test -s conftest.$ac_objext; then
7a197a62
AK
3058 ac_cv_prog_cc_g=yes
3059else
ec6a6fbe 3060 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3061sed 's/^/| /' conftest.$ac_ext >&5
3062
3063 CFLAGS=""
3064 cat >conftest.$ac_ext <<_ACEOF
3065/* confdefs.h. */
3066_ACEOF
3067cat confdefs.h >>conftest.$ac_ext
3068cat >>conftest.$ac_ext <<_ACEOF
3069/* end confdefs.h. */
3070
3071int
3072main ()
3073{
3074
3075 ;
3076 return 0;
3077}
3078_ACEOF
3079rm -f conftest.$ac_objext
3080if { (ac_try="$ac_compile"
3081case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084esac
ec6a6fbe
AK
3085eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3086$as_echo "$ac_try_echo") >&5
7a197a62 3087 (eval "$ac_compile") 2>conftest.er1
8a2fc586 3088 ac_status=$?
7a197a62
AK
3089 grep -v '^ *+' conftest.er1 >conftest.err
3090 rm -f conftest.er1
3091 cat conftest.err >&5
ec6a6fbe 3092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3093 (exit $ac_status); } && {
3094 test -z "$ac_c_werror_flag" ||
3095 test ! -s conftest.err
3096 } && test -s conftest.$ac_objext; then
7a197a62
AK
3097 :
3098else
ec6a6fbe 3099 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3100sed 's/^/| /' conftest.$ac_ext >&5
3101
3102 ac_c_werror_flag=$ac_save_c_werror_flag
3103 CFLAGS="-g"
3104 cat >conftest.$ac_ext <<_ACEOF
3105/* confdefs.h. */
3106_ACEOF
3107cat confdefs.h >>conftest.$ac_ext
3108cat >>conftest.$ac_ext <<_ACEOF
3109/* end confdefs.h. */
3110
3111int
3112main ()
3113{
3114
3115 ;
3116 return 0;
3117}
3118_ACEOF
3119rm -f conftest.$ac_objext
3120if { (ac_try="$ac_compile"
3121case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124esac
ec6a6fbe
AK
3125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3126$as_echo "$ac_try_echo") >&5
7a197a62 3127 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3128 ac_status=$?
7a197a62
AK
3129 grep -v '^ *+' conftest.er1 >conftest.err
3130 rm -f conftest.er1
3131 cat conftest.err >&5
ec6a6fbe 3132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3133 (exit $ac_status); } && {
3134 test -z "$ac_c_werror_flag" ||
3135 test ! -s conftest.err
3136 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3137 ac_cv_prog_cc_g=yes
3138else
ec6a6fbe 3139 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3140sed 's/^/| /' conftest.$ac_ext >&5
80992638 3141
7a197a62
AK
3142
3143fi
3144
3145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3146fi
3147
3148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3149fi
7a197a62
AK
3150
3151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3152 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3153fi
ec6a6fbe
AK
3154{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3155$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3156if test "$ac_test_CFLAGS" = set; then
ad6254c5 3157 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3158elif test $ac_cv_prog_cc_g = yes; then
3159 if test "$GCC" = yes; then
3160 CFLAGS="-g -O2"
3161 else
3162 CFLAGS="-g"
3163 fi
3164else
3165 if test "$GCC" = yes; then
3166 CFLAGS="-O2"
3167 else
3168 CFLAGS=
3169 fi
3170fi
ec6a6fbe
AK
3171{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3172$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3173if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3174 $as_echo_n "(cached) " >&6
ad6254c5 3175else
7a197a62 3176 ac_cv_prog_cc_c89=no
ad6254c5
AK
3177ac_save_CC=$CC
3178cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3179/* confdefs.h. */
3180_ACEOF
3181cat confdefs.h >>conftest.$ac_ext
3182cat >>conftest.$ac_ext <<_ACEOF
3183/* end confdefs.h. */
3184#include <stdarg.h>
3185#include <stdio.h>
3186#include <sys/types.h>
3187#include <sys/stat.h>
3188/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3189struct buf { int x; };
3190FILE * (*rcsopen) (struct buf *, struct stat *, int);
3191static char *e (p, i)
3192 char **p;
3193 int i;
3194{
3195 return p[i];
3196}
3197static char *f (char * (*g) (char **, int), char **p, ...)
3198{
3199 char *s;
3200 va_list v;
3201 va_start (v,p);
3202 s = g (p, va_arg (v,int));
3203 va_end (v);
3204 return s;
3205}
8a2fc586
AK
3206
3207/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3208 function prototypes and stuff, but not '\xHH' hex character constants.
3209 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3210 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3211 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3212 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3213 that's true only with -std. */
8a2fc586
AK
3214int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3215
7a197a62
AK
3216/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3217 inside strings and character constants. */
3218#define FOO(x) 'x'
3219int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3220
ad6254c5
AK
3221int test (int i, double x);
3222struct s1 {int (*f) (int a);};
3223struct s2 {int (*f) (double a);};
3224int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3225int argc;
3226char **argv;
3227int
3228main ()
3229{
3230return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3231 ;
3232 return 0;
3233}
3234_ACEOF
7a197a62
AK
3235for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3236 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3237do
3238 CC="$ac_save_CC $ac_arg"
3239 rm -f conftest.$ac_objext
7a197a62
AK
3240if { (ac_try="$ac_compile"
3241case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244esac
ec6a6fbe
AK
3245eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3246$as_echo "$ac_try_echo") >&5
7a197a62 3247 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3248 ac_status=$?
8a2fc586
AK
3249 grep -v '^ *+' conftest.er1 >conftest.err
3250 rm -f conftest.er1
3251 cat conftest.err >&5
ec6a6fbe 3252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3253 (exit $ac_status); } && {
3254 test -z "$ac_c_werror_flag" ||
3255 test ! -s conftest.err
3256 } && test -s conftest.$ac_objext; then
7a197a62 3257 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3258else
ec6a6fbe 3259 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3260sed 's/^/| /' conftest.$ac_ext >&5
3261
7a197a62 3262
ad6254c5 3263fi
7a197a62
AK
3264
3265rm -f core conftest.err conftest.$ac_objext
3266 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3267done
7a197a62 3268rm -f conftest.$ac_ext
ad6254c5
AK
3269CC=$ac_save_CC
3270
3271fi
7a197a62
AK
3272# AC_CACHE_VAL
3273case "x$ac_cv_prog_cc_c89" in
3274 x)
ec6a6fbe
AK
3275 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3276$as_echo "none needed" >&6; } ;;
7a197a62 3277 xno)
ec6a6fbe
AK
3278 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3279$as_echo "unsupported" >&6; } ;;
ad6254c5 3280 *)
7a197a62 3281 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3282 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3283$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3284esac
3285
ad6254c5 3286
ad6254c5
AK
3287ac_ext=c
3288ac_cpp='$CPP $CPPFLAGS'
3289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3292
d0191583
JM
3293
3294
3295ac_ext=c
3296ac_cpp='$CPP $CPPFLAGS'
3297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3300{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3301$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3302# On Suns, sometimes $CPP names a directory.
3303if test -n "$CPP" && test -d "$CPP"; then
3304 CPP=
3305fi
3306if test -z "$CPP"; then
3307 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3308 $as_echo_n "(cached) " >&6
ad6254c5 3309else
d0191583
JM
3310 # Double quotes because CPP needs to be expanded
3311 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3312 do
3313 ac_preproc_ok=false
3314for ac_c_preproc_warn_flag in '' yes
ad6254c5 3315do
d0191583
JM
3316 # Use a header file that comes with gcc, so configuring glibc
3317 # with a fresh cross-compiler works.
3318 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3319 # <limits.h> exists even on freestanding compilers.
3320 # On the NeXT, cc -E runs the code through the compiler's parser,
3321 # not just through cpp. "Syntax error" is here to catch this case.
3322 cat >conftest.$ac_ext <<_ACEOF
3323/* confdefs.h. */
3324_ACEOF
3325cat confdefs.h >>conftest.$ac_ext
3326cat >>conftest.$ac_ext <<_ACEOF
3327/* end confdefs.h. */
3328#ifdef __STDC__
3329# include <limits.h>
3330#else
3331# include <assert.h>
3332#endif
3333 Syntax error
3334_ACEOF
3335if { (ac_try="$ac_cpp conftest.$ac_ext"
3336case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
ad6254c5 3339esac
ec6a6fbe
AK
3340eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3341$as_echo "$ac_try_echo") >&5
d0191583
JM
3342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3343 ac_status=$?
3344 grep -v '^ *+' conftest.er1 >conftest.err
3345 rm -f conftest.er1
3346 cat conftest.err >&5
ec6a6fbe 3347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3348 (exit $ac_status); } >/dev/null && {
3349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3350 test ! -s conftest.err
3351 }; then
3352 :
3353else
ec6a6fbe 3354 $as_echo "$as_me: failed program was:" >&5
d0191583 3355sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3356
d0191583
JM
3357 # Broken: fails on valid input.
3358continue
795ca3e5 3359fi
795ca3e5 3360
d0191583 3361rm -f conftest.err conftest.$ac_ext
795ca3e5 3362
d0191583
JM
3363 # OK, works on sane cases. Now check whether nonexistent headers
3364 # can be detected and how.
3365 cat >conftest.$ac_ext <<_ACEOF
3366/* confdefs.h. */
3367_ACEOF
3368cat confdefs.h >>conftest.$ac_ext
3369cat >>conftest.$ac_ext <<_ACEOF
3370/* end confdefs.h. */
3371#include <ac_nonexistent.h>
3372_ACEOF
3373if { (ac_try="$ac_cpp conftest.$ac_ext"
3374case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377esac
ec6a6fbe
AK
3378eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3379$as_echo "$ac_try_echo") >&5
d0191583
JM
3380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3381 ac_status=$?
3382 grep -v '^ *+' conftest.er1 >conftest.err
3383 rm -f conftest.er1
3384 cat conftest.err >&5
ec6a6fbe 3385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3386 (exit $ac_status); } >/dev/null && {
3387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3388 test ! -s conftest.err
3389 }; then
3390 # Broken: success on invalid input.
3391continue
3392else
ec6a6fbe 3393 $as_echo "$as_me: failed program was:" >&5
d0191583 3394sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3395
d0191583
JM
3396 # Passes both tests.
3397ac_preproc_ok=:
3398break
3399fi
795ca3e5 3400
d0191583
JM
3401rm -f conftest.err conftest.$ac_ext
3402
3403done
3404# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3405rm -f conftest.err conftest.$ac_ext
3406if $ac_preproc_ok; then
3407 break
795ca3e5
AK
3408fi
3409
d0191583
JM
3410 done
3411 ac_cv_prog_CPP=$CPP
3412
3413fi
3414 CPP=$ac_cv_prog_CPP
795ca3e5 3415else
d0191583
JM
3416 ac_cv_prog_CPP=$CPP
3417fi
ec6a6fbe
AK
3418{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3419$as_echo "$CPP" >&6; }
d0191583
JM
3420ac_preproc_ok=false
3421for ac_c_preproc_warn_flag in '' yes
3422do
3423 # Use a header file that comes with gcc, so configuring glibc
3424 # with a fresh cross-compiler works.
3425 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3426 # <limits.h> exists even on freestanding compilers.
3427 # On the NeXT, cc -E runs the code through the compiler's parser,
3428 # not just through cpp. "Syntax error" is here to catch this case.
3429 cat >conftest.$ac_ext <<_ACEOF
3430/* confdefs.h. */
ad6254c5 3431_ACEOF
d0191583
JM
3432cat confdefs.h >>conftest.$ac_ext
3433cat >>conftest.$ac_ext <<_ACEOF
3434/* end confdefs.h. */
3435#ifdef __STDC__
3436# include <limits.h>
3437#else
3438# include <assert.h>
3439#endif
3440 Syntax error
3441_ACEOF
3442if { (ac_try="$ac_cpp conftest.$ac_ext"
3443case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
7a197a62 3446esac
ec6a6fbe
AK
3447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3448$as_echo "$ac_try_echo") >&5
d0191583
JM
3449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3450 ac_status=$?
3451 grep -v '^ *+' conftest.er1 >conftest.err
3452 rm -f conftest.er1
3453 cat conftest.err >&5
ec6a6fbe 3454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3455 (exit $ac_status); } >/dev/null && {
3456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3457 test ! -s conftest.err
3458 }; then
3459 :
795ca3e5 3460else
ec6a6fbe 3461 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3462sed 's/^/| /' conftest.$ac_ext >&5
3463
3464 # Broken: fails on valid input.
3465continue
795ca3e5
AK
3466fi
3467
d0191583
JM
3468rm -f conftest.err conftest.$ac_ext
3469
3470 # OK, works on sane cases. Now check whether nonexistent headers
3471 # can be detected and how.
3472 cat >conftest.$ac_ext <<_ACEOF
3473/* confdefs.h. */
3474_ACEOF
3475cat confdefs.h >>conftest.$ac_ext
3476cat >>conftest.$ac_ext <<_ACEOF
3477/* end confdefs.h. */
3478#include <ac_nonexistent.h>
3479_ACEOF
3480if { (ac_try="$ac_cpp conftest.$ac_ext"
3481case "(($ac_try" in
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3484esac
ec6a6fbe
AK
3485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3486$as_echo "$ac_try_echo") >&5
d0191583
JM
3487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3488 ac_status=$?
3489 grep -v '^ *+' conftest.er1 >conftest.err
3490 rm -f conftest.er1
3491 cat conftest.err >&5
ec6a6fbe 3492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3493 (exit $ac_status); } >/dev/null && {
3494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3495 test ! -s conftest.err
3496 }; then
3497 # Broken: success on invalid input.
3498continue
795ca3e5 3499else
ec6a6fbe 3500 $as_echo "$as_me: failed program was:" >&5
d0191583 3501sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3502
d0191583
JM
3503 # Passes both tests.
3504ac_preproc_ok=:
3505break
795ca3e5 3506fi
d0191583
JM
3507
3508rm -f conftest.err conftest.$ac_ext
3509
3510done
3511# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3512rm -f conftest.err conftest.$ac_ext
3513if $ac_preproc_ok; then
3514 :
8106cdd5 3515else
ec6a6fbe
AK
3516 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3517$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3519See \`config.log' for more details." >&5
ec6a6fbe 3520$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3521See \`config.log' for more details." >&2;}
ec6a6fbe 3522 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3523fi
3524
d0191583
JM
3525ac_ext=c
3526ac_cpp='$CPP $CPPFLAGS'
3527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529ac_compiler_gnu=$ac_cv_c_compiler_gnu
3530
7a197a62 3531
ec6a6fbe
AK
3532{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3533$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3534if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3535 $as_echo_n "(cached) " >&6
ad6254c5 3536else
ec6a6fbe 3537 if test -z "$GREP"; then
d0191583 3538 ac_path_GREP_found=false
ec6a6fbe
AK
3539 # Loop through the user's path and test for each of PROGNAME-LIST
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3541for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3542do
3543 IFS=$as_save_IFS
3544 test -z "$as_dir" && as_dir=.
d0191583 3545 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3548 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3549# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3550 # Check for GNU $ac_path_GREP
3551case `"$ac_path_GREP" --version 2>&1` in
3552*GNU*)
3553 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3554*)
3555 ac_count=0
ec6a6fbe 3556 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3557 while :
3558 do
3559 cat "conftest.in" "conftest.in" >"conftest.tmp"
3560 mv "conftest.tmp" "conftest.in"
3561 cp "conftest.in" "conftest.nl"
ec6a6fbe 3562 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3563 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3564 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3565 ac_count=`expr $ac_count + 1`
3566 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3567 # Best one so far, save it but keep looking for a better one
3568 ac_cv_path_GREP="$ac_path_GREP"
3569 ac_path_GREP_max=$ac_count
3570 fi
3571 # 10*(2^10) chars as input seems more than enough
3572 test $ac_count -gt 10 && break
3573 done
3574 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3575esac
3576
ec6a6fbe
AK
3577 $ac_path_GREP_found && break 3
3578 done
d0191583 3579 done
ad6254c5 3580done
7a197a62 3581IFS=$as_save_IFS
ec6a6fbe
AK
3582 if test -z "$ac_cv_path_GREP"; then
3583 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3584$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3585 { (exit 1); exit 1; }; }
ec6a6fbe 3586 fi
80992638 3587else
d0191583 3588 ac_cv_path_GREP=$GREP
8106cdd5 3589fi
8106cdd5 3590
80992638 3591fi
ec6a6fbe
AK
3592{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3593$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3594 GREP="$ac_cv_path_GREP"
795ca3e5 3595
d0191583 3596
ec6a6fbe
AK
3597{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3598$as_echo_n "checking for egrep... " >&6; }
d0191583 3599if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3600 $as_echo_n "(cached) " >&6
8a2fc586 3601else
d0191583
JM
3602 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3603 then ac_cv_path_EGREP="$GREP -E"
3604 else
ec6a6fbe 3605 if test -z "$EGREP"; then
d0191583 3606 ac_path_EGREP_found=false
ec6a6fbe
AK
3607 # Loop through the user's path and test for each of PROGNAME-LIST
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3609for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3610do
3611 IFS=$as_save_IFS
3612 test -z "$as_dir" && as_dir=.
d0191583 3613 for ac_prog in egrep; do
ec6a6fbe
AK
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3616 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3617# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3618 # Check for GNU $ac_path_EGREP
3619case `"$ac_path_EGREP" --version 2>&1` in
3620*GNU*)
3621 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3622*)
3623 ac_count=0
ec6a6fbe 3624 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3625 while :
3626 do
3627 cat "conftest.in" "conftest.in" >"conftest.tmp"
3628 mv "conftest.tmp" "conftest.in"
3629 cp "conftest.in" "conftest.nl"
ec6a6fbe 3630 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3631 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3632 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3633 ac_count=`expr $ac_count + 1`
3634 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3635 # Best one so far, save it but keep looking for a better one
3636 ac_cv_path_EGREP="$ac_path_EGREP"
3637 ac_path_EGREP_max=$ac_count
3638 fi
3639 # 10*(2^10) chars as input seems more than enough
3640 test $ac_count -gt 10 && break
3641 done
3642 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3643esac
8a2fc586 3644
ec6a6fbe
AK
3645 $ac_path_EGREP_found && break 3
3646 done
d0191583 3647 done
8a2fc586 3648done
7a197a62 3649IFS=$as_save_IFS
ec6a6fbe
AK
3650 if test -z "$ac_cv_path_EGREP"; then
3651 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3652$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3653 { (exit 1); exit 1; }; }
ec6a6fbe 3654 fi
d0191583
JM
3655else
3656 ac_cv_path_EGREP=$EGREP
3657fi
ad6254c5 3658
d0191583
JM
3659 fi
3660fi
ec6a6fbe
AK
3661{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3662$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3663 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3664
3665
d0191583 3666if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3667 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3668$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3669if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3670 $as_echo_n "(cached) " >&6
8106cdd5 3671else
d0191583 3672 ac_pattern="Autoconf.*'x'"
ad6254c5 3673 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3674/* confdefs.h. */
3675_ACEOF
3676cat confdefs.h >>conftest.$ac_ext
3677cat >>conftest.$ac_ext <<_ACEOF
3678/* end confdefs.h. */
d0191583
JM
3679#include <sgtty.h>
3680Autoconf TIOCGETP
ad6254c5 3681_ACEOF
d0191583
JM
3682if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3683 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3684 ac_cv_prog_gcc_traditional=yes
8106cdd5 3685else
d0191583 3686 ac_cv_prog_gcc_traditional=no
80992638 3687fi
d0191583 3688rm -f conftest*
ad6254c5 3689
8106cdd5 3690
d0191583
JM
3691 if test $ac_cv_prog_gcc_traditional = no; then
3692 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3693/* confdefs.h. */
3694_ACEOF
3695cat confdefs.h >>conftest.$ac_ext
3696cat >>conftest.$ac_ext <<_ACEOF
3697/* end confdefs.h. */
d0191583
JM
3698#include <termio.h>
3699Autoconf TCGETA
ad6254c5 3700_ACEOF
d0191583
JM
3701if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3702 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3703 ac_cv_prog_gcc_traditional=yes
7a197a62 3704fi
d0191583 3705rm -f conftest*
795ca3e5 3706
d0191583 3707 fi
795ca3e5 3708fi
ec6a6fbe
AK
3709{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3710$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3711 if test $ac_cv_prog_gcc_traditional = yes; then
3712 CC="$CC -traditional"
3713 fi
795ca3e5
AK
3714fi
3715
d0191583
JM
3716# Find a good install program. We prefer a C program (faster),
3717# so one script is as good as another. But avoid the broken or
3718# incompatible versions:
3719# SysV /etc/install, /usr/sbin/install
3720# SunOS /usr/etc/install
3721# IRIX /sbin/install
3722# AIX /bin/install
3723# AmigaOS /C/install, which installs bootblocks on floppy discs
3724# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3725# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3726# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3727# OS/2's system install, which has a completely different semantic
3728# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3729# Reject install programs that cannot install multiple files.
3730{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3731$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3732if test -z "$INSTALL"; then
3733if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3734 $as_echo_n "(cached) " >&6
ad6254c5 3735else
d0191583
JM
3736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737for as_dir in $PATH
3738do
3739 IFS=$as_save_IFS
3740 test -z "$as_dir" && as_dir=.
3741 # Account for people who put trailing slashes in PATH elements.
3742case $as_dir/ in
3743 ./ | .// | /cC/* | \
3744 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3745 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3746 /usr/ucb/* ) ;;
3747 *)
3748 # OSF1 and SCO ODT 3.0 have their own names for install.
3749 # Don't use installbsd from OSF since it installs stuff as root
3750 # by default.
3751 for ac_prog in ginstall scoinst install; do
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3754 if test $ac_prog = install &&
3755 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3756 # AIX install. It has an incompatible calling convention.
3757 :
3758 elif test $ac_prog = install &&
3759 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3760 # program-specific install script used by HP pwplus--don't use.
3761 :
3762 else
ec6a6fbe
AK
3763 rm -rf conftest.one conftest.two conftest.dir
3764 echo one > conftest.one
3765 echo two > conftest.two
3766 mkdir conftest.dir
3767 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3768 test -s conftest.one && test -s conftest.two &&
3769 test -s conftest.dir/conftest.one &&
3770 test -s conftest.dir/conftest.two
3771 then
3772 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3773 break 3
3774 fi
d0191583
JM
3775 fi
3776 fi
3777 done
3778 done
3779 ;;
3780esac
ec6a6fbe 3781
d0191583
JM
3782done
3783IFS=$as_save_IFS
80992638 3784
ec6a6fbe 3785rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3786
3787fi
3788 if test "${ac_cv_path_install+set}" = set; then
3789 INSTALL=$ac_cv_path_install
7a197a62 3790 else
d0191583
JM
3791 # As a last resort, use the slow shell script. Don't cache a
3792 # value for INSTALL within a source directory, because that will
3793 # break other packages using the cache if that directory is
3794 # removed, or if the value is a relative name.
3795 INSTALL=$ac_install_sh
7a197a62 3796 fi
d0191583 3797fi
ec6a6fbe
AK
3798{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3799$as_echo "$INSTALL" >&6; }
ad6254c5 3800
d0191583
JM
3801# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3802# It thinks the first close brace ends the variable substitution.
3803test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3804
d0191583 3805test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3806
d0191583
JM
3807test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3808
ec6a6fbe
AK
3809{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3810$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3811LN_S=$as_ln_s
3812if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3813 { $as_echo "$as_me:$LINENO: result: yes" >&5
3814$as_echo "yes" >&6; }
d0191583 3815else
ec6a6fbe
AK
3816 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3817$as_echo "no, using $LN_S" >&6; }
795ca3e5 3818fi
d0191583 3819
ec6a6fbe
AK
3820{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3821$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3822set x ${MAKE-make}
3823ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3824if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3825 $as_echo_n "(cached) " >&6
7a197a62 3826else
d0191583
JM
3827 cat >conftest.make <<\_ACEOF
3828SHELL = /bin/sh
3829all:
3830 @echo '@@@%%%=$(MAKE)=@@@%%%'
3831_ACEOF
3832# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3833case `${MAKE-make} -f conftest.make 2>/dev/null` in
3834 *@@@%%%=?*=@@@%%%*)
3835 eval ac_cv_prog_make_${ac_make}_set=yes;;
3836 *)
3837 eval ac_cv_prog_make_${ac_make}_set=no;;
3838esac
3839rm -f conftest.make
ad6254c5 3840fi
d0191583 3841if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3842 { $as_echo "$as_me:$LINENO: result: yes" >&5
3843$as_echo "yes" >&6; }
d0191583
JM
3844 SET_MAKE=
3845else
ec6a6fbe
AK
3846 { $as_echo "$as_me:$LINENO: result: no" >&5
3847$as_echo "no" >&6; }
d0191583 3848 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3849fi
8106cdd5 3850
ec6a6fbe
AK
3851{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3852$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3853if test -z "$MKDIR_P"; then
3854 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3855 $as_echo_n "(cached) " >&6
5556819a
AK
3856else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3859do
3860 IFS=$as_save_IFS
3861 test -z "$as_dir" && as_dir=.
3862 for ac_prog in mkdir gmkdir; do
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3865 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3866 'mkdir (GNU coreutils) '* | \
3867 'mkdir (coreutils) '* | \
3868 'mkdir (fileutils) '4.1*)
3869 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3870 break 3;;
3871 esac
3872 done
3873 done
3874done
3875IFS=$as_save_IFS
3876
3877fi
3878
3879 if test "${ac_cv_path_mkdir+set}" = set; then
3880 MKDIR_P="$ac_cv_path_mkdir -p"
3881 else
3882 # As a last resort, use the slow shell script. Don't cache a
3883 # value for MKDIR_P within a source directory, because that will
3884 # break other packages using the cache if that directory is
3885 # removed, or if the value is a relative name.
3886 test -d ./--version && rmdir ./--version
3887 MKDIR_P="$ac_install_sh -d"
3888 fi
3889fi
ec6a6fbe
AK
3890{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3891$as_echo "$MKDIR_P" >&6; }
5556819a 3892
d0191583
JM
3893if test -n "$ac_tool_prefix"; then
3894 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3895set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3896{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3897$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3898if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3899 $as_echo_n "(cached) " >&6
d0191583
JM
3900else
3901 if test -n "$RANLIB"; then
3902 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3903else
3904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905for as_dir in $PATH
3906do
3907 IFS=$as_save_IFS
3908 test -z "$as_dir" && as_dir=.
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3911 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3912 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3913 break 2
3914 fi
3915done
3916done
3917IFS=$as_save_IFS
8106cdd5 3918
795ca3e5 3919fi
d0191583
JM
3920fi
3921RANLIB=$ac_cv_prog_RANLIB
3922if test -n "$RANLIB"; then
ec6a6fbe
AK
3923 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3924$as_echo "$RANLIB" >&6; }
d0191583 3925else
ec6a6fbe
AK
3926 { $as_echo "$as_me:$LINENO: result: no" >&5
3927$as_echo "no" >&6; }
d0191583
JM
3928fi
3929
8106cdd5 3930
ad6254c5 3931fi
d0191583
JM
3932if test -z "$ac_cv_prog_RANLIB"; then
3933 ac_ct_RANLIB=$RANLIB
3934 # Extract the first word of "ranlib", so it can be a program name with args.
3935set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3936{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3937$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3938if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 3939 $as_echo_n "(cached) " >&6
ad6254c5 3940else
d0191583
JM
3941 if test -n "$ac_ct_RANLIB"; then
3942 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3943else
3944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945for as_dir in $PATH
8106cdd5 3946do
d0191583
JM
3947 IFS=$as_save_IFS
3948 test -z "$as_dir" && as_dir=.
3949 for ac_exec_ext in '' $ac_executable_extensions; do
3950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3951 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 3952 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3953 break 2
3954 fi
3955done
3956done
3957IFS=$as_save_IFS
3958
3959fi
3960fi
3961ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3962if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
3963 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3964$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 3965else
ec6a6fbe
AK
3966 { $as_echo "$as_me:$LINENO: result: no" >&5
3967$as_echo "no" >&6; }
d0191583 3968fi
ad6254c5 3969
d0191583
JM
3970 if test "x$ac_ct_RANLIB" = x; then
3971 RANLIB=":"
3972 else
3973 case $cross_compiling:$ac_tool_warned in
3974yes:)
ec6a6fbe
AK
3975{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
3977ac_tool_warned=yes ;;
3978esac
3979 RANLIB=$ac_ct_RANLIB
3980 fi
3981else
3982 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 3983fi
7a197a62 3984
d0191583
JM
3985# Extract the first word of "cflow", so it can be a program name with args.
3986set dummy cflow; ac_word=$2
ec6a6fbe
AK
3987{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3988$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3989if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 3990 $as_echo_n "(cached) " >&6
d0191583
JM
3991else
3992 case $CFLOW_CMD in
3993 [\\/]* | ?:[\\/]*)
3994 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3995 ;;
3996 *)
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998for as_dir in $PATH
3999do
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4004 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4005 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4006 break 2
4007 fi
4008done
4009done
4010IFS=$as_save_IFS
ad6254c5 4011
d0191583 4012 ;;
7a197a62 4013esac
d0191583
JM
4014fi
4015CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4016if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
4017 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4018$as_echo "$CFLOW_CMD" >&6; }
80992638 4019else
ec6a6fbe
AK
4020 { $as_echo "$as_me:$LINENO: result: no" >&5
4021$as_echo "no" >&6; }
795ca3e5 4022fi
7a197a62 4023
ad6254c5 4024
d0191583
JM
4025# Extract the first word of "cscope", so it can be a program name with args.
4026set dummy cscope; ac_word=$2
ec6a6fbe
AK
4027{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4028$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4029if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 4030 $as_echo_n "(cached) " >&6
d0191583
JM
4031else
4032 case $CSCOPE_CMD in
4033 [\\/]* | ?:[\\/]*)
4034 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4035 ;;
4036 *)
4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038for as_dir in $PATH
4039do
4040 IFS=$as_save_IFS
4041 test -z "$as_dir" && as_dir=.
4042 for ac_exec_ext in '' $ac_executable_extensions; do
4043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4044 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4045 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4046 break 2
4047 fi
795ca3e5 4048done
d0191583
JM
4049done
4050IFS=$as_save_IFS
795ca3e5 4051
d0191583
JM
4052 ;;
4053esac
ad6254c5 4054fi
d0191583
JM
4055CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4056if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
4057 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4058$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 4059else
ec6a6fbe
AK
4060 { $as_echo "$as_me:$LINENO: result: no" >&5
4061$as_echo "no" >&6; }
795ca3e5 4062fi
ad6254c5 4063
7a197a62 4064
ad6254c5 4065
d0191583
JM
4066################################################################################
4067
4068
4069
4070
4071
4072ac_header_dirent=no
4073for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
4074 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4075{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4076$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 4077if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4078 $as_echo_n "(cached) " >&6
d0191583 4079else
ad6254c5 4080 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4081/* confdefs.h. */
4082_ACEOF
4083cat confdefs.h >>conftest.$ac_ext
4084cat >>conftest.$ac_ext <<_ACEOF
4085/* end confdefs.h. */
d0191583
JM
4086#include <sys/types.h>
4087#include <$ac_hdr>
4088
4089int
4090main ()
4091{
4092if ((DIR *) 0)
4093return 0;
4094 ;
4095 return 0;
4096}
ad6254c5 4097_ACEOF
d0191583
JM
4098rm -f conftest.$ac_objext
4099if { (ac_try="$ac_compile"
7a197a62
AK
4100case "(($ac_try" in
4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102 *) ac_try_echo=$ac_try;;
4103esac
ec6a6fbe
AK
4104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4105$as_echo "$ac_try_echo") >&5
d0191583 4106 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4107 ac_status=$?
4108 grep -v '^ *+' conftest.er1 >conftest.err
4109 rm -f conftest.er1
4110 cat conftest.err >&5
ec6a6fbe 4111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4112 (exit $ac_status); } && {
4113 test -z "$ac_c_werror_flag" ||
25fbec5b 4114 test ! -s conftest.err
d0191583
JM
4115 } && test -s conftest.$ac_objext; then
4116 eval "$as_ac_Header=yes"
ad6254c5 4117else
ec6a6fbe 4118 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4119sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4120
d0191583 4121 eval "$as_ac_Header=no"
795ca3e5 4122fi
7a197a62 4123
d0191583 4124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4125fi
ec6a6fbe
AK
4126ac_res=`eval 'as_val=${'$as_ac_Header'}
4127 $as_echo "$as_val"'`
4128 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4129$as_echo "$ac_res" >&6; }
4130as_val=`eval 'as_val=${'$as_ac_Header'}
4131 $as_echo "$as_val"'`
4132 if test "x$as_val" = x""yes; then
d0191583 4133 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4134#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4135_ACEOF
795ca3e5 4136
d0191583
JM
4137ac_header_dirent=$ac_hdr; break
4138fi
ad6254c5 4139
d0191583
JM
4140done
4141# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4142if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4143 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4144$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4145if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4146 $as_echo_n "(cached) " >&6
ad6254c5 4147else
d0191583
JM
4148 ac_func_search_save_LIBS=$LIBS
4149cat >conftest.$ac_ext <<_ACEOF
4150/* confdefs.h. */
4151_ACEOF
4152cat confdefs.h >>conftest.$ac_ext
4153cat >>conftest.$ac_ext <<_ACEOF
4154/* end confdefs.h. */
ad6254c5 4155
d0191583
JM
4156/* Override any GCC internal prototype to avoid an error.
4157 Use char because int might match the return type of a GCC
4158 builtin and then its argument prototype would still apply. */
4159#ifdef __cplusplus
4160extern "C"
4161#endif
4162char opendir ();
4163int
4164main ()
4165{
4166return opendir ();
4167 ;
4168 return 0;
4169}
4170_ACEOF
4171for ac_lib in '' dir; do
4172 if test -z "$ac_lib"; then
4173 ac_res="none required"
4174 else
4175 ac_res=-l$ac_lib
4176 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4177 fi
4178 rm -f conftest.$ac_objext conftest$ac_exeext
4179if { (ac_try="$ac_link"
4180case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183esac
ec6a6fbe
AK
4184eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4185$as_echo "$ac_try_echo") >&5
d0191583
JM
4186 (eval "$ac_link") 2>conftest.er1
4187 ac_status=$?
4188 grep -v '^ *+' conftest.er1 >conftest.err
4189 rm -f conftest.er1
4190 cat conftest.err >&5
ec6a6fbe 4191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4192 (exit $ac_status); } && {
4193 test -z "$ac_c_werror_flag" ||
4194 test ! -s conftest.err
ec6a6fbe
AK
4195 } && test -s conftest$ac_exeext && {
4196 test "$cross_compiling" = yes ||
4197 $as_test_x conftest$ac_exeext
4198 }; then
d0191583
JM
4199 ac_cv_search_opendir=$ac_res
4200else
ec6a6fbe 4201 $as_echo "$as_me: failed program was:" >&5
d0191583 4202sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4203
ad6254c5 4204
795ca3e5 4205fi
ad6254c5 4206
ec6a6fbe 4207rm -rf conftest.dSYM
d0191583
JM
4208rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4209 conftest$ac_exeext
4210 if test "${ac_cv_search_opendir+set}" = set; then
4211 break
7a197a62 4212fi
d0191583
JM
4213done
4214if test "${ac_cv_search_opendir+set}" = set; then
4215 :
7a197a62 4216else
d0191583 4217 ac_cv_search_opendir=no
7a197a62 4218fi
d0191583
JM
4219rm conftest.$ac_ext
4220LIBS=$ac_func_search_save_LIBS
7a197a62 4221fi
ec6a6fbe
AK
4222{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4223$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4224ac_res=$ac_cv_search_opendir
4225if test "$ac_res" != no; then
4226 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4227
d0191583 4228fi
7a197a62 4229
7a197a62 4230else
ec6a6fbe
AK
4231 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4232$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4233if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4234 $as_echo_n "(cached) " >&6
7a197a62 4235else
d0191583
JM
4236 ac_func_search_save_LIBS=$LIBS
4237cat >conftest.$ac_ext <<_ACEOF
4238/* confdefs.h. */
4239_ACEOF
4240cat confdefs.h >>conftest.$ac_ext
4241cat >>conftest.$ac_ext <<_ACEOF
4242/* end confdefs.h. */
7a197a62 4243
d0191583
JM
4244/* Override any GCC internal prototype to avoid an error.
4245 Use char because int might match the return type of a GCC
4246 builtin and then its argument prototype would still apply. */
4247#ifdef __cplusplus
4248extern "C"
4249#endif
4250char opendir ();
4251int
4252main ()
4253{
4254return opendir ();
4255 ;
4256 return 0;
4257}
4258_ACEOF
4259for ac_lib in '' x; do
4260 if test -z "$ac_lib"; then
4261 ac_res="none required"
4262 else
4263 ac_res=-l$ac_lib
4264 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4265 fi
4266 rm -f conftest.$ac_objext conftest$ac_exeext
4267if { (ac_try="$ac_link"
4268case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271esac
ec6a6fbe
AK
4272eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4273$as_echo "$ac_try_echo") >&5
d0191583
JM
4274 (eval "$ac_link") 2>conftest.er1
4275 ac_status=$?
4276 grep -v '^ *+' conftest.er1 >conftest.err
4277 rm -f conftest.er1
4278 cat conftest.err >&5
ec6a6fbe 4279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4280 (exit $ac_status); } && {
4281 test -z "$ac_c_werror_flag" ||
4282 test ! -s conftest.err
ec6a6fbe
AK
4283 } && test -s conftest$ac_exeext && {
4284 test "$cross_compiling" = yes ||
4285 $as_test_x conftest$ac_exeext
4286 }; then
d0191583
JM
4287 ac_cv_search_opendir=$ac_res
4288else
ec6a6fbe 4289 $as_echo "$as_me: failed program was:" >&5
d0191583 4290sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4291
4292
4293fi
4294
ec6a6fbe 4295rm -rf conftest.dSYM
d0191583
JM
4296rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4297 conftest$ac_exeext
4298 if test "${ac_cv_search_opendir+set}" = set; then
4299 break
7a197a62 4300fi
d0191583
JM
4301done
4302if test "${ac_cv_search_opendir+set}" = set; then
4303 :
7a197a62 4304else
d0191583 4305 ac_cv_search_opendir=no
7a197a62 4306fi
d0191583
JM
4307rm conftest.$ac_ext
4308LIBS=$ac_func_search_save_LIBS
4309fi
ec6a6fbe
AK
4310{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4311$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4312ac_res=$ac_cv_search_opendir
4313if test "$ac_res" != no; then
4314 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4315
7a197a62 4316fi
7a197a62 4317
d0191583 4318fi
7a197a62 4319
ec6a6fbe
AK
4320{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4321$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4322if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4323 $as_echo_n "(cached) " >&6
7a197a62
AK
4324else
4325 cat >conftest.$ac_ext <<_ACEOF
4326/* confdefs.h. */
4327_ACEOF
4328cat confdefs.h >>conftest.$ac_ext
4329cat >>conftest.$ac_ext <<_ACEOF
4330/* end confdefs.h. */
4331#include <stdlib.h>
4332#include <stdarg.h>
4333#include <string.h>
4334#include <float.h>
4335
4336int
4337main ()
4338{
4339
4340 ;
4341 return 0;
4342}
4343_ACEOF
4344rm -f conftest.$ac_objext
4345if { (ac_try="$ac_compile"
4346case "(($ac_try" in
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4349esac
ec6a6fbe
AK
4350eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4351$as_echo "$ac_try_echo") >&5
7a197a62
AK
4352 (eval "$ac_compile") 2>conftest.er1
4353 ac_status=$?
4354 grep -v '^ *+' conftest.er1 >conftest.err
4355 rm -f conftest.er1
4356 cat conftest.err >&5
ec6a6fbe 4357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4358 (exit $ac_status); } && {
4359 test -z "$ac_c_werror_flag" ||
4360 test ! -s conftest.err
4361 } && test -s conftest.$ac_objext; then
7a197a62
AK
4362 ac_cv_header_stdc=yes
4363else
ec6a6fbe 4364 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4365sed 's/^/| /' conftest.$ac_ext >&5
4366
4367 ac_cv_header_stdc=no
4368fi
4369
4370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4371
4372if test $ac_cv_header_stdc = yes; then
4373 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4374 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4375/* confdefs.h. */
4376_ACEOF
4377cat confdefs.h >>conftest.$ac_ext
4378cat >>conftest.$ac_ext <<_ACEOF
4379/* end confdefs.h. */
4380#include <string.h>
8106cdd5 4381
ad6254c5
AK
4382_ACEOF
4383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4384 $EGREP "memchr" >/dev/null 2>&1; then
4385 :
4386else
4387 ac_cv_header_stdc=no
80992638 4388fi
ad6254c5 4389rm -f conftest*
795ca3e5
AK
4390
4391fi
4392
ad6254c5
AK
4393if test $ac_cv_header_stdc = yes; then
4394 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4395 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4396/* confdefs.h. */
4397_ACEOF
4398cat confdefs.h >>conftest.$ac_ext
4399cat >>conftest.$ac_ext <<_ACEOF
4400/* end confdefs.h. */
80992638 4401#include <stdlib.h>
ad6254c5
AK
4402
4403_ACEOF
80992638 4404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4405 $EGREP "free" >/dev/null 2>&1; then
4406 :
795ca3e5 4407else
ad6254c5 4408 ac_cv_header_stdc=no
795ca3e5 4409fi
80992638 4410rm -f conftest*
8106cdd5 4411
795ca3e5
AK
4412fi
4413
ad6254c5
AK
4414if test $ac_cv_header_stdc = yes; then
4415 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4416 if test "$cross_compiling" = yes; then
4417 :
795ca3e5 4418else
ad6254c5 4419 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4420/* confdefs.h. */
4421_ACEOF
4422cat confdefs.h >>conftest.$ac_ext
4423cat >>conftest.$ac_ext <<_ACEOF
4424/* end confdefs.h. */
4425#include <ctype.h>
7a197a62 4426#include <stdlib.h>
ad6254c5
AK
4427#if ((' ' & 0x0FF) == 0x020)
4428# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4429# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4430#else
4431# define ISLOWER(c) \
8a2fc586
AK
4432 (('a' <= (c) && (c) <= 'i') \
4433 || ('j' <= (c) && (c) <= 'r') \
4434 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4435# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4436#endif
ad6254c5
AK
4437
4438#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4439int
4440main ()
4441{
4442 int i;
4443 for (i = 0; i < 256; i++)
4444 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4445 || toupper (i) != TOUPPER (i))
7a197a62
AK
4446 return 2;
4447 return 0;
ad6254c5
AK
4448}
4449_ACEOF
4450rm -f conftest$ac_exeext
7a197a62
AK
4451if { (ac_try="$ac_link"
4452case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4455esac
ec6a6fbe
AK
4456eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4457$as_echo "$ac_try_echo") >&5
7a197a62 4458 (eval "$ac_link") 2>&5
ad6254c5 4459 ac_status=$?
ec6a6fbe 4460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4462 { (case "(($ac_try" in
4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4465esac
ec6a6fbe
AK
4466eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4467$as_echo "$ac_try_echo") >&5
7a197a62 4468 (eval "$ac_try") 2>&5
ad6254c5 4469 ac_status=$?
ec6a6fbe 4470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4471 (exit $ac_status); }; }; then
4472 :
795ca3e5 4473else
ec6a6fbe
AK
4474 $as_echo "$as_me: program exited with status $ac_status" >&5
4475$as_echo "$as_me: failed program was:" >&5
ad6254c5 4476sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4477
ad6254c5
AK
4478( exit $ac_status )
4479ac_cv_header_stdc=no
80992638 4480fi
ec6a6fbe 4481rm -rf conftest.dSYM
7a197a62 4482rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4483fi
7a197a62
AK
4484
4485
ad6254c5
AK
4486fi
4487fi
ec6a6fbe
AK
4488{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4489$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4490if test $ac_cv_header_stdc = yes; then
4491
4492cat >>confdefs.h <<\_ACEOF
4493#define STDC_HEADERS 1
4494_ACEOF
795ca3e5
AK
4495
4496fi
4497
ec6a6fbe
AK
4498{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4499$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
ad6254c5 4500if test "${ac_cv_header_sys_wait_h+set}" = set; then
ec6a6fbe 4501 $as_echo_n "(cached) " >&6
8106cdd5 4502else
ad6254c5 4503 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4504/* confdefs.h. */
4505_ACEOF
4506cat confdefs.h >>conftest.$ac_ext
4507cat >>conftest.$ac_ext <<_ACEOF
4508/* end confdefs.h. */
80992638 4509#include <sys/types.h>
ad6254c5
AK
4510#include <sys/wait.h>
4511#ifndef WEXITSTATUS
7a197a62 4512# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4513#endif
4514#ifndef WIFEXITED
4515# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4516#endif
4517
4518int
4519main ()
4520{
4521 int s;
4522 wait (&s);
4523 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4524 ;
4525 return 0;
4526}
4527_ACEOF
4528rm -f conftest.$ac_objext
7a197a62
AK
4529if { (ac_try="$ac_compile"
4530case "(($ac_try" in
4531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532 *) ac_try_echo=$ac_try;;
4533esac
ec6a6fbe
AK
4534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4535$as_echo "$ac_try_echo") >&5
7a197a62 4536 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4537 ac_status=$?
8a2fc586
AK
4538 grep -v '^ *+' conftest.er1 >conftest.err
4539 rm -f conftest.er1
4540 cat conftest.err >&5
ec6a6fbe 4541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4542 (exit $ac_status); } && {
4543 test -z "$ac_c_werror_flag" ||
4544 test ! -s conftest.err
4545 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4546 ac_cv_header_sys_wait_h=yes
4547else
ec6a6fbe 4548 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4549sed 's/^/| /' conftest.$ac_ext >&5
4550
7a197a62 4551 ac_cv_header_sys_wait_h=no
8106cdd5 4552fi
7a197a62
AK
4553
4554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4555fi
ec6a6fbe
AK
4556{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4557$as_echo "$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4558if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4559
ad6254c5
AK
4560cat >>confdefs.h <<\_ACEOF
4561#define HAVE_SYS_WAIT_H 1
4562_ACEOF
795ca3e5
AK
4563
4564fi
4565
ec6a6fbe
AK
4566{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4567$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
ad6254c5 4568if test "${ac_cv_header_time+set}" = set; then
ec6a6fbe 4569 $as_echo_n "(cached) " >&6
795ca3e5 4570else
ad6254c5 4571 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4572/* confdefs.h. */
4573_ACEOF
4574cat confdefs.h >>conftest.$ac_ext
4575cat >>conftest.$ac_ext <<_ACEOF
4576/* end confdefs.h. */
795ca3e5
AK
4577#include <sys/types.h>
4578#include <sys/time.h>
4579#include <time.h>
ad6254c5
AK
4580
4581int
4582main ()
4583{
4584if ((struct tm *) 0)
4585return 0;
4586 ;
4587 return 0;
4588}
4589_ACEOF
4590rm -f conftest.$ac_objext
7a197a62
AK
4591if { (ac_try="$ac_compile"
4592case "(($ac_try" in
4593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594 *) ac_try_echo=$ac_try;;
4595esac
ec6a6fbe
AK
4596eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4597$as_echo "$ac_try_echo") >&5
7a197a62 4598 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4599 ac_status=$?
8a2fc586
AK
4600 grep -v '^ *+' conftest.er1 >conftest.err
4601 rm -f conftest.er1
4602 cat conftest.err >&5
ec6a6fbe 4603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4604 (exit $ac_status); } && {
4605 test -z "$ac_c_werror_flag" ||
4606 test ! -s conftest.err
4607 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4608 ac_cv_header_time=yes
4609else
ec6a6fbe 4610 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4611sed 's/^/| /' conftest.$ac_ext >&5
4612
7a197a62 4613 ac_cv_header_time=no
795ca3e5 4614fi
7a197a62
AK
4615
4616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4617fi
ec6a6fbe
AK
4618{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4619$as_echo "$ac_cv_header_time" >&6; }
80992638 4620if test $ac_cv_header_time = yes; then
ad6254c5
AK
4621
4622cat >>confdefs.h <<\_ACEOF
795ca3e5 4623#define TIME_WITH_SYS_TIME 1
ad6254c5 4624_ACEOF
b896caa1 4625
8106cdd5 4626fi
b896caa1 4627
b896caa1 4628
d0191583
JM
4629# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4640 inttypes.h stdint.h unistd.h
4641do
ec6a6fbe
AK
4642as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4643{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4644$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4646 $as_echo_n "(cached) " >&6
d0191583
JM
4647else
4648 cat >conftest.$ac_ext <<_ACEOF
4649/* confdefs.h. */
4650_ACEOF
4651cat confdefs.h >>conftest.$ac_ext
4652cat >>conftest.$ac_ext <<_ACEOF
4653/* end confdefs.h. */
4654$ac_includes_default
4655
4656#include <$ac_header>
4657_ACEOF
4658rm -f conftest.$ac_objext
4659if { (ac_try="$ac_compile"
4660case "(($ac_try" in
4661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662 *) ac_try_echo=$ac_try;;
4663esac
ec6a6fbe
AK
4664eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4665$as_echo "$ac_try_echo") >&5
d0191583
JM
4666 (eval "$ac_compile") 2>conftest.er1
4667 ac_status=$?
4668 grep -v '^ *+' conftest.er1 >conftest.err
4669 rm -f conftest.er1
4670 cat conftest.err >&5
ec6a6fbe 4671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4672 (exit $ac_status); } && {
4673 test -z "$ac_c_werror_flag" ||
4674 test ! -s conftest.err
4675 } && test -s conftest.$ac_objext; then
4676 eval "$as_ac_Header=yes"
4677else
ec6a6fbe 4678 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4679sed 's/^/| /' conftest.$ac_ext >&5
4680
4681 eval "$as_ac_Header=no"
4682fi
4683
4684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4685fi
ec6a6fbe
AK
4686ac_res=`eval 'as_val=${'$as_ac_Header'}
4687 $as_echo "$as_val"'`
4688 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4689$as_echo "$ac_res" >&6; }
4690as_val=`eval 'as_val=${'$as_ac_Header'}
4691 $as_echo "$as_val"'`
4692 if test "x$as_val" = x""yes; then
d0191583 4693 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4694#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d0191583
JM
4695_ACEOF
4696
4697fi
4698
4699done
4700
b896caa1 4701
b896caa1
AK
4702
4703
795ca3e5 4704
8106cdd5 4705
80992638 4706
795ca3e5 4707
a38df97f 4708
80992638 4709
d0191583
JM
4710
4711
4712
4713
4714
4715for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4716 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
ad6254c5 4717do
ec6a6fbe 4718as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0191583 4719if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4720 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4721$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4722if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4723 $as_echo_n "(cached) " >&6
d0191583 4724fi
ec6a6fbe
AK
4725ac_res=`eval 'as_val=${'$as_ac_Header'}
4726 $as_echo "$as_val"'`
4727 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4728$as_echo "$ac_res" >&6; }
ad6254c5 4729else
d0191583 4730 # Is the header compilable?
ec6a6fbe
AK
4731{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4732$as_echo_n "checking $ac_header usability... " >&6; }
d0191583 4733cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4734/* confdefs.h. */
4735_ACEOF
4736cat confdefs.h >>conftest.$ac_ext
4737cat >>conftest.$ac_ext <<_ACEOF
4738/* end confdefs.h. */
4739$ac_includes_default
ad6254c5
AK
4740#include <$ac_header>
4741_ACEOF
4742rm -f conftest.$ac_objext
7a197a62
AK
4743if { (ac_try="$ac_compile"
4744case "(($ac_try" in
4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4747esac
ec6a6fbe
AK
4748eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4749$as_echo "$ac_try_echo") >&5
7a197a62 4750 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4751 ac_status=$?
8a2fc586
AK
4752 grep -v '^ *+' conftest.er1 >conftest.err
4753 rm -f conftest.er1
4754 cat conftest.err >&5
ec6a6fbe 4755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4756 (exit $ac_status); } && {
4757 test -z "$ac_c_werror_flag" ||
4758 test ! -s conftest.err
4759 } && test -s conftest.$ac_objext; then
d0191583 4760 ac_header_compiler=yes
ad6254c5 4761else
ec6a6fbe 4762 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4763sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4764
d0191583 4765 ac_header_compiler=no
ad6254c5 4766fi
7a197a62
AK
4767
4768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4769{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4770$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4771
4772# Is the header present?
ec6a6fbe
AK
4773{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4774$as_echo_n "checking $ac_header presence... " >&6; }
d0191583
JM
4775cat >conftest.$ac_ext <<_ACEOF
4776/* confdefs.h. */
4777_ACEOF
4778cat confdefs.h >>conftest.$ac_ext
4779cat >>conftest.$ac_ext <<_ACEOF
4780/* end confdefs.h. */
4781#include <$ac_header>
4782_ACEOF
4783if { (ac_try="$ac_cpp conftest.$ac_ext"
4784case "(($ac_try" in
4785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4786 *) ac_try_echo=$ac_try;;
4787esac
ec6a6fbe
AK
4788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4789$as_echo "$ac_try_echo") >&5
d0191583
JM
4790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4791 ac_status=$?
4792 grep -v '^ *+' conftest.er1 >conftest.err
4793 rm -f conftest.er1
4794 cat conftest.err >&5
ec6a6fbe 4795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4796 (exit $ac_status); } >/dev/null && {
4797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4798 test ! -s conftest.err
4799 }; then
4800 ac_header_preproc=yes
4801else
ec6a6fbe 4802 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4803sed 's/^/| /' conftest.$ac_ext >&5
4804
4805 ac_header_preproc=no
4806fi
4807
4808rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4809{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4810$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4811
4812# So? What about this header?
4813case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4814 yes:no: )
ec6a6fbe
AK
4815 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4816$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4817 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4818$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d0191583
JM
4819 ac_header_preproc=yes
4820 ;;
4821 no:yes:* )
ec6a6fbe
AK
4822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4823$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4824 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4825$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4827$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4829$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4831$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4833$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4834
4835 ;;
4836esac
ec6a6fbe
AK
4837{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4838$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4839if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4840 $as_echo_n "(cached) " >&6
d0191583
JM
4841else
4842 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4843fi
ec6a6fbe
AK
4844ac_res=`eval 'as_val=${'$as_ac_Header'}
4845 $as_echo "$as_val"'`
4846 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4847$as_echo "$ac_res" >&6; }
d0191583
JM
4848
4849fi
ec6a6fbe
AK
4850as_val=`eval 'as_val=${'$as_ac_Header'}
4851 $as_echo "$as_val"'`
4852 if test "x$as_val" = x""yes; then
ad6254c5 4853 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4854#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4855_ACEOF
a38df97f 4856
d0191583 4857else
ec6a6fbe
AK
4858 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4859$as_echo "$as_me: error: bailing out" >&2;}
d0191583 4860 { (exit 1); exit 1; }; }
80992638
AK
4861fi
4862
ad6254c5
AK
4863done
4864
7d1552c9 4865
d0191583
JM
4866case "$host_os" in
4867 linux*)
7d1552c9 4868
80992638 4869
5a52dca9 4870
d0191583 4871for ac_header in asm/byteorder.h linux/fs.h malloc.h
ad6254c5 4872do
ec6a6fbe 4873as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4875 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4876$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4877if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4878 $as_echo_n "(cached) " >&6
ad6254c5 4879fi
ec6a6fbe
AK
4880ac_res=`eval 'as_val=${'$as_ac_Header'}
4881 $as_echo "$as_val"'`
4882 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4883$as_echo "$ac_res" >&6; }
ad6254c5
AK
4884else
4885 # Is the header compilable?
ec6a6fbe
AK
4886{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4887$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4888cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4889/* confdefs.h. */
4890_ACEOF
4891cat confdefs.h >>conftest.$ac_ext
4892cat >>conftest.$ac_ext <<_ACEOF
4893/* end confdefs.h. */
4894$ac_includes_default
4895#include <$ac_header>
4896_ACEOF
4897rm -f conftest.$ac_objext
7a197a62
AK
4898if { (ac_try="$ac_compile"
4899case "(($ac_try" in
4900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901 *) ac_try_echo=$ac_try;;
4902esac
ec6a6fbe
AK
4903eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4904$as_echo "$ac_try_echo") >&5
7a197a62 4905 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4906 ac_status=$?
8a2fc586
AK
4907 grep -v '^ *+' conftest.er1 >conftest.err
4908 rm -f conftest.er1
4909 cat conftest.err >&5
ec6a6fbe 4910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4911 (exit $ac_status); } && {
4912 test -z "$ac_c_werror_flag" ||
4913 test ! -s conftest.err
4914 } && test -s conftest.$ac_objext; then
fc54be10
AK
4915 ac_header_compiler=yes
4916else
ec6a6fbe 4917 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4918sed 's/^/| /' conftest.$ac_ext >&5
4919
4920 ac_header_compiler=no
4921fi
4922
4923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4924{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4925$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4926
4927# Is the header present?
ec6a6fbe
AK
4928{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4929$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 4930cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4931/* confdefs.h. */
4932_ACEOF
4933cat confdefs.h >>conftest.$ac_ext
4934cat >>conftest.$ac_ext <<_ACEOF
4935/* end confdefs.h. */
4936#include <$ac_header>
4937_ACEOF
7a197a62
AK
4938if { (ac_try="$ac_cpp conftest.$ac_ext"
4939case "(($ac_try" in
4940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941 *) ac_try_echo=$ac_try;;
4942esac
ec6a6fbe
AK
4943eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4944$as_echo "$ac_try_echo") >&5
7a197a62 4945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4946 ac_status=$?
4947 grep -v '^ *+' conftest.er1 >conftest.err
4948 rm -f conftest.er1
4949 cat conftest.err >&5
ec6a6fbe 4950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4951 (exit $ac_status); } >/dev/null && {
4952 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4953 test ! -s conftest.err
4954 }; then
ad6254c5
AK
4955 ac_header_preproc=yes
4956else
ec6a6fbe 4957 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4958sed 's/^/| /' conftest.$ac_ext >&5
4959
4960 ac_header_preproc=no
4961fi
7a197a62 4962
ad6254c5 4963rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4964{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4965$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4966
4967# So? What about this header?
8a2fc586
AK
4968case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4969 yes:no: )
ec6a6fbe
AK
4970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4971$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4973$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4974 ac_header_preproc=yes
ad6254c5 4975 ;;
8a2fc586 4976 no:yes:* )
ec6a6fbe
AK
4977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4978$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4979 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4980$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4982$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4984$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4986$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4988$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4989
ad6254c5
AK
4990 ;;
4991esac
ec6a6fbe
AK
4992{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4993$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4994if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4995 $as_echo_n "(cached) " >&6
ad6254c5 4996else
8a2fc586 4997 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4998fi
ec6a6fbe
AK
4999ac_res=`eval 'as_val=${'$as_ac_Header'}
5000 $as_echo "$as_val"'`
5001 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5002$as_echo "$ac_res" >&6; }
ad6254c5
AK
5003
5004fi
ec6a6fbe
AK
5005as_val=`eval 'as_val=${'$as_ac_Header'}
5006 $as_echo "$as_val"'`
5007 if test "x$as_val" = x""yes; then
ad6254c5 5008 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5009#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5010_ACEOF
b896caa1 5011
d8ac0fbc 5012else
ec6a6fbe
AK
5013 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5014$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5015 { (exit 1); exit 1; }; }
80992638
AK
5016fi
5017
ad6254c5 5018done
d0191583
JM
5019 ;;
5020 darwin*)
d8ac0fbc 5021
d8ac0fbc 5022
d0191583 5023for ac_header in machine/endian.h sys/disk.h
ad6254c5 5024do
ec6a6fbe 5025as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5026if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5027 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5028$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5029if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5030 $as_echo_n "(cached) " >&6
ad6254c5 5031fi
ec6a6fbe
AK
5032ac_res=`eval 'as_val=${'$as_ac_Header'}
5033 $as_echo "$as_val"'`
5034 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5035$as_echo "$ac_res" >&6; }
ad6254c5
AK
5036else
5037 # Is the header compilable?
ec6a6fbe
AK
5038{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5039$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5040cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5041/* confdefs.h. */
5042_ACEOF
5043cat confdefs.h >>conftest.$ac_ext
5044cat >>conftest.$ac_ext <<_ACEOF
5045/* end confdefs.h. */
5046$ac_includes_default
5047#include <$ac_header>
5048_ACEOF
5049rm -f conftest.$ac_objext
7a197a62
AK
5050if { (ac_try="$ac_compile"
5051case "(($ac_try" in
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5054esac
ec6a6fbe
AK
5055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5056$as_echo "$ac_try_echo") >&5
7a197a62 5057 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5058 ac_status=$?
8a2fc586
AK
5059 grep -v '^ *+' conftest.er1 >conftest.err
5060 rm -f conftest.er1
5061 cat conftest.err >&5
ec6a6fbe 5062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5063 (exit $ac_status); } && {
5064 test -z "$ac_c_werror_flag" ||
5065 test ! -s conftest.err
5066 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5067 ac_header_compiler=yes
5068else
ec6a6fbe 5069 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5070sed 's/^/| /' conftest.$ac_ext >&5
5071
7a197a62 5072 ac_header_compiler=no
ad6254c5 5073fi
7a197a62
AK
5074
5075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5076{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5077$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5078
5079# Is the header present?
ec6a6fbe
AK
5080{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5081$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5082cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5083/* confdefs.h. */
5084_ACEOF
5085cat confdefs.h >>conftest.$ac_ext
5086cat >>conftest.$ac_ext <<_ACEOF
5087/* end confdefs.h. */
5088#include <$ac_header>
5089_ACEOF
7a197a62
AK
5090if { (ac_try="$ac_cpp conftest.$ac_ext"
5091case "(($ac_try" in
5092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093 *) ac_try_echo=$ac_try;;
5094esac
ec6a6fbe
AK
5095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5096$as_echo "$ac_try_echo") >&5
7a197a62 5097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5098 ac_status=$?
5099 grep -v '^ *+' conftest.er1 >conftest.err
5100 rm -f conftest.er1
5101 cat conftest.err >&5
ec6a6fbe 5102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5103 (exit $ac_status); } >/dev/null && {
5104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5105 test ! -s conftest.err
5106 }; then
ad6254c5
AK
5107 ac_header_preproc=yes
5108else
ec6a6fbe 5109 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5110sed 's/^/| /' conftest.$ac_ext >&5
5111
5112 ac_header_preproc=no
5113fi
7a197a62 5114
ad6254c5 5115rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5116{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5117$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5118
5119# So? What about this header?
8a2fc586
AK
5120case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5121 yes:no: )
ec6a6fbe
AK
5122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5123$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5125$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5126 ac_header_preproc=yes
ad6254c5 5127 ;;
8a2fc586 5128 no:yes:* )
ec6a6fbe
AK
5129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5130$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5132$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5134$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5136$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5138$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5140$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5141
ad6254c5
AK
5142 ;;
5143esac
ec6a6fbe
AK
5144{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5145$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5146if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5147 $as_echo_n "(cached) " >&6
ad6254c5 5148else
8a2fc586 5149 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 5150fi
ec6a6fbe
AK
5151ac_res=`eval 'as_val=${'$as_ac_Header'}
5152 $as_echo "$as_val"'`
5153 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5154$as_echo "$ac_res" >&6; }
ad6254c5
AK
5155
5156fi
ec6a6fbe
AK
5157as_val=`eval 'as_val=${'$as_ac_Header'}
5158 $as_echo "$as_val"'`
5159 if test "x$as_val" = x""yes; then
ad6254c5 5160 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5161#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5162_ACEOF
4922197a 5163
4922197a 5164else
ec6a6fbe
AK
5165 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5166$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5167 { (exit 1); exit 1; }; }
80992638
AK
5168fi
5169
ad6254c5 5170done
d0191583
JM
5171 ;;
5172esac
4922197a 5173
4922197a 5174
4922197a 5175
ad6254c5
AK
5176
5177
d0191583
JM
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5191 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5192 sys/types.h unistd.h
ad6254c5 5193do
ec6a6fbe 5194as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5195if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5196 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5197$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5198if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5199 $as_echo_n "(cached) " >&6
ad6254c5 5200fi
ec6a6fbe
AK
5201ac_res=`eval 'as_val=${'$as_ac_Header'}
5202 $as_echo "$as_val"'`
5203 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5204$as_echo "$ac_res" >&6; }
795ca3e5 5205else
ad6254c5 5206 # Is the header compilable?
ec6a6fbe
AK
5207{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5208$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5209cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5210/* confdefs.h. */
5211_ACEOF
5212cat confdefs.h >>conftest.$ac_ext
5213cat >>conftest.$ac_ext <<_ACEOF
5214/* end confdefs.h. */
5215$ac_includes_default
5216#include <$ac_header>
5217_ACEOF
5218rm -f conftest.$ac_objext
7a197a62
AK
5219if { (ac_try="$ac_compile"
5220case "(($ac_try" in
5221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222 *) ac_try_echo=$ac_try;;
5223esac
ec6a6fbe
AK
5224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5225$as_echo "$ac_try_echo") >&5
7a197a62 5226 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5227 ac_status=$?
8a2fc586
AK
5228 grep -v '^ *+' conftest.er1 >conftest.err
5229 rm -f conftest.er1
5230 cat conftest.err >&5
ec6a6fbe 5231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5232 (exit $ac_status); } && {
5233 test -z "$ac_c_werror_flag" ||
5234 test ! -s conftest.err
5235 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5236 ac_header_compiler=yes
5237else
ec6a6fbe 5238 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5239sed 's/^/| /' conftest.$ac_ext >&5
5240
7a197a62 5241 ac_header_compiler=no
ad6254c5 5242fi
7a197a62
AK
5243
5244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5245{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5246$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5247
5248# Is the header present?
ec6a6fbe
AK
5249{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5250$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5251cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5252/* confdefs.h. */
5253_ACEOF
5254cat confdefs.h >>conftest.$ac_ext
5255cat >>conftest.$ac_ext <<_ACEOF
5256/* end confdefs.h. */
5257#include <$ac_header>
5258_ACEOF
7a197a62
AK
5259if { (ac_try="$ac_cpp conftest.$ac_ext"
5260case "(($ac_try" in
5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5263esac
ec6a6fbe
AK
5264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5265$as_echo "$ac_try_echo") >&5
7a197a62 5266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5267 ac_status=$?
5268 grep -v '^ *+' conftest.er1 >conftest.err
5269 rm -f conftest.er1
5270 cat conftest.err >&5
ec6a6fbe 5271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5272 (exit $ac_status); } >/dev/null && {
5273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5274 test ! -s conftest.err
5275 }; then
ad6254c5
AK
5276 ac_header_preproc=yes
5277else
ec6a6fbe 5278 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5279sed 's/^/| /' conftest.$ac_ext >&5
5280
5281 ac_header_preproc=no
5282fi
7a197a62 5283
ad6254c5 5284rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5285{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5286$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5287
5288# So? What about this header?
8a2fc586
AK
5289case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5290 yes:no: )
ec6a6fbe
AK
5291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5292$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5294$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5295 ac_header_preproc=yes
ad6254c5 5296 ;;
8a2fc586 5297 no:yes:* )
ec6a6fbe
AK
5298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5299$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5301$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5303$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5305$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5307$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5309$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5310
ad6254c5
AK
5311 ;;
5312esac
ec6a6fbe
AK
5313{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5314$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5315if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5316 $as_echo_n "(cached) " >&6
ad6254c5 5317else
8a2fc586 5318 eval "$as_ac_Header=\$ac_header_preproc"
80992638 5319fi
ec6a6fbe
AK
5320ac_res=`eval 'as_val=${'$as_ac_Header'}
5321 $as_echo "$as_val"'`
5322 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5323$as_echo "$ac_res" >&6; }
80992638 5324
ad6254c5 5325fi
ec6a6fbe
AK
5326as_val=`eval 'as_val=${'$as_ac_Header'}
5327 $as_echo "$as_val"'`
5328 if test "x$as_val" = x""yes; then
ad6254c5 5329 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5330#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5331_ACEOF
795ca3e5 5332
795ca3e5 5333else
ec6a6fbe
AK
5334 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5335$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5336 { (exit 1); exit 1; }; }
80992638
AK
5337fi
5338
ad6254c5 5339done
ad6254c5 5340
795ca3e5 5341
d0191583
JM
5342
5343for ac_header in termios.h sys/statvfs.h
ad6254c5 5344do
ec6a6fbe 5345as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5347 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5348$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5349if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5350 $as_echo_n "(cached) " >&6
ad6254c5 5351fi
ec6a6fbe
AK
5352ac_res=`eval 'as_val=${'$as_ac_Header'}
5353 $as_echo "$as_val"'`
5354 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5355$as_echo "$ac_res" >&6; }
ad6254c5
AK
5356else
5357 # Is the header compilable?
ec6a6fbe
AK
5358{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5359$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5360cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5361/* confdefs.h. */
5362_ACEOF
5363cat confdefs.h >>conftest.$ac_ext
5364cat >>conftest.$ac_ext <<_ACEOF
5365/* end confdefs.h. */
5366$ac_includes_default
5367#include <$ac_header>
5368_ACEOF
5369rm -f conftest.$ac_objext
7a197a62
AK
5370if { (ac_try="$ac_compile"
5371case "(($ac_try" in
5372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373 *) ac_try_echo=$ac_try;;
5374esac
ec6a6fbe
AK
5375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5376$as_echo "$ac_try_echo") >&5
7a197a62 5377 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5378 ac_status=$?
8a2fc586
AK
5379 grep -v '^ *+' conftest.er1 >conftest.err
5380 rm -f conftest.er1
5381 cat conftest.err >&5
ec6a6fbe 5382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5383 (exit $ac_status); } && {
5384 test -z "$ac_c_werror_flag" ||
5385 test ! -s conftest.err
5386 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5387 ac_header_compiler=yes
5388else
ec6a6fbe 5389 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5390sed 's/^/| /' conftest.$ac_ext >&5
5391
7a197a62 5392 ac_header_compiler=no
ad6254c5 5393fi
7a197a62
AK
5394
5395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5396{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5397$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5398
5399# Is the header present?
ec6a6fbe
AK
5400{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5401$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5402cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5403/* confdefs.h. */
5404_ACEOF
5405cat confdefs.h >>conftest.$ac_ext
5406cat >>conftest.$ac_ext <<_ACEOF
5407/* end confdefs.h. */
5408#include <$ac_header>
5409_ACEOF
7a197a62
AK
5410if { (ac_try="$ac_cpp conftest.$ac_ext"
5411case "(($ac_try" in
5412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413 *) ac_try_echo=$ac_try;;
5414esac
ec6a6fbe
AK
5415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5416$as_echo "$ac_try_echo") >&5
7a197a62 5417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5418 ac_status=$?
5419 grep -v '^ *+' conftest.er1 >conftest.err
5420 rm -f conftest.er1
5421 cat conftest.err >&5
ec6a6fbe 5422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5423 (exit $ac_status); } >/dev/null && {
5424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5425 test ! -s conftest.err
5426 }; then
ad6254c5
AK
5427 ac_header_preproc=yes
5428else
ec6a6fbe 5429 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5430sed 's/^/| /' conftest.$ac_ext >&5
5431
5432 ac_header_preproc=no
5433fi
7a197a62 5434
ad6254c5 5435rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5436{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5437$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5438
5439# So? What about this header?
8a2fc586
AK
5440case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5441 yes:no: )
ec6a6fbe
AK
5442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5443$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5445$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5446 ac_header_preproc=yes
ad6254c5 5447 ;;
8a2fc586 5448 no:yes:* )
ec6a6fbe
AK
5449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5450$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5452$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5454$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5456$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5458$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5460$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5461
ad6254c5
AK
5462 ;;
5463esac
ec6a6fbe
AK
5464{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5465$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5466if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5467 $as_echo_n "(cached) " >&6
ad6254c5 5468else
8a2fc586 5469 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5470fi
ec6a6fbe
AK
5471ac_res=`eval 'as_val=${'$as_ac_Header'}
5472 $as_echo "$as_val"'`
5473 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5474$as_echo "$ac_res" >&6; }
b896caa1 5475
ad6254c5 5476fi
ec6a6fbe
AK
5477as_val=`eval 'as_val=${'$as_ac_Header'}
5478 $as_echo "$as_val"'`
5479 if test "x$as_val" = x""yes; then
ad6254c5 5480 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5481#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5482_ACEOF
5483
80992638
AK
5484fi
5485
ad6254c5 5486done
d0191583 5487
d3c8211f 5488
80992638 5489################################################################################
ec6a6fbe
AK
5490{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5491$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
ad6254c5 5492if test "${ac_cv_c_const+set}" = set; then
ec6a6fbe 5493 $as_echo_n "(cached) " >&6
d3c8211f 5494else
ad6254c5 5495 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5496/* confdefs.h. */
5497_ACEOF
5498cat confdefs.h >>conftest.$ac_ext
5499cat >>conftest.$ac_ext <<_ACEOF
5500/* end confdefs.h. */
5501
5502int
5503main ()
5504{
5505/* FIXME: Include the comments suggested by Paul. */
5506#ifndef __cplusplus
5507 /* Ultrix mips cc rejects this. */
5508 typedef int charset[2];
25fbec5b 5509 const charset cs;
ad6254c5 5510 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
5511 char const *const *pcpcc;
5512 char **ppc;
ad6254c5
AK
5513 /* NEC SVR4.0.2 mips cc rejects this. */
5514 struct point {int x, y;};
5515 static struct point const zero = {0,0};
5516 /* AIX XL C 1.02.0.0 rejects this.
5517 It does not let you subtract one const X* pointer from another in
5518 an arm of an if-expression whose if-part is not a constant
5519 expression */
5520 const char *g = "string";
25fbec5b 5521 pcpcc = &g + (g ? g-g : 0);
ad6254c5 5522 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
5523 ++pcpcc;
5524 ppc = (char**) pcpcc;
5525 pcpcc = (char const *const *) ppc;
ad6254c5
AK
5526 { /* SCO 3.2v4 cc rejects this. */
5527 char *t;
5528 char const *s = 0 ? (char *) 0 : (char const *) 0;
5529
5530 *t++ = 0;
7a197a62 5531 if (s) return 0;
ad6254c5
AK
5532 }
5533 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5534 int x[] = {25, 17};
5535 const int *foo = &x[0];
5536 ++foo;
5537 }
5538 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5539 typedef const int *iptr;
5540 iptr p = 0;
5541 ++p;
5542 }
5543 { /* AIX XL C 1.02.0.0 rejects this saying
5544 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5545 struct s { int j; const int *ap[3]; };
5546 struct s *b; b->j = 5;
5547 }
5548 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5549 const int foo = 10;
7a197a62 5550 if (!foo) return 0;
ad6254c5 5551 }
25fbec5b 5552 return !cs[0] && !zero.x;
ad6254c5
AK
5553#endif
5554
5555 ;
5556 return 0;
5557}
5558_ACEOF
5559rm -f conftest.$ac_objext
7a197a62
AK
5560if { (ac_try="$ac_compile"
5561case "(($ac_try" in
5562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563 *) ac_try_echo=$ac_try;;
5564esac
ec6a6fbe
AK
5565eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5566$as_echo "$ac_try_echo") >&5
7a197a62 5567 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5568 ac_status=$?
8a2fc586
AK
5569 grep -v '^ *+' conftest.er1 >conftest.err
5570 rm -f conftest.er1
5571 cat conftest.err >&5
ec6a6fbe 5572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5573 (exit $ac_status); } && {
5574 test -z "$ac_c_werror_flag" ||
5575 test ! -s conftest.err
5576 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5577 ac_cv_c_const=yes
5578else
ec6a6fbe 5579 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5580sed 's/^/| /' conftest.$ac_ext >&5
5581
7a197a62 5582 ac_cv_c_const=no
ad6254c5 5583fi
7a197a62
AK
5584
5585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5586fi
ec6a6fbe
AK
5587{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5588$as_echo "$ac_cv_c_const" >&6; }
ad6254c5 5589if test $ac_cv_c_const = no; then
80992638 5590
ad6254c5 5591cat >>confdefs.h <<\_ACEOF
ec6a6fbe 5592#define const /**/
ad6254c5 5593_ACEOF
80992638 5594
d3c8211f 5595fi
d3c8211f 5596
ec6a6fbe
AK
5597{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5598$as_echo_n "checking for inline... " >&6; }
ad6254c5 5599if test "${ac_cv_c_inline+set}" = set; then
ec6a6fbe 5600 $as_echo_n "(cached) " >&6
8ef2b021 5601else
ad6254c5
AK
5602 ac_cv_c_inline=no
5603for ac_kw in inline __inline__ __inline; do
5604 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5605/* confdefs.h. */
5606_ACEOF
5607cat confdefs.h >>conftest.$ac_ext
5608cat >>conftest.$ac_ext <<_ACEOF
5609/* end confdefs.h. */
5610#ifndef __cplusplus
5611typedef int foo_t;
5612static $ac_kw foo_t static_foo () {return 0; }
5613$ac_kw foo_t foo () {return 0; }
5614#endif
80992638 5615
ad6254c5
AK
5616_ACEOF
5617rm -f conftest.$ac_objext
7a197a62
AK
5618if { (ac_try="$ac_compile"
5619case "(($ac_try" in
5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5622esac
ec6a6fbe
AK
5623eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5624$as_echo "$ac_try_echo") >&5
7a197a62 5625 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5626 ac_status=$?
8a2fc586
AK
5627 grep -v '^ *+' conftest.er1 >conftest.err
5628 rm -f conftest.er1
5629 cat conftest.err >&5
ec6a6fbe 5630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5631 (exit $ac_status); } && {
5632 test -z "$ac_c_werror_flag" ||
5633 test ! -s conftest.err
5634 } && test -s conftest.$ac_objext; then
7a197a62 5635 ac_cv_c_inline=$ac_kw
ad6254c5 5636else
ec6a6fbe 5637 $as_echo "$as_me: failed program was:" >&5
ad6254c5 5638sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5639
7a197a62 5640
8ce0cbda 5641fi
7a197a62
AK
5642
5643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5644 test "$ac_cv_c_inline" != no && break
ad6254c5 5645done
8ce0cbda 5646
8ce0cbda 5647fi
ec6a6fbe
AK
5648{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5649$as_echo "$ac_cv_c_inline" >&6; }
8a2fc586
AK
5650
5651
ad6254c5
AK
5652case $ac_cv_c_inline in
5653 inline | yes) ;;
8a2fc586
AK
5654 *)
5655 case $ac_cv_c_inline in
5656 no) ac_val=;;
5657 *) ac_val=$ac_cv_c_inline;;
5658 esac
5659 cat >>confdefs.h <<_ACEOF
5660#ifndef __cplusplus
5661#define inline $ac_val
5662#endif
c1c065a3 5663_ACEOF
d0191583
JM
5664 ;;
5665esac
5666
ec6a6fbe
AK
5667{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5668$as_echo_n "checking for struct stat.st_rdev... " >&6; }
d0191583 5669if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 5670 $as_echo_n "(cached) " >&6
d0191583
JM
5671else
5672 cat >conftest.$ac_ext <<_ACEOF
5673/* confdefs.h. */
5674_ACEOF
5675cat confdefs.h >>conftest.$ac_ext
5676cat >>conftest.$ac_ext <<_ACEOF
5677/* end confdefs.h. */
5678$ac_includes_default
5679int
5680main ()
5681{
5682static struct stat ac_aggr;
5683if (ac_aggr.st_rdev)
5684return 0;
5685 ;
5686 return 0;
5687}
5688_ACEOF
5689rm -f conftest.$ac_objext
5690if { (ac_try="$ac_compile"
5691case "(($ac_try" in
5692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5693 *) ac_try_echo=$ac_try;;
5694esac
ec6a6fbe
AK
5695eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5696$as_echo "$ac_try_echo") >&5
5697 (eval "$ac_compile") 2>conftest.er1
5698 ac_status=$?
5699 grep -v '^ *+' conftest.er1 >conftest.err
5700 rm -f conftest.er1
5701 cat conftest.err >&5
5702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } && {
5704 test -z "$ac_c_werror_flag" ||
5705 test ! -s conftest.err
5706 } && test -s conftest.$ac_objext; then
5707 ac_cv_member_struct_stat_st_rdev=yes
5708else
5709 $as_echo "$as_me: failed program was:" >&5
5710sed 's/^/| /' conftest.$ac_ext >&5
5711
5712 cat >conftest.$ac_ext <<_ACEOF
5713/* confdefs.h. */
5714_ACEOF
5715cat confdefs.h >>conftest.$ac_ext
5716cat >>conftest.$ac_ext <<_ACEOF
5717/* end confdefs.h. */
5718$ac_includes_default
5719int
5720main ()
5721{
5722static struct stat ac_aggr;
5723if (sizeof ac_aggr.st_rdev)
5724return 0;
5725 ;
5726 return 0;
5727}
5728_ACEOF
5729rm -f conftest.$ac_objext
5730if { (ac_try="$ac_compile"
5731case "(($ac_try" in
5732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5733 *) ac_try_echo=$ac_try;;
5734esac
5735eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5736$as_echo "$ac_try_echo") >&5
5737 (eval "$ac_compile") 2>conftest.er1
5738 ac_status=$?
5739 grep -v '^ *+' conftest.er1 >conftest.err
5740 rm -f conftest.er1
5741 cat conftest.err >&5
5742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } && {
5744 test -z "$ac_c_werror_flag" ||
5745 test ! -s conftest.err
5746 } && test -s conftest.$ac_objext; then
5747 ac_cv_member_struct_stat_st_rdev=yes
5748else
5749 $as_echo "$as_me: failed program was:" >&5
5750sed 's/^/| /' conftest.$ac_ext >&5
5751
5752 ac_cv_member_struct_stat_st_rdev=no
5753fi
5754
5755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5756fi
5757
5758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5759fi
5760{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5761$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5762if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5763
5764cat >>confdefs.h <<_ACEOF
5765#define HAVE_STRUCT_STAT_ST_RDEV 1
5766_ACEOF
5767
5768
5769fi
5770
5771{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
5772$as_echo_n "checking for off_t... " >&6; }
5773if test "${ac_cv_type_off_t+set}" = set; then
5774 $as_echo_n "(cached) " >&6
5775else
5776 ac_cv_type_off_t=no
5777cat >conftest.$ac_ext <<_ACEOF
5778/* confdefs.h. */
5779_ACEOF
5780cat confdefs.h >>conftest.$ac_ext
5781cat >>conftest.$ac_ext <<_ACEOF
5782/* end confdefs.h. */
5783$ac_includes_default
5784int
5785main ()
5786{
5787if (sizeof (off_t))
5788 return 0;
5789 ;
5790 return 0;
5791}
5792_ACEOF
5793rm -f conftest.$ac_objext
5794if { (ac_try="$ac_compile"
5795case "(($ac_try" in
5796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5797 *) ac_try_echo=$ac_try;;
5798esac
5799eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5800$as_echo "$ac_try_echo") >&5
5801 (eval "$ac_compile") 2>conftest.er1
5802 ac_status=$?
5803 grep -v '^ *+' conftest.er1 >conftest.err
5804 rm -f conftest.er1
5805 cat conftest.err >&5
5806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } && {
5808 test -z "$ac_c_werror_flag" ||
5809 test ! -s conftest.err
5810 } && test -s conftest.$ac_objext; then
5811 cat >conftest.$ac_ext <<_ACEOF
5812/* confdefs.h. */
5813_ACEOF
5814cat confdefs.h >>conftest.$ac_ext
5815cat >>conftest.$ac_ext <<_ACEOF
5816/* end confdefs.h. */
5817$ac_includes_default
5818int
5819main ()
5820{
5821if (sizeof ((off_t)))
5822 return 0;
5823 ;
5824 return 0;
5825}
5826_ACEOF
5827rm -f conftest.$ac_objext
5828if { (ac_try="$ac_compile"
5829case "(($ac_try" in
5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5832esac
5833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5834$as_echo "$ac_try_echo") >&5
5835 (eval "$ac_compile") 2>conftest.er1
5836 ac_status=$?
5837 grep -v '^ *+' conftest.er1 >conftest.err
5838 rm -f conftest.er1
5839 cat conftest.err >&5
5840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } && {
5842 test -z "$ac_c_werror_flag" ||
5843 test ! -s conftest.err
5844 } && test -s conftest.$ac_objext; then
5845 :
5846else
5847 $as_echo "$as_me: failed program was:" >&5
5848sed 's/^/| /' conftest.$ac_ext >&5
5849
5850 ac_cv_type_off_t=yes
5851fi
5852
5853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5854else
5855 $as_echo "$as_me: failed program was:" >&5
5856sed 's/^/| /' conftest.$ac_ext >&5
5857
5858
5859fi
5860
5861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5862fi
5863{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5864$as_echo "$ac_cv_type_off_t" >&6; }
5865if test "x$ac_cv_type_off_t" = x""yes; then
5866 :
5867else
5868
5869cat >>confdefs.h <<_ACEOF
5870#define off_t long int
5871_ACEOF
5872
5873fi
5874
5875{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5876$as_echo_n "checking for pid_t... " >&6; }
5877if test "${ac_cv_type_pid_t+set}" = set; then
5878 $as_echo_n "(cached) " >&6
5879else
5880 ac_cv_type_pid_t=no
5881cat >conftest.$ac_ext <<_ACEOF
5882/* confdefs.h. */
5883_ACEOF
5884cat confdefs.h >>conftest.$ac_ext
5885cat >>conftest.$ac_ext <<_ACEOF
5886/* end confdefs.h. */
5887$ac_includes_default
5888int
5889main ()
5890{
5891if (sizeof (pid_t))
5892 return 0;
5893 ;
5894 return 0;
5895}
5896_ACEOF
5897rm -f conftest.$ac_objext
5898if { (ac_try="$ac_compile"
5899case "(($ac_try" in
5900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901 *) ac_try_echo=$ac_try;;
5902esac
5903eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5904$as_echo "$ac_try_echo") >&5
d0191583
JM
5905 (eval "$ac_compile") 2>conftest.er1
5906 ac_status=$?
5907 grep -v '^ *+' conftest.er1 >conftest.err
5908 rm -f conftest.er1
5909 cat conftest.err >&5
ec6a6fbe 5910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5911 (exit $ac_status); } && {
5912 test -z "$ac_c_werror_flag" ||
5913 test ! -s conftest.err
5914 } && test -s conftest.$ac_objext; then
ec6a6fbe 5915 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
5916/* confdefs.h. */
5917_ACEOF
5918cat confdefs.h >>conftest.$ac_ext
5919cat >>conftest.$ac_ext <<_ACEOF
5920/* end confdefs.h. */
5921$ac_includes_default
5922int
5923main ()
5924{
ec6a6fbe
AK
5925if (sizeof ((pid_t)))
5926 return 0;
d0191583
JM
5927 ;
5928 return 0;
5929}
5930_ACEOF
5931rm -f conftest.$ac_objext
5932if { (ac_try="$ac_compile"
5933case "(($ac_try" in
5934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5935 *) ac_try_echo=$ac_try;;
5936esac
ec6a6fbe
AK
5937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5938$as_echo "$ac_try_echo") >&5
d0191583
JM
5939 (eval "$ac_compile") 2>conftest.er1
5940 ac_status=$?
5941 grep -v '^ *+' conftest.er1 >conftest.err
5942 rm -f conftest.er1
5943 cat conftest.err >&5
ec6a6fbe 5944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5945 (exit $ac_status); } && {
5946 test -z "$ac_c_werror_flag" ||
5947 test ! -s conftest.err
5948 } && test -s conftest.$ac_objext; then
ec6a6fbe 5949 :
d0191583 5950else
ec6a6fbe 5951 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
5952sed 's/^/| /' conftest.$ac_ext >&5
5953
ec6a6fbe 5954 ac_cv_type_pid_t=yes
d0191583
JM
5955fi
5956
5957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5958else
5959 $as_echo "$as_me: failed program was:" >&5
5960sed 's/^/| /' conftest.$ac_ext >&5
5961
5962
d0191583
JM
5963fi
5964
5965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966fi
ec6a6fbe
AK
5967{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5968$as_echo "$ac_cv_type_pid_t" >&6; }
5969if test "x$ac_cv_type_pid_t" = x""yes; then
5970 :
5971else
d0191583
JM
5972
5973cat >>confdefs.h <<_ACEOF
ec6a6fbe 5974#define pid_t int
d0191583
JM
5975_ACEOF
5976
d0191583 5977fi
8ce0cbda 5978
ec6a6fbe
AK
5979{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5980$as_echo_n "checking return type of signal handlers... " >&6; }
5981if test "${ac_cv_type_signal+set}" = set; then
5982 $as_echo_n "(cached) " >&6
ad6254c5 5983else
b145d876
ZK
5984 cat >conftest.$ac_ext <<_ACEOF
5985/* confdefs.h. */
5986_ACEOF
5987cat confdefs.h >>conftest.$ac_ext
5988cat >>conftest.$ac_ext <<_ACEOF
5989/* end confdefs.h. */
ec6a6fbe
AK
5990#include <sys/types.h>
5991#include <signal.h>
5992
b145d876
ZK
5993int
5994main ()
5995{
ec6a6fbe 5996return *(signal (0, 0)) (0) == 1;
ad6254c5
AK
5997 ;
5998 return 0;
5999}
6000_ACEOF
6001rm -f conftest.$ac_objext
7a197a62
AK
6002if { (ac_try="$ac_compile"
6003case "(($ac_try" in
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6006esac
ec6a6fbe
AK
6007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6008$as_echo "$ac_try_echo") >&5
7a197a62 6009 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6010 ac_status=$?
8a2fc586
AK
6011 grep -v '^ *+' conftest.er1 >conftest.err
6012 rm -f conftest.er1
6013 cat conftest.err >&5
ec6a6fbe 6014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6015 (exit $ac_status); } && {
6016 test -z "$ac_c_werror_flag" ||
6017 test ! -s conftest.err
6018 } && test -s conftest.$ac_objext; then
ec6a6fbe 6019 ac_cv_type_signal=int
b145d876 6020else
ec6a6fbe 6021 $as_echo "$as_me: failed program was:" >&5
b145d876
ZK
6022sed 's/^/| /' conftest.$ac_ext >&5
6023
ec6a6fbe 6024 ac_cv_type_signal=void
ad6254c5 6025fi
b145d876
ZK
6026
6027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6028fi
ec6a6fbe
AK
6029{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6030$as_echo "$ac_cv_type_signal" >&6; }
80992638 6031
ad6254c5 6032cat >>confdefs.h <<_ACEOF
ec6a6fbe 6033#define RETSIGTYPE $ac_cv_type_signal
ad6254c5 6034_ACEOF
199e490e 6035
b896caa1 6036
ec6a6fbe
AK
6037{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
6038$as_echo_n "checking for size_t... " >&6; }
6039if test "${ac_cv_type_size_t+set}" = set; then
6040 $as_echo_n "(cached) " >&6
ad6254c5 6041else
ec6a6fbe
AK
6042 ac_cv_type_size_t=no
6043cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6044/* confdefs.h. */
6045_ACEOF
6046cat confdefs.h >>conftest.$ac_ext
6047cat >>conftest.$ac_ext <<_ACEOF
6048/* end confdefs.h. */
6049$ac_includes_default
6050int
6051main ()
6052{
ec6a6fbe
AK
6053if (sizeof (size_t))
6054 return 0;
ad6254c5
AK
6055 ;
6056 return 0;
6057}
6058_ACEOF
6059rm -f conftest.$ac_objext
7a197a62
AK
6060if { (ac_try="$ac_compile"
6061case "(($ac_try" in
6062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6063 *) ac_try_echo=$ac_try;;
6064esac
ec6a6fbe
AK
6065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6066$as_echo "$ac_try_echo") >&5
7a197a62 6067 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6068 ac_status=$?
8a2fc586
AK
6069 grep -v '^ *+' conftest.er1 >conftest.err
6070 rm -f conftest.er1
6071 cat conftest.err >&5
ec6a6fbe 6072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6073 (exit $ac_status); } && {
6074 test -z "$ac_c_werror_flag" ||
6075 test ! -s conftest.err
6076 } && test -s conftest.$ac_objext; then
d0191583
JM
6077 cat >conftest.$ac_ext <<_ACEOF
6078/* confdefs.h. */
6079_ACEOF
6080cat confdefs.h >>conftest.$ac_ext
6081cat >>conftest.$ac_ext <<_ACEOF
6082/* end confdefs.h. */
ec6a6fbe 6083$ac_includes_default
d0191583
JM
6084int
6085main ()
6086{
ec6a6fbe
AK
6087if (sizeof ((size_t)))
6088 return 0;
d0191583
JM
6089 ;
6090 return 0;
6091}
6092_ACEOF
6093rm -f conftest.$ac_objext
6094if { (ac_try="$ac_compile"
6095case "(($ac_try" in
6096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6097 *) ac_try_echo=$ac_try;;
6098esac
ec6a6fbe
AK
6099eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6100$as_echo "$ac_try_echo") >&5
d0191583
JM
6101 (eval "$ac_compile") 2>conftest.er1
6102 ac_status=$?
6103 grep -v '^ *+' conftest.er1 >conftest.err
6104 rm -f conftest.er1
6105 cat conftest.err >&5
ec6a6fbe 6106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
6107 (exit $ac_status); } && {
6108 test -z "$ac_c_werror_flag" ||
6109 test ! -s conftest.err
6110 } && test -s conftest.$ac_objext; then
ec6a6fbe 6111 :
d0191583 6112else
ec6a6fbe 6113 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
6114sed 's/^/| /' conftest.$ac_ext >&5
6115
ec6a6fbe
AK
6116 ac_cv_type_size_t=yes
6117fi
6118
6119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6120else
6121 $as_echo "$as_me: failed program was:" >&5
6122sed 's/^/| /' conftest.$ac_ext >&5
6123
6124
d0191583
JM
6125fi
6126
6127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6128fi
ec6a6fbe
AK
6129{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6130$as_echo "$ac_cv_type_size_t" >&6; }
6131if test "x$ac_cv_type_size_t" = x""yes; then
6132 :
6133else
d0191583
JM
6134
6135cat >>confdefs.h <<_ACEOF
ec6a6fbe 6136#define size_t unsigned int
d0191583
JM
6137_ACEOF
6138
ec6a6fbe 6139fi
d0191583 6140
ec6a6fbe
AK
6141{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6142$as_echo_n "checking for mode_t... " >&6; }
6143if test "${ac_cv_type_mode_t+set}" = set; then
6144 $as_echo_n "(cached) " >&6
8106cdd5 6145else
ec6a6fbe
AK
6146 ac_cv_type_mode_t=no
6147cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6148/* confdefs.h. */
6149_ACEOF
6150cat confdefs.h >>conftest.$ac_ext
6151cat >>conftest.$ac_ext <<_ACEOF
6152/* end confdefs.h. */
6153$ac_includes_default
6154int
6155main ()
6156{
ec6a6fbe
AK
6157if (sizeof (mode_t))
6158 return 0;
ad6254c5
AK
6159 ;
6160 return 0;
6161}
6162_ACEOF
6163rm -f conftest.$ac_objext
7a197a62
AK
6164if { (ac_try="$ac_compile"
6165case "(($ac_try" in
6166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6167 *) ac_try_echo=$ac_try;;
6168esac
ec6a6fbe
AK
6169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6170$as_echo "$ac_try_echo") >&5
7a197a62 6171 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6172 ac_status=$?
8a2fc586
AK
6173 grep -v '^ *+' conftest.er1 >conftest.err
6174 rm -f conftest.er1
6175 cat conftest.err >&5
ec6a6fbe 6176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6177 (exit $ac_status); } && {
6178 test -z "$ac_c_werror_flag" ||
6179 test ! -s conftest.err
6180 } && test -s conftest.$ac_objext; then
b145d876
ZK
6181 cat >conftest.$ac_ext <<_ACEOF
6182/* confdefs.h. */
6183_ACEOF
6184cat confdefs.h >>conftest.$ac_ext
6185cat >>conftest.$ac_ext <<_ACEOF
6186/* end confdefs.h. */
6187$ac_includes_default
6188int
6189main ()
6190{
ec6a6fbe
AK
6191if (sizeof ((mode_t)))
6192 return 0;
ad6254c5
AK
6193 ;
6194 return 0;
6195}
6196_ACEOF
6197rm -f conftest.$ac_objext
7a197a62
AK
6198if { (ac_try="$ac_compile"
6199case "(($ac_try" in
6200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6201 *) ac_try_echo=$ac_try;;
6202esac
ec6a6fbe
AK
6203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6204$as_echo "$ac_try_echo") >&5
7a197a62 6205 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6206 ac_status=$?
8a2fc586
AK
6207 grep -v '^ *+' conftest.er1 >conftest.err
6208 rm -f conftest.er1
6209 cat conftest.err >&5
ec6a6fbe 6210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6211 (exit $ac_status); } && {
6212 test -z "$ac_c_werror_flag" ||
6213 test ! -s conftest.err
6214 } && test -s conftest.$ac_objext; then
ec6a6fbe
AK
6215 :
6216else
6217 $as_echo "$as_me: failed program was:" >&5
6218sed 's/^/| /' conftest.$ac_ext >&5
6219
6220 ac_cv_type_mode_t=yes
6221fi
6222
6223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51 6224else
ec6a6fbe 6225 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
6226sed 's/^/| /' conftest.$ac_ext >&5
6227
ec6a6fbe 6228
80992638 6229fi
7a197a62
AK
6230
6231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6232fi
ec6a6fbe
AK
6233{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6234$as_echo "$ac_cv_type_mode_t" >&6; }
6235if test "x$ac_cv_type_mode_t" = x""yes; then
ad6254c5
AK
6236 :
6237else
80992638 6238
ad6254c5
AK
6239cat >>confdefs.h <<_ACEOF
6240#define mode_t int
6241_ACEOF
6242
6243fi
6244
ec6a6fbe
AK
6245{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6246$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 6247if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 6248 $as_echo_n "(cached) " >&6
ad6254c5
AK
6249else
6250 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6251/* confdefs.h. */
6252_ACEOF
6253cat confdefs.h >>conftest.$ac_ext
6254cat >>conftest.$ac_ext <<_ACEOF
6255/* end confdefs.h. */
6256$ac_includes_default
6257int
6258main ()
6259{
6260static struct stat ac_aggr;
6261if (ac_aggr.st_rdev)
6262return 0;
6263 ;
6264 return 0;
6265}
6266_ACEOF
6267rm -f conftest.$ac_objext
7a197a62
AK
6268if { (ac_try="$ac_compile"
6269case "(($ac_try" in
6270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6271 *) ac_try_echo=$ac_try;;
6272esac
ec6a6fbe
AK
6273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6274$as_echo "$ac_try_echo") >&5
7a197a62 6275 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6276 ac_status=$?
8a2fc586
AK
6277 grep -v '^ *+' conftest.er1 >conftest.err
6278 rm -f conftest.er1
6279 cat conftest.err >&5
ec6a6fbe 6280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6281 (exit $ac_status); } && {
6282 test -z "$ac_c_werror_flag" ||
6283 test ! -s conftest.err
6284 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6285 ac_cv_member_struct_stat_st_rdev=yes
6286else
ec6a6fbe 6287 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6288sed 's/^/| /' conftest.$ac_ext >&5
6289
7a197a62 6290 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6291/* confdefs.h. */
6292_ACEOF
6293cat confdefs.h >>conftest.$ac_ext
6294cat >>conftest.$ac_ext <<_ACEOF
6295/* end confdefs.h. */
6296$ac_includes_default
6297int
6298main ()
6299{
6300static struct stat ac_aggr;
6301if (sizeof ac_aggr.st_rdev)
6302return 0;
6303 ;
6304 return 0;
6305}
6306_ACEOF
6307rm -f conftest.$ac_objext
7a197a62
AK
6308if { (ac_try="$ac_compile"
6309case "(($ac_try" in
6310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6311 *) ac_try_echo=$ac_try;;
6312esac
ec6a6fbe
AK
6313eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6314$as_echo "$ac_try_echo") >&5
7a197a62 6315 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6316 ac_status=$?
8a2fc586
AK
6317 grep -v '^ *+' conftest.er1 >conftest.err
6318 rm -f conftest.er1
6319 cat conftest.err >&5
ec6a6fbe 6320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6321 (exit $ac_status); } && {
6322 test -z "$ac_c_werror_flag" ||
6323 test ! -s conftest.err
6324 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6325 ac_cv_member_struct_stat_st_rdev=yes
6326else
ec6a6fbe 6327 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6328sed 's/^/| /' conftest.$ac_ext >&5
6329
7a197a62 6330 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 6331fi
7a197a62
AK
6332
6333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6334fi
7a197a62
AK
6335
6336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6337fi
ec6a6fbe
AK
6338{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6339$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6340if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
ad6254c5
AK
6341
6342cat >>confdefs.h <<_ACEOF
6343#define HAVE_STRUCT_STAT_ST_RDEV 1
6344_ACEOF
6345
6346
ad6254c5
AK
6347fi
6348
ec6a6fbe
AK
6349{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6350$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 6351if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 6352 $as_echo_n "(cached) " >&6
ad6254c5
AK
6353else
6354 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6355/* confdefs.h. */
6356_ACEOF
6357cat confdefs.h >>conftest.$ac_ext
6358cat >>conftest.$ac_ext <<_ACEOF
6359/* end confdefs.h. */
6360#include <sys/types.h>
6361#include <time.h>
6362
6363int
6364main ()
6365{
25fbec5b
AK
6366struct tm tm;
6367 int *p = &tm.tm_sec;
ec6a6fbe 6368 return !p;
ad6254c5
AK
6369 ;
6370 return 0;
6371}
6372_ACEOF
6373rm -f conftest.$ac_objext
7a197a62
AK
6374if { (ac_try="$ac_compile"
6375case "(($ac_try" in
6376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6377 *) ac_try_echo=$ac_try;;
6378esac
ec6a6fbe
AK
6379eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6380$as_echo "$ac_try_echo") >&5
7a197a62 6381 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6382 ac_status=$?
8a2fc586
AK
6383 grep -v '^ *+' conftest.er1 >conftest.err
6384 rm -f conftest.er1
6385 cat conftest.err >&5
ec6a6fbe 6386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6387 (exit $ac_status); } && {
6388 test -z "$ac_c_werror_flag" ||
6389 test ! -s conftest.err
6390 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6391 ac_cv_struct_tm=time.h
6392else
ec6a6fbe 6393 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6394sed 's/^/| /' conftest.$ac_ext >&5
6395
7a197a62 6396 ac_cv_struct_tm=sys/time.h
ad6254c5 6397fi
7a197a62
AK
6398
6399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6400fi
ec6a6fbe
AK
6401{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6402$as_echo "$ac_cv_struct_tm" >&6; }
ad6254c5
AK
6403if test $ac_cv_struct_tm = sys/time.h; then
6404
6405cat >>confdefs.h <<\_ACEOF
6406#define TM_IN_SYS_TIME 1
6407_ACEOF
6408
6409fi
809fae91 6410
795ca3e5 6411
80992638 6412################################################################################
ad6254c5
AK
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
d0191583
JM
6427
6428
6429
6430for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6431 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6432 uname
ad6254c5 6433do
ec6a6fbe
AK
6434as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6435{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6436$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6437if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6438 $as_echo_n "(cached) " >&6
795ca3e5 6439else
ad6254c5 6440 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6441/* confdefs.h. */
6442_ACEOF
6443cat confdefs.h >>conftest.$ac_ext
6444cat >>conftest.$ac_ext <<_ACEOF
6445/* end confdefs.h. */
8a2fc586
AK
6446/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6448#define $ac_func innocuous_$ac_func
6449
ad6254c5
AK
6450/* System header to define __stub macros and hopefully few prototypes,
6451 which can conflict with char $ac_func (); below.
6452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6453 <limits.h> exists even on freestanding compilers. */
8a2fc586 6454
ad6254c5
AK
6455#ifdef __STDC__
6456# include <limits.h>
6457#else
6458# include <assert.h>
6459#endif
8a2fc586
AK
6460
6461#undef $ac_func
6462
7a197a62
AK
6463/* Override any GCC internal prototype to avoid an error.
6464 Use char because int might match the return type of a GCC
6465 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6466#ifdef __cplusplus
6467extern "C"
ad6254c5 6468#endif
ad6254c5
AK
6469char $ac_func ();
6470/* The GNU C library defines this for functions which it implements
6471 to always fail with ENOSYS. Some functions are actually named
6472 something starting with __ and the normal name is an alias. */
7a197a62 6473#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6474choke me
ad6254c5
AK
6475#endif
6476
6477int
6478main ()
6479{
7a197a62 6480return $ac_func ();
ad6254c5
AK
6481 ;
6482 return 0;
6483}
6484_ACEOF
6485rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6486if { (ac_try="$ac_link"
6487case "(($ac_try" in
6488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489 *) ac_try_echo=$ac_try;;
6490esac
ec6a6fbe
AK
6491eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6492$as_echo "$ac_try_echo") >&5
7a197a62 6493 (eval "$ac_link") 2>conftest.er1
ad6254c5 6494 ac_status=$?
8a2fc586
AK
6495 grep -v '^ *+' conftest.er1 >conftest.err
6496 rm -f conftest.er1
6497 cat conftest.err >&5
ec6a6fbe 6498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6499 (exit $ac_status); } && {
6500 test -z "$ac_c_werror_flag" ||
6501 test ! -s conftest.err
ec6a6fbe
AK
6502 } && test -s conftest$ac_exeext && {
6503 test "$cross_compiling" = yes ||
6504 $as_test_x conftest$ac_exeext
6505 }; then
fc54be10
AK
6506 eval "$as_ac_var=yes"
6507else
ec6a6fbe 6508 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
6509sed 's/^/| /' conftest.$ac_ext >&5
6510
6511 eval "$as_ac_var=no"
6512fi
6513
ec6a6fbe 6514rm -rf conftest.dSYM
25fbec5b 6515rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
6516 conftest$ac_exeext conftest.$ac_ext
6517fi
ec6a6fbe
AK
6518ac_res=`eval 'as_val=${'$as_ac_var'}
6519 $as_echo "$as_val"'`
6520 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6521$as_echo "$ac_res" >&6; }
6522as_val=`eval 'as_val=${'$as_ac_var'}
6523 $as_echo "$as_val"'`
6524 if test "x$as_val" = x""yes; then
ad6254c5 6525 cat >>confdefs.h <<_ACEOF
ec6a6fbe 6526#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6527_ACEOF
6528
6529else
ec6a6fbe
AK
6530 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6531$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
6532 { (exit 1); exit 1; }; }
6533fi
6534done
795ca3e5 6535
ad6254c5
AK
6536# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6537# for constant arguments. Useless!
ec6a6fbe
AK
6538{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6539$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 6540if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 6541 $as_echo_n "(cached) " >&6
ad6254c5
AK
6542else
6543 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6544/* confdefs.h. */
6545_ACEOF
6546cat confdefs.h >>conftest.$ac_ext
6547cat >>conftest.$ac_ext <<_ACEOF
6548/* end confdefs.h. */
6549#include <alloca.h>
6550int
6551main ()
6552{
6553char *p = (char *) alloca (2 * sizeof (int));
7a197a62 6554 if (p) return 0;
ad6254c5
AK
6555 ;
6556 return 0;
6557}
6558_ACEOF
6559rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6560if { (ac_try="$ac_link"
6561case "(($ac_try" in
6562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6563 *) ac_try_echo=$ac_try;;
6564esac
ec6a6fbe
AK
6565eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6566$as_echo "$ac_try_echo") >&5
7a197a62 6567 (eval "$ac_link") 2>conftest.er1
ad6254c5 6568 ac_status=$?
8a2fc586
AK
6569 grep -v '^ *+' conftest.er1 >conftest.err
6570 rm -f conftest.er1
6571 cat conftest.err >&5
ec6a6fbe 6572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6573 (exit $ac_status); } && {
6574 test -z "$ac_c_werror_flag" ||
6575 test ! -s conftest.err
ec6a6fbe
AK
6576 } && test -s conftest$ac_exeext && {
6577 test "$cross_compiling" = yes ||
6578 $as_test_x conftest$ac_exeext
6579 }; then
ad6254c5
AK
6580 ac_cv_working_alloca_h=yes
6581else
ec6a6fbe 6582 $as_echo "$as_me: failed program was:" >&5
ad6254c5 6583sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 6584
7a197a62 6585 ac_cv_working_alloca_h=no
ad6254c5 6586fi
7a197a62 6587
ec6a6fbe 6588rm -rf conftest.dSYM
25fbec5b 6589rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6590 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6591fi
ec6a6fbe
AK
6592{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6593$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
6594if test $ac_cv_working_alloca_h = yes; then
6595
6596cat >>confdefs.h <<\_ACEOF
6597#define HAVE_ALLOCA_H 1
6598_ACEOF
6599
6600fi
6601
ec6a6fbe
AK
6602{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
6603$as_echo_n "checking for alloca... " >&6; }
ad6254c5 6604if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 6605 $as_echo_n "(cached) " >&6
ad6254c5
AK
6606else
6607 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6608/* confdefs.h. */
6609_ACEOF
6610cat confdefs.h >>conftest.$ac_ext
6611cat >>conftest.$ac_ext <<_ACEOF
6612/* end confdefs.h. */
6613#ifdef __GNUC__
6614# define alloca __builtin_alloca
6615#else
6616# ifdef _MSC_VER
6617# include <malloc.h>
6618# define alloca _alloca
6619# else
25fbec5b 6620# ifdef HAVE_ALLOCA_H
ad6254c5
AK
6621# include <alloca.h>
6622# else
6623# ifdef _AIX
6624 #pragma alloca
6625# else
6626# ifndef alloca /* predefined by HP cc +Olibcalls */
6627char *alloca ();
6628# endif
6629# endif
6630# endif
6631# endif
6632#endif
6633
6634int
6635main ()
6636{
6637char *p = (char *) alloca (1);
7a197a62 6638 if (p) return 0;
ad6254c5
AK
6639 ;
6640 return 0;
6641}
6642_ACEOF
6643rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6644if { (ac_try="$ac_link"
6645case "(($ac_try" in
6646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6647 *) ac_try_echo=$ac_try;;
6648esac
ec6a6fbe
AK
6649eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6650$as_echo "$ac_try_echo") >&5
7a197a62 6651 (eval "$ac_link") 2>conftest.er1
ad6254c5 6652 ac_status=$?
8a2fc586
AK
6653 grep -v '^ *+' conftest.er1 >conftest.err
6654 rm -f conftest.er1
6655 cat conftest.err >&5
ec6a6fbe 6656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6657 (exit $ac_status); } && {
6658 test -z "$ac_c_werror_flag" ||
6659 test ! -s conftest.err
ec6a6fbe
AK
6660 } && test -s conftest$ac_exeext && {
6661 test "$cross_compiling" = yes ||
6662 $as_test_x conftest$ac_exeext
6663 }; then
ad6254c5
AK
6664 ac_cv_func_alloca_works=yes
6665else
ec6a6fbe 6666 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6667sed 's/^/| /' conftest.$ac_ext >&5
6668
7a197a62 6669 ac_cv_func_alloca_works=no
ad6254c5 6670fi
7a197a62 6671
ec6a6fbe 6672rm -rf conftest.dSYM
25fbec5b 6673rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6674 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6675fi
ec6a6fbe
AK
6676{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6677$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6678
6679if test $ac_cv_func_alloca_works = yes; then
6680
6681cat >>confdefs.h <<\_ACEOF
6682#define HAVE_ALLOCA 1
6683_ACEOF
6684
6685else
6686 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6687# that cause trouble. Some versions do not even contain alloca or
6688# contain a buggy version. If you still want to use their alloca,
6689# use ar to extract alloca.o from them instead of compiling alloca.c.
6690
7a197a62 6691ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6692
6693cat >>confdefs.h <<\_ACEOF
6694#define C_ALLOCA 1
6695_ACEOF
6696
6697
ec6a6fbe
AK
6698{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6699$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 6700if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 6701 $as_echo_n "(cached) " >&6
ad6254c5
AK
6702else
6703 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6704/* confdefs.h. */
6705_ACEOF
6706cat confdefs.h >>conftest.$ac_ext
6707cat >>conftest.$ac_ext <<_ACEOF
6708/* end confdefs.h. */
7a197a62 6709#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6710webecray
6711#else
6712wenotbecray
6713#endif
6714
6715_ACEOF
795ca3e5 6716if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6717 $EGREP "webecray" >/dev/null 2>&1; then
6718 ac_cv_os_cray=yes
6719else
6720 ac_cv_os_cray=no
795ca3e5
AK
6721fi
6722rm -f conftest*
6723
795ca3e5 6724fi
ec6a6fbe
AK
6725{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6726$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
6727if test $ac_cv_os_cray = yes; then
6728 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
6729 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6730{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6731$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6732if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6733 $as_echo_n "(cached) " >&6
ad6254c5
AK
6734else
6735 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6736/* confdefs.h. */
6737_ACEOF
6738cat confdefs.h >>conftest.$ac_ext
6739cat >>conftest.$ac_ext <<_ACEOF
6740/* end confdefs.h. */
8a2fc586
AK
6741/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6743#define $ac_func innocuous_$ac_func
6744
ad6254c5
AK
6745/* System header to define __stub macros and hopefully few prototypes,
6746 which can conflict with char $ac_func (); below.
6747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6748 <limits.h> exists even on freestanding compilers. */
8a2fc586 6749
ad6254c5
AK
6750#ifdef __STDC__
6751# include <limits.h>
6752#else
6753# include <assert.h>
6754#endif
8a2fc586
AK
6755
6756#undef $ac_func
6757
7a197a62
AK
6758/* Override any GCC internal prototype to avoid an error.
6759 Use char because int might match the return type of a GCC
6760 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6761#ifdef __cplusplus
6762extern "C"
ad6254c5 6763#endif
ad6254c5
AK
6764char $ac_func ();
6765/* The GNU C library defines this for functions which it implements
6766 to always fail with ENOSYS. Some functions are actually named
6767 something starting with __ and the normal name is an alias. */
7a197a62 6768#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6769choke me
ad6254c5
AK
6770#endif
6771
6772int
6773main ()
6774{
7a197a62 6775return $ac_func ();
ad6254c5
AK
6776 ;
6777 return 0;
6778}
6779_ACEOF
6780rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6781if { (ac_try="$ac_link"
6782case "(($ac_try" in
6783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6784 *) ac_try_echo=$ac_try;;
6785esac
ec6a6fbe
AK
6786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6787$as_echo "$ac_try_echo") >&5
7a197a62 6788 (eval "$ac_link") 2>conftest.er1
ad6254c5 6789 ac_status=$?
8a2fc586
AK
6790 grep -v '^ *+' conftest.er1 >conftest.err
6791 rm -f conftest.er1
6792 cat conftest.err >&5
ec6a6fbe 6793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6794 (exit $ac_status); } && {
6795 test -z "$ac_c_werror_flag" ||
6796 test ! -s conftest.err
ec6a6fbe
AK
6797 } && test -s conftest$ac_exeext && {
6798 test "$cross_compiling" = yes ||
6799 $as_test_x conftest$ac_exeext
6800 }; then
ad6254c5
AK
6801 eval "$as_ac_var=yes"
6802else
ec6a6fbe 6803 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6804sed 's/^/| /' conftest.$ac_ext >&5
6805
7a197a62 6806 eval "$as_ac_var=no"
ad6254c5 6807fi
7a197a62 6808
ec6a6fbe 6809rm -rf conftest.dSYM
25fbec5b 6810rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6811 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6812fi
ec6a6fbe
AK
6813ac_res=`eval 'as_val=${'$as_ac_var'}
6814 $as_echo "$as_val"'`
6815 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6816$as_echo "$ac_res" >&6; }
6817as_val=`eval 'as_val=${'$as_ac_var'}
6818 $as_echo "$as_val"'`
6819 if test "x$as_val" = x""yes; then
80992638 6820
ad6254c5
AK
6821cat >>confdefs.h <<_ACEOF
6822#define CRAY_STACKSEG_END $ac_func
6823_ACEOF
6824
6825 break
6826fi
6827
6828 done
6829fi
6830
ec6a6fbe
AK
6831{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6832$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 6833if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 6834 $as_echo_n "(cached) " >&6
ad6254c5
AK
6835else
6836 if test "$cross_compiling" = yes; then
6837 ac_cv_c_stack_direction=0
6838else
6839 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6840/* confdefs.h. */
6841_ACEOF
6842cat confdefs.h >>conftest.$ac_ext
6843cat >>conftest.$ac_ext <<_ACEOF
6844/* end confdefs.h. */
7a197a62 6845$ac_includes_default
ad6254c5
AK
6846int
6847find_stack_direction ()
6848{
6849 static char *addr = 0;
6850 auto char dummy;
6851 if (addr == 0)
6852 {
6853 addr = &dummy;
6854 return find_stack_direction ();
6855 }
6856 else
6857 return (&dummy > addr) ? 1 : -1;
6858}
6859
6860int
6861main ()
6862{
7a197a62 6863 return find_stack_direction () < 0;
ad6254c5
AK
6864}
6865_ACEOF
6866rm -f conftest$ac_exeext
7a197a62
AK
6867if { (ac_try="$ac_link"
6868case "(($ac_try" in
6869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6870 *) ac_try_echo=$ac_try;;
6871esac
ec6a6fbe
AK
6872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6873$as_echo "$ac_try_echo") >&5
7a197a62 6874 (eval "$ac_link") 2>&5
ad6254c5 6875 ac_status=$?
ec6a6fbe 6876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6878 { (case "(($ac_try" in
6879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6880 *) ac_try_echo=$ac_try;;
6881esac
ec6a6fbe
AK
6882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6883$as_echo "$ac_try_echo") >&5
7a197a62 6884 (eval "$ac_try") 2>&5
ad6254c5 6885 ac_status=$?
ec6a6fbe 6886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6887 (exit $ac_status); }; }; then
6888 ac_cv_c_stack_direction=1
6889else
ec6a6fbe
AK
6890 $as_echo "$as_me: program exited with status $ac_status" >&5
6891$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6892sed 's/^/| /' conftest.$ac_ext >&5
6893
6894( exit $ac_status )
6895ac_cv_c_stack_direction=-1
6896fi
ec6a6fbe 6897rm -rf conftest.dSYM
7a197a62 6898rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6899fi
7a197a62
AK
6900
6901
ad6254c5 6902fi
ec6a6fbe
AK
6903{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6904$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
6905
6906cat >>confdefs.h <<_ACEOF
6907#define STACK_DIRECTION $ac_cv_c_stack_direction
6908_ACEOF
6909
6910
6911fi
6912
ec6a6fbe
AK
6913{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6914$as_echo_n "checking whether closedir returns void... " >&6; }
ad6254c5 6915if test "${ac_cv_func_closedir_void+set}" = set; then
ec6a6fbe 6916 $as_echo_n "(cached) " >&6
ad6254c5
AK
6917else
6918 if test "$cross_compiling" = yes; then
6919 ac_cv_func_closedir_void=yes
6920else
6921 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6922/* confdefs.h. */
6923_ACEOF
6924cat confdefs.h >>conftest.$ac_ext
6925cat >>conftest.$ac_ext <<_ACEOF
6926/* end confdefs.h. */
6927$ac_includes_default
6928#include <$ac_header_dirent>
6929#ifndef __cplusplus
6930int closedir ();
6931#endif
6932
6933int
6934main ()
6935{
7a197a62 6936return closedir (opendir (".")) != 0;
ad6254c5
AK
6937 ;
6938 return 0;
6939}
6940_ACEOF
6941rm -f conftest$ac_exeext
7a197a62
AK
6942if { (ac_try="$ac_link"
6943case "(($ac_try" in
6944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6945 *) ac_try_echo=$ac_try;;
6946esac
ec6a6fbe
AK
6947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6948$as_echo "$ac_try_echo") >&5
7a197a62 6949 (eval "$ac_link") 2>&5
ad6254c5 6950 ac_status=$?
ec6a6fbe 6951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6953 { (case "(($ac_try" in
6954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6955 *) ac_try_echo=$ac_try;;
6956esac
ec6a6fbe
AK
6957eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6958$as_echo "$ac_try_echo") >&5
7a197a62 6959 (eval "$ac_try") 2>&5
ad6254c5 6960 ac_status=$?
ec6a6fbe 6961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6962 (exit $ac_status); }; }; then
6963 ac_cv_func_closedir_void=no
6964else
ec6a6fbe
AK
6965 $as_echo "$as_me: program exited with status $ac_status" >&5
6966$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6967sed 's/^/| /' conftest.$ac_ext >&5
6968
6969( exit $ac_status )
6970ac_cv_func_closedir_void=yes
6971fi
ec6a6fbe 6972rm -rf conftest.dSYM
7a197a62 6973rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6974fi
7a197a62
AK
6975
6976
ad6254c5 6977fi
ec6a6fbe
AK
6978{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6979$as_echo "$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
6980if test $ac_cv_func_closedir_void = yes; then
6981
6982cat >>confdefs.h <<\_ACEOF
6983#define CLOSEDIR_VOID 1
6984_ACEOF
6985
6986fi
6987
6988
7a197a62 6989for ac_header in vfork.h
ad6254c5 6990do
ec6a6fbe 6991as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 6992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
6993 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6994$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 6995if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6996 $as_echo_n "(cached) " >&6
ad6254c5 6997fi
ec6a6fbe
AK
6998ac_res=`eval 'as_val=${'$as_ac_Header'}
6999 $as_echo "$as_val"'`
7000 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7001$as_echo "$ac_res" >&6; }
ad6254c5
AK
7002else
7003 # Is the header compilable?
ec6a6fbe
AK
7004{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7005$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7006cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7007/* confdefs.h. */
7008_ACEOF
7009cat confdefs.h >>conftest.$ac_ext
7010cat >>conftest.$ac_ext <<_ACEOF
7011/* end confdefs.h. */
7012$ac_includes_default
7013#include <$ac_header>
7014_ACEOF
7015rm -f conftest.$ac_objext
7a197a62
AK
7016if { (ac_try="$ac_compile"
7017case "(($ac_try" in
7018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7019 *) ac_try_echo=$ac_try;;
7020esac
ec6a6fbe
AK
7021eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7022$as_echo "$ac_try_echo") >&5
7a197a62 7023 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7024 ac_status=$?
8a2fc586
AK
7025 grep -v '^ *+' conftest.er1 >conftest.err
7026 rm -f conftest.er1
7027 cat conftest.err >&5
ec6a6fbe 7028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7029 (exit $ac_status); } && {
7030 test -z "$ac_c_werror_flag" ||
7031 test ! -s conftest.err
7032 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7033 ac_header_compiler=yes
7034else
ec6a6fbe 7035 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7036sed 's/^/| /' conftest.$ac_ext >&5
7037
7a197a62 7038 ac_header_compiler=no
ad6254c5 7039fi
7a197a62
AK
7040
7041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7042{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7043$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7044
7045# Is the header present?
ec6a6fbe
AK
7046{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7047$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7048cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7049/* confdefs.h. */
7050_ACEOF
7051cat confdefs.h >>conftest.$ac_ext
7052cat >>conftest.$ac_ext <<_ACEOF
7053/* end confdefs.h. */
7054#include <$ac_header>
7055_ACEOF
7a197a62
AK
7056if { (ac_try="$ac_cpp conftest.$ac_ext"
7057case "(($ac_try" in
7058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7059 *) ac_try_echo=$ac_try;;
7060esac
ec6a6fbe
AK
7061eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7062$as_echo "$ac_try_echo") >&5
7a197a62 7063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7064 ac_status=$?
7065 grep -v '^ *+' conftest.er1 >conftest.err
7066 rm -f conftest.er1
7067 cat conftest.err >&5
ec6a6fbe 7068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7069 (exit $ac_status); } >/dev/null && {
7070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7071 test ! -s conftest.err
7072 }; then
ad6254c5
AK
7073 ac_header_preproc=yes
7074else
ec6a6fbe 7075 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7076sed 's/^/| /' conftest.$ac_ext >&5
7077
7078 ac_header_preproc=no
7079fi
7a197a62 7080
ad6254c5 7081rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7082{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7083$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7084
7085# So? What about this header?
8a2fc586
AK
7086case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7087 yes:no: )
ec6a6fbe
AK
7088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7089$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7091$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7092 ac_header_preproc=yes
ad6254c5 7093 ;;
8a2fc586 7094 no:yes:* )
ec6a6fbe
AK
7095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7096$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7098$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7100$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7102$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7104$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7106$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7107
ad6254c5
AK
7108 ;;
7109esac
ec6a6fbe
AK
7110{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7111$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7113 $as_echo_n "(cached) " >&6
ad6254c5 7114else
8a2fc586 7115 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7116fi
ec6a6fbe
AK
7117ac_res=`eval 'as_val=${'$as_ac_Header'}
7118 $as_echo "$as_val"'`
7119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7120$as_echo "$ac_res" >&6; }
ad6254c5 7121
795ca3e5 7122fi
ec6a6fbe
AK
7123as_val=`eval 'as_val=${'$as_ac_Header'}
7124 $as_echo "$as_val"'`
7125 if test "x$as_val" = x""yes; then
ad6254c5 7126 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7127#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7128_ACEOF
7129
7130fi
7131
7132done
795ca3e5 7133
ad6254c5
AK
7134
7135
7136for ac_func in fork vfork
7137do
ec6a6fbe
AK
7138as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7139{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7140$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 7141if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7142 $as_echo_n "(cached) " >&6
795ca3e5 7143else
ad6254c5 7144 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7145/* confdefs.h. */
7146_ACEOF
7147cat confdefs.h >>conftest.$ac_ext
7148cat >>conftest.$ac_ext <<_ACEOF
7149/* end confdefs.h. */
8a2fc586
AK
7150/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7152#define $ac_func innocuous_$ac_func
7153
ad6254c5
AK
7154/* System header to define __stub macros and hopefully few prototypes,
7155 which can conflict with char $ac_func (); below.
7156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7157 <limits.h> exists even on freestanding compilers. */
8a2fc586 7158
ad6254c5
AK
7159#ifdef __STDC__
7160# include <limits.h>
7161#else
7162# include <assert.h>
795ca3e5 7163#endif
8a2fc586
AK
7164
7165#undef $ac_func
7166
7a197a62
AK
7167/* Override any GCC internal prototype to avoid an error.
7168 Use char because int might match the return type of a GCC
7169 builtin and then its argument prototype would still apply. */
795ca3e5 7170#ifdef __cplusplus
ad6254c5 7171extern "C"
ad6254c5 7172#endif
ad6254c5
AK
7173char $ac_func ();
7174/* The GNU C library defines this for functions which it implements
7175 to always fail with ENOSYS. Some functions are actually named
7176 something starting with __ and the normal name is an alias. */
7a197a62 7177#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7178choke me
795ca3e5
AK
7179#endif
7180
ad6254c5
AK
7181int
7182main ()
7183{
7a197a62 7184return $ac_func ();
ad6254c5
AK
7185 ;
7186 return 0;
7187}
7188_ACEOF
7189rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7190if { (ac_try="$ac_link"
7191case "(($ac_try" in
7192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7193 *) ac_try_echo=$ac_try;;
7194esac
ec6a6fbe
AK
7195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7196$as_echo "$ac_try_echo") >&5
7a197a62 7197 (eval "$ac_link") 2>conftest.er1
ad6254c5 7198 ac_status=$?
8a2fc586
AK
7199 grep -v '^ *+' conftest.er1 >conftest.err
7200 rm -f conftest.er1
7201 cat conftest.err >&5
ec6a6fbe 7202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7203 (exit $ac_status); } && {
7204 test -z "$ac_c_werror_flag" ||
7205 test ! -s conftest.err
ec6a6fbe
AK
7206 } && test -s conftest$ac_exeext && {
7207 test "$cross_compiling" = yes ||
7208 $as_test_x conftest$ac_exeext
7209 }; then
ad6254c5 7210 eval "$as_ac_var=yes"
795ca3e5 7211else
ec6a6fbe 7212 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7213sed 's/^/| /' conftest.$ac_ext >&5
7214
7a197a62 7215 eval "$as_ac_var=no"
795ca3e5 7216fi
7a197a62 7217
ec6a6fbe 7218rm -rf conftest.dSYM
25fbec5b 7219rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7220 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7221fi
ec6a6fbe
AK
7222ac_res=`eval 'as_val=${'$as_ac_var'}
7223 $as_echo "$as_val"'`
7224 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7225$as_echo "$ac_res" >&6; }
7226as_val=`eval 'as_val=${'$as_ac_var'}
7227 $as_echo "$as_val"'`
7228 if test "x$as_val" = x""yes; then
ad6254c5 7229 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7230#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7231_ACEOF
7232
7233fi
7234done
7235
7236if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
7237 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7238$as_echo_n "checking for working fork... " >&6; }
ad6254c5 7239if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 7240 $as_echo_n "(cached) " >&6
ad6254c5
AK
7241else
7242 if test "$cross_compiling" = yes; then
7243 ac_cv_func_fork_works=cross
7244else
7245 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
7246/* confdefs.h. */
7247_ACEOF
7248cat confdefs.h >>conftest.$ac_ext
7249cat >>conftest.$ac_ext <<_ACEOF
7250/* end confdefs.h. */
7251$ac_includes_default
7252int
7253main ()
7254{
7255
7256 /* By Ruediger Kuhlmann. */
7257 return fork () < 0;
7258
7259 ;
7260 return 0;
7261}
ad6254c5
AK
7262_ACEOF
7263rm -f conftest$ac_exeext
7a197a62
AK
7264if { (ac_try="$ac_link"
7265case "(($ac_try" in
7266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7267 *) ac_try_echo=$ac_try;;
7268esac
ec6a6fbe
AK
7269eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7270$as_echo "$ac_try_echo") >&5
7a197a62 7271 (eval "$ac_link") 2>&5
ad6254c5 7272 ac_status=$?
ec6a6fbe 7273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7275 { (case "(($ac_try" in
7276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7277 *) ac_try_echo=$ac_try;;
7278esac
ec6a6fbe
AK
7279eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7280$as_echo "$ac_try_echo") >&5
7a197a62 7281 (eval "$ac_try") 2>&5
ad6254c5 7282 ac_status=$?
ec6a6fbe 7283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7284 (exit $ac_status); }; }; then
7285 ac_cv_func_fork_works=yes
7286else
ec6a6fbe
AK
7287 $as_echo "$as_me: program exited with status $ac_status" >&5
7288$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7289sed 's/^/| /' conftest.$ac_ext >&5
7290
7291( exit $ac_status )
7292ac_cv_func_fork_works=no
7293fi
ec6a6fbe 7294rm -rf conftest.dSYM
7a197a62 7295rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7296fi
7a197a62
AK
7297
7298
ad6254c5 7299fi
ec6a6fbe
AK
7300{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7301$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
7302
7303else
7304 ac_cv_func_fork_works=$ac_cv_func_fork
7305fi
7306if test "x$ac_cv_func_fork_works" = xcross; then
7307 case $host in
7308 *-*-amigaos* | *-*-msdosdjgpp*)
7309 # Override, as these systems have only a dummy fork() stub
7310 ac_cv_func_fork_works=no
7311 ;;
7312 *)
7313 ac_cv_func_fork_works=yes
7314 ;;
7315 esac
ec6a6fbe
AK
7316 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7317$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7318fi
7319ac_cv_func_vfork_works=$ac_cv_func_vfork
7320if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
7321 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7322$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 7323if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 7324 $as_echo_n "(cached) " >&6
ad6254c5
AK
7325else
7326 if test "$cross_compiling" = yes; then
7327 ac_cv_func_vfork_works=cross
7328else
7329 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7330/* confdefs.h. */
7331_ACEOF
7332cat confdefs.h >>conftest.$ac_ext
7333cat >>conftest.$ac_ext <<_ACEOF
7334/* end confdefs.h. */
7335/* Thanks to Paul Eggert for this test. */
7a197a62 7336$ac_includes_default
ad6254c5 7337#include <sys/wait.h>
25fbec5b 7338#ifdef HAVE_VFORK_H
ad6254c5
AK
7339# include <vfork.h>
7340#endif
7341/* On some sparc systems, changes by the child to local and incoming
7342 argument registers are propagated back to the parent. The compiler
7343 is told about this with #include <vfork.h>, but some compilers
7344 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7345 static variable whose address is put into a register that is
7346 clobbered by the vfork. */
7347static void
7348#ifdef __cplusplus
7349sparc_address_test (int arg)
7350# else
7351sparc_address_test (arg) int arg;
7352#endif
7353{
7354 static pid_t child;
7355 if (!child) {
7356 child = vfork ();
7357 if (child < 0) {
7358 perror ("vfork");
7359 _exit(2);
7360 }
7361 if (!child) {
7362 arg = getpid();
7363 write(-1, "", 0);
7364 _exit (arg);
7365 }
7366 }
7367}
7368
7369int
7370main ()
7371{
7372 pid_t parent = getpid ();
7373 pid_t child;
7374
7375 sparc_address_test (0);
7376
7377 child = vfork ();
7378
7379 if (child == 0) {
7380 /* Here is another test for sparc vfork register problems. This
7381 test uses lots of local variables, at least as many local
7382 variables as main has allocated so far including compiler
7383 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7384 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7385 reuse the register of parent for one of the local variables,
7386 since it will think that parent can't possibly be used any more
7387 in this routine. Assigning to the local variable will thus
7388 munge parent in the parent process. */
7389 pid_t
7390 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7391 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7392 /* Convince the compiler that p..p7 are live; otherwise, it might
7393 use the same hardware register for all 8 local variables. */
7394 if (p != p1 || p != p2 || p != p3 || p != p4
7395 || p != p5 || p != p6 || p != p7)
7396 _exit(1);
7397
7398 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7399 from child file descriptors. If the child closes a descriptor
7400 before it execs or exits, this munges the parent's descriptor
7401 as well. Test for this by closing stdout in the child. */
7402 _exit(close(fileno(stdout)) != 0);
7403 } else {
7404 int status;
7405 struct stat st;
7406
7407 while (wait(&status) != child)
7408 ;
7a197a62 7409 return (
ad6254c5
AK
7410 /* Was there some problem with vforking? */
7411 child < 0
7412
7413 /* Did the child fail? (This shouldn't happen.) */
7414 || status
7415
7416 /* Did the vfork/compiler bug occur? */
7417 || parent != getpid()
7418
7419 /* Did the file descriptor bug occur? */
7420 || fstat(fileno(stdout), &st) != 0
7421 );
7422 }
7423}
7424_ACEOF
7425rm -f conftest$ac_exeext
7a197a62
AK
7426if { (ac_try="$ac_link"
7427case "(($ac_try" in
7428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7429 *) ac_try_echo=$ac_try;;
7430esac
ec6a6fbe
AK
7431eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7432$as_echo "$ac_try_echo") >&5
7a197a62 7433 (eval "$ac_link") 2>&5
ad6254c5 7434 ac_status=$?
ec6a6fbe 7435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7437 { (case "(($ac_try" in
7438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7439 *) ac_try_echo=$ac_try;;
7440esac
ec6a6fbe
AK
7441eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7442$as_echo "$ac_try_echo") >&5
7a197a62 7443 (eval "$ac_try") 2>&5
ad6254c5 7444 ac_status=$?
ec6a6fbe 7445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7446 (exit $ac_status); }; }; then
7447 ac_cv_func_vfork_works=yes
7448else
ec6a6fbe
AK
7449 $as_echo "$as_me: program exited with status $ac_status" >&5
7450$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7451sed 's/^/| /' conftest.$ac_ext >&5
7452
7453( exit $ac_status )
7454ac_cv_func_vfork_works=no
7455fi
ec6a6fbe 7456rm -rf conftest.dSYM
7a197a62 7457rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7458fi
7a197a62
AK
7459
7460
ad6254c5 7461fi
ec6a6fbe
AK
7462{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7463$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
7464
7465fi;
7466if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 7467 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
7468 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7469$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7470fi
7471
7472if test "x$ac_cv_func_vfork_works" = xyes; then
7473
7474cat >>confdefs.h <<\_ACEOF
7475#define HAVE_WORKING_VFORK 1
7476_ACEOF
7477
7478else
7479
7480cat >>confdefs.h <<\_ACEOF
7481#define vfork fork
7482_ACEOF
7483
7484fi
7485if test "x$ac_cv_func_fork_works" = xyes; then
7486
7487cat >>confdefs.h <<\_ACEOF
7488#define HAVE_WORKING_FORK 1
7489_ACEOF
7490
7491fi
7492
ec6a6fbe
AK
7493{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7494$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 7495if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 7496 $as_echo_n "(cached) " >&6
ad6254c5
AK
7497else
7498 rm -f conftest.sym conftest.file
7499echo >conftest.file
7500if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7501 if test "$cross_compiling" = yes; then
7502 ac_cv_func_lstat_dereferences_slashed_symlink=no
7503else
7504 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7505/* confdefs.h. */
7506_ACEOF
7507cat confdefs.h >>conftest.$ac_ext
7508cat >>conftest.$ac_ext <<_ACEOF
7509/* end confdefs.h. */
7510$ac_includes_default
7511int
7512main ()
7513{
7514struct stat sbuf;
7515 /* Linux will dereference the symlink and fail.
8a2fc586
AK
7516 That is better in the sense that it means we will not
7517 have to compile and use the lstat wrapper. */
7a197a62 7518 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
7519 ;
7520 return 0;
7521}
7522_ACEOF
7523rm -f conftest$ac_exeext
7a197a62
AK
7524if { (ac_try="$ac_link"
7525case "(($ac_try" in
7526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7527 *) ac_try_echo=$ac_try;;
7528esac
ec6a6fbe
AK
7529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7530$as_echo "$ac_try_echo") >&5
7a197a62 7531 (eval "$ac_link") 2>&5
ad6254c5 7532 ac_status=$?
ec6a6fbe 7533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7535 { (case "(($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_try") 2>&5
ad6254c5 7542 ac_status=$?
ec6a6fbe 7543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7544 (exit $ac_status); }; }; then
7545 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7546else
ec6a6fbe
AK
7547 $as_echo "$as_me: program exited with status $ac_status" >&5
7548$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7549sed 's/^/| /' conftest.$ac_ext >&5
7550
7551( exit $ac_status )
7552ac_cv_func_lstat_dereferences_slashed_symlink=no
7553fi
ec6a6fbe 7554rm -rf conftest.dSYM
7a197a62 7555rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7556fi
7a197a62
AK
7557
7558
ad6254c5
AK
7559else
7560 # If the `ln -s' command failed, then we probably don't even
7561 # have an lstat function.
7562 ac_cv_func_lstat_dereferences_slashed_symlink=no
7563fi
7564rm -f conftest.sym conftest.file
7565
7566fi
ec6a6fbe
AK
7567{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7568$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
7569
7570test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7571
7572cat >>confdefs.h <<_ACEOF
7573#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7574_ACEOF
7575
7576
7577if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 7578 case " $LIBOBJS " in
8a2fc586 7579 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7580 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7581 ;;
8a2fc586
AK
7582esac
7583
ad6254c5
AK
7584fi
7585
ec6a6fbe
AK
7586{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7587$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 7588if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 7589 $as_echo_n "(cached) " >&6
ad6254c5
AK
7590else
7591 if test "$cross_compiling" = yes; then
7592 ac_cv_func_lstat_empty_string_bug=yes
7593else
7594 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7595/* confdefs.h. */
7596_ACEOF
7597cat confdefs.h >>conftest.$ac_ext
7598cat >>conftest.$ac_ext <<_ACEOF
7599/* end confdefs.h. */
7600$ac_includes_default
7601int
7602main ()
7603{
7604struct stat sbuf;
7a197a62 7605 return lstat ("", &sbuf) == 0;
ad6254c5
AK
7606 ;
7607 return 0;
7608}
7609_ACEOF
7610rm -f conftest$ac_exeext
7a197a62
AK
7611if { (ac_try="$ac_link"
7612case "(($ac_try" in
7613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614 *) ac_try_echo=$ac_try;;
7615esac
ec6a6fbe
AK
7616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7617$as_echo "$ac_try_echo") >&5
7a197a62 7618 (eval "$ac_link") 2>&5
ad6254c5 7619 ac_status=$?
ec6a6fbe 7620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7622 { (case "(($ac_try" in
7623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624 *) ac_try_echo=$ac_try;;
7625esac
ec6a6fbe
AK
7626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7627$as_echo "$ac_try_echo") >&5
7a197a62 7628 (eval "$ac_try") 2>&5
ad6254c5 7629 ac_status=$?
ec6a6fbe 7630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7631 (exit $ac_status); }; }; then
7a197a62 7632 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 7633else
ec6a6fbe
AK
7634 $as_echo "$as_me: program exited with status $ac_status" >&5
7635$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7636sed 's/^/| /' conftest.$ac_ext >&5
7637
7638( exit $ac_status )
7a197a62 7639ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 7640fi
ec6a6fbe 7641rm -rf conftest.dSYM
7a197a62 7642rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7643fi
7a197a62
AK
7644
7645
ad6254c5 7646fi
ec6a6fbe
AK
7647{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7648$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 7649if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 7650 case " $LIBOBJS " in
8a2fc586 7651 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7652 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7653 ;;
8a2fc586
AK
7654esac
7655
ad6254c5
AK
7656
7657cat >>confdefs.h <<_ACEOF
7658#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7659_ACEOF
7660
7661fi
7662
7663
7664for ac_header in stdlib.h
7665do
ec6a6fbe 7666as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7668 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7669$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7671 $as_echo_n "(cached) " >&6
ad6254c5 7672fi
ec6a6fbe
AK
7673ac_res=`eval 'as_val=${'$as_ac_Header'}
7674 $as_echo "$as_val"'`
7675 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7676$as_echo "$ac_res" >&6; }
ad6254c5
AK
7677else
7678 # Is the header compilable?
ec6a6fbe
AK
7679{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7680$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7681cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7682/* confdefs.h. */
7683_ACEOF
7684cat confdefs.h >>conftest.$ac_ext
7685cat >>conftest.$ac_ext <<_ACEOF
7686/* end confdefs.h. */
7687$ac_includes_default
7688#include <$ac_header>
7689_ACEOF
7690rm -f conftest.$ac_objext
7a197a62
AK
7691if { (ac_try="$ac_compile"
7692case "(($ac_try" in
7693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7694 *) ac_try_echo=$ac_try;;
7695esac
ec6a6fbe
AK
7696eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7697$as_echo "$ac_try_echo") >&5
7a197a62 7698 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7699 ac_status=$?
8a2fc586
AK
7700 grep -v '^ *+' conftest.er1 >conftest.err
7701 rm -f conftest.er1
7702 cat conftest.err >&5
ec6a6fbe 7703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7704 (exit $ac_status); } && {
7705 test -z "$ac_c_werror_flag" ||
7706 test ! -s conftest.err
7707 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7708 ac_header_compiler=yes
7709else
ec6a6fbe 7710 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7711sed 's/^/| /' conftest.$ac_ext >&5
7712
7a197a62 7713 ac_header_compiler=no
ad6254c5 7714fi
7a197a62
AK
7715
7716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7717{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7718$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7719
7720# Is the header present?
ec6a6fbe
AK
7721{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7722$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7723cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7724/* confdefs.h. */
7725_ACEOF
7726cat confdefs.h >>conftest.$ac_ext
7727cat >>conftest.$ac_ext <<_ACEOF
7728/* end confdefs.h. */
7729#include <$ac_header>
7730_ACEOF
7a197a62
AK
7731if { (ac_try="$ac_cpp conftest.$ac_ext"
7732case "(($ac_try" in
7733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7734 *) ac_try_echo=$ac_try;;
7735esac
ec6a6fbe
AK
7736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7737$as_echo "$ac_try_echo") >&5
7a197a62 7738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7739 ac_status=$?
7740 grep -v '^ *+' conftest.er1 >conftest.err
7741 rm -f conftest.er1
7742 cat conftest.err >&5
ec6a6fbe 7743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7744 (exit $ac_status); } >/dev/null && {
7745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7746 test ! -s conftest.err
7747 }; then
ad6254c5
AK
7748 ac_header_preproc=yes
7749else
ec6a6fbe 7750 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7751sed 's/^/| /' conftest.$ac_ext >&5
7752
7753 ac_header_preproc=no
7754fi
7a197a62 7755
ad6254c5 7756rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7757{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7758$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7759
7760# So? What about this header?
8a2fc586
AK
7761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7762 yes:no: )
ec6a6fbe
AK
7763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7764$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7766$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7767 ac_header_preproc=yes
ad6254c5 7768 ;;
8a2fc586 7769 no:yes:* )
ec6a6fbe
AK
7770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7771$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7773$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7775$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7777$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7779$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7781$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7782
ad6254c5
AK
7783 ;;
7784esac
ec6a6fbe
AK
7785{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7786$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7787if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7788 $as_echo_n "(cached) " >&6
ad6254c5 7789else
8a2fc586 7790 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7791fi
ec6a6fbe
AK
7792ac_res=`eval 'as_val=${'$as_ac_Header'}
7793 $as_echo "$as_val"'`
7794 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7795$as_echo "$ac_res" >&6; }
ad6254c5
AK
7796
7797fi
ec6a6fbe
AK
7798as_val=`eval 'as_val=${'$as_ac_Header'}
7799 $as_echo "$as_val"'`
7800 if test "x$as_val" = x""yes; then
ad6254c5 7801 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7802#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7803_ACEOF
7804
7805fi
7806
7807done
7808
ec6a6fbe
AK
7809{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7810$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 7811if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 7812 $as_echo_n "(cached) " >&6
ad6254c5
AK
7813else
7814 if test "$cross_compiling" = yes; then
7815 ac_cv_func_malloc_0_nonnull=no
7816else
7817 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7818/* confdefs.h. */
7819_ACEOF
7820cat confdefs.h >>conftest.$ac_ext
7821cat >>conftest.$ac_ext <<_ACEOF
7822/* end confdefs.h. */
25fbec5b 7823#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
7824# include <stdlib.h>
7825#else
7826char *malloc ();
7827#endif
7828
7829int
7830main ()
7831{
7a197a62 7832return ! malloc (0);
ad6254c5
AK
7833 ;
7834 return 0;
7835}
7836_ACEOF
7837rm -f conftest$ac_exeext
7a197a62
AK
7838if { (ac_try="$ac_link"
7839case "(($ac_try" in
7840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841 *) ac_try_echo=$ac_try;;
7842esac
ec6a6fbe
AK
7843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7844$as_echo "$ac_try_echo") >&5
7a197a62 7845 (eval "$ac_link") 2>&5
ad6254c5 7846 ac_status=$?
ec6a6fbe 7847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7848 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7849 { (case "(($ac_try" in
7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7852esac
ec6a6fbe
AK
7853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7854$as_echo "$ac_try_echo") >&5
7a197a62 7855 (eval "$ac_try") 2>&5
ad6254c5 7856 ac_status=$?
ec6a6fbe 7857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7858 (exit $ac_status); }; }; then
7859 ac_cv_func_malloc_0_nonnull=yes
7860else
ec6a6fbe
AK
7861 $as_echo "$as_me: program exited with status $ac_status" >&5
7862$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7863sed 's/^/| /' conftest.$ac_ext >&5
7864
7865( exit $ac_status )
7866ac_cv_func_malloc_0_nonnull=no
7867fi
ec6a6fbe 7868rm -rf conftest.dSYM
7a197a62 7869rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7870fi
7a197a62
AK
7871
7872
ad6254c5 7873fi
ec6a6fbe
AK
7874{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7875$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
7876if test $ac_cv_func_malloc_0_nonnull = yes; then
7877
7878cat >>confdefs.h <<\_ACEOF
7879#define HAVE_MALLOC 1
7880_ACEOF
7881
7882else
7883 cat >>confdefs.h <<\_ACEOF
7884#define HAVE_MALLOC 0
7885_ACEOF
7886
7a197a62 7887 case " $LIBOBJS " in
8a2fc586 7888 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
7889 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7890 ;;
8a2fc586
AK
7891esac
7892
ad6254c5
AK
7893
7894cat >>confdefs.h <<\_ACEOF
7895#define malloc rpl_malloc
7896_ACEOF
7897
7898fi
7899
7900
7901
ec6a6fbe
AK
7902{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
7903$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 7904if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 7905 $as_echo_n "(cached) " >&6
ad6254c5
AK
7906else
7907 if test "$cross_compiling" = yes; then
7908 ac_cv_func_memcmp_working=no
7909else
7910 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7911/* confdefs.h. */
7912_ACEOF
7913cat confdefs.h >>conftest.$ac_ext
7914cat >>conftest.$ac_ext <<_ACEOF
7915/* end confdefs.h. */
8a2fc586 7916$ac_includes_default
ad6254c5
AK
7917int
7918main ()
7919{
7920
7921 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 7922 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 7923 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 7924 return 1;
ad6254c5
AK
7925
7926 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7927 or more and with at least one buffer not starting on a 4-byte boundary.
7928 William Lewis provided this test program. */
7929 {
7930 char foo[21];
7931 char bar[21];
7932 int i;
7933 for (i = 0; i < 4; i++)
7934 {
8a2fc586
AK
7935 char *a = foo + i;
7936 char *b = bar + i;
7937 strcpy (a, "--------01111111");
7938 strcpy (b, "--------10000000");
7939 if (memcmp (a, b, 16) >= 0)
7a197a62 7940 return 1;
ad6254c5 7941 }
7a197a62 7942 return 0;
ad6254c5
AK
7943 }
7944
7945 ;
7946 return 0;
7947}
7948_ACEOF
7949rm -f conftest$ac_exeext
7a197a62
AK
7950if { (ac_try="$ac_link"
7951case "(($ac_try" in
7952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7953 *) ac_try_echo=$ac_try;;
7954esac
ec6a6fbe
AK
7955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7956$as_echo "$ac_try_echo") >&5
7a197a62 7957 (eval "$ac_link") 2>&5
ad6254c5 7958 ac_status=$?
ec6a6fbe 7959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7961 { (case "(($ac_try" in
7962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963 *) ac_try_echo=$ac_try;;
7964esac
ec6a6fbe
AK
7965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7966$as_echo "$ac_try_echo") >&5
7a197a62 7967 (eval "$ac_try") 2>&5
ad6254c5 7968 ac_status=$?
ec6a6fbe 7969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7970 (exit $ac_status); }; }; then
7971 ac_cv_func_memcmp_working=yes
7972else
ec6a6fbe
AK
7973 $as_echo "$as_me: program exited with status $ac_status" >&5
7974$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7975sed 's/^/| /' conftest.$ac_ext >&5
7976
7977( exit $ac_status )
7978ac_cv_func_memcmp_working=no
7979fi
ec6a6fbe 7980rm -rf conftest.dSYM
7a197a62 7981rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7982fi
7a197a62
AK
7983
7984
ad6254c5 7985fi
ec6a6fbe
AK
7986{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7987$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 7988test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 7989 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
7990 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7991 ;;
8a2fc586
AK
7992esac
7993
ad6254c5
AK
7994
7995
7996
7997for ac_header in stdlib.h unistd.h
7998do
ec6a6fbe 7999as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 8000if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
8001 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8002$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8003if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8004 $as_echo_n "(cached) " >&6
ad6254c5 8005fi
ec6a6fbe
AK
8006ac_res=`eval 'as_val=${'$as_ac_Header'}
8007 $as_echo "$as_val"'`
8008 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8009$as_echo "$ac_res" >&6; }
ad6254c5
AK
8010else
8011 # Is the header compilable?
ec6a6fbe
AK
8012{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8013$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 8014cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8015/* confdefs.h. */
8016_ACEOF
8017cat confdefs.h >>conftest.$ac_ext
8018cat >>conftest.$ac_ext <<_ACEOF
8019/* end confdefs.h. */
8020$ac_includes_default
8021#include <$ac_header>
8022_ACEOF
8023rm -f conftest.$ac_objext
7a197a62
AK
8024if { (ac_try="$ac_compile"
8025case "(($ac_try" in
8026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027 *) ac_try_echo=$ac_try;;
8028esac
ec6a6fbe
AK
8029eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8030$as_echo "$ac_try_echo") >&5
7a197a62 8031 (eval "$ac_compile") 2>conftest.er1
ad6254c5 8032 ac_status=$?
8a2fc586
AK
8033 grep -v '^ *+' conftest.er1 >conftest.err
8034 rm -f conftest.er1
8035 cat conftest.err >&5
ec6a6fbe 8036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8037 (exit $ac_status); } && {
8038 test -z "$ac_c_werror_flag" ||
8039 test ! -s conftest.err
8040 } && test -s conftest.$ac_objext; then
ad6254c5
AK
8041 ac_header_compiler=yes
8042else
ec6a6fbe 8043 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8044sed 's/^/| /' conftest.$ac_ext >&5
8045
7a197a62 8046 ac_header_compiler=no
ad6254c5 8047fi
7a197a62
AK
8048
8049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
8050{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8051$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
8052
8053# Is the header present?
ec6a6fbe
AK
8054{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8055$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 8056cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8057/* confdefs.h. */
8058_ACEOF
8059cat confdefs.h >>conftest.$ac_ext
8060cat >>conftest.$ac_ext <<_ACEOF
8061/* end confdefs.h. */
8062#include <$ac_header>
8063_ACEOF
7a197a62
AK
8064if { (ac_try="$ac_cpp conftest.$ac_ext"
8065case "(($ac_try" in
8066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8067 *) ac_try_echo=$ac_try;;
8068esac
ec6a6fbe
AK
8069eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8070$as_echo "$ac_try_echo") >&5
7a197a62 8071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
8072 ac_status=$?
8073 grep -v '^ *+' conftest.er1 >conftest.err
8074 rm -f conftest.er1
8075 cat conftest.err >&5
ec6a6fbe 8076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8077 (exit $ac_status); } >/dev/null && {
8078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8079 test ! -s conftest.err
8080 }; then
ad6254c5
AK
8081 ac_header_preproc=yes
8082else
ec6a6fbe 8083 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8084sed 's/^/| /' conftest.$ac_ext >&5
8085
8086 ac_header_preproc=no
8087fi
7a197a62 8088
ad6254c5 8089rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
8090{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8091$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
8092
8093# So? What about this header?
8a2fc586
AK
8094case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8095 yes:no: )
ec6a6fbe
AK
8096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8097$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8099$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 8100 ac_header_preproc=yes
ad6254c5 8101 ;;
8a2fc586 8102 no:yes:* )
ec6a6fbe
AK
8103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8104$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8106$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8108$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8110$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8112$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8114$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 8115
ad6254c5
AK
8116 ;;
8117esac
ec6a6fbe
AK
8118{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8119$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8120if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8121 $as_echo_n "(cached) " >&6
ad6254c5 8122else
8a2fc586 8123 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 8124fi
ec6a6fbe
AK
8125ac_res=`eval 'as_val=${'$as_ac_Header'}
8126 $as_echo "$as_val"'`
8127 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8128$as_echo "$ac_res" >&6; }
ad6254c5
AK
8129
8130fi
ec6a6fbe
AK
8131as_val=`eval 'as_val=${'$as_ac_Header'}
8132 $as_echo "$as_val"'`
8133 if test "x$as_val" = x""yes; then
ad6254c5 8134 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8135#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8136_ACEOF
8137
8138fi
8139
8140done
8141
8142
8143for ac_func in getpagesize
8144do
ec6a6fbe
AK
8145as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8146{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8147$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8148if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8149 $as_echo_n "(cached) " >&6
ad6254c5
AK
8150else
8151 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8152/* confdefs.h. */
8153_ACEOF
8154cat confdefs.h >>conftest.$ac_ext
8155cat >>conftest.$ac_ext <<_ACEOF
8156/* end confdefs.h. */
8a2fc586
AK
8157/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8159#define $ac_func innocuous_$ac_func
8160
ad6254c5
AK
8161/* System header to define __stub macros and hopefully few prototypes,
8162 which can conflict with char $ac_func (); below.
8163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8164 <limits.h> exists even on freestanding compilers. */
8a2fc586 8165
ad6254c5
AK
8166#ifdef __STDC__
8167# include <limits.h>
8168#else
8169# include <assert.h>
8170#endif
8a2fc586
AK
8171
8172#undef $ac_func
8173
7a197a62
AK
8174/* Override any GCC internal prototype to avoid an error.
8175 Use char because int might match the return type of a GCC
8176 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8177#ifdef __cplusplus
8178extern "C"
ad6254c5 8179#endif
ad6254c5
AK
8180char $ac_func ();
8181/* The GNU C library defines this for functions which it implements
8182 to always fail with ENOSYS. Some functions are actually named
8183 something starting with __ and the normal name is an alias. */
7a197a62 8184#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8185choke me
ad6254c5
AK
8186#endif
8187
8188int
8189main ()
8190{
7a197a62 8191return $ac_func ();
ad6254c5
AK
8192 ;
8193 return 0;
8194}
8195_ACEOF
8196rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8197if { (ac_try="$ac_link"
8198case "(($ac_try" in
8199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8200 *) ac_try_echo=$ac_try;;
8201esac
ec6a6fbe
AK
8202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8203$as_echo "$ac_try_echo") >&5
7a197a62 8204 (eval "$ac_link") 2>conftest.er1
ad6254c5 8205 ac_status=$?
8a2fc586
AK
8206 grep -v '^ *+' conftest.er1 >conftest.err
8207 rm -f conftest.er1
8208 cat conftest.err >&5
ec6a6fbe 8209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8210 (exit $ac_status); } && {
8211 test -z "$ac_c_werror_flag" ||
8212 test ! -s conftest.err
ec6a6fbe
AK
8213 } && test -s conftest$ac_exeext && {
8214 test "$cross_compiling" = yes ||
8215 $as_test_x conftest$ac_exeext
8216 }; then
ad6254c5
AK
8217 eval "$as_ac_var=yes"
8218else
ec6a6fbe 8219 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8220sed 's/^/| /' conftest.$ac_ext >&5
8221
7a197a62 8222 eval "$as_ac_var=no"
ad6254c5 8223fi
7a197a62 8224
ec6a6fbe 8225rm -rf conftest.dSYM
25fbec5b 8226rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8227 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8228fi
ec6a6fbe
AK
8229ac_res=`eval 'as_val=${'$as_ac_var'}
8230 $as_echo "$as_val"'`
8231 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8232$as_echo "$ac_res" >&6; }
8233as_val=`eval 'as_val=${'$as_ac_var'}
8234 $as_echo "$as_val"'`
8235 if test "x$as_val" = x""yes; then
ad6254c5 8236 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8237#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8238_ACEOF
8239
8240fi
8241done
8242
ec6a6fbe
AK
8243{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8244$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 8245if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 8246 $as_echo_n "(cached) " >&6
ad6254c5
AK
8247else
8248 if test "$cross_compiling" = yes; then
8249 ac_cv_func_mmap_fixed_mapped=no
8250else
8251 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8252/* confdefs.h. */
8253_ACEOF
8254cat confdefs.h >>conftest.$ac_ext
8255cat >>conftest.$ac_ext <<_ACEOF
8256/* end confdefs.h. */
8257$ac_includes_default
8258/* malloc might have been renamed as rpl_malloc. */
8259#undef malloc
8260
8261/* Thanks to Mike Haertel and Jim Avera for this test.
8262 Here is a matrix of mmap possibilities:
8263 mmap private not fixed
8264 mmap private fixed at somewhere currently unmapped
8265 mmap private fixed at somewhere already mapped
8266 mmap shared not fixed
8267 mmap shared fixed at somewhere currently unmapped
8268 mmap shared fixed at somewhere already mapped
8269 For private mappings, we should verify that changes cannot be read()
8270 back from the file, nor mmap's back from the file at a different
8271 address. (There have been systems where private was not correctly
8272 implemented like the infamous i386 svr4.0, and systems where the
8273 VM page cache was not coherent with the file system buffer cache
8274 like early versions of FreeBSD and possibly contemporary NetBSD.)
8275 For shared mappings, we should conversely verify that changes get
8276 propagated back to all the places they're supposed to be.
8277
8278 Grep wants private fixed already mapped.
8279 The main things grep needs to know about mmap are:
8280 * does it exist and is it safe to write into the mmap'd area
8281 * how to use it (BSD variants) */
8282
8283#include <fcntl.h>
8284#include <sys/mman.h>
8285
25fbec5b 8286#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
8287char *malloc ();
8288#endif
8289
8290/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 8291#ifndef HAVE_GETPAGESIZE
ad6254c5 8292/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 8293# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
8294# define HAVE_SYS_PARAM_H 1
8295# endif
8296
8297# ifdef _SC_PAGESIZE
8298# define getpagesize() sysconf(_SC_PAGESIZE)
8299# else /* no _SC_PAGESIZE */
25fbec5b 8300# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
8301# include <sys/param.h>
8302# ifdef EXEC_PAGESIZE
8303# define getpagesize() EXEC_PAGESIZE
8304# else /* no EXEC_PAGESIZE */
8305# ifdef NBPG
8306# define getpagesize() NBPG * CLSIZE
8307# ifndef CLSIZE
8308# define CLSIZE 1
8309# endif /* no CLSIZE */
8310# else /* no NBPG */
8311# ifdef NBPC
8312# define getpagesize() NBPC
8313# else /* no NBPC */
8314# ifdef PAGESIZE
8315# define getpagesize() PAGESIZE
8316# endif /* PAGESIZE */
8317# endif /* no NBPC */
8318# endif /* no NBPG */
8319# endif /* no EXEC_PAGESIZE */
8320# else /* no HAVE_SYS_PARAM_H */
8321# define getpagesize() 8192 /* punt totally */
8322# endif /* no HAVE_SYS_PARAM_H */
8323# endif /* no _SC_PAGESIZE */
8324
8325#endif /* no HAVE_GETPAGESIZE */
8326
8327int
8328main ()
8329{
8330 char *data, *data2, *data3;
8331 int i, pagesize;
8332 int fd;
8333
8334 pagesize = getpagesize ();
8335
8336 /* First, make a file with some known garbage in it. */
8337 data = (char *) malloc (pagesize);
8338 if (!data)
7a197a62 8339 return 1;
ad6254c5
AK
8340 for (i = 0; i < pagesize; ++i)
8341 *(data + i) = rand ();
8342 umask (0);
8343 fd = creat ("conftest.mmap", 0600);
8344 if (fd < 0)
7a197a62 8345 return 1;
ad6254c5 8346 if (write (fd, data, pagesize) != pagesize)
7a197a62 8347 return 1;
ad6254c5
AK
8348 close (fd);
8349
8350 /* Next, try to mmap the file at a fixed address which already has
8351 something else allocated at it. If we can, also make sure that
8352 we see the same garbage. */
8353 fd = open ("conftest.mmap", O_RDWR);
8354 if (fd < 0)
7a197a62 8355 return 1;
ad6254c5
AK
8356 data2 = (char *) malloc (2 * pagesize);
8357 if (!data2)
7a197a62
AK
8358 return 1;
8359 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 8360 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 8361 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 8362 return 1;
ad6254c5
AK
8363 for (i = 0; i < pagesize; ++i)
8364 if (*(data + i) != *(data2 + i))
7a197a62 8365 return 1;
ad6254c5
AK
8366
8367 /* Finally, make sure that changes to the mapped area do not
8368 percolate back to the file as seen by read(). (This is a bug on
8369 some variants of i386 svr4.0.) */
8370 for (i = 0; i < pagesize; ++i)
8371 *(data2 + i) = *(data2 + i) + 1;
8372 data3 = (char *) malloc (pagesize);
8373 if (!data3)
7a197a62 8374 return 1;
ad6254c5 8375 if (read (fd, data3, pagesize) != pagesize)
7a197a62 8376 return 1;
ad6254c5
AK
8377 for (i = 0; i < pagesize; ++i)
8378 if (*(data + i) != *(data3 + i))
7a197a62 8379 return 1;
ad6254c5 8380 close (fd);
7a197a62 8381 return 0;
ad6254c5
AK
8382}
8383_ACEOF
8384rm -f conftest$ac_exeext
7a197a62
AK
8385if { (ac_try="$ac_link"
8386case "(($ac_try" in
8387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388 *) ac_try_echo=$ac_try;;
8389esac
ec6a6fbe
AK
8390eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8391$as_echo "$ac_try_echo") >&5
7a197a62 8392 (eval "$ac_link") 2>&5
ad6254c5 8393 ac_status=$?
ec6a6fbe 8394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8396 { (case "(($ac_try" in
8397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398 *) ac_try_echo=$ac_try;;
8399esac
ec6a6fbe
AK
8400eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8401$as_echo "$ac_try_echo") >&5
7a197a62 8402 (eval "$ac_try") 2>&5
ad6254c5 8403 ac_status=$?
ec6a6fbe 8404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8405 (exit $ac_status); }; }; then
8406 ac_cv_func_mmap_fixed_mapped=yes
8407else
ec6a6fbe
AK
8408 $as_echo "$as_me: program exited with status $ac_status" >&5
8409$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8410sed 's/^/| /' conftest.$ac_ext >&5
8411
8412( exit $ac_status )
8413ac_cv_func_mmap_fixed_mapped=no
8414fi
ec6a6fbe 8415rm -rf conftest.dSYM
7a197a62 8416rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8417fi
7a197a62
AK
8418
8419
ad6254c5 8420fi
ec6a6fbe
AK
8421{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8422$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
8423if test $ac_cv_func_mmap_fixed_mapped = yes; then
8424
8425cat >>confdefs.h <<\_ACEOF
8426#define HAVE_MMAP 1
8427_ACEOF
8428
8429fi
8430rm -f conftest.mmap
8431
ec6a6fbe
AK
8432{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8433$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 8434if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 8435 $as_echo_n "(cached) " >&6
ad6254c5
AK
8436else
8437 if test "$cross_compiling" = yes; then
8438 ac_cv_func_stat_empty_string_bug=yes
8439else
8440 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8441/* confdefs.h. */
8442_ACEOF
8443cat confdefs.h >>conftest.$ac_ext
8444cat >>conftest.$ac_ext <<_ACEOF
8445/* end confdefs.h. */
8446$ac_includes_default
8447int
8448main ()
8449{
8450struct stat sbuf;
7a197a62 8451 return stat ("", &sbuf) == 0;
ad6254c5
AK
8452 ;
8453 return 0;
8454}
8455_ACEOF
8456rm -f conftest$ac_exeext
7a197a62
AK
8457if { (ac_try="$ac_link"
8458case "(($ac_try" in
8459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460 *) ac_try_echo=$ac_try;;
8461esac
ec6a6fbe
AK
8462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8463$as_echo "$ac_try_echo") >&5
7a197a62 8464 (eval "$ac_link") 2>&5
ad6254c5 8465 ac_status=$?
ec6a6fbe 8466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8468 { (case "(($ac_try" in
8469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8470 *) ac_try_echo=$ac_try;;
8471esac
ec6a6fbe
AK
8472eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8473$as_echo "$ac_try_echo") >&5
7a197a62 8474 (eval "$ac_try") 2>&5
ad6254c5 8475 ac_status=$?
ec6a6fbe 8476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8477 (exit $ac_status); }; }; then
7a197a62 8478 ac_cv_func_stat_empty_string_bug=no
ad6254c5 8479else
ec6a6fbe
AK
8480 $as_echo "$as_me: program exited with status $ac_status" >&5
8481$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8482sed 's/^/| /' conftest.$ac_ext >&5
8483
8484( exit $ac_status )
7a197a62 8485ac_cv_func_stat_empty_string_bug=yes
ad6254c5 8486fi
ec6a6fbe 8487rm -rf conftest.dSYM
7a197a62 8488rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8489fi
7a197a62
AK
8490
8491
ad6254c5 8492fi
ec6a6fbe
AK
8493{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8494$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 8495if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 8496 case " $LIBOBJS " in
8a2fc586 8497 *" stat.$ac_objext "* ) ;;
7a197a62
AK
8498 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8499 ;;
8a2fc586
AK
8500esac
8501
ad6254c5
AK
8502
8503cat >>confdefs.h <<_ACEOF
8504#define HAVE_STAT_EMPTY_STRING_BUG 1
8505_ACEOF
8506
8507fi
8508
ec6a6fbe
AK
8509{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8510$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 8511if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 8512 $as_echo_n "(cached) " >&6
ad6254c5
AK
8513else
8514 if test "$cross_compiling" = yes; then
8515 ac_cv_func_strtod=no
8516else
8517 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8518/* confdefs.h. */
8519_ACEOF
8520cat confdefs.h >>conftest.$ac_ext
8521cat >>conftest.$ac_ext <<_ACEOF
8522/* end confdefs.h. */
8523
7a197a62
AK
8524$ac_includes_default
8525#ifndef strtod
ad6254c5 8526double strtod ();
7a197a62 8527#endif
ad6254c5
AK
8528int
8529main()
8530{
8531 {
8532 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8533 char *string = " +69";
8534 char *term;
8535 double value;
8536 value = strtod (string, &term);
8537 if (value != 69 || term != (string + 4))
7a197a62 8538 return 1;
ad6254c5
AK
8539 }
8540
8541 {
8542 /* Under Solaris 2.4, strtod returns the wrong value for the
8543 terminating character under some conditions. */
8544 char *string = "NaN";
8545 char *term;
8546 strtod (string, &term);
8547 if (term != string && *(term - 1) == 0)
7a197a62 8548 return 1;
ad6254c5 8549 }
7a197a62 8550 return 0;
ad6254c5
AK
8551}
8552
8553_ACEOF
8554rm -f conftest$ac_exeext
7a197a62
AK
8555if { (ac_try="$ac_link"
8556case "(($ac_try" in
8557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8559esac
ec6a6fbe
AK
8560eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8561$as_echo "$ac_try_echo") >&5
7a197a62 8562 (eval "$ac_link") 2>&5
ad6254c5 8563 ac_status=$?
ec6a6fbe 8564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8566 { (case "(($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_try") 2>&5
ad6254c5 8573 ac_status=$?
ec6a6fbe 8574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8575 (exit $ac_status); }; }; then
8576 ac_cv_func_strtod=yes
8577else
ec6a6fbe
AK
8578 $as_echo "$as_me: program exited with status $ac_status" >&5
8579$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8580sed 's/^/| /' conftest.$ac_ext >&5
8581
8582( exit $ac_status )
8583ac_cv_func_strtod=no
8584fi
ec6a6fbe 8585rm -rf conftest.dSYM
7a197a62 8586rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8587fi
7a197a62
AK
8588
8589
ad6254c5 8590fi
ec6a6fbe
AK
8591{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8592$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 8593if test $ac_cv_func_strtod = no; then
7a197a62 8594 case " $LIBOBJS " in
8a2fc586 8595 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
8596 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8597 ;;
8a2fc586
AK
8598esac
8599
ec6a6fbe
AK
8600{ $as_echo "$as_me:$LINENO: checking for pow" >&5
8601$as_echo_n "checking for pow... " >&6; }
ad6254c5 8602if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 8603 $as_echo_n "(cached) " >&6
ad6254c5
AK
8604else
8605 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8606/* confdefs.h. */
8607_ACEOF
8608cat confdefs.h >>conftest.$ac_ext
8609cat >>conftest.$ac_ext <<_ACEOF
8610/* end confdefs.h. */
8a2fc586
AK
8611/* Define pow to an innocuous variant, in case <limits.h> declares pow.
8612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8613#define pow innocuous_pow
8614
ad6254c5
AK
8615/* System header to define __stub macros and hopefully few prototypes,
8616 which can conflict with char pow (); below.
8617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8618 <limits.h> exists even on freestanding compilers. */
8a2fc586 8619
ad6254c5
AK
8620#ifdef __STDC__
8621# include <limits.h>
8622#else
8623# include <assert.h>
8624#endif
8a2fc586
AK
8625
8626#undef pow
8627
7a197a62
AK
8628/* Override any GCC internal prototype to avoid an error.
8629 Use char because int might match the return type of a GCC
8630 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8631#ifdef __cplusplus
8632extern "C"
ad6254c5 8633#endif
ad6254c5
AK
8634char pow ();
8635/* The GNU C library defines this for functions which it implements
8636 to always fail with ENOSYS. Some functions are actually named
8637 something starting with __ and the normal name is an alias. */
7a197a62 8638#if defined __stub_pow || defined __stub___pow
ad6254c5 8639choke me
ad6254c5
AK
8640#endif
8641
8642int
8643main ()
8644{
7a197a62 8645return pow ();
ad6254c5
AK
8646 ;
8647 return 0;
8648}
8649_ACEOF
8650rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8651if { (ac_try="$ac_link"
8652case "(($ac_try" in
8653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8654 *) ac_try_echo=$ac_try;;
8655esac
ec6a6fbe
AK
8656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8657$as_echo "$ac_try_echo") >&5
7a197a62 8658 (eval "$ac_link") 2>conftest.er1
ad6254c5 8659 ac_status=$?
8a2fc586
AK
8660 grep -v '^ *+' conftest.er1 >conftest.err
8661 rm -f conftest.er1
8662 cat conftest.err >&5
ec6a6fbe 8663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8664 (exit $ac_status); } && {
8665 test -z "$ac_c_werror_flag" ||
8666 test ! -s conftest.err
ec6a6fbe
AK
8667 } && test -s conftest$ac_exeext && {
8668 test "$cross_compiling" = yes ||
8669 $as_test_x conftest$ac_exeext
8670 }; then
ad6254c5
AK
8671 ac_cv_func_pow=yes
8672else
ec6a6fbe 8673 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8674sed 's/^/| /' conftest.$ac_ext >&5
8675
7a197a62 8676 ac_cv_func_pow=no
ad6254c5 8677fi
7a197a62 8678
ec6a6fbe 8679rm -rf conftest.dSYM
25fbec5b 8680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8681 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8682fi
ec6a6fbe
AK
8683{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8684$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
8685
8686if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
8687 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8688$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 8689if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 8690 $as_echo_n "(cached) " >&6
ad6254c5
AK
8691else
8692 ac_check_lib_save_LIBS=$LIBS
8693LIBS="-lm $LIBS"
8694cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8695/* confdefs.h. */
8696_ACEOF
8697cat confdefs.h >>conftest.$ac_ext
8698cat >>conftest.$ac_ext <<_ACEOF
8699/* end confdefs.h. */
8700
7a197a62
AK
8701/* Override any GCC internal prototype to avoid an error.
8702 Use char because int might match the return type of a GCC
8703 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8704#ifdef __cplusplus
8705extern "C"
8706#endif
ad6254c5
AK
8707char pow ();
8708int
8709main ()
8710{
7a197a62 8711return pow ();
ad6254c5
AK
8712 ;
8713 return 0;
8714}
8715_ACEOF
8716rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8717if { (ac_try="$ac_link"
8718case "(($ac_try" in
8719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8720 *) ac_try_echo=$ac_try;;
8721esac
ec6a6fbe
AK
8722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8723$as_echo "$ac_try_echo") >&5
7a197a62 8724 (eval "$ac_link") 2>conftest.er1
ad6254c5 8725 ac_status=$?
8a2fc586
AK
8726 grep -v '^ *+' conftest.er1 >conftest.err
8727 rm -f conftest.er1
8728 cat conftest.err >&5
ec6a6fbe 8729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8730 (exit $ac_status); } && {
8731 test -z "$ac_c_werror_flag" ||
8732 test ! -s conftest.err
ec6a6fbe
AK
8733 } && test -s conftest$ac_exeext && {
8734 test "$cross_compiling" = yes ||
8735 $as_test_x conftest$ac_exeext
8736 }; then
ad6254c5
AK
8737 ac_cv_lib_m_pow=yes
8738else
ec6a6fbe 8739 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8740sed 's/^/| /' conftest.$ac_ext >&5
8741
7a197a62 8742 ac_cv_lib_m_pow=no
ad6254c5 8743fi
7a197a62 8744
ec6a6fbe 8745rm -rf conftest.dSYM
25fbec5b 8746rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8747 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8748LIBS=$ac_check_lib_save_LIBS
d0191583 8749fi
ec6a6fbe
AK
8750{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8751$as_echo "$ac_cv_lib_m_pow" >&6; }
8752if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
8753 POW_LIB=-lm
8754else
ec6a6fbe
AK
8755 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8756$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 8757fi
72b2cb61 8758
d0191583 8759fi
72b2cb61 8760
ad6254c5
AK
8761fi
8762
ad6254c5 8763
d0191583
JM
8764for ac_func in vprintf
8765do
ec6a6fbe
AK
8766as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8767{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8768$as_echo_n "checking for $ac_func... " >&6; }
d0191583 8769if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8770 $as_echo_n "(cached) " >&6
ad6254c5 8771else
d0191583
JM
8772 cat >conftest.$ac_ext <<_ACEOF
8773/* confdefs.h. */
8774_ACEOF
8775cat confdefs.h >>conftest.$ac_ext
8776cat >>conftest.$ac_ext <<_ACEOF
8777/* end confdefs.h. */
8778/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8780#define $ac_func innocuous_$ac_func
7a197a62 8781
d0191583
JM
8782/* System header to define __stub macros and hopefully few prototypes,
8783 which can conflict with char $ac_func (); below.
8784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8785 <limits.h> exists even on freestanding compilers. */
ad6254c5 8786
d0191583
JM
8787#ifdef __STDC__
8788# include <limits.h>
8789#else
8790# include <assert.h>
8791#endif
ad6254c5 8792
d0191583 8793#undef $ac_func
72b2cb61 8794
d0191583
JM
8795/* Override any GCC internal prototype to avoid an error.
8796 Use char because int might match the return type of a GCC
8797 builtin and then its argument prototype would still apply. */
8798#ifdef __cplusplus
8799extern "C"
8800#endif
8801char $ac_func ();
8802/* The GNU C library defines this for functions which it implements
8803 to always fail with ENOSYS. Some functions are actually named
8804 something starting with __ and the normal name is an alias. */
8805#if defined __stub_$ac_func || defined __stub___$ac_func
8806choke me
8807#endif
8808
8809int
8810main ()
8811{
8812return $ac_func ();
8813 ;
8814 return 0;
8815}
72b2cb61 8816_ACEOF
d0191583
JM
8817rm -f conftest.$ac_objext conftest$ac_exeext
8818if { (ac_try="$ac_link"
8819case "(($ac_try" in
8820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8821 *) ac_try_echo=$ac_try;;
8822esac
ec6a6fbe
AK
8823eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8824$as_echo "$ac_try_echo") >&5
d0191583
JM
8825 (eval "$ac_link") 2>conftest.er1
8826 ac_status=$?
8827 grep -v '^ *+' conftest.er1 >conftest.err
8828 rm -f conftest.er1
8829 cat conftest.err >&5
ec6a6fbe 8830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8831 (exit $ac_status); } && {
8832 test -z "$ac_c_werror_flag" ||
8833 test ! -s conftest.err
ec6a6fbe
AK
8834 } && test -s conftest$ac_exeext && {
8835 test "$cross_compiling" = yes ||
8836 $as_test_x conftest$ac_exeext
8837 }; then
d0191583
JM
8838 eval "$as_ac_var=yes"
8839else
ec6a6fbe 8840 $as_echo "$as_me: failed program was:" >&5
d0191583 8841sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8842
d0191583 8843 eval "$as_ac_var=no"
ad6254c5
AK
8844fi
8845
ec6a6fbe 8846rm -rf conftest.dSYM
d0191583
JM
8847rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8848 conftest$ac_exeext conftest.$ac_ext
7a197a62 8849fi
ec6a6fbe
AK
8850ac_res=`eval 'as_val=${'$as_ac_var'}
8851 $as_echo "$as_val"'`
8852 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8853$as_echo "$ac_res" >&6; }
8854as_val=`eval 'as_val=${'$as_ac_var'}
8855 $as_echo "$as_val"'`
8856 if test "x$as_val" = x""yes; then
d0191583 8857 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8858#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 8859_ACEOF
7a197a62 8860
ec6a6fbe
AK
8861{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8862$as_echo_n "checking for _doprnt... " >&6; }
d0191583 8863if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 8864 $as_echo_n "(cached) " >&6
ad6254c5 8865else
d0191583
JM
8866 cat >conftest.$ac_ext <<_ACEOF
8867/* confdefs.h. */
8868_ACEOF
8869cat confdefs.h >>conftest.$ac_ext
8870cat >>conftest.$ac_ext <<_ACEOF
8871/* end confdefs.h. */
8872/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8874#define _doprnt innocuous__doprnt
7a197a62 8875
d0191583
JM
8876/* System header to define __stub macros and hopefully few prototypes,
8877 which can conflict with char _doprnt (); below.
8878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8879 <limits.h> exists even on freestanding compilers. */
ad6254c5 8880
d0191583
JM
8881#ifdef __STDC__
8882# include <limits.h>
8883#else
8884# include <assert.h>
8885#endif
72b2cb61 8886
d0191583
JM
8887#undef _doprnt
8888
8889/* Override any GCC internal prototype to avoid an error.
8890 Use char because int might match the return type of a GCC
8891 builtin and then its argument prototype would still apply. */
8892#ifdef __cplusplus
8893extern "C"
8894#endif
8895char _doprnt ();
8896/* The GNU C library defines this for functions which it implements
8897 to always fail with ENOSYS. Some functions are actually named
8898 something starting with __ and the normal name is an alias. */
8899#if defined __stub__doprnt || defined __stub____doprnt
8900choke me
8901#endif
8902
8903int
8904main ()
8905{
8906return _doprnt ();
8907 ;
8908 return 0;
8909}
72b2cb61 8910_ACEOF
d0191583
JM
8911rm -f conftest.$ac_objext conftest$ac_exeext
8912if { (ac_try="$ac_link"
8913case "(($ac_try" in
8914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8915 *) ac_try_echo=$ac_try;;
8916esac
ec6a6fbe
AK
8917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8918$as_echo "$ac_try_echo") >&5
d0191583
JM
8919 (eval "$ac_link") 2>conftest.er1
8920 ac_status=$?
8921 grep -v '^ *+' conftest.er1 >conftest.err
8922 rm -f conftest.er1
8923 cat conftest.err >&5
ec6a6fbe 8924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8925 (exit $ac_status); } && {
8926 test -z "$ac_c_werror_flag" ||
8927 test ! -s conftest.err
ec6a6fbe
AK
8928 } && test -s conftest$ac_exeext && {
8929 test "$cross_compiling" = yes ||
8930 $as_test_x conftest$ac_exeext
8931 }; then
d0191583
JM
8932 ac_cv_func__doprnt=yes
8933else
ec6a6fbe 8934 $as_echo "$as_me: failed program was:" >&5
d0191583 8935sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8936
d0191583 8937 ac_cv_func__doprnt=no
ad6254c5
AK
8938fi
8939
ec6a6fbe 8940rm -rf conftest.dSYM
d0191583
JM
8941rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8942 conftest$ac_exeext conftest.$ac_ext
7a197a62 8943fi
ec6a6fbe
AK
8944{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8945$as_echo "$ac_cv_func__doprnt" >&6; }
8946if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 8947
d0191583
JM
8948cat >>confdefs.h <<\_ACEOF
8949#define HAVE_DOPRNT 1
8950_ACEOF
ad6254c5 8951
7a197a62
AK
8952fi
8953
d0191583
JM
8954fi
8955done
8b1a3214 8956
ad6254c5 8957
7a197a62 8958
9c961554 8959################################################################################
ec6a6fbe
AK
8960{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
8961$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
8962# Check whether --enable-static_link was given.
8963if test "${enable_static_link+set}" = set; then
8964 enableval=$enable_static_link; STATIC_LINK=$enableval
8965else
8966 STATIC_LINK=no
8967fi
8968
ec6a6fbe
AK
8969{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
8970$as_echo "$STATIC_LINK" >&6; }
9c961554 8971
d0191583 8972################################################################################
ad6254c5 8973
ad6254c5
AK
8974
8975################################################################################
ec6a6fbe
AK
8976{ $as_echo "$as_me:$LINENO: checking file owner" >&5
8977$as_echo_n "checking file owner... " >&6; }
d0191583
JM
8978OWNER="root"
8979
8980
8981# Check whether --with-user was given.
8982if test "${with_user+set}" = set; then
8983 withval=$with_user; OWNER="$withval"
7a197a62
AK
8984fi
8985
ec6a6fbe
AK
8986{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
8987$as_echo "$OWNER" >&6; }
ad6254c5 8988
d0191583
JM
8989if test x$OWNER != x; then
8990 OWNER="-o $OWNER"
ad6254c5
AK
8991fi
8992
8993################################################################################
ec6a6fbe
AK
8994{ $as_echo "$as_me:$LINENO: checking group owner" >&5
8995$as_echo_n "checking group owner... " >&6; }
d0191583 8996GROUP="root"
ad6254c5 8997
d0191583
JM
8998# Check whether --with-group was given.
8999if test "${with_group+set}" = set; then
9000 withval=$with_group; GROUP="$withval"
7a197a62
AK
9001fi
9002
ec6a6fbe
AK
9003{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
9004$as_echo "$GROUP" >&6; }
d0191583
JM
9005
9006if test x$GROUP != x; then
9007 GROUP="-g $GROUP"
9008fi
ad6254c5 9009
24bbc4d7 9010################################################################################
ec6a6fbe
AK
9011{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
9012$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
9013
9014
9015# Check whether --with-device-uid was given.
9016if test "${with_device_uid+set}" = set; then
9017 withval=$with_device_uid; DM_DEVICE_UID="$withval"
9018else
9019 DM_DEVICE_UID="0"
9020fi
9021
ec6a6fbe
AK
9022{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
9023$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
9024
9025################################################################################
ec6a6fbe
AK
9026{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
9027$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
9028
9029
9030# Check whether --with-device-gid was given.
9031if test "${with_device_gid+set}" = set; then
9032 withval=$with_device_gid; DM_DEVICE_GID="$withval"
9033else
9034 DM_DEVICE_GID="0"
9035fi
9036
ec6a6fbe
AK
9037{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
9038$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 9039
93bd259b 9040################################################################################
ec6a6fbe
AK
9041{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
9042$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
9043
9044
9045# Check whether --with-device-mode was given.
9046if test "${with_device_mode+set}" = set; then
9047 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
9048else
9049 DM_DEVICE_MODE="0600"
9050fi
9051
ec6a6fbe
AK
9052{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
9053$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 9054
ad6254c5 9055################################################################################
ec6a6fbe
AK
9056{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
9057$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
9058# Check whether --enable-lvm1_fallback was given.
9059if test "${enable_lvm1_fallback+set}" = set; then
9060 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
9061else
9062 LVM1_FALLBACK=no
7a197a62
AK
9063fi
9064
ec6a6fbe
AK
9065{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
9066$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 9067
d0191583 9068if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
9069
9070cat >>confdefs.h <<\_ACEOF
d0191583 9071#define LVM1_FALLBACK 1
72b2cb61
AK
9072_ACEOF
9073
ad6254c5
AK
9074fi
9075
9076################################################################################
ec6a6fbe
AK
9077{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9078$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
9079
9080# Check whether --with-lvm1 was given.
9081if test "${with_lvm1+set}" = set; then
9082 withval=$with_lvm1; LVM1="$withval"
9083else
9084 LVM1="internal"
7a197a62
AK
9085fi
9086
ec6a6fbe
AK
9087{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9088$as_echo "$LVM1" >&6; }
ad6254c5 9089
d0191583 9090if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 9091 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 9092" >&5
ec6a6fbe 9093$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
9094" >&2;}
9095 { (exit 1); exit 1; }; }
9096fi;
9097
9098if test x$LVM1 = xinternal; then
72b2cb61
AK
9099
9100cat >>confdefs.h <<\_ACEOF
d0191583 9101#define LVM1_INTERNAL 1
72b2cb61
AK
9102_ACEOF
9103
ad6254c5
AK
9104fi
9105
9106################################################################################
ec6a6fbe
AK
9107{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9108$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
9109
9110# Check whether --with-pool was given.
9111if test "${with_pool+set}" = set; then
9112 withval=$with_pool; POOL="$withval"
ad6254c5 9113else
d0191583 9114 POOL="internal"
7a197a62
AK
9115fi
9116
ec6a6fbe
AK
9117{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
9118$as_echo "$POOL" >&6; }
ad6254c5 9119
d0191583 9120if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 9121 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 9122" >&5
ec6a6fbe 9123$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
9124" >&2;}
9125 { (exit 1); exit 1; }; }
9126fi;
7a197a62 9127
d0191583
JM
9128if test x$POOL = xinternal; then
9129
9130cat >>confdefs.h <<\_ACEOF
9131#define POOL_INTERNAL 1
9132_ACEOF
9133
9134fi
ad6254c5 9135
06f62ad1 9136################################################################################
ec6a6fbe
AK
9137{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9138$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
9139
9140# Check whether --with-cluster was given.
9141if test "${with_cluster+set}" = set; then
9142 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
9143fi
9144
ec6a6fbe
AK
9145{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9146$as_echo "$CLUSTER" >&6; }
06f62ad1 9147
d0191583 9148if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 9149 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 9150" >&5
ec6a6fbe 9151$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
9152" >&2;}
9153 { (exit 1); exit 1; }; }
d0191583 9154fi;
06f62ad1 9155
d0191583 9156if test x$CLUSTER = xinternal; then
72b2cb61
AK
9157
9158cat >>confdefs.h <<\_ACEOF
d0191583 9159#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
9160_ACEOF
9161
15d91f5a 9162fi
ad6254c5
AK
9163
9164################################################################################
ec6a6fbe
AK
9165{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9166$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 9167
d0191583
JM
9168# Check whether --with-snapshots was given.
9169if test "${with_snapshots+set}" = set; then
9170 withval=$with_snapshots; SNAPSHOTS="$withval"
9171else
9172 SNAPSHOTS="internal"
ad6254c5
AK
9173fi
9174
ec6a6fbe
AK
9175{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9176$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 9177
d0191583 9178if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 9179 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 9180" >&5
ec6a6fbe 9181$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
9182" >&2;}
9183 { (exit 1); exit 1; }; }
9184fi;
9185
9186if test x$SNAPSHOTS = xinternal; then
9187
9188cat >>confdefs.h <<\_ACEOF
9189#define SNAPSHOT_INTERNAL 1
9190_ACEOF
ad6254c5 9191
ad6254c5 9192fi
7a197a62 9193
d0191583 9194################################################################################
ec6a6fbe
AK
9195{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9196$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
9197
9198# Check whether --with-mirrors was given.
9199if test "${with_mirrors+set}" = set; then
9200 withval=$with_mirrors; MIRRORS="$withval"
9201else
9202 MIRRORS="internal"
ad6254c5 9203fi
ad6254c5 9204
ec6a6fbe
AK
9205{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9206$as_echo "$MIRRORS" >&6; }
ad6254c5 9207
d0191583 9208if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 9209 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 9210" >&5
ec6a6fbe 9211$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
9212" >&2;}
9213 { (exit 1); exit 1; }; }
9214fi;
ad6254c5 9215
d0191583 9216if test x$MIRRORS = xinternal; then
ad6254c5 9217
d0191583
JM
9218cat >>confdefs.h <<\_ACEOF
9219#define MIRRORED_INTERNAL 1
ad6254c5 9220_ACEOF
8a2fc586 9221
d0191583 9222fi
8a2fc586 9223
d0191583 9224################################################################################
ec6a6fbe
AK
9225{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9226$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
9227# Check whether --enable-readline was given.
9228if test "${enable_readline+set}" = set; then
9229 enableval=$enable_readline; READLINE=$enableval
9230else
06e459df 9231 READLINE=maybe
d0191583 9232fi
8a2fc586 9233
ec6a6fbe
AK
9234{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9235$as_echo "$READLINE" >&6; }
8a2fc586 9236
d0191583 9237################################################################################
ec6a6fbe
AK
9238{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9239$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
9240# Check whether --enable-realtime was given.
9241if test "${enable_realtime+set}" = set; then
9242 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 9243fi
ad6254c5 9244
ec6a6fbe
AK
9245{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9246$as_echo "$REALTIME" >&6; }
d0191583
JM
9247
9248################################################################################
90c80887 9249pkg_config_init() {
e2997b73
AK
9250
9251
9252if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9253 if test -n "$ac_tool_prefix"; then
9254 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9255set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9256{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9257$as_echo_n "checking for $ac_word... " >&6; }
9258if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9259 $as_echo_n "(cached) " >&6
9260else
9261 case $PKG_CONFIG in
9262 [\\/]* | ?:[\\/]*)
9263 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9264 ;;
9265 *)
9266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9267for as_dir in $PATH
9268do
9269 IFS=$as_save_IFS
9270 test -z "$as_dir" && as_dir=.
9271 for ac_exec_ext in '' $ac_executable_extensions; do
9272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9273 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9274 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9275 break 2
9276 fi
9277done
9278done
9279IFS=$as_save_IFS
9280
9281 ;;
9282esac
9283fi
9284PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9285if test -n "$PKG_CONFIG"; then
9286 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9287$as_echo "$PKG_CONFIG" >&6; }
9288else
9289 { $as_echo "$as_me:$LINENO: result: no" >&5
9290$as_echo "no" >&6; }
9291fi
9292
9293
9294fi
9295if test -z "$ac_cv_path_PKG_CONFIG"; then
9296 ac_pt_PKG_CONFIG=$PKG_CONFIG
9297 # Extract the first word of "pkg-config", so it can be a program name with args.
9298set dummy pkg-config; ac_word=$2
9299{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9300$as_echo_n "checking for $ac_word... " >&6; }
9301if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9302 $as_echo_n "(cached) " >&6
9303else
9304 case $ac_pt_PKG_CONFIG in
9305 [\\/]* | ?:[\\/]*)
9306 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9307 ;;
9308 *)
9309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9310for as_dir in $PATH
9311do
9312 IFS=$as_save_IFS
9313 test -z "$as_dir" && as_dir=.
9314 for ac_exec_ext in '' $ac_executable_extensions; do
9315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9316 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9317 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9318 break 2
9319 fi
9320done
9321done
9322IFS=$as_save_IFS
9323
9324 ;;
9325esac
9326fi
9327ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9328if test -n "$ac_pt_PKG_CONFIG"; then
9329 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9330$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9331else
9332 { $as_echo "$as_me:$LINENO: result: no" >&5
9333$as_echo "no" >&6; }
9334fi
9335
9336 if test "x$ac_pt_PKG_CONFIG" = x; then
9337 PKG_CONFIG=""
9338 else
9339 case $cross_compiling:$ac_tool_warned in
9340yes:)
9341{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9343ac_tool_warned=yes ;;
9344esac
9345 PKG_CONFIG=$ac_pt_PKG_CONFIG
9346 fi
9347else
9348 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9349fi
9350
9351fi
9352if test -n "$PKG_CONFIG"; then
9353 _pkg_min_version=0.9.0
9354 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9355$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9356 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9357 { $as_echo "$as_me:$LINENO: result: yes" >&5
9358$as_echo "yes" >&6; }
9359 else
9360 { $as_echo "$as_me:$LINENO: result: no" >&5
9361$as_echo "no" >&6; }
9362 PKG_CONFIG=""
9363 fi
9364
9365fi
9366
9367pkg_failed=no
a946372e
AK
9368{ $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
9369$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
e2997b73 9370
a946372e
AK
9371if test -n "$PKGCONFIGINIT_CFLAGS"; then
9372 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
e2997b73
AK
9373 elif test -n "$PKG_CONFIG"; then
9374 if test -n "$PKG_CONFIG" && \
a946372e
AK
9375 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9376 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
9377 ac_status=$?
9378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); }; then
a946372e 9380 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
e2997b73
AK
9381else
9382 pkg_failed=yes
9383fi
9384 else
9385 pkg_failed=untried
9386fi
a946372e
AK
9387if test -n "$PKGCONFIGINIT_LIBS"; then
9388 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
e2997b73
AK
9389 elif test -n "$PKG_CONFIG"; then
9390 if test -n "$PKG_CONFIG" && \
a946372e
AK
9391 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9392 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
9393 ac_status=$?
9394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; then
a946372e 9396 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
e2997b73
AK
9397else
9398 pkg_failed=yes
9399fi
9400 else
9401 pkg_failed=untried
9402fi
9403
9404
9405
9406if test $pkg_failed = yes; then
9407
9408if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9409 _pkg_short_errors_supported=yes
9410else
9411 _pkg_short_errors_supported=no
9412fi
9413 if test $_pkg_short_errors_supported = yes; then
a946372e 9414 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
e2997b73 9415 else
a946372e 9416 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
e2997b73
AK
9417 fi
9418 # Put the nasty error message in config.log where it belongs
a946372e 9419 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
e2997b73
AK
9420
9421 { $as_echo "$as_me:$LINENO: result: no" >&5
9422$as_echo "no" >&6; }
a946372e
AK
9423 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9424$as_echo "pkg-config initialized" >&6; }
e2997b73 9425elif test $pkg_failed = untried; then
a946372e
AK
9426 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9427$as_echo "pkg-config initialized" >&6; }
e2997b73 9428else
a946372e
AK
9429 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
9430 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
e2997b73
AK
9431 { $as_echo "$as_me:$LINENO: result: yes" >&5
9432$as_echo "yes" >&6; }
9433 :
9434fi
90c80887
AK
9435 PKGCONFIG_INIT=1
9436}
9437
9438################################################################################
9439{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9440$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
9441
9442# Check whether --with-clvmd was given.
9443if test "${with_clvmd+set}" = set; then
9444 withval=$with_clvmd; CLVMD="$withval"
9445else
9446 CLVMD="none"
9447fi
9448
9449if test x$CLVMD = xyes; then
9450 CLVMD=all
9451fi
9452{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9453$as_echo "$CLVMD" >&6; }
9454
9455if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9456 CLUSTER=internal
9457fi
9458
9459if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
9460 pkg_config_init
9461fi
9462
9463
9464if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
9465 BUILDGULM=yes
9466fi
9467if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
9468 BUILDCOROSYNC=yes
9469fi
9470if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
9471 BUILDOPENAIS=yes
9472fi
9473if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
9474 BUILDCMAN=yes
9475fi
9476
9477if test x$BUILDGULM = xyes; then
9478 if test x$BUILDCOROSYNC = xyes || \
9479 test x$BUILDOPENAIS = xyes; then
9480 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
9481$as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
9482 { (exit 1); exit 1; }; }
9483 fi
a946372e 9484fi
e2997b73 9485
a946372e
AK
9486soft_bailout() {
9487 NOTFOUND=1
9488}
e2997b73 9489
a946372e
AK
9490hard_bailout() {
9491 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
9492$as_echo "$as_me: error: bailing out" >&2;}
9493 { (exit 1); exit 1; }; }
9494}
9495
9496if test x$CLVMD = xall; then
9497 bailout=soft_bailout
9498 BUILDGULM=yes
9499 BUILDCMAN=yes
9500 BUILDCOROSYNC=yes
9501 BUILDOPENAIS=yes
e2997b73 9502else
a946372e 9503 bailout=hard_bailout
e2997b73 9504fi
a946372e
AK
9505
9506check_lib_no_libs() {
9507 lib_no_libs_arg1=$1
9508 shift
9509 lib_no_libs_arg2=$1
9510 shift
9511 lib_no_libs_args=$@
9512
9513as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
9514{ $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
9515$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
9516if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9517 $as_echo_n "(cached) " >&6
9518else
9519 ac_check_lib_save_LIBS=$LIBS
9520LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
9521cat >conftest.$ac_ext <<_ACEOF
9522/* confdefs.h. */
9523_ACEOF
9524cat confdefs.h >>conftest.$ac_ext
9525cat >>conftest.$ac_ext <<_ACEOF
9526/* end confdefs.h. */
9527
9528/* Override any GCC internal prototype to avoid an error.
9529 Use char because int might match the return type of a GCC
9530 builtin and then its argument prototype would still apply. */
9531#ifdef __cplusplus
9532extern "C"
9533#endif
9534char $lib_no_libs_arg2 ();
9535int
9536main ()
9537{
9538return $lib_no_libs_arg2 ();
9539 ;
9540 return 0;
9541}
9542_ACEOF
9543rm -f conftest.$ac_objext conftest$ac_exeext
9544if { (ac_try="$ac_link"
9545case "(($ac_try" in
9546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9547 *) ac_try_echo=$ac_try;;
9548esac
9549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9550$as_echo "$ac_try_echo") >&5
9551 (eval "$ac_link") 2>conftest.er1
e2997b73 9552 ac_status=$?
a946372e
AK
9553 grep -v '^ *+' conftest.er1 >conftest.err
9554 rm -f conftest.er1
9555 cat conftest.err >&5
e2997b73 9556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a946372e
AK
9557 (exit $ac_status); } && {
9558 test -z "$ac_c_werror_flag" ||
9559 test ! -s conftest.err
9560 } && test -s conftest$ac_exeext && {
9561 test "$cross_compiling" = yes ||
9562 $as_test_x conftest$ac_exeext
9563 }; then
9564 eval "$as_ac_Lib=yes"
e2997b73 9565else
a946372e
AK
9566 $as_echo "$as_me: failed program was:" >&5
9567sed 's/^/| /' conftest.$ac_ext >&5
e2997b73 9568
a946372e
AK
9569 eval "$as_ac_Lib=no"
9570fi
e2997b73 9571
a946372e
AK
9572rm -rf conftest.dSYM
9573rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9574 conftest$ac_exeext conftest.$ac_ext
9575LIBS=$ac_check_lib_save_LIBS
9576fi
9577ac_res=`eval 'as_val=${'$as_ac_Lib'}
9578 $as_echo "$as_val"'`
9579 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9580$as_echo "$ac_res" >&6; }
9581as_val=`eval 'as_val=${'$as_ac_Lib'}
9582 $as_echo "$as_val"'`
9583 if test "x$as_val" = x""yes; then
9584 cat >>confdefs.h <<_ACEOF
9585#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
9586_ACEOF
e2997b73 9587
a946372e 9588 LIBS="-l$lib_no_libs_arg1 $LIBS"
e2997b73 9589
e2997b73 9590else
a946372e 9591 $bailout
e2997b73 9592fi
e2997b73 9593
a946372e
AK
9594 LIBS=$ac_check_lib_save_LIBS
9595}
9596
9597if test x$BUILDGULM = xyes; then
e2997b73
AK
9598
9599pkg_failed=no
a946372e
AK
9600{ $as_echo "$as_me:$LINENO: checking for CCS" >&5
9601$as_echo_n "checking for CCS... " >&6; }
e2997b73 9602
a946372e
AK
9603if test -n "$CCS_CFLAGS"; then
9604 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
e2997b73
AK
9605 elif test -n "$PKG_CONFIG"; then
9606 if test -n "$PKG_CONFIG" && \
a946372e
AK
9607 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9608 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
9609 ac_status=$?
9610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; then
a946372e 9612 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
e2997b73
AK
9613else
9614 pkg_failed=yes
9615fi
9616 else
9617 pkg_failed=untried
9618fi
a946372e
AK
9619if test -n "$CCS_LIBS"; then
9620 pkg_cv_CCS_LIBS="$CCS_LIBS"
e2997b73
AK
9621 elif test -n "$PKG_CONFIG"; then
9622 if test -n "$PKG_CONFIG" && \
a946372e
AK
9623 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9624 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
9625 ac_status=$?
9626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); }; then
a946372e 9628 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
e2997b73
AK
9629else
9630 pkg_failed=yes
9631fi
9632 else
9633 pkg_failed=untried
9634fi
9635
9636
9637
9638if test $pkg_failed = yes; then
9639
9640if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9641 _pkg_short_errors_supported=yes
9642else
9643 _pkg_short_errors_supported=no
9644fi
9645 if test $_pkg_short_errors_supported = yes; then
a946372e 9646 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
e2997b73 9647 else
a946372e 9648 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
e2997b73
AK
9649 fi
9650 # Put the nasty error message in config.log where it belongs
a946372e 9651 echo "$CCS_PKG_ERRORS" >&5
e2997b73
AK
9652
9653 { $as_echo "$as_me:$LINENO: result: no" >&5
9654$as_echo "no" >&6; }
a946372e 9655 NOTFOUND=0
e2997b73 9656
a946372e
AK
9657for ac_header in ccs.h
9658do
9659as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9660if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9661 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9662$as_echo_n "checking for $ac_header... " >&6; }
9663if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9664 $as_echo_n "(cached) " >&6
d0191583 9665fi
a946372e
AK
9666ac_res=`eval 'as_val=${'$as_ac_Header'}
9667 $as_echo "$as_val"'`
9668 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9669$as_echo "$ac_res" >&6; }
fc54be10 9670else
a946372e
AK
9671 # Is the header compilable?
9672{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9673$as_echo_n "checking $ac_header usability... " >&6; }
9674cat >conftest.$ac_ext <<_ACEOF
9675/* confdefs.h. */
9676_ACEOF
9677cat confdefs.h >>conftest.$ac_ext
9678cat >>conftest.$ac_ext <<_ACEOF
9679/* end confdefs.h. */
9680$ac_includes_default
9681#include <$ac_header>
9682_ACEOF
9683rm -f conftest.$ac_objext
9684if { (ac_try="$ac_compile"
9685case "(($ac_try" in
9686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9688esac
9689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9690$as_echo "$ac_try_echo") >&5
9691 (eval "$ac_compile") 2>conftest.er1
9692 ac_status=$?
9693 grep -v '^ *+' conftest.er1 >conftest.err
9694 rm -f conftest.er1
9695 cat conftest.err >&5
9696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } && {
9698 test -z "$ac_c_werror_flag" ||
9699 test ! -s conftest.err
9700 } && test -s conftest.$ac_objext; then
9701 ac_header_compiler=yes
9702else
9703 $as_echo "$as_me: failed program was:" >&5
9704sed 's/^/| /' conftest.$ac_ext >&5
d0191583 9705
a946372e 9706 ac_header_compiler=no
d0191583
JM
9707fi
9708
a946372e
AK
9709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9710{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9711$as_echo "$ac_header_compiler" >&6; }
fddafd51 9712
a946372e
AK
9713# Is the header present?
9714{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9715$as_echo_n "checking $ac_header presence... " >&6; }
9716cat >conftest.$ac_ext <<_ACEOF
9717/* confdefs.h. */
9718_ACEOF
9719cat confdefs.h >>conftest.$ac_ext
9720cat >>conftest.$ac_ext <<_ACEOF
9721/* end confdefs.h. */
9722#include <$ac_header>
9723_ACEOF
9724if { (ac_try="$ac_cpp conftest.$ac_ext"
9725case "(($ac_try" in
9726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9727 *) ac_try_echo=$ac_try;;
9728esac
9729eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9730$as_echo "$ac_try_echo") >&5
9731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9732 ac_status=$?
9733 grep -v '^ *+' conftest.er1 >conftest.err
9734 rm -f conftest.er1
9735 cat conftest.err >&5
9736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } >/dev/null && {
9738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9739 test ! -s conftest.err
9740 }; then
9741 ac_header_preproc=yes
9742else
9743 $as_echo "$as_me: failed program was:" >&5
9744sed 's/^/| /' conftest.$ac_ext >&5
9745
9746 ac_header_preproc=no
9747fi
9748
9749rm -f conftest.err conftest.$ac_ext
9750{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9751$as_echo "$ac_header_preproc" >&6; }
9752
9753# So? What about this header?
9754case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9755 yes:no: )
9756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9757$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9759$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9760 ac_header_preproc=yes
9761 ;;
9762 no:yes:* )
9763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9764$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9766$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9768$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9770$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9772$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9774$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9775
9776 ;;
9777esac
9778{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9779$as_echo_n "checking for $ac_header... " >&6; }
9780if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9781 $as_echo_n "(cached) " >&6
9782else
9783 eval "$as_ac_Header=\$ac_header_preproc"
9784fi
9785ac_res=`eval 'as_val=${'$as_ac_Header'}
9786 $as_echo "$as_val"'`
9787 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9788$as_echo "$ac_res" >&6; }
9789
9790fi
9791as_val=`eval 'as_val=${'$as_ac_Header'}
9792 $as_echo "$as_val"'`
9793 if test "x$as_val" = x""yes; then
9794 cat >>confdefs.h <<_ACEOF
9795#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9796_ACEOF
9797
9798else
9799 $bailout
9800fi
9801
9802done
9803
9804 check_lib_no_libs ccs ccs_connect
9805 if test $NOTFOUND = 0; then
9806 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9807$as_echo "no pkg for libccs, using -lccs" >&6; }
9808 CCS_LIBS="-lccs"
9809 HAVE_CCS=yes
9810 fi
9811elif test $pkg_failed = untried; then
9812 NOTFOUND=0
9813
9814for ac_header in ccs.h
9815do
9816as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9817if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9818 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9819$as_echo_n "checking for $ac_header... " >&6; }
9820if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9821 $as_echo_n "(cached) " >&6
9822fi
9823ac_res=`eval 'as_val=${'$as_ac_Header'}
9824 $as_echo "$as_val"'`
9825 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9826$as_echo "$ac_res" >&6; }
9827else
9828 # Is the header compilable?
9829{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9830$as_echo_n "checking $ac_header usability... " >&6; }
9831cat >conftest.$ac_ext <<_ACEOF
9832/* confdefs.h. */
9833_ACEOF
9834cat confdefs.h >>conftest.$ac_ext
9835cat >>conftest.$ac_ext <<_ACEOF
9836/* end confdefs.h. */
9837$ac_includes_default
9838#include <$ac_header>
9839_ACEOF
9840rm -f conftest.$ac_objext
9841if { (ac_try="$ac_compile"
9842case "(($ac_try" in
9843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844 *) ac_try_echo=$ac_try;;
9845esac
9846eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9847$as_echo "$ac_try_echo") >&5
9848 (eval "$ac_compile") 2>conftest.er1
9849 ac_status=$?
9850 grep -v '^ *+' conftest.er1 >conftest.err
9851 rm -f conftest.er1
9852 cat conftest.err >&5
9853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } && {
9855 test -z "$ac_c_werror_flag" ||
9856 test ! -s conftest.err
9857 } && test -s conftest.$ac_objext; then
9858 ac_header_compiler=yes
9859else
9860 $as_echo "$as_me: failed program was:" >&5
9861sed 's/^/| /' conftest.$ac_ext >&5
9862
9863 ac_header_compiler=no
9864fi
9865
9866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9867{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9868$as_echo "$ac_header_compiler" >&6; }
9869
9870# Is the header present?
9871{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9872$as_echo_n "checking $ac_header presence... " >&6; }
9873cat >conftest.$ac_ext <<_ACEOF
9874/* confdefs.h. */
9875_ACEOF
9876cat confdefs.h >>conftest.$ac_ext
9877cat >>conftest.$ac_ext <<_ACEOF
9878/* end confdefs.h. */
9879#include <$ac_header>
9880_ACEOF
9881if { (ac_try="$ac_cpp conftest.$ac_ext"
9882case "(($ac_try" in
9883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884 *) ac_try_echo=$ac_try;;
9885esac
9886eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9887$as_echo "$ac_try_echo") >&5
9888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9889 ac_status=$?
9890 grep -v '^ *+' conftest.er1 >conftest.err
9891 rm -f conftest.er1
9892 cat conftest.err >&5
9893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); } >/dev/null && {
9895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9896 test ! -s conftest.err
9897 }; then
9898 ac_header_preproc=yes
9899else
9900 $as_echo "$as_me: failed program was:" >&5
9901sed 's/^/| /' conftest.$ac_ext >&5
9902
9903 ac_header_preproc=no
9904fi
9905
9906rm -f conftest.err conftest.$ac_ext
9907{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9908$as_echo "$ac_header_preproc" >&6; }
9909
9910# So? What about this header?
9911case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9912 yes:no: )
9913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9914$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9916$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9917 ac_header_preproc=yes
9918 ;;
9919 no:yes:* )
9920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9921$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9923$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9924 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9925$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9927$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9929$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9931$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9932
9933 ;;
9934esac
9935{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9936$as_echo_n "checking for $ac_header... " >&6; }
9937if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9938 $as_echo_n "(cached) " >&6
9939else
9940 eval "$as_ac_Header=\$ac_header_preproc"
9941fi
9942ac_res=`eval 'as_val=${'$as_ac_Header'}
9943 $as_echo "$as_val"'`
9944 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9945$as_echo "$ac_res" >&6; }
9946
9947fi
9948as_val=`eval 'as_val=${'$as_ac_Header'}
9949 $as_echo "$as_val"'`
9950 if test "x$as_val" = x""yes; then
9951 cat >>confdefs.h <<_ACEOF
9952#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9953_ACEOF
9954
9955else
9956 $bailout
9957fi
9958
9959done
9960
9961 check_lib_no_libs ccs ccs_connect
9962 if test $NOTFOUND = 0; then
9963 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9964$as_echo "no pkg for libccs, using -lccs" >&6; }
9965 CCS_LIBS="-lccs"
9966 HAVE_CCS=yes
9967 fi
9968else
9969 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
9970 CCS_LIBS=$pkg_cv_CCS_LIBS
9971 { $as_echo "$as_me:$LINENO: result: yes" >&5
9972$as_echo "yes" >&6; }
9973 HAVE_CCS=yes
9974fi
9975
9976pkg_failed=no
9977{ $as_echo "$as_me:$LINENO: checking for GULM" >&5
9978$as_echo_n "checking for GULM... " >&6; }
9979
9980if test -n "$GULM_CFLAGS"; then
9981 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
9982 elif test -n "$PKG_CONFIG"; then
9983 if test -n "$PKG_CONFIG" && \
9984 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
9985 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
9986 ac_status=$?
9987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; then
9989 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
9990else
9991 pkg_failed=yes
9992fi
9993 else
9994 pkg_failed=untried
9995fi
9996if test -n "$GULM_LIBS"; then
9997 pkg_cv_GULM_LIBS="$GULM_LIBS"
9998 elif test -n "$PKG_CONFIG"; then
9999 if test -n "$PKG_CONFIG" && \
10000 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10001 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10002 ac_status=$?
10003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); }; then
10005 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
10006else
10007 pkg_failed=yes
10008fi
10009 else
10010 pkg_failed=untried
10011fi
10012
10013
10014
10015if test $pkg_failed = yes; then
10016
10017if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10018 _pkg_short_errors_supported=yes
10019else
10020 _pkg_short_errors_supported=no
10021fi
10022 if test $_pkg_short_errors_supported = yes; then
10023 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
10024 else
10025 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
10026 fi
10027 # Put the nasty error message in config.log where it belongs
10028 echo "$GULM_PKG_ERRORS" >&5
10029
10030 { $as_echo "$as_me:$LINENO: result: no" >&5
10031$as_echo "no" >&6; }
10032 NOTFOUND=0
10033
10034for ac_header in libgulm.h
10035do
10036as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10037if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10038 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10039$as_echo_n "checking for $ac_header... " >&6; }
10040if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10041 $as_echo_n "(cached) " >&6
10042fi
10043ac_res=`eval 'as_val=${'$as_ac_Header'}
10044 $as_echo "$as_val"'`
10045 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10046$as_echo "$ac_res" >&6; }
10047else
10048 # Is the header compilable?
10049{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10050$as_echo_n "checking $ac_header usability... " >&6; }
10051cat >conftest.$ac_ext <<_ACEOF
10052/* confdefs.h. */
10053_ACEOF
10054cat confdefs.h >>conftest.$ac_ext
10055cat >>conftest.$ac_ext <<_ACEOF
10056/* end confdefs.h. */
10057$ac_includes_default
10058#include <$ac_header>
10059_ACEOF
10060rm -f conftest.$ac_objext
10061if { (ac_try="$ac_compile"
10062case "(($ac_try" in
10063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064 *) ac_try_echo=$ac_try;;
10065esac
10066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10067$as_echo "$ac_try_echo") >&5
10068 (eval "$ac_compile") 2>conftest.er1
10069 ac_status=$?
10070 grep -v '^ *+' conftest.er1 >conftest.err
10071 rm -f conftest.er1
10072 cat conftest.err >&5
10073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); } && {
10075 test -z "$ac_c_werror_flag" ||
10076 test ! -s conftest.err
10077 } && test -s conftest.$ac_objext; then
10078 ac_header_compiler=yes
10079else
10080 $as_echo "$as_me: failed program was:" >&5
10081sed 's/^/| /' conftest.$ac_ext >&5
10082
10083 ac_header_compiler=no
10084fi
10085
10086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10087{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10088$as_echo "$ac_header_compiler" >&6; }
10089
10090# Is the header present?
10091{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10092$as_echo_n "checking $ac_header presence... " >&6; }
10093cat >conftest.$ac_ext <<_ACEOF
10094/* confdefs.h. */
10095_ACEOF
10096cat confdefs.h >>conftest.$ac_ext
10097cat >>conftest.$ac_ext <<_ACEOF
10098/* end confdefs.h. */
10099#include <$ac_header>
10100_ACEOF
10101if { (ac_try="$ac_cpp conftest.$ac_ext"
10102case "(($ac_try" in
10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104 *) ac_try_echo=$ac_try;;
10105esac
10106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10107$as_echo "$ac_try_echo") >&5
10108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10109 ac_status=$?
10110 grep -v '^ *+' conftest.er1 >conftest.err
10111 rm -f conftest.er1
10112 cat conftest.err >&5
10113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); } >/dev/null && {
10115 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10116 test ! -s conftest.err
10117 }; then
10118 ac_header_preproc=yes
10119else
10120 $as_echo "$as_me: failed program was:" >&5
10121sed 's/^/| /' conftest.$ac_ext >&5
10122
10123 ac_header_preproc=no
10124fi
10125
10126rm -f conftest.err conftest.$ac_ext
10127{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10128$as_echo "$ac_header_preproc" >&6; }
10129
10130# So? What about this header?
10131case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10132 yes:no: )
10133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10134$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10136$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10137 ac_header_preproc=yes
10138 ;;
10139 no:yes:* )
10140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10141$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10143$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10145$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10147$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10149$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10151$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10152
10153 ;;
10154esac
10155{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10156$as_echo_n "checking for $ac_header... " >&6; }
10157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10158 $as_echo_n "(cached) " >&6
10159else
10160 eval "$as_ac_Header=\$ac_header_preproc"
10161fi
10162ac_res=`eval 'as_val=${'$as_ac_Header'}
10163 $as_echo "$as_val"'`
10164 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10165$as_echo "$ac_res" >&6; }
10166
10167fi
10168as_val=`eval 'as_val=${'$as_ac_Header'}
10169 $as_echo "$as_val"'`
10170 if test "x$as_val" = x""yes; then
10171 cat >>confdefs.h <<_ACEOF
10172#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10173_ACEOF
10174
10175else
10176 $bailout
10177fi
10178
10179done
10180
10181 check_lib_no_libs gulm lg_core_login
10182 if test $NOTFOUND = 0; then
10183 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10184$as_echo "no pkg for libgulm, using -lgulm" >&6; }
10185 GULM_LIBS="-lgulm"
10186 HAVE_GULM=yes
10187 fi
10188elif test $pkg_failed = untried; then
10189 NOTFOUND=0
10190
10191for ac_header in libgulm.h
10192do
10193as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10194if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10195 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10196$as_echo_n "checking for $ac_header... " >&6; }
10197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10198 $as_echo_n "(cached) " >&6
10199fi
10200ac_res=`eval 'as_val=${'$as_ac_Header'}
10201 $as_echo "$as_val"'`
10202 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10203$as_echo "$ac_res" >&6; }
10204else
10205 # Is the header compilable?
10206{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10207$as_echo_n "checking $ac_header usability... " >&6; }
10208cat >conftest.$ac_ext <<_ACEOF
10209/* confdefs.h. */
10210_ACEOF
10211cat confdefs.h >>conftest.$ac_ext
10212cat >>conftest.$ac_ext <<_ACEOF
10213/* end confdefs.h. */
10214$ac_includes_default
10215#include <$ac_header>
10216_ACEOF
10217rm -f conftest.$ac_objext
10218if { (ac_try="$ac_compile"
10219case "(($ac_try" in
10220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221 *) ac_try_echo=$ac_try;;
10222esac
10223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10224$as_echo "$ac_try_echo") >&5
10225 (eval "$ac_compile") 2>conftest.er1
10226 ac_status=$?
10227 grep -v '^ *+' conftest.er1 >conftest.err
10228 rm -f conftest.er1
10229 cat conftest.err >&5
10230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); } && {
10232 test -z "$ac_c_werror_flag" ||
10233 test ! -s conftest.err
10234 } && test -s conftest.$ac_objext; then
10235 ac_header_compiler=yes
10236else
10237 $as_echo "$as_me: failed program was:" >&5
10238sed 's/^/| /' conftest.$ac_ext >&5
10239
10240 ac_header_compiler=no
10241fi
10242
10243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10244{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10245$as_echo "$ac_header_compiler" >&6; }
10246
10247# Is the header present?
10248{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10249$as_echo_n "checking $ac_header presence... " >&6; }
10250cat >conftest.$ac_ext <<_ACEOF
10251/* confdefs.h. */
10252_ACEOF
10253cat confdefs.h >>conftest.$ac_ext
10254cat >>conftest.$ac_ext <<_ACEOF
10255/* end confdefs.h. */
10256#include <$ac_header>
10257_ACEOF
10258if { (ac_try="$ac_cpp conftest.$ac_ext"
10259case "(($ac_try" in
10260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10261 *) ac_try_echo=$ac_try;;
10262esac
10263eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10264$as_echo "$ac_try_echo") >&5
10265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10266 ac_status=$?
10267 grep -v '^ *+' conftest.er1 >conftest.err
10268 rm -f conftest.er1
10269 cat conftest.err >&5
10270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); } >/dev/null && {
10272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10273 test ! -s conftest.err
10274 }; then
10275 ac_header_preproc=yes
10276else
10277 $as_echo "$as_me: failed program was:" >&5
10278sed 's/^/| /' conftest.$ac_ext >&5
10279
10280 ac_header_preproc=no
10281fi
10282
10283rm -f conftest.err conftest.$ac_ext
10284{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10285$as_echo "$ac_header_preproc" >&6; }
10286
10287# So? What about this header?
10288case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10289 yes:no: )
10290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10291$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10293$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10294 ac_header_preproc=yes
10295 ;;
10296 no:yes:* )
10297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10298$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10300$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10302$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10304$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10306$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10308$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10309
10310 ;;
10311esac
10312{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10313$as_echo_n "checking for $ac_header... " >&6; }
10314if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10315 $as_echo_n "(cached) " >&6
10316else
10317 eval "$as_ac_Header=\$ac_header_preproc"
10318fi
10319ac_res=`eval 'as_val=${'$as_ac_Header'}
10320 $as_echo "$as_val"'`
10321 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10322$as_echo "$ac_res" >&6; }
10323
10324fi
10325as_val=`eval 'as_val=${'$as_ac_Header'}
10326 $as_echo "$as_val"'`
10327 if test "x$as_val" = x""yes; then
10328 cat >>confdefs.h <<_ACEOF
10329#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10330_ACEOF
10331
10332else
10333 $bailout
10334fi
10335
10336done
10337
10338 check_lib_no_libs gulm lg_core_login
10339 if test $NOTFOUND = 0; then
10340 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10341$as_echo "no pkg for libgulm, using -lgulm" >&6; }
10342 GULM_LIBS="-lgulm"
10343 HAVE_GULM=yes
10344 fi
10345else
10346 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
10347 GULM_LIBS=$pkg_cv_GULM_LIBS
10348 { $as_echo "$as_me:$LINENO: result: yes" >&5
10349$as_echo "yes" >&6; }
10350 HAVE_GULM=yes
10351fi
10352fi
10353
10354if test x$BUILDCMAN = xyes; then
10355
10356pkg_failed=no
10357{ $as_echo "$as_me:$LINENO: checking for CMAN" >&5
10358$as_echo_n "checking for CMAN... " >&6; }
10359
10360if test -n "$CMAN_CFLAGS"; then
10361 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
10362 elif test -n "$PKG_CONFIG"; then
10363 if test -n "$PKG_CONFIG" && \
10364 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10365 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10366 ac_status=$?
10367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; then
10369 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
10370else
10371 pkg_failed=yes
10372fi
10373 else
10374 pkg_failed=untried
10375fi
10376if test -n "$CMAN_LIBS"; then
10377 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
10378 elif test -n "$PKG_CONFIG"; then
10379 if test -n "$PKG_CONFIG" && \
10380 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10381 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10382 ac_status=$?
10383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; then
10385 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
10386else
10387 pkg_failed=yes
10388fi
10389 else
10390 pkg_failed=untried
10391fi
10392
10393
10394
10395if test $pkg_failed = yes; then
10396
10397if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10398 _pkg_short_errors_supported=yes
10399else
10400 _pkg_short_errors_supported=no
10401fi
10402 if test $_pkg_short_errors_supported = yes; then
10403 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
10404 else
10405 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
10406 fi
10407 # Put the nasty error message in config.log where it belongs
10408 echo "$CMAN_PKG_ERRORS" >&5
10409
10410 { $as_echo "$as_me:$LINENO: result: no" >&5
10411$as_echo "no" >&6; }
10412 NOTFOUND=0
10413
10414for ac_header in libcman.h
10415do
10416as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10417if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10418 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10419$as_echo_n "checking for $ac_header... " >&6; }
10420if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10421 $as_echo_n "(cached) " >&6
10422fi
10423ac_res=`eval 'as_val=${'$as_ac_Header'}
10424 $as_echo "$as_val"'`
10425 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10426$as_echo "$ac_res" >&6; }
10427else
10428 # Is the header compilable?
10429{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10430$as_echo_n "checking $ac_header usability... " >&6; }
10431cat >conftest.$ac_ext <<_ACEOF
10432/* confdefs.h. */
10433_ACEOF
10434cat confdefs.h >>conftest.$ac_ext
10435cat >>conftest.$ac_ext <<_ACEOF
10436/* end confdefs.h. */
10437$ac_includes_default
10438#include <$ac_header>
10439_ACEOF
10440rm -f conftest.$ac_objext
10441if { (ac_try="$ac_compile"
10442case "(($ac_try" in
10443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444 *) ac_try_echo=$ac_try;;
10445esac
10446eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10447$as_echo "$ac_try_echo") >&5
10448 (eval "$ac_compile") 2>conftest.er1
10449 ac_status=$?
10450 grep -v '^ *+' conftest.er1 >conftest.err
10451 rm -f conftest.er1
10452 cat conftest.err >&5
10453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); } && {
10455 test -z "$ac_c_werror_flag" ||
10456 test ! -s conftest.err
10457 } && test -s conftest.$ac_objext; then
10458 ac_header_compiler=yes
10459else
10460 $as_echo "$as_me: failed program was:" >&5
10461sed 's/^/| /' conftest.$ac_ext >&5
10462
10463 ac_header_compiler=no
10464fi
10465
10466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10467{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10468$as_echo "$ac_header_compiler" >&6; }
10469
10470# Is the header present?
10471{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10472$as_echo_n "checking $ac_header presence... " >&6; }
10473cat >conftest.$ac_ext <<_ACEOF
10474/* confdefs.h. */
10475_ACEOF
10476cat confdefs.h >>conftest.$ac_ext
10477cat >>conftest.$ac_ext <<_ACEOF
10478/* end confdefs.h. */
10479#include <$ac_header>
10480_ACEOF
10481if { (ac_try="$ac_cpp conftest.$ac_ext"
10482case "(($ac_try" in
10483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10484 *) ac_try_echo=$ac_try;;
10485esac
10486eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10487$as_echo "$ac_try_echo") >&5
10488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10489 ac_status=$?
10490 grep -v '^ *+' conftest.er1 >conftest.err
10491 rm -f conftest.er1
10492 cat conftest.err >&5
10493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); } >/dev/null && {
10495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10496 test ! -s conftest.err
10497 }; then
10498 ac_header_preproc=yes
10499else
10500 $as_echo "$as_me: failed program was:" >&5
10501sed 's/^/| /' conftest.$ac_ext >&5
10502
10503 ac_header_preproc=no
10504fi
10505
10506rm -f conftest.err conftest.$ac_ext
10507{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10508$as_echo "$ac_header_preproc" >&6; }
10509
10510# So? What about this header?
10511case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10512 yes:no: )
10513 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10514$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10515 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10516$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10517 ac_header_preproc=yes
10518 ;;
10519 no:yes:* )
10520 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10521$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10522 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10523$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10524 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10525$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10526 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10527$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10528 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10529$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10530 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10531$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10532
10533 ;;
10534esac
10535{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10536$as_echo_n "checking for $ac_header... " >&6; }
10537if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10538 $as_echo_n "(cached) " >&6
10539else
10540 eval "$as_ac_Header=\$ac_header_preproc"
10541fi
10542ac_res=`eval 'as_val=${'$as_ac_Header'}
10543 $as_echo "$as_val"'`
10544 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10545$as_echo "$ac_res" >&6; }
10546
10547fi
10548as_val=`eval 'as_val=${'$as_ac_Header'}
10549 $as_echo "$as_val"'`
10550 if test "x$as_val" = x""yes; then
10551 cat >>confdefs.h <<_ACEOF
10552#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10553_ACEOF
10554
10555else
10556 $bailout
10557fi
10558
10559done
10560
10561 check_lib_no_libs cman cman_init
10562 if test $NOTFOUND = 0; then
10563 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10564$as_echo "no pkg for libcman, using -lcman" >&6; }
10565 CMAN_LIBS="-lcman"
10566 HAVE_CMAN=yes
10567 fi
10568elif test $pkg_failed = untried; then
10569 NOTFOUND=0
10570
10571for ac_header in libcman.h
10572do
10573as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10574if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10575 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10576$as_echo_n "checking for $ac_header... " >&6; }
10577if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10578 $as_echo_n "(cached) " >&6
10579fi
10580ac_res=`eval 'as_val=${'$as_ac_Header'}
10581 $as_echo "$as_val"'`
10582 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10583$as_echo "$ac_res" >&6; }
10584else
10585 # Is the header compilable?
10586{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10587$as_echo_n "checking $ac_header usability... " >&6; }
10588cat >conftest.$ac_ext <<_ACEOF
10589/* confdefs.h. */
10590_ACEOF
10591cat confdefs.h >>conftest.$ac_ext
10592cat >>conftest.$ac_ext <<_ACEOF
10593/* end confdefs.h. */
10594$ac_includes_default
10595#include <$ac_header>
10596_ACEOF
10597rm -f conftest.$ac_objext
10598if { (ac_try="$ac_compile"
10599case "(($ac_try" in
10600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10602esac
10603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10604$as_echo "$ac_try_echo") >&5
10605 (eval "$ac_compile") 2>conftest.er1
10606 ac_status=$?
10607 grep -v '^ *+' conftest.er1 >conftest.err
10608 rm -f conftest.er1
10609 cat conftest.err >&5
10610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } && {
10612 test -z "$ac_c_werror_flag" ||
10613 test ! -s conftest.err
10614 } && test -s conftest.$ac_objext; then
10615 ac_header_compiler=yes
10616else
10617 $as_echo "$as_me: failed program was:" >&5
10618sed 's/^/| /' conftest.$ac_ext >&5
10619
10620 ac_header_compiler=no
10621fi
10622
10623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10624{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10625$as_echo "$ac_header_compiler" >&6; }
10626
10627# Is the header present?
10628{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10629$as_echo_n "checking $ac_header presence... " >&6; }
10630cat >conftest.$ac_ext <<_ACEOF
10631/* confdefs.h. */
10632_ACEOF
10633cat confdefs.h >>conftest.$ac_ext
10634cat >>conftest.$ac_ext <<_ACEOF
10635/* end confdefs.h. */
10636#include <$ac_header>
10637_ACEOF
10638if { (ac_try="$ac_cpp conftest.$ac_ext"
10639case "(($ac_try" in
10640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641 *) ac_try_echo=$ac_try;;
10642esac
10643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10644$as_echo "$ac_try_echo") >&5
10645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10646 ac_status=$?
10647 grep -v '^ *+' conftest.er1 >conftest.err
10648 rm -f conftest.er1
10649 cat conftest.err >&5
10650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } >/dev/null && {
10652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10653 test ! -s conftest.err
10654 }; then
10655 ac_header_preproc=yes
10656else
10657 $as_echo "$as_me: failed program was:" >&5
10658sed 's/^/| /' conftest.$ac_ext >&5
10659
10660 ac_header_preproc=no
10661fi
10662
10663rm -f conftest.err conftest.$ac_ext
10664{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10665$as_echo "$ac_header_preproc" >&6; }
10666
10667# So? What about this header?
10668case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10669 yes:no: )
10670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10671$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10672 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10673$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10674 ac_header_preproc=yes
10675 ;;
10676 no:yes:* )
10677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10678$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10680$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10682$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10684$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10686$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10688$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10689
10690 ;;
10691esac
10692{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10693$as_echo_n "checking for $ac_header... " >&6; }
10694if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10695 $as_echo_n "(cached) " >&6
10696else
10697 eval "$as_ac_Header=\$ac_header_preproc"
10698fi
10699ac_res=`eval 'as_val=${'$as_ac_Header'}
10700 $as_echo "$as_val"'`
10701 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10702$as_echo "$ac_res" >&6; }
10703
10704fi
10705as_val=`eval 'as_val=${'$as_ac_Header'}
10706 $as_echo "$as_val"'`
10707 if test "x$as_val" = x""yes; then
10708 cat >>confdefs.h <<_ACEOF
10709#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10710_ACEOF
10711
10712else
10713 $bailout
10714fi
10715
10716done
10717
10718 check_lib_no_libs cman cman_init
10719 if test $NOTFOUND = 0; then
10720 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10721$as_echo "no pkg for libcman, using -lcman" >&6; }
10722 CMAN_LIBS="-lcman"
10723 HAVE_CMAN=yes
10724 fi
10725else
10726 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
10727 CMAN_LIBS=$pkg_cv_CMAN_LIBS
10728 { $as_echo "$as_me:$LINENO: result: yes" >&5
10729$as_echo "yes" >&6; }
10730 HAVE_CMAN=yes
10731fi
10732 CHECKCONFDB=yes
10733 CHECKDLM=yes
10734fi
10735
10736if test x$BUILDCOROSYNC = xyes || \
10737 test x$BUILDOPENAIS = xyes; then
10738
10739pkg_failed=no
10740{ $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
10741$as_echo_n "checking for COROSYNC... " >&6; }
10742
10743if test -n "$COROSYNC_CFLAGS"; then
10744 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
10745 elif test -n "$PKG_CONFIG"; then
10746 if test -n "$PKG_CONFIG" && \
10747 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10748 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10749 ac_status=$?
10750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); }; then
10752 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
10753else
10754 pkg_failed=yes
10755fi
10756 else
10757 pkg_failed=untried
10758fi
10759if test -n "$COROSYNC_LIBS"; then
10760 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
10761 elif test -n "$PKG_CONFIG"; then
10762 if test -n "$PKG_CONFIG" && \
10763 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10764 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10765 ac_status=$?
10766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; then
10768 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
10769else
10770 pkg_failed=yes
10771fi
10772 else
10773 pkg_failed=untried
10774fi
10775
10776
10777
10778if test $pkg_failed = yes; then
10779
10780if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10781 _pkg_short_errors_supported=yes
10782else
10783 _pkg_short_errors_supported=no
10784fi
10785 if test $_pkg_short_errors_supported = yes; then
10786 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
10787 else
10788 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
10789 fi
10790 # Put the nasty error message in config.log where it belongs
10791 echo "$COROSYNC_PKG_ERRORS" >&5
10792
10793 { $as_echo "$as_me:$LINENO: result: no" >&5
10794$as_echo "no" >&6; }
10795 $bailout
10796elif test $pkg_failed = untried; then
10797 $bailout
10798else
10799 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
10800 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
10801 { $as_echo "$as_me:$LINENO: result: yes" >&5
10802$as_echo "yes" >&6; }
10803 HAVE_COROSYNC=yes
10804fi
10805 CHECKCONFDB=yes
10806fi
10807
10808if test x$BUILDCOROSYNC = xyes; then
10809
10810pkg_failed=no
10811{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
10812$as_echo_n "checking for QUORUM... " >&6; }
10813
10814if test -n "$QUORUM_CFLAGS"; then
10815 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
10816 elif test -n "$PKG_CONFIG"; then
10817 if test -n "$PKG_CONFIG" && \
10818 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10819 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10820 ac_status=$?
10821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); }; then
10823 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
10824else
10825 pkg_failed=yes
10826fi
10827 else
10828 pkg_failed=untried
10829fi
10830if test -n "$QUORUM_LIBS"; then
10831 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
10832 elif test -n "$PKG_CONFIG"; then
10833 if test -n "$PKG_CONFIG" && \
10834 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10835 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10836 ac_status=$?
10837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); }; then
10839 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
10840else
10841 pkg_failed=yes
10842fi
10843 else
10844 pkg_failed=untried
10845fi
10846
10847
10848
10849if test $pkg_failed = yes; then
10850
10851if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10852 _pkg_short_errors_supported=yes
10853else
10854 _pkg_short_errors_supported=no
10855fi
10856 if test $_pkg_short_errors_supported = yes; then
10857 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
10858 else
10859 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
10860 fi
10861 # Put the nasty error message in config.log where it belongs
10862 echo "$QUORUM_PKG_ERRORS" >&5
10863
10864 { $as_echo "$as_me:$LINENO: result: no" >&5
10865$as_echo "no" >&6; }
10866 $bailout
10867elif test $pkg_failed = untried; then
10868 $bailout
10869else
10870 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
10871 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
10872 { $as_echo "$as_me:$LINENO: result: yes" >&5
10873$as_echo "yes" >&6; }
10874 HAVE_QUORUM=yes
10875fi
10876 CHECKCPG=yes
10877 CHECKDLM=yes
10878fi
10879
10880if test x$BUILDOPENAIS = xyes; then
10881
10882pkg_failed=no
10883{ $as_echo "$as_me:$LINENO: checking for SALCK" >&5
10884$as_echo_n "checking for SALCK... " >&6; }
10885
10886if test -n "$SALCK_CFLAGS"; then
10887 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
10888 elif test -n "$PKG_CONFIG"; then
10889 if test -n "$PKG_CONFIG" && \
10890 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
10891 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
10892 ac_status=$?
10893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; then
10895 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
10896else
10897 pkg_failed=yes
10898fi
10899 else
10900 pkg_failed=untried
10901fi
10902if test -n "$SALCK_LIBS"; then
10903 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
10904 elif test -n "$PKG_CONFIG"; then
10905 if test -n "$PKG_CONFIG" && \
10906 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
10907 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
10908 ac_status=$?
10909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; then
10911 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
10912else
10913 pkg_failed=yes
10914fi
10915 else
10916 pkg_failed=untried
10917fi
10918
10919
10920
10921if test $pkg_failed = yes; then
10922
10923if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10924 _pkg_short_errors_supported=yes
10925else
10926 _pkg_short_errors_supported=no
10927fi
10928 if test $_pkg_short_errors_supported = yes; then
10929 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
10930 else
10931 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
10932 fi
10933 # Put the nasty error message in config.log where it belongs
10934 echo "$SALCK_PKG_ERRORS" >&5
10935
10936 { $as_echo "$as_me:$LINENO: result: no" >&5
10937$as_echo "no" >&6; }
10938 $bailout
10939elif test $pkg_failed = untried; then
10940 $bailout
10941else
10942 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
10943 SALCK_LIBS=$pkg_cv_SALCK_LIBS
10944 { $as_echo "$as_me:$LINENO: result: yes" >&5
10945$as_echo "yes" >&6; }
10946 HAVE_SALCK=yes
10947fi
10948 CHECKCPG=yes
10949fi
10950
10951
10952
10953if test x$CHECKCONFDB = xyes; then
10954
10955pkg_failed=no
10956{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
10957$as_echo_n "checking for CONFDB... " >&6; }
10958
10959if test -n "$CONFDB_CFLAGS"; then
10960 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
10961 elif test -n "$PKG_CONFIG"; then
10962 if test -n "$PKG_CONFIG" && \
10963 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
10964 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
10965 ac_status=$?
10966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; then
10968 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
10969else
10970 pkg_failed=yes
10971fi
10972 else
10973 pkg_failed=untried
10974fi
10975if test -n "$CONFDB_LIBS"; then
10976 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
10977 elif test -n "$PKG_CONFIG"; then
10978 if test -n "$PKG_CONFIG" && \
10979 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
10980 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
10981 ac_status=$?
10982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); }; then
10984 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
10985else
10986 pkg_failed=yes
10987fi
10988 else
10989 pkg_failed=untried
10990fi
10991
10992
10993
10994if test $pkg_failed = yes; then
10995
10996if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10997 _pkg_short_errors_supported=yes
10998else
10999 _pkg_short_errors_supported=no
11000fi
11001 if test $_pkg_short_errors_supported = yes; then
11002 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
11003 else
11004 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
11005 fi
11006 # Put the nasty error message in config.log where it belongs
11007 echo "$CONFDB_PKG_ERRORS" >&5
11008
11009 { $as_echo "$as_me:$LINENO: result: no" >&5
11010$as_echo "no" >&6; }
11011 HAVE_CONFDB=no
11012elif test $pkg_failed = untried; then
11013 HAVE_CONFDB=no
11014else
11015 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
11016 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
11017 { $as_echo "$as_me:$LINENO: result: yes" >&5
11018$as_echo "yes" >&6; }
11019 HAVE_CONFDB=yes
11020fi
11021
11022
11023for ac_header in corosync/confdb.h
11024do
11025as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11026if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11027 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11028$as_echo_n "checking for $ac_header... " >&6; }
11029if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11030 $as_echo_n "(cached) " >&6
11031fi
11032ac_res=`eval 'as_val=${'$as_ac_Header'}
11033 $as_echo "$as_val"'`
11034 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11035$as_echo "$ac_res" >&6; }
11036else
11037 # Is the header compilable?
11038{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11039$as_echo_n "checking $ac_header usability... " >&6; }
11040cat >conftest.$ac_ext <<_ACEOF
11041/* confdefs.h. */
11042_ACEOF
11043cat confdefs.h >>conftest.$ac_ext
11044cat >>conftest.$ac_ext <<_ACEOF
11045/* end confdefs.h. */
11046$ac_includes_default
11047#include <$ac_header>
11048_ACEOF
11049rm -f conftest.$ac_objext
11050if { (ac_try="$ac_compile"
11051case "(($ac_try" in
11052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053 *) ac_try_echo=$ac_try;;
11054esac
11055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11056$as_echo "$ac_try_echo") >&5
11057 (eval "$ac_compile") 2>conftest.er1
11058 ac_status=$?
11059 grep -v '^ *+' conftest.er1 >conftest.err
11060 rm -f conftest.er1
11061 cat conftest.err >&5
11062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } && {
11064 test -z "$ac_c_werror_flag" ||
11065 test ! -s conftest.err
11066 } && test -s conftest.$ac_objext; then
11067 ac_header_compiler=yes
11068else
11069 $as_echo "$as_me: failed program was:" >&5
11070sed 's/^/| /' conftest.$ac_ext >&5
11071
11072 ac_header_compiler=no
11073fi
11074
11075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11076{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11077$as_echo "$ac_header_compiler" >&6; }
11078
11079# Is the header present?
11080{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11081$as_echo_n "checking $ac_header presence... " >&6; }
11082cat >conftest.$ac_ext <<_ACEOF
11083/* confdefs.h. */
11084_ACEOF
11085cat confdefs.h >>conftest.$ac_ext
11086cat >>conftest.$ac_ext <<_ACEOF
11087/* end confdefs.h. */
11088#include <$ac_header>
11089_ACEOF
11090if { (ac_try="$ac_cpp conftest.$ac_ext"
11091case "(($ac_try" in
11092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093 *) ac_try_echo=$ac_try;;
11094esac
11095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11096$as_echo "$ac_try_echo") >&5
11097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11098 ac_status=$?
11099 grep -v '^ *+' conftest.er1 >conftest.err
11100 rm -f conftest.er1
11101 cat conftest.err >&5
11102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } >/dev/null && {
11104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11105 test ! -s conftest.err
11106 }; then
11107 ac_header_preproc=yes
11108else
11109 $as_echo "$as_me: failed program was:" >&5
11110sed 's/^/| /' conftest.$ac_ext >&5
11111
11112 ac_header_preproc=no
11113fi
11114
11115rm -f conftest.err conftest.$ac_ext
11116{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11117$as_echo "$ac_header_preproc" >&6; }
11118
11119# So? What about this header?
11120case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11121 yes:no: )
11122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11123$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11125$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11126 ac_header_preproc=yes
11127 ;;
11128 no:yes:* )
11129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11130$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11132$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11134$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11136$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11138$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11140$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11141
11142 ;;
11143esac
11144{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11145$as_echo_n "checking for $ac_header... " >&6; }
11146if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11147 $as_echo_n "(cached) " >&6
11148else
11149 eval "$as_ac_Header=\$ac_header_preproc"
11150fi
11151ac_res=`eval 'as_val=${'$as_ac_Header'}
11152 $as_echo "$as_val"'`
11153 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11154$as_echo "$ac_res" >&6; }
11155
11156fi
11157as_val=`eval 'as_val=${'$as_ac_Header'}
11158 $as_echo "$as_val"'`
11159 if test "x$as_val" = x""yes; then
11160 cat >>confdefs.h <<_ACEOF
11161#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11162_ACEOF
11163 HAVE_CONFDB_H=yes
11164else
11165 HAVE_CONFDB_H=no
11166fi
11167
11168done
11169
11170
11171 if test x$HAVE_CONFDB != xyes && \
11172 test x$HAVE_CONFDB_H = xyes; then
11173 check_lib_no_libs confdb confdb_initialize
11174 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
11175$as_echo "no pkg for confdb, using -lconfdb" >&6; }
11176 CONFDB_LIBS="-lconfdb"
11177 HAVE_CONFDB=yes
11178 fi
11179
11180 if test x$BUILDCOROSYNC = xyes && \
11181 test x$HAVE_CONFDB != xyes &&
11182 test x$CLVMD != xall; then
11183 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
11184$as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
11185 { (exit 1); exit 1; }; }
11186 fi
11187fi
11188
11189if test x$CHECKCPG = xyes; then
11190
11191pkg_failed=no
11192{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
11193$as_echo_n "checking for CPG... " >&6; }
11194
11195if test -n "$CPG_CFLAGS"; then
11196 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11197 elif test -n "$PKG_CONFIG"; then
11198 if test -n "$PKG_CONFIG" && \
11199 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11200 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11201 ac_status=$?
11202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); }; then
11204 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11205else
11206 pkg_failed=yes
11207fi
11208 else
11209 pkg_failed=untried
11210fi
11211if test -n "$CPG_LIBS"; then
11212 pkg_cv_CPG_LIBS="$CPG_LIBS"
11213 elif test -n "$PKG_CONFIG"; then
11214 if test -n "$PKG_CONFIG" && \
11215 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11216 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11217 ac_status=$?
11218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); }; then
11220 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11221else
11222 pkg_failed=yes
11223fi
11224 else
11225 pkg_failed=untried
11226fi
11227
11228
11229
11230if test $pkg_failed = yes; then
11231
11232if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11233 _pkg_short_errors_supported=yes
11234else
11235 _pkg_short_errors_supported=no
11236fi
11237 if test $_pkg_short_errors_supported = yes; then
11238 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11239 else
11240 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11241 fi
11242 # Put the nasty error message in config.log where it belongs
11243 echo "$CPG_PKG_ERRORS" >&5
11244
11245 { $as_echo "$as_me:$LINENO: result: no" >&5
11246$as_echo "no" >&6; }
11247 $bailout
11248elif test $pkg_failed = untried; then
11249 $bailout
11250else
11251 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11252 CPG_LIBS=$pkg_cv_CPG_LIBS
11253 { $as_echo "$as_me:$LINENO: result: yes" >&5
11254$as_echo "yes" >&6; }
11255 HAVE_CPG=yes
11256fi
11257fi
11258
11259if test x$CHECKDLM = xyes; then
11260
11261pkg_failed=no
11262{ $as_echo "$as_me:$LINENO: checking for DLM" >&5
11263$as_echo_n "checking for DLM... " >&6; }
11264
11265if test -n "$DLM_CFLAGS"; then
11266 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
11267 elif test -n "$PKG_CONFIG"; then
11268 if test -n "$PKG_CONFIG" && \
11269 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11270 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11271 ac_status=$?
11272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; then
11274 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
11275else
11276 pkg_failed=yes
11277fi
11278 else
11279 pkg_failed=untried
11280fi
11281if test -n "$DLM_LIBS"; then
11282 pkg_cv_DLM_LIBS="$DLM_LIBS"
11283 elif test -n "$PKG_CONFIG"; then
11284 if test -n "$PKG_CONFIG" && \
11285 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11286 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11287 ac_status=$?
11288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; then
11290 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
11291else
11292 pkg_failed=yes
11293fi
11294 else
11295 pkg_failed=untried
11296fi
11297
11298
11299
11300if test $pkg_failed = yes; then
11301
11302if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11303 _pkg_short_errors_supported=yes
11304else
11305 _pkg_short_errors_supported=no
11306fi
11307 if test $_pkg_short_errors_supported = yes; then
11308 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
11309 else
11310 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
11311 fi
11312 # Put the nasty error message in config.log where it belongs
11313 echo "$DLM_PKG_ERRORS" >&5
11314
11315 { $as_echo "$as_me:$LINENO: result: no" >&5
11316$as_echo "no" >&6; }
11317 NOTFOUND=0
11318
11319for ac_header in libdlm.h
11320do
11321as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11322if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11323 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11324$as_echo_n "checking for $ac_header... " >&6; }
11325if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11326 $as_echo_n "(cached) " >&6
11327fi
11328ac_res=`eval 'as_val=${'$as_ac_Header'}
11329 $as_echo "$as_val"'`
11330 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11331$as_echo "$ac_res" >&6; }
11332else
11333 # Is the header compilable?
11334{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11335$as_echo_n "checking $ac_header usability... " >&6; }
11336cat >conftest.$ac_ext <<_ACEOF
11337/* confdefs.h. */
11338_ACEOF
11339cat confdefs.h >>conftest.$ac_ext
11340cat >>conftest.$ac_ext <<_ACEOF
11341/* end confdefs.h. */
11342$ac_includes_default
11343#include <$ac_header>
11344_ACEOF
11345rm -f conftest.$ac_objext
11346if { (ac_try="$ac_compile"
11347case "(($ac_try" in
11348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11349 *) ac_try_echo=$ac_try;;
11350esac
11351eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11352$as_echo "$ac_try_echo") >&5
11353 (eval "$ac_compile") 2>conftest.er1
11354 ac_status=$?
11355 grep -v '^ *+' conftest.er1 >conftest.err
11356 rm -f conftest.er1
11357 cat conftest.err >&5
11358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); } && {
11360 test -z "$ac_c_werror_flag" ||
11361 test ! -s conftest.err
11362 } && test -s conftest.$ac_objext; then
11363 ac_header_compiler=yes
11364else
11365 $as_echo "$as_me: failed program was:" >&5
11366sed 's/^/| /' conftest.$ac_ext >&5
11367
11368 ac_header_compiler=no
11369fi
11370
11371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11372{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11373$as_echo "$ac_header_compiler" >&6; }
11374
11375# Is the header present?
11376{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11377$as_echo_n "checking $ac_header presence... " >&6; }
11378cat >conftest.$ac_ext <<_ACEOF
11379/* confdefs.h. */
11380_ACEOF
11381cat confdefs.h >>conftest.$ac_ext
11382cat >>conftest.$ac_ext <<_ACEOF
11383/* end confdefs.h. */
11384#include <$ac_header>
11385_ACEOF
11386if { (ac_try="$ac_cpp conftest.$ac_ext"
11387case "(($ac_try" in
11388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389 *) ac_try_echo=$ac_try;;
11390esac
11391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11392$as_echo "$ac_try_echo") >&5
11393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11394 ac_status=$?
11395 grep -v '^ *+' conftest.er1 >conftest.err
11396 rm -f conftest.er1
11397 cat conftest.err >&5
11398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } >/dev/null && {
11400 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11401 test ! -s conftest.err
11402 }; then
11403 ac_header_preproc=yes
11404else
11405 $as_echo "$as_me: failed program was:" >&5
11406sed 's/^/| /' conftest.$ac_ext >&5
11407
11408 ac_header_preproc=no
11409fi
11410
11411rm -f conftest.err conftest.$ac_ext
11412{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11413$as_echo "$ac_header_preproc" >&6; }
11414
11415# So? What about this header?
11416case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11417 yes:no: )
11418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11419$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11421$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11422 ac_header_preproc=yes
11423 ;;
11424 no:yes:* )
11425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11426$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11428$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11430$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11432$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11434$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11435 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11436$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11437
11438 ;;
11439esac
11440{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11441$as_echo_n "checking for $ac_header... " >&6; }
11442if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11443 $as_echo_n "(cached) " >&6
11444else
11445 eval "$as_ac_Header=\$ac_header_preproc"
11446fi
11447ac_res=`eval 'as_val=${'$as_ac_Header'}
11448 $as_echo "$as_val"'`
11449 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11450$as_echo "$ac_res" >&6; }
11451
11452fi
11453as_val=`eval 'as_val=${'$as_ac_Header'}
11454 $as_echo "$as_val"'`
11455 if test "x$as_val" = x""yes; then
11456 cat >>confdefs.h <<_ACEOF
11457#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11458_ACEOF
11459
11460else
11461 $bailout
11462fi
11463
11464done
11465
11466 check_lib_no_libs dlm dlm_lock -lpthread
11467 if test $NOTFOUND = 0; then
11468 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11469$as_echo "no pkg for libdlm, using -ldlm" >&6; }
11470 DLM_LIBS="-ldlm -lpthread"
11471 HAVE_DLM=yes
11472 fi
11473elif test $pkg_failed = untried; then
11474 NOTFOUND=0
11475
11476for ac_header in libdlm.h
11477do
11478as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11479if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11480 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11481$as_echo_n "checking for $ac_header... " >&6; }
11482if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11483 $as_echo_n "(cached) " >&6
11484fi
11485ac_res=`eval 'as_val=${'$as_ac_Header'}
11486 $as_echo "$as_val"'`
11487 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11488$as_echo "$ac_res" >&6; }
11489else
11490 # Is the header compilable?
11491{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11492$as_echo_n "checking $ac_header usability... " >&6; }
11493cat >conftest.$ac_ext <<_ACEOF
11494/* confdefs.h. */
11495_ACEOF
11496cat confdefs.h >>conftest.$ac_ext
11497cat >>conftest.$ac_ext <<_ACEOF
11498/* end confdefs.h. */
11499$ac_includes_default
11500#include <$ac_header>
11501_ACEOF
11502rm -f conftest.$ac_objext
11503if { (ac_try="$ac_compile"
11504case "(($ac_try" in
11505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11506 *) ac_try_echo=$ac_try;;
11507esac
11508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11509$as_echo "$ac_try_echo") >&5
11510 (eval "$ac_compile") 2>conftest.er1
11511 ac_status=$?
11512 grep -v '^ *+' conftest.er1 >conftest.err
11513 rm -f conftest.er1
11514 cat conftest.err >&5
11515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } && {
11517 test -z "$ac_c_werror_flag" ||
11518 test ! -s conftest.err
11519 } && test -s conftest.$ac_objext; then
11520 ac_header_compiler=yes
11521else
11522 $as_echo "$as_me: failed program was:" >&5
11523sed 's/^/| /' conftest.$ac_ext >&5
11524
11525 ac_header_compiler=no
11526fi
11527
11528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11529{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11530$as_echo "$ac_header_compiler" >&6; }
11531
11532# Is the header present?
11533{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11534$as_echo_n "checking $ac_header presence... " >&6; }
11535cat >conftest.$ac_ext <<_ACEOF
11536/* confdefs.h. */
11537_ACEOF
11538cat confdefs.h >>conftest.$ac_ext
11539cat >>conftest.$ac_ext <<_ACEOF
11540/* end confdefs.h. */
11541#include <$ac_header>
11542_ACEOF
11543if { (ac_try="$ac_cpp conftest.$ac_ext"
11544case "(($ac_try" in
11545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11546 *) ac_try_echo=$ac_try;;
11547esac
11548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11549$as_echo "$ac_try_echo") >&5
11550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11551 ac_status=$?
11552 grep -v '^ *+' conftest.er1 >conftest.err
11553 rm -f conftest.er1
11554 cat conftest.err >&5
11555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); } >/dev/null && {
11557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11558 test ! -s conftest.err
11559 }; then
11560 ac_header_preproc=yes
11561else
11562 $as_echo "$as_me: failed program was:" >&5
11563sed 's/^/| /' conftest.$ac_ext >&5
11564
11565 ac_header_preproc=no
11566fi
11567
11568rm -f conftest.err conftest.$ac_ext
11569{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11570$as_echo "$ac_header_preproc" >&6; }
11571
11572# So? What about this header?
11573case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11574 yes:no: )
11575 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11576$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11577 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11578$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11579 ac_header_preproc=yes
11580 ;;
11581 no:yes:* )
11582 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11583$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11584 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11585$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11587$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11588 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11589$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11591$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11593$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11594
11595 ;;
11596esac
11597{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11598$as_echo_n "checking for $ac_header... " >&6; }
11599if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11600 $as_echo_n "(cached) " >&6
11601else
11602 eval "$as_ac_Header=\$ac_header_preproc"
11603fi
11604ac_res=`eval 'as_val=${'$as_ac_Header'}
11605 $as_echo "$as_val"'`
11606 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11607$as_echo "$ac_res" >&6; }
11608
11609fi
11610as_val=`eval 'as_val=${'$as_ac_Header'}
11611 $as_echo "$as_val"'`
11612 if test "x$as_val" = x""yes; then
11613 cat >>confdefs.h <<_ACEOF
11614#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11615_ACEOF
11616
11617else
11618 $bailout
11619fi
11620
11621done
11622
11623 check_lib_no_libs dlm dlm_lock -lpthread
11624 if test $NOTFOUND = 0; then
11625 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11626$as_echo "no pkg for libdlm, using -ldlm" >&6; }
11627 DLM_LIBS="-ldlm -lpthread"
11628 HAVE_DLM=yes
11629 fi
11630else
11631 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
11632 DLM_LIBS=$pkg_cv_DLM_LIBS
11633 { $as_echo "$as_me:$LINENO: result: yes" >&5
11634$as_echo "yes" >&6; }
11635 HAVE_DLM=yes
11636fi
11637fi
11638
11639if test x$CLVMD = xall; then
8c222979 11640 CLVMD=none
a946372e
AK
11641 if test x$HAVE_CCS = xyes && \
11642 test x$HAVE_GULM = xyes; then
8c222979
FDN
11643 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
11644$as_echo "Enabling clvmd gulm cluster manager" >&6; }
11645 CLVMD="$CLVMD,gulm"
a946372e
AK
11646 fi
11647 if test x$HAVE_CMAN = xyes && \
11648 test x$HAVE_DLM = xyes; then
8c222979
FDN
11649 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
11650$as_echo "Enabling clvmd cman cluster manager" >&6; }
11651 CLVMD="$CLVMD,cman"
a946372e
AK
11652 fi
11653 if test x$HAVE_COROSYNC = xyes && \
11654 test x$HAVE_QUORUM = xyes && \
11655 test x$HAVE_CPG = xyes && \
11656 test x$HAVE_DLM = xyes && \
11657 test x$HAVE_CONFDB = xyes; then
8c222979
FDN
11658 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
11659$as_echo "Enabling clvmd corosync cluster manager" >&6; }
11660 CLVMD="$CLVMD,corosync"
a946372e
AK
11661 fi
11662 if test x$HAVE_COROSYNC = xyes && \
11663 test x$HAVE_CPG = xyes && \
11664 test x$HAVE_SALCK = xyes; then
8c222979
FDN
11665 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
11666$as_echo "Enabling clvmd openais cluster manager" >&6; }
11667 CLVMD="$CLVMD,openais"
11668 fi
11669 if test x$CLVMD = xnone; then
11670 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
11671$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
a946372e 11672 fi
a946372e
AK
11673fi
11674
11675################################################################################
66fd4529
AK
11676{ $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
11677$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
11678# Check whether --enable-cmirrord was given.
11679if test "${enable_cmirrord+set}" = set; then
11680 enableval=$enable_cmirrord; CMIRRORD=$enableval
11681else
11682 CMIRRORD=no
11683fi
11684
11685{ $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
11686$as_echo "$CMIRRORD" >&6; }
11687
11688BUILD_CMIRRORD=$CMIRRORD
11689
11690################################################################################
11691
11692
11693if test "x$BUILD_CMIRRORD" = xyes; then
11694
11695# Check whether --with-cmirrord-pidfile was given.
11696if test "${with_cmirrord_pidfile+set}" = set; then
11697 withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF
11698#define CMIRRORD_PIDFILE "$withval"
11699_ACEOF
11700
11701else
11702 cat >>confdefs.h <<_ACEOF
11703#define CMIRRORD_PIDFILE "/var/run/cmirrord.pid"
11704_ACEOF
11705
a946372e
AK
11706fi
11707
66fd4529 11708fi
a946372e 11709
66fd4529
AK
11710################################################################################
11711if [ "x$BUILD_CMIRRORD" = xyes ]; then
90c80887
AK
11712 if test x$PKGCONFIG_INIT != x1; then
11713 pkg_config_init
11714 fi
11715
11716pkg_failed=no
11717{ $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
11718$as_echo_n "checking for SACKPT... " >&6; }
11719
11720if test -n "$SACKPT_CFLAGS"; then
11721 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
11722 elif test -n "$PKG_CONFIG"; then
11723 if test -n "$PKG_CONFIG" && \
11724 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11725 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11726 ac_status=$?
11727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; then
11729 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
11730else
11731 pkg_failed=yes
11732fi
11733 else
11734 pkg_failed=untried
11735fi
11736if test -n "$SACKPT_LIBS"; then
11737 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
11738 elif test -n "$PKG_CONFIG"; then
11739 if test -n "$PKG_CONFIG" && \
11740 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11741 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11742 ac_status=$?
11743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; then
11745 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
11746else
11747 pkg_failed=yes
11748fi
11749 else
11750 pkg_failed=untried
11751fi
11752
11753
11754
11755if test $pkg_failed = yes; then
11756
11757if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11758 _pkg_short_errors_supported=yes
11759else
11760 _pkg_short_errors_supported=no
11761fi
11762 if test $_pkg_short_errors_supported = yes; then
11763 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
11764 else
11765 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
11766 fi
11767 # Put the nasty error message in config.log where it belongs
11768 echo "$SACKPT_PKG_ERRORS" >&5
11769
11770 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
11771
11772$SACKPT_PKG_ERRORS
11773
11774Consider adjusting the PKG_CONFIG_PATH environment variable if you
11775installed software in a non-standard prefix.
11776
11777Alternatively, you may set the environment variables SACKPT_CFLAGS
11778and SACKPT_LIBS to avoid the need to call pkg-config.
11779See the pkg-config man page for more details.
11780" >&5
11781$as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
11782
11783$SACKPT_PKG_ERRORS
11784
11785Consider adjusting the PKG_CONFIG_PATH environment variable if you
11786installed software in a non-standard prefix.
11787
11788Alternatively, you may set the environment variables SACKPT_CFLAGS
11789and SACKPT_LIBS to avoid the need to call pkg-config.
11790See the pkg-config man page for more details.
11791" >&2;}
11792 { (exit 1); exit 1; }; }
11793elif test $pkg_failed = untried; then
11794 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11796{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11797is in your PATH or set the PKG_CONFIG environment variable to the full
11798path to pkg-config.
11799
11800Alternatively, you may set the environment variables SACKPT_CFLAGS
11801and SACKPT_LIBS to avoid the need to call pkg-config.
11802See the pkg-config man page for more details.
11803
11804To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11805See \`config.log' for more details." >&5
11806$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11807is in your PATH or set the PKG_CONFIG environment variable to the full
11808path to pkg-config.
11809
11810Alternatively, you may set the environment variables SACKPT_CFLAGS
11811and SACKPT_LIBS to avoid the need to call pkg-config.
11812See the pkg-config man page for more details.
11813
11814To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11815See \`config.log' for more details." >&2;}
11816 { (exit 1); exit 1; }; }; }
11817else
11818 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
11819 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
11820 { $as_echo "$as_me:$LINENO: result: yes" >&5
11821$as_echo "yes" >&6; }
11822 :
11823fi
11824 if test x$HAVE_CPG != xyes; then
a946372e
AK
11825
11826pkg_failed=no
11827{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
11828$as_echo_n "checking for CPG... " >&6; }
11829
11830if test -n "$CPG_CFLAGS"; then
11831 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11832 elif test -n "$PKG_CONFIG"; then
11833 if test -n "$PKG_CONFIG" && \
11834 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11835 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11836 ac_status=$?
11837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; then
11839 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11840else
11841 pkg_failed=yes
11842fi
11843 else
11844 pkg_failed=untried
11845fi
11846if test -n "$CPG_LIBS"; then
11847 pkg_cv_CPG_LIBS="$CPG_LIBS"
11848 elif test -n "$PKG_CONFIG"; then
11849 if test -n "$PKG_CONFIG" && \
11850 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11851 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11852 ac_status=$?
11853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; then
11855 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11856else
11857 pkg_failed=yes
11858fi
11859 else
11860 pkg_failed=untried
11861fi
11862
11863
11864
11865if test $pkg_failed = yes; then
11866
11867if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11868 _pkg_short_errors_supported=yes
11869else
11870 _pkg_short_errors_supported=no
11871fi
11872 if test $_pkg_short_errors_supported = yes; then
11873 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11874 else
11875 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11876 fi
11877 # Put the nasty error message in config.log where it belongs
11878 echo "$CPG_PKG_ERRORS" >&5
11879
90c80887
AK
11880 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
11881
11882$CPG_PKG_ERRORS
11883
11884Consider adjusting the PKG_CONFIG_PATH environment variable if you
11885installed software in a non-standard prefix.
11886
11887Alternatively, you may set the environment variables CPG_CFLAGS
11888and CPG_LIBS to avoid the need to call pkg-config.
11889See the pkg-config man page for more details.
11890" >&5
11891$as_echo "$as_me: error: Package requirements (libcpg) were not met:
11892
11893$CPG_PKG_ERRORS
11894
11895Consider adjusting the PKG_CONFIG_PATH environment variable if you
11896installed software in a non-standard prefix.
11897
11898Alternatively, you may set the environment variables CPG_CFLAGS
11899and CPG_LIBS to avoid the need to call pkg-config.
11900See the pkg-config man page for more details.
11901" >&2;}
11902 { (exit 1); exit 1; }; }
a946372e 11903elif test $pkg_failed = untried; then
90c80887
AK
11904 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11906{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11907is in your PATH or set the PKG_CONFIG environment variable to the full
11908path to pkg-config.
11909
11910Alternatively, you may set the environment variables CPG_CFLAGS
11911and CPG_LIBS to avoid the need to call pkg-config.
11912See the pkg-config man page for more details.
11913
11914To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11915See \`config.log' for more details." >&5
11916$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11917is in your PATH or set the PKG_CONFIG environment variable to the full
11918path to pkg-config.
11919
11920Alternatively, you may set the environment variables CPG_CFLAGS
11921and CPG_LIBS to avoid the need to call pkg-config.
11922See the pkg-config man page for more details.
11923
11924To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11925See \`config.log' for more details." >&2;}
11926 { (exit 1); exit 1; }; }; }
a946372e
AK
11927else
11928 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11929 CPG_LIBS=$pkg_cv_CPG_LIBS
11930 { $as_echo "$as_me:$LINENO: result: yes" >&5
11931$as_echo "yes" >&6; }
11932 :
11933fi
90c80887 11934 fi
a946372e
AK
11935fi
11936
11937################################################################################
11938{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
11939$as_echo_n "checking whether to enable debugging... " >&6; }
11940# Check whether --enable-debug was given.
11941if test "${enable_debug+set}" = set; then
11942 enableval=$enable_debug; DEBUG=$enableval
11943else
11944 DEBUG=no
11945fi
11946
11947{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
11948$as_echo "$DEBUG" >&6; }
11949
11950if test x$DEBUG = xyes; then
11951 COPTIMISE_FLAG=
11952else
11953 CSCOPE_CMD=
11954fi
11955
11956################################################################################
11957{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
11958$as_echo_n "checking for C optimisation flag... " >&6; }
11959
11960# Check whether --with-optimisation was given.
11961if test "${with_optimisation+set}" = set; then
11962 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
11963fi
11964
11965{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
11966$as_echo "$COPTIMISE_FLAG" >&6; }
11967
11968################################################################################
11969{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
11970$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
11971# Check whether --enable-profiling was given.
11972if test "${enable_profiling+set}" = set; then
5556819a 11973 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 11974else
5556819a 11975 PROFILING=no
fddafd51
ZK
11976fi
11977
ec6a6fbe
AK
11978{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
11979$as_echo "$PROFILING" >&6; }
5556819a
AK
11980
11981if test "x$PROFILING" = xyes; then
11982 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
11983 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 11984set dummy lcov; ac_word=$2
ec6a6fbe
AK
11985{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11986$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 11987if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 11988 $as_echo_n "(cached) " >&6
fddafd51
ZK
11989else
11990 case $LCOV in
11991 [\\/]* | ?:[\\/]*)
11992 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
11993 ;;
11994 *)
11995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11996for as_dir in $PATH
11997do
11998 IFS=$as_save_IFS
11999 test -z "$as_dir" && as_dir=.
12000 for ac_exec_ext in '' $ac_executable_extensions; do
12001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12002 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 12003 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
12004 break 2
12005 fi
12006done
12007done
12008IFS=$as_save_IFS
12009
b145d876 12010 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
fddafd51
ZK
12011 ;;
12012esac
12013fi
12014LCOV=$ac_cv_path_LCOV
12015if test -n "$LCOV"; then
ec6a6fbe
AK
12016 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
12017$as_echo "$LCOV" >&6; }
fddafd51 12018else
ec6a6fbe
AK
12019 { $as_echo "$as_me:$LINENO: result: no" >&5
12020$as_echo "no" >&6; }
fddafd51
ZK
12021fi
12022
12023
5556819a 12024 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 12025set dummy genhtml; ac_word=$2
ec6a6fbe
AK
12026{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12027$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 12028if test "${ac_cv_path_GENHTML+set}" = set; then
ec6a6fbe 12029 $as_echo_n "(cached) " >&6
fddafd51
ZK
12030else
12031 case $GENHTML in
12032 [\\/]* | ?:[\\/]*)
12033 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
12034 ;;
12035 *)
12036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12037for as_dir in $PATH
12038do
12039 IFS=$as_save_IFS
12040 test -z "$as_dir" && as_dir=.
12041 for ac_exec_ext in '' $ac_executable_extensions; do
12042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12043 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 12044 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
12045 break 2
12046 fi
12047done
12048done
12049IFS=$as_save_IFS
12050
b145d876 12051 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
fddafd51
ZK
12052 ;;
12053esac
12054fi
12055GENHTML=$ac_cv_path_GENHTML
12056if test -n "$GENHTML"; then
ec6a6fbe
AK
12057 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
12058$as_echo "$GENHTML" >&6; }
fddafd51 12059else
ec6a6fbe
AK
12060 { $as_echo "$as_me:$LINENO: result: no" >&5
12061$as_echo "no" >&6; }
fddafd51
ZK
12062fi
12063
12064
b145d876 12065 if test "$LCOV" = no -o "$GENHTML" = no ; then
ec6a6fbe
AK
12066 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
12067$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
12068 { (exit 1); exit 1; }; }
12069 fi
5556819a 12070fi
d0191583
JM
12071
12072################################################################################
ec6a6fbe
AK
12073{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
12074$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
12075# Check whether --enable-devmapper was given.
12076if test "${enable_devmapper+set}" = set; then
12077 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
12078fi
12079
ec6a6fbe
AK
12080{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
12081$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
12082
12083if test x$DEVMAPPER = xyes; then
ad6254c5
AK
12084
12085cat >>confdefs.h <<\_ACEOF
d0191583 12086#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
12087_ACEOF
12088
12089fi
12090
a5f46f6a
AK
12091################################################################################
12092{ $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
12093$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
12094# Check whether --enable-udev_sync was given.
12095if test "${enable_udev_sync+set}" = set; then
12096 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
12097else
12098 UDEV_SYNC=no
12099fi
12100
12101{ $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
12102$as_echo "$UDEV_SYNC" >&6; }
12103
12104if test x$UDEV_SYNC = xyes; then
12105
12106cat >>confdefs.h <<\_ACEOF
12107#define UDEV_SYNC_SUPPORT 1
12108_ACEOF
12109
12110fi
12111
12112{ $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
12113$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
12114# Check whether --enable-udev_rules was given.
12115if test "${enable_udev_rules+set}" = set; then
12116 enableval=$enable_udev_rules; UDEV_RULES=$enableval
12117else
12118 UDEV_RULES=$UDEV_SYNC
12119fi
12120
12121{ $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
12122$as_echo "$UDEV_RULES" >&6; }
12123
90c80887
AK
12124################################################################################
12125
12126if test x$UDEV_SYNC = xyes; then
12127 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
12128$as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
12129if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
12130 $as_echo_n "(cached) " >&6
12131else
12132 ac_check_lib_save_LIBS=$LIBS
12133LIBS="-ludev $LIBS"
12134cat >conftest.$ac_ext <<_ACEOF
12135/* confdefs.h. */
12136_ACEOF
12137cat confdefs.h >>conftest.$ac_ext
12138cat >>conftest.$ac_ext <<_ACEOF
12139/* end confdefs.h. */
12140
12141/* Override any GCC internal prototype to avoid an error.
12142 Use char because int might match the return type of a GCC
12143 builtin and then its argument prototype would still apply. */
12144#ifdef __cplusplus
12145extern "C"
12146#endif
12147char udev_queue_get_udev_is_active ();
12148int
12149main ()
12150{
12151return udev_queue_get_udev_is_active ();
12152 ;
12153 return 0;
12154}
12155_ACEOF
12156rm -f conftest.$ac_objext conftest$ac_exeext
12157if { (ac_try="$ac_link"
12158case "(($ac_try" in
12159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12160 *) ac_try_echo=$ac_try;;
12161esac
12162eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12163$as_echo "$ac_try_echo") >&5
12164 (eval "$ac_link") 2>conftest.er1
12165 ac_status=$?
12166 grep -v '^ *+' conftest.er1 >conftest.err
12167 rm -f conftest.er1
12168 cat conftest.err >&5
12169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); } && {
12171 test -z "$ac_c_werror_flag" ||
12172 test ! -s conftest.err
12173 } && test -s conftest$ac_exeext && {
12174 test "$cross_compiling" = yes ||
12175 $as_test_x conftest$ac_exeext
12176 }; then
12177 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
12178else
12179 $as_echo "$as_me: failed program was:" >&5
12180sed 's/^/| /' conftest.$ac_ext >&5
12181
12182 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
12183fi
12184
12185rm -rf conftest.dSYM
12186rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12187 conftest$ac_exeext conftest.$ac_ext
12188LIBS=$ac_check_lib_save_LIBS
12189fi
12190{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
12191$as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
12192if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
12193 HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=yes
12194else
12195 HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=no
12196fi
12197
12198
12199 if test x$HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE = xyes; then
12200
12201cat >>confdefs.h <<\_ACEOF
12202#define HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE 1
12203_ACEOF
12204
12205 LIBS="-ludev $LIBS"
12206 fi
12207fi
12208
93bd259b
AK
12209################################################################################
12210# Check whether --enable-compat was given.
12211if test "${enable_compat+set}" = set; then
12212 enableval=$enable_compat; DM_COMPAT=$enableval
12213else
12214 DM_COMPAT=no
12215fi
12216
12217
12218################################################################################
12219# Check whether --enable-ioctl was given.
12220if test "${enable_ioctl+set}" = set; then
12221 enableval=$enable_ioctl; DM_IOCTLS=$enableval
12222fi
12223
12224
d0191583 12225################################################################################
ec6a6fbe
AK
12226{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
12227$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
12228# Check whether --enable-o_direct was given.
12229if test "${enable_o_direct+set}" = set; then
12230 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 12231fi
ad6254c5 12232
ec6a6fbe
AK
12233{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
12234$as_echo "$ODIRECT" >&6; }
ad6254c5 12235
d0191583 12236if test x$ODIRECT = xyes; then
ad6254c5 12237
d0191583
JM
12238cat >>confdefs.h <<\_ACEOF
12239#define O_DIRECT_SUPPORT 1
12240_ACEOF
ad6254c5 12241
d0191583 12242fi
ad6254c5 12243
572fefeb
AK
12244################################################################################
12245{ $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
12246$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
12247# Check whether --enable-applib was given.
12248if test "${enable_applib+set}" = set; then
12249 enableval=$enable_applib; APPLIB=$enableval
12250else
12251 APPLIB=no
12252fi
12253
12254{ $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
12255$as_echo "$APPLIB" >&6; }
12256
12257test x$APPLIB = xyes \
12258 && LVM2APP_LIB=-llvm2app \
12259 || LVM2APP_LIB=
12260
d0191583 12261################################################################################
ec6a6fbe
AK
12262{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
12263$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
12264# Check whether --enable-cmdlib was given.
12265if test "${enable_cmdlib+set}" = set; then
12266 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 12267else
d0191583
JM
12268 CMDLIB=no
12269fi
8a2fc586 12270
ec6a6fbe
AK
12271{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
12272$as_echo "$CMDLIB" >&6; }
8a2fc586 12273
2a9a80c9 12274test x$CMDLIB = xyes \
d179cc7a
JM
12275 && LVM2CMD_LIB=-llvm2cmd \
12276 || LVM2CMD_LIB=
12277
93bd259b
AK
12278################################################################################
12279# Check whether --enable-pkgconfig was given.
12280if test "${enable_pkgconfig+set}" = set; then
12281 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
12282else
12283 PKGCONFIG=no
12284fi
12285
2a9a80c9 12286
d0191583 12287################################################################################
ec6a6fbe
AK
12288{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
12289$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
12290# Check whether --enable-fsadm was given.
12291if test "${enable_fsadm+set}" = set; then
12292 enableval=$enable_fsadm; FSADM=$enableval
12293fi
8a2fc586 12294
ec6a6fbe
AK
12295{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
12296$as_echo "$FSADM" >&6; }
8a2fc586 12297
d0191583 12298################################################################################
ec6a6fbe
AK
12299{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
12300$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
12301# Check whether --enable-dmeventd was given.
12302if test "${enable_dmeventd+set}" = set; then
12303 enableval=$enable_dmeventd; DMEVENTD=$enableval
12304fi
ad6254c5 12305
ec6a6fbe
AK
12306{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
12307$as_echo "$DMEVENTD" >&6; }
ad6254c5 12308
93bd259b
AK
12309BUILD_DMEVENTD=$DMEVENTD
12310
2a9a80c9
PR
12311if test x$DMEVENTD = xyes; then
12312 if test x$MIRRORS != xinternal; then
ec6a6fbe 12313 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 12314 " >&5
ec6a6fbe 12315$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 12316 " >&2;}
d0191583 12317 { (exit 1); exit 1; }; }
2a9a80c9
PR
12318 fi
12319 if test x$CMDLIB = xno; then
ec6a6fbe 12320 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 12321 " >&5
ec6a6fbe 12322$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
12323 " >&2;}
12324 { (exit 1); exit 1; }; }
12325 fi
ad6254c5 12326fi
7a197a62 12327
d0191583
JM
12328if test x$DMEVENTD = xyes; then
12329
12330cat >>confdefs.h <<\_ACEOF
12331#define DMEVENTD 1
ad6254c5
AK
12332_ACEOF
12333
ad6254c5 12334fi
93bd259b
AK
12335
12336################################################################################
12337
ec6a6fbe
AK
12338{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
12339$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 12340if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 12341 $as_echo_n "(cached) " >&6
93bd259b
AK
12342else
12343 ac_check_lib_save_LIBS=$LIBS
12344LIBS="-lc $LIBS"
12345cat >conftest.$ac_ext <<_ACEOF
12346/* confdefs.h. */
12347_ACEOF
12348cat confdefs.h >>conftest.$ac_ext
12349cat >>conftest.$ac_ext <<_ACEOF
12350/* end confdefs.h. */
12351
12352/* Override any GCC internal prototype to avoid an error.
12353 Use char because int might match the return type of a GCC
12354 builtin and then its argument prototype would still apply. */
12355#ifdef __cplusplus
12356extern "C"
12357#endif
12358char getline ();
12359int
12360main ()
12361{
12362return getline ();
12363 ;
12364 return 0;
12365}
12366_ACEOF
12367rm -f conftest.$ac_objext conftest$ac_exeext
12368if { (ac_try="$ac_link"
12369case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12372esac
ec6a6fbe
AK
12373eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12374$as_echo "$ac_try_echo") >&5
93bd259b
AK
12375 (eval "$ac_link") 2>conftest.er1
12376 ac_status=$?
12377 grep -v '^ *+' conftest.er1 >conftest.err
12378 rm -f conftest.er1
12379 cat conftest.err >&5
ec6a6fbe 12380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
12381 (exit $ac_status); } && {
12382 test -z "$ac_c_werror_flag" ||
12383 test ! -s conftest.err
ec6a6fbe
AK
12384 } && test -s conftest$ac_exeext && {
12385 test "$cross_compiling" = yes ||
12386 $as_test_x conftest$ac_exeext
12387 }; then
93bd259b
AK
12388 ac_cv_lib_c_getline=yes
12389else
ec6a6fbe 12390 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
12391sed 's/^/| /' conftest.$ac_ext >&5
12392
12393 ac_cv_lib_c_getline=no
12394fi
12395
ec6a6fbe 12396rm -rf conftest.dSYM
93bd259b
AK
12397rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12398 conftest$ac_exeext conftest.$ac_ext
12399LIBS=$ac_check_lib_save_LIBS
12400fi
ec6a6fbe
AK
12401{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
12402$as_echo "$ac_cv_lib_c_getline" >&6; }
12403if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
12404
12405cat >>confdefs.h <<\_ACEOF
12406#define HAVE_GETLINE 1
12407_ACEOF
12408
12409fi
12410
12411
12412################################################################################
12413
ec6a6fbe
AK
12414{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
12415$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 12416if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 12417 $as_echo_n "(cached) " >&6
93bd259b
AK
12418else
12419 ac_check_lib_save_LIBS=$LIBS
12420LIBS="-lc $LIBS"
12421cat >conftest.$ac_ext <<_ACEOF
12422/* confdefs.h. */
12423_ACEOF
12424cat confdefs.h >>conftest.$ac_ext
12425cat >>conftest.$ac_ext <<_ACEOF
12426/* end confdefs.h. */
12427
12428/* Override any GCC internal prototype to avoid an error.
12429 Use char because int might match the return type of a GCC
12430 builtin and then its argument prototype would still apply. */
12431#ifdef __cplusplus
12432extern "C"
12433#endif
12434char canonicalize_file_name ();
12435int
12436main ()
12437{
12438return canonicalize_file_name ();
12439 ;
12440 return 0;
12441}
12442_ACEOF
12443rm -f conftest.$ac_objext conftest$ac_exeext
12444if { (ac_try="$ac_link"
12445case "(($ac_try" in
12446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447 *) ac_try_echo=$ac_try;;
12448esac
ec6a6fbe
AK
12449eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12450$as_echo "$ac_try_echo") >&5
93bd259b
AK
12451 (eval "$ac_link") 2>conftest.er1
12452 ac_status=$?
12453 grep -v '^ *+' conftest.er1 >conftest.err
12454 rm -f conftest.er1
12455 cat conftest.err >&5
ec6a6fbe 12456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
12457 (exit $ac_status); } && {
12458 test -z "$ac_c_werror_flag" ||
12459 test ! -s conftest.err
ec6a6fbe
AK
12460 } && test -s conftest$ac_exeext && {
12461 test "$cross_compiling" = yes ||
12462 $as_test_x conftest$ac_exeext
12463 }; then
93bd259b
AK
12464 ac_cv_lib_c_canonicalize_file_name=yes
12465else
ec6a6fbe 12466 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
12467sed 's/^/| /' conftest.$ac_ext >&5
12468
12469 ac_cv_lib_c_canonicalize_file_name=no
12470fi
12471
ec6a6fbe 12472rm -rf conftest.dSYM
93bd259b
AK
12473rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12474 conftest$ac_exeext conftest.$ac_ext
12475LIBS=$ac_check_lib_save_LIBS
12476fi
ec6a6fbe
AK
12477{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
12478$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
12479if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
12480
12481cat >>confdefs.h <<\_ACEOF
12482#define HAVE_CANONICALIZE_FILE_NAME 1
12483_ACEOF
12484
12485fi
12486
12487
d0191583
JM
12488################################################################################
12489if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
12490 then exec_prefix="";
12491fi;
ad6254c5
AK
12492
12493################################################################################
06e459df 12494if test x$READLINE != xno; then
ec6a6fbe
AK
12495 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
12496$as_echo_n "checking for library containing tgetent... " >&6; }
ad6254c5 12497if test "${ac_cv_search_tgetent+set}" = set; then
ec6a6fbe 12498 $as_echo_n "(cached) " >&6
ad6254c5
AK
12499else
12500 ac_func_search_save_LIBS=$LIBS
ad6254c5 12501cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12502/* confdefs.h. */
12503_ACEOF
12504cat confdefs.h >>conftest.$ac_ext
12505cat >>conftest.$ac_ext <<_ACEOF
12506/* end confdefs.h. */
12507
7a197a62
AK
12508/* Override any GCC internal prototype to avoid an error.
12509 Use char because int might match the return type of a GCC
12510 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12511#ifdef __cplusplus
12512extern "C"
12513#endif
ad6254c5
AK
12514char tgetent ();
12515int
12516main ()
12517{
7a197a62 12518return tgetent ();
ad6254c5
AK
12519 ;
12520 return 0;
12521}
12522_ACEOF
18dcfb69 12523for ac_lib in '' tinfo ncurses curses termcap termlib; do
7a197a62
AK
12524 if test -z "$ac_lib"; then
12525 ac_res="none required"
12526 else
12527 ac_res=-l$ac_lib
12528 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12529 fi
12530 rm -f conftest.$ac_objext conftest$ac_exeext
12531if { (ac_try="$ac_link"
12532case "(($ac_try" in
12533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534 *) ac_try_echo=$ac_try;;
12535esac
ec6a6fbe
AK
12536eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12537$as_echo "$ac_try_echo") >&5
7a197a62 12538 (eval "$ac_link") 2>conftest.er1
ad6254c5 12539 ac_status=$?
8a2fc586
AK
12540 grep -v '^ *+' conftest.er1 >conftest.err
12541 rm -f conftest.er1
12542 cat conftest.err >&5
ec6a6fbe 12543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12544 (exit $ac_status); } && {
12545 test -z "$ac_c_werror_flag" ||
12546 test ! -s conftest.err
ec6a6fbe
AK
12547 } && test -s conftest$ac_exeext && {
12548 test "$cross_compiling" = yes ||
12549 $as_test_x conftest$ac_exeext
12550 }; then
7a197a62 12551 ac_cv_search_tgetent=$ac_res
ad6254c5 12552else
ec6a6fbe 12553 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12554sed 's/^/| /' conftest.$ac_ext >&5
12555
ad6254c5 12556
7a197a62 12557fi
ad6254c5 12558
ec6a6fbe 12559rm -rf conftest.dSYM
25fbec5b 12560rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7a197a62
AK
12561 conftest$ac_exeext
12562 if test "${ac_cv_search_tgetent+set}" = set; then
12563 break
ad6254c5 12564fi
7a197a62
AK
12565done
12566if test "${ac_cv_search_tgetent+set}" = set; then
12567 :
12568else
12569 ac_cv_search_tgetent=no
ad6254c5 12570fi
7a197a62 12571rm conftest.$ac_ext
ad6254c5
AK
12572LIBS=$ac_func_search_save_LIBS
12573fi
ec6a6fbe
AK
12574{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
12575$as_echo "$ac_cv_search_tgetent" >&6; }
7a197a62
AK
12576ac_res=$ac_cv_search_tgetent
12577if test "$ac_res" != no; then
12578 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
06e459df 12579 tg_found=yes
ad6254c5 12580else
06e459df
JM
12581 tg_found=no
12582fi
12583
12584 test x$READLINE:$tg_found = xyes:no &&
ec6a6fbe 12585 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
ad6254c5
AK
12586--enable-readline option (which is enabled by default). Either disable readline
12587support with --disable-readline or download and install termcap from:
12588 ftp.gnu.org/gnu/termcap
12589Note: if you are using precompiled packages you will also need the development
12590 package as well (which may be called termcap-devel or something similar).
12591Note: (n)curses also seems to work as a substitute for termcap. This was
12592 not found either - but you could try installing that as well.
12593" >&5
ec6a6fbe 12594$as_echo "$as_me: error: termcap could not be found which is required for the
ad6254c5
AK
12595--enable-readline option (which is enabled by default). Either disable readline
12596support with --disable-readline or download and install termcap from:
12597 ftp.gnu.org/gnu/termcap
12598Note: if you are using precompiled packages you will also need the development
12599 package as well (which may be called termcap-devel or something similar).
12600Note: (n)curses also seems to work as a substitute for termcap. This was
12601 not found either - but you could try installing that as well.
12602" >&2;}
12603 { (exit 1); exit 1; }; }
ad6254c5
AK
12604fi
12605
12606################################################################################
ec6a6fbe
AK
12607{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12608$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 12609if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 12610 $as_echo_n "(cached) " >&6
ad6254c5
AK
12611else
12612 ac_check_lib_save_LIBS=$LIBS
12613LIBS="-ldl $LIBS"
12614cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12615/* confdefs.h. */
12616_ACEOF
12617cat confdefs.h >>conftest.$ac_ext
12618cat >>conftest.$ac_ext <<_ACEOF
12619/* end confdefs.h. */
12620
7a197a62
AK
12621/* Override any GCC internal prototype to avoid an error.
12622 Use char because int might match the return type of a GCC
12623 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12624#ifdef __cplusplus
12625extern "C"
12626#endif
ad6254c5
AK
12627char dlopen ();
12628int
12629main ()
12630{
7a197a62 12631return dlopen ();
ad6254c5
AK
12632 ;
12633 return 0;
12634}
12635_ACEOF
12636rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12637if { (ac_try="$ac_link"
12638case "(($ac_try" in
12639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640 *) ac_try_echo=$ac_try;;
12641esac
ec6a6fbe
AK
12642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12643$as_echo "$ac_try_echo") >&5
7a197a62 12644 (eval "$ac_link") 2>conftest.er1
ad6254c5 12645 ac_status=$?
8a2fc586
AK
12646 grep -v '^ *+' conftest.er1 >conftest.err
12647 rm -f conftest.er1
12648 cat conftest.err >&5
ec6a6fbe 12649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12650 (exit $ac_status); } && {
12651 test -z "$ac_c_werror_flag" ||
12652 test ! -s conftest.err
ec6a6fbe
AK
12653 } && test -s conftest$ac_exeext && {
12654 test "$cross_compiling" = yes ||
12655 $as_test_x conftest$ac_exeext
12656 }; then
ad6254c5
AK
12657 ac_cv_lib_dl_dlopen=yes
12658else
ec6a6fbe 12659 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12660sed 's/^/| /' conftest.$ac_ext >&5
12661
7a197a62 12662 ac_cv_lib_dl_dlopen=no
ad6254c5 12663fi
7a197a62 12664
ec6a6fbe 12665rm -rf conftest.dSYM
25fbec5b 12666rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 12667 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
12668LIBS=$ac_check_lib_save_LIBS
12669fi
ec6a6fbe
AK
12670{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12671$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12672if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5
AK
12673 HAVE_LIBDL=yes
12674else
12675 HAVE_LIBDL=no
12676fi
12677
12678
7e9e9502 12679if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
12680
12681cat >>confdefs.h <<\_ACEOF
12682#define HAVE_LIBDL 1
12683_ACEOF
12684
ad6254c5
AK
12685 LIBS="-ldl $LIBS"
12686else
12687 HAVE_LIBDL=no
12688fi
12689
12690################################################################################
12691if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
12692 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
12693 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 12694 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 12695" >&5
ec6a6fbe 12696$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
12697" >&2;}
12698 { (exit 1); exit 1; }; }
12699fi
12700
d0191583 12701################################################################################
ec6a6fbe
AK
12702{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
12703$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
12704# Check whether --enable-selinux was given.
12705if test "${enable_selinux+set}" = set; then
12706 enableval=$enable_selinux; SELINUX=$enableval
12707fi
12708
ec6a6fbe
AK
12709{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
12710$as_echo "$SELINUX" >&6; }
d0191583 12711
ad6254c5
AK
12712################################################################################
12713if test x$SELINUX = xyes; then
ec6a6fbe
AK
12714 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
12715$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 12716if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 12717 $as_echo_n "(cached) " >&6
8a2fc586
AK
12718else
12719 ac_check_lib_save_LIBS=$LIBS
12720LIBS="-lsepol $LIBS"
12721cat >conftest.$ac_ext <<_ACEOF
12722/* confdefs.h. */
12723_ACEOF
12724cat confdefs.h >>conftest.$ac_ext
12725cat >>conftest.$ac_ext <<_ACEOF
12726/* end confdefs.h. */
12727
7a197a62
AK
12728/* Override any GCC internal prototype to avoid an error.
12729 Use char because int might match the return type of a GCC
12730 builtin and then its argument prototype would still apply. */
8a2fc586
AK
12731#ifdef __cplusplus
12732extern "C"
12733#endif
8a2fc586
AK
12734char sepol_check_context ();
12735int
12736main ()
12737{
7a197a62 12738return sepol_check_context ();
8a2fc586
AK
12739 ;
12740 return 0;
12741}
12742_ACEOF
12743rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12744if { (ac_try="$ac_link"
12745case "(($ac_try" in
12746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12747 *) ac_try_echo=$ac_try;;
12748esac
ec6a6fbe
AK
12749eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12750$as_echo "$ac_try_echo") >&5
7a197a62 12751 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
12752 ac_status=$?
12753 grep -v '^ *+' conftest.er1 >conftest.err
12754 rm -f conftest.er1
12755 cat conftest.err >&5
ec6a6fbe 12756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12757 (exit $ac_status); } && {
12758 test -z "$ac_c_werror_flag" ||
12759 test ! -s conftest.err
ec6a6fbe
AK
12760 } && test -s conftest$ac_exeext && {
12761 test "$cross_compiling" = yes ||
12762 $as_test_x conftest$ac_exeext
12763 }; then
8a2fc586
AK
12764 ac_cv_lib_sepol_sepol_check_context=yes
12765else
ec6a6fbe 12766 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
12767sed 's/^/| /' conftest.$ac_ext >&5
12768
7a197a62 12769 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 12770fi
7a197a62 12771
ec6a6fbe 12772rm -rf conftest.dSYM
25fbec5b 12773rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
12774 conftest$ac_exeext conftest.$ac_ext
12775LIBS=$ac_check_lib_save_LIBS
12776fi
ec6a6fbe
AK
12777{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
12778$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
12779if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586
AK
12780 HAVE_SEPOL=yes
12781else
12782 HAVE_SEPOL=no
12783fi
12784
8a2fc586
AK
12785
12786 if test x$HAVE_SEPOL = xyes; then
d0191583
JM
12787
12788cat >>confdefs.h <<\_ACEOF
12789#define HAVE_SEPOL 1
12790_ACEOF
12791
8a2fc586
AK
12792 LIBS="-lsepol $LIBS"
12793 fi
12794
ec6a6fbe
AK
12795 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
12796$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 12797if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 12798 $as_echo_n "(cached) " >&6
ad6254c5
AK
12799else
12800 ac_check_lib_save_LIBS=$LIBS
12801LIBS="-lselinux $LIBS"
12802cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12803/* confdefs.h. */
12804_ACEOF
12805cat confdefs.h >>conftest.$ac_ext
12806cat >>conftest.$ac_ext <<_ACEOF
12807/* end confdefs.h. */
12808
7a197a62
AK
12809/* Override any GCC internal prototype to avoid an error.
12810 Use char because int might match the return type of a GCC
12811 builtin and then its argument prototype would still apply. */
ad6254c5
AK
12812#ifdef __cplusplus
12813extern "C"
12814#endif
ad6254c5
AK
12815char is_selinux_enabled ();
12816int
12817main ()
12818{
7a197a62 12819return is_selinux_enabled ();
ad6254c5
AK
12820 ;
12821 return 0;
12822}
12823_ACEOF
12824rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
12825if { (ac_try="$ac_link"
12826case "(($ac_try" in
12827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12828 *) ac_try_echo=$ac_try;;
12829esac
ec6a6fbe
AK
12830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12831$as_echo "$ac_try_echo") >&5
7a197a62 12832 (eval "$ac_link") 2>conftest.er1
ad6254c5 12833 ac_status=$?
8a2fc586
AK
12834 grep -v '^ *+' conftest.er1 >conftest.err
12835 rm -f conftest.er1
12836 cat conftest.err >&5
ec6a6fbe 12837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12838 (exit $ac_status); } && {
12839 test -z "$ac_c_werror_flag" ||
12840 test ! -s conftest.err
ec6a6fbe
AK
12841 } && test -s conftest$ac_exeext && {
12842 test "$cross_compiling" = yes ||
12843 $as_test_x conftest$ac_exeext
12844 }; then
ad6254c5
AK
12845 ac_cv_lib_selinux_is_selinux_enabled=yes
12846else
ec6a6fbe 12847 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12848sed 's/^/| /' conftest.$ac_ext >&5
12849
7a197a62 12850 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 12851fi
7a197a62 12852
ec6a6fbe 12853rm -rf conftest.dSYM
25fbec5b 12854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 12855 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
12856LIBS=$ac_check_lib_save_LIBS
12857fi
ec6a6fbe
AK
12858{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
12859$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
12860if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5
AK
12861 HAVE_SELINUX=yes
12862else
12863 HAVE_SELINUX=no
12864fi
12865
ad6254c5
AK
12866
12867 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
12868
12869cat >>confdefs.h <<\_ACEOF
12870#define HAVE_SELINUX 1
12871_ACEOF
12872
ad6254c5
AK
12873 LIBS="-lselinux $LIBS"
12874 else
ec6a6fbe
AK
12875 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
12876$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
66e941e8
JM
12877 fi
12878
d0191583 12879 # With --enable-static_link and selinux enabled, linking
66e941e8
JM
12880 # fails on at least Debian unstable due to unsatisfied references
12881 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
12882 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
12883 lvm_saved_libs=$LIBS
12884 LIBS="$LIBS -static"
ec6a6fbe
AK
12885 { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12886$as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
66e941e8 12887if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
ec6a6fbe 12888 $as_echo_n "(cached) " >&6
66e941e8
JM
12889else
12890 ac_func_search_save_LIBS=$LIBS
12891cat >conftest.$ac_ext <<_ACEOF
12892/* confdefs.h. */
12893_ACEOF
12894cat confdefs.h >>conftest.$ac_ext
12895cat >>conftest.$ac_ext <<_ACEOF
12896/* end confdefs.h. */
12897
12898/* Override any GCC internal prototype to avoid an error.
12899 Use char because int might match the return type of a GCC
12900 builtin and then its argument prototype would still apply. */
12901#ifdef __cplusplus
12902extern "C"
12903#endif
12904char pthread_mutex_lock ();
12905int
12906main ()
12907{
12908return pthread_mutex_lock ();
12909 ;
12910 return 0;
12911}
12912_ACEOF
12913for ac_lib in '' pthread; do
12914 if test -z "$ac_lib"; then
12915 ac_res="none required"
12916 else
12917 ac_res=-l$ac_lib
12918 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12919 fi
12920 rm -f conftest.$ac_objext conftest$ac_exeext
12921if { (ac_try="$ac_link"
12922case "(($ac_try" in
12923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924 *) ac_try_echo=$ac_try;;
12925esac
ec6a6fbe
AK
12926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12927$as_echo "$ac_try_echo") >&5
66e941e8
JM
12928 (eval "$ac_link") 2>conftest.er1
12929 ac_status=$?
12930 grep -v '^ *+' conftest.er1 >conftest.err
12931 rm -f conftest.er1
12932 cat conftest.err >&5
ec6a6fbe 12933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12934 (exit $ac_status); } && {
12935 test -z "$ac_c_werror_flag" ||
12936 test ! -s conftest.err
ec6a6fbe
AK
12937 } && test -s conftest$ac_exeext && {
12938 test "$cross_compiling" = yes ||
12939 $as_test_x conftest$ac_exeext
12940 }; then
66e941e8
JM
12941 ac_cv_search_pthread_mutex_lock=$ac_res
12942else
ec6a6fbe 12943 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
12944sed 's/^/| /' conftest.$ac_ext >&5
12945
12946
12947fi
12948
ec6a6fbe 12949rm -rf conftest.dSYM
25fbec5b 12950rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66e941e8
JM
12951 conftest$ac_exeext
12952 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12953 break
12954fi
12955done
12956if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12957 :
12958else
12959 ac_cv_search_pthread_mutex_lock=no
12960fi
12961rm conftest.$ac_ext
12962LIBS=$ac_func_search_save_LIBS
12963fi
ec6a6fbe
AK
12964{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12965$as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
66e941e8
JM
12966ac_res=$ac_cv_search_pthread_mutex_lock
12967if test "$ac_res" != no; then
12968 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12969 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
12970 LIB_PTHREAD=-lpthread
12971fi
12972
12973 LIBS=$lvm_saved_libs
ad6254c5
AK
12974 fi
12975fi
12976
8b1a3214
AK
12977################################################################################
12978if test x$REALTIME = xyes; then
ec6a6fbe
AK
12979 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12980$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 12981if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 12982 $as_echo_n "(cached) " >&6
8b1a3214
AK
12983else
12984 ac_check_lib_save_LIBS=$LIBS
12985LIBS="-lrt $LIBS"
12986cat >conftest.$ac_ext <<_ACEOF
12987/* confdefs.h. */
12988_ACEOF
12989cat confdefs.h >>conftest.$ac_ext
12990cat >>conftest.$ac_ext <<_ACEOF
12991/* end confdefs.h. */
12992
7a197a62
AK
12993/* Override any GCC internal prototype to avoid an error.
12994 Use char because int might match the return type of a GCC
12995 builtin and then its argument prototype would still apply. */
8b1a3214
AK
12996#ifdef __cplusplus
12997extern "C"
12998#endif
8b1a3214
AK
12999char clock_gettime ();
13000int
13001main ()
13002{
7a197a62 13003return clock_gettime ();
8b1a3214
AK
13004 ;
13005 return 0;
13006}
13007_ACEOF
13008rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13009if { (ac_try="$ac_link"
13010case "(($ac_try" in
13011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012 *) ac_try_echo=$ac_try;;
13013esac
ec6a6fbe
AK
13014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13015$as_echo "$ac_try_echo") >&5
7a197a62 13016 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
13017 ac_status=$?
13018 grep -v '^ *+' conftest.er1 >conftest.err
13019 rm -f conftest.er1
13020 cat conftest.err >&5
ec6a6fbe 13021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13022 (exit $ac_status); } && {
13023 test -z "$ac_c_werror_flag" ||
13024 test ! -s conftest.err
ec6a6fbe
AK
13025 } && test -s conftest$ac_exeext && {
13026 test "$cross_compiling" = yes ||
13027 $as_test_x conftest$ac_exeext
13028 }; then
8b1a3214
AK
13029 ac_cv_lib_rt_clock_gettime=yes
13030else
ec6a6fbe 13031 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
13032sed 's/^/| /' conftest.$ac_ext >&5
13033
7a197a62 13034 ac_cv_lib_rt_clock_gettime=no
8b1a3214 13035fi
7a197a62 13036
ec6a6fbe 13037rm -rf conftest.dSYM
25fbec5b 13038rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
13039 conftest$ac_exeext conftest.$ac_ext
13040LIBS=$ac_check_lib_save_LIBS
13041fi
ec6a6fbe
AK
13042{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
13043$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13044if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
13045 HAVE_REALTIME=yes
13046else
13047 HAVE_REALTIME=no
13048fi
13049
8b1a3214
AK
13050
13051 if test x$HAVE_REALTIME = xyes; then
13052
13053cat >>confdefs.h <<\_ACEOF
13054#define HAVE_REALTIME 1
13055_ACEOF
13056
13057 LIBS="-lrt $LIBS"
13058 else
ec6a6fbe
AK
13059 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
13060$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
13061 fi
13062fi
13063
ad6254c5
AK
13064################################################################################
13065
13066for ac_header in getopt.h
13067do
ec6a6fbe 13068as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13069if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13070 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13071$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13072if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13073 $as_echo_n "(cached) " >&6
ad6254c5 13074fi
ec6a6fbe
AK
13075ac_res=`eval 'as_val=${'$as_ac_Header'}
13076 $as_echo "$as_val"'`
13077 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13078$as_echo "$ac_res" >&6; }
ad6254c5
AK
13079else
13080 # Is the header compilable?
ec6a6fbe
AK
13081{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13082$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13083cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13084/* confdefs.h. */
13085_ACEOF
13086cat confdefs.h >>conftest.$ac_ext
13087cat >>conftest.$ac_ext <<_ACEOF
13088/* end confdefs.h. */
13089$ac_includes_default
13090#include <$ac_header>
13091_ACEOF
13092rm -f conftest.$ac_objext
7a197a62
AK
13093if { (ac_try="$ac_compile"
13094case "(($ac_try" in
13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13097esac
ec6a6fbe
AK
13098eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13099$as_echo "$ac_try_echo") >&5
7a197a62 13100 (eval "$ac_compile") 2>conftest.er1
ad6254c5 13101 ac_status=$?
8a2fc586
AK
13102 grep -v '^ *+' conftest.er1 >conftest.err
13103 rm -f conftest.er1
13104 cat conftest.err >&5
ec6a6fbe 13105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13106 (exit $ac_status); } && {
13107 test -z "$ac_c_werror_flag" ||
13108 test ! -s conftest.err
13109 } && test -s conftest.$ac_objext; then
ad6254c5
AK
13110 ac_header_compiler=yes
13111else
ec6a6fbe 13112 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13113sed 's/^/| /' conftest.$ac_ext >&5
13114
7a197a62 13115 ac_header_compiler=no
ad6254c5 13116fi
7a197a62
AK
13117
13118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13119{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13120$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13121
13122# Is the header present?
ec6a6fbe
AK
13123{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13124$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 13125cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13126/* confdefs.h. */
13127_ACEOF
13128cat confdefs.h >>conftest.$ac_ext
13129cat >>conftest.$ac_ext <<_ACEOF
13130/* end confdefs.h. */
13131#include <$ac_header>
13132_ACEOF
7a197a62
AK
13133if { (ac_try="$ac_cpp conftest.$ac_ext"
13134case "(($ac_try" in
13135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13136 *) ac_try_echo=$ac_try;;
13137esac
ec6a6fbe
AK
13138eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13139$as_echo "$ac_try_echo") >&5
7a197a62 13140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
13141 ac_status=$?
13142 grep -v '^ *+' conftest.er1 >conftest.err
13143 rm -f conftest.er1
13144 cat conftest.err >&5
ec6a6fbe 13145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13146 (exit $ac_status); } >/dev/null && {
13147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13148 test ! -s conftest.err
13149 }; then
ad6254c5
AK
13150 ac_header_preproc=yes
13151else
ec6a6fbe 13152 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13153sed 's/^/| /' conftest.$ac_ext >&5
13154
13155 ac_header_preproc=no
13156fi
7a197a62 13157
ad6254c5 13158rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
13159{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13160$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
13161
13162# So? What about this header?
8a2fc586
AK
13163case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13164 yes:no: )
ec6a6fbe
AK
13165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13166$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13168$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 13169 ac_header_preproc=yes
ad6254c5 13170 ;;
8a2fc586 13171 no:yes:* )
ec6a6fbe
AK
13172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13173$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13175$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13176 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13177$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13178 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13179$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13180 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13181$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13183$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 13184
ad6254c5
AK
13185 ;;
13186esac
ec6a6fbe
AK
13187{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13188$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13189if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13190 $as_echo_n "(cached) " >&6
ad6254c5 13191else
8a2fc586 13192 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 13193fi
ec6a6fbe
AK
13194ac_res=`eval 'as_val=${'$as_ac_Header'}
13195 $as_echo "$as_val"'`
13196 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13197$as_echo "$ac_res" >&6; }
ad6254c5
AK
13198
13199fi
ec6a6fbe
AK
13200as_val=`eval 'as_val=${'$as_ac_Header'}
13201 $as_echo "$as_val"'`
13202 if test "x$as_val" = x""yes; then
ad6254c5 13203 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13204#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 13205_ACEOF
72b2cb61
AK
13206
13207cat >>confdefs.h <<\_ACEOF
13208#define HAVE_GETOPTLONG 1
13209_ACEOF
13210
ad6254c5
AK
13211fi
13212
13213done
13214
13215
13216################################################################################
06e459df 13217if test x$READLINE != xno; then
bc1024f8
JM
13218 rl_found=yes
13219
ec6a6fbe
AK
13220{ $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
13221$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 13222if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 13223 $as_echo_n "(cached) " >&6
ad6254c5
AK
13224else
13225 ac_check_lib_save_LIBS=$LIBS
13226LIBS="-lreadline $LIBS"
13227cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13228/* confdefs.h. */
13229_ACEOF
13230cat confdefs.h >>conftest.$ac_ext
13231cat >>conftest.$ac_ext <<_ACEOF
13232/* end confdefs.h. */
13233
7a197a62
AK
13234/* Override any GCC internal prototype to avoid an error.
13235 Use char because int might match the return type of a GCC
13236 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13237#ifdef __cplusplus
13238extern "C"
13239#endif
ad6254c5
AK
13240char readline ();
13241int
13242main ()
13243{
7a197a62 13244return readline ();
ad6254c5
AK
13245 ;
13246 return 0;
13247}
13248_ACEOF
13249rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13250if { (ac_try="$ac_link"
13251case "(($ac_try" in
13252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13253 *) ac_try_echo=$ac_try;;
13254esac
ec6a6fbe
AK
13255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13256$as_echo "$ac_try_echo") >&5
7a197a62 13257 (eval "$ac_link") 2>conftest.er1
ad6254c5 13258 ac_status=$?
8a2fc586
AK
13259 grep -v '^ *+' conftest.er1 >conftest.err
13260 rm -f conftest.er1
13261 cat conftest.err >&5
ec6a6fbe 13262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13263 (exit $ac_status); } && {
13264 test -z "$ac_c_werror_flag" ||
13265 test ! -s conftest.err
ec6a6fbe
AK
13266 } && test -s conftest$ac_exeext && {
13267 test "$cross_compiling" = yes ||
13268 $as_test_x conftest$ac_exeext
13269 }; then
ad6254c5
AK
13270 ac_cv_lib_readline_readline=yes
13271else
ec6a6fbe 13272 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13273sed 's/^/| /' conftest.$ac_ext >&5
13274
7a197a62 13275 ac_cv_lib_readline_readline=no
ad6254c5 13276fi
7a197a62 13277
ec6a6fbe 13278rm -rf conftest.dSYM
25fbec5b 13279rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13280 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
13281LIBS=$ac_check_lib_save_LIBS
13282fi
ec6a6fbe
AK
13283{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13284$as_echo "$ac_cv_lib_readline_readline" >&6; }
13285if test "x$ac_cv_lib_readline_readline" = x""yes; then
bc1024f8
JM
13286 cat >>confdefs.h <<_ACEOF
13287#define HAVE_LIBREADLINE 1
13288_ACEOF
13289
13290 LIBS="-lreadline $LIBS"
13291
ad6254c5 13292else
06e459df
JM
13293 rl_found=no
13294fi
13295
13296 test x$READLINE:$rl_found = xyes:no &&
ec6a6fbe 13297 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
13298--enable-readline option (which is enabled by default). Either disable readline
13299support with --disable-readline or download and install readline from:
13300 ftp.gnu.org/gnu/readline
13301Note: if you are using precompiled packages you will also need the development
13302package as well (which may be called readline-devel or something similar).
13303" >&5
ec6a6fbe 13304$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
13305--enable-readline option (which is enabled by default). Either disable readline
13306support with --disable-readline or download and install readline from:
13307 ftp.gnu.org/gnu/readline
13308Note: if you are using precompiled packages you will also need the development
13309package as well (which may be called readline-devel or something similar).
13310" >&2;}
13311 { (exit 1); exit 1; }; }
06e459df 13312 if test $rl_found = yes; then
bc1024f8
JM
13313
13314for ac_func in rl_completion_matches
13315do
ec6a6fbe
AK
13316as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13317{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13318$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 13319if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13320 $as_echo_n "(cached) " >&6
ad6254c5
AK
13321else
13322 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13323/* confdefs.h. */
13324_ACEOF
13325cat confdefs.h >>conftest.$ac_ext
13326cat >>conftest.$ac_ext <<_ACEOF
13327/* end confdefs.h. */
bc1024f8 13328/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 13329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 13330#define $ac_func innocuous_$ac_func
8a2fc586 13331
ad6254c5 13332/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 13333 which can conflict with char $ac_func (); below.
ad6254c5
AK
13334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13335 <limits.h> exists even on freestanding compilers. */
8a2fc586 13336
ad6254c5
AK
13337#ifdef __STDC__
13338# include <limits.h>
13339#else
13340# include <assert.h>
13341#endif
8a2fc586 13342
bc1024f8 13343#undef $ac_func
8a2fc586 13344
7a197a62
AK
13345/* Override any GCC internal prototype to avoid an error.
13346 Use char because int might match the return type of a GCC
13347 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13348#ifdef __cplusplus
13349extern "C"
ad6254c5 13350#endif
bc1024f8 13351char $ac_func ();
ad6254c5
AK
13352/* The GNU C library defines this for functions which it implements
13353 to always fail with ENOSYS. Some functions are actually named
13354 something starting with __ and the normal name is an alias. */
bc1024f8 13355#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 13356choke me
ad6254c5
AK
13357#endif
13358
13359int
13360main ()
13361{
bc1024f8 13362return $ac_func ();
ad6254c5
AK
13363 ;
13364 return 0;
13365}
13366_ACEOF
13367rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13368if { (ac_try="$ac_link"
13369case "(($ac_try" in
13370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371 *) ac_try_echo=$ac_try;;
13372esac
ec6a6fbe
AK
13373eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13374$as_echo "$ac_try_echo") >&5
7a197a62 13375 (eval "$ac_link") 2>conftest.er1
ad6254c5 13376 ac_status=$?
8a2fc586
AK
13377 grep -v '^ *+' conftest.er1 >conftest.err
13378 rm -f conftest.er1
13379 cat conftest.err >&5
ec6a6fbe 13380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13381 (exit $ac_status); } && {
13382 test -z "$ac_c_werror_flag" ||
13383 test ! -s conftest.err
ec6a6fbe
AK
13384 } && test -s conftest$ac_exeext && {
13385 test "$cross_compiling" = yes ||
13386 $as_test_x conftest$ac_exeext
13387 }; then
bc1024f8 13388 eval "$as_ac_var=yes"
ad6254c5 13389else
ec6a6fbe 13390 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13391sed 's/^/| /' conftest.$ac_ext >&5
13392
bc1024f8 13393 eval "$as_ac_var=no"
ad6254c5 13394fi
7a197a62 13395
ec6a6fbe 13396rm -rf conftest.dSYM
25fbec5b 13397rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13398 conftest$ac_exeext conftest.$ac_ext
ad6254c5 13399fi
ec6a6fbe
AK
13400ac_res=`eval 'as_val=${'$as_ac_var'}
13401 $as_echo "$as_val"'`
13402 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13403$as_echo "$ac_res" >&6; }
13404as_val=`eval 'as_val=${'$as_ac_var'}
13405 $as_echo "$as_val"'`
13406 if test "x$as_val" = x""yes; then
bc1024f8 13407 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13408#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
13409_ACEOF
13410
13411fi
bc1024f8 13412done
ad6254c5 13413
d179cc7a
JM
13414
13415cat >>confdefs.h <<\_ACEOF
13416#define READLINE_SUPPORT 1
13417_ACEOF
13418
06e459df 13419 fi
ad6254c5
AK
13420fi
13421
13422################################################################################
ec6a6fbe
AK
13423{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
13424$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 13425# Check whether --enable-nls was given.
ad6254c5 13426if test "${enable_nls+set}" = set; then
7a197a62 13427 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
13428else
13429 INTL=no
7a197a62
AK
13430fi
13431
ec6a6fbe
AK
13432{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
13433$as_echo "$INTL" >&6; }
ad6254c5
AK
13434
13435if test x$INTL = xyes; then
93bd259b 13436# FIXME - Move this - can be device-mapper too
ad6254c5
AK
13437 INTL_PACKAGE="lvm2"
13438 # Extract the first word of "msgfmt", so it can be a program name with args.
13439set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
13440{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13441$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 13442if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 13443 $as_echo_n "(cached) " >&6
ad6254c5
AK
13444else
13445 case $MSGFMT in
13446 [\\/]* | ?:[\\/]*)
13447 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13448 ;;
13449 *)
13450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13451for as_dir in $PATH
13452do
13453 IFS=$as_save_IFS
13454 test -z "$as_dir" && as_dir=.
13455 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 13456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 13457 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 13458 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
13459 break 2
13460 fi
13461done
13462done
7a197a62 13463IFS=$as_save_IFS
ad6254c5
AK
13464
13465 ;;
13466esac
13467fi
13468MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 13469if test -n "$MSGFMT"; then
ec6a6fbe
AK
13470 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
13471$as_echo "$MSGFMT" >&6; }
ad6254c5 13472else
ec6a6fbe
AK
13473 { $as_echo "$as_me:$LINENO: result: no" >&5
13474$as_echo "no" >&6; }
ad6254c5
AK
13475fi
13476
7a197a62 13477
ad6254c5 13478 if [ "x$MSGFMT" == x ];
ec6a6fbe 13479 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 13480 " >&5
ec6a6fbe 13481$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
13482 " >&2;}
13483 { (exit 1); exit 1; }; }
13484 fi;
13485
13486
7a197a62 13487# Check whether --with-localedir was given.
ad6254c5 13488if test "${with_localedir+set}" = set; then
7a197a62 13489 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
13490else
13491 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
13492fi
13493
ad6254c5
AK
13494fi
13495
13496################################################################################
13497
7a197a62 13498# Check whether --with-confdir was given.
ad6254c5 13499if test "${with_confdir+set}" = set; then
7a197a62 13500 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
13501else
13502 CONFDIR='/etc'
7a197a62
AK
13503fi
13504
ad6254c5
AK
13505
13506
7a197a62 13507# Check whether --with-staticdir was given.
ad6254c5 13508if test "${with_staticdir+set}" = set; then
7a197a62 13509 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
13510else
13511 STATICDIR='${exec_prefix}/sbin'
7a197a62 13512fi
ad6254c5 13513
33f732c5 13514
7a197a62 13515
68f2de6d
AK
13516# Check whether --with-usrlibdir was given.
13517if test "${with_usrlibdir+set}" = set; then
13518 withval=$with_usrlibdir; usrlibdir="$withval"
13519else
13520 usrlibdir='${prefix}/lib'
13521fi
13522
13523
13524
13525# Check whether --with-usrsbindir was given.
13526if test "${with_usrsbindir+set}" = set; then
13527 withval=$with_usrsbindir; usrsbindir="$withval"
13528else
13529 usrsbindir='${prefix}/sbin'
13530fi
13531
13532
a5f46f6a
AK
13533################################################################################
13534
13535# Check whether --with-udev_prefix was given.
13536if test "${with_udev_prefix+set}" = set; then
13537 withval=$with_udev_prefix; udev_prefix="$withval"
13538else
13539 udev_prefix='${exec_prefix}'
13540fi
13541
13542
78ce7acc
AK
13543
13544# Check whether --with-udevdir was given.
13545if test "${with_udevdir+set}" = set; then
13546 withval=$with_udevdir; udevdir="$withval"
13547else
13548 udevdir='${udev_prefix}/lib/udev/rules.d'
13549fi
13550
a5f46f6a 13551
ad6254c5
AK
13552################################################################################
13553if test x$READLINE = xyes; then
13554
13555
13556for ac_header in readline/readline.h readline/history.h
13557do
ec6a6fbe 13558as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13559if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13560 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13561$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13562if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13563 $as_echo_n "(cached) " >&6
ad6254c5 13564fi
ec6a6fbe
AK
13565ac_res=`eval 'as_val=${'$as_ac_Header'}
13566 $as_echo "$as_val"'`
13567 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13568$as_echo "$ac_res" >&6; }
ad6254c5
AK
13569else
13570 # Is the header compilable?
ec6a6fbe
AK
13571{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13572$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13573cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13574/* confdefs.h. */
13575_ACEOF
13576cat confdefs.h >>conftest.$ac_ext
13577cat >>conftest.$ac_ext <<_ACEOF
13578/* end confdefs.h. */
13579$ac_includes_default
13580#include <$ac_header>
13581_ACEOF
13582rm -f conftest.$ac_objext
7a197a62
AK
13583if { (ac_try="$ac_compile"
13584case "(($ac_try" in
13585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586 *) ac_try_echo=$ac_try;;
13587esac
ec6a6fbe
AK
13588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13589$as_echo "$ac_try_echo") >&5
7a197a62 13590 (eval "$ac_compile") 2>conftest.er1
ad6254c5 13591 ac_status=$?
8a2fc586
AK
13592 grep -v '^ *+' conftest.er1 >conftest.err
13593 rm -f conftest.er1
13594 cat conftest.err >&5
ec6a6fbe 13595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13596 (exit $ac_status); } && {
13597 test -z "$ac_c_werror_flag" ||
13598 test ! -s conftest.err
13599 } && test -s conftest.$ac_objext; then
ad6254c5
AK
13600 ac_header_compiler=yes
13601else
ec6a6fbe 13602 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13603sed 's/^/| /' conftest.$ac_ext >&5
13604
7a197a62 13605 ac_header_compiler=no
ad6254c5 13606fi
7a197a62
AK
13607
13608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13609{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13610$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13611
13612# Is the header present?
ec6a6fbe
AK
13613{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13614$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 13615cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13616/* confdefs.h. */
13617_ACEOF
13618cat confdefs.h >>conftest.$ac_ext
13619cat >>conftest.$ac_ext <<_ACEOF
13620/* end confdefs.h. */
13621#include <$ac_header>
13622_ACEOF
7a197a62
AK
13623if { (ac_try="$ac_cpp conftest.$ac_ext"
13624case "(($ac_try" in
13625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13626 *) ac_try_echo=$ac_try;;
13627esac
ec6a6fbe
AK
13628eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13629$as_echo "$ac_try_echo") >&5
7a197a62 13630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
13631 ac_status=$?
13632 grep -v '^ *+' conftest.er1 >conftest.err
13633 rm -f conftest.er1
13634 cat conftest.err >&5
ec6a6fbe 13635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13636 (exit $ac_status); } >/dev/null && {
13637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13638 test ! -s conftest.err
13639 }; then
ad6254c5
AK
13640 ac_header_preproc=yes
13641else
ec6a6fbe 13642 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13643sed 's/^/| /' conftest.$ac_ext >&5
13644
13645 ac_header_preproc=no
13646fi
7a197a62 13647
ad6254c5 13648rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
13649{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13650$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
13651
13652# So? What about this header?
8a2fc586
AK
13653case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13654 yes:no: )
ec6a6fbe
AK
13655 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13656$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13657 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13658$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 13659 ac_header_preproc=yes
ad6254c5 13660 ;;
8a2fc586 13661 no:yes:* )
ec6a6fbe
AK
13662 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13663$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13664 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13665$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13666 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13667$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13668 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13669$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13671$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13672 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13673$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 13674
ad6254c5
AK
13675 ;;
13676esac
ec6a6fbe
AK
13677{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13678$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13679if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13680 $as_echo_n "(cached) " >&6
ad6254c5 13681else
8a2fc586 13682 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 13683fi
ec6a6fbe
AK
13684ac_res=`eval 'as_val=${'$as_ac_Header'}
13685 $as_echo "$as_val"'`
13686 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13687$as_echo "$ac_res" >&6; }
ad6254c5
AK
13688
13689fi
ec6a6fbe
AK
13690as_val=`eval 'as_val=${'$as_ac_Header'}
13691 $as_echo "$as_val"'`
13692 if test "x$as_val" = x""yes; then
ad6254c5 13693 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13694#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
13695_ACEOF
13696
13697else
ec6a6fbe
AK
13698 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
13699$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
13700 { (exit 1); exit 1; }; }
13701fi
13702
13703done
13704
13705fi
13706
5c7fc7c4 13707if test x$CLVMD != xnone; then
ad6254c5
AK
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718for 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
13719do
ec6a6fbe 13720as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 13721if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
13722 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13723$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13724if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13725 $as_echo_n "(cached) " >&6
ad6254c5 13726fi
ec6a6fbe
AK
13727ac_res=`eval 'as_val=${'$as_ac_Header'}
13728 $as_echo "$as_val"'`
13729 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13730$as_echo "$ac_res" >&6; }
ad6254c5
AK
13731else
13732 # Is the header compilable?
ec6a6fbe
AK
13733{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13734$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 13735cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13736/* confdefs.h. */
13737_ACEOF
13738cat confdefs.h >>conftest.$ac_ext
13739cat >>conftest.$ac_ext <<_ACEOF
13740/* end confdefs.h. */
13741$ac_includes_default
13742#include <$ac_header>
13743_ACEOF
13744rm -f conftest.$ac_objext
7a197a62
AK
13745if { (ac_try="$ac_compile"
13746case "(($ac_try" in
13747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13748 *) ac_try_echo=$ac_try;;
13749esac
ec6a6fbe
AK
13750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13751$as_echo "$ac_try_echo") >&5
7a197a62 13752 (eval "$ac_compile") 2>conftest.er1
ad6254c5 13753 ac_status=$?
8a2fc586
AK
13754 grep -v '^ *+' conftest.er1 >conftest.err
13755 rm -f conftest.er1
13756 cat conftest.err >&5
ec6a6fbe 13757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13758 (exit $ac_status); } && {
13759 test -z "$ac_c_werror_flag" ||
13760 test ! -s conftest.err
13761 } && test -s conftest.$ac_objext; then
ad6254c5
AK
13762 ac_header_compiler=yes
13763else
ec6a6fbe 13764 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13765sed 's/^/| /' conftest.$ac_ext >&5
13766
7a197a62 13767 ac_header_compiler=no
ad6254c5 13768fi
7a197a62
AK
13769
13770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
13771{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13772$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
13773
13774# Is the header present?
ec6a6fbe
AK
13775{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13776$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 13777cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13778/* confdefs.h. */
13779_ACEOF
13780cat confdefs.h >>conftest.$ac_ext
13781cat >>conftest.$ac_ext <<_ACEOF
13782/* end confdefs.h. */
13783#include <$ac_header>
13784_ACEOF
7a197a62
AK
13785if { (ac_try="$ac_cpp conftest.$ac_ext"
13786case "(($ac_try" in
13787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788 *) ac_try_echo=$ac_try;;
13789esac
ec6a6fbe
AK
13790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13791$as_echo "$ac_try_echo") >&5
7a197a62 13792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
13793 ac_status=$?
13794 grep -v '^ *+' conftest.er1 >conftest.err
13795 rm -f conftest.er1
13796 cat conftest.err >&5
ec6a6fbe 13797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13798 (exit $ac_status); } >/dev/null && {
13799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13800 test ! -s conftest.err
13801 }; then
ad6254c5
AK
13802 ac_header_preproc=yes
13803else
ec6a6fbe 13804 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13805sed 's/^/| /' conftest.$ac_ext >&5
13806
13807 ac_header_preproc=no
13808fi
7a197a62 13809
ad6254c5 13810rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
13811{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13812$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
13813
13814# So? What about this header?
8a2fc586
AK
13815case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13816 yes:no: )
ec6a6fbe
AK
13817 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13818$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13820$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 13821 ac_header_preproc=yes
ad6254c5 13822 ;;
8a2fc586 13823 no:yes:* )
ec6a6fbe
AK
13824 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13825$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13827$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13829$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13831$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13833$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13835$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 13836
ad6254c5
AK
13837 ;;
13838esac
ec6a6fbe
AK
13839{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13840$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 13841if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13842 $as_echo_n "(cached) " >&6
ad6254c5 13843else
8a2fc586 13844 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 13845fi
ec6a6fbe
AK
13846ac_res=`eval 'as_val=${'$as_ac_Header'}
13847 $as_echo "$as_val"'`
13848 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13849$as_echo "$ac_res" >&6; }
ad6254c5
AK
13850
13851fi
ec6a6fbe
AK
13852as_val=`eval 'as_val=${'$as_ac_Header'}
13853 $as_echo "$as_val"'`
13854 if test "x$as_val" = x""yes; then
ad6254c5 13855 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13856#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
13857_ACEOF
13858
13859else
ec6a6fbe
AK
13860 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
13861$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 13862 { (exit 1); exit 1; }; }
795ca3e5
AK
13863fi
13864
ad6254c5
AK
13865done
13866
13867
795ca3e5 13868
8106cdd5 13869
ad6254c5
AK
13870
13871
13872for ac_func in dup2 getmntent memmove select socket
13873do
ec6a6fbe
AK
13874as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13875{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13876$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 13877if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 13878 $as_echo_n "(cached) " >&6
795ca3e5 13879else
ad6254c5 13880 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
13881/* confdefs.h. */
13882_ACEOF
13883cat confdefs.h >>conftest.$ac_ext
13884cat >>conftest.$ac_ext <<_ACEOF
13885/* end confdefs.h. */
8a2fc586
AK
13886/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13888#define $ac_func innocuous_$ac_func
13889
795ca3e5 13890/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
13891 which can conflict with char $ac_func (); below.
13892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13893 <limits.h> exists even on freestanding compilers. */
8a2fc586 13894
ad6254c5
AK
13895#ifdef __STDC__
13896# include <limits.h>
13897#else
13898# include <assert.h>
13899#endif
8a2fc586
AK
13900
13901#undef $ac_func
13902
7a197a62
AK
13903/* Override any GCC internal prototype to avoid an error.
13904 Use char because int might match the return type of a GCC
13905 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13906#ifdef __cplusplus
13907extern "C"
ad6254c5 13908#endif
ad6254c5 13909char $ac_func ();
795ca3e5
AK
13910/* The GNU C library defines this for functions which it implements
13911 to always fail with ENOSYS. Some functions are actually named
13912 something starting with __ and the normal name is an alias. */
7a197a62 13913#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 13914choke me
795ca3e5
AK
13915#endif
13916
ad6254c5
AK
13917int
13918main ()
13919{
7a197a62 13920return $ac_func ();
ad6254c5
AK
13921 ;
13922 return 0;
13923}
13924_ACEOF
13925rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
13926if { (ac_try="$ac_link"
13927case "(($ac_try" in
13928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13929 *) ac_try_echo=$ac_try;;
13930esac
ec6a6fbe
AK
13931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13932$as_echo "$ac_try_echo") >&5
7a197a62 13933 (eval "$ac_link") 2>conftest.er1
ad6254c5 13934 ac_status=$?
8a2fc586
AK
13935 grep -v '^ *+' conftest.er1 >conftest.err
13936 rm -f conftest.er1
13937 cat conftest.err >&5
ec6a6fbe 13938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
13939 (exit $ac_status); } && {
13940 test -z "$ac_c_werror_flag" ||
13941 test ! -s conftest.err
ec6a6fbe
AK
13942 } && test -s conftest$ac_exeext && {
13943 test "$cross_compiling" = yes ||
13944 $as_test_x conftest$ac_exeext
13945 }; then
ad6254c5 13946 eval "$as_ac_var=yes"
795ca3e5 13947else
ec6a6fbe 13948 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
13949sed 's/^/| /' conftest.$ac_ext >&5
13950
7a197a62 13951 eval "$as_ac_var=no"
80992638 13952fi
7a197a62 13953
ec6a6fbe 13954rm -rf conftest.dSYM
25fbec5b 13955rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 13956 conftest$ac_exeext conftest.$ac_ext
795ca3e5 13957fi
ec6a6fbe
AK
13958ac_res=`eval 'as_val=${'$as_ac_var'}
13959 $as_echo "$as_val"'`
13960 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13961$as_echo "$ac_res" >&6; }
13962as_val=`eval 'as_val=${'$as_ac_var'}
13963 $as_echo "$as_val"'`
13964 if test "x$as_val" = x""yes; then
ad6254c5 13965 cat >>confdefs.h <<_ACEOF
ec6a6fbe 13966#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 13967_ACEOF
80992638
AK
13968
13969else
ec6a6fbe
AK
13970 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
13971$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 13972 { (exit 1); exit 1; }; }
8106cdd5 13973fi
ad6254c5 13974done
795ca3e5 13975
25fbec5b
AK
13976 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
13977# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
13978{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
13979$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 13980if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 13981 $as_echo_n "(cached) " >&6
25fbec5b
AK
13982else
13983 ac_func_search_save_LIBS=$LIBS
13984cat >conftest.$ac_ext <<_ACEOF
13985/* confdefs.h. */
13986_ACEOF
13987cat confdefs.h >>conftest.$ac_ext
13988cat >>conftest.$ac_ext <<_ACEOF
13989/* end confdefs.h. */
80992638 13990
7a197a62
AK
13991/* Override any GCC internal prototype to avoid an error.
13992 Use char because int might match the return type of a GCC
ad6254c5 13993 builtin and then its argument prototype would still apply. */
ad6254c5
AK
13994#ifdef __cplusplus
13995extern "C"
13996#endif
25fbec5b 13997char getmntent ();
ad6254c5
AK
13998int
13999main ()
14000{
25fbec5b 14001return getmntent ();
ad6254c5
AK
14002 ;
14003 return 0;
14004}
14005_ACEOF
25fbec5b
AK
14006for ac_lib in '' sun seq gen; do
14007 if test -z "$ac_lib"; then
14008 ac_res="none required"
14009 else
14010 ac_res=-l$ac_lib
14011 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14012 fi
14013 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14014if { (ac_try="$ac_link"
14015case "(($ac_try" in
14016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14017 *) ac_try_echo=$ac_try;;
14018esac
ec6a6fbe
AK
14019eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14020$as_echo "$ac_try_echo") >&5
7a197a62 14021 (eval "$ac_link") 2>conftest.er1
ad6254c5 14022 ac_status=$?
8a2fc586
AK
14023 grep -v '^ *+' conftest.er1 >conftest.err
14024 rm -f conftest.er1
14025 cat conftest.err >&5
ec6a6fbe 14026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14027 (exit $ac_status); } && {
14028 test -z "$ac_c_werror_flag" ||
14029 test ! -s conftest.err
ec6a6fbe
AK
14030 } && test -s conftest$ac_exeext && {
14031 test "$cross_compiling" = yes ||
14032 $as_test_x conftest$ac_exeext
14033 }; then
25fbec5b 14034 ac_cv_search_getmntent=$ac_res
80992638 14035else
ec6a6fbe 14036 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14037sed 's/^/| /' conftest.$ac_ext >&5
14038
25fbec5b 14039
795ca3e5
AK
14040fi
14041
ec6a6fbe 14042rm -rf conftest.dSYM
25fbec5b
AK
14043rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14044 conftest$ac_exeext
14045 if test "${ac_cv_search_getmntent+set}" = set; then
14046 break
795ca3e5 14047fi
25fbec5b
AK
14048done
14049if test "${ac_cv_search_getmntent+set}" = set; then
14050 :
14051else
14052 ac_cv_search_getmntent=no
14053fi
14054rm conftest.$ac_ext
14055LIBS=$ac_func_search_save_LIBS
14056fi
ec6a6fbe
AK
14057{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
14058$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
14059ac_res=$ac_cv_search_getmntent
14060if test "$ac_res" != no; then
14061 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14062 ac_cv_func_getmntent=yes
14063
14064cat >>confdefs.h <<\_ACEOF
9c961554 14065#define HAVE_GETMNTENT 1
ad6254c5 14066_ACEOF
795ca3e5 14067
25fbec5b
AK
14068else
14069 ac_cv_func_getmntent=no
795ca3e5 14070fi
795ca3e5
AK
14071
14072
ad6254c5
AK
14073# AC_FUNC_REALLOC
14074
14075
14076for ac_header in sys/select.h sys/socket.h
14077do
ec6a6fbe 14078as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14079if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14080 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14081$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14082if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14083 $as_echo_n "(cached) " >&6
ad6254c5 14084fi
ec6a6fbe
AK
14085ac_res=`eval 'as_val=${'$as_ac_Header'}
14086 $as_echo "$as_val"'`
14087 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14088$as_echo "$ac_res" >&6; }
795ca3e5 14089else
ad6254c5 14090 # Is the header compilable?
ec6a6fbe
AK
14091{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14092$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14093cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14094/* confdefs.h. */
14095_ACEOF
14096cat confdefs.h >>conftest.$ac_ext
14097cat >>conftest.$ac_ext <<_ACEOF
14098/* end confdefs.h. */
14099$ac_includes_default
14100#include <$ac_header>
14101_ACEOF
14102rm -f conftest.$ac_objext
7a197a62
AK
14103if { (ac_try="$ac_compile"
14104case "(($ac_try" in
14105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14106 *) ac_try_echo=$ac_try;;
14107esac
ec6a6fbe
AK
14108eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14109$as_echo "$ac_try_echo") >&5
7a197a62 14110 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14111 ac_status=$?
8a2fc586
AK
14112 grep -v '^ *+' conftest.er1 >conftest.err
14113 rm -f conftest.er1
14114 cat conftest.err >&5
ec6a6fbe 14115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14116 (exit $ac_status); } && {
14117 test -z "$ac_c_werror_flag" ||
14118 test ! -s conftest.err
14119 } && test -s conftest.$ac_objext; then
ad6254c5 14120 ac_header_compiler=yes
80992638 14121else
ec6a6fbe 14122 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14123sed 's/^/| /' conftest.$ac_ext >&5
14124
7a197a62 14125 ac_header_compiler=no
ad6254c5 14126fi
7a197a62
AK
14127
14128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14129{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14130$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14131
14132# Is the header present?
ec6a6fbe
AK
14133{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14134$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14135cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14136/* confdefs.h. */
14137_ACEOF
14138cat confdefs.h >>conftest.$ac_ext
14139cat >>conftest.$ac_ext <<_ACEOF
14140/* end confdefs.h. */
14141#include <$ac_header>
14142_ACEOF
7a197a62
AK
14143if { (ac_try="$ac_cpp conftest.$ac_ext"
14144case "(($ac_try" in
14145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14146 *) ac_try_echo=$ac_try;;
14147esac
ec6a6fbe
AK
14148eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14149$as_echo "$ac_try_echo") >&5
7a197a62 14150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14151 ac_status=$?
14152 grep -v '^ *+' conftest.er1 >conftest.err
14153 rm -f conftest.er1
14154 cat conftest.err >&5
ec6a6fbe 14155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14156 (exit $ac_status); } >/dev/null && {
14157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14158 test ! -s conftest.err
14159 }; then
ad6254c5
AK
14160 ac_header_preproc=yes
14161else
ec6a6fbe 14162 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14163sed 's/^/| /' conftest.$ac_ext >&5
14164
14165 ac_header_preproc=no
14166fi
7a197a62 14167
ad6254c5 14168rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14169{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14170$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14171
14172# So? What about this header?
8a2fc586
AK
14173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14174 yes:no: )
ec6a6fbe
AK
14175 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14176$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14178$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14179 ac_header_preproc=yes
ad6254c5 14180 ;;
8a2fc586 14181 no:yes:* )
ec6a6fbe
AK
14182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14183$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14185$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14187$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14189$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14191$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14193$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14194
ad6254c5
AK
14195 ;;
14196esac
ec6a6fbe
AK
14197{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14198$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14199if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14200 $as_echo_n "(cached) " >&6
ad6254c5 14201else
8a2fc586 14202 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 14203fi
ec6a6fbe
AK
14204ac_res=`eval 'as_val=${'$as_ac_Header'}
14205 $as_echo "$as_val"'`
14206 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14207$as_echo "$ac_res" >&6; }
8106cdd5 14208
795ca3e5 14209fi
ec6a6fbe
AK
14210as_val=`eval 'as_val=${'$as_ac_Header'}
14211 $as_echo "$as_val"'`
14212 if test "x$as_val" = x""yes; then
ad6254c5 14213 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14214#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14215_ACEOF
14216
795ca3e5
AK
14217fi
14218
ad6254c5
AK
14219done
14220
ec6a6fbe
AK
14221{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
14222$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 14223if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 14224 $as_echo_n "(cached) " >&6
26e7f2e0 14225else
ad6254c5 14226 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 14227 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
14228 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
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. */
14235$ac_includes_default
25fbec5b 14236#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
14237# include <sys/select.h>
14238#endif
25fbec5b 14239#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
14240# include <sys/socket.h>
14241#endif
14242
14243int
14244main ()
14245{
14246extern int select ($ac_arg1,
8a2fc586
AK
14247 $ac_arg234, $ac_arg234, $ac_arg234,
14248 $ac_arg5);
ad6254c5
AK
14249 ;
14250 return 0;
14251}
14252_ACEOF
14253rm -f conftest.$ac_objext
7a197a62
AK
14254if { (ac_try="$ac_compile"
14255case "(($ac_try" in
14256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14257 *) ac_try_echo=$ac_try;;
14258esac
ec6a6fbe
AK
14259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14260$as_echo "$ac_try_echo") >&5
7a197a62 14261 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14262 ac_status=$?
8a2fc586
AK
14263 grep -v '^ *+' conftest.er1 >conftest.err
14264 rm -f conftest.er1
14265 cat conftest.err >&5
ec6a6fbe 14266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14267 (exit $ac_status); } && {
14268 test -z "$ac_c_werror_flag" ||
14269 test ! -s conftest.err
14270 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14271 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14272else
ec6a6fbe 14273 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14274sed 's/^/| /' conftest.$ac_ext >&5
14275
7a197a62 14276
ad6254c5 14277fi
7a197a62
AK
14278
14279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
14280 done
14281 done
14282done
14283# Provide a safe default value.
14284: ${ac_cv_func_select_args='int,int *,struct timeval *'}
14285
26e7f2e0 14286fi
ec6a6fbe
AK
14287{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
14288$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
14289ac_save_IFS=$IFS; IFS=','
14290set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14291IFS=$ac_save_IFS
14292shift
14293
14294cat >>confdefs.h <<_ACEOF
14295#define SELECT_TYPE_ARG1 $1
14296_ACEOF
14297
14298
14299cat >>confdefs.h <<_ACEOF
14300#define SELECT_TYPE_ARG234 ($2)
14301_ACEOF
14302
14303
14304cat >>confdefs.h <<_ACEOF
14305#define SELECT_TYPE_ARG5 ($3)
14306_ACEOF
14307
80992638 14308rm -f conftest*
80992638 14309
8106cdd5 14310fi
ad6254c5 14311
ad6254c5
AK
14312if test x$CLUSTER != xnone; then
14313
14314
14315for ac_header in sys/socket.h sys/un.h
b896caa1 14316do
ec6a6fbe 14317as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14318if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14319 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14320$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14321if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14322 $as_echo_n "(cached) " >&6
ad6254c5 14323fi
ec6a6fbe
AK
14324ac_res=`eval 'as_val=${'$as_ac_Header'}
14325 $as_echo "$as_val"'`
14326 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14327$as_echo "$ac_res" >&6; }
ad6254c5
AK
14328else
14329 # Is the header compilable?
ec6a6fbe
AK
14330{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14331$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14332cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14333/* confdefs.h. */
14334_ACEOF
14335cat confdefs.h >>conftest.$ac_ext
14336cat >>conftest.$ac_ext <<_ACEOF
14337/* end confdefs.h. */
14338$ac_includes_default
14339#include <$ac_header>
14340_ACEOF
14341rm -f conftest.$ac_objext
7a197a62
AK
14342if { (ac_try="$ac_compile"
14343case "(($ac_try" in
14344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14345 *) ac_try_echo=$ac_try;;
14346esac
ec6a6fbe
AK
14347eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14348$as_echo "$ac_try_echo") >&5
7a197a62 14349 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14350 ac_status=$?
8a2fc586
AK
14351 grep -v '^ *+' conftest.er1 >conftest.err
14352 rm -f conftest.er1
14353 cat conftest.err >&5
ec6a6fbe 14354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14355 (exit $ac_status); } && {
14356 test -z "$ac_c_werror_flag" ||
14357 test ! -s conftest.err
14358 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14359 ac_header_compiler=yes
14360else
ec6a6fbe 14361 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14362sed 's/^/| /' conftest.$ac_ext >&5
14363
7a197a62 14364 ac_header_compiler=no
ad6254c5 14365fi
7a197a62
AK
14366
14367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14368{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14369$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14370
14371# Is the header present?
ec6a6fbe
AK
14372{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14373$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14374cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14375/* confdefs.h. */
14376_ACEOF
14377cat confdefs.h >>conftest.$ac_ext
14378cat >>conftest.$ac_ext <<_ACEOF
14379/* end confdefs.h. */
14380#include <$ac_header>
14381_ACEOF
7a197a62
AK
14382if { (ac_try="$ac_cpp conftest.$ac_ext"
14383case "(($ac_try" in
14384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14385 *) ac_try_echo=$ac_try;;
14386esac
ec6a6fbe
AK
14387eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14388$as_echo "$ac_try_echo") >&5
7a197a62 14389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14390 ac_status=$?
14391 grep -v '^ *+' conftest.er1 >conftest.err
14392 rm -f conftest.er1
14393 cat conftest.err >&5
ec6a6fbe 14394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14395 (exit $ac_status); } >/dev/null && {
14396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14397 test ! -s conftest.err
14398 }; then
ad6254c5
AK
14399 ac_header_preproc=yes
14400else
ec6a6fbe 14401 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14402sed 's/^/| /' conftest.$ac_ext >&5
14403
14404 ac_header_preproc=no
14405fi
7a197a62 14406
ad6254c5 14407rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14408{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14409$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14410
14411# So? What about this header?
8a2fc586
AK
14412case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14413 yes:no: )
ec6a6fbe
AK
14414 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14415$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14417$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14418 ac_header_preproc=yes
ad6254c5 14419 ;;
8a2fc586 14420 no:yes:* )
ec6a6fbe
AK
14421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14422$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14424$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14426$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14428$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14430$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14432$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14433
ad6254c5
AK
14434 ;;
14435esac
ec6a6fbe
AK
14436{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14437$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14438if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14439 $as_echo_n "(cached) " >&6
ad6254c5 14440else
8a2fc586 14441 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 14442fi
ec6a6fbe
AK
14443ac_res=`eval 'as_val=${'$as_ac_Header'}
14444 $as_echo "$as_val"'`
14445 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14446$as_echo "$ac_res" >&6; }
ad6254c5
AK
14447
14448fi
ec6a6fbe
AK
14449as_val=`eval 'as_val=${'$as_ac_Header'}
14450 $as_echo "$as_val"'`
14451 if test "x$as_val" = x""yes; then
ad6254c5 14452 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14453#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
14454_ACEOF
14455
80992638 14456else
ec6a6fbe
AK
14457 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14458$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14459 { (exit 1); exit 1; }; }
b896caa1 14460fi
ad6254c5 14461
b896caa1
AK
14462done
14463
14464
ad6254c5
AK
14465for ac_func in socket
14466do
ec6a6fbe
AK
14467as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14468{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14469$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 14470if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14471 $as_echo_n "(cached) " >&6
795ca3e5 14472else
ad6254c5 14473 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14474/* confdefs.h. */
14475_ACEOF
14476cat confdefs.h >>conftest.$ac_ext
14477cat >>conftest.$ac_ext <<_ACEOF
14478/* end confdefs.h. */
8a2fc586
AK
14479/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14481#define $ac_func innocuous_$ac_func
14482
ad6254c5
AK
14483/* System header to define __stub macros and hopefully few prototypes,
14484 which can conflict with char $ac_func (); below.
14485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14486 <limits.h> exists even on freestanding compilers. */
8a2fc586 14487
ad6254c5
AK
14488#ifdef __STDC__
14489# include <limits.h>
14490#else
14491# include <assert.h>
14492#endif
8a2fc586
AK
14493
14494#undef $ac_func
14495
7a197a62
AK
14496/* Override any GCC internal prototype to avoid an error.
14497 Use char because int might match the return type of a GCC
14498 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14499#ifdef __cplusplus
14500extern "C"
ad6254c5 14501#endif
ad6254c5
AK
14502char $ac_func ();
14503/* The GNU C library defines this for functions which it implements
14504 to always fail with ENOSYS. Some functions are actually named
14505 something starting with __ and the normal name is an alias. */
7a197a62 14506#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 14507choke me
ad6254c5
AK
14508#endif
14509
14510int
14511main ()
14512{
7a197a62 14513return $ac_func ();
ad6254c5
AK
14514 ;
14515 return 0;
14516}
14517_ACEOF
14518rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14519if { (ac_try="$ac_link"
14520case "(($ac_try" in
14521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522 *) ac_try_echo=$ac_try;;
14523esac
ec6a6fbe
AK
14524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14525$as_echo "$ac_try_echo") >&5
7a197a62 14526 (eval "$ac_link") 2>conftest.er1
ad6254c5 14527 ac_status=$?
8a2fc586
AK
14528 grep -v '^ *+' conftest.er1 >conftest.err
14529 rm -f conftest.er1
14530 cat conftest.err >&5
ec6a6fbe 14531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14532 (exit $ac_status); } && {
14533 test -z "$ac_c_werror_flag" ||
14534 test ! -s conftest.err
ec6a6fbe
AK
14535 } && test -s conftest$ac_exeext && {
14536 test "$cross_compiling" = yes ||
14537 $as_test_x conftest$ac_exeext
14538 }; then
ad6254c5
AK
14539 eval "$as_ac_var=yes"
14540else
ec6a6fbe 14541 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14542sed 's/^/| /' conftest.$ac_ext >&5
14543
7a197a62 14544 eval "$as_ac_var=no"
ad6254c5 14545fi
7a197a62 14546
ec6a6fbe 14547rm -rf conftest.dSYM
25fbec5b 14548rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 14549 conftest$ac_exeext conftest.$ac_ext
ad6254c5 14550fi
ec6a6fbe
AK
14551ac_res=`eval 'as_val=${'$as_ac_var'}
14552 $as_echo "$as_val"'`
14553 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14554$as_echo "$ac_res" >&6; }
14555as_val=`eval 'as_val=${'$as_ac_var'}
14556 $as_echo "$as_val"'`
14557 if test "x$as_val" = x""yes; then
ad6254c5 14558 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14559#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
14560_ACEOF
14561
14562else
ec6a6fbe
AK
14563 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14564$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
14565 { (exit 1); exit 1; }; }
14566fi
14567done
14568
14569fi
14570
14571if test x$HAVE_LIBDL = xyes; then
14572
14573for ac_header in dlfcn.h
14574do
ec6a6fbe 14575as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14576if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14577 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14578$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14579if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14580 $as_echo_n "(cached) " >&6
ad6254c5 14581fi
ec6a6fbe
AK
14582ac_res=`eval 'as_val=${'$as_ac_Header'}
14583 $as_echo "$as_val"'`
14584 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14585$as_echo "$ac_res" >&6; }
ad6254c5
AK
14586else
14587 # Is the header compilable?
ec6a6fbe
AK
14588{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14589$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14590cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14591/* confdefs.h. */
14592_ACEOF
14593cat confdefs.h >>conftest.$ac_ext
14594cat >>conftest.$ac_ext <<_ACEOF
14595/* end confdefs.h. */
14596$ac_includes_default
14597#include <$ac_header>
14598_ACEOF
14599rm -f conftest.$ac_objext
7a197a62
AK
14600if { (ac_try="$ac_compile"
14601case "(($ac_try" in
14602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603 *) ac_try_echo=$ac_try;;
14604esac
ec6a6fbe
AK
14605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14606$as_echo "$ac_try_echo") >&5
7a197a62 14607 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14608 ac_status=$?
8a2fc586
AK
14609 grep -v '^ *+' conftest.er1 >conftest.err
14610 rm -f conftest.er1
14611 cat conftest.err >&5
ec6a6fbe 14612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14613 (exit $ac_status); } && {
14614 test -z "$ac_c_werror_flag" ||
14615 test ! -s conftest.err
14616 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14617 ac_header_compiler=yes
14618else
ec6a6fbe 14619 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14620sed 's/^/| /' conftest.$ac_ext >&5
14621
7a197a62 14622 ac_header_compiler=no
ad6254c5 14623fi
7a197a62
AK
14624
14625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14626{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14627$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14628
14629# Is the header present?
ec6a6fbe
AK
14630{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14631$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14632cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14633/* confdefs.h. */
14634_ACEOF
14635cat confdefs.h >>conftest.$ac_ext
14636cat >>conftest.$ac_ext <<_ACEOF
14637/* end confdefs.h. */
14638#include <$ac_header>
14639_ACEOF
7a197a62
AK
14640if { (ac_try="$ac_cpp conftest.$ac_ext"
14641case "(($ac_try" in
14642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643 *) ac_try_echo=$ac_try;;
14644esac
ec6a6fbe
AK
14645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14646$as_echo "$ac_try_echo") >&5
7a197a62 14647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14648 ac_status=$?
14649 grep -v '^ *+' conftest.er1 >conftest.err
14650 rm -f conftest.er1
14651 cat conftest.err >&5
ec6a6fbe 14652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14653 (exit $ac_status); } >/dev/null && {
14654 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14655 test ! -s conftest.err
14656 }; then
ad6254c5
AK
14657 ac_header_preproc=yes
14658else
ec6a6fbe 14659 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14660sed 's/^/| /' conftest.$ac_ext >&5
14661
14662 ac_header_preproc=no
14663fi
7a197a62 14664
ad6254c5 14665rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14666{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14667$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14668
14669# So? What about this header?
8a2fc586
AK
14670case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14671 yes:no: )
ec6a6fbe
AK
14672 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14673$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14675$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14676 ac_header_preproc=yes
ad6254c5 14677 ;;
8a2fc586 14678 no:yes:* )
ec6a6fbe
AK
14679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14680$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14682$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14684$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14686$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14688$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14690$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14691
ad6254c5
AK
14692 ;;
14693esac
ec6a6fbe
AK
14694{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14695$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14696if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14697 $as_echo_n "(cached) " >&6
ad6254c5 14698else
8a2fc586 14699 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 14700fi
ec6a6fbe
AK
14701ac_res=`eval 'as_val=${'$as_ac_Header'}
14702 $as_echo "$as_val"'`
14703 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14704$as_echo "$ac_res" >&6; }
80992638 14705
8106cdd5 14706fi
ec6a6fbe
AK
14707as_val=`eval 'as_val=${'$as_ac_Header'}
14708 $as_echo "$as_val"'`
14709 if test "x$as_val" = x""yes; then
ad6254c5 14710 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14711#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 14712_ACEOF
795ca3e5
AK
14713
14714else
ec6a6fbe
AK
14715 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14716$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14717 { (exit 1); exit 1; }; }
795ca3e5
AK
14718fi
14719
ad6254c5 14720done
80992638 14721
ad6254c5 14722fi
80992638 14723
ad6254c5 14724if test x$INTL = xyes; then
83912faa 14725
ad6254c5
AK
14726for ac_header in libintl.h
14727do
ec6a6fbe 14728as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14729if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14730 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14731$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14732if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14733 $as_echo_n "(cached) " >&6
ad6254c5 14734fi
ec6a6fbe
AK
14735ac_res=`eval 'as_val=${'$as_ac_Header'}
14736 $as_echo "$as_val"'`
14737 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14738$as_echo "$ac_res" >&6; }
83912faa 14739else
ad6254c5 14740 # Is the header compilable?
ec6a6fbe
AK
14741{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14742$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14743cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14744/* confdefs.h. */
14745_ACEOF
14746cat confdefs.h >>conftest.$ac_ext
14747cat >>conftest.$ac_ext <<_ACEOF
14748/* end confdefs.h. */
14749$ac_includes_default
14750#include <$ac_header>
14751_ACEOF
14752rm -f conftest.$ac_objext
7a197a62
AK
14753if { (ac_try="$ac_compile"
14754case "(($ac_try" in
14755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14756 *) ac_try_echo=$ac_try;;
14757esac
ec6a6fbe
AK
14758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14759$as_echo "$ac_try_echo") >&5
7a197a62 14760 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14761 ac_status=$?
8a2fc586
AK
14762 grep -v '^ *+' conftest.er1 >conftest.err
14763 rm -f conftest.er1
14764 cat conftest.err >&5
ec6a6fbe 14765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14766 (exit $ac_status); } && {
14767 test -z "$ac_c_werror_flag" ||
14768 test ! -s conftest.err
14769 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14770 ac_header_compiler=yes
14771else
ec6a6fbe 14772 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14773sed 's/^/| /' conftest.$ac_ext >&5
14774
7a197a62 14775 ac_header_compiler=no
ad6254c5 14776fi
7a197a62
AK
14777
14778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14779{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14780$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14781
14782# Is the header present?
ec6a6fbe
AK
14783{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14784$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14785cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14786/* confdefs.h. */
14787_ACEOF
14788cat confdefs.h >>conftest.$ac_ext
14789cat >>conftest.$ac_ext <<_ACEOF
14790/* end confdefs.h. */
14791#include <$ac_header>
14792_ACEOF
7a197a62
AK
14793if { (ac_try="$ac_cpp conftest.$ac_ext"
14794case "(($ac_try" in
14795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14796 *) ac_try_echo=$ac_try;;
14797esac
ec6a6fbe
AK
14798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14799$as_echo "$ac_try_echo") >&5
7a197a62 14800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14801 ac_status=$?
14802 grep -v '^ *+' conftest.er1 >conftest.err
14803 rm -f conftest.er1
14804 cat conftest.err >&5
ec6a6fbe 14805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14806 (exit $ac_status); } >/dev/null && {
14807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14808 test ! -s conftest.err
14809 }; then
ad6254c5
AK
14810 ac_header_preproc=yes
14811else
ec6a6fbe 14812 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14813sed 's/^/| /' conftest.$ac_ext >&5
14814
14815 ac_header_preproc=no
14816fi
7a197a62 14817
ad6254c5 14818rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14819{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14820$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14821
14822# So? What about this header?
8a2fc586
AK
14823case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14824 yes:no: )
ec6a6fbe
AK
14825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14826$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14828$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14829 ac_header_preproc=yes
ad6254c5 14830 ;;
8a2fc586 14831 no:yes:* )
ec6a6fbe
AK
14832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14833$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14835$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14837$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14839$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14841$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14843$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14844
ad6254c5
AK
14845 ;;
14846esac
ec6a6fbe
AK
14847{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14848$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14849if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14850 $as_echo_n "(cached) " >&6
80992638 14851else
8a2fc586 14852 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 14853fi
ec6a6fbe
AK
14854ac_res=`eval 'as_val=${'$as_ac_Header'}
14855 $as_echo "$as_val"'`
14856 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14857$as_echo "$ac_res" >&6; }
83912faa 14858
69792976 14859fi
ec6a6fbe
AK
14860as_val=`eval 'as_val=${'$as_ac_Header'}
14861 $as_echo "$as_val"'`
14862 if test "x$as_val" = x""yes; then
ad6254c5 14863 cat >>confdefs.h <<_ACEOF
ec6a6fbe 14864#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 14865_ACEOF
69792976 14866
69792976 14867else
ec6a6fbe
AK
14868 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14869$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 14870 { (exit 1); exit 1; }; }
80992638
AK
14871fi
14872
ad6254c5 14873done
69792976 14874
ad6254c5
AK
14875fi
14876
ad6254c5
AK
14877if test x$HAVE_SELINUX = xyes; then
14878
14879for ac_header in selinux/selinux.h
14880do
ec6a6fbe 14881as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 14882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
14883 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14884$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 14885if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 14886 $as_echo_n "(cached) " >&6
ad6254c5 14887fi
ec6a6fbe
AK
14888ac_res=`eval 'as_val=${'$as_ac_Header'}
14889 $as_echo "$as_val"'`
14890 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14891$as_echo "$ac_res" >&6; }
4a7f3eb2 14892else
ad6254c5 14893 # Is the header compilable?
ec6a6fbe
AK
14894{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14895$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 14896cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14897/* confdefs.h. */
14898_ACEOF
14899cat confdefs.h >>conftest.$ac_ext
14900cat >>conftest.$ac_ext <<_ACEOF
14901/* end confdefs.h. */
14902$ac_includes_default
14903#include <$ac_header>
14904_ACEOF
14905rm -f conftest.$ac_objext
7a197a62
AK
14906if { (ac_try="$ac_compile"
14907case "(($ac_try" in
14908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909 *) ac_try_echo=$ac_try;;
14910esac
ec6a6fbe
AK
14911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14912$as_echo "$ac_try_echo") >&5
7a197a62 14913 (eval "$ac_compile") 2>conftest.er1
ad6254c5 14914 ac_status=$?
8a2fc586
AK
14915 grep -v '^ *+' conftest.er1 >conftest.err
14916 rm -f conftest.er1
14917 cat conftest.err >&5
ec6a6fbe 14918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14919 (exit $ac_status); } && {
14920 test -z "$ac_c_werror_flag" ||
14921 test ! -s conftest.err
14922 } && test -s conftest.$ac_objext; then
ad6254c5
AK
14923 ac_header_compiler=yes
14924else
ec6a6fbe 14925 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14926sed 's/^/| /' conftest.$ac_ext >&5
14927
7a197a62 14928 ac_header_compiler=no
ad6254c5 14929fi
7a197a62
AK
14930
14931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
14932{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14933$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
14934
14935# Is the header present?
ec6a6fbe
AK
14936{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14937$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 14938cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14939/* confdefs.h. */
14940_ACEOF
14941cat confdefs.h >>conftest.$ac_ext
14942cat >>conftest.$ac_ext <<_ACEOF
14943/* end confdefs.h. */
14944#include <$ac_header>
14945_ACEOF
7a197a62
AK
14946if { (ac_try="$ac_cpp conftest.$ac_ext"
14947case "(($ac_try" in
14948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14949 *) ac_try_echo=$ac_try;;
14950esac
ec6a6fbe
AK
14951eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14952$as_echo "$ac_try_echo") >&5
7a197a62 14953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
14954 ac_status=$?
14955 grep -v '^ *+' conftest.er1 >conftest.err
14956 rm -f conftest.er1
14957 cat conftest.err >&5
ec6a6fbe 14958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14959 (exit $ac_status); } >/dev/null && {
14960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14961 test ! -s conftest.err
14962 }; then
ad6254c5
AK
14963 ac_header_preproc=yes
14964else
ec6a6fbe 14965 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14966sed 's/^/| /' conftest.$ac_ext >&5
14967
14968 ac_header_preproc=no
14969fi
7a197a62 14970
ad6254c5 14971rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
14972{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14973$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
14974
14975# So? What about this header?
8a2fc586
AK
14976case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14977 yes:no: )
ec6a6fbe
AK
14978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14979$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14981$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 14982 ac_header_preproc=yes
ad6254c5 14983 ;;
8a2fc586 14984 no:yes:* )
ec6a6fbe
AK
14985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14986$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14988$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14990$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14992$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14994$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14996$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 14997
ad6254c5
AK
14998 ;;
14999esac
ec6a6fbe
AK
15000{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15001$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15002if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15003 $as_echo_n "(cached) " >&6
ad6254c5 15004else
8a2fc586 15005 eval "$as_ac_Header=\$ac_header_preproc"
80992638 15006fi
ec6a6fbe
AK
15007ac_res=`eval 'as_val=${'$as_ac_Header'}
15008 $as_echo "$as_val"'`
15009 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15010$as_echo "$ac_res" >&6; }
4a7f3eb2 15011
ad6254c5 15012fi
ec6a6fbe
AK
15013as_val=`eval 'as_val=${'$as_ac_Header'}
15014 $as_echo "$as_val"'`
15015 if test "x$as_val" = x""yes; then
ad6254c5 15016 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15017#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15018_ACEOF
0a62c911 15019
0a62c911 15020else
ec6a6fbe
AK
15021 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15022$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 15023 { (exit 1); exit 1; }; }
80992638
AK
15024fi
15025
ad6254c5 15026done
0a62c911 15027
ad6254c5 15028fi
0a62c911 15029
a5f46f6a
AK
15030if test x$UDEV_SYNC = xyes; then
15031
15032
15033for ac_header in sys/ipc.h sys/sem.h
15034do
15035as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15036if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15037 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15038$as_echo_n "checking for $ac_header... " >&6; }
15039if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15040 $as_echo_n "(cached) " >&6
15041fi
15042ac_res=`eval 'as_val=${'$as_ac_Header'}
15043 $as_echo "$as_val"'`
15044 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15045$as_echo "$ac_res" >&6; }
15046else
15047 # Is the header compilable?
15048{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15049$as_echo_n "checking $ac_header usability... " >&6; }
15050cat >conftest.$ac_ext <<_ACEOF
15051/* confdefs.h. */
15052_ACEOF
15053cat confdefs.h >>conftest.$ac_ext
15054cat >>conftest.$ac_ext <<_ACEOF
15055/* end confdefs.h. */
15056$ac_includes_default
15057#include <$ac_header>
15058_ACEOF
15059rm -f conftest.$ac_objext
15060if { (ac_try="$ac_compile"
15061case "(($ac_try" in
15062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15063 *) ac_try_echo=$ac_try;;
15064esac
15065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15066$as_echo "$ac_try_echo") >&5
15067 (eval "$ac_compile") 2>conftest.er1
15068 ac_status=$?
15069 grep -v '^ *+' conftest.er1 >conftest.err
15070 rm -f conftest.er1
15071 cat conftest.err >&5
15072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); } && {
15074 test -z "$ac_c_werror_flag" ||
15075 test ! -s conftest.err
15076 } && test -s conftest.$ac_objext; then
15077 ac_header_compiler=yes
15078else
15079 $as_echo "$as_me: failed program was:" >&5
15080sed 's/^/| /' conftest.$ac_ext >&5
15081
15082 ac_header_compiler=no
15083fi
15084
15085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15086{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15087$as_echo "$ac_header_compiler" >&6; }
15088
15089# Is the header present?
15090{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15091$as_echo_n "checking $ac_header presence... " >&6; }
15092cat >conftest.$ac_ext <<_ACEOF
15093/* confdefs.h. */
15094_ACEOF
15095cat confdefs.h >>conftest.$ac_ext
15096cat >>conftest.$ac_ext <<_ACEOF
15097/* end confdefs.h. */
15098#include <$ac_header>
15099_ACEOF
15100if { (ac_try="$ac_cpp conftest.$ac_ext"
15101case "(($ac_try" in
15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15104esac
15105eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15106$as_echo "$ac_try_echo") >&5
15107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15108 ac_status=$?
15109 grep -v '^ *+' conftest.er1 >conftest.err
15110 rm -f conftest.er1
15111 cat conftest.err >&5
15112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); } >/dev/null && {
15114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15115 test ! -s conftest.err
15116 }; then
15117 ac_header_preproc=yes
15118else
15119 $as_echo "$as_me: failed program was:" >&5
15120sed 's/^/| /' conftest.$ac_ext >&5
15121
15122 ac_header_preproc=no
15123fi
15124
15125rm -f conftest.err conftest.$ac_ext
15126{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15127$as_echo "$ac_header_preproc" >&6; }
15128
15129# So? What about this header?
15130case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15131 yes:no: )
15132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15133$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15135$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15136 ac_header_preproc=yes
15137 ;;
15138 no:yes:* )
15139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15140$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15141 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15142$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15144$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15146$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15148$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15150$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15151
15152 ;;
15153esac
15154{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15155$as_echo_n "checking for $ac_header... " >&6; }
15156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15157 $as_echo_n "(cached) " >&6
15158else
15159 eval "$as_ac_Header=\$ac_header_preproc"
15160fi
15161ac_res=`eval 'as_val=${'$as_ac_Header'}
15162 $as_echo "$as_val"'`
15163 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15164$as_echo "$ac_res" >&6; }
15165
15166fi
15167as_val=`eval 'as_val=${'$as_ac_Header'}
15168 $as_echo "$as_val"'`
15169 if test "x$as_val" = x""yes; then
15170 cat >>confdefs.h <<_ACEOF
15171#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15172_ACEOF
15173
15174else
15175 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15176$as_echo "$as_me: error: bailing out" >&2;}
15177 { (exit 1); exit 1; }; }
15178fi
15179
15180done
15181
15182fi
15183
a653923f
AK
15184################################################################################
15185# Extract the first word of "modprobe", so it can be a program name with args.
15186set dummy modprobe; ac_word=$2
ec6a6fbe
AK
15187{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15188$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 15189if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 15190 $as_echo_n "(cached) " >&6
72b2cb61
AK
15191else
15192 case $MODPROBE_CMD in
15193 [\\/]* | ?:[\\/]*)
15194 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
15195 ;;
15196 *)
15197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15198for as_dir in $PATH
15199do
15200 IFS=$as_save_IFS
15201 test -z "$as_dir" && as_dir=.
15202 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 15203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 15204 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 15205 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
15206 break 2
15207 fi
15208done
15209done
7a197a62 15210IFS=$as_save_IFS
72b2cb61
AK
15211
15212 ;;
15213esac
15214fi
15215MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 15216if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
15217 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
15218$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 15219else
ec6a6fbe
AK
15220 { $as_echo "$as_me:$LINENO: result: no" >&5
15221$as_echo "no" >&6; }
72b2cb61
AK
15222fi
15223
a653923f 15224
7a197a62 15225
a653923f 15226if test x$MODPROBE_CMD != x; then
72b2cb61
AK
15227
15228cat >>confdefs.h <<_ACEOF
15229#define MODPROBE_CMD "$MODPROBE_CMD"
15230_ACEOF
15231
a653923f
AK
15232fi
15233
80992638 15234################################################################################
93bd259b
AK
15235
15236
15237if test "$BUILD_DMEVENTD" = yes; then
15238
15239# Check whether --with-dmeventd-pidfile was given.
15240if test "${with_dmeventd_pidfile+set}" = set; then
15241 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
15242#define DMEVENTD_PIDFILE "$withval"
15243_ACEOF
15244
15245else
15246 cat >>confdefs.h <<_ACEOF
15247#define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
15248_ACEOF
15249
15250fi
15251
15252fi
15253
15254
15255
15256if test "$BUILD_DMEVENTD" = yes; then
15257 dmeventd_prefix="$exec_prefix"
15258 if test "x$dmeventd_prefix" = "xNONE"; then
15259 dmeventd_prefix="$prefix"
15260 fi
15261 if test "x$dmeventd_prefix" = "xNONE"; then
15262 dmeventd_prefix=""
15263 fi
15264
15265# Check whether --with-dmeventd-path was given.
15266if test "${with_dmeventd_path+set}" = set; then
15267 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
15268#define DMEVENTD_PATH "$withval"
15269_ACEOF
15270
15271else
15272 cat >>confdefs.h <<_ACEOF
15273#define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
15274_ACEOF
15275
15276fi
15277
15278fi
15279
15280################################################################################
ec6a6fbe
AK
15281{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
15282$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
15283
15284# Check whether --with-interface was given.
15285if test "${with_interface+set}" = set; then
15286 withval=$with_interface; interface="$withval"
15287else
15288 interface=ioctl
15289fi
15290
15291if [ "x$interface" != xioctl ];
15292then
ec6a6fbe
AK
15293 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
15294$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
15295 { (exit 1); exit 1; }; }
15296fi
ec6a6fbe
AK
15297{ $as_echo "$as_me:$LINENO: result: $interface" >&5
15298$as_echo "$interface" >&6; }
93bd259b
AK
15299
15300################################################################################
2c44337b 15301DM_LIB_VERSION="\"`cat VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
15302
15303cat >>confdefs.h <<_ACEOF
15304#define DM_LIB_VERSION $DM_LIB_VERSION
15305_ACEOF
15306
15307
ec6a6fbe 15308DM_LIB_PATCHLEVEL=`cat VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 15309
d0191583 15310LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
fae0c576 15311
ec6a6fbe 15312VER=`cat VERSION`
bf456146 15313LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
15314VER=`echo "$VER" | $AWK '{print $1}'`
15315LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
15316VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
15317LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
15318LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
15319LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
15320LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 15321
80992638 15322################################################################################
fae0c576 15323
83912faa 15324
795ca3e5
AK
15325
15326
15327
15328
15329
15330
5a52dca9 15331
8ef2b021 15332
199e490e 15333
69792976
AK
15334
15335
15336
d0191583 15337
69792976 15338
8106cdd5
AK
15339
15340
15341
15342
15343
d68a82ec 15344
036f273a 15345
7d1552c9 15346
8106cdd5 15347
0a62c911 15348
8106cdd5 15349
4a7f3eb2 15350
4922197a
AK
15351
15352
d8ac0fbc 15353
1a9ea74d 15354
8a2fc586
AK
15355
15356
d0191583 15357
93bd259b
AK
15358
15359
15360
15361
15362
d0191583
JM
15363
15364
15365
15366
15367
8a2fc586 15368
8ce0cbda 15369
8b1a3214 15370
ec6a6fbe
AK
15371
15372
15373
15374
e2997b73
AK
15375
15376
15377
15378
15379
15380
a946372e
AK
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
ec6a6fbe 15392
33f732c5 15393
66e941e8 15394
d3c8211f 15395
7e3fe830 15396
a5f46f6a
AK
15397
15398
15399
572fefeb 15400
90c80887
AK
15401
15402
bf456146 15403
68f2de6d
AK
15404
15405
80992638 15406################################################################################
5d311afb 15407ac_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/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile"
7a197a62 15408
ad6254c5 15409cat >confcache <<\_ACEOF
795ca3e5
AK
15410# This file is a shell script that caches the results of configure
15411# tests run on this system so they can be shared between configure
ad6254c5
AK
15412# scripts and configure runs, see configure's option --config-cache.
15413# It is not useful on other systems. If it contains results you don't
15414# want to keep, you may remove or edit it.
795ca3e5 15415#
ad6254c5
AK
15416# config.status only pays attention to the cache file if you give it
15417# the --recheck option to rerun configure.
795ca3e5 15418#
ad6254c5
AK
15419# `ac_cv_env_foo' variables (set or unset) will be overridden when
15420# loading this file, other *unset* `ac_cv_foo' will be assigned the
15421# following values.
15422
15423_ACEOF
15424
795ca3e5
AK
15425# The following way of writing the cache mishandles newlines in values,
15426# but we know of no workaround that is simple, portable, and efficient.
7a197a62 15427# So, we kill variables containing newlines.
795ca3e5
AK
15428# Ultrix sh set writes to stderr and can't be redirected directly,
15429# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
15430(
15431 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15432 eval ac_val=\$$ac_var
15433 case $ac_val in #(
15434 *${as_nl}*)
15435 case $ac_var in #(
ec6a6fbe
AK
15436 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15437$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
15438 esac
15439 case $ac_var in #(
15440 _ | IFS | as_nl) ;; #(
ec6a6fbe 15441 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
15442 *) $as_unset $ac_var ;;
15443 esac ;;
15444 esac
15445 done
15446
ad6254c5 15447 (set) 2>&1 |
7a197a62
AK
15448 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15449 *${as_nl}ac_space=\ *)
ad6254c5
AK
15450 # `set' does not quote correctly, so add quotes (double-quote
15451 # substitution turns \\\\ into \\, and sed turns \\ into \).
15452 sed -n \
8a2fc586
AK
15453 "s/'/'\\\\''/g;
15454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 15455 ;; #(
ad6254c5
AK
15456 *)
15457 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 15458 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 15459 ;;
7a197a62
AK
15460 esac |
15461 sort
15462) |
ad6254c5 15463 sed '
7a197a62 15464 /^ac_cv_env_/b end
ad6254c5 15465 t clear
7a197a62 15466 :clear
ad6254c5
AK
15467 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15468 t end
7a197a62
AK
15469 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15470 :end' >>confcache
15471if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15472 if test -w "$cache_file"; then
15473 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
15474 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15475$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 15476 cat confcache >$cache_file
795ca3e5 15477 else
ec6a6fbe
AK
15478 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15479$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
15480 fi
15481fi
15482rm -f confcache
15483
795ca3e5
AK
15484test "x$prefix" = xNONE && prefix=$ac_default_prefix
15485# Let make expand exec_prefix.
15486test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15487
72b2cb61 15488DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
15489
15490ac_libobjs=
15491ac_ltlibobjs=
15492for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15493 # 1. Remove the extension, and $U if already installed.
7a197a62 15494 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 15495 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
15496 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15497 # will be set to the directory where LIBOBJS objects are built.
15498 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15499 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
15500done
15501LIBOBJS=$ac_libobjs
80992638 15502
ad6254c5
AK
15503LTLIBOBJS=$ac_ltlibobjs
15504
15505
15506
15507: ${CONFIG_STATUS=./config.status}
ec6a6fbe 15508ac_write_fail=0
ad6254c5
AK
15509ac_clean_files_save=$ac_clean_files
15510ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
15511{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15512$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15513cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
15514#! $SHELL
15515# Generated by $as_me.
795ca3e5 15516# Run this file to recreate the current configuration.
795ca3e5 15517# Compiler output produced by configure, useful for debugging
ad6254c5
AK
15518# configure, is in config.log if it exists.
15519
15520debug=false
15521ac_cs_recheck=false
15522ac_cs_silent=false
15523SHELL=\${CONFIG_SHELL-$SHELL}
15524_ACEOF
15525
ec6a6fbe 15526cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
15527## --------------------- ##
15528## M4sh Initialization. ##
15529## --------------------- ##
15530
25fbec5b
AK
15531# Be more Bourne compatible
15532DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
15533if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15534 emulate sh
15535 NULLCMD=:
ec6a6fbe 15536 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
15537 # is contrary to our usage. Disable this feature.
15538 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
15539 setopt NO_GLOB_SUBST
15540else
25fbec5b
AK
15541 case `(set -o) 2>/dev/null` in
15542 *posix*) set -o posix ;;
15543esac
15544
7a197a62 15545fi
25fbec5b
AK
15546
15547
7a197a62
AK
15548
15549
15550# PATH needs CR
15551# Avoid depending upon Character Ranges.
15552as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15553as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15554as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15555as_cr_digits='0123456789'
15556as_cr_alnum=$as_cr_Letters$as_cr_digits
15557
ec6a6fbe
AK
15558as_nl='
15559'
15560export as_nl
15561# Printing a long string crashes Solaris 7 /usr/bin/printf.
15562as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15563as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15564as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15565if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15566 as_echo='printf %s\n'
15567 as_echo_n='printf %s'
15568else
15569 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15570 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15571 as_echo_n='/usr/ucb/echo -n'
68f2de6d 15572 else
ec6a6fbe
AK
15573 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15574 as_echo_n_body='eval
15575 arg=$1;
15576 case $arg in
15577 *"$as_nl"*)
15578 expr "X$arg" : "X\\(.*\\)$as_nl";
15579 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15580 esac;
15581 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15582 '
15583 export as_echo_n_body
15584 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 15585 fi
ec6a6fbe
AK
15586 export as_echo_body
15587 as_echo='sh -c $as_echo_body as_echo'
15588fi
15589
15590# The user is always right.
15591if test "${PATH_SEPARATOR+set}" != set; then
15592 PATH_SEPARATOR=:
15593 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15594 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15595 PATH_SEPARATOR=';'
15596 }
ad6254c5
AK
15597fi
15598
15599# Support unset when possible.
8a2fc586 15600if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
15601 as_unset=unset
15602else
15603 as_unset=false
15604fi
8106cdd5 15605
ad6254c5 15606
7a197a62
AK
15607# IFS
15608# We need space, tab and new line, in precisely that order. Quoting is
15609# there to prevent editors from complaining about space-tab.
15610# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15611# splitting by setting IFS to empty value.)
7a197a62
AK
15612IFS=" "" $as_nl"
15613
15614# Find who we are. Look in the path if we contain no directory separator.
15615case $0 in
15616 *[\\/]* ) as_myself=$0 ;;
15617 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15618for as_dir in $PATH
15619do
15620 IFS=$as_save_IFS
15621 test -z "$as_dir" && as_dir=.
15622 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15623done
15624IFS=$as_save_IFS
15625
15626 ;;
15627esac
15628# We did not find ourselves, most probably we were run as `sh COMMAND'
15629# in which case we are not to be found in the path.
15630if test "x$as_myself" = x; then
15631 as_myself=$0
15632fi
15633if test ! -f "$as_myself"; then
ec6a6fbe 15634 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
15635 { (exit 1); exit 1; }
15636fi
15637
ad6254c5 15638# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
15639for as_var in ENV MAIL MAILPATH
15640do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15641done
ad6254c5
AK
15642PS1='$ '
15643PS2='> '
15644PS4='+ '
15645
15646# NLS nuisances.
ec6a6fbe
AK
15647LC_ALL=C
15648export LC_ALL
15649LANGUAGE=C
15650export LANGUAGE
8106cdd5 15651
ad6254c5 15652# Required to use basename.
7a197a62
AK
15653if expr a : '\(a\)' >/dev/null 2>&1 &&
15654 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
15655 as_expr=expr
15656else
15657 as_expr=false
15658fi
8106cdd5 15659
7a197a62 15660if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
15661 as_basename=basename
15662else
15663 as_basename=false
15664fi
15665
15666
15667# Name of the executable.
7a197a62 15668as_me=`$as_basename -- "$0" ||
ad6254c5
AK
15669$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15670 X"$0" : 'X\(//\)$' \| \
7a197a62 15671 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 15672$as_echo X/"$0" |
7a197a62
AK
15673 sed '/^.*\/\([^/][^/]*\)\/*$/{
15674 s//\1/
15675 q
15676 }
15677 /^X\/\(\/\/\)$/{
15678 s//\1/
15679 q
15680 }
15681 /^X\/\(\/\).*/{
15682 s//\1/
15683 q
15684 }
15685 s/.*/./; q'`
ad6254c5 15686
7a197a62
AK
15687# CDPATH.
15688$as_unset CDPATH
ad6254c5
AK
15689
15690
ad6254c5 15691
ad6254c5
AK
15692 as_lineno_1=$LINENO
15693 as_lineno_2=$LINENO
ad6254c5 15694 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 15695 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 15696
ad6254c5
AK
15697 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15698 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
15699 # line-number line after each line using $LINENO; the second 'sed'
15700 # does the real work. The second script uses 'N' to pair each
15701 # line-number line with the line containing $LINENO, and appends
15702 # trailing '-' during substitution so that $LINENO is not a special
15703 # case at line end.
ad6254c5 15704 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
15705 # scripts with optimization help from Paolo Bonzini. Blame Lee
15706 # E. McMahon (1931-1989) for sed's syntax. :-)
15707 sed -n '
15708 p
15709 /[$]LINENO/=
15710 ' <$as_myself |
ad6254c5 15711 sed '
7a197a62
AK
15712 s/[$]LINENO.*/&-/
15713 t lineno
15714 b
15715 :lineno
ad6254c5 15716 N
7a197a62
AK
15717 :loop
15718 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 15719 t loop
7a197a62 15720 s/-\n.*//
ad6254c5 15721 ' >$as_me.lineno &&
7a197a62 15722 chmod +x "$as_me.lineno" ||
ec6a6fbe 15723 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
15724 { (exit 1); exit 1; }; }
15725
15726 # Don't try to exec as it changes $[0], causing all sort of problems
15727 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
15728 # original and so on. Autoconf is especially sensitive to this).
15729 . "./$as_me.lineno"
ad6254c5
AK
15730 # Exit status is that of the last command.
15731 exit
15732}
15733
15734
7a197a62
AK
15735if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15736 as_dirname=dirname
15737else
15738 as_dirname=false
15739fi
15740
15741ECHO_C= ECHO_N= ECHO_T=
15742case `echo -n x` in
15743-n*)
15744 case `echo 'x\c'` in
15745 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15746 *) ECHO_C='\c';;
15747 esac;;
15748*)
15749 ECHO_N='-n';;
ad6254c5 15750esac
7a197a62
AK
15751if expr a : '\(a\)' >/dev/null 2>&1 &&
15752 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
15753 as_expr=expr
15754else
15755 as_expr=false
15756fi
80992638 15757
ad6254c5 15758rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
15759if test -d conf$$.dir; then
15760 rm -f conf$$.dir/conf$$.file
15761else
15762 rm -f conf$$.dir
ec6a6fbe
AK
15763 mkdir conf$$.dir 2>/dev/null
15764fi
15765if (echo >conf$$.file) 2>/dev/null; then
15766 if ln -s conf$$.file conf$$ 2>/dev/null; then
15767 as_ln_s='ln -s'
15768 # ... but there are two gotchas:
15769 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15770 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15771 # In both cases, we have to default to `cp -p'.
15772 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15773 as_ln_s='cp -p'
15774 elif ln conf$$.file conf$$ 2>/dev/null; then
15775 as_ln_s=ln
15776 else
ad6254c5 15777 as_ln_s='cp -p'
ec6a6fbe 15778 fi
ad6254c5
AK
15779else
15780 as_ln_s='cp -p'
15781fi
7a197a62
AK
15782rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15783rmdir conf$$.dir 2>/dev/null
8106cdd5 15784
ad6254c5
AK
15785if mkdir -p . 2>/dev/null; then
15786 as_mkdir_p=:
15787else
8a2fc586 15788 test -d ./-p && rmdir ./-p
ad6254c5
AK
15789 as_mkdir_p=false
15790fi
15791
25fbec5b
AK
15792if test -x / >/dev/null 2>&1; then
15793 as_test_x='test -x'
7a197a62 15794else
25fbec5b
AK
15795 if ls -dL / >/dev/null 2>&1; then
15796 as_ls_L_option=L
15797 else
15798 as_ls_L_option=
15799 fi
15800 as_test_x='
15801 eval sh -c '\''
15802 if test -d "$1"; then
ec6a6fbe 15803 test -d "$1/.";
25fbec5b
AK
15804 else
15805 case $1 in
ec6a6fbe 15806 -*)set "./$1";;
25fbec5b
AK
15807 esac;
15808 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15809 ???[sx]*):;;*)false;;esac;fi
15810 '\'' sh
15811 '
7a197a62 15812fi
25fbec5b 15813as_executable_p=$as_test_x
ad6254c5
AK
15814
15815# Sed expression to map a string onto a valid CPP name.
8a2fc586 15816as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
15817
15818# Sed expression to map a string onto a valid variable name.
8a2fc586 15819as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
15820
15821
ad6254c5
AK
15822exec 6>&1
15823
7a197a62 15824# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 15825# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
15826# values after options handling.
15827ac_log="
ad6254c5 15828This file was extended by $as_me, which was
ec6a6fbe 15829generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
15830
15831 CONFIG_FILES = $CONFIG_FILES
15832 CONFIG_HEADERS = $CONFIG_HEADERS
15833 CONFIG_LINKS = $CONFIG_LINKS
15834 CONFIG_COMMANDS = $CONFIG_COMMANDS
15835 $ $0 $@
15836
7a197a62
AK
15837on `(hostname || uname -n) 2>/dev/null | sed 1q`
15838"
15839
ad6254c5
AK
15840_ACEOF
15841
ec6a6fbe
AK
15842case $ac_config_files in *"
15843"*) set x $ac_config_files; shift; ac_config_files=$*;;
15844esac
15845
15846case $ac_config_headers in *"
15847"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15848esac
15849
15850
15851cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 15852# Files that config.status was made for.
68f2de6d
AK
15853config_files="$ac_config_files"
15854config_headers="$ac_config_headers"
ad6254c5 15855
7a197a62 15856_ACEOF
ad6254c5 15857
ec6a6fbe 15858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
15859ac_cs_usage="\
15860\`$as_me' instantiates files from templates according to the
15861current configuration.
15862
ec6a6fbe 15863Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
15864
15865 -h, --help print this help, then exit
25fbec5b 15866 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
15867 -q, --quiet, --silent
15868 do not print progress messages
ad6254c5
AK
15869 -d, --debug don't remove temporary files
15870 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
15871 --file=FILE[:TEMPLATE]
15872 instantiate the configuration file FILE
15873 --header=FILE[:TEMPLATE]
15874 instantiate the configuration header FILE
ad6254c5
AK
15875
15876Configuration files:
15877$config_files
15878
72b2cb61
AK
15879Configuration headers:
15880$config_headers
15881
ad6254c5 15882Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 15883
7a197a62 15884_ACEOF
ec6a6fbe 15885cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
15886ac_cs_version="\\
15887config.status
ec6a6fbe
AK
15888configured by $0, generated by GNU Autoconf 2.63,
15889 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 15890
ec6a6fbe 15891Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
15892This config.status script is free software; the Free Software Foundation
15893gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
15894
15895ac_pwd='$ac_pwd'
15896srcdir='$srcdir'
15897INSTALL='$INSTALL'
fddafd51 15898MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
15899AWK='$AWK'
15900test -n "\$AWK" || AWK=awk
ad6254c5
AK
15901_ACEOF
15902
ec6a6fbe
AK
15903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15904# The default lists apply if the user does not specify any file.
ad6254c5
AK
15905ac_need_defaults=:
15906while test $# != 0
15907do
15908 case $1 in
15909 --*=*)
7a197a62
AK
15910 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15911 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
15912 ac_shift=:
15913 ;;
7a197a62 15914 *)
ad6254c5
AK
15915 ac_option=$1
15916 ac_optarg=$2
15917 ac_shift=shift
15918 ;;
ad6254c5
AK
15919 esac
15920
15921 case $ac_option in
15922 # Handling of the options.
ad6254c5
AK
15923 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15924 ac_cs_recheck=: ;;
7a197a62 15925 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 15926 $as_echo "$ac_cs_version"; exit ;;
7a197a62 15927 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
15928 debug=: ;;
15929 --file | --fil | --fi | --f )
15930 $ac_shift
ec6a6fbe
AK
15931 case $ac_optarg in
15932 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15933 esac
15934 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
15935 ac_need_defaults=false;;
15936 --header | --heade | --head | --hea )
15937 $ac_shift
ec6a6fbe
AK
15938 case $ac_optarg in
15939 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15940 esac
15941 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 15942 ac_need_defaults=false;;
7a197a62
AK
15943 --he | --h)
15944 # Conflict between --help and --header
ec6a6fbe 15945 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
15946Try \`$0 --help' for more information." >&2
15947 { (exit 1); exit 1; }; };;
15948 --help | --hel | -h )
ec6a6fbe 15949 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
15950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15951 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15952 ac_cs_silent=: ;;
15953
15954 # This is an error.
ec6a6fbe 15955 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 15956Try \`$0 --help' for more information." >&2
ad6254c5
AK
15957 { (exit 1); exit 1; }; } ;;
15958
7a197a62
AK
15959 *) ac_config_targets="$ac_config_targets $1"
15960 ac_need_defaults=false ;;
ad6254c5
AK
15961
15962 esac
15963 shift
15964done
15965
15966ac_configure_extra_args=
15967
15968if $ac_cs_silent; then
15969 exec 6>/dev/null
15970 ac_configure_extra_args="$ac_configure_extra_args --silent"
15971fi
15972
15973_ACEOF
ec6a6fbe 15974cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 15975if \$ac_cs_recheck; then
ec6a6fbe
AK
15976 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15977 shift
15978 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15979 CONFIG_SHELL='$SHELL'
7a197a62 15980 export CONFIG_SHELL
ec6a6fbe 15981 exec "\$@"
ad6254c5
AK
15982fi
15983
15984_ACEOF
ec6a6fbe 15985cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
15986exec 5>>config.log
15987{
15988 echo
15989 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15990## Running $as_me. ##
15991_ASBOX
ec6a6fbe 15992 $as_echo "$ac_log"
7a197a62 15993} >&5
ad6254c5 15994
7a197a62 15995_ACEOF
ec6a6fbe 15996cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 15997_ACEOF
ad6254c5 15998
ec6a6fbe 15999cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16000
16001# Handling of arguments.
ad6254c5
AK
16002for ac_config_target in $ac_config_targets
16003do
7a197a62
AK
16004 case $ac_config_target in
16005 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
16006 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16007 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
16008 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
16009 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 16010 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
16011 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
16012 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 16013 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
93bd259b
AK
16014 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
16015 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 16016 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
93bd259b
AK
16017 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16018 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
16019 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
16020 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
16021 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
16022 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
ec6a6fbe 16023 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 16024 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
16025 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
16026 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 16027 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 16028 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
16029 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16030 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 16031 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
7a197a62 16032 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 16033 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 16034 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 16035 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 16036 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
7a197a62 16037
ec6a6fbe
AK
16038 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16039$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 16040 { (exit 1); exit 1; }; };;
80992638 16041 esac
ad6254c5
AK
16042done
16043
7a197a62 16044
ad6254c5
AK
16045# If the user did not use the arguments to specify the items to instantiate,
16046# then the envvar interface is used. Set only those that are not.
16047# We use the long form for the default assignment because of an extremely
16048# bizarre bug on SunOS 4.1.3.
16049if $ac_need_defaults; then
16050 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 16051 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
16052fi
16053
16054# Have a temporary directory for convenience. Make it in the build tree
7a197a62 16055# simply because there is no reason against having it here, and in addition,
ad6254c5 16056# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
16057# Hook for its removal unless debugging.
16058# Note that there is a small window in which the directory will not be cleaned:
16059# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
16060$debug ||
16061{
7a197a62
AK
16062 tmp=
16063 trap 'exit_status=$?
16064 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16065' 0
ad6254c5
AK
16066 trap '{ (exit 1); exit 1; }' 1 2 13 15
16067}
ad6254c5
AK
16068# Create a (secure) tmp directory for tmp files.
16069
16070{
7a197a62 16071 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
16072 test -n "$tmp" && test -d "$tmp"
16073} ||
16074{
7a197a62
AK
16075 tmp=./conf$$-$RANDOM
16076 (umask 077 && mkdir "$tmp")
ad6254c5
AK
16077} ||
16078{
ec6a6fbe 16079 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
16080 { (exit 1); exit 1; }
16081}
16082
ec6a6fbe
AK
16083# Set up the scripts for CONFIG_FILES section.
16084# No need to generate them if there are no CONFIG_FILES.
16085# This happens for instance with `./config.status config.h'.
1995c9ff 16086if test -n "$CONFIG_FILES"; then
7a197a62 16087
68f2de6d 16088
ec6a6fbe
AK
16089ac_cr='\r'
16090ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16091if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16092 ac_cs_awk_cr='\\r'
16093else
16094 ac_cs_awk_cr=$ac_cr
1995c9ff 16095fi
7a197a62 16096
ec6a6fbe 16097echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 16098_ACEOF
7a197a62 16099
8106cdd5 16100
ec6a6fbe
AK
16101{
16102 echo "cat >conf$$subs.awk <<_ACEOF" &&
16103 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16104 echo "_ACEOF"
16105} >conf$$subs.sh ||
16106 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16107$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16108 { (exit 1); exit 1; }; }
16109ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
16110ac_delim='%!_!# '
16111for ac_last_try in false false false false false :; do
ec6a6fbe
AK
16112 . ./conf$$subs.sh ||
16113 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16114$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16115 { (exit 1); exit 1; }; }
16116
16117 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16118 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
16119 break
16120 elif $ac_last_try; then
ec6a6fbe
AK
16121 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16122$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
16123 { (exit 1); exit 1; }; }
16124 else
16125 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16126 fi
16127done
ec6a6fbe
AK
16128rm -f conf$$subs.sh
16129
16130cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16131cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16132_ACEOF
16133sed -n '
16134h
16135s/^/S["/; s/!.*/"]=/
16136p
16137g
16138s/^[^!]*!//
16139:repl
16140t repl
16141s/'"$ac_delim"'$//
16142t delim
16143:nl
16144h
16145s/\(.\{148\}\).*/\1/
16146t more1
16147s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16148p
16149n
16150b repl
16151:more1
16152s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16153p
16154g
16155s/.\{148\}//
16156t nl
16157:delim
16158h
16159s/\(.\{148\}\).*/\1/
16160t more2
16161s/["\\]/\\&/g; s/^/"/; s/$/"/
16162p
16163b
16164:more2
16165s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16166p
16167g
16168s/.\{148\}//
16169t delim
16170' <conf$$subs.awk | sed '
16171/^[^""]/{
16172 N
16173 s/\n//
16174}
16175' >>$CONFIG_STATUS || ac_write_fail=1
16176rm -f conf$$subs.awk
16177cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16178_ACAWK
16179cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16180 for (key in S) S_is_set[key] = 1
16181 FS = "\a"
7a197a62 16182
ec6a6fbe
AK
16183}
16184{
16185 line = $ 0
16186 nfields = split(line, field, "@")
16187 substed = 0
16188 len = length(field[1])
16189 for (i = 2; i < nfields; i++) {
16190 key = field[i]
16191 keylen = length(key)
16192 if (S_is_set[key]) {
16193 value = S[key]
16194 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16195 len += length(value) + length(field[++i])
16196 substed = 1
16197 } else
16198 len += 1 + keylen
16199 }
16200
16201 print line
16202}
fddafd51 16203
ec6a6fbe 16204_ACAWK
1995c9ff 16205_ACEOF
ec6a6fbe
AK
16206cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16207if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16208 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16209else
16210 cat
16211fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16212 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16213$as_echo "$as_me: error: could not setup config files machinery" >&2;}
16214 { (exit 1); exit 1; }; }
7a197a62
AK
16215_ACEOF
16216
7a197a62
AK
16217# VPATH may cause trouble with some makes, so we remove $(srcdir),
16218# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16219# trailing colons and then remove the whole line if VPATH becomes empty
16220# (actually we leave an empty line to preserve line numbers).
16221if test "x$srcdir" = x.; then
16222 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16223s/:*\$(srcdir):*/:/
16224s/:*\${srcdir}:*/:/
16225s/:*@srcdir@:*/:/
16226s/^\([^=]*=[ ]*\):*/\1/
16227s/:*$//
16228s/^[^=]*=[ ]*$//
16229}'
16230fi
16231
ec6a6fbe 16232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16233fi # test -n "$CONFIG_FILES"
16234
ec6a6fbe
AK
16235# Set up the scripts for CONFIG_HEADERS section.
16236# No need to generate them if there are no CONFIG_HEADERS.
16237# This happens for instance with `./config.status Makefile'.
16238if test -n "$CONFIG_HEADERS"; then
16239cat >"$tmp/defines.awk" <<\_ACAWK ||
16240BEGIN {
16241_ACEOF
16242
16243# Transform confdefs.h into an awk script `defines.awk', embedded as
16244# here-document in config.status, that substitutes the proper values into
16245# config.h.in to produce config.h.
16246
16247# Create a delimiter string that does not exist in confdefs.h, to ease
16248# handling of long lines.
16249ac_delim='%!_!# '
16250for ac_last_try in false false :; do
16251 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16252 if test -z "$ac_t"; then
16253 break
16254 elif $ac_last_try; then
16255 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16256$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16257 { (exit 1); exit 1; }; }
16258 else
16259 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16260 fi
16261done
16262
16263# For the awk script, D is an array of macro values keyed by name,
16264# likewise P contains macro parameters if any. Preserve backslash
16265# newline sequences.
16266
16267ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16268sed -n '
16269s/.\{148\}/&'"$ac_delim"'/g
16270t rset
16271:rset
16272s/^[ ]*#[ ]*define[ ][ ]*/ /
16273t def
16274d
16275:def
16276s/\\$//
16277t bsnl
16278s/["\\]/\\&/g
16279s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16280D["\1"]=" \3"/p
16281s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16282d
16283:bsnl
16284s/["\\]/\\&/g
16285s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16286D["\1"]=" \3\\\\\\n"\\/p
16287t cont
16288s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16289t cont
16290d
16291:cont
16292n
16293s/.\{148\}/&'"$ac_delim"'/g
16294t clear
16295:clear
16296s/\\$//
16297t bsnlc
16298s/["\\]/\\&/g; s/^/"/; s/$/"/p
16299d
16300:bsnlc
16301s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16302b cont
16303' <confdefs.h | sed '
16304s/'"$ac_delim"'/"\\\
16305"/g' >>$CONFIG_STATUS || ac_write_fail=1
16306
16307cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16308 for (key in D) D_is_set[key] = 1
16309 FS = "\a"
16310}
16311/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16312 line = \$ 0
16313 split(line, arg, " ")
16314 if (arg[1] == "#") {
16315 defundef = arg[2]
16316 mac1 = arg[3]
16317 } else {
16318 defundef = substr(arg[1], 2)
16319 mac1 = arg[2]
16320 }
16321 split(mac1, mac2, "(") #)
16322 macro = mac2[1]
16323 prefix = substr(line, 1, index(line, defundef) - 1)
16324 if (D_is_set[macro]) {
16325 # Preserve the white space surrounding the "#".
16326 print prefix "define", macro P[macro] D[macro]
16327 next
16328 } else {
16329 # Replace #undef with comments. This is necessary, for example,
16330 # in the case of _POSIX_SOURCE, which is predefined and required
16331 # on some systems where configure will not decide to define it.
16332 if (defundef == "undef") {
16333 print "/*", prefix defundef, macro, "*/"
16334 next
16335 }
16336 }
16337}
16338{ print }
16339_ACAWK
16340_ACEOF
16341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16342 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16343$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16344 { (exit 1); exit 1; }; }
16345fi # test -n "$CONFIG_HEADERS"
16346
7a197a62 16347
ec6a6fbe
AK
16348eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16349shift
16350for ac_tag
7a197a62
AK
16351do
16352 case $ac_tag in
16353 :[FHLC]) ac_mode=$ac_tag; continue;;
16354 esac
16355 case $ac_mode$ac_tag in
16356 :[FHL]*:*);;
ec6a6fbe
AK
16357 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16358$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
16359 { (exit 1); exit 1; }; };;
16360 :[FH]-) ac_tag=-:-;;
16361 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16362 esac
16363 ac_save_IFS=$IFS
16364 IFS=:
16365 set x $ac_tag
16366 IFS=$ac_save_IFS
16367 shift
16368 ac_file=$1
16369 shift
16370
16371 case $ac_mode in
16372 :L) ac_source=$1;;
16373 :[FH])
16374 ac_file_inputs=
16375 for ac_f
16376 do
16377 case $ac_f in
16378 -) ac_f="$tmp/stdin";;
16379 *) # Look for the file first in the build tree, then in the source tree
16380 # (if the path is not absolute). The absolute path cannot be DOS-style,
16381 # because $ac_f cannot contain `:'.
16382 test -f "$ac_f" ||
16383 case $ac_f in
16384 [\\/$]*) false;;
16385 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16386 esac ||
ec6a6fbe
AK
16387 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16388$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
16389 { (exit 1); exit 1; }; };;
16390 esac
ec6a6fbe
AK
16391 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16392 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
16393 done
16394
16395 # Let's still pretend it is `configure' which instantiates (i.e., don't
16396 # use $as_me), people would be surprised to read:
16397 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
16398 configure_input='Generated from '`
16399 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16400 `' by configure.'
7a197a62
AK
16401 if test x"$ac_file" != x-; then
16402 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
16403 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16404$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 16405 fi
ec6a6fbe
AK
16406 # Neutralize special characters interpreted by sed in replacement strings.
16407 case $configure_input in #(
16408 *\&* | *\|* | *\\* )
16409 ac_sed_conf_input=`$as_echo "$configure_input" |
16410 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16411 *) ac_sed_conf_input=$configure_input;;
16412 esac
7a197a62
AK
16413
16414 case $ac_tag in
ec6a6fbe
AK
16415 *:-:* | *:-) cat >"$tmp/stdin" \
16416 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16417$as_echo "$as_me: error: could not create $ac_file" >&2;}
16418 { (exit 1); exit 1; }; } ;;
7a197a62
AK
16419 esac
16420 ;;
80992638 16421 esac
8106cdd5 16422
7a197a62 16423 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 16424$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
16425 X"$ac_file" : 'X\(//\)[^/]' \| \
16426 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 16427 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 16428$as_echo X"$ac_file" |
7a197a62
AK
16429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16430 s//\1/
16431 q
16432 }
16433 /^X\(\/\/\)[^/].*/{
16434 s//\1/
16435 q
16436 }
16437 /^X\(\/\/\)$/{
16438 s//\1/
16439 q
16440 }
16441 /^X\(\/\).*/{
16442 s//\1/
16443 q
16444 }
16445 s/.*/./; q'`
16446 { as_dir="$ac_dir"
16447 case $as_dir in #(
16448 -*) as_dir=./$as_dir;;
16449 esac
16450 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 16451 as_dirs=
7a197a62
AK
16452 while :; do
16453 case $as_dir in #(
ec6a6fbe 16454 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
16455 *) as_qdir=$as_dir;;
16456 esac
16457 as_dirs="'$as_qdir' $as_dirs"
16458 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 16459$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
16460 X"$as_dir" : 'X\(//\)[^/]' \| \
16461 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 16462 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 16463$as_echo X"$as_dir" |
7a197a62
AK
16464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16465 s//\1/
16466 q
16467 }
16468 /^X\(\/\/\)[^/].*/{
16469 s//\1/
16470 q
16471 }
16472 /^X\(\/\/\)$/{
16473 s//\1/
16474 q
16475 }
16476 /^X\(\/\).*/{
16477 s//\1/
16478 q
16479 }
16480 s/.*/./; q'`
16481 test -d "$as_dir" && break
ad6254c5 16482 done
7a197a62 16483 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
16484 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16485$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 16486 { (exit 1); exit 1; }; }; }
ad6254c5
AK
16487 ac_builddir=.
16488
7a197a62
AK
16489case "$ac_dir" in
16490.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16491*)
ec6a6fbe 16492 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 16493 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 16494 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
16495 case $ac_top_builddir_sub in
16496 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16497 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16498 esac ;;
16499esac
16500ac_abs_top_builddir=$ac_pwd
16501ac_abs_builddir=$ac_pwd$ac_dir_suffix
16502# for backward compatibility:
16503ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
16504
16505case $srcdir in
7a197a62 16506 .) # We are building in place.
ad6254c5 16507 ac_srcdir=.
7a197a62
AK
16508 ac_top_srcdir=$ac_top_builddir_sub
16509 ac_abs_top_srcdir=$ac_pwd ;;
16510 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 16511 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
16512 ac_top_srcdir=$srcdir
16513 ac_abs_top_srcdir=$srcdir ;;
16514 *) # Relative name.
16515 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16516 ac_top_srcdir=$ac_top_build_prefix$srcdir
16517 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 16518esac
7a197a62 16519ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 16520
ad6254c5 16521
7a197a62
AK
16522 case $ac_mode in
16523 :F)
16524 #
16525 # CONFIG_FILE
16526 #
ad6254c5
AK
16527
16528 case $INSTALL in
16529 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 16530 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 16531 esac
fddafd51
ZK
16532 ac_MKDIR_P=$MKDIR_P
16533 case $MKDIR_P in
16534 [\\/$]* | ?:[\\/]* ) ;;
16535 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16536 esac
7a197a62 16537_ACEOF
795ca3e5 16538
ec6a6fbe 16539cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
16540# If the template does not know about datarootdir, expand it.
16541# FIXME: This hack should be removed a few years after 2.60.
16542ac_datarootdir_hack=; ac_datarootdir_seen=
16543
ec6a6fbe
AK
16544ac_sed_dataroot='
16545/datarootdir/ {
7a197a62
AK
16546 p
16547 q
16548}
16549/@datadir@/p
16550/@docdir@/p
16551/@infodir@/p
16552/@localedir@/p
16553/@mandir@/p
ec6a6fbe
AK
16554'
16555case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
16556*datarootdir*) ac_datarootdir_seen=yes;;
16557*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
16558 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16559$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 16560_ACEOF
ec6a6fbe 16561cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
16562 ac_datarootdir_hack='
16563 s&@datadir@&$datadir&g
16564 s&@docdir@&$docdir&g
16565 s&@infodir@&$infodir&g
16566 s&@localedir@&$localedir&g
16567 s&@mandir@&$mandir&g
16568 s&\\\${datarootdir}&$datarootdir&g' ;;
16569esac
16570_ACEOF
16571
16572# Neutralize VPATH when `$srcdir' = `.'.
16573# Shell code in configure.ac might set extrasub.
16574# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
16575cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16576ac_sed_extra="$ac_vpsub
ad6254c5
AK
16577$extrasub
16578_ACEOF
ec6a6fbe 16579cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
16580:t
16581/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 16582s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 16583s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 16584s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
16585s&@srcdir@&$ac_srcdir&;t t
16586s&@abs_srcdir@&$ac_abs_srcdir&;t t
16587s&@top_srcdir@&$ac_top_srcdir&;t t
16588s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16589s&@builddir@&$ac_builddir&;t t
16590s&@abs_builddir@&$ac_abs_builddir&;t t
16591s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16592s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 16593s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 16594$ac_datarootdir_hack
ec6a6fbe
AK
16595"
16596eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16597 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16598$as_echo "$as_me: error: could not create $ac_file" >&2;}
16599 { (exit 1); exit 1; }; }
7a197a62
AK
16600
16601test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16602 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16603 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 16604 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 16605which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 16606$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
16607which seems to be undefined. Please make sure it is defined." >&2;}
16608
16609 rm -f "$tmp/stdin"
72b2cb61 16610 case $ac_file in
ec6a6fbe
AK
16611 -) cat "$tmp/out" && rm -f "$tmp/out";;
16612 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16613 esac \
16614 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16615$as_echo "$as_me: error: could not create $ac_file" >&2;}
16616 { (exit 1); exit 1; }; }
7a197a62
AK
16617 ;;
16618 :H)
16619 #
16620 # CONFIG_HEADER
16621 #
72b2cb61 16622 if test x"$ac_file" != x-; then
ec6a6fbe
AK
16623 {
16624 $as_echo "/* $configure_input */" \
16625 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16626 } >"$tmp/config.h" \
16627 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16628$as_echo "$as_me: error: could not create $ac_file" >&2;}
16629 { (exit 1); exit 1; }; }
16630 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16631 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16632$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 16633 else
ec6a6fbe
AK
16634 rm -f "$ac_file"
16635 mv "$tmp/config.h" "$ac_file" \
16636 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16637$as_echo "$as_me: error: could not create $ac_file" >&2;}
16638 { (exit 1); exit 1; }; }
72b2cb61
AK
16639 fi
16640 else
ec6a6fbe
AK
16641 $as_echo "/* $configure_input */" \
16642 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16643 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16644$as_echo "$as_me: error: could not create -" >&2;}
16645 { (exit 1); exit 1; }; }
72b2cb61 16646 fi
7a197a62
AK
16647 ;;
16648
16649
16650 esac
16651
16652done # for ac_tag
795ca3e5 16653
795ca3e5 16654
ad6254c5
AK
16655{ (exit 0); exit 0; }
16656_ACEOF
795ca3e5 16657chmod +x $CONFIG_STATUS
ad6254c5
AK
16658ac_clean_files=$ac_clean_files_save
16659
ec6a6fbe
AK
16660test $ac_write_fail = 0 ||
16661 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16662$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16663 { (exit 1); exit 1; }; }
16664
ad6254c5
AK
16665
16666# configure is writing to config.log, and then calls config.status.
16667# config.status does its own redirection, appending to config.log.
16668# Unfortunately, on DOS this fails, as config.log is still kept open
16669# by configure, so config.status won't be able to write to it; its
16670# output is simply discarded. So we exec the FD to /dev/null,
16671# effectively closing config.log, so it can be properly (re)opened and
16672# appended to by config.status. When coming back to configure, we
16673# need to make the FD available again.
16674if test "$no_create" != yes; then
16675 ac_cs_success=:
16676 ac_config_status_args=
16677 test "$silent" = yes &&
16678 ac_config_status_args="$ac_config_status_args --quiet"
16679 exec 5>/dev/null
16680 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16681 exec 5>>config.log
16682 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16683 # would make configure fail if this is the last instruction.
16684 $ac_cs_success || { (exit 1); exit 1; }
16685fi
ec6a6fbe
AK
16686if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16687 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16688$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16689fi
795ca3e5 16690
2dc95e1c
AK
16691
16692if test x$ODIRECT != xyes; then
ec6a6fbe
AK
16693 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
16694$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 16695fi
This page took 2.339207 seconds and 5 git commands to generate.