]> sourceware.org Git - lvm2.git/blame - configure
fix dir in generated file list for cflow
[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
AK
641usrlibdir
642tmpdir
643kernelvsn
644missingkernel
645kerneldir
646interface
647LIB_PTHREAD
648STATIC_LINK
649STATICDIR
650SNAPSHOTS
651POOL
652PKGCONFIG
653OWNER
654MIRRORS
655LVM_RELEASE_DATE
656LVM_RELEASE
657LVM_PATCHLEVEL
658LVM_MINOR
659LVM_MAJOR
bf456146 660LVM_LIBAPI
ec6a6fbe 661LVM_VERSION
ec6a6fbe
AK
662LVM1_FALLBACK
663LVM1
664LOCALEDIR
665LIB_SUFFIX
666LDDEPS
667JOBS
668INTL_PACKAGE
669INTL
670HAVE_SELINUX
671HAVE_REALTIME
672HAVE_LIBDL
673GROUP
674FSADM
675DM_LIB_PATCHLEVEL
676DM_LIB_VERSION
677DM_IOCTLS
678DM_DEVICE_UID
679DM_DEVICE_MODE
680DM_DEVICE_GID
681DM_COMPAT
682DMEVENTD
683DEVMAPPER
684DEBUG
685COPTIMISE_FLAG
e2997b73 686CONFDIR
ec6a6fbe
AK
687CMDLIB
688CLVMD
689CLUSTER
690CLDWHOLEARCHIVE
691CLDNOWHOLEARCHIVE
692CLDFLAGS
693BUILD_DMEVENTD
572fefeb 694APPLIB
ec6a6fbe
AK
695MODPROBE_CMD
696MSGFMT
697LVM2CMD_LIB
572fefeb 698LVM2APP_LIB
ec6a6fbe
AK
699GENHTML
700LCOV
e2997b73
AK
701CPG_LIBS
702CPG_CFLAGS
703CONFDB_LIBS
704CONFDB_CFLAGS
705QUORUM_LIBS
706QUORUM_CFLAGS
707PKG_CONFIG
ec6a6fbe
AK
708POW_LIB
709LIBOBJS
710ALLOCA
711CSCOPE_CMD
712CFLOW_CMD
713RANLIB
714MKDIR_P
715SET_MAKE
716LN_S
717INSTALL_DATA
718INSTALL_SCRIPT
719INSTALL_PROGRAM
720EGREP
721GREP
722CPP
723OBJEXT
724EXEEXT
725ac_ct_CC
726CPPFLAGS
727LDFLAGS
728CFLAGS
729CC
730AWK
731SED
732target_os
733target_vendor
734target_cpu
735target
736host_os
737host_vendor
738host_cpu
739host
740build_os
741build_vendor
742build_cpu
743build
744target_alias
745host_alias
746build_alias
747LIBS
748ECHO_T
749ECHO_N
750ECHO_C
751DEFS
752mandir
753localedir
754libdir
755psdir
756pdfdir
757dvidir
758htmldir
759infodir
760docdir
761oldincludedir
762includedir
763localstatedir
764sharedstatedir
765sysconfdir
766datadir
767datarootdir
768libexecdir
769sbindir
770bindir
771program_transform_name
772prefix
773exec_prefix
774PACKAGE_BUGREPORT
775PACKAGE_STRING
776PACKAGE_VERSION
777PACKAGE_TARNAME
778PACKAGE_NAME
779PATH_SEPARATOR
780SHELL'
ad6254c5 781ac_subst_files=''
ec6a6fbe
AK
782ac_user_opts='
783enable_option_checking
784enable_static_link
785with_user
786with_group
787with_device_uid
788with_device_gid
789with_device_mode
790enable_lvm1_fallback
791with_lvm1
792with_pool
793with_cluster
794with_snapshots
795with_mirrors
796enable_readline
797enable_realtime
798with_clvmd
799enable_debug
800with_optimisation
801enable_profiling
802enable_devmapper
803enable_compat
804enable_ioctl
805enable_o_direct
572fefeb 806enable_applib
ec6a6fbe
AK
807enable_cmdlib
808enable_pkgconfig
809enable_fsadm
810enable_dmeventd
811enable_selinux
812enable_nls
813with_localedir
814with_confdir
815with_staticdir
816with_usrlibdir
817with_usrsbindir
818with_dmeventd_pidfile
819with_dmeventd_path
820with_interface
821'
7a197a62
AK
822 ac_precious_vars='build_alias
823host_alias
824target_alias
825CC
826CFLAGS
827LDFLAGS
25fbec5b 828LIBS
7a197a62 829CPPFLAGS
e2997b73
AK
830CPP
831PKG_CONFIG
832QUORUM_CFLAGS
833QUORUM_LIBS
834CONFDB_CFLAGS
835CONFDB_LIBS
836CPG_CFLAGS
837CPG_LIBS'
7a197a62 838
795ca3e5
AK
839
840# Initialize some variables set by options.
ad6254c5
AK
841ac_init_help=
842ac_init_version=false
ec6a6fbe
AK
843ac_unrecognized_opts=
844ac_unrecognized_sep=
795ca3e5
AK
845# The variables have the same names as the options, with
846# dashes changed to underlines.
ad6254c5 847cache_file=/dev/null
795ca3e5 848exec_prefix=NONE
795ca3e5 849no_create=
795ca3e5
AK
850no_recursion=
851prefix=NONE
852program_prefix=NONE
853program_suffix=NONE
854program_transform_name=s,x,x,
855silent=
856site=
857srcdir=
795ca3e5
AK
858verbose=
859x_includes=NONE
860x_libraries=NONE
ad6254c5
AK
861
862# Installation directory options.
863# These are left unexpanded so users can "make install exec_prefix=/foo"
864# and all the variables that are supposed to be based on exec_prefix
865# by default will actually change.
866# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 867# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
868bindir='${exec_prefix}/bin'
869sbindir='${exec_prefix}/sbin'
870libexecdir='${exec_prefix}/libexec'
7a197a62
AK
871datarootdir='${prefix}/share'
872datadir='${datarootdir}'
795ca3e5
AK
873sysconfdir='${prefix}/etc'
874sharedstatedir='${prefix}/com'
875localstatedir='${prefix}/var'
795ca3e5
AK
876includedir='${prefix}/include'
877oldincludedir='/usr/include'
7a197a62
AK
878docdir='${datarootdir}/doc/${PACKAGE}'
879infodir='${datarootdir}/info'
880htmldir='${docdir}'
881dvidir='${docdir}'
882pdfdir='${docdir}'
883psdir='${docdir}'
884libdir='${exec_prefix}/lib'
885localedir='${datarootdir}/locale'
886mandir='${datarootdir}/man'
795ca3e5 887
795ca3e5 888ac_prev=
7a197a62 889ac_dashdash=
795ca3e5
AK
890for ac_option
891do
795ca3e5
AK
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
7a197a62 894 eval $ac_prev=\$ac_option
795ca3e5
AK
895 ac_prev=
896 continue
897 fi
898
7a197a62
AK
899 case $ac_option in
900 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 *) ac_optarg=yes ;;
902 esac
795ca3e5
AK
903
904 # Accept the important Cygnus configure options, so we can diagnose typos.
905
7a197a62
AK
906 case $ac_dashdash$ac_option in
907 --)
908 ac_dashdash=yes ;;
795ca3e5
AK
909
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 ac_prev=bindir ;;
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 913 bindir=$ac_optarg ;;
795ca3e5
AK
914
915 -build | --build | --buil | --bui | --bu)
ad6254c5 916 ac_prev=build_alias ;;
795ca3e5 917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 918 build_alias=$ac_optarg ;;
795ca3e5
AK
919
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
925 cache_file=$ac_optarg ;;
926
927 --config-cache | -C)
928 cache_file=config.cache ;;
795ca3e5 929
7a197a62 930 -datadir | --datadir | --datadi | --datad)
795ca3e5 931 ac_prev=datadir ;;
7a197a62 932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 933 datadir=$ac_optarg ;;
795ca3e5 934
7a197a62
AK
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
941
795ca3e5 942 -disable-* | --disable-*)
ec6a6fbe 943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 944 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 947 { (exit 1); exit 1; }; }
ec6a6fbe
AK
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952"enable_$ac_useropt"
953"*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=no ;;
7a197a62
AK
958
959 -docdir | --docdir | --docdi | --doc | --do)
960 ac_prev=docdir ;;
961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962 docdir=$ac_optarg ;;
963
964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 ac_prev=dvidir ;;
966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967 dvidir=$ac_optarg ;;
795ca3e5
AK
968
969 -enable-* | --enable-*)
ec6a6fbe 970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 971 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 974 { (exit 1); exit 1; }; }
ec6a6fbe
AK
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
978 *"
979"enable_$ac_useropt"
980"*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
985
986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988 | --exec | --exe | --ex)
989 ac_prev=exec_prefix ;;
990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992 | --exec=* | --exe=* | --ex=*)
ad6254c5 993 exec_prefix=$ac_optarg ;;
795ca3e5
AK
994
995 -gas | --gas | --ga | --g)
996 # Obsolete; use --with-gas.
997 with_gas=yes ;;
998
ad6254c5
AK
999 -help | --help | --hel | --he | -h)
1000 ac_init_help=long ;;
1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002 ac_init_help=recursive ;;
1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004 ac_init_help=short ;;
795ca3e5
AK
1005
1006 -host | --host | --hos | --ho)
ad6254c5 1007 ac_prev=host_alias ;;
795ca3e5 1008 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1009 host_alias=$ac_optarg ;;
795ca3e5 1010
7a197a62
AK
1011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 ac_prev=htmldir ;;
1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 | --ht=*)
1015 htmldir=$ac_optarg ;;
1016
795ca3e5
AK
1017 -includedir | --includedir | --includedi | --included | --include \
1018 | --includ | --inclu | --incl | --inc)
1019 ac_prev=includedir ;;
1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1022 includedir=$ac_optarg ;;
795ca3e5
AK
1023
1024 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 ac_prev=infodir ;;
1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1027 infodir=$ac_optarg ;;
795ca3e5
AK
1028
1029 -libdir | --libdir | --libdi | --libd)
1030 ac_prev=libdir ;;
1031 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1032 libdir=$ac_optarg ;;
795ca3e5
AK
1033
1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035 | --libexe | --libex | --libe)
1036 ac_prev=libexecdir ;;
1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1039 libexecdir=$ac_optarg ;;
795ca3e5 1040
7a197a62
AK
1041 -localedir | --localedir | --localedi | --localed | --locale)
1042 ac_prev=localedir ;;
1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044 localedir=$ac_optarg ;;
1045
795ca3e5 1046 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1047 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1048 ac_prev=localstatedir ;;
1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1051 localstatedir=$ac_optarg ;;
795ca3e5
AK
1052
1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 ac_prev=mandir ;;
1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1056 mandir=$ac_optarg ;;
795ca3e5
AK
1057
1058 -nfp | --nfp | --nf)
1059 # Obsolete; use --without-fp.
1060 with_fp=no ;;
1061
1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1063 | --no-cr | --no-c | -n)
795ca3e5
AK
1064 no_create=yes ;;
1065
1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068 no_recursion=yes ;;
1069
1070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072 | --oldin | --oldi | --old | --ol | --o)
1073 ac_prev=oldincludedir ;;
1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1077 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1078
1079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 ac_prev=prefix ;;
1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1082 prefix=$ac_optarg ;;
795ca3e5
AK
1083
1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085 | --program-pre | --program-pr | --program-p)
1086 ac_prev=program_prefix ;;
1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1089 program_prefix=$ac_optarg ;;
795ca3e5
AK
1090
1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092 | --program-suf | --program-su | --program-s)
1093 ac_prev=program_suffix ;;
1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1096 program_suffix=$ac_optarg ;;
795ca3e5
AK
1097
1098 -program-transform-name | --program-transform-name \
1099 | --program-transform-nam | --program-transform-na \
1100 | --program-transform-n | --program-transform- \
1101 | --program-transform | --program-transfor \
1102 | --program-transfo | --program-transf \
1103 | --program-trans | --program-tran \
1104 | --progr-tra | --program-tr | --program-t)
1105 ac_prev=program_transform_name ;;
1106 -program-transform-name=* | --program-transform-name=* \
1107 | --program-transform-nam=* | --program-transform-na=* \
1108 | --program-transform-n=* | --program-transform-=* \
1109 | --program-transform=* | --program-transfor=* \
1110 | --program-transfo=* | --program-transf=* \
1111 | --program-trans=* | --program-tran=* \
1112 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1113 program_transform_name=$ac_optarg ;;
795ca3e5 1114
7a197a62
AK
1115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 ac_prev=pdfdir ;;
1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118 pdfdir=$ac_optarg ;;
1119
1120 -psdir | --psdir | --psdi | --psd | --ps)
1121 ac_prev=psdir ;;
1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123 psdir=$ac_optarg ;;
1124
795ca3e5
AK
1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126 | -silent | --silent | --silen | --sile | --sil)
1127 silent=yes ;;
1128
1129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130 ac_prev=sbindir ;;
1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132 | --sbi=* | --sb=*)
ad6254c5 1133 sbindir=$ac_optarg ;;
795ca3e5
AK
1134
1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137 | --sharedst | --shareds | --shared | --share | --shar \
1138 | --sha | --sh)
1139 ac_prev=sharedstatedir ;;
1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143 | --sha=* | --sh=*)
ad6254c5 1144 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1145
1146 -site | --site | --sit)
1147 ac_prev=site ;;
1148 -site=* | --site=* | --sit=*)
ad6254c5 1149 site=$ac_optarg ;;
795ca3e5
AK
1150
1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152 ac_prev=srcdir ;;
1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1154 srcdir=$ac_optarg ;;
795ca3e5
AK
1155
1156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157 | --syscon | --sysco | --sysc | --sys | --sy)
1158 ac_prev=sysconfdir ;;
1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1161 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1162
1163 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1164 ac_prev=target_alias ;;
795ca3e5 1165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1166 target_alias=$ac_optarg ;;
795ca3e5
AK
1167
1168 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169 verbose=yes ;;
1170
ad6254c5
AK
1171 -version | --version | --versio | --versi | --vers | -V)
1172 ac_init_version=: ;;
795ca3e5
AK
1173
1174 -with-* | --with-*)
ec6a6fbe 1175 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1176 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1179 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1183 *"
1184"with_$ac_useropt"
1185"*) ;;
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
1188 esac
1189 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1190
1191 -without-* | --without-*)
ec6a6fbe 1192 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1193 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1196 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201"with_$ac_useropt"
1202"*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=no ;;
795ca3e5
AK
1207
1208 --x)
1209 # Obsolete; use --with-x.
1210 with_x=yes ;;
1211
1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213 | --x-incl | --x-inc | --x-in | --x-i)
1214 ac_prev=x_includes ;;
1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1217 x_includes=$ac_optarg ;;
795ca3e5
AK
1218
1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221 ac_prev=x_libraries ;;
1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1224 x_libraries=$ac_optarg ;;
795ca3e5 1225
ec6a6fbe 1226 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1227Try \`$0 --help' for more information." >&2
1228 { (exit 1); exit 1; }; }
795ca3e5
AK
1229 ;;
1230
ad6254c5
AK
1231 *=*)
1232 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1235 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1236 { (exit 1); exit 1; }; }
7a197a62 1237 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1238 export $ac_envvar ;;
1239
795ca3e5 1240 *)
ad6254c5 1241 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1245 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1246 ;;
1247
1248 esac
1249done
1250
1251if test -n "$ac_prev"; then
ad6254c5 1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec6a6fbe 1253 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1254 { (exit 1); exit 1; }; }
795ca3e5 1255fi
795ca3e5 1256
ec6a6fbe
AK
1257if test -n "$ac_unrecognized_opts"; then
1258 case $enable_option_checking in
1259 no) ;;
1260 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1261 { (exit 1); exit 1; }; } ;;
1262 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263 esac
1264fi
1265
1266# Check all directory arguments for consistency.
7a197a62
AK
1267for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir
795ca3e5 1271do
7a197a62 1272 eval ac_val=\$$ac_var
ec6a6fbe
AK
1273 # Remove trailing slashes.
1274 case $ac_val in
1275 */ )
1276 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277 eval $ac_var=\$ac_val;;
1278 esac
1279 # Be sure to have absolute directory names.
ad6254c5 1280 case $ac_val in
7a197a62
AK
1281 [\\/$]* | ?:[\\/]* ) continue;;
1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1283 esac
ec6a6fbe 1284 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1285 { (exit 1); exit 1; }; }
795ca3e5
AK
1286done
1287
ad6254c5
AK
1288# There might be people who depend on the old broken behavior: `$host'
1289# used to hold the argument of --host etc.
1290# FIXME: To remove some day.
1291build=$build_alias
1292host=$host_alias
1293target=$target_alias
1294
1295# FIXME: To remove some day.
1296if test "x$host_alias" != x; then
1297 if test "x$build_alias" = x; then
1298 cross_compiling=maybe
ec6a6fbe 1299 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1300 If a cross compiler is detected then cross compile mode will be used." >&2
1301 elif test "x$build_alias" != "x$host_alias"; then
1302 cross_compiling=yes
1303 fi
1304fi
8106cdd5 1305
ad6254c5
AK
1306ac_tool_prefix=
1307test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309test "$silent" = yes && exec 6>/dev/null
795ca3e5 1310
795ca3e5 1311
7a197a62
AK
1312ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313ac_ls_di=`ls -di .` &&
1314ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec6a6fbe 1315 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7a197a62
AK
1316 { (exit 1); exit 1; }; }
1317test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec6a6fbe 1318 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1319 { (exit 1); exit 1; }; }
1320
1321
795ca3e5
AK
1322# Find the source files, if location was not specified.
1323if test -z "$srcdir"; then
1324 ac_srcdir_defaulted=yes
7a197a62 1325 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1326 ac_confdir=`$as_dirname -- "$as_myself" ||
1327$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1328 X"$as_myself" : 'X\(//\)[^/]' \| \
1329 X"$as_myself" : 'X\(//\)$' \| \
1330 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1331$as_echo X"$as_myself" |
7a197a62
AK
1332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\/\)[^/].*/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\/\)$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\).*/{
1345 s//\1/
1346 q
1347 }
1348 s/.*/./; q'`
795ca3e5 1349 srcdir=$ac_confdir
7a197a62 1350 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1351 srcdir=..
1352 fi
1353else
1354 ac_srcdir_defaulted=no
1355fi
7a197a62
AK
1356if test ! -r "$srcdir/$ac_unique_file"; then
1357 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec6a6fbe 1358 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1359 { (exit 1); exit 1; }; }
795ca3e5 1360fi
7a197a62
AK
1361ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1362ac_abs_confdir=`(
ec6a6fbe 1363 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1364 { (exit 1); exit 1; }; }
7a197a62
AK
1365 pwd)`
1366# When building in place, set srcdir=.
1367if test "$ac_abs_confdir" = "$ac_pwd"; then
1368 srcdir=.
1369fi
1370# Remove unnecessary trailing slashes from srcdir.
1371# Double slashes in file names in object file debugging info
1372# mess up M-x gdb in Emacs.
1373case $srcdir in
1374*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375esac
1376for ac_var in $ac_precious_vars; do
1377 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_env_${ac_var}_value=\$${ac_var}
1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381done
ad6254c5
AK
1382
1383#
1384# Report the --help message.
1385#
1386if test "$ac_init_help" = "long"; then
1387 # Omit some internal or obsolete options to make the list less imposing.
1388 # This message is too long to be a string in the A/UX 3.1 sh.
1389 cat <<_ACEOF
1390\`configure' configures this package to adapt to many kinds of systems.
1391
1392Usage: $0 [OPTION]... [VAR=VALUE]...
1393
1394To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395VAR=VALUE. See below for descriptions of some of the useful variables.
1396
1397Defaults for the options are specified in brackets.
1398
1399Configuration:
1400 -h, --help display this help and exit
1401 --help=short display options specific to this package
1402 --help=recursive display the short help of all the included packages
1403 -V, --version display version information and exit
1404 -q, --quiet, --silent do not print \`checking...' messages
1405 --cache-file=FILE cache test results in FILE [disabled]
1406 -C, --config-cache alias for \`--cache-file=config.cache'
1407 -n, --no-create do not create output files
1408 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409
ad6254c5
AK
1410Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1412 [$ac_default_prefix]
ad6254c5 1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1414 [PREFIX]
ad6254c5
AK
1415
1416By default, \`make install' will install all the files in
1417\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1418an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419for instance \`--prefix=\$HOME'.
1420
1421For better control, use the options below.
1422
1423Fine tuning of the installation directories:
ec6a6fbe
AK
1424 --bindir=DIR user executables [EPREFIX/bin]
1425 --sbindir=DIR system admin executables [EPREFIX/sbin]
1426 --libexecdir=DIR program executables [EPREFIX/libexec]
1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430 --libdir=DIR object code libraries [EPREFIX/lib]
1431 --includedir=DIR C header files [PREFIX/include]
1432 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1435 --infodir=DIR info documentation [DATAROOTDIR/info]
1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1437 --mandir=DIR man documentation [DATAROOTDIR/man]
1438 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1439 --htmldir=DIR html documentation [DOCDIR]
1440 --dvidir=DIR dvi documentation [DOCDIR]
1441 --pdfdir=DIR pdf documentation [DOCDIR]
1442 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1443_ACEOF
1444
1445 cat <<\_ACEOF
1446
1447System types:
1448 --build=BUILD configure for building on BUILD [guessed]
1449 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1450 --target=TARGET configure for building compilers for TARGET [HOST]
1451_ACEOF
1452fi
1453
1454if test -n "$ac_init_help"; then
1455
1456 cat <<\_ACEOF
1457
1458Optional Features:
ec6a6fbe 1459 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1460 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1461 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
9c961554
MB
1462 --enable-static_link Use this to link the tools to their libraries
1463 statically. Default is dynamic linking
ad6254c5
AK
1464 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1465 device-mapper is missing from the kernel
1b523347 1466 --disable-readline Disable readline support
3d978351 1467 --disable-realtime Disable realtime clock support
ad6254c5 1468 --enable-debug Enable debugging
5556819a 1469 --enable-profiling Gather gcov profiling data
93bd259b
AK
1470 --disable-devmapper Disable LVM2 device-mapper interaction
1471 --enable-compat Enable support for old device-mapper versions
1472 --disable-driver Disable calls to device-mapper in the kernel
ad6254c5 1473 --disable-o_direct Disable O_DIRECT
572fefeb 1474 --enable-applib Build application library
ad6254c5 1475 --enable-cmdlib Build shared command library
93bd259b 1476 --enable-pkgconfig Install pkgconfig support
ad6254c5 1477 --enable-fsadm Enable fsadm
15d91f5a 1478 --enable-dmeventd Enable the device-mapper event daemon
d0191583 1479 --disable-selinux Disable selinux support
ad6254c5
AK
1480 --enable-nls Enable Native Language Support
1481
1482Optional Packages:
1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d0191583
JM
1485 --with-user=USER Set the owner of installed files [USER=root]
1486 --with-group=GROUP Set the group owner of installed files [GROUP=root]
24bbc4d7
AK
1487 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1488 --with-device-gid=UID Set the group used for new device nodes [GID=0]
93bd259b 1489 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
ad6254c5
AK
1490 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1491 TYPE=internal
1492 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1493 TYPE=internal
1494 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1495 TYPE=internal
1496 --with-snapshots=TYPE Snapshot support: internal/shared/none
1497 TYPE=internal
1498 --with-mirrors=TYPE Mirror support: internal/shared/none
1499 TYPE=internal
ec6a6fbe 1500 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/corosync/none/all
a266258f 1501 TYPE=none
d0191583
JM
1502 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1503 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
ad6254c5
AK
1504 --with-confdir=DIR Configuration files in DIR /etc
1505 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
68f2de6d
AK
1506 --with-usrlibdir=DIR
1507 --with-usrsbindir=DIR
93bd259b
AK
1508 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
1509 --with-dmeventd-path=PATH dmeventd path [${exec_prefix}/sbin/dmeventd]
1510 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1511
1512Some influential environment variables:
1513 CC C compiler command
1514 CFLAGS C compiler flags
1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1516 nonstandard directory <lib dir>
25fbec5b 1517 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1518 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1519 you have headers in a nonstandard directory <include dir>
ad6254c5 1520 CPP C preprocessor
e2997b73
AK
1521 PKG_CONFIG path to pkg-config utility
1522 QUORUM_CFLAGS
1523 C compiler flags for QUORUM, overriding pkg-config
1524 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1525 CONFDB_CFLAGS
1526 C compiler flags for CONFDB, overriding pkg-config
1527 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1528 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1529 CPG_LIBS linker flags for CPG, overriding pkg-config
ad6254c5
AK
1530
1531Use these variables to override the choices made by `configure' or to help
1532it to find libraries and programs with nonstandard names/locations.
1533
1534_ACEOF
7a197a62 1535ac_status=$?
ad6254c5
AK
1536fi
1537
1538if test "$ac_init_help" = "recursive"; then
1539 # If there are subdirs, report their specific --help.
ad6254c5 1540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1541 test -d "$ac_dir" ||
1542 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1543 continue
ad6254c5
AK
1544 ac_builddir=.
1545
7a197a62
AK
1546case "$ac_dir" in
1547.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548*)
ec6a6fbe 1549 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1550 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1551 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1552 case $ac_top_builddir_sub in
1553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1555 esac ;;
1556esac
1557ac_abs_top_builddir=$ac_pwd
1558ac_abs_builddir=$ac_pwd$ac_dir_suffix
1559# for backward compatibility:
1560ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1561
1562case $srcdir in
7a197a62 1563 .) # We are building in place.
ad6254c5 1564 ac_srcdir=.
7a197a62
AK
1565 ac_top_srcdir=$ac_top_builddir_sub
1566 ac_abs_top_srcdir=$ac_pwd ;;
1567 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1568 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1569 ac_top_srcdir=$srcdir
1570 ac_abs_top_srcdir=$srcdir ;;
1571 *) # Relative name.
1572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573 ac_top_srcdir=$ac_top_build_prefix$srcdir
1574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1575esac
7a197a62
AK
1576ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1577
1578 cd "$ac_dir" || { ac_status=$?; continue; }
1579 # Check for guested configure.
1580 if test -f "$ac_srcdir/configure.gnu"; then
1581 echo &&
1582 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583 elif test -f "$ac_srcdir/configure"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1586 else
ec6a6fbe 1587 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1588 fi || ac_status=$?
1589 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1590 done
1591fi
1592
7a197a62 1593test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1594if $ac_init_version; then
1595 cat <<\_ACEOF
7a197a62 1596configure
ec6a6fbe 1597generated by GNU Autoconf 2.63
ad6254c5 1598
7a197a62 1599Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 16002002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1601This configure script is free software; the Free Software Foundation
1602gives unlimited permission to copy, distribute and modify it.
1603_ACEOF
7a197a62 1604 exit
ad6254c5 1605fi
7a197a62 1606cat >config.log <<_ACEOF
ad6254c5
AK
1607This file contains any messages produced by compilers while
1608running configure, to aid debugging if configure makes a mistake.
1609
1610It was created by $as_me, which was
ec6a6fbe 1611generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
1612
1613 $ $0 $@
1614
1615_ACEOF
7a197a62 1616exec 5>>config.log
ad6254c5
AK
1617{
1618cat <<_ASUNAME
1619## --------- ##
1620## Platform. ##
1621## --------- ##
1622
1623hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1624uname -m = `(uname -m) 2>/dev/null || echo unknown`
1625uname -r = `(uname -r) 2>/dev/null || echo unknown`
1626uname -s = `(uname -s) 2>/dev/null || echo unknown`
1627uname -v = `(uname -v) 2>/dev/null || echo unknown`
1628
1629/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1630/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1631
1632/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1633/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1634/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1635/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1636/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1637/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1638/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1639
1640_ASUNAME
1641
1642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643for as_dir in $PATH
1644do
1645 IFS=$as_save_IFS
1646 test -z "$as_dir" && as_dir=.
ec6a6fbe 1647 $as_echo "PATH: $as_dir"
ad6254c5 1648done
7a197a62 1649IFS=$as_save_IFS
ad6254c5
AK
1650
1651} >&5
1652
1653cat >&5 <<_ACEOF
1654
1655
1656## ----------- ##
1657## Core tests. ##
1658## ----------- ##
1659
1660_ACEOF
1661
1662
1663# Keep a trace of the command line.
1664# Strip out --no-create and --no-recursion so they do not pile up.
1665# Strip out --silent because we don't want to record it for future runs.
1666# Also quote any args containing shell meta-characters.
1667# Make two passes to allow for proper duplicate-argument suppression.
1668ac_configure_args=
1669ac_configure_args0=
1670ac_configure_args1=
ad6254c5
AK
1671ac_must_keep_next=false
1672for ac_pass in 1 2
1673do
1674 for ac_arg
1675 do
1676 case $ac_arg in
1677 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1678 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1679 | -silent | --silent | --silen | --sile | --sil)
1680 continue ;;
7a197a62 1681 *\'*)
ec6a6fbe 1682 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1683 esac
1684 case $ac_pass in
1685 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1686 2)
1687 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1688 if test $ac_must_keep_next = true; then
8a2fc586 1689 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1690 else
8a2fc586
AK
1691 case $ac_arg in
1692 *=* | --config-cache | -C | -disable-* | --disable-* \
1693 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1694 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1695 | -with-* | --with-* | -without-* | --without-* | --x)
1696 case "$ac_configure_args0 " in
1697 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1698 esac
1699 ;;
1700 -* ) ac_must_keep_next=true ;;
1701 esac
ad6254c5 1702 fi
7a197a62 1703 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1704 ;;
1705 esac
1706 done
1707done
1708$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1709$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1710
1711# When interrupted or exit'd, cleanup temporary files, and complete
1712# config.log. We remove comments because anyway the quotes in there
1713# would cause problems or look ugly.
7a197a62
AK
1714# WARNING: Use '\'' to represent an apostrophe within the trap.
1715# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1716trap 'exit_status=$?
1717 # Save into config.log some information that might help in debugging.
1718 {
1719 echo
1720
1721 cat <<\_ASBOX
1722## ---------------- ##
1723## Cache variables. ##
1724## ---------------- ##
1725_ASBOX
1726 echo
1727 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1728(
1729 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1730 eval ac_val=\$$ac_var
1731 case $ac_val in #(
1732 *${as_nl}*)
1733 case $ac_var in #(
ec6a6fbe
AK
1734 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1735$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
1736 esac
1737 case $ac_var in #(
1738 _ | IFS | as_nl) ;; #(
ec6a6fbe 1739 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1740 *) $as_unset $ac_var ;;
1741 esac ;;
1742 esac
1743 done
ad6254c5 1744 (set) 2>&1 |
7a197a62
AK
1745 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1746 *${as_nl}ac_space=\ *)
ad6254c5 1747 sed -n \
7a197a62
AK
1748 "s/'\''/'\''\\\\'\'''\''/g;
1749 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1750 ;; #(
ad6254c5 1751 *)
7a197a62 1752 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1753 ;;
7a197a62
AK
1754 esac |
1755 sort
1756)
ad6254c5
AK
1757 echo
1758
1759 cat <<\_ASBOX
1760## ----------------- ##
1761## Output variables. ##
1762## ----------------- ##
1763_ASBOX
1764 echo
1765 for ac_var in $ac_subst_vars
1766 do
7a197a62
AK
1767 eval ac_val=\$$ac_var
1768 case $ac_val in
ec6a6fbe 1769 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1770 esac
ec6a6fbe 1771 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1772 done | sort
1773 echo
1774
1775 if test -n "$ac_subst_files"; then
1776 cat <<\_ASBOX
7a197a62
AK
1777## ------------------- ##
1778## File substitutions. ##
1779## ------------------- ##
ad6254c5
AK
1780_ASBOX
1781 echo
1782 for ac_var in $ac_subst_files
1783 do
7a197a62
AK
1784 eval ac_val=\$$ac_var
1785 case $ac_val in
ec6a6fbe 1786 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1787 esac
ec6a6fbe 1788 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1789 done | sort
1790 echo
1791 fi
1792
1793 if test -s confdefs.h; then
1794 cat <<\_ASBOX
1795## ----------- ##
1796## confdefs.h. ##
1797## ----------- ##
1798_ASBOX
1799 echo
7a197a62 1800 cat confdefs.h
ad6254c5
AK
1801 echo
1802 fi
1803 test "$ac_signal" != 0 &&
ec6a6fbe
AK
1804 $as_echo "$as_me: caught signal $ac_signal"
1805 $as_echo "$as_me: exit $exit_status"
ad6254c5 1806 } >&5
7a197a62
AK
1807 rm -f core *.core core.conftest.* &&
1808 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1809 exit $exit_status
7a197a62 1810' 0
ad6254c5
AK
1811for ac_signal in 1 2 13 15; do
1812 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1813done
1814ac_signal=0
1815
1816# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1817rm -f -r conftest* confdefs.h
ad6254c5
AK
1818
1819# Predefined preprocessor variables.
1820
1821cat >>confdefs.h <<_ACEOF
1822#define PACKAGE_NAME "$PACKAGE_NAME"
1823_ACEOF
1824
1825
1826cat >>confdefs.h <<_ACEOF
1827#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1828_ACEOF
1829
1830
1831cat >>confdefs.h <<_ACEOF
1832#define PACKAGE_VERSION "$PACKAGE_VERSION"
1833_ACEOF
8106cdd5 1834
ad6254c5
AK
1835
1836cat >>confdefs.h <<_ACEOF
1837#define PACKAGE_STRING "$PACKAGE_STRING"
1838_ACEOF
1839
1840
1841cat >>confdefs.h <<_ACEOF
1842#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1843_ACEOF
1844
1845
1846# Let the site file select an alternate cache file if it wants to.
ec6a6fbe
AK
1847# Prefer an explicitly selected file to automatically selected ones.
1848ac_site_file1=NONE
1849ac_site_file2=NONE
7a197a62 1850if test -n "$CONFIG_SITE"; then
ec6a6fbe 1851 ac_site_file1=$CONFIG_SITE
7a197a62 1852elif test "x$prefix" != xNONE; then
ec6a6fbe
AK
1853 ac_site_file1=$prefix/share/config.site
1854 ac_site_file2=$prefix/etc/config.site
7a197a62 1855else
ec6a6fbe
AK
1856 ac_site_file1=$ac_default_prefix/share/config.site
1857 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1858fi
ec6a6fbe 1859for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1860do
ec6a6fbe 1861 test "x$ac_site_file" = xNONE && continue
795ca3e5 1862 if test -r "$ac_site_file"; then
ec6a6fbe
AK
1863 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1864$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1865 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1866 . "$ac_site_file"
1867 fi
1868done
1869
1870if test -r "$cache_file"; then
ad6254c5
AK
1871 # Some versions of bash will fail to source /dev/null (special
1872 # files actually), so we avoid doing that.
1873 if test -f "$cache_file"; then
ec6a6fbe
AK
1874 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1875$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1876 case $cache_file in
7a197a62
AK
1877 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1878 *) . "./$cache_file";;
ad6254c5
AK
1879 esac
1880 fi
795ca3e5 1881else
ec6a6fbe
AK
1882 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1883$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1884 >$cache_file
1885fi
1886
1887# Check that the precious variables saved in the cache have kept the same
1888# value.
1889ac_cache_corrupted=false
7a197a62 1890for ac_var in $ac_precious_vars; do
ad6254c5
AK
1891 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1892 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1893 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1894 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1895 case $ac_old_set,$ac_new_set in
1896 set,)
ec6a6fbe
AK
1897 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1898$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
1899 ac_cache_corrupted=: ;;
1900 ,set)
ec6a6fbe
AK
1901 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1902$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
1903 ac_cache_corrupted=: ;;
1904 ,);;
1905 *)
1906 if test "x$ac_old_val" != "x$ac_new_val"; then
ec6a6fbe
AK
1907 # differences in whitespace do not lead to failure.
1908 ac_old_val_w=`echo x $ac_old_val`
1909 ac_new_val_w=`echo x $ac_new_val`
1910 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1911 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1912$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1913 ac_cache_corrupted=:
1914 else
1915 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1916$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1917 eval $ac_var=\$ac_old_val
1918 fi
1919 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1920$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1921 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1922$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
1923 fi;;
1924 esac
1925 # Pass precious variables to config.status.
1926 if test "$ac_new_set" = set; then
1927 case $ac_new_val in
ec6a6fbe 1928 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1929 *) ac_arg=$ac_var=$ac_new_val ;;
1930 esac
1931 case " $ac_configure_args " in
1932 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1933 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1934 esac
1935 fi
1936done
1937if $ac_cache_corrupted; then
ec6a6fbe
AK
1938 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1940 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1941$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1942 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1943$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 1944 { (exit 1); exit 1; }; }
795ca3e5
AK
1945fi
1946
ad6254c5
AK
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
7a197a62
AK
1963ac_ext=c
1964ac_cpp='$CPP $CPPFLAGS'
1965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1967ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 1968
795ca3e5
AK
1969
1970
7a197a62 1971ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
1972
1973
80992638 1974################################################################################
795ca3e5 1975ac_aux_dir=
7a197a62
AK
1976for ac_dir in autoconf "$srcdir"/autoconf; do
1977 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
1978 ac_aux_dir=$ac_dir
1979 ac_install_sh="$ac_aux_dir/install-sh -c"
1980 break
7a197a62 1981 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
1982 ac_aux_dir=$ac_dir
1983 ac_install_sh="$ac_aux_dir/install.sh -c"
1984 break
7a197a62 1985 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
1986 ac_aux_dir=$ac_dir
1987 ac_install_sh="$ac_aux_dir/shtool install -c"
1988 break
795ca3e5
AK
1989 fi
1990done
1991if test -z "$ac_aux_dir"; then
ec6a6fbe
AK
1992 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1993$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 1994 { (exit 1); exit 1; }; }
795ca3e5 1995fi
7a197a62
AK
1996
1997# These three variables are undocumented and unsupported,
1998# and are intended to be withdrawn in a future Autoconf release.
1999# They can cause serious problems if a builder's source tree is in a directory
2000# whose full name contains unusual characters.
2001ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2002ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2003ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2004
8ce0cbda
AK
2005
2006
ad6254c5 2007################################################################################
8ce0cbda 2008# Make sure we can run config.sub.
7a197a62 2009$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec6a6fbe
AK
2010 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2011$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
2012 { (exit 1); exit 1; }; }
2013
ec6a6fbe
AK
2014{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2015$as_echo_n "checking build system type... " >&6; }
ad6254c5 2016if test "${ac_cv_build+set}" = set; then
ec6a6fbe 2017 $as_echo_n "(cached) " >&6
ad6254c5 2018else
7a197a62
AK
2019 ac_build_alias=$build_alias
2020test "x$ac_build_alias" = x &&
2021 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2022test "x$ac_build_alias" = x &&
ec6a6fbe
AK
2023 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2024$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 2025 { (exit 1); exit 1; }; }
7a197a62 2026ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec6a6fbe
AK
2027 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2028$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
2029 { (exit 1); exit 1; }; }
2030
2031fi
ec6a6fbe
AK
2032{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2033$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
2034case $ac_cv_build in
2035*-*-*) ;;
ec6a6fbe
AK
2036*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2037$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
2038 { (exit 1); exit 1; }; };;
2039esac
ad6254c5 2040build=$ac_cv_build
7a197a62
AK
2041ac_save_IFS=$IFS; IFS='-'
2042set x $ac_cv_build
2043shift
2044build_cpu=$1
2045build_vendor=$2
2046shift; shift
2047# Remember, the first character of IFS is used to create $*,
2048# except with old shells:
2049build_os=$*
2050IFS=$ac_save_IFS
2051case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2052
2053
ec6a6fbe
AK
2054{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2055$as_echo_n "checking host system type... " >&6; }
ad6254c5 2056if test "${ac_cv_host+set}" = set; then
ec6a6fbe 2057 $as_echo_n "(cached) " >&6
ad6254c5 2058else
7a197a62
AK
2059 if test "x$host_alias" = x; then
2060 ac_cv_host=$ac_cv_build
2061else
2062 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec6a6fbe
AK
2063 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2064$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2065 { (exit 1); exit 1; }; }
7a197a62 2066fi
ad6254c5
AK
2067
2068fi
ec6a6fbe
AK
2069{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2070$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2071case $ac_cv_host in
2072*-*-*) ;;
ec6a6fbe
AK
2073*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2074$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2075 { (exit 1); exit 1; }; };;
2076esac
ad6254c5 2077host=$ac_cv_host
7a197a62
AK
2078ac_save_IFS=$IFS; IFS='-'
2079set x $ac_cv_host
2080shift
2081host_cpu=$1
2082host_vendor=$2
2083shift; shift
2084# Remember, the first character of IFS is used to create $*,
2085# except with old shells:
2086host_os=$*
2087IFS=$ac_save_IFS
2088case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2089
2090
ec6a6fbe
AK
2091{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2092$as_echo_n "checking target system type... " >&6; }
ad6254c5 2093if test "${ac_cv_target+set}" = set; then
ec6a6fbe 2094 $as_echo_n "(cached) " >&6
ad6254c5 2095else
7a197a62
AK
2096 if test "x$target_alias" = x; then
2097 ac_cv_target=$ac_cv_host
2098else
2099 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec6a6fbe
AK
2100 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2101$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2102 { (exit 1); exit 1; }; }
7a197a62 2103fi
8ce0cbda 2104
ad6254c5 2105fi
ec6a6fbe
AK
2106{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2107$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2108case $ac_cv_target in
2109*-*-*) ;;
ec6a6fbe
AK
2110*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2111$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2112 { (exit 1); exit 1; }; };;
2113esac
ad6254c5 2114target=$ac_cv_target
7a197a62
AK
2115ac_save_IFS=$IFS; IFS='-'
2116set x $ac_cv_target
2117shift
2118target_cpu=$1
2119target_vendor=$2
2120shift; shift
2121# Remember, the first character of IFS is used to create $*,
2122# except with old shells:
2123target_os=$*
2124IFS=$ac_save_IFS
2125case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2126
8ce0cbda 2127
ad6254c5
AK
2128# The aliases save the names the user supplied, while $host etc.
2129# will get canonicalized.
2130test -n "$target_alias" &&
8ce0cbda
AK
2131 test "$program_prefix$program_suffix$program_transform_name" = \
2132 NONENONEs,x,x, &&
2133 program_prefix=${target_alias}-
2134
8ce0cbda
AK
2135case "$host_os" in
2136 linux*)
7f54ef36 2137 CFLAGS="$CFLAGS"
8ce0cbda
AK
2138 COPTIMISE_FLAG="-O2"
2139 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2140 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2141 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2142 LDDEPS="$LDDEPS .export.sym"
2143 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2144 LIB_SUFFIX=so
8ce0cbda
AK
2145 DEVMAPPER=yes
2146 ODIRECT=yes
d0191583 2147 DM_IOCTLS=yes
8ce0cbda 2148 SELINUX=yes
8b1a3214 2149 REALTIME=yes
8ce0cbda 2150 CLUSTER=internal
93bd259b 2151 FSADM=yes
d0191583 2152 ;;
8ce0cbda
AK
2153 darwin*)
2154 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2155 COPTIMISE_FLAG="-O2"
2156 CLDFLAGS="$CLDFLAGS"
2157 CLDWHOLEARCHIVE="-all_load"
2158 CLDNOWHOLEARCHIVE=
d0191583 2159 LIB_SUFFIX=dylib
a653923f 2160 DEVMAPPER=yes
8ce0cbda 2161 ODIRECT=no
d0191583 2162 DM_IOCTLS=no
8ce0cbda 2163 SELINUX=no
8b1a3214 2164 REALTIME=no
8ce0cbda 2165 CLUSTER=none
d0191583
JM
2166 FSADM=no
2167 ;;
8ce0cbda
AK
2168esac
2169
80992638 2170################################################################################
ec6a6fbe
AK
2171{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2172$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2173if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2174 $as_echo_n "(cached) " >&6
5951ef33
AK
2175else
2176 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2177 for ac_i in 1 2 3 4 5 6 7; do
2178 ac_script="$ac_script$as_nl$ac_script"
2179 done
ec6a6fbe 2180 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2181 $as_unset ac_script || ac_script=
ec6a6fbe 2182 if test -z "$SED"; then
5951ef33 2183 ac_path_SED_found=false
ec6a6fbe
AK
2184 # Loop through the user's path and test for each of PROGNAME-LIST
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2186for as_dir in $PATH
2187do
2188 IFS=$as_save_IFS
2189 test -z "$as_dir" && as_dir=.
2190 for ac_prog in sed gsed; do
ec6a6fbe
AK
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2193 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2194# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2195 # Check for GNU $ac_path_SED
2196case `"$ac_path_SED" --version 2>&1` in
2197*GNU*)
2198 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2199*)
2200 ac_count=0
ec6a6fbe 2201 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2202 while :
2203 do
2204 cat "conftest.in" "conftest.in" >"conftest.tmp"
2205 mv "conftest.tmp" "conftest.in"
2206 cp "conftest.in" "conftest.nl"
ec6a6fbe 2207 $as_echo '' >> "conftest.nl"
5951ef33
AK
2208 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2210 ac_count=`expr $ac_count + 1`
2211 if test $ac_count -gt ${ac_path_SED_max-0}; then
2212 # Best one so far, save it but keep looking for a better one
2213 ac_cv_path_SED="$ac_path_SED"
2214 ac_path_SED_max=$ac_count
2215 fi
2216 # 10*(2^10) chars as input seems more than enough
2217 test $ac_count -gt 10 && break
2218 done
2219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2220esac
2221
ec6a6fbe
AK
2222 $ac_path_SED_found && break 3
2223 done
5951ef33
AK
2224 done
2225done
5951ef33 2226IFS=$as_save_IFS
ec6a6fbe
AK
2227 if test -z "$ac_cv_path_SED"; then
2228 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2229$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2230 { (exit 1); exit 1; }; }
ec6a6fbe 2231 fi
5951ef33
AK
2232else
2233 ac_cv_path_SED=$SED
2234fi
2235
2236fi
ec6a6fbe
AK
2237{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2238$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2239 SED="$ac_cv_path_SED"
2240 rm -f conftest.sed
2241
ad6254c5 2242for ac_prog in gawk mawk nawk awk
795ca3e5 2243do
ad6254c5 2244 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2245set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2246{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2247$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2248if test "${ac_cv_prog_AWK+set}" = set; then
ec6a6fbe 2249 $as_echo_n "(cached) " >&6
795ca3e5
AK
2250else
2251 if test -n "$AWK"; then
2252 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2253else
ad6254c5
AK
2254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255for as_dir in $PATH
2256do
2257 IFS=$as_save_IFS
2258 test -z "$as_dir" && as_dir=.
2259 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2261 ac_cv_prog_AWK="$ac_prog"
ec6a6fbe 2262 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2263 break 2
2264 fi
2265done
2266done
7a197a62 2267IFS=$as_save_IFS
ad6254c5 2268
795ca3e5
AK
2269fi
2270fi
ad6254c5 2271AWK=$ac_cv_prog_AWK
795ca3e5 2272if test -n "$AWK"; then
ec6a6fbe
AK
2273 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2274$as_echo "$AWK" >&6; }
795ca3e5 2275else
ec6a6fbe
AK
2276 { $as_echo "$as_me:$LINENO: result: no" >&5
2277$as_echo "no" >&6; }
795ca3e5
AK
2278fi
2279
7a197a62 2280
ad6254c5
AK
2281 test -n "$AWK" && break
2282done
2283
2284ac_ext=c
2285ac_cpp='$CPP $CPPFLAGS'
2286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2288ac_compiler_gnu=$ac_cv_c_compiler_gnu
2289if test -n "$ac_tool_prefix"; then
2290 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2291set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2292{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2293$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2294if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2295 $as_echo_n "(cached) " >&6
ad6254c5
AK
2296else
2297 if test -n "$CC"; then
2298 ac_cv_prog_CC="$CC" # Let the user override the test.
2299else
2300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301for as_dir in $PATH
2302do
2303 IFS=$as_save_IFS
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2307 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2308 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2309 break 2
2310 fi
2311done
8106cdd5 2312done
7a197a62 2313IFS=$as_save_IFS
8106cdd5 2314
ad6254c5
AK
2315fi
2316fi
2317CC=$ac_cv_prog_CC
2318if test -n "$CC"; then
ec6a6fbe
AK
2319 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2320$as_echo "$CC" >&6; }
ad6254c5 2321else
ec6a6fbe
AK
2322 { $as_echo "$as_me:$LINENO: result: no" >&5
2323$as_echo "no" >&6; }
ad6254c5
AK
2324fi
2325
7a197a62 2326
ad6254c5
AK
2327fi
2328if test -z "$ac_cv_prog_CC"; then
2329 ac_ct_CC=$CC
2330 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2331set dummy gcc; ac_word=$2
ec6a6fbe
AK
2332{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2333$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2334if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2335 $as_echo_n "(cached) " >&6
ad6254c5
AK
2336else
2337 if test -n "$ac_ct_CC"; then
2338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2339else
2340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341for as_dir in $PATH
2342do
2343 IFS=$as_save_IFS
2344 test -z "$as_dir" && as_dir=.
2345 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2347 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2348 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2349 break 2
2350 fi
2351done
2352done
7a197a62 2353IFS=$as_save_IFS
ad6254c5
AK
2354
2355fi
2356fi
2357ac_ct_CC=$ac_cv_prog_ac_ct_CC
2358if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2359 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2360$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2361else
ec6a6fbe
AK
2362 { $as_echo "$as_me:$LINENO: result: no" >&5
2363$as_echo "no" >&6; }
ad6254c5
AK
2364fi
2365
7a197a62
AK
2366 if test "x$ac_ct_CC" = x; then
2367 CC=""
2368 else
2369 case $cross_compiling:$ac_tool_warned in
2370yes:)
ec6a6fbe
AK
2371{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2373ac_tool_warned=yes ;;
2374esac
2375 CC=$ac_ct_CC
2376 fi
ad6254c5
AK
2377else
2378 CC="$ac_cv_prog_CC"
2379fi
2380
2381if test -z "$CC"; then
7a197a62
AK
2382 if test -n "$ac_tool_prefix"; then
2383 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2384set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2385{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2386$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2387if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2388 $as_echo_n "(cached) " >&6
8106cdd5
AK
2389else
2390 if test -n "$CC"; then
2391 ac_cv_prog_CC="$CC" # Let the user override the test.
2392else
ad6254c5
AK
2393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394for as_dir in $PATH
2395do
2396 IFS=$as_save_IFS
2397 test -z "$as_dir" && as_dir=.
2398 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2400 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec6a6fbe 2401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2402 break 2
2403 fi
2404done
2405done
7a197a62 2406IFS=$as_save_IFS
ad6254c5 2407
8106cdd5
AK
2408fi
2409fi
ad6254c5 2410CC=$ac_cv_prog_CC
8106cdd5 2411if test -n "$CC"; then
ec6a6fbe
AK
2412 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2413$as_echo "$CC" >&6; }
ad6254c5 2414else
ec6a6fbe
AK
2415 { $as_echo "$as_me:$LINENO: result: no" >&5
2416$as_echo "no" >&6; }
ad6254c5
AK
2417fi
2418
8106cdd5 2419
7a197a62 2420 fi
ad6254c5 2421fi
795ca3e5
AK
2422if test -z "$CC"; then
2423 # Extract the first word of "cc", so it can be a program name with args.
2424set dummy cc; ac_word=$2
ec6a6fbe
AK
2425{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2426$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2427if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2428 $as_echo_n "(cached) " >&6
795ca3e5
AK
2429else
2430 if test -n "$CC"; then
2431 ac_cv_prog_CC="$CC" # Let the user override the test.
2432else
795ca3e5 2433 ac_prog_rejected=no
ad6254c5
AK
2434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435for as_dir in $PATH
2436do
2437 IFS=$as_save_IFS
2438 test -z "$as_dir" && as_dir=.
2439 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2441 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2442 ac_prog_rejected=yes
2443 continue
2444 fi
2445 ac_cv_prog_CC="cc"
ec6a6fbe 2446 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2447 break 2
2448 fi
2449done
2450done
7a197a62 2451IFS=$as_save_IFS
ad6254c5 2452
795ca3e5
AK
2453if test $ac_prog_rejected = yes; then
2454 # We found a bogon in the path, so make sure we never use it.
2455 set dummy $ac_cv_prog_CC
2456 shift
ad6254c5 2457 if test $# != 0; then
795ca3e5
AK
2458 # We chose a different compiler from the bogus one.
2459 # However, it has the same basename, so the bogon will be chosen
2460 # first if we set CC to just the basename; use the full file name.
2461 shift
ad6254c5 2462 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2463 fi
2464fi
2465fi
2466fi
ad6254c5 2467CC=$ac_cv_prog_CC
795ca3e5 2468if test -n "$CC"; then
ec6a6fbe
AK
2469 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2470$as_echo "$CC" >&6; }
795ca3e5 2471else
ec6a6fbe
AK
2472 { $as_echo "$as_me:$LINENO: result: no" >&5
2473$as_echo "no" >&6; }
795ca3e5
AK
2474fi
2475
7a197a62 2476
ad6254c5
AK
2477fi
2478if test -z "$CC"; then
2479 if test -n "$ac_tool_prefix"; then
7a197a62 2480 for ac_prog in cl.exe
ad6254c5
AK
2481 do
2482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2483set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2484{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2485$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2486if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2487 $as_echo_n "(cached) " >&6
795ca3e5
AK
2488else
2489 if test -n "$CC"; then
2490 ac_cv_prog_CC="$CC" # Let the user override the test.
2491else
ad6254c5
AK
2492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493for as_dir in $PATH
2494do
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2499 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2500 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2501 break 2
2502 fi
2503done
2504done
7a197a62 2505IFS=$as_save_IFS
ad6254c5 2506
795ca3e5
AK
2507fi
2508fi
ad6254c5 2509CC=$ac_cv_prog_CC
795ca3e5 2510if test -n "$CC"; then
ec6a6fbe
AK
2511 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2512$as_echo "$CC" >&6; }
795ca3e5 2513else
ec6a6fbe
AK
2514 { $as_echo "$as_me:$LINENO: result: no" >&5
2515$as_echo "no" >&6; }
795ca3e5 2516fi
ad6254c5 2517
7a197a62 2518
ad6254c5
AK
2519 test -n "$CC" && break
2520 done
2521fi
2522if test -z "$CC"; then
2523 ac_ct_CC=$CC
7a197a62 2524 for ac_prog in cl.exe
ad6254c5
AK
2525do
2526 # Extract the first word of "$ac_prog", so it can be a program name with args.
2527set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2528{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2529$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2530if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2531 $as_echo_n "(cached) " >&6
ad6254c5
AK
2532else
2533 if test -n "$ac_ct_CC"; then
2534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2535else
2536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537for as_dir in $PATH
2538do
2539 IFS=$as_save_IFS
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2543 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2544 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2545 break 2
795ca3e5 2546 fi
ad6254c5
AK
2547done
2548done
7a197a62 2549IFS=$as_save_IFS
ad6254c5
AK
2550
2551fi
2552fi
2553ac_ct_CC=$ac_cv_prog_ac_ct_CC
2554if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2555 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2556$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2557else
ec6a6fbe
AK
2558 { $as_echo "$as_me:$LINENO: result: no" >&5
2559$as_echo "no" >&6; }
795ca3e5
AK
2560fi
2561
7a197a62 2562
ad6254c5
AK
2563 test -n "$ac_ct_CC" && break
2564done
795ca3e5 2565
7a197a62
AK
2566 if test "x$ac_ct_CC" = x; then
2567 CC=""
2568 else
2569 case $cross_compiling:$ac_tool_warned in
2570yes:)
ec6a6fbe
AK
2571{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2572$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2573ac_tool_warned=yes ;;
2574esac
2575 CC=$ac_ct_CC
2576 fi
ad6254c5
AK
2577fi
2578
2579fi
2580
2581
ec6a6fbe
AK
2582test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2584{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2585See \`config.log' for more details." >&5
ec6a6fbe 2586$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2587See \`config.log' for more details." >&2;}
ec6a6fbe 2588 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2589
2590# Provide some information about the compiler.
ec6a6fbe
AK
2591$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2592set X $ac_compile
2593ac_compiler=$2
7a197a62
AK
2594{ (ac_try="$ac_compiler --version >&5"
2595case "(($ac_try" in
2596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597 *) ac_try_echo=$ac_try;;
2598esac
ec6a6fbe
AK
2599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2600$as_echo "$ac_try_echo") >&5
7a197a62 2601 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2602 ac_status=$?
ec6a6fbe 2603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2604 (exit $ac_status); }
7a197a62
AK
2605{ (ac_try="$ac_compiler -v >&5"
2606case "(($ac_try" in
2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2609esac
ec6a6fbe
AK
2610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2611$as_echo "$ac_try_echo") >&5
7a197a62 2612 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2613 ac_status=$?
ec6a6fbe 2614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2615 (exit $ac_status); }
7a197a62
AK
2616{ (ac_try="$ac_compiler -V >&5"
2617case "(($ac_try" in
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2620esac
ec6a6fbe
AK
2621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2622$as_echo "$ac_try_echo") >&5
7a197a62 2623 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2624 ac_status=$?
ec6a6fbe 2625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2626 (exit $ac_status); }
2627
2628cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2629/* confdefs.h. */
2630_ACEOF
2631cat confdefs.h >>conftest.$ac_ext
2632cat >>conftest.$ac_ext <<_ACEOF
2633/* end confdefs.h. */
2634
2635int
2636main ()
2637{
2638
2639 ;
2640 return 0;
2641}
2642_ACEOF
2643ac_clean_files_save=$ac_clean_files
ec6a6fbe 2644ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2645# Try to create an executable without -o first, disregard a.out.
2646# It will help us diagnose broken compilers, and finding out an intuition
2647# of exeext.
ec6a6fbe
AK
2648{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2649$as_echo_n "checking for C compiler default output file name... " >&6; }
2650ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2651
2652# The possible output files:
2653ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2654
7a197a62
AK
2655ac_rmfiles=
2656for ac_file in $ac_files
2657do
2658 case $ac_file in
ec6a6fbe 2659 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2660 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2661 esac
2662done
2663rm -f $ac_rmfiles
2664
2665if { (ac_try="$ac_link_default"
2666case "(($ac_try" in
2667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2668 *) ac_try_echo=$ac_try;;
2669esac
ec6a6fbe
AK
2670eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2671$as_echo "$ac_try_echo") >&5
7a197a62 2672 (eval "$ac_link_default") 2>&5
ad6254c5 2673 ac_status=$?
ec6a6fbe 2674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2675 (exit $ac_status); }; then
7a197a62
AK
2676 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2677# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2678# in a Makefile. We should not override ac_cv_exeext if it was cached,
2679# so that the user can short-circuit this test for compilers unknown to
2680# Autoconf.
25fbec5b 2681for ac_file in $ac_files ''
ad6254c5
AK
2682do
2683 test -f "$ac_file" || continue
2684 case $ac_file in
ec6a6fbe 2685 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2686 ;;
ad6254c5 2687 [ab].out )
8a2fc586
AK
2688 # We found the default executable, but exeext='' is most
2689 # certainly right.
2690 break;;
ad6254c5 2691 *.* )
7a197a62
AK
2692 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2693 then :; else
2694 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2695 fi
2696 # We set ac_cv_exeext here because the later test for it is not
2697 # safe: cross compilers may not add the suffix if given an `-o'
2698 # argument, so we may need to know it at that point already.
2699 # Even if this section looks crufty: it has the advantage of
2700 # actually working.
8a2fc586 2701 break;;
ad6254c5 2702 * )
8a2fc586 2703 break;;
ad6254c5
AK
2704 esac
2705done
7a197a62
AK
2706test "$ac_cv_exeext" = no && ac_cv_exeext=
2707
ad6254c5 2708else
25fbec5b
AK
2709 ac_file=''
2710fi
2711
ec6a6fbe
AK
2712{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2713$as_echo "$ac_file" >&6; }
25fbec5b 2714if test -z "$ac_file"; then
ec6a6fbe 2715 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2716sed 's/^/| /' conftest.$ac_ext >&5
2717
ec6a6fbe
AK
2718{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2719$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2720{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2721See \`config.log' for more details." >&5
ec6a6fbe 2722$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2723See \`config.log' for more details." >&2;}
ec6a6fbe 2724 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2725fi
2726
2727ac_exeext=$ac_cv_exeext
ad6254c5 2728
7a197a62 2729# Check that the compiler produces executables we can run. If not, either
ad6254c5 2730# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2731{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2732$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2733# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2734# If not cross compiling, check that we can run a simple program.
2735if test "$cross_compiling" != yes; then
2736 if { ac_try='./$ac_file'
7a197a62
AK
2737 { (case "(($ac_try" in
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2740esac
ec6a6fbe
AK
2741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2742$as_echo "$ac_try_echo") >&5
7a197a62 2743 (eval "$ac_try") 2>&5
ad6254c5 2744 ac_status=$?
ec6a6fbe 2745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2746 (exit $ac_status); }; }; then
2747 cross_compiling=no
795ca3e5 2748 else
ad6254c5
AK
2749 if test "$cross_compiling" = maybe; then
2750 cross_compiling=yes
2751 else
ec6a6fbe
AK
2752 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2753$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2754{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2755If you meant to cross compile, use \`--host'.
2756See \`config.log' for more details." >&5
ec6a6fbe 2757$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2758If you meant to cross compile, use \`--host'.
2759See \`config.log' for more details." >&2;}
ec6a6fbe 2760 { (exit 1); exit 1; }; }; }
ad6254c5 2761 fi
795ca3e5 2762 fi
80992638 2763fi
ec6a6fbe
AK
2764{ $as_echo "$as_me:$LINENO: result: yes" >&5
2765$as_echo "yes" >&6; }
ad6254c5 2766
ec6a6fbe 2767rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2768ac_clean_files=$ac_clean_files_save
7a197a62 2769# Check that the compiler produces executables we can run. If not, either
ad6254c5 2770# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2771{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2772$as_echo_n "checking whether we are cross compiling... " >&6; }
2773{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2774$as_echo "$cross_compiling" >&6; }
7a197a62 2775
ec6a6fbe
AK
2776{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2777$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2778if { (ac_try="$ac_link"
2779case "(($ac_try" in
2780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781 *) ac_try_echo=$ac_try;;
2782esac
ec6a6fbe
AK
2783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2784$as_echo "$ac_try_echo") >&5
7a197a62 2785 (eval "$ac_link") 2>&5
ad6254c5 2786 ac_status=$?
ec6a6fbe 2787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2788 (exit $ac_status); }; then
2789 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2790# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2791# work properly (i.e., refer to `conftest.exe'), while it won't with
2792# `rm'.
2793for ac_file in conftest.exe conftest conftest.*; do
2794 test -f "$ac_file" || continue
2795 case $ac_file in
ec6a6fbe 2796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2797 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2798 break;;
ad6254c5
AK
2799 * ) break;;
2800 esac
2801done
80992638 2802else
ec6a6fbe
AK
2803 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2804$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2805{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2806See \`config.log' for more details." >&5
ec6a6fbe 2807$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2808See \`config.log' for more details." >&2;}
ec6a6fbe 2809 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2810fi
2811
2812rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2813{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2814$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2815
2816rm -f conftest.$ac_ext
2817EXEEXT=$ac_cv_exeext
2818ac_exeext=$EXEEXT
ec6a6fbe
AK
2819{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2820$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2821if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2822 $as_echo_n "(cached) " >&6
795ca3e5 2823else
ad6254c5 2824 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2825/* confdefs.h. */
2826_ACEOF
2827cat confdefs.h >>conftest.$ac_ext
2828cat >>conftest.$ac_ext <<_ACEOF
2829/* end confdefs.h. */
2830
2831int
2832main ()
2833{
2834
2835 ;
2836 return 0;
2837}
2838_ACEOF
2839rm -f conftest.o conftest.obj
7a197a62
AK
2840if { (ac_try="$ac_compile"
2841case "(($ac_try" in
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2844esac
ec6a6fbe
AK
2845eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2846$as_echo "$ac_try_echo") >&5
7a197a62 2847 (eval "$ac_compile") 2>&5
ad6254c5 2848 ac_status=$?
ec6a6fbe 2849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2850 (exit $ac_status); }; then
7a197a62
AK
2851 for ac_file in conftest.o conftest.obj conftest.*; do
2852 test -f "$ac_file" || continue;
ad6254c5 2853 case $ac_file in
ec6a6fbe 2854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2855 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2856 break;;
2857 esac
2858done
2859else
ec6a6fbe 2860 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2861sed 's/^/| /' conftest.$ac_ext >&5
2862
ec6a6fbe
AK
2863{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2864$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2865{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2866See \`config.log' for more details." >&5
ec6a6fbe 2867$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 2868See \`config.log' for more details." >&2;}
ec6a6fbe 2869 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2870fi
2871
2872rm -f conftest.$ac_cv_objext conftest.$ac_ext
2873fi
ec6a6fbe
AK
2874{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2875$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
2876OBJEXT=$ac_cv_objext
2877ac_objext=$OBJEXT
ec6a6fbe
AK
2878{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2879$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 2880if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 2881 $as_echo_n "(cached) " >&6
ad6254c5
AK
2882else
2883 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2884/* confdefs.h. */
2885_ACEOF
2886cat confdefs.h >>conftest.$ac_ext
2887cat >>conftest.$ac_ext <<_ACEOF
2888/* end confdefs.h. */
2889
2890int
2891main ()
2892{
2893#ifndef __GNUC__
2894 choke me
2895#endif
80992638 2896
ad6254c5
AK
2897 ;
2898 return 0;
2899}
2900_ACEOF
2901rm -f conftest.$ac_objext
7a197a62
AK
2902if { (ac_try="$ac_compile"
2903case "(($ac_try" in
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2906esac
ec6a6fbe
AK
2907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2908$as_echo "$ac_try_echo") >&5
7a197a62 2909 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2910 ac_status=$?
8a2fc586
AK
2911 grep -v '^ *+' conftest.er1 >conftest.err
2912 rm -f conftest.er1
2913 cat conftest.err >&5
ec6a6fbe 2914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2915 (exit $ac_status); } && {
2916 test -z "$ac_c_werror_flag" ||
2917 test ! -s conftest.err
2918 } && test -s conftest.$ac_objext; then
ad6254c5 2919 ac_compiler_gnu=yes
80992638 2920else
ec6a6fbe 2921 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2922sed 's/^/| /' conftest.$ac_ext >&5
2923
7a197a62 2924 ac_compiler_gnu=no
8106cdd5 2925fi
7a197a62
AK
2926
2927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2928ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 2929
ad6254c5 2930fi
ec6a6fbe
AK
2931{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2932$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2933if test $ac_compiler_gnu = yes; then
2934 GCC=yes
2935else
2936 GCC=
2937fi
ad6254c5
AK
2938ac_test_CFLAGS=${CFLAGS+set}
2939ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
2940{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2941$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 2942if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 2943 $as_echo_n "(cached) " >&6
795ca3e5 2944else
7a197a62
AK
2945 ac_save_c_werror_flag=$ac_c_werror_flag
2946 ac_c_werror_flag=yes
2947 ac_cv_prog_cc_g=no
2948 CFLAGS="-g"
2949 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2950/* confdefs.h. */
2951_ACEOF
2952cat confdefs.h >>conftest.$ac_ext
2953cat >>conftest.$ac_ext <<_ACEOF
2954/* end confdefs.h. */
2955
2956int
2957main ()
2958{
2959
2960 ;
2961 return 0;
2962}
2963_ACEOF
2964rm -f conftest.$ac_objext
7a197a62
AK
2965if { (ac_try="$ac_compile"
2966case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2969esac
ec6a6fbe
AK
2970eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2971$as_echo "$ac_try_echo") >&5
7a197a62 2972 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2973 ac_status=$?
8a2fc586
AK
2974 grep -v '^ *+' conftest.er1 >conftest.err
2975 rm -f conftest.er1
2976 cat conftest.err >&5
ec6a6fbe 2977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2978 (exit $ac_status); } && {
2979 test -z "$ac_c_werror_flag" ||
2980 test ! -s conftest.err
2981 } && test -s conftest.$ac_objext; then
7a197a62
AK
2982 ac_cv_prog_cc_g=yes
2983else
ec6a6fbe 2984 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
2985sed 's/^/| /' conftest.$ac_ext >&5
2986
2987 CFLAGS=""
2988 cat >conftest.$ac_ext <<_ACEOF
2989/* confdefs.h. */
2990_ACEOF
2991cat confdefs.h >>conftest.$ac_ext
2992cat >>conftest.$ac_ext <<_ACEOF
2993/* end confdefs.h. */
2994
2995int
2996main ()
2997{
2998
2999 ;
3000 return 0;
3001}
3002_ACEOF
3003rm -f conftest.$ac_objext
3004if { (ac_try="$ac_compile"
3005case "(($ac_try" in
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3008esac
ec6a6fbe
AK
3009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3010$as_echo "$ac_try_echo") >&5
7a197a62 3011 (eval "$ac_compile") 2>conftest.er1
8a2fc586 3012 ac_status=$?
7a197a62
AK
3013 grep -v '^ *+' conftest.er1 >conftest.err
3014 rm -f conftest.er1
3015 cat conftest.err >&5
ec6a6fbe 3016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3017 (exit $ac_status); } && {
3018 test -z "$ac_c_werror_flag" ||
3019 test ! -s conftest.err
3020 } && test -s conftest.$ac_objext; then
7a197a62
AK
3021 :
3022else
ec6a6fbe 3023 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3024sed 's/^/| /' conftest.$ac_ext >&5
3025
3026 ac_c_werror_flag=$ac_save_c_werror_flag
3027 CFLAGS="-g"
3028 cat >conftest.$ac_ext <<_ACEOF
3029/* confdefs.h. */
3030_ACEOF
3031cat confdefs.h >>conftest.$ac_ext
3032cat >>conftest.$ac_ext <<_ACEOF
3033/* end confdefs.h. */
3034
3035int
3036main ()
3037{
3038
3039 ;
3040 return 0;
3041}
3042_ACEOF
3043rm -f conftest.$ac_objext
3044if { (ac_try="$ac_compile"
3045case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048esac
ec6a6fbe
AK
3049eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3050$as_echo "$ac_try_echo") >&5
7a197a62 3051 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3052 ac_status=$?
7a197a62
AK
3053 grep -v '^ *+' conftest.er1 >conftest.err
3054 rm -f conftest.er1
3055 cat conftest.err >&5
ec6a6fbe 3056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3057 (exit $ac_status); } && {
3058 test -z "$ac_c_werror_flag" ||
3059 test ! -s conftest.err
3060 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3061 ac_cv_prog_cc_g=yes
3062else
ec6a6fbe 3063 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3064sed 's/^/| /' conftest.$ac_ext >&5
80992638 3065
7a197a62
AK
3066
3067fi
3068
3069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3070fi
3071
3072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3073fi
7a197a62
AK
3074
3075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3076 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3077fi
ec6a6fbe
AK
3078{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3079$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3080if test "$ac_test_CFLAGS" = set; then
ad6254c5 3081 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3082elif test $ac_cv_prog_cc_g = yes; then
3083 if test "$GCC" = yes; then
3084 CFLAGS="-g -O2"
3085 else
3086 CFLAGS="-g"
3087 fi
3088else
3089 if test "$GCC" = yes; then
3090 CFLAGS="-O2"
3091 else
3092 CFLAGS=
3093 fi
3094fi
ec6a6fbe
AK
3095{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3096$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3097if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3098 $as_echo_n "(cached) " >&6
ad6254c5 3099else
7a197a62 3100 ac_cv_prog_cc_c89=no
ad6254c5
AK
3101ac_save_CC=$CC
3102cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3103/* confdefs.h. */
3104_ACEOF
3105cat confdefs.h >>conftest.$ac_ext
3106cat >>conftest.$ac_ext <<_ACEOF
3107/* end confdefs.h. */
3108#include <stdarg.h>
3109#include <stdio.h>
3110#include <sys/types.h>
3111#include <sys/stat.h>
3112/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3113struct buf { int x; };
3114FILE * (*rcsopen) (struct buf *, struct stat *, int);
3115static char *e (p, i)
3116 char **p;
3117 int i;
3118{
3119 return p[i];
3120}
3121static char *f (char * (*g) (char **, int), char **p, ...)
3122{
3123 char *s;
3124 va_list v;
3125 va_start (v,p);
3126 s = g (p, va_arg (v,int));
3127 va_end (v);
3128 return s;
3129}
8a2fc586
AK
3130
3131/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3132 function prototypes and stuff, but not '\xHH' hex character constants.
3133 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3134 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3135 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3136 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3137 that's true only with -std. */
8a2fc586
AK
3138int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3139
7a197a62
AK
3140/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3141 inside strings and character constants. */
3142#define FOO(x) 'x'
3143int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3144
ad6254c5
AK
3145int test (int i, double x);
3146struct s1 {int (*f) (int a);};
3147struct s2 {int (*f) (double a);};
3148int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3149int argc;
3150char **argv;
3151int
3152main ()
3153{
3154return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3155 ;
3156 return 0;
3157}
3158_ACEOF
7a197a62
AK
3159for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3160 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3161do
3162 CC="$ac_save_CC $ac_arg"
3163 rm -f conftest.$ac_objext
7a197a62
AK
3164if { (ac_try="$ac_compile"
3165case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168esac
ec6a6fbe
AK
3169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3170$as_echo "$ac_try_echo") >&5
7a197a62 3171 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3172 ac_status=$?
8a2fc586
AK
3173 grep -v '^ *+' conftest.er1 >conftest.err
3174 rm -f conftest.er1
3175 cat conftest.err >&5
ec6a6fbe 3176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3177 (exit $ac_status); } && {
3178 test -z "$ac_c_werror_flag" ||
3179 test ! -s conftest.err
3180 } && test -s conftest.$ac_objext; then
7a197a62 3181 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3182else
ec6a6fbe 3183 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3184sed 's/^/| /' conftest.$ac_ext >&5
3185
7a197a62 3186
ad6254c5 3187fi
7a197a62
AK
3188
3189rm -f core conftest.err conftest.$ac_objext
3190 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3191done
7a197a62 3192rm -f conftest.$ac_ext
ad6254c5
AK
3193CC=$ac_save_CC
3194
3195fi
7a197a62
AK
3196# AC_CACHE_VAL
3197case "x$ac_cv_prog_cc_c89" in
3198 x)
ec6a6fbe
AK
3199 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3200$as_echo "none needed" >&6; } ;;
7a197a62 3201 xno)
ec6a6fbe
AK
3202 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3203$as_echo "unsupported" >&6; } ;;
ad6254c5 3204 *)
7a197a62 3205 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3206 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3207$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3208esac
3209
ad6254c5 3210
ad6254c5
AK
3211ac_ext=c
3212ac_cpp='$CPP $CPPFLAGS'
3213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3216
d0191583
JM
3217
3218
3219ac_ext=c
3220ac_cpp='$CPP $CPPFLAGS'
3221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3223ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3224{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3225$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3226# On Suns, sometimes $CPP names a directory.
3227if test -n "$CPP" && test -d "$CPP"; then
3228 CPP=
3229fi
3230if test -z "$CPP"; then
3231 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3232 $as_echo_n "(cached) " >&6
ad6254c5 3233else
d0191583
JM
3234 # Double quotes because CPP needs to be expanded
3235 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3236 do
3237 ac_preproc_ok=false
3238for ac_c_preproc_warn_flag in '' yes
ad6254c5 3239do
d0191583
JM
3240 # Use a header file that comes with gcc, so configuring glibc
3241 # with a fresh cross-compiler works.
3242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3243 # <limits.h> exists even on freestanding compilers.
3244 # On the NeXT, cc -E runs the code through the compiler's parser,
3245 # not just through cpp. "Syntax error" is here to catch this case.
3246 cat >conftest.$ac_ext <<_ACEOF
3247/* confdefs.h. */
3248_ACEOF
3249cat confdefs.h >>conftest.$ac_ext
3250cat >>conftest.$ac_ext <<_ACEOF
3251/* end confdefs.h. */
3252#ifdef __STDC__
3253# include <limits.h>
3254#else
3255# include <assert.h>
3256#endif
3257 Syntax error
3258_ACEOF
3259if { (ac_try="$ac_cpp conftest.$ac_ext"
3260case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
ad6254c5 3263esac
ec6a6fbe
AK
3264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3265$as_echo "$ac_try_echo") >&5
d0191583
JM
3266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3267 ac_status=$?
3268 grep -v '^ *+' conftest.er1 >conftest.err
3269 rm -f conftest.er1
3270 cat conftest.err >&5
ec6a6fbe 3271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3272 (exit $ac_status); } >/dev/null && {
3273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3274 test ! -s conftest.err
3275 }; then
3276 :
3277else
ec6a6fbe 3278 $as_echo "$as_me: failed program was:" >&5
d0191583 3279sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3280
d0191583
JM
3281 # Broken: fails on valid input.
3282continue
795ca3e5 3283fi
795ca3e5 3284
d0191583 3285rm -f conftest.err conftest.$ac_ext
795ca3e5 3286
d0191583
JM
3287 # OK, works on sane cases. Now check whether nonexistent headers
3288 # can be detected and how.
3289 cat >conftest.$ac_ext <<_ACEOF
3290/* confdefs.h. */
3291_ACEOF
3292cat confdefs.h >>conftest.$ac_ext
3293cat >>conftest.$ac_ext <<_ACEOF
3294/* end confdefs.h. */
3295#include <ac_nonexistent.h>
3296_ACEOF
3297if { (ac_try="$ac_cpp conftest.$ac_ext"
3298case "(($ac_try" in
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3301esac
ec6a6fbe
AK
3302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3303$as_echo "$ac_try_echo") >&5
d0191583
JM
3304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3305 ac_status=$?
3306 grep -v '^ *+' conftest.er1 >conftest.err
3307 rm -f conftest.er1
3308 cat conftest.err >&5
ec6a6fbe 3309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3310 (exit $ac_status); } >/dev/null && {
3311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3312 test ! -s conftest.err
3313 }; then
3314 # Broken: success on invalid input.
3315continue
3316else
ec6a6fbe 3317 $as_echo "$as_me: failed program was:" >&5
d0191583 3318sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3319
d0191583
JM
3320 # Passes both tests.
3321ac_preproc_ok=:
3322break
3323fi
795ca3e5 3324
d0191583
JM
3325rm -f conftest.err conftest.$ac_ext
3326
3327done
3328# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3329rm -f conftest.err conftest.$ac_ext
3330if $ac_preproc_ok; then
3331 break
795ca3e5
AK
3332fi
3333
d0191583
JM
3334 done
3335 ac_cv_prog_CPP=$CPP
3336
3337fi
3338 CPP=$ac_cv_prog_CPP
795ca3e5 3339else
d0191583
JM
3340 ac_cv_prog_CPP=$CPP
3341fi
ec6a6fbe
AK
3342{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3343$as_echo "$CPP" >&6; }
d0191583
JM
3344ac_preproc_ok=false
3345for ac_c_preproc_warn_flag in '' yes
3346do
3347 # Use a header file that comes with gcc, so configuring glibc
3348 # with a fresh cross-compiler works.
3349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3350 # <limits.h> exists even on freestanding compilers.
3351 # On the NeXT, cc -E runs the code through the compiler's parser,
3352 # not just through cpp. "Syntax error" is here to catch this case.
3353 cat >conftest.$ac_ext <<_ACEOF
3354/* confdefs.h. */
ad6254c5 3355_ACEOF
d0191583
JM
3356cat confdefs.h >>conftest.$ac_ext
3357cat >>conftest.$ac_ext <<_ACEOF
3358/* end confdefs.h. */
3359#ifdef __STDC__
3360# include <limits.h>
3361#else
3362# include <assert.h>
3363#endif
3364 Syntax error
3365_ACEOF
3366if { (ac_try="$ac_cpp conftest.$ac_ext"
3367case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
7a197a62 3370esac
ec6a6fbe
AK
3371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3372$as_echo "$ac_try_echo") >&5
d0191583
JM
3373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3374 ac_status=$?
3375 grep -v '^ *+' conftest.er1 >conftest.err
3376 rm -f conftest.er1
3377 cat conftest.err >&5
ec6a6fbe 3378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3379 (exit $ac_status); } >/dev/null && {
3380 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3381 test ! -s conftest.err
3382 }; then
3383 :
795ca3e5 3384else
ec6a6fbe 3385 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3386sed 's/^/| /' conftest.$ac_ext >&5
3387
3388 # Broken: fails on valid input.
3389continue
795ca3e5
AK
3390fi
3391
d0191583
JM
3392rm -f conftest.err conftest.$ac_ext
3393
3394 # OK, works on sane cases. Now check whether nonexistent headers
3395 # can be detected and how.
3396 cat >conftest.$ac_ext <<_ACEOF
3397/* confdefs.h. */
3398_ACEOF
3399cat confdefs.h >>conftest.$ac_ext
3400cat >>conftest.$ac_ext <<_ACEOF
3401/* end confdefs.h. */
3402#include <ac_nonexistent.h>
3403_ACEOF
3404if { (ac_try="$ac_cpp conftest.$ac_ext"
3405case "(($ac_try" in
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3408esac
ec6a6fbe
AK
3409eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3410$as_echo "$ac_try_echo") >&5
d0191583
JM
3411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3412 ac_status=$?
3413 grep -v '^ *+' conftest.er1 >conftest.err
3414 rm -f conftest.er1
3415 cat conftest.err >&5
ec6a6fbe 3416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3417 (exit $ac_status); } >/dev/null && {
3418 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3419 test ! -s conftest.err
3420 }; then
3421 # Broken: success on invalid input.
3422continue
795ca3e5 3423else
ec6a6fbe 3424 $as_echo "$as_me: failed program was:" >&5
d0191583 3425sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3426
d0191583
JM
3427 # Passes both tests.
3428ac_preproc_ok=:
3429break
795ca3e5 3430fi
d0191583
JM
3431
3432rm -f conftest.err conftest.$ac_ext
3433
3434done
3435# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3436rm -f conftest.err conftest.$ac_ext
3437if $ac_preproc_ok; then
3438 :
8106cdd5 3439else
ec6a6fbe
AK
3440 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3443See \`config.log' for more details." >&5
ec6a6fbe 3444$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3445See \`config.log' for more details." >&2;}
ec6a6fbe 3446 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3447fi
3448
d0191583
JM
3449ac_ext=c
3450ac_cpp='$CPP $CPPFLAGS'
3451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454
7a197a62 3455
ec6a6fbe
AK
3456{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3457$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3458if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3459 $as_echo_n "(cached) " >&6
ad6254c5 3460else
ec6a6fbe 3461 if test -z "$GREP"; then
d0191583 3462 ac_path_GREP_found=false
ec6a6fbe
AK
3463 # Loop through the user's path and test for each of PROGNAME-LIST
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3465for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3466do
3467 IFS=$as_save_IFS
3468 test -z "$as_dir" && as_dir=.
d0191583 3469 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3472 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3473# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3474 # Check for GNU $ac_path_GREP
3475case `"$ac_path_GREP" --version 2>&1` in
3476*GNU*)
3477 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3478*)
3479 ac_count=0
ec6a6fbe 3480 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3481 while :
3482 do
3483 cat "conftest.in" "conftest.in" >"conftest.tmp"
3484 mv "conftest.tmp" "conftest.in"
3485 cp "conftest.in" "conftest.nl"
ec6a6fbe 3486 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3487 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3488 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3489 ac_count=`expr $ac_count + 1`
3490 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3491 # Best one so far, save it but keep looking for a better one
3492 ac_cv_path_GREP="$ac_path_GREP"
3493 ac_path_GREP_max=$ac_count
3494 fi
3495 # 10*(2^10) chars as input seems more than enough
3496 test $ac_count -gt 10 && break
3497 done
3498 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3499esac
3500
ec6a6fbe
AK
3501 $ac_path_GREP_found && break 3
3502 done
d0191583 3503 done
ad6254c5 3504done
7a197a62 3505IFS=$as_save_IFS
ec6a6fbe
AK
3506 if test -z "$ac_cv_path_GREP"; then
3507 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3508$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3509 { (exit 1); exit 1; }; }
ec6a6fbe 3510 fi
80992638 3511else
d0191583 3512 ac_cv_path_GREP=$GREP
8106cdd5 3513fi
8106cdd5 3514
80992638 3515fi
ec6a6fbe
AK
3516{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3517$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3518 GREP="$ac_cv_path_GREP"
795ca3e5 3519
d0191583 3520
ec6a6fbe
AK
3521{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3522$as_echo_n "checking for egrep... " >&6; }
d0191583 3523if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3524 $as_echo_n "(cached) " >&6
8a2fc586 3525else
d0191583
JM
3526 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3527 then ac_cv_path_EGREP="$GREP -E"
3528 else
ec6a6fbe 3529 if test -z "$EGREP"; then
d0191583 3530 ac_path_EGREP_found=false
ec6a6fbe
AK
3531 # Loop through the user's path and test for each of PROGNAME-LIST
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3533for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3534do
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
d0191583 3537 for ac_prog in egrep; do
ec6a6fbe
AK
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3540 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3541# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3542 # Check for GNU $ac_path_EGREP
3543case `"$ac_path_EGREP" --version 2>&1` in
3544*GNU*)
3545 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3546*)
3547 ac_count=0
ec6a6fbe 3548 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3549 while :
3550 do
3551 cat "conftest.in" "conftest.in" >"conftest.tmp"
3552 mv "conftest.tmp" "conftest.in"
3553 cp "conftest.in" "conftest.nl"
ec6a6fbe 3554 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3555 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3556 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3557 ac_count=`expr $ac_count + 1`
3558 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3559 # Best one so far, save it but keep looking for a better one
3560 ac_cv_path_EGREP="$ac_path_EGREP"
3561 ac_path_EGREP_max=$ac_count
3562 fi
3563 # 10*(2^10) chars as input seems more than enough
3564 test $ac_count -gt 10 && break
3565 done
3566 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3567esac
8a2fc586 3568
ec6a6fbe
AK
3569 $ac_path_EGREP_found && break 3
3570 done
d0191583 3571 done
8a2fc586 3572done
7a197a62 3573IFS=$as_save_IFS
ec6a6fbe
AK
3574 if test -z "$ac_cv_path_EGREP"; then
3575 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3576$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3577 { (exit 1); exit 1; }; }
ec6a6fbe 3578 fi
d0191583
JM
3579else
3580 ac_cv_path_EGREP=$EGREP
3581fi
ad6254c5 3582
d0191583
JM
3583 fi
3584fi
ec6a6fbe
AK
3585{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3586$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3587 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3588
3589
d0191583 3590if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3591 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3592$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3593if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3594 $as_echo_n "(cached) " >&6
8106cdd5 3595else
d0191583 3596 ac_pattern="Autoconf.*'x'"
ad6254c5 3597 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3598/* confdefs.h. */
3599_ACEOF
3600cat confdefs.h >>conftest.$ac_ext
3601cat >>conftest.$ac_ext <<_ACEOF
3602/* end confdefs.h. */
d0191583
JM
3603#include <sgtty.h>
3604Autoconf TIOCGETP
ad6254c5 3605_ACEOF
d0191583
JM
3606if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3607 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3608 ac_cv_prog_gcc_traditional=yes
8106cdd5 3609else
d0191583 3610 ac_cv_prog_gcc_traditional=no
80992638 3611fi
d0191583 3612rm -f conftest*
ad6254c5 3613
8106cdd5 3614
d0191583
JM
3615 if test $ac_cv_prog_gcc_traditional = no; then
3616 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3617/* confdefs.h. */
3618_ACEOF
3619cat confdefs.h >>conftest.$ac_ext
3620cat >>conftest.$ac_ext <<_ACEOF
3621/* end confdefs.h. */
d0191583
JM
3622#include <termio.h>
3623Autoconf TCGETA
ad6254c5 3624_ACEOF
d0191583
JM
3625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3626 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3627 ac_cv_prog_gcc_traditional=yes
7a197a62 3628fi
d0191583 3629rm -f conftest*
795ca3e5 3630
d0191583 3631 fi
795ca3e5 3632fi
ec6a6fbe
AK
3633{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3634$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3635 if test $ac_cv_prog_gcc_traditional = yes; then
3636 CC="$CC -traditional"
3637 fi
795ca3e5
AK
3638fi
3639
d0191583
JM
3640# Find a good install program. We prefer a C program (faster),
3641# so one script is as good as another. But avoid the broken or
3642# incompatible versions:
3643# SysV /etc/install, /usr/sbin/install
3644# SunOS /usr/etc/install
3645# IRIX /sbin/install
3646# AIX /bin/install
3647# AmigaOS /C/install, which installs bootblocks on floppy discs
3648# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3649# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3650# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3651# OS/2's system install, which has a completely different semantic
3652# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3653# Reject install programs that cannot install multiple files.
3654{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3655$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3656if test -z "$INSTALL"; then
3657if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3658 $as_echo_n "(cached) " >&6
ad6254c5 3659else
d0191583
JM
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661for as_dir in $PATH
3662do
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
3665 # Account for people who put trailing slashes in PATH elements.
3666case $as_dir/ in
3667 ./ | .// | /cC/* | \
3668 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3669 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3670 /usr/ucb/* ) ;;
3671 *)
3672 # OSF1 and SCO ODT 3.0 have their own names for install.
3673 # Don't use installbsd from OSF since it installs stuff as root
3674 # by default.
3675 for ac_prog in ginstall scoinst install; do
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3678 if test $ac_prog = install &&
3679 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3680 # AIX install. It has an incompatible calling convention.
3681 :
3682 elif test $ac_prog = install &&
3683 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3684 # program-specific install script used by HP pwplus--don't use.
3685 :
3686 else
ec6a6fbe
AK
3687 rm -rf conftest.one conftest.two conftest.dir
3688 echo one > conftest.one
3689 echo two > conftest.two
3690 mkdir conftest.dir
3691 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3692 test -s conftest.one && test -s conftest.two &&
3693 test -s conftest.dir/conftest.one &&
3694 test -s conftest.dir/conftest.two
3695 then
3696 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3697 break 3
3698 fi
d0191583
JM
3699 fi
3700 fi
3701 done
3702 done
3703 ;;
3704esac
ec6a6fbe 3705
d0191583
JM
3706done
3707IFS=$as_save_IFS
80992638 3708
ec6a6fbe 3709rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3710
3711fi
3712 if test "${ac_cv_path_install+set}" = set; then
3713 INSTALL=$ac_cv_path_install
7a197a62 3714 else
d0191583
JM
3715 # As a last resort, use the slow shell script. Don't cache a
3716 # value for INSTALL within a source directory, because that will
3717 # break other packages using the cache if that directory is
3718 # removed, or if the value is a relative name.
3719 INSTALL=$ac_install_sh
7a197a62 3720 fi
d0191583 3721fi
ec6a6fbe
AK
3722{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3723$as_echo "$INSTALL" >&6; }
ad6254c5 3724
d0191583
JM
3725# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3726# It thinks the first close brace ends the variable substitution.
3727test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3728
d0191583 3729test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3730
d0191583
JM
3731test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3732
ec6a6fbe
AK
3733{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3734$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3735LN_S=$as_ln_s
3736if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3737 { $as_echo "$as_me:$LINENO: result: yes" >&5
3738$as_echo "yes" >&6; }
d0191583 3739else
ec6a6fbe
AK
3740 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3741$as_echo "no, using $LN_S" >&6; }
795ca3e5 3742fi
d0191583 3743
ec6a6fbe
AK
3744{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3745$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3746set x ${MAKE-make}
3747ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3748if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3749 $as_echo_n "(cached) " >&6
7a197a62 3750else
d0191583
JM
3751 cat >conftest.make <<\_ACEOF
3752SHELL = /bin/sh
3753all:
3754 @echo '@@@%%%=$(MAKE)=@@@%%%'
3755_ACEOF
3756# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3757case `${MAKE-make} -f conftest.make 2>/dev/null` in
3758 *@@@%%%=?*=@@@%%%*)
3759 eval ac_cv_prog_make_${ac_make}_set=yes;;
3760 *)
3761 eval ac_cv_prog_make_${ac_make}_set=no;;
3762esac
3763rm -f conftest.make
ad6254c5 3764fi
d0191583 3765if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3766 { $as_echo "$as_me:$LINENO: result: yes" >&5
3767$as_echo "yes" >&6; }
d0191583
JM
3768 SET_MAKE=
3769else
ec6a6fbe
AK
3770 { $as_echo "$as_me:$LINENO: result: no" >&5
3771$as_echo "no" >&6; }
d0191583 3772 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3773fi
8106cdd5 3774
ec6a6fbe
AK
3775{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3776$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3777if test -z "$MKDIR_P"; then
3778 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3779 $as_echo_n "(cached) " >&6
5556819a
AK
3780else
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3783do
3784 IFS=$as_save_IFS
3785 test -z "$as_dir" && as_dir=.
3786 for ac_prog in mkdir gmkdir; do
3787 for ac_exec_ext in '' $ac_executable_extensions; do
3788 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3789 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3790 'mkdir (GNU coreutils) '* | \
3791 'mkdir (coreutils) '* | \
3792 'mkdir (fileutils) '4.1*)
3793 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3794 break 3;;
3795 esac
3796 done
3797 done
3798done
3799IFS=$as_save_IFS
3800
3801fi
3802
3803 if test "${ac_cv_path_mkdir+set}" = set; then
3804 MKDIR_P="$ac_cv_path_mkdir -p"
3805 else
3806 # As a last resort, use the slow shell script. Don't cache a
3807 # value for MKDIR_P within a source directory, because that will
3808 # break other packages using the cache if that directory is
3809 # removed, or if the value is a relative name.
3810 test -d ./--version && rmdir ./--version
3811 MKDIR_P="$ac_install_sh -d"
3812 fi
3813fi
ec6a6fbe
AK
3814{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3815$as_echo "$MKDIR_P" >&6; }
5556819a 3816
d0191583
JM
3817if test -n "$ac_tool_prefix"; then
3818 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3819set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3820{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3821$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3822if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3823 $as_echo_n "(cached) " >&6
d0191583
JM
3824else
3825 if test -n "$RANLIB"; then
3826 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3827else
3828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829for as_dir in $PATH
3830do
3831 IFS=$as_save_IFS
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3835 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3836 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3837 break 2
3838 fi
3839done
3840done
3841IFS=$as_save_IFS
8106cdd5 3842
795ca3e5 3843fi
d0191583
JM
3844fi
3845RANLIB=$ac_cv_prog_RANLIB
3846if test -n "$RANLIB"; then
ec6a6fbe
AK
3847 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3848$as_echo "$RANLIB" >&6; }
d0191583 3849else
ec6a6fbe
AK
3850 { $as_echo "$as_me:$LINENO: result: no" >&5
3851$as_echo "no" >&6; }
d0191583
JM
3852fi
3853
8106cdd5 3854
ad6254c5 3855fi
d0191583
JM
3856if test -z "$ac_cv_prog_RANLIB"; then
3857 ac_ct_RANLIB=$RANLIB
3858 # Extract the first word of "ranlib", so it can be a program name with args.
3859set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3860{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3861$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3862if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 3863 $as_echo_n "(cached) " >&6
ad6254c5 3864else
d0191583
JM
3865 if test -n "$ac_ct_RANLIB"; then
3866 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3867else
3868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869for as_dir in $PATH
8106cdd5 3870do
d0191583
JM
3871 IFS=$as_save_IFS
3872 test -z "$as_dir" && as_dir=.
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3875 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 3876 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3877 break 2
3878 fi
3879done
3880done
3881IFS=$as_save_IFS
3882
3883fi
3884fi
3885ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3886if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
3887 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3888$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 3889else
ec6a6fbe
AK
3890 { $as_echo "$as_me:$LINENO: result: no" >&5
3891$as_echo "no" >&6; }
d0191583 3892fi
ad6254c5 3893
d0191583
JM
3894 if test "x$ac_ct_RANLIB" = x; then
3895 RANLIB=":"
3896 else
3897 case $cross_compiling:$ac_tool_warned in
3898yes:)
ec6a6fbe
AK
3899{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
3901ac_tool_warned=yes ;;
3902esac
3903 RANLIB=$ac_ct_RANLIB
3904 fi
3905else
3906 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 3907fi
7a197a62 3908
d0191583
JM
3909# Extract the first word of "cflow", so it can be a program name with args.
3910set dummy cflow; ac_word=$2
ec6a6fbe
AK
3911{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3912$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3913if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 3914 $as_echo_n "(cached) " >&6
d0191583
JM
3915else
3916 case $CFLOW_CMD in
3917 [\\/]* | ?:[\\/]*)
3918 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3919 ;;
3920 *)
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922for as_dir in $PATH
3923do
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3928 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 3929 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3930 break 2
3931 fi
3932done
3933done
3934IFS=$as_save_IFS
ad6254c5 3935
d0191583 3936 ;;
7a197a62 3937esac
d0191583
JM
3938fi
3939CFLOW_CMD=$ac_cv_path_CFLOW_CMD
3940if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
3941 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3942$as_echo "$CFLOW_CMD" >&6; }
80992638 3943else
ec6a6fbe
AK
3944 { $as_echo "$as_me:$LINENO: result: no" >&5
3945$as_echo "no" >&6; }
795ca3e5 3946fi
7a197a62 3947
ad6254c5 3948
d0191583
JM
3949# Extract the first word of "cscope", so it can be a program name with args.
3950set dummy cscope; ac_word=$2
ec6a6fbe
AK
3951{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3952$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3953if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 3954 $as_echo_n "(cached) " >&6
d0191583
JM
3955else
3956 case $CSCOPE_CMD in
3957 [\\/]* | ?:[\\/]*)
3958 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
3959 ;;
3960 *)
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962for as_dir in $PATH
3963do
3964 IFS=$as_save_IFS
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3968 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 3969 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3970 break 2
3971 fi
795ca3e5 3972done
d0191583
JM
3973done
3974IFS=$as_save_IFS
795ca3e5 3975
d0191583
JM
3976 ;;
3977esac
ad6254c5 3978fi
d0191583
JM
3979CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
3980if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
3981 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3982$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 3983else
ec6a6fbe
AK
3984 { $as_echo "$as_me:$LINENO: result: no" >&5
3985$as_echo "no" >&6; }
795ca3e5 3986fi
ad6254c5 3987
7a197a62 3988
ad6254c5 3989
d0191583
JM
3990################################################################################
3991
3992
3993
3994
3995
3996ac_header_dirent=no
3997for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
3998 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3999{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4000$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 4001if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4002 $as_echo_n "(cached) " >&6
d0191583 4003else
ad6254c5 4004 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4005/* confdefs.h. */
4006_ACEOF
4007cat confdefs.h >>conftest.$ac_ext
4008cat >>conftest.$ac_ext <<_ACEOF
4009/* end confdefs.h. */
d0191583
JM
4010#include <sys/types.h>
4011#include <$ac_hdr>
4012
4013int
4014main ()
4015{
4016if ((DIR *) 0)
4017return 0;
4018 ;
4019 return 0;
4020}
ad6254c5 4021_ACEOF
d0191583
JM
4022rm -f conftest.$ac_objext
4023if { (ac_try="$ac_compile"
7a197a62
AK
4024case "(($ac_try" in
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4027esac
ec6a6fbe
AK
4028eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4029$as_echo "$ac_try_echo") >&5
d0191583 4030 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4031 ac_status=$?
4032 grep -v '^ *+' conftest.er1 >conftest.err
4033 rm -f conftest.er1
4034 cat conftest.err >&5
ec6a6fbe 4035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4036 (exit $ac_status); } && {
4037 test -z "$ac_c_werror_flag" ||
25fbec5b 4038 test ! -s conftest.err
d0191583
JM
4039 } && test -s conftest.$ac_objext; then
4040 eval "$as_ac_Header=yes"
ad6254c5 4041else
ec6a6fbe 4042 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4043sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4044
d0191583 4045 eval "$as_ac_Header=no"
795ca3e5 4046fi
7a197a62 4047
d0191583 4048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4049fi
ec6a6fbe
AK
4050ac_res=`eval 'as_val=${'$as_ac_Header'}
4051 $as_echo "$as_val"'`
4052 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4053$as_echo "$ac_res" >&6; }
4054as_val=`eval 'as_val=${'$as_ac_Header'}
4055 $as_echo "$as_val"'`
4056 if test "x$as_val" = x""yes; then
d0191583 4057 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4058#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4059_ACEOF
795ca3e5 4060
d0191583
JM
4061ac_header_dirent=$ac_hdr; break
4062fi
ad6254c5 4063
d0191583
JM
4064done
4065# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4066if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4067 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4068$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4069if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4070 $as_echo_n "(cached) " >&6
ad6254c5 4071else
d0191583
JM
4072 ac_func_search_save_LIBS=$LIBS
4073cat >conftest.$ac_ext <<_ACEOF
4074/* confdefs.h. */
4075_ACEOF
4076cat confdefs.h >>conftest.$ac_ext
4077cat >>conftest.$ac_ext <<_ACEOF
4078/* end confdefs.h. */
ad6254c5 4079
d0191583
JM
4080/* Override any GCC internal prototype to avoid an error.
4081 Use char because int might match the return type of a GCC
4082 builtin and then its argument prototype would still apply. */
4083#ifdef __cplusplus
4084extern "C"
4085#endif
4086char opendir ();
4087int
4088main ()
4089{
4090return opendir ();
4091 ;
4092 return 0;
4093}
4094_ACEOF
4095for ac_lib in '' dir; do
4096 if test -z "$ac_lib"; then
4097 ac_res="none required"
4098 else
4099 ac_res=-l$ac_lib
4100 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4101 fi
4102 rm -f conftest.$ac_objext conftest$ac_exeext
4103if { (ac_try="$ac_link"
4104case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4107esac
ec6a6fbe
AK
4108eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4109$as_echo "$ac_try_echo") >&5
d0191583
JM
4110 (eval "$ac_link") 2>conftest.er1
4111 ac_status=$?
4112 grep -v '^ *+' conftest.er1 >conftest.err
4113 rm -f conftest.er1
4114 cat conftest.err >&5
ec6a6fbe 4115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4116 (exit $ac_status); } && {
4117 test -z "$ac_c_werror_flag" ||
4118 test ! -s conftest.err
ec6a6fbe
AK
4119 } && test -s conftest$ac_exeext && {
4120 test "$cross_compiling" = yes ||
4121 $as_test_x conftest$ac_exeext
4122 }; then
d0191583
JM
4123 ac_cv_search_opendir=$ac_res
4124else
ec6a6fbe 4125 $as_echo "$as_me: failed program was:" >&5
d0191583 4126sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4127
ad6254c5 4128
795ca3e5 4129fi
ad6254c5 4130
ec6a6fbe 4131rm -rf conftest.dSYM
d0191583
JM
4132rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4133 conftest$ac_exeext
4134 if test "${ac_cv_search_opendir+set}" = set; then
4135 break
7a197a62 4136fi
d0191583
JM
4137done
4138if test "${ac_cv_search_opendir+set}" = set; then
4139 :
7a197a62 4140else
d0191583 4141 ac_cv_search_opendir=no
7a197a62 4142fi
d0191583
JM
4143rm conftest.$ac_ext
4144LIBS=$ac_func_search_save_LIBS
7a197a62 4145fi
ec6a6fbe
AK
4146{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4147$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4148ac_res=$ac_cv_search_opendir
4149if test "$ac_res" != no; then
4150 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4151
d0191583 4152fi
7a197a62 4153
7a197a62 4154else
ec6a6fbe
AK
4155 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4156$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4157if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4158 $as_echo_n "(cached) " >&6
7a197a62 4159else
d0191583
JM
4160 ac_func_search_save_LIBS=$LIBS
4161cat >conftest.$ac_ext <<_ACEOF
4162/* confdefs.h. */
4163_ACEOF
4164cat confdefs.h >>conftest.$ac_ext
4165cat >>conftest.$ac_ext <<_ACEOF
4166/* end confdefs.h. */
7a197a62 4167
d0191583
JM
4168/* Override any GCC internal prototype to avoid an error.
4169 Use char because int might match the return type of a GCC
4170 builtin and then its argument prototype would still apply. */
4171#ifdef __cplusplus
4172extern "C"
4173#endif
4174char opendir ();
4175int
4176main ()
4177{
4178return opendir ();
4179 ;
4180 return 0;
4181}
4182_ACEOF
4183for ac_lib in '' x; do
4184 if test -z "$ac_lib"; then
4185 ac_res="none required"
4186 else
4187 ac_res=-l$ac_lib
4188 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4189 fi
4190 rm -f conftest.$ac_objext conftest$ac_exeext
4191if { (ac_try="$ac_link"
4192case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195esac
ec6a6fbe
AK
4196eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4197$as_echo "$ac_try_echo") >&5
d0191583
JM
4198 (eval "$ac_link") 2>conftest.er1
4199 ac_status=$?
4200 grep -v '^ *+' conftest.er1 >conftest.err
4201 rm -f conftest.er1
4202 cat conftest.err >&5
ec6a6fbe 4203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4204 (exit $ac_status); } && {
4205 test -z "$ac_c_werror_flag" ||
4206 test ! -s conftest.err
ec6a6fbe
AK
4207 } && test -s conftest$ac_exeext && {
4208 test "$cross_compiling" = yes ||
4209 $as_test_x conftest$ac_exeext
4210 }; then
d0191583
JM
4211 ac_cv_search_opendir=$ac_res
4212else
ec6a6fbe 4213 $as_echo "$as_me: failed program was:" >&5
d0191583 4214sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4215
4216
4217fi
4218
ec6a6fbe 4219rm -rf conftest.dSYM
d0191583
JM
4220rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4221 conftest$ac_exeext
4222 if test "${ac_cv_search_opendir+set}" = set; then
4223 break
7a197a62 4224fi
d0191583
JM
4225done
4226if test "${ac_cv_search_opendir+set}" = set; then
4227 :
7a197a62 4228else
d0191583 4229 ac_cv_search_opendir=no
7a197a62 4230fi
d0191583
JM
4231rm conftest.$ac_ext
4232LIBS=$ac_func_search_save_LIBS
4233fi
ec6a6fbe
AK
4234{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4235$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4236ac_res=$ac_cv_search_opendir
4237if test "$ac_res" != no; then
4238 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4239
7a197a62 4240fi
7a197a62 4241
d0191583 4242fi
7a197a62 4243
ec6a6fbe
AK
4244{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4245$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4246if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4247 $as_echo_n "(cached) " >&6
7a197a62
AK
4248else
4249 cat >conftest.$ac_ext <<_ACEOF
4250/* confdefs.h. */
4251_ACEOF
4252cat confdefs.h >>conftest.$ac_ext
4253cat >>conftest.$ac_ext <<_ACEOF
4254/* end confdefs.h. */
4255#include <stdlib.h>
4256#include <stdarg.h>
4257#include <string.h>
4258#include <float.h>
4259
4260int
4261main ()
4262{
4263
4264 ;
4265 return 0;
4266}
4267_ACEOF
4268rm -f conftest.$ac_objext
4269if { (ac_try="$ac_compile"
4270case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4273esac
ec6a6fbe
AK
4274eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4275$as_echo "$ac_try_echo") >&5
7a197a62
AK
4276 (eval "$ac_compile") 2>conftest.er1
4277 ac_status=$?
4278 grep -v '^ *+' conftest.er1 >conftest.err
4279 rm -f conftest.er1
4280 cat conftest.err >&5
ec6a6fbe 4281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4282 (exit $ac_status); } && {
4283 test -z "$ac_c_werror_flag" ||
4284 test ! -s conftest.err
4285 } && test -s conftest.$ac_objext; then
7a197a62
AK
4286 ac_cv_header_stdc=yes
4287else
ec6a6fbe 4288 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4289sed 's/^/| /' conftest.$ac_ext >&5
4290
4291 ac_cv_header_stdc=no
4292fi
4293
4294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295
4296if test $ac_cv_header_stdc = yes; then
4297 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4298 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4299/* confdefs.h. */
4300_ACEOF
4301cat confdefs.h >>conftest.$ac_ext
4302cat >>conftest.$ac_ext <<_ACEOF
4303/* end confdefs.h. */
4304#include <string.h>
8106cdd5 4305
ad6254c5
AK
4306_ACEOF
4307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4308 $EGREP "memchr" >/dev/null 2>&1; then
4309 :
4310else
4311 ac_cv_header_stdc=no
80992638 4312fi
ad6254c5 4313rm -f conftest*
795ca3e5
AK
4314
4315fi
4316
ad6254c5
AK
4317if test $ac_cv_header_stdc = yes; then
4318 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4319 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4320/* confdefs.h. */
4321_ACEOF
4322cat confdefs.h >>conftest.$ac_ext
4323cat >>conftest.$ac_ext <<_ACEOF
4324/* end confdefs.h. */
80992638 4325#include <stdlib.h>
ad6254c5
AK
4326
4327_ACEOF
80992638 4328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4329 $EGREP "free" >/dev/null 2>&1; then
4330 :
795ca3e5 4331else
ad6254c5 4332 ac_cv_header_stdc=no
795ca3e5 4333fi
80992638 4334rm -f conftest*
8106cdd5 4335
795ca3e5
AK
4336fi
4337
ad6254c5
AK
4338if test $ac_cv_header_stdc = yes; then
4339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4340 if test "$cross_compiling" = yes; then
4341 :
795ca3e5 4342else
ad6254c5 4343 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4344/* confdefs.h. */
4345_ACEOF
4346cat confdefs.h >>conftest.$ac_ext
4347cat >>conftest.$ac_ext <<_ACEOF
4348/* end confdefs.h. */
4349#include <ctype.h>
7a197a62 4350#include <stdlib.h>
ad6254c5
AK
4351#if ((' ' & 0x0FF) == 0x020)
4352# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4353# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4354#else
4355# define ISLOWER(c) \
8a2fc586
AK
4356 (('a' <= (c) && (c) <= 'i') \
4357 || ('j' <= (c) && (c) <= 'r') \
4358 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4359# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4360#endif
ad6254c5
AK
4361
4362#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4363int
4364main ()
4365{
4366 int i;
4367 for (i = 0; i < 256; i++)
4368 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4369 || toupper (i) != TOUPPER (i))
7a197a62
AK
4370 return 2;
4371 return 0;
ad6254c5
AK
4372}
4373_ACEOF
4374rm -f conftest$ac_exeext
7a197a62
AK
4375if { (ac_try="$ac_link"
4376case "(($ac_try" in
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4379esac
ec6a6fbe
AK
4380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4381$as_echo "$ac_try_echo") >&5
7a197a62 4382 (eval "$ac_link") 2>&5
ad6254c5 4383 ac_status=$?
ec6a6fbe 4384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4386 { (case "(($ac_try" in
4387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388 *) ac_try_echo=$ac_try;;
4389esac
ec6a6fbe
AK
4390eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4391$as_echo "$ac_try_echo") >&5
7a197a62 4392 (eval "$ac_try") 2>&5
ad6254c5 4393 ac_status=$?
ec6a6fbe 4394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4395 (exit $ac_status); }; }; then
4396 :
795ca3e5 4397else
ec6a6fbe
AK
4398 $as_echo "$as_me: program exited with status $ac_status" >&5
4399$as_echo "$as_me: failed program was:" >&5
ad6254c5 4400sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4401
ad6254c5
AK
4402( exit $ac_status )
4403ac_cv_header_stdc=no
80992638 4404fi
ec6a6fbe 4405rm -rf conftest.dSYM
7a197a62 4406rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4407fi
7a197a62
AK
4408
4409
ad6254c5
AK
4410fi
4411fi
ec6a6fbe
AK
4412{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4413$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4414if test $ac_cv_header_stdc = yes; then
4415
4416cat >>confdefs.h <<\_ACEOF
4417#define STDC_HEADERS 1
4418_ACEOF
795ca3e5
AK
4419
4420fi
4421
ec6a6fbe
AK
4422{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4423$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
ad6254c5 4424if test "${ac_cv_header_sys_wait_h+set}" = set; then
ec6a6fbe 4425 $as_echo_n "(cached) " >&6
8106cdd5 4426else
ad6254c5 4427 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4428/* confdefs.h. */
4429_ACEOF
4430cat confdefs.h >>conftest.$ac_ext
4431cat >>conftest.$ac_ext <<_ACEOF
4432/* end confdefs.h. */
80992638 4433#include <sys/types.h>
ad6254c5
AK
4434#include <sys/wait.h>
4435#ifndef WEXITSTATUS
7a197a62 4436# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4437#endif
4438#ifndef WIFEXITED
4439# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4440#endif
4441
4442int
4443main ()
4444{
4445 int s;
4446 wait (&s);
4447 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4448 ;
4449 return 0;
4450}
4451_ACEOF
4452rm -f conftest.$ac_objext
7a197a62
AK
4453if { (ac_try="$ac_compile"
4454case "(($ac_try" in
4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456 *) ac_try_echo=$ac_try;;
4457esac
ec6a6fbe
AK
4458eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4459$as_echo "$ac_try_echo") >&5
7a197a62 4460 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4461 ac_status=$?
8a2fc586
AK
4462 grep -v '^ *+' conftest.er1 >conftest.err
4463 rm -f conftest.er1
4464 cat conftest.err >&5
ec6a6fbe 4465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4466 (exit $ac_status); } && {
4467 test -z "$ac_c_werror_flag" ||
4468 test ! -s conftest.err
4469 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4470 ac_cv_header_sys_wait_h=yes
4471else
ec6a6fbe 4472 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4473sed 's/^/| /' conftest.$ac_ext >&5
4474
7a197a62 4475 ac_cv_header_sys_wait_h=no
8106cdd5 4476fi
7a197a62
AK
4477
4478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4479fi
ec6a6fbe
AK
4480{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4481$as_echo "$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4482if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4483
ad6254c5
AK
4484cat >>confdefs.h <<\_ACEOF
4485#define HAVE_SYS_WAIT_H 1
4486_ACEOF
795ca3e5
AK
4487
4488fi
4489
ec6a6fbe
AK
4490{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4491$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
ad6254c5 4492if test "${ac_cv_header_time+set}" = set; then
ec6a6fbe 4493 $as_echo_n "(cached) " >&6
795ca3e5 4494else
ad6254c5 4495 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4496/* confdefs.h. */
4497_ACEOF
4498cat confdefs.h >>conftest.$ac_ext
4499cat >>conftest.$ac_ext <<_ACEOF
4500/* end confdefs.h. */
795ca3e5
AK
4501#include <sys/types.h>
4502#include <sys/time.h>
4503#include <time.h>
ad6254c5
AK
4504
4505int
4506main ()
4507{
4508if ((struct tm *) 0)
4509return 0;
4510 ;
4511 return 0;
4512}
4513_ACEOF
4514rm -f conftest.$ac_objext
7a197a62
AK
4515if { (ac_try="$ac_compile"
4516case "(($ac_try" in
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4519esac
ec6a6fbe
AK
4520eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4521$as_echo "$ac_try_echo") >&5
7a197a62 4522 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4523 ac_status=$?
8a2fc586
AK
4524 grep -v '^ *+' conftest.er1 >conftest.err
4525 rm -f conftest.er1
4526 cat conftest.err >&5
ec6a6fbe 4527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4528 (exit $ac_status); } && {
4529 test -z "$ac_c_werror_flag" ||
4530 test ! -s conftest.err
4531 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4532 ac_cv_header_time=yes
4533else
ec6a6fbe 4534 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4535sed 's/^/| /' conftest.$ac_ext >&5
4536
7a197a62 4537 ac_cv_header_time=no
795ca3e5 4538fi
7a197a62
AK
4539
4540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4541fi
ec6a6fbe
AK
4542{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4543$as_echo "$ac_cv_header_time" >&6; }
80992638 4544if test $ac_cv_header_time = yes; then
ad6254c5
AK
4545
4546cat >>confdefs.h <<\_ACEOF
795ca3e5 4547#define TIME_WITH_SYS_TIME 1
ad6254c5 4548_ACEOF
b896caa1 4549
8106cdd5 4550fi
b896caa1 4551
b896caa1 4552
d0191583
JM
4553# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4564 inttypes.h stdint.h unistd.h
4565do
ec6a6fbe
AK
4566as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4567{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4568$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4569if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4570 $as_echo_n "(cached) " >&6
d0191583
JM
4571else
4572 cat >conftest.$ac_ext <<_ACEOF
4573/* confdefs.h. */
4574_ACEOF
4575cat confdefs.h >>conftest.$ac_ext
4576cat >>conftest.$ac_ext <<_ACEOF
4577/* end confdefs.h. */
4578$ac_includes_default
4579
4580#include <$ac_header>
4581_ACEOF
4582rm -f conftest.$ac_objext
4583if { (ac_try="$ac_compile"
4584case "(($ac_try" in
4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4587esac
ec6a6fbe
AK
4588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4589$as_echo "$ac_try_echo") >&5
d0191583
JM
4590 (eval "$ac_compile") 2>conftest.er1
4591 ac_status=$?
4592 grep -v '^ *+' conftest.er1 >conftest.err
4593 rm -f conftest.er1
4594 cat conftest.err >&5
ec6a6fbe 4595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4596 (exit $ac_status); } && {
4597 test -z "$ac_c_werror_flag" ||
4598 test ! -s conftest.err
4599 } && test -s conftest.$ac_objext; then
4600 eval "$as_ac_Header=yes"
4601else
ec6a6fbe 4602 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4603sed 's/^/| /' conftest.$ac_ext >&5
4604
4605 eval "$as_ac_Header=no"
4606fi
4607
4608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4609fi
ec6a6fbe
AK
4610ac_res=`eval 'as_val=${'$as_ac_Header'}
4611 $as_echo "$as_val"'`
4612 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4613$as_echo "$ac_res" >&6; }
4614as_val=`eval 'as_val=${'$as_ac_Header'}
4615 $as_echo "$as_val"'`
4616 if test "x$as_val" = x""yes; then
d0191583 4617 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4618#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d0191583
JM
4619_ACEOF
4620
4621fi
4622
4623done
4624
b896caa1 4625
b896caa1
AK
4626
4627
795ca3e5 4628
8106cdd5 4629
80992638 4630
795ca3e5 4631
a38df97f 4632
80992638 4633
d0191583
JM
4634
4635
4636
4637
4638
4639for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4640 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
ad6254c5 4641do
ec6a6fbe 4642as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0191583 4643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4644 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4645$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4647 $as_echo_n "(cached) " >&6
d0191583 4648fi
ec6a6fbe
AK
4649ac_res=`eval 'as_val=${'$as_ac_Header'}
4650 $as_echo "$as_val"'`
4651 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4652$as_echo "$ac_res" >&6; }
ad6254c5 4653else
d0191583 4654 # Is the header compilable?
ec6a6fbe
AK
4655{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4656$as_echo_n "checking $ac_header usability... " >&6; }
d0191583 4657cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4658/* confdefs.h. */
4659_ACEOF
4660cat confdefs.h >>conftest.$ac_ext
4661cat >>conftest.$ac_ext <<_ACEOF
4662/* end confdefs.h. */
4663$ac_includes_default
ad6254c5
AK
4664#include <$ac_header>
4665_ACEOF
4666rm -f conftest.$ac_objext
7a197a62
AK
4667if { (ac_try="$ac_compile"
4668case "(($ac_try" in
4669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4670 *) ac_try_echo=$ac_try;;
4671esac
ec6a6fbe
AK
4672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4673$as_echo "$ac_try_echo") >&5
7a197a62 4674 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4675 ac_status=$?
8a2fc586
AK
4676 grep -v '^ *+' conftest.er1 >conftest.err
4677 rm -f conftest.er1
4678 cat conftest.err >&5
ec6a6fbe 4679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4680 (exit $ac_status); } && {
4681 test -z "$ac_c_werror_flag" ||
4682 test ! -s conftest.err
4683 } && test -s conftest.$ac_objext; then
d0191583 4684 ac_header_compiler=yes
ad6254c5 4685else
ec6a6fbe 4686 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4687sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4688
d0191583 4689 ac_header_compiler=no
ad6254c5 4690fi
7a197a62
AK
4691
4692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4693{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4694$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4695
4696# Is the header present?
ec6a6fbe
AK
4697{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4698$as_echo_n "checking $ac_header presence... " >&6; }
d0191583
JM
4699cat >conftest.$ac_ext <<_ACEOF
4700/* confdefs.h. */
4701_ACEOF
4702cat confdefs.h >>conftest.$ac_ext
4703cat >>conftest.$ac_ext <<_ACEOF
4704/* end confdefs.h. */
4705#include <$ac_header>
4706_ACEOF
4707if { (ac_try="$ac_cpp conftest.$ac_ext"
4708case "(($ac_try" in
4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4711esac
ec6a6fbe
AK
4712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4713$as_echo "$ac_try_echo") >&5
d0191583
JM
4714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4715 ac_status=$?
4716 grep -v '^ *+' conftest.er1 >conftest.err
4717 rm -f conftest.er1
4718 cat conftest.err >&5
ec6a6fbe 4719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4720 (exit $ac_status); } >/dev/null && {
4721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4722 test ! -s conftest.err
4723 }; then
4724 ac_header_preproc=yes
4725else
ec6a6fbe 4726 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4727sed 's/^/| /' conftest.$ac_ext >&5
4728
4729 ac_header_preproc=no
4730fi
4731
4732rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4733{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4734$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4735
4736# So? What about this header?
4737case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4738 yes:no: )
ec6a6fbe
AK
4739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4740$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4742$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d0191583
JM
4743 ac_header_preproc=yes
4744 ;;
4745 no:yes:* )
ec6a6fbe
AK
4746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4747$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4749$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4751$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4753$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4754 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4755$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4757$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4758
4759 ;;
4760esac
ec6a6fbe
AK
4761{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4762$as_echo_n "checking for $ac_header... " >&6; }
d0191583 4763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4764 $as_echo_n "(cached) " >&6
d0191583
JM
4765else
4766 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4767fi
ec6a6fbe
AK
4768ac_res=`eval 'as_val=${'$as_ac_Header'}
4769 $as_echo "$as_val"'`
4770 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4771$as_echo "$ac_res" >&6; }
d0191583
JM
4772
4773fi
ec6a6fbe
AK
4774as_val=`eval 'as_val=${'$as_ac_Header'}
4775 $as_echo "$as_val"'`
4776 if test "x$as_val" = x""yes; then
ad6254c5 4777 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4778#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4779_ACEOF
a38df97f 4780
d0191583 4781else
ec6a6fbe
AK
4782 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4783$as_echo "$as_me: error: bailing out" >&2;}
d0191583 4784 { (exit 1); exit 1; }; }
80992638
AK
4785fi
4786
ad6254c5
AK
4787done
4788
7d1552c9 4789
d0191583
JM
4790case "$host_os" in
4791 linux*)
7d1552c9 4792
80992638 4793
5a52dca9 4794
d0191583 4795for ac_header in asm/byteorder.h linux/fs.h malloc.h
ad6254c5 4796do
ec6a6fbe 4797as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4798if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4799 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4800$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4801if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4802 $as_echo_n "(cached) " >&6
ad6254c5 4803fi
ec6a6fbe
AK
4804ac_res=`eval 'as_val=${'$as_ac_Header'}
4805 $as_echo "$as_val"'`
4806 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4807$as_echo "$ac_res" >&6; }
ad6254c5
AK
4808else
4809 # Is the header compilable?
ec6a6fbe
AK
4810{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4811$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4812cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4813/* confdefs.h. */
4814_ACEOF
4815cat confdefs.h >>conftest.$ac_ext
4816cat >>conftest.$ac_ext <<_ACEOF
4817/* end confdefs.h. */
4818$ac_includes_default
4819#include <$ac_header>
4820_ACEOF
4821rm -f conftest.$ac_objext
7a197a62
AK
4822if { (ac_try="$ac_compile"
4823case "(($ac_try" in
4824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4825 *) ac_try_echo=$ac_try;;
4826esac
ec6a6fbe
AK
4827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4828$as_echo "$ac_try_echo") >&5
7a197a62 4829 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4830 ac_status=$?
8a2fc586
AK
4831 grep -v '^ *+' conftest.er1 >conftest.err
4832 rm -f conftest.er1
4833 cat conftest.err >&5
ec6a6fbe 4834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4835 (exit $ac_status); } && {
4836 test -z "$ac_c_werror_flag" ||
4837 test ! -s conftest.err
4838 } && test -s conftest.$ac_objext; then
fc54be10
AK
4839 ac_header_compiler=yes
4840else
ec6a6fbe 4841 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4842sed 's/^/| /' conftest.$ac_ext >&5
4843
4844 ac_header_compiler=no
4845fi
4846
4847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4848{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4849$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4850
4851# Is the header present?
ec6a6fbe
AK
4852{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4853$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 4854cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4855/* confdefs.h. */
4856_ACEOF
4857cat confdefs.h >>conftest.$ac_ext
4858cat >>conftest.$ac_ext <<_ACEOF
4859/* end confdefs.h. */
4860#include <$ac_header>
4861_ACEOF
7a197a62
AK
4862if { (ac_try="$ac_cpp conftest.$ac_ext"
4863case "(($ac_try" in
4864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4866esac
ec6a6fbe
AK
4867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4868$as_echo "$ac_try_echo") >&5
7a197a62 4869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4870 ac_status=$?
4871 grep -v '^ *+' conftest.er1 >conftest.err
4872 rm -f conftest.er1
4873 cat conftest.err >&5
ec6a6fbe 4874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4875 (exit $ac_status); } >/dev/null && {
4876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4877 test ! -s conftest.err
4878 }; then
ad6254c5
AK
4879 ac_header_preproc=yes
4880else
ec6a6fbe 4881 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4882sed 's/^/| /' conftest.$ac_ext >&5
4883
4884 ac_header_preproc=no
4885fi
7a197a62 4886
ad6254c5 4887rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4888{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4889$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4890
4891# So? What about this header?
8a2fc586
AK
4892case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4893 yes:no: )
ec6a6fbe
AK
4894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4895$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4897$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4898 ac_header_preproc=yes
ad6254c5 4899 ;;
8a2fc586 4900 no:yes:* )
ec6a6fbe
AK
4901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4902$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4904$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4906$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4908$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4910$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4912$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4913
ad6254c5
AK
4914 ;;
4915esac
ec6a6fbe
AK
4916{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4917$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4919 $as_echo_n "(cached) " >&6
ad6254c5 4920else
8a2fc586 4921 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4922fi
ec6a6fbe
AK
4923ac_res=`eval 'as_val=${'$as_ac_Header'}
4924 $as_echo "$as_val"'`
4925 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4926$as_echo "$ac_res" >&6; }
ad6254c5
AK
4927
4928fi
ec6a6fbe
AK
4929as_val=`eval 'as_val=${'$as_ac_Header'}
4930 $as_echo "$as_val"'`
4931 if test "x$as_val" = x""yes; then
ad6254c5 4932 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4933#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4934_ACEOF
b896caa1 4935
d8ac0fbc 4936else
ec6a6fbe
AK
4937 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4938$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 4939 { (exit 1); exit 1; }; }
80992638
AK
4940fi
4941
ad6254c5 4942done
d0191583
JM
4943 ;;
4944 darwin*)
d8ac0fbc 4945
d8ac0fbc 4946
d0191583 4947for ac_header in machine/endian.h sys/disk.h
ad6254c5 4948do
ec6a6fbe 4949as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4950if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
4951 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4952$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4953if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4954 $as_echo_n "(cached) " >&6
ad6254c5 4955fi
ec6a6fbe
AK
4956ac_res=`eval 'as_val=${'$as_ac_Header'}
4957 $as_echo "$as_val"'`
4958 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4959$as_echo "$ac_res" >&6; }
ad6254c5
AK
4960else
4961 # Is the header compilable?
ec6a6fbe
AK
4962{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4963$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4964cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4965/* confdefs.h. */
4966_ACEOF
4967cat confdefs.h >>conftest.$ac_ext
4968cat >>conftest.$ac_ext <<_ACEOF
4969/* end confdefs.h. */
4970$ac_includes_default
4971#include <$ac_header>
4972_ACEOF
4973rm -f conftest.$ac_objext
7a197a62
AK
4974if { (ac_try="$ac_compile"
4975case "(($ac_try" in
4976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4977 *) ac_try_echo=$ac_try;;
4978esac
ec6a6fbe
AK
4979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4980$as_echo "$ac_try_echo") >&5
7a197a62 4981 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4982 ac_status=$?
8a2fc586
AK
4983 grep -v '^ *+' conftest.er1 >conftest.err
4984 rm -f conftest.er1
4985 cat conftest.err >&5
ec6a6fbe 4986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4987 (exit $ac_status); } && {
4988 test -z "$ac_c_werror_flag" ||
4989 test ! -s conftest.err
4990 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4991 ac_header_compiler=yes
4992else
ec6a6fbe 4993 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4994sed 's/^/| /' conftest.$ac_ext >&5
4995
7a197a62 4996 ac_header_compiler=no
ad6254c5 4997fi
7a197a62
AK
4998
4999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5000{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5001$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5002
5003# Is the header present?
ec6a6fbe
AK
5004{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5005$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5006cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5007/* confdefs.h. */
5008_ACEOF
5009cat confdefs.h >>conftest.$ac_ext
5010cat >>conftest.$ac_ext <<_ACEOF
5011/* end confdefs.h. */
5012#include <$ac_header>
5013_ACEOF
7a197a62
AK
5014if { (ac_try="$ac_cpp conftest.$ac_ext"
5015case "(($ac_try" in
5016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5017 *) ac_try_echo=$ac_try;;
5018esac
ec6a6fbe
AK
5019eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5020$as_echo "$ac_try_echo") >&5
7a197a62 5021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5022 ac_status=$?
5023 grep -v '^ *+' conftest.er1 >conftest.err
5024 rm -f conftest.er1
5025 cat conftest.err >&5
ec6a6fbe 5026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5027 (exit $ac_status); } >/dev/null && {
5028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5029 test ! -s conftest.err
5030 }; then
ad6254c5
AK
5031 ac_header_preproc=yes
5032else
ec6a6fbe 5033 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5034sed 's/^/| /' conftest.$ac_ext >&5
5035
5036 ac_header_preproc=no
5037fi
7a197a62 5038
ad6254c5 5039rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5040{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5041$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5042
5043# So? What about this header?
8a2fc586
AK
5044case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5045 yes:no: )
ec6a6fbe
AK
5046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5047$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5048 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5049$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5050 ac_header_preproc=yes
ad6254c5 5051 ;;
8a2fc586 5052 no:yes:* )
ec6a6fbe
AK
5053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5054$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5056$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5058$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5060$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5062$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5064$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5065
ad6254c5
AK
5066 ;;
5067esac
ec6a6fbe
AK
5068{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5069$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5070if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5071 $as_echo_n "(cached) " >&6
ad6254c5 5072else
8a2fc586 5073 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 5074fi
ec6a6fbe
AK
5075ac_res=`eval 'as_val=${'$as_ac_Header'}
5076 $as_echo "$as_val"'`
5077 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5078$as_echo "$ac_res" >&6; }
ad6254c5
AK
5079
5080fi
ec6a6fbe
AK
5081as_val=`eval 'as_val=${'$as_ac_Header'}
5082 $as_echo "$as_val"'`
5083 if test "x$as_val" = x""yes; then
ad6254c5 5084 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5085#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5086_ACEOF
4922197a 5087
4922197a 5088else
ec6a6fbe
AK
5089 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5090$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5091 { (exit 1); exit 1; }; }
80992638
AK
5092fi
5093
ad6254c5 5094done
d0191583
JM
5095 ;;
5096esac
4922197a 5097
4922197a 5098
4922197a 5099
ad6254c5
AK
5100
5101
d0191583
JM
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5115 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5116 sys/types.h unistd.h
ad6254c5 5117do
ec6a6fbe 5118as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5119if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5120 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5121$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5122if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5123 $as_echo_n "(cached) " >&6
ad6254c5 5124fi
ec6a6fbe
AK
5125ac_res=`eval 'as_val=${'$as_ac_Header'}
5126 $as_echo "$as_val"'`
5127 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5128$as_echo "$ac_res" >&6; }
795ca3e5 5129else
ad6254c5 5130 # Is the header compilable?
ec6a6fbe
AK
5131{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5132$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5133cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5134/* confdefs.h. */
5135_ACEOF
5136cat confdefs.h >>conftest.$ac_ext
5137cat >>conftest.$ac_ext <<_ACEOF
5138/* end confdefs.h. */
5139$ac_includes_default
5140#include <$ac_header>
5141_ACEOF
5142rm -f conftest.$ac_objext
7a197a62
AK
5143if { (ac_try="$ac_compile"
5144case "(($ac_try" in
5145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5146 *) ac_try_echo=$ac_try;;
5147esac
ec6a6fbe
AK
5148eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5149$as_echo "$ac_try_echo") >&5
7a197a62 5150 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5151 ac_status=$?
8a2fc586
AK
5152 grep -v '^ *+' conftest.er1 >conftest.err
5153 rm -f conftest.er1
5154 cat conftest.err >&5
ec6a6fbe 5155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5156 (exit $ac_status); } && {
5157 test -z "$ac_c_werror_flag" ||
5158 test ! -s conftest.err
5159 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5160 ac_header_compiler=yes
5161else
ec6a6fbe 5162 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5163sed 's/^/| /' conftest.$ac_ext >&5
5164
7a197a62 5165 ac_header_compiler=no
ad6254c5 5166fi
7a197a62
AK
5167
5168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5169{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5170$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5171
5172# Is the header present?
ec6a6fbe
AK
5173{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5174$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5175cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5176/* confdefs.h. */
5177_ACEOF
5178cat confdefs.h >>conftest.$ac_ext
5179cat >>conftest.$ac_ext <<_ACEOF
5180/* end confdefs.h. */
5181#include <$ac_header>
5182_ACEOF
7a197a62
AK
5183if { (ac_try="$ac_cpp conftest.$ac_ext"
5184case "(($ac_try" in
5185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5186 *) ac_try_echo=$ac_try;;
5187esac
ec6a6fbe
AK
5188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5189$as_echo "$ac_try_echo") >&5
7a197a62 5190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5191 ac_status=$?
5192 grep -v '^ *+' conftest.er1 >conftest.err
5193 rm -f conftest.er1
5194 cat conftest.err >&5
ec6a6fbe 5195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5196 (exit $ac_status); } >/dev/null && {
5197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5198 test ! -s conftest.err
5199 }; then
ad6254c5
AK
5200 ac_header_preproc=yes
5201else
ec6a6fbe 5202 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5203sed 's/^/| /' conftest.$ac_ext >&5
5204
5205 ac_header_preproc=no
5206fi
7a197a62 5207
ad6254c5 5208rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5209{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5210$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5211
5212# So? What about this header?
8a2fc586
AK
5213case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5214 yes:no: )
ec6a6fbe
AK
5215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5216$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5218$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5219 ac_header_preproc=yes
ad6254c5 5220 ;;
8a2fc586 5221 no:yes:* )
ec6a6fbe
AK
5222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5223$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5225$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5227$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5229$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5231$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5233$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5234
ad6254c5
AK
5235 ;;
5236esac
ec6a6fbe
AK
5237{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5238$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5240 $as_echo_n "(cached) " >&6
ad6254c5 5241else
8a2fc586 5242 eval "$as_ac_Header=\$ac_header_preproc"
80992638 5243fi
ec6a6fbe
AK
5244ac_res=`eval 'as_val=${'$as_ac_Header'}
5245 $as_echo "$as_val"'`
5246 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5247$as_echo "$ac_res" >&6; }
80992638 5248
ad6254c5 5249fi
ec6a6fbe
AK
5250as_val=`eval 'as_val=${'$as_ac_Header'}
5251 $as_echo "$as_val"'`
5252 if test "x$as_val" = x""yes; then
ad6254c5 5253 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5254#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5255_ACEOF
795ca3e5 5256
795ca3e5 5257else
ec6a6fbe
AK
5258 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5259$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 5260 { (exit 1); exit 1; }; }
80992638
AK
5261fi
5262
ad6254c5 5263done
ad6254c5 5264
795ca3e5 5265
d0191583
JM
5266
5267for ac_header in termios.h sys/statvfs.h
ad6254c5 5268do
ec6a6fbe 5269as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5270if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
5271 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5272$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5273if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5274 $as_echo_n "(cached) " >&6
ad6254c5 5275fi
ec6a6fbe
AK
5276ac_res=`eval 'as_val=${'$as_ac_Header'}
5277 $as_echo "$as_val"'`
5278 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5279$as_echo "$ac_res" >&6; }
ad6254c5
AK
5280else
5281 # Is the header compilable?
ec6a6fbe
AK
5282{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5283$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 5284cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5285/* confdefs.h. */
5286_ACEOF
5287cat confdefs.h >>conftest.$ac_ext
5288cat >>conftest.$ac_ext <<_ACEOF
5289/* end confdefs.h. */
5290$ac_includes_default
5291#include <$ac_header>
5292_ACEOF
5293rm -f conftest.$ac_objext
7a197a62
AK
5294if { (ac_try="$ac_compile"
5295case "(($ac_try" in
5296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5297 *) ac_try_echo=$ac_try;;
5298esac
ec6a6fbe
AK
5299eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5300$as_echo "$ac_try_echo") >&5
7a197a62 5301 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5302 ac_status=$?
8a2fc586
AK
5303 grep -v '^ *+' conftest.er1 >conftest.err
5304 rm -f conftest.er1
5305 cat conftest.err >&5
ec6a6fbe 5306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5307 (exit $ac_status); } && {
5308 test -z "$ac_c_werror_flag" ||
5309 test ! -s conftest.err
5310 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5311 ac_header_compiler=yes
5312else
ec6a6fbe 5313 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5314sed 's/^/| /' conftest.$ac_ext >&5
5315
7a197a62 5316 ac_header_compiler=no
ad6254c5 5317fi
7a197a62
AK
5318
5319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5320{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5321$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
5322
5323# Is the header present?
ec6a6fbe
AK
5324{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5325$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 5326cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5327/* confdefs.h. */
5328_ACEOF
5329cat confdefs.h >>conftest.$ac_ext
5330cat >>conftest.$ac_ext <<_ACEOF
5331/* end confdefs.h. */
5332#include <$ac_header>
5333_ACEOF
7a197a62
AK
5334if { (ac_try="$ac_cpp conftest.$ac_ext"
5335case "(($ac_try" in
5336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337 *) ac_try_echo=$ac_try;;
5338esac
ec6a6fbe
AK
5339eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5340$as_echo "$ac_try_echo") >&5
7a197a62 5341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5342 ac_status=$?
5343 grep -v '^ *+' conftest.er1 >conftest.err
5344 rm -f conftest.er1
5345 cat conftest.err >&5
ec6a6fbe 5346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5347 (exit $ac_status); } >/dev/null && {
5348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5349 test ! -s conftest.err
5350 }; then
ad6254c5
AK
5351 ac_header_preproc=yes
5352else
ec6a6fbe 5353 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5354sed 's/^/| /' conftest.$ac_ext >&5
5355
5356 ac_header_preproc=no
5357fi
7a197a62 5358
ad6254c5 5359rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
5360{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5361$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5362
5363# So? What about this header?
8a2fc586
AK
5364case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5365 yes:no: )
ec6a6fbe
AK
5366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5367$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5369$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5370 ac_header_preproc=yes
ad6254c5 5371 ;;
8a2fc586 5372 no:yes:* )
ec6a6fbe
AK
5373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5374$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5376$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5378$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5380$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5382$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5384$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5385
ad6254c5
AK
5386 ;;
5387esac
ec6a6fbe
AK
5388{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5389$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 5390if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 5391 $as_echo_n "(cached) " >&6
ad6254c5 5392else
8a2fc586 5393 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5394fi
ec6a6fbe
AK
5395ac_res=`eval 'as_val=${'$as_ac_Header'}
5396 $as_echo "$as_val"'`
5397 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5398$as_echo "$ac_res" >&6; }
b896caa1 5399
ad6254c5 5400fi
ec6a6fbe
AK
5401as_val=`eval 'as_val=${'$as_ac_Header'}
5402 $as_echo "$as_val"'`
5403 if test "x$as_val" = x""yes; then
ad6254c5 5404 cat >>confdefs.h <<_ACEOF
ec6a6fbe 5405#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5406_ACEOF
5407
80992638
AK
5408fi
5409
ad6254c5 5410done
d0191583 5411
d3c8211f 5412
80992638 5413################################################################################
ec6a6fbe
AK
5414{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5415$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
ad6254c5 5416if test "${ac_cv_c_const+set}" = set; then
ec6a6fbe 5417 $as_echo_n "(cached) " >&6
d3c8211f 5418else
ad6254c5 5419 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5420/* confdefs.h. */
5421_ACEOF
5422cat confdefs.h >>conftest.$ac_ext
5423cat >>conftest.$ac_ext <<_ACEOF
5424/* end confdefs.h. */
5425
5426int
5427main ()
5428{
5429/* FIXME: Include the comments suggested by Paul. */
5430#ifndef __cplusplus
5431 /* Ultrix mips cc rejects this. */
5432 typedef int charset[2];
25fbec5b 5433 const charset cs;
ad6254c5 5434 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
5435 char const *const *pcpcc;
5436 char **ppc;
ad6254c5
AK
5437 /* NEC SVR4.0.2 mips cc rejects this. */
5438 struct point {int x, y;};
5439 static struct point const zero = {0,0};
5440 /* AIX XL C 1.02.0.0 rejects this.
5441 It does not let you subtract one const X* pointer from another in
5442 an arm of an if-expression whose if-part is not a constant
5443 expression */
5444 const char *g = "string";
25fbec5b 5445 pcpcc = &g + (g ? g-g : 0);
ad6254c5 5446 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
5447 ++pcpcc;
5448 ppc = (char**) pcpcc;
5449 pcpcc = (char const *const *) ppc;
ad6254c5
AK
5450 { /* SCO 3.2v4 cc rejects this. */
5451 char *t;
5452 char const *s = 0 ? (char *) 0 : (char const *) 0;
5453
5454 *t++ = 0;
7a197a62 5455 if (s) return 0;
ad6254c5
AK
5456 }
5457 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5458 int x[] = {25, 17};
5459 const int *foo = &x[0];
5460 ++foo;
5461 }
5462 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5463 typedef const int *iptr;
5464 iptr p = 0;
5465 ++p;
5466 }
5467 { /* AIX XL C 1.02.0.0 rejects this saying
5468 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5469 struct s { int j; const int *ap[3]; };
5470 struct s *b; b->j = 5;
5471 }
5472 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5473 const int foo = 10;
7a197a62 5474 if (!foo) return 0;
ad6254c5 5475 }
25fbec5b 5476 return !cs[0] && !zero.x;
ad6254c5
AK
5477#endif
5478
5479 ;
5480 return 0;
5481}
5482_ACEOF
5483rm -f conftest.$ac_objext
7a197a62
AK
5484if { (ac_try="$ac_compile"
5485case "(($ac_try" in
5486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5487 *) ac_try_echo=$ac_try;;
5488esac
ec6a6fbe
AK
5489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5490$as_echo "$ac_try_echo") >&5
7a197a62 5491 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5492 ac_status=$?
8a2fc586
AK
5493 grep -v '^ *+' conftest.er1 >conftest.err
5494 rm -f conftest.er1
5495 cat conftest.err >&5
ec6a6fbe 5496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5497 (exit $ac_status); } && {
5498 test -z "$ac_c_werror_flag" ||
5499 test ! -s conftest.err
5500 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5501 ac_cv_c_const=yes
5502else
ec6a6fbe 5503 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5504sed 's/^/| /' conftest.$ac_ext >&5
5505
7a197a62 5506 ac_cv_c_const=no
ad6254c5 5507fi
7a197a62
AK
5508
5509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5510fi
ec6a6fbe
AK
5511{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5512$as_echo "$ac_cv_c_const" >&6; }
ad6254c5 5513if test $ac_cv_c_const = no; then
80992638 5514
ad6254c5 5515cat >>confdefs.h <<\_ACEOF
ec6a6fbe 5516#define const /**/
ad6254c5 5517_ACEOF
80992638 5518
d3c8211f 5519fi
d3c8211f 5520
ec6a6fbe
AK
5521{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5522$as_echo_n "checking for inline... " >&6; }
ad6254c5 5523if test "${ac_cv_c_inline+set}" = set; then
ec6a6fbe 5524 $as_echo_n "(cached) " >&6
8ef2b021 5525else
ad6254c5
AK
5526 ac_cv_c_inline=no
5527for ac_kw in inline __inline__ __inline; do
5528 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5529/* confdefs.h. */
5530_ACEOF
5531cat confdefs.h >>conftest.$ac_ext
5532cat >>conftest.$ac_ext <<_ACEOF
5533/* end confdefs.h. */
5534#ifndef __cplusplus
5535typedef int foo_t;
5536static $ac_kw foo_t static_foo () {return 0; }
5537$ac_kw foo_t foo () {return 0; }
5538#endif
80992638 5539
ad6254c5
AK
5540_ACEOF
5541rm -f conftest.$ac_objext
7a197a62
AK
5542if { (ac_try="$ac_compile"
5543case "(($ac_try" in
5544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545 *) ac_try_echo=$ac_try;;
5546esac
ec6a6fbe
AK
5547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5548$as_echo "$ac_try_echo") >&5
7a197a62 5549 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5550 ac_status=$?
8a2fc586
AK
5551 grep -v '^ *+' conftest.er1 >conftest.err
5552 rm -f conftest.er1
5553 cat conftest.err >&5
ec6a6fbe 5554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5555 (exit $ac_status); } && {
5556 test -z "$ac_c_werror_flag" ||
5557 test ! -s conftest.err
5558 } && test -s conftest.$ac_objext; then
7a197a62 5559 ac_cv_c_inline=$ac_kw
ad6254c5 5560else
ec6a6fbe 5561 $as_echo "$as_me: failed program was:" >&5
ad6254c5 5562sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5563
7a197a62 5564
8ce0cbda 5565fi
7a197a62
AK
5566
5567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568 test "$ac_cv_c_inline" != no && break
ad6254c5 5569done
8ce0cbda 5570
8ce0cbda 5571fi
ec6a6fbe
AK
5572{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5573$as_echo "$ac_cv_c_inline" >&6; }
8a2fc586
AK
5574
5575
ad6254c5
AK
5576case $ac_cv_c_inline in
5577 inline | yes) ;;
8a2fc586
AK
5578 *)
5579 case $ac_cv_c_inline in
5580 no) ac_val=;;
5581 *) ac_val=$ac_cv_c_inline;;
5582 esac
5583 cat >>confdefs.h <<_ACEOF
5584#ifndef __cplusplus
5585#define inline $ac_val
5586#endif
c1c065a3 5587_ACEOF
d0191583
JM
5588 ;;
5589esac
5590
ec6a6fbe
AK
5591{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5592$as_echo_n "checking for struct stat.st_rdev... " >&6; }
d0191583 5593if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 5594 $as_echo_n "(cached) " >&6
d0191583
JM
5595else
5596 cat >conftest.$ac_ext <<_ACEOF
5597/* confdefs.h. */
5598_ACEOF
5599cat confdefs.h >>conftest.$ac_ext
5600cat >>conftest.$ac_ext <<_ACEOF
5601/* end confdefs.h. */
5602$ac_includes_default
5603int
5604main ()
5605{
5606static struct stat ac_aggr;
5607if (ac_aggr.st_rdev)
5608return 0;
5609 ;
5610 return 0;
5611}
5612_ACEOF
5613rm -f conftest.$ac_objext
5614if { (ac_try="$ac_compile"
5615case "(($ac_try" in
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5618esac
ec6a6fbe
AK
5619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5620$as_echo "$ac_try_echo") >&5
5621 (eval "$ac_compile") 2>conftest.er1
5622 ac_status=$?
5623 grep -v '^ *+' conftest.er1 >conftest.err
5624 rm -f conftest.er1
5625 cat conftest.err >&5
5626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } && {
5628 test -z "$ac_c_werror_flag" ||
5629 test ! -s conftest.err
5630 } && test -s conftest.$ac_objext; then
5631 ac_cv_member_struct_stat_st_rdev=yes
5632else
5633 $as_echo "$as_me: failed program was:" >&5
5634sed 's/^/| /' conftest.$ac_ext >&5
5635
5636 cat >conftest.$ac_ext <<_ACEOF
5637/* confdefs.h. */
5638_ACEOF
5639cat confdefs.h >>conftest.$ac_ext
5640cat >>conftest.$ac_ext <<_ACEOF
5641/* end confdefs.h. */
5642$ac_includes_default
5643int
5644main ()
5645{
5646static struct stat ac_aggr;
5647if (sizeof ac_aggr.st_rdev)
5648return 0;
5649 ;
5650 return 0;
5651}
5652_ACEOF
5653rm -f conftest.$ac_objext
5654if { (ac_try="$ac_compile"
5655case "(($ac_try" in
5656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657 *) ac_try_echo=$ac_try;;
5658esac
5659eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5660$as_echo "$ac_try_echo") >&5
5661 (eval "$ac_compile") 2>conftest.er1
5662 ac_status=$?
5663 grep -v '^ *+' conftest.er1 >conftest.err
5664 rm -f conftest.er1
5665 cat conftest.err >&5
5666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } && {
5668 test -z "$ac_c_werror_flag" ||
5669 test ! -s conftest.err
5670 } && test -s conftest.$ac_objext; then
5671 ac_cv_member_struct_stat_st_rdev=yes
5672else
5673 $as_echo "$as_me: failed program was:" >&5
5674sed 's/^/| /' conftest.$ac_ext >&5
5675
5676 ac_cv_member_struct_stat_st_rdev=no
5677fi
5678
5679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680fi
5681
5682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683fi
5684{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5685$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5686if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5687
5688cat >>confdefs.h <<_ACEOF
5689#define HAVE_STRUCT_STAT_ST_RDEV 1
5690_ACEOF
5691
5692
5693fi
5694
5695{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
5696$as_echo_n "checking for off_t... " >&6; }
5697if test "${ac_cv_type_off_t+set}" = set; then
5698 $as_echo_n "(cached) " >&6
5699else
5700 ac_cv_type_off_t=no
5701cat >conftest.$ac_ext <<_ACEOF
5702/* confdefs.h. */
5703_ACEOF
5704cat confdefs.h >>conftest.$ac_ext
5705cat >>conftest.$ac_ext <<_ACEOF
5706/* end confdefs.h. */
5707$ac_includes_default
5708int
5709main ()
5710{
5711if (sizeof (off_t))
5712 return 0;
5713 ;
5714 return 0;
5715}
5716_ACEOF
5717rm -f conftest.$ac_objext
5718if { (ac_try="$ac_compile"
5719case "(($ac_try" in
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5722esac
5723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5724$as_echo "$ac_try_echo") >&5
5725 (eval "$ac_compile") 2>conftest.er1
5726 ac_status=$?
5727 grep -v '^ *+' conftest.er1 >conftest.err
5728 rm -f conftest.er1
5729 cat conftest.err >&5
5730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } && {
5732 test -z "$ac_c_werror_flag" ||
5733 test ! -s conftest.err
5734 } && test -s conftest.$ac_objext; then
5735 cat >conftest.$ac_ext <<_ACEOF
5736/* confdefs.h. */
5737_ACEOF
5738cat confdefs.h >>conftest.$ac_ext
5739cat >>conftest.$ac_ext <<_ACEOF
5740/* end confdefs.h. */
5741$ac_includes_default
5742int
5743main ()
5744{
5745if (sizeof ((off_t)))
5746 return 0;
5747 ;
5748 return 0;
5749}
5750_ACEOF
5751rm -f conftest.$ac_objext
5752if { (ac_try="$ac_compile"
5753case "(($ac_try" in
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5756esac
5757eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5758$as_echo "$ac_try_echo") >&5
5759 (eval "$ac_compile") 2>conftest.er1
5760 ac_status=$?
5761 grep -v '^ *+' conftest.er1 >conftest.err
5762 rm -f conftest.er1
5763 cat conftest.err >&5
5764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } && {
5766 test -z "$ac_c_werror_flag" ||
5767 test ! -s conftest.err
5768 } && test -s conftest.$ac_objext; then
5769 :
5770else
5771 $as_echo "$as_me: failed program was:" >&5
5772sed 's/^/| /' conftest.$ac_ext >&5
5773
5774 ac_cv_type_off_t=yes
5775fi
5776
5777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778else
5779 $as_echo "$as_me: failed program was:" >&5
5780sed 's/^/| /' conftest.$ac_ext >&5
5781
5782
5783fi
5784
5785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5786fi
5787{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5788$as_echo "$ac_cv_type_off_t" >&6; }
5789if test "x$ac_cv_type_off_t" = x""yes; then
5790 :
5791else
5792
5793cat >>confdefs.h <<_ACEOF
5794#define off_t long int
5795_ACEOF
5796
5797fi
5798
5799{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5800$as_echo_n "checking for pid_t... " >&6; }
5801if test "${ac_cv_type_pid_t+set}" = set; then
5802 $as_echo_n "(cached) " >&6
5803else
5804 ac_cv_type_pid_t=no
5805cat >conftest.$ac_ext <<_ACEOF
5806/* confdefs.h. */
5807_ACEOF
5808cat confdefs.h >>conftest.$ac_ext
5809cat >>conftest.$ac_ext <<_ACEOF
5810/* end confdefs.h. */
5811$ac_includes_default
5812int
5813main ()
5814{
5815if (sizeof (pid_t))
5816 return 0;
5817 ;
5818 return 0;
5819}
5820_ACEOF
5821rm -f conftest.$ac_objext
5822if { (ac_try="$ac_compile"
5823case "(($ac_try" in
5824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825 *) ac_try_echo=$ac_try;;
5826esac
5827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5828$as_echo "$ac_try_echo") >&5
d0191583
JM
5829 (eval "$ac_compile") 2>conftest.er1
5830 ac_status=$?
5831 grep -v '^ *+' conftest.er1 >conftest.err
5832 rm -f conftest.er1
5833 cat conftest.err >&5
ec6a6fbe 5834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5835 (exit $ac_status); } && {
5836 test -z "$ac_c_werror_flag" ||
5837 test ! -s conftest.err
5838 } && test -s conftest.$ac_objext; then
ec6a6fbe 5839 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
5840/* confdefs.h. */
5841_ACEOF
5842cat confdefs.h >>conftest.$ac_ext
5843cat >>conftest.$ac_ext <<_ACEOF
5844/* end confdefs.h. */
5845$ac_includes_default
5846int
5847main ()
5848{
ec6a6fbe
AK
5849if (sizeof ((pid_t)))
5850 return 0;
d0191583
JM
5851 ;
5852 return 0;
5853}
5854_ACEOF
5855rm -f conftest.$ac_objext
5856if { (ac_try="$ac_compile"
5857case "(($ac_try" in
5858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5859 *) ac_try_echo=$ac_try;;
5860esac
ec6a6fbe
AK
5861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5862$as_echo "$ac_try_echo") >&5
d0191583
JM
5863 (eval "$ac_compile") 2>conftest.er1
5864 ac_status=$?
5865 grep -v '^ *+' conftest.er1 >conftest.err
5866 rm -f conftest.er1
5867 cat conftest.err >&5
ec6a6fbe 5868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5869 (exit $ac_status); } && {
5870 test -z "$ac_c_werror_flag" ||
5871 test ! -s conftest.err
5872 } && test -s conftest.$ac_objext; then
ec6a6fbe 5873 :
d0191583 5874else
ec6a6fbe 5875 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
5876sed 's/^/| /' conftest.$ac_ext >&5
5877
ec6a6fbe 5878 ac_cv_type_pid_t=yes
d0191583
JM
5879fi
5880
5881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
5882else
5883 $as_echo "$as_me: failed program was:" >&5
5884sed 's/^/| /' conftest.$ac_ext >&5
5885
5886
d0191583
JM
5887fi
5888
5889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5890fi
ec6a6fbe
AK
5891{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5892$as_echo "$ac_cv_type_pid_t" >&6; }
5893if test "x$ac_cv_type_pid_t" = x""yes; then
5894 :
5895else
d0191583
JM
5896
5897cat >>confdefs.h <<_ACEOF
ec6a6fbe 5898#define pid_t int
d0191583
JM
5899_ACEOF
5900
d0191583 5901fi
8ce0cbda 5902
ec6a6fbe
AK
5903{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5904$as_echo_n "checking return type of signal handlers... " >&6; }
5905if test "${ac_cv_type_signal+set}" = set; then
5906 $as_echo_n "(cached) " >&6
ad6254c5 5907else
b145d876
ZK
5908 cat >conftest.$ac_ext <<_ACEOF
5909/* confdefs.h. */
5910_ACEOF
5911cat confdefs.h >>conftest.$ac_ext
5912cat >>conftest.$ac_ext <<_ACEOF
5913/* end confdefs.h. */
ec6a6fbe
AK
5914#include <sys/types.h>
5915#include <signal.h>
5916
b145d876
ZK
5917int
5918main ()
5919{
ec6a6fbe 5920return *(signal (0, 0)) (0) == 1;
ad6254c5
AK
5921 ;
5922 return 0;
5923}
5924_ACEOF
5925rm -f conftest.$ac_objext
7a197a62
AK
5926if { (ac_try="$ac_compile"
5927case "(($ac_try" in
5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5930esac
ec6a6fbe
AK
5931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5932$as_echo "$ac_try_echo") >&5
7a197a62 5933 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5934 ac_status=$?
8a2fc586
AK
5935 grep -v '^ *+' conftest.er1 >conftest.err
5936 rm -f conftest.er1
5937 cat conftest.err >&5
ec6a6fbe 5938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5939 (exit $ac_status); } && {
5940 test -z "$ac_c_werror_flag" ||
5941 test ! -s conftest.err
5942 } && test -s conftest.$ac_objext; then
ec6a6fbe 5943 ac_cv_type_signal=int
b145d876 5944else
ec6a6fbe 5945 $as_echo "$as_me: failed program was:" >&5
b145d876
ZK
5946sed 's/^/| /' conftest.$ac_ext >&5
5947
ec6a6fbe 5948 ac_cv_type_signal=void
ad6254c5 5949fi
b145d876
ZK
5950
5951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5952fi
ec6a6fbe
AK
5953{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5954$as_echo "$ac_cv_type_signal" >&6; }
80992638 5955
ad6254c5 5956cat >>confdefs.h <<_ACEOF
ec6a6fbe 5957#define RETSIGTYPE $ac_cv_type_signal
ad6254c5 5958_ACEOF
199e490e 5959
b896caa1 5960
ec6a6fbe
AK
5961{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
5962$as_echo_n "checking for size_t... " >&6; }
5963if test "${ac_cv_type_size_t+set}" = set; then
5964 $as_echo_n "(cached) " >&6
ad6254c5 5965else
ec6a6fbe
AK
5966 ac_cv_type_size_t=no
5967cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
5968/* confdefs.h. */
5969_ACEOF
5970cat confdefs.h >>conftest.$ac_ext
5971cat >>conftest.$ac_ext <<_ACEOF
5972/* end confdefs.h. */
5973$ac_includes_default
5974int
5975main ()
5976{
ec6a6fbe
AK
5977if (sizeof (size_t))
5978 return 0;
ad6254c5
AK
5979 ;
5980 return 0;
5981}
5982_ACEOF
5983rm -f conftest.$ac_objext
7a197a62
AK
5984if { (ac_try="$ac_compile"
5985case "(($ac_try" in
5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5988esac
ec6a6fbe
AK
5989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5990$as_echo "$ac_try_echo") >&5
7a197a62 5991 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5992 ac_status=$?
8a2fc586
AK
5993 grep -v '^ *+' conftest.er1 >conftest.err
5994 rm -f conftest.er1
5995 cat conftest.err >&5
ec6a6fbe 5996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5997 (exit $ac_status); } && {
5998 test -z "$ac_c_werror_flag" ||
5999 test ! -s conftest.err
6000 } && test -s conftest.$ac_objext; then
d0191583
JM
6001 cat >conftest.$ac_ext <<_ACEOF
6002/* confdefs.h. */
6003_ACEOF
6004cat confdefs.h >>conftest.$ac_ext
6005cat >>conftest.$ac_ext <<_ACEOF
6006/* end confdefs.h. */
ec6a6fbe 6007$ac_includes_default
d0191583
JM
6008int
6009main ()
6010{
ec6a6fbe
AK
6011if (sizeof ((size_t)))
6012 return 0;
d0191583
JM
6013 ;
6014 return 0;
6015}
6016_ACEOF
6017rm -f conftest.$ac_objext
6018if { (ac_try="$ac_compile"
6019case "(($ac_try" in
6020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021 *) ac_try_echo=$ac_try;;
6022esac
ec6a6fbe
AK
6023eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6024$as_echo "$ac_try_echo") >&5
d0191583
JM
6025 (eval "$ac_compile") 2>conftest.er1
6026 ac_status=$?
6027 grep -v '^ *+' conftest.er1 >conftest.err
6028 rm -f conftest.er1
6029 cat conftest.err >&5
ec6a6fbe 6030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
6031 (exit $ac_status); } && {
6032 test -z "$ac_c_werror_flag" ||
6033 test ! -s conftest.err
6034 } && test -s conftest.$ac_objext; then
ec6a6fbe 6035 :
d0191583 6036else
ec6a6fbe 6037 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
6038sed 's/^/| /' conftest.$ac_ext >&5
6039
ec6a6fbe
AK
6040 ac_cv_type_size_t=yes
6041fi
6042
6043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044else
6045 $as_echo "$as_me: failed program was:" >&5
6046sed 's/^/| /' conftest.$ac_ext >&5
6047
6048
d0191583
JM
6049fi
6050
6051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052fi
ec6a6fbe
AK
6053{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6054$as_echo "$ac_cv_type_size_t" >&6; }
6055if test "x$ac_cv_type_size_t" = x""yes; then
6056 :
6057else
d0191583
JM
6058
6059cat >>confdefs.h <<_ACEOF
ec6a6fbe 6060#define size_t unsigned int
d0191583
JM
6061_ACEOF
6062
ec6a6fbe 6063fi
d0191583 6064
ec6a6fbe
AK
6065{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6066$as_echo_n "checking for mode_t... " >&6; }
6067if test "${ac_cv_type_mode_t+set}" = set; then
6068 $as_echo_n "(cached) " >&6
8106cdd5 6069else
ec6a6fbe
AK
6070 ac_cv_type_mode_t=no
6071cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
6072/* confdefs.h. */
6073_ACEOF
6074cat confdefs.h >>conftest.$ac_ext
6075cat >>conftest.$ac_ext <<_ACEOF
6076/* end confdefs.h. */
6077$ac_includes_default
6078int
6079main ()
6080{
ec6a6fbe
AK
6081if (sizeof (mode_t))
6082 return 0;
ad6254c5
AK
6083 ;
6084 return 0;
6085}
6086_ACEOF
6087rm -f conftest.$ac_objext
7a197a62
AK
6088if { (ac_try="$ac_compile"
6089case "(($ac_try" in
6090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6091 *) ac_try_echo=$ac_try;;
6092esac
ec6a6fbe
AK
6093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6094$as_echo "$ac_try_echo") >&5
7a197a62 6095 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6096 ac_status=$?
8a2fc586
AK
6097 grep -v '^ *+' conftest.er1 >conftest.err
6098 rm -f conftest.er1
6099 cat conftest.err >&5
ec6a6fbe 6100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6101 (exit $ac_status); } && {
6102 test -z "$ac_c_werror_flag" ||
6103 test ! -s conftest.err
6104 } && test -s conftest.$ac_objext; then
b145d876
ZK
6105 cat >conftest.$ac_ext <<_ACEOF
6106/* confdefs.h. */
6107_ACEOF
6108cat confdefs.h >>conftest.$ac_ext
6109cat >>conftest.$ac_ext <<_ACEOF
6110/* end confdefs.h. */
6111$ac_includes_default
6112int
6113main ()
6114{
ec6a6fbe
AK
6115if (sizeof ((mode_t)))
6116 return 0;
ad6254c5
AK
6117 ;
6118 return 0;
6119}
6120_ACEOF
6121rm -f conftest.$ac_objext
7a197a62
AK
6122if { (ac_try="$ac_compile"
6123case "(($ac_try" in
6124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125 *) ac_try_echo=$ac_try;;
6126esac
ec6a6fbe
AK
6127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6128$as_echo "$ac_try_echo") >&5
7a197a62 6129 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6130 ac_status=$?
8a2fc586
AK
6131 grep -v '^ *+' conftest.er1 >conftest.err
6132 rm -f conftest.er1
6133 cat conftest.err >&5
ec6a6fbe 6134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6135 (exit $ac_status); } && {
6136 test -z "$ac_c_werror_flag" ||
6137 test ! -s conftest.err
6138 } && test -s conftest.$ac_objext; then
ec6a6fbe
AK
6139 :
6140else
6141 $as_echo "$as_me: failed program was:" >&5
6142sed 's/^/| /' conftest.$ac_ext >&5
6143
6144 ac_cv_type_mode_t=yes
6145fi
6146
6147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fddafd51 6148else
ec6a6fbe 6149 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
6150sed 's/^/| /' conftest.$ac_ext >&5
6151
ec6a6fbe 6152
80992638 6153fi
7a197a62
AK
6154
6155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6156fi
ec6a6fbe
AK
6157{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6158$as_echo "$ac_cv_type_mode_t" >&6; }
6159if test "x$ac_cv_type_mode_t" = x""yes; then
ad6254c5
AK
6160 :
6161else
80992638 6162
ad6254c5
AK
6163cat >>confdefs.h <<_ACEOF
6164#define mode_t int
6165_ACEOF
6166
6167fi
6168
ec6a6fbe
AK
6169{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6170$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 6171if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 6172 $as_echo_n "(cached) " >&6
ad6254c5
AK
6173else
6174 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6175/* confdefs.h. */
6176_ACEOF
6177cat confdefs.h >>conftest.$ac_ext
6178cat >>conftest.$ac_ext <<_ACEOF
6179/* end confdefs.h. */
6180$ac_includes_default
6181int
6182main ()
6183{
6184static struct stat ac_aggr;
6185if (ac_aggr.st_rdev)
6186return 0;
6187 ;
6188 return 0;
6189}
6190_ACEOF
6191rm -f conftest.$ac_objext
7a197a62
AK
6192if { (ac_try="$ac_compile"
6193case "(($ac_try" in
6194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195 *) ac_try_echo=$ac_try;;
6196esac
ec6a6fbe
AK
6197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6198$as_echo "$ac_try_echo") >&5
7a197a62 6199 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6200 ac_status=$?
8a2fc586
AK
6201 grep -v '^ *+' conftest.er1 >conftest.err
6202 rm -f conftest.er1
6203 cat conftest.err >&5
ec6a6fbe 6204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6205 (exit $ac_status); } && {
6206 test -z "$ac_c_werror_flag" ||
6207 test ! -s conftest.err
6208 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6209 ac_cv_member_struct_stat_st_rdev=yes
6210else
ec6a6fbe 6211 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6212sed 's/^/| /' conftest.$ac_ext >&5
6213
7a197a62 6214 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6215/* confdefs.h. */
6216_ACEOF
6217cat confdefs.h >>conftest.$ac_ext
6218cat >>conftest.$ac_ext <<_ACEOF
6219/* end confdefs.h. */
6220$ac_includes_default
6221int
6222main ()
6223{
6224static struct stat ac_aggr;
6225if (sizeof ac_aggr.st_rdev)
6226return 0;
6227 ;
6228 return 0;
6229}
6230_ACEOF
6231rm -f conftest.$ac_objext
7a197a62
AK
6232if { (ac_try="$ac_compile"
6233case "(($ac_try" in
6234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235 *) ac_try_echo=$ac_try;;
6236esac
ec6a6fbe
AK
6237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6238$as_echo "$ac_try_echo") >&5
7a197a62 6239 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6240 ac_status=$?
8a2fc586
AK
6241 grep -v '^ *+' conftest.er1 >conftest.err
6242 rm -f conftest.er1
6243 cat conftest.err >&5
ec6a6fbe 6244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6245 (exit $ac_status); } && {
6246 test -z "$ac_c_werror_flag" ||
6247 test ! -s conftest.err
6248 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6249 ac_cv_member_struct_stat_st_rdev=yes
6250else
ec6a6fbe 6251 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6252sed 's/^/| /' conftest.$ac_ext >&5
6253
7a197a62 6254 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 6255fi
7a197a62
AK
6256
6257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6258fi
7a197a62
AK
6259
6260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6261fi
ec6a6fbe
AK
6262{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6263$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6264if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
ad6254c5
AK
6265
6266cat >>confdefs.h <<_ACEOF
6267#define HAVE_STRUCT_STAT_ST_RDEV 1
6268_ACEOF
6269
6270
ad6254c5
AK
6271fi
6272
ec6a6fbe
AK
6273{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6274$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 6275if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 6276 $as_echo_n "(cached) " >&6
ad6254c5
AK
6277else
6278 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6279/* confdefs.h. */
6280_ACEOF
6281cat confdefs.h >>conftest.$ac_ext
6282cat >>conftest.$ac_ext <<_ACEOF
6283/* end confdefs.h. */
6284#include <sys/types.h>
6285#include <time.h>
6286
6287int
6288main ()
6289{
25fbec5b
AK
6290struct tm tm;
6291 int *p = &tm.tm_sec;
ec6a6fbe 6292 return !p;
ad6254c5
AK
6293 ;
6294 return 0;
6295}
6296_ACEOF
6297rm -f conftest.$ac_objext
7a197a62
AK
6298if { (ac_try="$ac_compile"
6299case "(($ac_try" in
6300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301 *) ac_try_echo=$ac_try;;
6302esac
ec6a6fbe
AK
6303eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6304$as_echo "$ac_try_echo") >&5
7a197a62 6305 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6306 ac_status=$?
8a2fc586
AK
6307 grep -v '^ *+' conftest.er1 >conftest.err
6308 rm -f conftest.er1
6309 cat conftest.err >&5
ec6a6fbe 6310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6311 (exit $ac_status); } && {
6312 test -z "$ac_c_werror_flag" ||
6313 test ! -s conftest.err
6314 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6315 ac_cv_struct_tm=time.h
6316else
ec6a6fbe 6317 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6318sed 's/^/| /' conftest.$ac_ext >&5
6319
7a197a62 6320 ac_cv_struct_tm=sys/time.h
ad6254c5 6321fi
7a197a62
AK
6322
6323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6324fi
ec6a6fbe
AK
6325{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6326$as_echo "$ac_cv_struct_tm" >&6; }
ad6254c5
AK
6327if test $ac_cv_struct_tm = sys/time.h; then
6328
6329cat >>confdefs.h <<\_ACEOF
6330#define TM_IN_SYS_TIME 1
6331_ACEOF
6332
6333fi
809fae91 6334
795ca3e5 6335
80992638 6336################################################################################
ad6254c5
AK
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
d0191583
JM
6351
6352
6353
6354for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6355 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6356 uname
ad6254c5 6357do
ec6a6fbe
AK
6358as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6359{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6360$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6361if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6362 $as_echo_n "(cached) " >&6
795ca3e5 6363else
ad6254c5 6364 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6365/* confdefs.h. */
6366_ACEOF
6367cat confdefs.h >>conftest.$ac_ext
6368cat >>conftest.$ac_ext <<_ACEOF
6369/* end confdefs.h. */
8a2fc586
AK
6370/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6372#define $ac_func innocuous_$ac_func
6373
ad6254c5
AK
6374/* System header to define __stub macros and hopefully few prototypes,
6375 which can conflict with char $ac_func (); below.
6376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6377 <limits.h> exists even on freestanding compilers. */
8a2fc586 6378
ad6254c5
AK
6379#ifdef __STDC__
6380# include <limits.h>
6381#else
6382# include <assert.h>
6383#endif
8a2fc586
AK
6384
6385#undef $ac_func
6386
7a197a62
AK
6387/* Override any GCC internal prototype to avoid an error.
6388 Use char because int might match the return type of a GCC
6389 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6390#ifdef __cplusplus
6391extern "C"
ad6254c5 6392#endif
ad6254c5
AK
6393char $ac_func ();
6394/* The GNU C library defines this for functions which it implements
6395 to always fail with ENOSYS. Some functions are actually named
6396 something starting with __ and the normal name is an alias. */
7a197a62 6397#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6398choke me
ad6254c5
AK
6399#endif
6400
6401int
6402main ()
6403{
7a197a62 6404return $ac_func ();
ad6254c5
AK
6405 ;
6406 return 0;
6407}
6408_ACEOF
6409rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6410if { (ac_try="$ac_link"
6411case "(($ac_try" in
6412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6414esac
ec6a6fbe
AK
6415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6416$as_echo "$ac_try_echo") >&5
7a197a62 6417 (eval "$ac_link") 2>conftest.er1
ad6254c5 6418 ac_status=$?
8a2fc586
AK
6419 grep -v '^ *+' conftest.er1 >conftest.err
6420 rm -f conftest.er1
6421 cat conftest.err >&5
ec6a6fbe 6422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6423 (exit $ac_status); } && {
6424 test -z "$ac_c_werror_flag" ||
6425 test ! -s conftest.err
ec6a6fbe
AK
6426 } && test -s conftest$ac_exeext && {
6427 test "$cross_compiling" = yes ||
6428 $as_test_x conftest$ac_exeext
6429 }; then
fc54be10
AK
6430 eval "$as_ac_var=yes"
6431else
ec6a6fbe 6432 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
6433sed 's/^/| /' conftest.$ac_ext >&5
6434
6435 eval "$as_ac_var=no"
6436fi
6437
ec6a6fbe 6438rm -rf conftest.dSYM
25fbec5b 6439rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
6440 conftest$ac_exeext conftest.$ac_ext
6441fi
ec6a6fbe
AK
6442ac_res=`eval 'as_val=${'$as_ac_var'}
6443 $as_echo "$as_val"'`
6444 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6445$as_echo "$ac_res" >&6; }
6446as_val=`eval 'as_val=${'$as_ac_var'}
6447 $as_echo "$as_val"'`
6448 if test "x$as_val" = x""yes; then
ad6254c5 6449 cat >>confdefs.h <<_ACEOF
ec6a6fbe 6450#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6451_ACEOF
6452
6453else
ec6a6fbe
AK
6454 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6455$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
6456 { (exit 1); exit 1; }; }
6457fi
6458done
795ca3e5 6459
ad6254c5
AK
6460# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6461# for constant arguments. Useless!
ec6a6fbe
AK
6462{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6463$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 6464if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 6465 $as_echo_n "(cached) " >&6
ad6254c5
AK
6466else
6467 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6468/* confdefs.h. */
6469_ACEOF
6470cat confdefs.h >>conftest.$ac_ext
6471cat >>conftest.$ac_ext <<_ACEOF
6472/* end confdefs.h. */
6473#include <alloca.h>
6474int
6475main ()
6476{
6477char *p = (char *) alloca (2 * sizeof (int));
7a197a62 6478 if (p) return 0;
ad6254c5
AK
6479 ;
6480 return 0;
6481}
6482_ACEOF
6483rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6484if { (ac_try="$ac_link"
6485case "(($ac_try" in
6486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6487 *) ac_try_echo=$ac_try;;
6488esac
ec6a6fbe
AK
6489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6490$as_echo "$ac_try_echo") >&5
7a197a62 6491 (eval "$ac_link") 2>conftest.er1
ad6254c5 6492 ac_status=$?
8a2fc586
AK
6493 grep -v '^ *+' conftest.er1 >conftest.err
6494 rm -f conftest.er1
6495 cat conftest.err >&5
ec6a6fbe 6496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6497 (exit $ac_status); } && {
6498 test -z "$ac_c_werror_flag" ||
6499 test ! -s conftest.err
ec6a6fbe
AK
6500 } && test -s conftest$ac_exeext && {
6501 test "$cross_compiling" = yes ||
6502 $as_test_x conftest$ac_exeext
6503 }; then
ad6254c5
AK
6504 ac_cv_working_alloca_h=yes
6505else
ec6a6fbe 6506 $as_echo "$as_me: failed program was:" >&5
ad6254c5 6507sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 6508
7a197a62 6509 ac_cv_working_alloca_h=no
ad6254c5 6510fi
7a197a62 6511
ec6a6fbe 6512rm -rf conftest.dSYM
25fbec5b 6513rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6514 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6515fi
ec6a6fbe
AK
6516{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6517$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
6518if test $ac_cv_working_alloca_h = yes; then
6519
6520cat >>confdefs.h <<\_ACEOF
6521#define HAVE_ALLOCA_H 1
6522_ACEOF
6523
6524fi
6525
ec6a6fbe
AK
6526{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
6527$as_echo_n "checking for alloca... " >&6; }
ad6254c5 6528if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 6529 $as_echo_n "(cached) " >&6
ad6254c5
AK
6530else
6531 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6532/* confdefs.h. */
6533_ACEOF
6534cat confdefs.h >>conftest.$ac_ext
6535cat >>conftest.$ac_ext <<_ACEOF
6536/* end confdefs.h. */
6537#ifdef __GNUC__
6538# define alloca __builtin_alloca
6539#else
6540# ifdef _MSC_VER
6541# include <malloc.h>
6542# define alloca _alloca
6543# else
25fbec5b 6544# ifdef HAVE_ALLOCA_H
ad6254c5
AK
6545# include <alloca.h>
6546# else
6547# ifdef _AIX
6548 #pragma alloca
6549# else
6550# ifndef alloca /* predefined by HP cc +Olibcalls */
6551char *alloca ();
6552# endif
6553# endif
6554# endif
6555# endif
6556#endif
6557
6558int
6559main ()
6560{
6561char *p = (char *) alloca (1);
7a197a62 6562 if (p) return 0;
ad6254c5
AK
6563 ;
6564 return 0;
6565}
6566_ACEOF
6567rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6568if { (ac_try="$ac_link"
6569case "(($ac_try" in
6570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6571 *) ac_try_echo=$ac_try;;
6572esac
ec6a6fbe
AK
6573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6574$as_echo "$ac_try_echo") >&5
7a197a62 6575 (eval "$ac_link") 2>conftest.er1
ad6254c5 6576 ac_status=$?
8a2fc586
AK
6577 grep -v '^ *+' conftest.er1 >conftest.err
6578 rm -f conftest.er1
6579 cat conftest.err >&5
ec6a6fbe 6580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6581 (exit $ac_status); } && {
6582 test -z "$ac_c_werror_flag" ||
6583 test ! -s conftest.err
ec6a6fbe
AK
6584 } && test -s conftest$ac_exeext && {
6585 test "$cross_compiling" = yes ||
6586 $as_test_x conftest$ac_exeext
6587 }; then
ad6254c5
AK
6588 ac_cv_func_alloca_works=yes
6589else
ec6a6fbe 6590 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6591sed 's/^/| /' conftest.$ac_ext >&5
6592
7a197a62 6593 ac_cv_func_alloca_works=no
ad6254c5 6594fi
7a197a62 6595
ec6a6fbe 6596rm -rf conftest.dSYM
25fbec5b 6597rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6598 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6599fi
ec6a6fbe
AK
6600{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6601$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6602
6603if test $ac_cv_func_alloca_works = yes; then
6604
6605cat >>confdefs.h <<\_ACEOF
6606#define HAVE_ALLOCA 1
6607_ACEOF
6608
6609else
6610 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6611# that cause trouble. Some versions do not even contain alloca or
6612# contain a buggy version. If you still want to use their alloca,
6613# use ar to extract alloca.o from them instead of compiling alloca.c.
6614
7a197a62 6615ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6616
6617cat >>confdefs.h <<\_ACEOF
6618#define C_ALLOCA 1
6619_ACEOF
6620
6621
ec6a6fbe
AK
6622{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6623$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 6624if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 6625 $as_echo_n "(cached) " >&6
ad6254c5
AK
6626else
6627 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6628/* confdefs.h. */
6629_ACEOF
6630cat confdefs.h >>conftest.$ac_ext
6631cat >>conftest.$ac_ext <<_ACEOF
6632/* end confdefs.h. */
7a197a62 6633#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6634webecray
6635#else
6636wenotbecray
6637#endif
6638
6639_ACEOF
795ca3e5 6640if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6641 $EGREP "webecray" >/dev/null 2>&1; then
6642 ac_cv_os_cray=yes
6643else
6644 ac_cv_os_cray=no
795ca3e5
AK
6645fi
6646rm -f conftest*
6647
795ca3e5 6648fi
ec6a6fbe
AK
6649{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6650$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
6651if test $ac_cv_os_cray = yes; then
6652 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
6653 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6654{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6655$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6656if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6657 $as_echo_n "(cached) " >&6
ad6254c5
AK
6658else
6659 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6660/* confdefs.h. */
6661_ACEOF
6662cat confdefs.h >>conftest.$ac_ext
6663cat >>conftest.$ac_ext <<_ACEOF
6664/* end confdefs.h. */
8a2fc586
AK
6665/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6667#define $ac_func innocuous_$ac_func
6668
ad6254c5
AK
6669/* System header to define __stub macros and hopefully few prototypes,
6670 which can conflict with char $ac_func (); below.
6671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6672 <limits.h> exists even on freestanding compilers. */
8a2fc586 6673
ad6254c5
AK
6674#ifdef __STDC__
6675# include <limits.h>
6676#else
6677# include <assert.h>
6678#endif
8a2fc586
AK
6679
6680#undef $ac_func
6681
7a197a62
AK
6682/* Override any GCC internal prototype to avoid an error.
6683 Use char because int might match the return type of a GCC
6684 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6685#ifdef __cplusplus
6686extern "C"
ad6254c5 6687#endif
ad6254c5
AK
6688char $ac_func ();
6689/* The GNU C library defines this for functions which it implements
6690 to always fail with ENOSYS. Some functions are actually named
6691 something starting with __ and the normal name is an alias. */
7a197a62 6692#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6693choke me
ad6254c5
AK
6694#endif
6695
6696int
6697main ()
6698{
7a197a62 6699return $ac_func ();
ad6254c5
AK
6700 ;
6701 return 0;
6702}
6703_ACEOF
6704rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6705if { (ac_try="$ac_link"
6706case "(($ac_try" in
6707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6708 *) ac_try_echo=$ac_try;;
6709esac
ec6a6fbe
AK
6710eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6711$as_echo "$ac_try_echo") >&5
7a197a62 6712 (eval "$ac_link") 2>conftest.er1
ad6254c5 6713 ac_status=$?
8a2fc586
AK
6714 grep -v '^ *+' conftest.er1 >conftest.err
6715 rm -f conftest.er1
6716 cat conftest.err >&5
ec6a6fbe 6717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6718 (exit $ac_status); } && {
6719 test -z "$ac_c_werror_flag" ||
6720 test ! -s conftest.err
ec6a6fbe
AK
6721 } && test -s conftest$ac_exeext && {
6722 test "$cross_compiling" = yes ||
6723 $as_test_x conftest$ac_exeext
6724 }; then
ad6254c5
AK
6725 eval "$as_ac_var=yes"
6726else
ec6a6fbe 6727 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6728sed 's/^/| /' conftest.$ac_ext >&5
6729
7a197a62 6730 eval "$as_ac_var=no"
ad6254c5 6731fi
7a197a62 6732
ec6a6fbe 6733rm -rf conftest.dSYM
25fbec5b 6734rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6735 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6736fi
ec6a6fbe
AK
6737ac_res=`eval 'as_val=${'$as_ac_var'}
6738 $as_echo "$as_val"'`
6739 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6740$as_echo "$ac_res" >&6; }
6741as_val=`eval 'as_val=${'$as_ac_var'}
6742 $as_echo "$as_val"'`
6743 if test "x$as_val" = x""yes; then
80992638 6744
ad6254c5
AK
6745cat >>confdefs.h <<_ACEOF
6746#define CRAY_STACKSEG_END $ac_func
6747_ACEOF
6748
6749 break
6750fi
6751
6752 done
6753fi
6754
ec6a6fbe
AK
6755{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6756$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 6757if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 6758 $as_echo_n "(cached) " >&6
ad6254c5
AK
6759else
6760 if test "$cross_compiling" = yes; then
6761 ac_cv_c_stack_direction=0
6762else
6763 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6764/* confdefs.h. */
6765_ACEOF
6766cat confdefs.h >>conftest.$ac_ext
6767cat >>conftest.$ac_ext <<_ACEOF
6768/* end confdefs.h. */
7a197a62 6769$ac_includes_default
ad6254c5
AK
6770int
6771find_stack_direction ()
6772{
6773 static char *addr = 0;
6774 auto char dummy;
6775 if (addr == 0)
6776 {
6777 addr = &dummy;
6778 return find_stack_direction ();
6779 }
6780 else
6781 return (&dummy > addr) ? 1 : -1;
6782}
6783
6784int
6785main ()
6786{
7a197a62 6787 return find_stack_direction () < 0;
ad6254c5
AK
6788}
6789_ACEOF
6790rm -f conftest$ac_exeext
7a197a62
AK
6791if { (ac_try="$ac_link"
6792case "(($ac_try" in
6793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6794 *) ac_try_echo=$ac_try;;
6795esac
ec6a6fbe
AK
6796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6797$as_echo "$ac_try_echo") >&5
7a197a62 6798 (eval "$ac_link") 2>&5
ad6254c5 6799 ac_status=$?
ec6a6fbe 6800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6802 { (case "(($ac_try" in
6803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6804 *) ac_try_echo=$ac_try;;
6805esac
ec6a6fbe
AK
6806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6807$as_echo "$ac_try_echo") >&5
7a197a62 6808 (eval "$ac_try") 2>&5
ad6254c5 6809 ac_status=$?
ec6a6fbe 6810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6811 (exit $ac_status); }; }; then
6812 ac_cv_c_stack_direction=1
6813else
ec6a6fbe
AK
6814 $as_echo "$as_me: program exited with status $ac_status" >&5
6815$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6816sed 's/^/| /' conftest.$ac_ext >&5
6817
6818( exit $ac_status )
6819ac_cv_c_stack_direction=-1
6820fi
ec6a6fbe 6821rm -rf conftest.dSYM
7a197a62 6822rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6823fi
7a197a62
AK
6824
6825
ad6254c5 6826fi
ec6a6fbe
AK
6827{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6828$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
6829
6830cat >>confdefs.h <<_ACEOF
6831#define STACK_DIRECTION $ac_cv_c_stack_direction
6832_ACEOF
6833
6834
6835fi
6836
ec6a6fbe
AK
6837{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6838$as_echo_n "checking whether closedir returns void... " >&6; }
ad6254c5 6839if test "${ac_cv_func_closedir_void+set}" = set; then
ec6a6fbe 6840 $as_echo_n "(cached) " >&6
ad6254c5
AK
6841else
6842 if test "$cross_compiling" = yes; then
6843 ac_cv_func_closedir_void=yes
6844else
6845 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6846/* confdefs.h. */
6847_ACEOF
6848cat confdefs.h >>conftest.$ac_ext
6849cat >>conftest.$ac_ext <<_ACEOF
6850/* end confdefs.h. */
6851$ac_includes_default
6852#include <$ac_header_dirent>
6853#ifndef __cplusplus
6854int closedir ();
6855#endif
6856
6857int
6858main ()
6859{
7a197a62 6860return closedir (opendir (".")) != 0;
ad6254c5
AK
6861 ;
6862 return 0;
6863}
6864_ACEOF
6865rm -f conftest$ac_exeext
7a197a62
AK
6866if { (ac_try="$ac_link"
6867case "(($ac_try" in
6868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6869 *) ac_try_echo=$ac_try;;
6870esac
ec6a6fbe
AK
6871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6872$as_echo "$ac_try_echo") >&5
7a197a62 6873 (eval "$ac_link") 2>&5
ad6254c5 6874 ac_status=$?
ec6a6fbe 6875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6877 { (case "(($ac_try" in
6878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6879 *) ac_try_echo=$ac_try;;
6880esac
ec6a6fbe
AK
6881eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6882$as_echo "$ac_try_echo") >&5
7a197a62 6883 (eval "$ac_try") 2>&5
ad6254c5 6884 ac_status=$?
ec6a6fbe 6885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6886 (exit $ac_status); }; }; then
6887 ac_cv_func_closedir_void=no
6888else
ec6a6fbe
AK
6889 $as_echo "$as_me: program exited with status $ac_status" >&5
6890$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6891sed 's/^/| /' conftest.$ac_ext >&5
6892
6893( exit $ac_status )
6894ac_cv_func_closedir_void=yes
6895fi
ec6a6fbe 6896rm -rf conftest.dSYM
7a197a62 6897rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6898fi
7a197a62
AK
6899
6900
ad6254c5 6901fi
ec6a6fbe
AK
6902{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6903$as_echo "$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
6904if test $ac_cv_func_closedir_void = yes; then
6905
6906cat >>confdefs.h <<\_ACEOF
6907#define CLOSEDIR_VOID 1
6908_ACEOF
6909
6910fi
6911
6912
7a197a62 6913for ac_header in vfork.h
ad6254c5 6914do
ec6a6fbe 6915as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 6916if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
6917 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6918$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 6919if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 6920 $as_echo_n "(cached) " >&6
ad6254c5 6921fi
ec6a6fbe
AK
6922ac_res=`eval 'as_val=${'$as_ac_Header'}
6923 $as_echo "$as_val"'`
6924 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6925$as_echo "$ac_res" >&6; }
ad6254c5
AK
6926else
6927 # Is the header compilable?
ec6a6fbe
AK
6928{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6929$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 6930cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6931/* confdefs.h. */
6932_ACEOF
6933cat confdefs.h >>conftest.$ac_ext
6934cat >>conftest.$ac_ext <<_ACEOF
6935/* end confdefs.h. */
6936$ac_includes_default
6937#include <$ac_header>
6938_ACEOF
6939rm -f conftest.$ac_objext
7a197a62
AK
6940if { (ac_try="$ac_compile"
6941case "(($ac_try" in
6942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6943 *) ac_try_echo=$ac_try;;
6944esac
ec6a6fbe
AK
6945eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6946$as_echo "$ac_try_echo") >&5
7a197a62 6947 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6948 ac_status=$?
8a2fc586
AK
6949 grep -v '^ *+' conftest.er1 >conftest.err
6950 rm -f conftest.er1
6951 cat conftest.err >&5
ec6a6fbe 6952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6953 (exit $ac_status); } && {
6954 test -z "$ac_c_werror_flag" ||
6955 test ! -s conftest.err
6956 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6957 ac_header_compiler=yes
6958else
ec6a6fbe 6959 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6960sed 's/^/| /' conftest.$ac_ext >&5
6961
7a197a62 6962 ac_header_compiler=no
ad6254c5 6963fi
7a197a62
AK
6964
6965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
6966{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6967$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
6968
6969# Is the header present?
ec6a6fbe
AK
6970{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6971$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 6972cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6973/* confdefs.h. */
6974_ACEOF
6975cat confdefs.h >>conftest.$ac_ext
6976cat >>conftest.$ac_ext <<_ACEOF
6977/* end confdefs.h. */
6978#include <$ac_header>
6979_ACEOF
7a197a62
AK
6980if { (ac_try="$ac_cpp conftest.$ac_ext"
6981case "(($ac_try" in
6982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6984esac
ec6a6fbe
AK
6985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6986$as_echo "$ac_try_echo") >&5
7a197a62 6987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
6988 ac_status=$?
6989 grep -v '^ *+' conftest.er1 >conftest.err
6990 rm -f conftest.er1
6991 cat conftest.err >&5
ec6a6fbe 6992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6993 (exit $ac_status); } >/dev/null && {
6994 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6995 test ! -s conftest.err
6996 }; then
ad6254c5
AK
6997 ac_header_preproc=yes
6998else
ec6a6fbe 6999 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7000sed 's/^/| /' conftest.$ac_ext >&5
7001
7002 ac_header_preproc=no
7003fi
7a197a62 7004
ad6254c5 7005rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7006{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7007$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7008
7009# So? What about this header?
8a2fc586
AK
7010case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7011 yes:no: )
ec6a6fbe
AK
7012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7013$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7015$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7016 ac_header_preproc=yes
ad6254c5 7017 ;;
8a2fc586 7018 no:yes:* )
ec6a6fbe
AK
7019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7020$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7022$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7024$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7026$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7028$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7030$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7031
ad6254c5
AK
7032 ;;
7033esac
ec6a6fbe
AK
7034{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7035$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7036if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7037 $as_echo_n "(cached) " >&6
ad6254c5 7038else
8a2fc586 7039 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7040fi
ec6a6fbe
AK
7041ac_res=`eval 'as_val=${'$as_ac_Header'}
7042 $as_echo "$as_val"'`
7043 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7044$as_echo "$ac_res" >&6; }
ad6254c5 7045
795ca3e5 7046fi
ec6a6fbe
AK
7047as_val=`eval 'as_val=${'$as_ac_Header'}
7048 $as_echo "$as_val"'`
7049 if test "x$as_val" = x""yes; then
ad6254c5 7050 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7051#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7052_ACEOF
7053
7054fi
7055
7056done
795ca3e5 7057
ad6254c5
AK
7058
7059
7060for ac_func in fork vfork
7061do
ec6a6fbe
AK
7062as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7063{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7064$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 7065if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7066 $as_echo_n "(cached) " >&6
795ca3e5 7067else
ad6254c5 7068 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7069/* confdefs.h. */
7070_ACEOF
7071cat confdefs.h >>conftest.$ac_ext
7072cat >>conftest.$ac_ext <<_ACEOF
7073/* end confdefs.h. */
8a2fc586
AK
7074/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7076#define $ac_func innocuous_$ac_func
7077
ad6254c5
AK
7078/* System header to define __stub macros and hopefully few prototypes,
7079 which can conflict with char $ac_func (); below.
7080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7081 <limits.h> exists even on freestanding compilers. */
8a2fc586 7082
ad6254c5
AK
7083#ifdef __STDC__
7084# include <limits.h>
7085#else
7086# include <assert.h>
795ca3e5 7087#endif
8a2fc586
AK
7088
7089#undef $ac_func
7090
7a197a62
AK
7091/* Override any GCC internal prototype to avoid an error.
7092 Use char because int might match the return type of a GCC
7093 builtin and then its argument prototype would still apply. */
795ca3e5 7094#ifdef __cplusplus
ad6254c5 7095extern "C"
ad6254c5 7096#endif
ad6254c5
AK
7097char $ac_func ();
7098/* The GNU C library defines this for functions which it implements
7099 to always fail with ENOSYS. Some functions are actually named
7100 something starting with __ and the normal name is an alias. */
7a197a62 7101#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7102choke me
795ca3e5
AK
7103#endif
7104
ad6254c5
AK
7105int
7106main ()
7107{
7a197a62 7108return $ac_func ();
ad6254c5
AK
7109 ;
7110 return 0;
7111}
7112_ACEOF
7113rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7114if { (ac_try="$ac_link"
7115case "(($ac_try" in
7116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117 *) ac_try_echo=$ac_try;;
7118esac
ec6a6fbe
AK
7119eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7120$as_echo "$ac_try_echo") >&5
7a197a62 7121 (eval "$ac_link") 2>conftest.er1
ad6254c5 7122 ac_status=$?
8a2fc586
AK
7123 grep -v '^ *+' conftest.er1 >conftest.err
7124 rm -f conftest.er1
7125 cat conftest.err >&5
ec6a6fbe 7126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7127 (exit $ac_status); } && {
7128 test -z "$ac_c_werror_flag" ||
7129 test ! -s conftest.err
ec6a6fbe
AK
7130 } && test -s conftest$ac_exeext && {
7131 test "$cross_compiling" = yes ||
7132 $as_test_x conftest$ac_exeext
7133 }; then
ad6254c5 7134 eval "$as_ac_var=yes"
795ca3e5 7135else
ec6a6fbe 7136 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7137sed 's/^/| /' conftest.$ac_ext >&5
7138
7a197a62 7139 eval "$as_ac_var=no"
795ca3e5 7140fi
7a197a62 7141
ec6a6fbe 7142rm -rf conftest.dSYM
25fbec5b 7143rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7144 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7145fi
ec6a6fbe
AK
7146ac_res=`eval 'as_val=${'$as_ac_var'}
7147 $as_echo "$as_val"'`
7148 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7149$as_echo "$ac_res" >&6; }
7150as_val=`eval 'as_val=${'$as_ac_var'}
7151 $as_echo "$as_val"'`
7152 if test "x$as_val" = x""yes; then
ad6254c5 7153 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7154#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7155_ACEOF
7156
7157fi
7158done
7159
7160if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
7161 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7162$as_echo_n "checking for working fork... " >&6; }
ad6254c5 7163if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 7164 $as_echo_n "(cached) " >&6
ad6254c5
AK
7165else
7166 if test "$cross_compiling" = yes; then
7167 ac_cv_func_fork_works=cross
7168else
7169 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
7170/* confdefs.h. */
7171_ACEOF
7172cat confdefs.h >>conftest.$ac_ext
7173cat >>conftest.$ac_ext <<_ACEOF
7174/* end confdefs.h. */
7175$ac_includes_default
7176int
7177main ()
7178{
7179
7180 /* By Ruediger Kuhlmann. */
7181 return fork () < 0;
7182
7183 ;
7184 return 0;
7185}
ad6254c5
AK
7186_ACEOF
7187rm -f conftest$ac_exeext
7a197a62
AK
7188if { (ac_try="$ac_link"
7189case "(($ac_try" in
7190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7191 *) ac_try_echo=$ac_try;;
7192esac
ec6a6fbe
AK
7193eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7194$as_echo "$ac_try_echo") >&5
7a197a62 7195 (eval "$ac_link") 2>&5
ad6254c5 7196 ac_status=$?
ec6a6fbe 7197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7199 { (case "(($ac_try" in
7200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7201 *) ac_try_echo=$ac_try;;
7202esac
ec6a6fbe
AK
7203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7204$as_echo "$ac_try_echo") >&5
7a197a62 7205 (eval "$ac_try") 2>&5
ad6254c5 7206 ac_status=$?
ec6a6fbe 7207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7208 (exit $ac_status); }; }; then
7209 ac_cv_func_fork_works=yes
7210else
ec6a6fbe
AK
7211 $as_echo "$as_me: program exited with status $ac_status" >&5
7212$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7213sed 's/^/| /' conftest.$ac_ext >&5
7214
7215( exit $ac_status )
7216ac_cv_func_fork_works=no
7217fi
ec6a6fbe 7218rm -rf conftest.dSYM
7a197a62 7219rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7220fi
7a197a62
AK
7221
7222
ad6254c5 7223fi
ec6a6fbe
AK
7224{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7225$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
7226
7227else
7228 ac_cv_func_fork_works=$ac_cv_func_fork
7229fi
7230if test "x$ac_cv_func_fork_works" = xcross; then
7231 case $host in
7232 *-*-amigaos* | *-*-msdosdjgpp*)
7233 # Override, as these systems have only a dummy fork() stub
7234 ac_cv_func_fork_works=no
7235 ;;
7236 *)
7237 ac_cv_func_fork_works=yes
7238 ;;
7239 esac
ec6a6fbe
AK
7240 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7241$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7242fi
7243ac_cv_func_vfork_works=$ac_cv_func_vfork
7244if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
7245 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7246$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 7247if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 7248 $as_echo_n "(cached) " >&6
ad6254c5
AK
7249else
7250 if test "$cross_compiling" = yes; then
7251 ac_cv_func_vfork_works=cross
7252else
7253 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7254/* confdefs.h. */
7255_ACEOF
7256cat confdefs.h >>conftest.$ac_ext
7257cat >>conftest.$ac_ext <<_ACEOF
7258/* end confdefs.h. */
7259/* Thanks to Paul Eggert for this test. */
7a197a62 7260$ac_includes_default
ad6254c5 7261#include <sys/wait.h>
25fbec5b 7262#ifdef HAVE_VFORK_H
ad6254c5
AK
7263# include <vfork.h>
7264#endif
7265/* On some sparc systems, changes by the child to local and incoming
7266 argument registers are propagated back to the parent. The compiler
7267 is told about this with #include <vfork.h>, but some compilers
7268 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7269 static variable whose address is put into a register that is
7270 clobbered by the vfork. */
7271static void
7272#ifdef __cplusplus
7273sparc_address_test (int arg)
7274# else
7275sparc_address_test (arg) int arg;
7276#endif
7277{
7278 static pid_t child;
7279 if (!child) {
7280 child = vfork ();
7281 if (child < 0) {
7282 perror ("vfork");
7283 _exit(2);
7284 }
7285 if (!child) {
7286 arg = getpid();
7287 write(-1, "", 0);
7288 _exit (arg);
7289 }
7290 }
7291}
7292
7293int
7294main ()
7295{
7296 pid_t parent = getpid ();
7297 pid_t child;
7298
7299 sparc_address_test (0);
7300
7301 child = vfork ();
7302
7303 if (child == 0) {
7304 /* Here is another test for sparc vfork register problems. This
7305 test uses lots of local variables, at least as many local
7306 variables as main has allocated so far including compiler
7307 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7308 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7309 reuse the register of parent for one of the local variables,
7310 since it will think that parent can't possibly be used any more
7311 in this routine. Assigning to the local variable will thus
7312 munge parent in the parent process. */
7313 pid_t
7314 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7315 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7316 /* Convince the compiler that p..p7 are live; otherwise, it might
7317 use the same hardware register for all 8 local variables. */
7318 if (p != p1 || p != p2 || p != p3 || p != p4
7319 || p != p5 || p != p6 || p != p7)
7320 _exit(1);
7321
7322 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7323 from child file descriptors. If the child closes a descriptor
7324 before it execs or exits, this munges the parent's descriptor
7325 as well. Test for this by closing stdout in the child. */
7326 _exit(close(fileno(stdout)) != 0);
7327 } else {
7328 int status;
7329 struct stat st;
7330
7331 while (wait(&status) != child)
7332 ;
7a197a62 7333 return (
ad6254c5
AK
7334 /* Was there some problem with vforking? */
7335 child < 0
7336
7337 /* Did the child fail? (This shouldn't happen.) */
7338 || status
7339
7340 /* Did the vfork/compiler bug occur? */
7341 || parent != getpid()
7342
7343 /* Did the file descriptor bug occur? */
7344 || fstat(fileno(stdout), &st) != 0
7345 );
7346 }
7347}
7348_ACEOF
7349rm -f conftest$ac_exeext
7a197a62
AK
7350if { (ac_try="$ac_link"
7351case "(($ac_try" in
7352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7353 *) ac_try_echo=$ac_try;;
7354esac
ec6a6fbe
AK
7355eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7356$as_echo "$ac_try_echo") >&5
7a197a62 7357 (eval "$ac_link") 2>&5
ad6254c5 7358 ac_status=$?
ec6a6fbe 7359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7361 { (case "(($ac_try" in
7362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7363 *) ac_try_echo=$ac_try;;
7364esac
ec6a6fbe
AK
7365eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7366$as_echo "$ac_try_echo") >&5
7a197a62 7367 (eval "$ac_try") 2>&5
ad6254c5 7368 ac_status=$?
ec6a6fbe 7369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7370 (exit $ac_status); }; }; then
7371 ac_cv_func_vfork_works=yes
7372else
ec6a6fbe
AK
7373 $as_echo "$as_me: program exited with status $ac_status" >&5
7374$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7375sed 's/^/| /' conftest.$ac_ext >&5
7376
7377( exit $ac_status )
7378ac_cv_func_vfork_works=no
7379fi
ec6a6fbe 7380rm -rf conftest.dSYM
7a197a62 7381rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7382fi
7a197a62
AK
7383
7384
ad6254c5 7385fi
ec6a6fbe
AK
7386{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7387$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
7388
7389fi;
7390if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 7391 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
7392 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7393$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7394fi
7395
7396if test "x$ac_cv_func_vfork_works" = xyes; then
7397
7398cat >>confdefs.h <<\_ACEOF
7399#define HAVE_WORKING_VFORK 1
7400_ACEOF
7401
7402else
7403
7404cat >>confdefs.h <<\_ACEOF
7405#define vfork fork
7406_ACEOF
7407
7408fi
7409if test "x$ac_cv_func_fork_works" = xyes; then
7410
7411cat >>confdefs.h <<\_ACEOF
7412#define HAVE_WORKING_FORK 1
7413_ACEOF
7414
7415fi
7416
ec6a6fbe
AK
7417{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7418$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 7419if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 7420 $as_echo_n "(cached) " >&6
ad6254c5
AK
7421else
7422 rm -f conftest.sym conftest.file
7423echo >conftest.file
7424if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7425 if test "$cross_compiling" = yes; then
7426 ac_cv_func_lstat_dereferences_slashed_symlink=no
7427else
7428 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7429/* confdefs.h. */
7430_ACEOF
7431cat confdefs.h >>conftest.$ac_ext
7432cat >>conftest.$ac_ext <<_ACEOF
7433/* end confdefs.h. */
7434$ac_includes_default
7435int
7436main ()
7437{
7438struct stat sbuf;
7439 /* Linux will dereference the symlink and fail.
8a2fc586
AK
7440 That is better in the sense that it means we will not
7441 have to compile and use the lstat wrapper. */
7a197a62 7442 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
7443 ;
7444 return 0;
7445}
7446_ACEOF
7447rm -f conftest$ac_exeext
7a197a62
AK
7448if { (ac_try="$ac_link"
7449case "(($ac_try" in
7450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7451 *) ac_try_echo=$ac_try;;
7452esac
ec6a6fbe
AK
7453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7454$as_echo "$ac_try_echo") >&5
7a197a62 7455 (eval "$ac_link") 2>&5
ad6254c5 7456 ac_status=$?
ec6a6fbe 7457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7459 { (case "(($ac_try" in
7460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7461 *) ac_try_echo=$ac_try;;
7462esac
ec6a6fbe
AK
7463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7464$as_echo "$ac_try_echo") >&5
7a197a62 7465 (eval "$ac_try") 2>&5
ad6254c5 7466 ac_status=$?
ec6a6fbe 7467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7468 (exit $ac_status); }; }; then
7469 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7470else
ec6a6fbe
AK
7471 $as_echo "$as_me: program exited with status $ac_status" >&5
7472$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7473sed 's/^/| /' conftest.$ac_ext >&5
7474
7475( exit $ac_status )
7476ac_cv_func_lstat_dereferences_slashed_symlink=no
7477fi
ec6a6fbe 7478rm -rf conftest.dSYM
7a197a62 7479rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7480fi
7a197a62
AK
7481
7482
ad6254c5
AK
7483else
7484 # If the `ln -s' command failed, then we probably don't even
7485 # have an lstat function.
7486 ac_cv_func_lstat_dereferences_slashed_symlink=no
7487fi
7488rm -f conftest.sym conftest.file
7489
7490fi
ec6a6fbe
AK
7491{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7492$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
7493
7494test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7495
7496cat >>confdefs.h <<_ACEOF
7497#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7498_ACEOF
7499
7500
7501if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 7502 case " $LIBOBJS " in
8a2fc586 7503 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7504 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7505 ;;
8a2fc586
AK
7506esac
7507
ad6254c5
AK
7508fi
7509
ec6a6fbe
AK
7510{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7511$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 7512if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 7513 $as_echo_n "(cached) " >&6
ad6254c5
AK
7514else
7515 if test "$cross_compiling" = yes; then
7516 ac_cv_func_lstat_empty_string_bug=yes
7517else
7518 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7519/* confdefs.h. */
7520_ACEOF
7521cat confdefs.h >>conftest.$ac_ext
7522cat >>conftest.$ac_ext <<_ACEOF
7523/* end confdefs.h. */
7524$ac_includes_default
7525int
7526main ()
7527{
7528struct stat sbuf;
7a197a62 7529 return lstat ("", &sbuf) == 0;
ad6254c5
AK
7530 ;
7531 return 0;
7532}
7533_ACEOF
7534rm -f conftest$ac_exeext
7a197a62
AK
7535if { (ac_try="$ac_link"
7536case "(($ac_try" in
7537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7538 *) ac_try_echo=$ac_try;;
7539esac
ec6a6fbe
AK
7540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7541$as_echo "$ac_try_echo") >&5
7a197a62 7542 (eval "$ac_link") 2>&5
ad6254c5 7543 ac_status=$?
ec6a6fbe 7544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7546 { (case "(($ac_try" in
7547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7548 *) ac_try_echo=$ac_try;;
7549esac
ec6a6fbe
AK
7550eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7551$as_echo "$ac_try_echo") >&5
7a197a62 7552 (eval "$ac_try") 2>&5
ad6254c5 7553 ac_status=$?
ec6a6fbe 7554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7555 (exit $ac_status); }; }; then
7a197a62 7556 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 7557else
ec6a6fbe
AK
7558 $as_echo "$as_me: program exited with status $ac_status" >&5
7559$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7560sed 's/^/| /' conftest.$ac_ext >&5
7561
7562( exit $ac_status )
7a197a62 7563ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 7564fi
ec6a6fbe 7565rm -rf conftest.dSYM
7a197a62 7566rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7567fi
7a197a62
AK
7568
7569
ad6254c5 7570fi
ec6a6fbe
AK
7571{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7572$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 7573if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 7574 case " $LIBOBJS " in
8a2fc586 7575 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7576 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7577 ;;
8a2fc586
AK
7578esac
7579
ad6254c5
AK
7580
7581cat >>confdefs.h <<_ACEOF
7582#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7583_ACEOF
7584
7585fi
7586
7587
7588for ac_header in stdlib.h
7589do
ec6a6fbe 7590as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7591if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7592 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7593$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7594if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7595 $as_echo_n "(cached) " >&6
ad6254c5 7596fi
ec6a6fbe
AK
7597ac_res=`eval 'as_val=${'$as_ac_Header'}
7598 $as_echo "$as_val"'`
7599 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7600$as_echo "$ac_res" >&6; }
ad6254c5
AK
7601else
7602 # Is the header compilable?
ec6a6fbe
AK
7603{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7604$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7605cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7606/* confdefs.h. */
7607_ACEOF
7608cat confdefs.h >>conftest.$ac_ext
7609cat >>conftest.$ac_ext <<_ACEOF
7610/* end confdefs.h. */
7611$ac_includes_default
7612#include <$ac_header>
7613_ACEOF
7614rm -f conftest.$ac_objext
7a197a62
AK
7615if { (ac_try="$ac_compile"
7616case "(($ac_try" in
7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7619esac
ec6a6fbe
AK
7620eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7621$as_echo "$ac_try_echo") >&5
7a197a62 7622 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7623 ac_status=$?
8a2fc586
AK
7624 grep -v '^ *+' conftest.er1 >conftest.err
7625 rm -f conftest.er1
7626 cat conftest.err >&5
ec6a6fbe 7627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7628 (exit $ac_status); } && {
7629 test -z "$ac_c_werror_flag" ||
7630 test ! -s conftest.err
7631 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7632 ac_header_compiler=yes
7633else
ec6a6fbe 7634 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7635sed 's/^/| /' conftest.$ac_ext >&5
7636
7a197a62 7637 ac_header_compiler=no
ad6254c5 7638fi
7a197a62
AK
7639
7640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7641{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7642$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7643
7644# Is the header present?
ec6a6fbe
AK
7645{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7646$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7647cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7648/* confdefs.h. */
7649_ACEOF
7650cat confdefs.h >>conftest.$ac_ext
7651cat >>conftest.$ac_ext <<_ACEOF
7652/* end confdefs.h. */
7653#include <$ac_header>
7654_ACEOF
7a197a62
AK
7655if { (ac_try="$ac_cpp conftest.$ac_ext"
7656case "(($ac_try" in
7657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7658 *) ac_try_echo=$ac_try;;
7659esac
ec6a6fbe
AK
7660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7661$as_echo "$ac_try_echo") >&5
7a197a62 7662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7663 ac_status=$?
7664 grep -v '^ *+' conftest.er1 >conftest.err
7665 rm -f conftest.er1
7666 cat conftest.err >&5
ec6a6fbe 7667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7668 (exit $ac_status); } >/dev/null && {
7669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7670 test ! -s conftest.err
7671 }; then
ad6254c5
AK
7672 ac_header_preproc=yes
7673else
ec6a6fbe 7674 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7675sed 's/^/| /' conftest.$ac_ext >&5
7676
7677 ac_header_preproc=no
7678fi
7a197a62 7679
ad6254c5 7680rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
7681{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7682$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7683
7684# So? What about this header?
8a2fc586
AK
7685case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7686 yes:no: )
ec6a6fbe
AK
7687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7688$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7690$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7691 ac_header_preproc=yes
ad6254c5 7692 ;;
8a2fc586 7693 no:yes:* )
ec6a6fbe
AK
7694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7695$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7697$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7699$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7701$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7703$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7705$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7706
ad6254c5
AK
7707 ;;
7708esac
ec6a6fbe
AK
7709{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7710$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7711if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7712 $as_echo_n "(cached) " >&6
ad6254c5 7713else
8a2fc586 7714 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7715fi
ec6a6fbe
AK
7716ac_res=`eval 'as_val=${'$as_ac_Header'}
7717 $as_echo "$as_val"'`
7718 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7719$as_echo "$ac_res" >&6; }
ad6254c5
AK
7720
7721fi
ec6a6fbe
AK
7722as_val=`eval 'as_val=${'$as_ac_Header'}
7723 $as_echo "$as_val"'`
7724 if test "x$as_val" = x""yes; then
ad6254c5 7725 cat >>confdefs.h <<_ACEOF
ec6a6fbe 7726#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7727_ACEOF
7728
7729fi
7730
7731done
7732
ec6a6fbe
AK
7733{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7734$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 7735if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 7736 $as_echo_n "(cached) " >&6
ad6254c5
AK
7737else
7738 if test "$cross_compiling" = yes; then
7739 ac_cv_func_malloc_0_nonnull=no
7740else
7741 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7742/* confdefs.h. */
7743_ACEOF
7744cat confdefs.h >>conftest.$ac_ext
7745cat >>conftest.$ac_ext <<_ACEOF
7746/* end confdefs.h. */
25fbec5b 7747#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
7748# include <stdlib.h>
7749#else
7750char *malloc ();
7751#endif
7752
7753int
7754main ()
7755{
7a197a62 7756return ! malloc (0);
ad6254c5
AK
7757 ;
7758 return 0;
7759}
7760_ACEOF
7761rm -f conftest$ac_exeext
7a197a62
AK
7762if { (ac_try="$ac_link"
7763case "(($ac_try" in
7764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7765 *) ac_try_echo=$ac_try;;
7766esac
ec6a6fbe
AK
7767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7768$as_echo "$ac_try_echo") >&5
7a197a62 7769 (eval "$ac_link") 2>&5
ad6254c5 7770 ac_status=$?
ec6a6fbe 7771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7773 { (case "(($ac_try" in
7774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7775 *) ac_try_echo=$ac_try;;
7776esac
ec6a6fbe
AK
7777eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7778$as_echo "$ac_try_echo") >&5
7a197a62 7779 (eval "$ac_try") 2>&5
ad6254c5 7780 ac_status=$?
ec6a6fbe 7781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7782 (exit $ac_status); }; }; then
7783 ac_cv_func_malloc_0_nonnull=yes
7784else
ec6a6fbe
AK
7785 $as_echo "$as_me: program exited with status $ac_status" >&5
7786$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7787sed 's/^/| /' conftest.$ac_ext >&5
7788
7789( exit $ac_status )
7790ac_cv_func_malloc_0_nonnull=no
7791fi
ec6a6fbe 7792rm -rf conftest.dSYM
7a197a62 7793rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7794fi
7a197a62
AK
7795
7796
ad6254c5 7797fi
ec6a6fbe
AK
7798{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7799$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
7800if test $ac_cv_func_malloc_0_nonnull = yes; then
7801
7802cat >>confdefs.h <<\_ACEOF
7803#define HAVE_MALLOC 1
7804_ACEOF
7805
7806else
7807 cat >>confdefs.h <<\_ACEOF
7808#define HAVE_MALLOC 0
7809_ACEOF
7810
7a197a62 7811 case " $LIBOBJS " in
8a2fc586 7812 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
7813 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7814 ;;
8a2fc586
AK
7815esac
7816
ad6254c5
AK
7817
7818cat >>confdefs.h <<\_ACEOF
7819#define malloc rpl_malloc
7820_ACEOF
7821
7822fi
7823
7824
7825
ec6a6fbe
AK
7826{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
7827$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 7828if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 7829 $as_echo_n "(cached) " >&6
ad6254c5
AK
7830else
7831 if test "$cross_compiling" = yes; then
7832 ac_cv_func_memcmp_working=no
7833else
7834 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7835/* confdefs.h. */
7836_ACEOF
7837cat confdefs.h >>conftest.$ac_ext
7838cat >>conftest.$ac_ext <<_ACEOF
7839/* end confdefs.h. */
8a2fc586 7840$ac_includes_default
ad6254c5
AK
7841int
7842main ()
7843{
7844
7845 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 7846 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 7847 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 7848 return 1;
ad6254c5
AK
7849
7850 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7851 or more and with at least one buffer not starting on a 4-byte boundary.
7852 William Lewis provided this test program. */
7853 {
7854 char foo[21];
7855 char bar[21];
7856 int i;
7857 for (i = 0; i < 4; i++)
7858 {
8a2fc586
AK
7859 char *a = foo + i;
7860 char *b = bar + i;
7861 strcpy (a, "--------01111111");
7862 strcpy (b, "--------10000000");
7863 if (memcmp (a, b, 16) >= 0)
7a197a62 7864 return 1;
ad6254c5 7865 }
7a197a62 7866 return 0;
ad6254c5
AK
7867 }
7868
7869 ;
7870 return 0;
7871}
7872_ACEOF
7873rm -f conftest$ac_exeext
7a197a62
AK
7874if { (ac_try="$ac_link"
7875case "(($ac_try" in
7876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877 *) ac_try_echo=$ac_try;;
7878esac
ec6a6fbe
AK
7879eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7880$as_echo "$ac_try_echo") >&5
7a197a62 7881 (eval "$ac_link") 2>&5
ad6254c5 7882 ac_status=$?
ec6a6fbe 7883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7885 { (case "(($ac_try" in
7886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887 *) ac_try_echo=$ac_try;;
7888esac
ec6a6fbe
AK
7889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7890$as_echo "$ac_try_echo") >&5
7a197a62 7891 (eval "$ac_try") 2>&5
ad6254c5 7892 ac_status=$?
ec6a6fbe 7893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7894 (exit $ac_status); }; }; then
7895 ac_cv_func_memcmp_working=yes
7896else
ec6a6fbe
AK
7897 $as_echo "$as_me: program exited with status $ac_status" >&5
7898$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7899sed 's/^/| /' conftest.$ac_ext >&5
7900
7901( exit $ac_status )
7902ac_cv_func_memcmp_working=no
7903fi
ec6a6fbe 7904rm -rf conftest.dSYM
7a197a62 7905rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7906fi
7a197a62
AK
7907
7908
ad6254c5 7909fi
ec6a6fbe
AK
7910{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7911$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 7912test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 7913 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
7914 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7915 ;;
8a2fc586
AK
7916esac
7917
ad6254c5
AK
7918
7919
7920
7921for ac_header in stdlib.h unistd.h
7922do
ec6a6fbe 7923as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7924if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
7925 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7926$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7927if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 7928 $as_echo_n "(cached) " >&6
ad6254c5 7929fi
ec6a6fbe
AK
7930ac_res=`eval 'as_val=${'$as_ac_Header'}
7931 $as_echo "$as_val"'`
7932 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7933$as_echo "$ac_res" >&6; }
ad6254c5
AK
7934else
7935 # Is the header compilable?
ec6a6fbe
AK
7936{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7937$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7938cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7939/* confdefs.h. */
7940_ACEOF
7941cat confdefs.h >>conftest.$ac_ext
7942cat >>conftest.$ac_ext <<_ACEOF
7943/* end confdefs.h. */
7944$ac_includes_default
7945#include <$ac_header>
7946_ACEOF
7947rm -f conftest.$ac_objext
7a197a62
AK
7948if { (ac_try="$ac_compile"
7949case "(($ac_try" in
7950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7951 *) ac_try_echo=$ac_try;;
7952esac
ec6a6fbe
AK
7953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7954$as_echo "$ac_try_echo") >&5
7a197a62 7955 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7956 ac_status=$?
8a2fc586
AK
7957 grep -v '^ *+' conftest.er1 >conftest.err
7958 rm -f conftest.er1
7959 cat conftest.err >&5
ec6a6fbe 7960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7961 (exit $ac_status); } && {
7962 test -z "$ac_c_werror_flag" ||
7963 test ! -s conftest.err
7964 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7965 ac_header_compiler=yes
7966else
ec6a6fbe 7967 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7968sed 's/^/| /' conftest.$ac_ext >&5
7969
7a197a62 7970 ac_header_compiler=no
ad6254c5 7971fi
7a197a62
AK
7972
7973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7974{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7975$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7976
7977# Is the header present?
ec6a6fbe
AK
7978{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7979$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7980cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7981/* confdefs.h. */
7982_ACEOF
7983cat confdefs.h >>conftest.$ac_ext
7984cat >>conftest.$ac_ext <<_ACEOF
7985/* end confdefs.h. */
7986#include <$ac_header>
7987_ACEOF
7a197a62
AK
7988if { (ac_try="$ac_cpp conftest.$ac_ext"
7989case "(($ac_try" in
7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 *) ac_try_echo=$ac_try;;
7992esac
ec6a6fbe
AK
7993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7994$as_echo "$ac_try_echo") >&5
7a197a62 7995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7996 ac_status=$?
7997 grep -v '^ *+' conftest.er1 >conftest.err
7998 rm -f conftest.er1
7999 cat conftest.err >&5
ec6a6fbe 8000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8001 (exit $ac_status); } >/dev/null && {
8002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8003 test ! -s conftest.err
8004 }; then
ad6254c5
AK
8005 ac_header_preproc=yes
8006else
ec6a6fbe 8007 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8008sed 's/^/| /' conftest.$ac_ext >&5
8009
8010 ac_header_preproc=no
8011fi
7a197a62 8012
ad6254c5 8013rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
8014{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8015$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
8016
8017# So? What about this header?
8a2fc586
AK
8018case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8019 yes:no: )
ec6a6fbe
AK
8020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8021$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8023$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 8024 ac_header_preproc=yes
ad6254c5 8025 ;;
8a2fc586 8026 no:yes:* )
ec6a6fbe
AK
8027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8028$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8030$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8032$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8034$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8036$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8037 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8038$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 8039
ad6254c5
AK
8040 ;;
8041esac
ec6a6fbe
AK
8042{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8043$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8044if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8045 $as_echo_n "(cached) " >&6
ad6254c5 8046else
8a2fc586 8047 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 8048fi
ec6a6fbe
AK
8049ac_res=`eval 'as_val=${'$as_ac_Header'}
8050 $as_echo "$as_val"'`
8051 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8052$as_echo "$ac_res" >&6; }
ad6254c5
AK
8053
8054fi
ec6a6fbe
AK
8055as_val=`eval 'as_val=${'$as_ac_Header'}
8056 $as_echo "$as_val"'`
8057 if test "x$as_val" = x""yes; then
ad6254c5 8058 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8059#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8060_ACEOF
8061
8062fi
8063
8064done
8065
8066
8067for ac_func in getpagesize
8068do
ec6a6fbe
AK
8069as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8070{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8071$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8072if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8073 $as_echo_n "(cached) " >&6
ad6254c5
AK
8074else
8075 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8076/* confdefs.h. */
8077_ACEOF
8078cat confdefs.h >>conftest.$ac_ext
8079cat >>conftest.$ac_ext <<_ACEOF
8080/* end confdefs.h. */
8a2fc586
AK
8081/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8083#define $ac_func innocuous_$ac_func
8084
ad6254c5
AK
8085/* System header to define __stub macros and hopefully few prototypes,
8086 which can conflict with char $ac_func (); below.
8087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8088 <limits.h> exists even on freestanding compilers. */
8a2fc586 8089
ad6254c5
AK
8090#ifdef __STDC__
8091# include <limits.h>
8092#else
8093# include <assert.h>
8094#endif
8a2fc586
AK
8095
8096#undef $ac_func
8097
7a197a62
AK
8098/* Override any GCC internal prototype to avoid an error.
8099 Use char because int might match the return type of a GCC
8100 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8101#ifdef __cplusplus
8102extern "C"
ad6254c5 8103#endif
ad6254c5
AK
8104char $ac_func ();
8105/* The GNU C library defines this for functions which it implements
8106 to always fail with ENOSYS. Some functions are actually named
8107 something starting with __ and the normal name is an alias. */
7a197a62 8108#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8109choke me
ad6254c5
AK
8110#endif
8111
8112int
8113main ()
8114{
7a197a62 8115return $ac_func ();
ad6254c5
AK
8116 ;
8117 return 0;
8118}
8119_ACEOF
8120rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8121if { (ac_try="$ac_link"
8122case "(($ac_try" in
8123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8125esac
ec6a6fbe
AK
8126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8127$as_echo "$ac_try_echo") >&5
7a197a62 8128 (eval "$ac_link") 2>conftest.er1
ad6254c5 8129 ac_status=$?
8a2fc586
AK
8130 grep -v '^ *+' conftest.er1 >conftest.err
8131 rm -f conftest.er1
8132 cat conftest.err >&5
ec6a6fbe 8133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8134 (exit $ac_status); } && {
8135 test -z "$ac_c_werror_flag" ||
8136 test ! -s conftest.err
ec6a6fbe
AK
8137 } && test -s conftest$ac_exeext && {
8138 test "$cross_compiling" = yes ||
8139 $as_test_x conftest$ac_exeext
8140 }; then
ad6254c5
AK
8141 eval "$as_ac_var=yes"
8142else
ec6a6fbe 8143 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8144sed 's/^/| /' conftest.$ac_ext >&5
8145
7a197a62 8146 eval "$as_ac_var=no"
ad6254c5 8147fi
7a197a62 8148
ec6a6fbe 8149rm -rf conftest.dSYM
25fbec5b 8150rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8151 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8152fi
ec6a6fbe
AK
8153ac_res=`eval 'as_val=${'$as_ac_var'}
8154 $as_echo "$as_val"'`
8155 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8156$as_echo "$ac_res" >&6; }
8157as_val=`eval 'as_val=${'$as_ac_var'}
8158 $as_echo "$as_val"'`
8159 if test "x$as_val" = x""yes; then
ad6254c5 8160 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8161#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8162_ACEOF
8163
8164fi
8165done
8166
ec6a6fbe
AK
8167{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8168$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 8169if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 8170 $as_echo_n "(cached) " >&6
ad6254c5
AK
8171else
8172 if test "$cross_compiling" = yes; then
8173 ac_cv_func_mmap_fixed_mapped=no
8174else
8175 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8176/* confdefs.h. */
8177_ACEOF
8178cat confdefs.h >>conftest.$ac_ext
8179cat >>conftest.$ac_ext <<_ACEOF
8180/* end confdefs.h. */
8181$ac_includes_default
8182/* malloc might have been renamed as rpl_malloc. */
8183#undef malloc
8184
8185/* Thanks to Mike Haertel and Jim Avera for this test.
8186 Here is a matrix of mmap possibilities:
8187 mmap private not fixed
8188 mmap private fixed at somewhere currently unmapped
8189 mmap private fixed at somewhere already mapped
8190 mmap shared not fixed
8191 mmap shared fixed at somewhere currently unmapped
8192 mmap shared fixed at somewhere already mapped
8193 For private mappings, we should verify that changes cannot be read()
8194 back from the file, nor mmap's back from the file at a different
8195 address. (There have been systems where private was not correctly
8196 implemented like the infamous i386 svr4.0, and systems where the
8197 VM page cache was not coherent with the file system buffer cache
8198 like early versions of FreeBSD and possibly contemporary NetBSD.)
8199 For shared mappings, we should conversely verify that changes get
8200 propagated back to all the places they're supposed to be.
8201
8202 Grep wants private fixed already mapped.
8203 The main things grep needs to know about mmap are:
8204 * does it exist and is it safe to write into the mmap'd area
8205 * how to use it (BSD variants) */
8206
8207#include <fcntl.h>
8208#include <sys/mman.h>
8209
25fbec5b 8210#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
8211char *malloc ();
8212#endif
8213
8214/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 8215#ifndef HAVE_GETPAGESIZE
ad6254c5 8216/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 8217# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
8218# define HAVE_SYS_PARAM_H 1
8219# endif
8220
8221# ifdef _SC_PAGESIZE
8222# define getpagesize() sysconf(_SC_PAGESIZE)
8223# else /* no _SC_PAGESIZE */
25fbec5b 8224# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
8225# include <sys/param.h>
8226# ifdef EXEC_PAGESIZE
8227# define getpagesize() EXEC_PAGESIZE
8228# else /* no EXEC_PAGESIZE */
8229# ifdef NBPG
8230# define getpagesize() NBPG * CLSIZE
8231# ifndef CLSIZE
8232# define CLSIZE 1
8233# endif /* no CLSIZE */
8234# else /* no NBPG */
8235# ifdef NBPC
8236# define getpagesize() NBPC
8237# else /* no NBPC */
8238# ifdef PAGESIZE
8239# define getpagesize() PAGESIZE
8240# endif /* PAGESIZE */
8241# endif /* no NBPC */
8242# endif /* no NBPG */
8243# endif /* no EXEC_PAGESIZE */
8244# else /* no HAVE_SYS_PARAM_H */
8245# define getpagesize() 8192 /* punt totally */
8246# endif /* no HAVE_SYS_PARAM_H */
8247# endif /* no _SC_PAGESIZE */
8248
8249#endif /* no HAVE_GETPAGESIZE */
8250
8251int
8252main ()
8253{
8254 char *data, *data2, *data3;
8255 int i, pagesize;
8256 int fd;
8257
8258 pagesize = getpagesize ();
8259
8260 /* First, make a file with some known garbage in it. */
8261 data = (char *) malloc (pagesize);
8262 if (!data)
7a197a62 8263 return 1;
ad6254c5
AK
8264 for (i = 0; i < pagesize; ++i)
8265 *(data + i) = rand ();
8266 umask (0);
8267 fd = creat ("conftest.mmap", 0600);
8268 if (fd < 0)
7a197a62 8269 return 1;
ad6254c5 8270 if (write (fd, data, pagesize) != pagesize)
7a197a62 8271 return 1;
ad6254c5
AK
8272 close (fd);
8273
8274 /* Next, try to mmap the file at a fixed address which already has
8275 something else allocated at it. If we can, also make sure that
8276 we see the same garbage. */
8277 fd = open ("conftest.mmap", O_RDWR);
8278 if (fd < 0)
7a197a62 8279 return 1;
ad6254c5
AK
8280 data2 = (char *) malloc (2 * pagesize);
8281 if (!data2)
7a197a62
AK
8282 return 1;
8283 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 8284 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 8285 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 8286 return 1;
ad6254c5
AK
8287 for (i = 0; i < pagesize; ++i)
8288 if (*(data + i) != *(data2 + i))
7a197a62 8289 return 1;
ad6254c5
AK
8290
8291 /* Finally, make sure that changes to the mapped area do not
8292 percolate back to the file as seen by read(). (This is a bug on
8293 some variants of i386 svr4.0.) */
8294 for (i = 0; i < pagesize; ++i)
8295 *(data2 + i) = *(data2 + i) + 1;
8296 data3 = (char *) malloc (pagesize);
8297 if (!data3)
7a197a62 8298 return 1;
ad6254c5 8299 if (read (fd, data3, pagesize) != pagesize)
7a197a62 8300 return 1;
ad6254c5
AK
8301 for (i = 0; i < pagesize; ++i)
8302 if (*(data + i) != *(data3 + i))
7a197a62 8303 return 1;
ad6254c5 8304 close (fd);
7a197a62 8305 return 0;
ad6254c5
AK
8306}
8307_ACEOF
8308rm -f conftest$ac_exeext
7a197a62
AK
8309if { (ac_try="$ac_link"
8310case "(($ac_try" in
8311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312 *) ac_try_echo=$ac_try;;
8313esac
ec6a6fbe
AK
8314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8315$as_echo "$ac_try_echo") >&5
7a197a62 8316 (eval "$ac_link") 2>&5
ad6254c5 8317 ac_status=$?
ec6a6fbe 8318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8320 { (case "(($ac_try" in
8321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8322 *) ac_try_echo=$ac_try;;
8323esac
ec6a6fbe
AK
8324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8325$as_echo "$ac_try_echo") >&5
7a197a62 8326 (eval "$ac_try") 2>&5
ad6254c5 8327 ac_status=$?
ec6a6fbe 8328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8329 (exit $ac_status); }; }; then
8330 ac_cv_func_mmap_fixed_mapped=yes
8331else
ec6a6fbe
AK
8332 $as_echo "$as_me: program exited with status $ac_status" >&5
8333$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8334sed 's/^/| /' conftest.$ac_ext >&5
8335
8336( exit $ac_status )
8337ac_cv_func_mmap_fixed_mapped=no
8338fi
ec6a6fbe 8339rm -rf conftest.dSYM
7a197a62 8340rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8341fi
7a197a62
AK
8342
8343
ad6254c5 8344fi
ec6a6fbe
AK
8345{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8346$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
8347if test $ac_cv_func_mmap_fixed_mapped = yes; then
8348
8349cat >>confdefs.h <<\_ACEOF
8350#define HAVE_MMAP 1
8351_ACEOF
8352
8353fi
8354rm -f conftest.mmap
8355
ec6a6fbe
AK
8356{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8357$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 8358if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 8359 $as_echo_n "(cached) " >&6
ad6254c5
AK
8360else
8361 if test "$cross_compiling" = yes; then
8362 ac_cv_func_stat_empty_string_bug=yes
8363else
8364 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8365/* confdefs.h. */
8366_ACEOF
8367cat confdefs.h >>conftest.$ac_ext
8368cat >>conftest.$ac_ext <<_ACEOF
8369/* end confdefs.h. */
8370$ac_includes_default
8371int
8372main ()
8373{
8374struct stat sbuf;
7a197a62 8375 return stat ("", &sbuf) == 0;
ad6254c5
AK
8376 ;
8377 return 0;
8378}
8379_ACEOF
8380rm -f conftest$ac_exeext
7a197a62
AK
8381if { (ac_try="$ac_link"
8382case "(($ac_try" in
8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384 *) ac_try_echo=$ac_try;;
8385esac
ec6a6fbe
AK
8386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8387$as_echo "$ac_try_echo") >&5
7a197a62 8388 (eval "$ac_link") 2>&5
ad6254c5 8389 ac_status=$?
ec6a6fbe 8390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8392 { (case "(($ac_try" in
8393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8395esac
ec6a6fbe
AK
8396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8397$as_echo "$ac_try_echo") >&5
7a197a62 8398 (eval "$ac_try") 2>&5
ad6254c5 8399 ac_status=$?
ec6a6fbe 8400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8401 (exit $ac_status); }; }; then
7a197a62 8402 ac_cv_func_stat_empty_string_bug=no
ad6254c5 8403else
ec6a6fbe
AK
8404 $as_echo "$as_me: program exited with status $ac_status" >&5
8405$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8406sed 's/^/| /' conftest.$ac_ext >&5
8407
8408( exit $ac_status )
7a197a62 8409ac_cv_func_stat_empty_string_bug=yes
ad6254c5 8410fi
ec6a6fbe 8411rm -rf conftest.dSYM
7a197a62 8412rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8413fi
7a197a62
AK
8414
8415
ad6254c5 8416fi
ec6a6fbe
AK
8417{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8418$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 8419if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 8420 case " $LIBOBJS " in
8a2fc586 8421 *" stat.$ac_objext "* ) ;;
7a197a62
AK
8422 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8423 ;;
8a2fc586
AK
8424esac
8425
ad6254c5
AK
8426
8427cat >>confdefs.h <<_ACEOF
8428#define HAVE_STAT_EMPTY_STRING_BUG 1
8429_ACEOF
8430
8431fi
8432
ec6a6fbe
AK
8433{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8434$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 8435if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 8436 $as_echo_n "(cached) " >&6
ad6254c5
AK
8437else
8438 if test "$cross_compiling" = yes; then
8439 ac_cv_func_strtod=no
8440else
8441 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8442/* confdefs.h. */
8443_ACEOF
8444cat confdefs.h >>conftest.$ac_ext
8445cat >>conftest.$ac_ext <<_ACEOF
8446/* end confdefs.h. */
8447
7a197a62
AK
8448$ac_includes_default
8449#ifndef strtod
ad6254c5 8450double strtod ();
7a197a62 8451#endif
ad6254c5
AK
8452int
8453main()
8454{
8455 {
8456 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8457 char *string = " +69";
8458 char *term;
8459 double value;
8460 value = strtod (string, &term);
8461 if (value != 69 || term != (string + 4))
7a197a62 8462 return 1;
ad6254c5
AK
8463 }
8464
8465 {
8466 /* Under Solaris 2.4, strtod returns the wrong value for the
8467 terminating character under some conditions. */
8468 char *string = "NaN";
8469 char *term;
8470 strtod (string, &term);
8471 if (term != string && *(term - 1) == 0)
7a197a62 8472 return 1;
ad6254c5 8473 }
7a197a62 8474 return 0;
ad6254c5
AK
8475}
8476
8477_ACEOF
8478rm -f conftest$ac_exeext
7a197a62
AK
8479if { (ac_try="$ac_link"
8480case "(($ac_try" in
8481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482 *) ac_try_echo=$ac_try;;
8483esac
ec6a6fbe
AK
8484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8485$as_echo "$ac_try_echo") >&5
7a197a62 8486 (eval "$ac_link") 2>&5
ad6254c5 8487 ac_status=$?
ec6a6fbe 8488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8490 { (case "(($ac_try" in
8491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8492 *) ac_try_echo=$ac_try;;
8493esac
ec6a6fbe
AK
8494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8495$as_echo "$ac_try_echo") >&5
7a197a62 8496 (eval "$ac_try") 2>&5
ad6254c5 8497 ac_status=$?
ec6a6fbe 8498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8499 (exit $ac_status); }; }; then
8500 ac_cv_func_strtod=yes
8501else
ec6a6fbe
AK
8502 $as_echo "$as_me: program exited with status $ac_status" >&5
8503$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8504sed 's/^/| /' conftest.$ac_ext >&5
8505
8506( exit $ac_status )
8507ac_cv_func_strtod=no
8508fi
ec6a6fbe 8509rm -rf conftest.dSYM
7a197a62 8510rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8511fi
7a197a62
AK
8512
8513
ad6254c5 8514fi
ec6a6fbe
AK
8515{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8516$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 8517if test $ac_cv_func_strtod = no; then
7a197a62 8518 case " $LIBOBJS " in
8a2fc586 8519 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
8520 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8521 ;;
8a2fc586
AK
8522esac
8523
ec6a6fbe
AK
8524{ $as_echo "$as_me:$LINENO: checking for pow" >&5
8525$as_echo_n "checking for pow... " >&6; }
ad6254c5 8526if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 8527 $as_echo_n "(cached) " >&6
ad6254c5
AK
8528else
8529 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8530/* confdefs.h. */
8531_ACEOF
8532cat confdefs.h >>conftest.$ac_ext
8533cat >>conftest.$ac_ext <<_ACEOF
8534/* end confdefs.h. */
8a2fc586
AK
8535/* Define pow to an innocuous variant, in case <limits.h> declares pow.
8536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8537#define pow innocuous_pow
8538
ad6254c5
AK
8539/* System header to define __stub macros and hopefully few prototypes,
8540 which can conflict with char pow (); below.
8541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8542 <limits.h> exists even on freestanding compilers. */
8a2fc586 8543
ad6254c5
AK
8544#ifdef __STDC__
8545# include <limits.h>
8546#else
8547# include <assert.h>
8548#endif
8a2fc586
AK
8549
8550#undef pow
8551
7a197a62
AK
8552/* Override any GCC internal prototype to avoid an error.
8553 Use char because int might match the return type of a GCC
8554 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8555#ifdef __cplusplus
8556extern "C"
ad6254c5 8557#endif
ad6254c5
AK
8558char pow ();
8559/* The GNU C library defines this for functions which it implements
8560 to always fail with ENOSYS. Some functions are actually named
8561 something starting with __ and the normal name is an alias. */
7a197a62 8562#if defined __stub_pow || defined __stub___pow
ad6254c5 8563choke me
ad6254c5
AK
8564#endif
8565
8566int
8567main ()
8568{
7a197a62 8569return pow ();
ad6254c5
AK
8570 ;
8571 return 0;
8572}
8573_ACEOF
8574rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8575if { (ac_try="$ac_link"
8576case "(($ac_try" in
8577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8578 *) ac_try_echo=$ac_try;;
8579esac
ec6a6fbe
AK
8580eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8581$as_echo "$ac_try_echo") >&5
7a197a62 8582 (eval "$ac_link") 2>conftest.er1
ad6254c5 8583 ac_status=$?
8a2fc586
AK
8584 grep -v '^ *+' conftest.er1 >conftest.err
8585 rm -f conftest.er1
8586 cat conftest.err >&5
ec6a6fbe 8587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8588 (exit $ac_status); } && {
8589 test -z "$ac_c_werror_flag" ||
8590 test ! -s conftest.err
ec6a6fbe
AK
8591 } && test -s conftest$ac_exeext && {
8592 test "$cross_compiling" = yes ||
8593 $as_test_x conftest$ac_exeext
8594 }; then
ad6254c5
AK
8595 ac_cv_func_pow=yes
8596else
ec6a6fbe 8597 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8598sed 's/^/| /' conftest.$ac_ext >&5
8599
7a197a62 8600 ac_cv_func_pow=no
ad6254c5 8601fi
7a197a62 8602
ec6a6fbe 8603rm -rf conftest.dSYM
25fbec5b 8604rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8605 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8606fi
ec6a6fbe
AK
8607{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8608$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
8609
8610if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
8611 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8612$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 8613if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 8614 $as_echo_n "(cached) " >&6
ad6254c5
AK
8615else
8616 ac_check_lib_save_LIBS=$LIBS
8617LIBS="-lm $LIBS"
8618cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8619/* confdefs.h. */
8620_ACEOF
8621cat confdefs.h >>conftest.$ac_ext
8622cat >>conftest.$ac_ext <<_ACEOF
8623/* end confdefs.h. */
8624
7a197a62
AK
8625/* Override any GCC internal prototype to avoid an error.
8626 Use char because int might match the return type of a GCC
8627 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8628#ifdef __cplusplus
8629extern "C"
8630#endif
ad6254c5
AK
8631char pow ();
8632int
8633main ()
8634{
7a197a62 8635return pow ();
ad6254c5
AK
8636 ;
8637 return 0;
8638}
8639_ACEOF
8640rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8641if { (ac_try="$ac_link"
8642case "(($ac_try" in
8643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8644 *) ac_try_echo=$ac_try;;
8645esac
ec6a6fbe
AK
8646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8647$as_echo "$ac_try_echo") >&5
7a197a62 8648 (eval "$ac_link") 2>conftest.er1
ad6254c5 8649 ac_status=$?
8a2fc586
AK
8650 grep -v '^ *+' conftest.er1 >conftest.err
8651 rm -f conftest.er1
8652 cat conftest.err >&5
ec6a6fbe 8653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8654 (exit $ac_status); } && {
8655 test -z "$ac_c_werror_flag" ||
8656 test ! -s conftest.err
ec6a6fbe
AK
8657 } && test -s conftest$ac_exeext && {
8658 test "$cross_compiling" = yes ||
8659 $as_test_x conftest$ac_exeext
8660 }; then
ad6254c5
AK
8661 ac_cv_lib_m_pow=yes
8662else
ec6a6fbe 8663 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8664sed 's/^/| /' conftest.$ac_ext >&5
8665
7a197a62 8666 ac_cv_lib_m_pow=no
ad6254c5 8667fi
7a197a62 8668
ec6a6fbe 8669rm -rf conftest.dSYM
25fbec5b 8670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8671 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8672LIBS=$ac_check_lib_save_LIBS
d0191583 8673fi
ec6a6fbe
AK
8674{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8675$as_echo "$ac_cv_lib_m_pow" >&6; }
8676if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
8677 POW_LIB=-lm
8678else
ec6a6fbe
AK
8679 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8680$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 8681fi
72b2cb61 8682
d0191583 8683fi
72b2cb61 8684
ad6254c5
AK
8685fi
8686
ad6254c5 8687
d0191583
JM
8688for ac_func in vprintf
8689do
ec6a6fbe
AK
8690as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8691{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8692$as_echo_n "checking for $ac_func... " >&6; }
d0191583 8693if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8694 $as_echo_n "(cached) " >&6
ad6254c5 8695else
d0191583
JM
8696 cat >conftest.$ac_ext <<_ACEOF
8697/* confdefs.h. */
8698_ACEOF
8699cat confdefs.h >>conftest.$ac_ext
8700cat >>conftest.$ac_ext <<_ACEOF
8701/* end confdefs.h. */
8702/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8704#define $ac_func innocuous_$ac_func
7a197a62 8705
d0191583
JM
8706/* System header to define __stub macros and hopefully few prototypes,
8707 which can conflict with char $ac_func (); below.
8708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8709 <limits.h> exists even on freestanding compilers. */
ad6254c5 8710
d0191583
JM
8711#ifdef __STDC__
8712# include <limits.h>
8713#else
8714# include <assert.h>
8715#endif
ad6254c5 8716
d0191583 8717#undef $ac_func
72b2cb61 8718
d0191583
JM
8719/* Override any GCC internal prototype to avoid an error.
8720 Use char because int might match the return type of a GCC
8721 builtin and then its argument prototype would still apply. */
8722#ifdef __cplusplus
8723extern "C"
8724#endif
8725char $ac_func ();
8726/* The GNU C library defines this for functions which it implements
8727 to always fail with ENOSYS. Some functions are actually named
8728 something starting with __ and the normal name is an alias. */
8729#if defined __stub_$ac_func || defined __stub___$ac_func
8730choke me
8731#endif
8732
8733int
8734main ()
8735{
8736return $ac_func ();
8737 ;
8738 return 0;
8739}
72b2cb61 8740_ACEOF
d0191583
JM
8741rm -f conftest.$ac_objext conftest$ac_exeext
8742if { (ac_try="$ac_link"
8743case "(($ac_try" in
8744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8745 *) ac_try_echo=$ac_try;;
8746esac
ec6a6fbe
AK
8747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8748$as_echo "$ac_try_echo") >&5
d0191583
JM
8749 (eval "$ac_link") 2>conftest.er1
8750 ac_status=$?
8751 grep -v '^ *+' conftest.er1 >conftest.err
8752 rm -f conftest.er1
8753 cat conftest.err >&5
ec6a6fbe 8754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8755 (exit $ac_status); } && {
8756 test -z "$ac_c_werror_flag" ||
8757 test ! -s conftest.err
ec6a6fbe
AK
8758 } && test -s conftest$ac_exeext && {
8759 test "$cross_compiling" = yes ||
8760 $as_test_x conftest$ac_exeext
8761 }; then
d0191583
JM
8762 eval "$as_ac_var=yes"
8763else
ec6a6fbe 8764 $as_echo "$as_me: failed program was:" >&5
d0191583 8765sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8766
d0191583 8767 eval "$as_ac_var=no"
ad6254c5
AK
8768fi
8769
ec6a6fbe 8770rm -rf conftest.dSYM
d0191583
JM
8771rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8772 conftest$ac_exeext conftest.$ac_ext
7a197a62 8773fi
ec6a6fbe
AK
8774ac_res=`eval 'as_val=${'$as_ac_var'}
8775 $as_echo "$as_val"'`
8776 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8777$as_echo "$ac_res" >&6; }
8778as_val=`eval 'as_val=${'$as_ac_var'}
8779 $as_echo "$as_val"'`
8780 if test "x$as_val" = x""yes; then
d0191583 8781 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8782#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 8783_ACEOF
7a197a62 8784
ec6a6fbe
AK
8785{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8786$as_echo_n "checking for _doprnt... " >&6; }
d0191583 8787if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 8788 $as_echo_n "(cached) " >&6
ad6254c5 8789else
d0191583
JM
8790 cat >conftest.$ac_ext <<_ACEOF
8791/* confdefs.h. */
8792_ACEOF
8793cat confdefs.h >>conftest.$ac_ext
8794cat >>conftest.$ac_ext <<_ACEOF
8795/* end confdefs.h. */
8796/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8798#define _doprnt innocuous__doprnt
7a197a62 8799
d0191583
JM
8800/* System header to define __stub macros and hopefully few prototypes,
8801 which can conflict with char _doprnt (); below.
8802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8803 <limits.h> exists even on freestanding compilers. */
ad6254c5 8804
d0191583
JM
8805#ifdef __STDC__
8806# include <limits.h>
8807#else
8808# include <assert.h>
8809#endif
72b2cb61 8810
d0191583
JM
8811#undef _doprnt
8812
8813/* Override any GCC internal prototype to avoid an error.
8814 Use char because int might match the return type of a GCC
8815 builtin and then its argument prototype would still apply. */
8816#ifdef __cplusplus
8817extern "C"
8818#endif
8819char _doprnt ();
8820/* The GNU C library defines this for functions which it implements
8821 to always fail with ENOSYS. Some functions are actually named
8822 something starting with __ and the normal name is an alias. */
8823#if defined __stub__doprnt || defined __stub____doprnt
8824choke me
8825#endif
8826
8827int
8828main ()
8829{
8830return _doprnt ();
8831 ;
8832 return 0;
8833}
72b2cb61 8834_ACEOF
d0191583
JM
8835rm -f conftest.$ac_objext conftest$ac_exeext
8836if { (ac_try="$ac_link"
8837case "(($ac_try" in
8838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8839 *) ac_try_echo=$ac_try;;
8840esac
ec6a6fbe
AK
8841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8842$as_echo "$ac_try_echo") >&5
d0191583
JM
8843 (eval "$ac_link") 2>conftest.er1
8844 ac_status=$?
8845 grep -v '^ *+' conftest.er1 >conftest.err
8846 rm -f conftest.er1
8847 cat conftest.err >&5
ec6a6fbe 8848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8849 (exit $ac_status); } && {
8850 test -z "$ac_c_werror_flag" ||
8851 test ! -s conftest.err
ec6a6fbe
AK
8852 } && test -s conftest$ac_exeext && {
8853 test "$cross_compiling" = yes ||
8854 $as_test_x conftest$ac_exeext
8855 }; then
d0191583
JM
8856 ac_cv_func__doprnt=yes
8857else
ec6a6fbe 8858 $as_echo "$as_me: failed program was:" >&5
d0191583 8859sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8860
d0191583 8861 ac_cv_func__doprnt=no
ad6254c5
AK
8862fi
8863
ec6a6fbe 8864rm -rf conftest.dSYM
d0191583
JM
8865rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8866 conftest$ac_exeext conftest.$ac_ext
7a197a62 8867fi
ec6a6fbe
AK
8868{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8869$as_echo "$ac_cv_func__doprnt" >&6; }
8870if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 8871
d0191583
JM
8872cat >>confdefs.h <<\_ACEOF
8873#define HAVE_DOPRNT 1
8874_ACEOF
ad6254c5 8875
7a197a62
AK
8876fi
8877
d0191583
JM
8878fi
8879done
8b1a3214 8880
ad6254c5 8881
7a197a62 8882
9c961554 8883################################################################################
ec6a6fbe
AK
8884{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
8885$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
8886# Check whether --enable-static_link was given.
8887if test "${enable_static_link+set}" = set; then
8888 enableval=$enable_static_link; STATIC_LINK=$enableval
8889else
8890 STATIC_LINK=no
8891fi
8892
ec6a6fbe
AK
8893{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
8894$as_echo "$STATIC_LINK" >&6; }
9c961554 8895
d0191583 8896################################################################################
ad6254c5 8897
ad6254c5
AK
8898
8899################################################################################
ec6a6fbe
AK
8900{ $as_echo "$as_me:$LINENO: checking file owner" >&5
8901$as_echo_n "checking file owner... " >&6; }
d0191583
JM
8902OWNER="root"
8903
8904
8905# Check whether --with-user was given.
8906if test "${with_user+set}" = set; then
8907 withval=$with_user; OWNER="$withval"
7a197a62
AK
8908fi
8909
ec6a6fbe
AK
8910{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
8911$as_echo "$OWNER" >&6; }
ad6254c5 8912
d0191583
JM
8913if test x$OWNER != x; then
8914 OWNER="-o $OWNER"
ad6254c5
AK
8915fi
8916
8917################################################################################
ec6a6fbe
AK
8918{ $as_echo "$as_me:$LINENO: checking group owner" >&5
8919$as_echo_n "checking group owner... " >&6; }
d0191583 8920GROUP="root"
ad6254c5 8921
d0191583
JM
8922# Check whether --with-group was given.
8923if test "${with_group+set}" = set; then
8924 withval=$with_group; GROUP="$withval"
7a197a62
AK
8925fi
8926
ec6a6fbe
AK
8927{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
8928$as_echo "$GROUP" >&6; }
d0191583
JM
8929
8930if test x$GROUP != x; then
8931 GROUP="-g $GROUP"
8932fi
ad6254c5 8933
24bbc4d7 8934################################################################################
ec6a6fbe
AK
8935{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
8936$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
8937
8938
8939# Check whether --with-device-uid was given.
8940if test "${with_device_uid+set}" = set; then
8941 withval=$with_device_uid; DM_DEVICE_UID="$withval"
8942else
8943 DM_DEVICE_UID="0"
8944fi
8945
ec6a6fbe
AK
8946{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
8947$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
8948
8949################################################################################
ec6a6fbe
AK
8950{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
8951$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
8952
8953
8954# Check whether --with-device-gid was given.
8955if test "${with_device_gid+set}" = set; then
8956 withval=$with_device_gid; DM_DEVICE_GID="$withval"
8957else
8958 DM_DEVICE_GID="0"
8959fi
8960
ec6a6fbe
AK
8961{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
8962$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 8963
93bd259b 8964################################################################################
ec6a6fbe
AK
8965{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
8966$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
8967
8968
8969# Check whether --with-device-mode was given.
8970if test "${with_device_mode+set}" = set; then
8971 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
8972else
8973 DM_DEVICE_MODE="0600"
8974fi
8975
ec6a6fbe
AK
8976{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
8977$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 8978
ad6254c5 8979################################################################################
ec6a6fbe
AK
8980{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
8981$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
8982# Check whether --enable-lvm1_fallback was given.
8983if test "${enable_lvm1_fallback+set}" = set; then
8984 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
8985else
8986 LVM1_FALLBACK=no
7a197a62
AK
8987fi
8988
ec6a6fbe
AK
8989{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
8990$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 8991
d0191583 8992if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
8993
8994cat >>confdefs.h <<\_ACEOF
d0191583 8995#define LVM1_FALLBACK 1
72b2cb61
AK
8996_ACEOF
8997
ad6254c5
AK
8998fi
8999
9000################################################################################
ec6a6fbe
AK
9001{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9002$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
9003
9004# Check whether --with-lvm1 was given.
9005if test "${with_lvm1+set}" = set; then
9006 withval=$with_lvm1; LVM1="$withval"
9007else
9008 LVM1="internal"
7a197a62
AK
9009fi
9010
ec6a6fbe
AK
9011{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9012$as_echo "$LVM1" >&6; }
ad6254c5 9013
d0191583 9014if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 9015 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 9016" >&5
ec6a6fbe 9017$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
9018" >&2;}
9019 { (exit 1); exit 1; }; }
9020fi;
9021
9022if test x$LVM1 = xinternal; then
72b2cb61
AK
9023
9024cat >>confdefs.h <<\_ACEOF
d0191583 9025#define LVM1_INTERNAL 1
72b2cb61
AK
9026_ACEOF
9027
ad6254c5
AK
9028fi
9029
9030################################################################################
ec6a6fbe
AK
9031{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9032$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
9033
9034# Check whether --with-pool was given.
9035if test "${with_pool+set}" = set; then
9036 withval=$with_pool; POOL="$withval"
ad6254c5 9037else
d0191583 9038 POOL="internal"
7a197a62
AK
9039fi
9040
ec6a6fbe
AK
9041{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
9042$as_echo "$POOL" >&6; }
ad6254c5 9043
d0191583 9044if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 9045 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 9046" >&5
ec6a6fbe 9047$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
9048" >&2;}
9049 { (exit 1); exit 1; }; }
9050fi;
7a197a62 9051
d0191583
JM
9052if test x$POOL = xinternal; then
9053
9054cat >>confdefs.h <<\_ACEOF
9055#define POOL_INTERNAL 1
9056_ACEOF
9057
9058fi
ad6254c5 9059
06f62ad1 9060################################################################################
ec6a6fbe
AK
9061{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9062$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
9063
9064# Check whether --with-cluster was given.
9065if test "${with_cluster+set}" = set; then
9066 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
9067fi
9068
ec6a6fbe
AK
9069{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9070$as_echo "$CLUSTER" >&6; }
06f62ad1 9071
d0191583 9072if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 9073 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 9074" >&5
ec6a6fbe 9075$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
9076" >&2;}
9077 { (exit 1); exit 1; }; }
d0191583 9078fi;
06f62ad1 9079
d0191583 9080if test x$CLUSTER = xinternal; then
72b2cb61
AK
9081
9082cat >>confdefs.h <<\_ACEOF
d0191583 9083#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
9084_ACEOF
9085
15d91f5a 9086fi
ad6254c5
AK
9087
9088################################################################################
ec6a6fbe
AK
9089{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9090$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 9091
d0191583
JM
9092# Check whether --with-snapshots was given.
9093if test "${with_snapshots+set}" = set; then
9094 withval=$with_snapshots; SNAPSHOTS="$withval"
9095else
9096 SNAPSHOTS="internal"
ad6254c5
AK
9097fi
9098
ec6a6fbe
AK
9099{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9100$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 9101
d0191583 9102if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 9103 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 9104" >&5
ec6a6fbe 9105$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
9106" >&2;}
9107 { (exit 1); exit 1; }; }
9108fi;
9109
9110if test x$SNAPSHOTS = xinternal; then
9111
9112cat >>confdefs.h <<\_ACEOF
9113#define SNAPSHOT_INTERNAL 1
9114_ACEOF
ad6254c5 9115
ad6254c5 9116fi
7a197a62 9117
d0191583 9118################################################################################
ec6a6fbe
AK
9119{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9120$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
9121
9122# Check whether --with-mirrors was given.
9123if test "${with_mirrors+set}" = set; then
9124 withval=$with_mirrors; MIRRORS="$withval"
9125else
9126 MIRRORS="internal"
ad6254c5 9127fi
ad6254c5 9128
ec6a6fbe
AK
9129{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9130$as_echo "$MIRRORS" >&6; }
ad6254c5 9131
d0191583 9132if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 9133 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 9134" >&5
ec6a6fbe 9135$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
9136" >&2;}
9137 { (exit 1); exit 1; }; }
9138fi;
ad6254c5 9139
d0191583 9140if test x$MIRRORS = xinternal; then
ad6254c5 9141
d0191583
JM
9142cat >>confdefs.h <<\_ACEOF
9143#define MIRRORED_INTERNAL 1
ad6254c5 9144_ACEOF
8a2fc586 9145
d0191583 9146fi
8a2fc586 9147
d0191583 9148################################################################################
ec6a6fbe
AK
9149{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9150$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
9151# Check whether --enable-readline was given.
9152if test "${enable_readline+set}" = set; then
9153 enableval=$enable_readline; READLINE=$enableval
9154else
06e459df 9155 READLINE=maybe
d0191583 9156fi
8a2fc586 9157
ec6a6fbe
AK
9158{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9159$as_echo "$READLINE" >&6; }
8a2fc586 9160
d0191583 9161################################################################################
ec6a6fbe
AK
9162{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9163$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
9164# Check whether --enable-realtime was given.
9165if test "${enable_realtime+set}" = set; then
9166 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 9167fi
ad6254c5 9168
ec6a6fbe
AK
9169{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9170$as_echo "$REALTIME" >&6; }
d0191583
JM
9171
9172################################################################################
ec6a6fbe
AK
9173{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9174$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
d0191583
JM
9175
9176# Check whether --with-clvmd was given.
9177if test "${with_clvmd+set}" = set; then
9178 withval=$with_clvmd; CLVMD="$withval"
ad6254c5 9179else
d0191583
JM
9180 CLVMD="none"
9181fi
8a2fc586 9182
d0191583
JM
9183if test x$CLVMD = xyes; then
9184 CLVMD=all
9185fi
ec6a6fbe
AK
9186{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9187$as_echo "$CLVMD" >&6; }
8a2fc586 9188
d0191583
JM
9189if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9190 CLUSTER=internal
9191fi
8a2fc586 9192
e2997b73
AK
9193if [ "x$CLVMD" = xcorosync -o "x$CLVMD" = xall ]; then
9194
9195
9196if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9197 if test -n "$ac_tool_prefix"; then
9198 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9199set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9200{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9201$as_echo_n "checking for $ac_word... " >&6; }
9202if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9203 $as_echo_n "(cached) " >&6
9204else
9205 case $PKG_CONFIG in
9206 [\\/]* | ?:[\\/]*)
9207 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9208 ;;
9209 *)
9210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9211for as_dir in $PATH
9212do
9213 IFS=$as_save_IFS
9214 test -z "$as_dir" && as_dir=.
9215 for ac_exec_ext in '' $ac_executable_extensions; do
9216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9217 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9218 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9219 break 2
9220 fi
9221done
9222done
9223IFS=$as_save_IFS
9224
9225 ;;
9226esac
9227fi
9228PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9229if test -n "$PKG_CONFIG"; then
9230 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9231$as_echo "$PKG_CONFIG" >&6; }
9232else
9233 { $as_echo "$as_me:$LINENO: result: no" >&5
9234$as_echo "no" >&6; }
9235fi
9236
9237
9238fi
9239if test -z "$ac_cv_path_PKG_CONFIG"; then
9240 ac_pt_PKG_CONFIG=$PKG_CONFIG
9241 # Extract the first word of "pkg-config", so it can be a program name with args.
9242set dummy pkg-config; ac_word=$2
9243{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9244$as_echo_n "checking for $ac_word... " >&6; }
9245if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9246 $as_echo_n "(cached) " >&6
9247else
9248 case $ac_pt_PKG_CONFIG in
9249 [\\/]* | ?:[\\/]*)
9250 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9251 ;;
9252 *)
9253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9254for as_dir in $PATH
9255do
9256 IFS=$as_save_IFS
9257 test -z "$as_dir" && as_dir=.
9258 for ac_exec_ext in '' $ac_executable_extensions; do
9259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9260 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9262 break 2
9263 fi
9264done
9265done
9266IFS=$as_save_IFS
9267
9268 ;;
9269esac
9270fi
9271ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9272if test -n "$ac_pt_PKG_CONFIG"; then
9273 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9274$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9275else
9276 { $as_echo "$as_me:$LINENO: result: no" >&5
9277$as_echo "no" >&6; }
9278fi
9279
9280 if test "x$ac_pt_PKG_CONFIG" = x; then
9281 PKG_CONFIG=""
9282 else
9283 case $cross_compiling:$ac_tool_warned in
9284yes:)
9285{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9287ac_tool_warned=yes ;;
9288esac
9289 PKG_CONFIG=$ac_pt_PKG_CONFIG
9290 fi
9291else
9292 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9293fi
9294
9295fi
9296if test -n "$PKG_CONFIG"; then
9297 _pkg_min_version=0.9.0
9298 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9299$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9300 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9301 { $as_echo "$as_me:$LINENO: result: yes" >&5
9302$as_echo "yes" >&6; }
9303 else
9304 { $as_echo "$as_me:$LINENO: result: no" >&5
9305$as_echo "no" >&6; }
9306 PKG_CONFIG=""
9307 fi
9308
9309fi
9310
9311pkg_failed=no
9312{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
9313$as_echo_n "checking for QUORUM... " >&6; }
9314
9315if test -n "$QUORUM_CFLAGS"; then
9316 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
9317 elif test -n "$PKG_CONFIG"; then
9318 if test -n "$PKG_CONFIG" && \
9319 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
9320 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
9321 ac_status=$?
9322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; then
9324 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
9325else
9326 pkg_failed=yes
9327fi
9328 else
9329 pkg_failed=untried
9330fi
9331if test -n "$QUORUM_LIBS"; then
9332 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
9333 elif test -n "$PKG_CONFIG"; then
9334 if test -n "$PKG_CONFIG" && \
9335 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
9336 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
9337 ac_status=$?
9338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; then
9340 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
9341else
9342 pkg_failed=yes
9343fi
9344 else
9345 pkg_failed=untried
9346fi
9347
9348
9349
9350if test $pkg_failed = yes; then
9351
9352if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9353 _pkg_short_errors_supported=yes
9354else
9355 _pkg_short_errors_supported=no
9356fi
9357 if test $_pkg_short_errors_supported = yes; then
9358 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
9359 else
9360 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
9361 fi
9362 # Put the nasty error message in config.log where it belongs
9363 echo "$QUORUM_PKG_ERRORS" >&5
9364
9365 { $as_echo "$as_me:$LINENO: result: no" >&5
9366$as_echo "no" >&6; }
9367 { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5
9368$as_echo "no pkg for quorum library, using -lquorum" >&6; };
9369 QUORUM_LIBS="-lquorum"
9370elif test $pkg_failed = untried; then
9371 { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5
9372$as_echo "no pkg for quorum library, using -lquorum" >&6; };
9373 QUORUM_LIBS="-lquorum"
9374else
9375 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
9376 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
9377 { $as_echo "$as_me:$LINENO: result: yes" >&5
9378$as_echo "yes" >&6; }
9379 :
9380fi
9381
9382pkg_failed=no
9383{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
9384$as_echo_n "checking for CONFDB... " >&6; }
9385
9386if test -n "$CONFDB_CFLAGS"; then
9387 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
9388 elif test -n "$PKG_CONFIG"; then
9389 if test -n "$PKG_CONFIG" && \
9390 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
9391 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
9392 ac_status=$?
9393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; then
9395 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
9396else
9397 pkg_failed=yes
9398fi
9399 else
9400 pkg_failed=untried
9401fi
9402if test -n "$CONFDB_LIBS"; then
9403 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
9404 elif test -n "$PKG_CONFIG"; then
9405 if test -n "$PKG_CONFIG" && \
9406 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
9407 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
9408 ac_status=$?
9409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; then
9411 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
9412else
9413 pkg_failed=yes
9414fi
9415 else
9416 pkg_failed=untried
9417fi
9418
9419
9420
9421if test $pkg_failed = yes; then
9422
9423if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9424 _pkg_short_errors_supported=yes
9425else
9426 _pkg_short_errors_supported=no
9427fi
9428 if test $_pkg_short_errors_supported = yes; then
9429 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
9430 else
9431 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
9432 fi
9433 # Put the nasty error message in config.log where it belongs
9434 echo "$CONFDB_PKG_ERRORS" >&5
9435
9436 { $as_echo "$as_me:$LINENO: result: no" >&5
9437$as_echo "no" >&6; }
9438 { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5
9439$as_echo "no pkg for confdb library, using -lconfdb" >&6; };
9440 CONFDB_LIBS="-lconfdb"
9441elif test $pkg_failed = untried; then
9442 { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5
9443$as_echo "no pkg for confdb library, using -lconfdb" >&6; };
9444 CONFDB_LIBS="-lconfdb"
9445else
9446 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
9447 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
9448 { $as_echo "$as_me:$LINENO: result: yes" >&5
9449$as_echo "yes" >&6; }
9450 :
9451fi
9452
9453pkg_failed=no
9454{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
9455$as_echo_n "checking for CPG... " >&6; }
9456
9457if test -n "$CPG_CFLAGS"; then
9458 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
9459 elif test -n "$PKG_CONFIG"; then
9460 if test -n "$PKG_CONFIG" && \
9461 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
9462 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
9463 ac_status=$?
9464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; then
9466 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
9467else
9468 pkg_failed=yes
9469fi
9470 else
9471 pkg_failed=untried
9472fi
9473if test -n "$CPG_LIBS"; then
9474 pkg_cv_CPG_LIBS="$CPG_LIBS"
9475 elif test -n "$PKG_CONFIG"; then
9476 if test -n "$PKG_CONFIG" && \
9477 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
9478 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
9479 ac_status=$?
9480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); }; then
9482 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
9483else
9484 pkg_failed=yes
9485fi
9486 else
9487 pkg_failed=untried
9488fi
9489
9490
9491
9492if test $pkg_failed = yes; then
9493
9494if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9495 _pkg_short_errors_supported=yes
9496else
9497 _pkg_short_errors_supported=no
9498fi
9499 if test $_pkg_short_errors_supported = yes; then
9500 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
9501 else
9502 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
9503 fi
9504 # Put the nasty error message in config.log where it belongs
9505 echo "$CPG_PKG_ERRORS" >&5
9506
9507 { $as_echo "$as_me:$LINENO: result: no" >&5
9508$as_echo "no" >&6; }
9509 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
9510$as_echo "no pkg for libcpg library, using -lcpg" >&6; };
9511 CPG_LIBS="-lcpg"
9512elif test $pkg_failed = untried; then
9513 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
9514$as_echo "no pkg for libcpg library, using -lcpg" >&6; };
9515 CPG_LIBS="-lcpg"
9516else
9517 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
9518 CPG_LIBS=$pkg_cv_CPG_LIBS
9519 { $as_echo "$as_me:$LINENO: result: yes" >&5
9520$as_echo "yes" >&6; }
9521 :
9522fi
9523fi
9524
d0191583 9525################################################################################
ec6a6fbe
AK
9526{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
9527$as_echo_n "checking whether to enable debugging... " >&6; }
d0191583
JM
9528# Check whether --enable-debug was given.
9529if test "${enable_debug+set}" = set; then
9530 enableval=$enable_debug; DEBUG=$enableval
9531else
9532 DEBUG=no
9533fi
8a2fc586 9534
ec6a6fbe
AK
9535{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
9536$as_echo "$DEBUG" >&6; }
ad6254c5 9537
d0191583
JM
9538if test x$DEBUG = xyes; then
9539 COPTIMISE_FLAG=
fc54be10 9540else
d0191583
JM
9541 CSCOPE_CMD=
9542fi
fc54be10 9543
d0191583 9544################################################################################
ec6a6fbe
AK
9545{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
9546$as_echo_n "checking for C optimisation flag... " >&6; }
d0191583
JM
9547
9548# Check whether --with-optimisation was given.
9549if test "${with_optimisation+set}" = set; then
9550 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
9551fi
9552
ec6a6fbe
AK
9553{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
9554$as_echo "$COPTIMISE_FLAG" >&6; }
fddafd51
ZK
9555
9556################################################################################
ec6a6fbe
AK
9557{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
9558$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
fddafd51
ZK
9559# Check whether --enable-profiling was given.
9560if test "${enable_profiling+set}" = set; then
5556819a 9561 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 9562else
5556819a 9563 PROFILING=no
fddafd51
ZK
9564fi
9565
ec6a6fbe
AK
9566{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
9567$as_echo "$PROFILING" >&6; }
5556819a
AK
9568
9569if test "x$PROFILING" = xyes; then
9570 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
9571 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 9572set dummy lcov; ac_word=$2
ec6a6fbe
AK
9573{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9574$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 9575if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 9576 $as_echo_n "(cached) " >&6
fddafd51
ZK
9577else
9578 case $LCOV in
9579 [\\/]* | ?:[\\/]*)
9580 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
9581 ;;
9582 *)
9583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9584for as_dir in $PATH
9585do
9586 IFS=$as_save_IFS
9587 test -z "$as_dir" && as_dir=.
9588 for ac_exec_ext in '' $ac_executable_extensions; do
9589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9590 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 9591 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
9592 break 2
9593 fi
9594done
9595done
9596IFS=$as_save_IFS
9597
b145d876 9598 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
fddafd51
ZK
9599 ;;
9600esac
9601fi
9602LCOV=$ac_cv_path_LCOV
9603if test -n "$LCOV"; then
ec6a6fbe
AK
9604 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
9605$as_echo "$LCOV" >&6; }
fddafd51 9606else
ec6a6fbe
AK
9607 { $as_echo "$as_me:$LINENO: result: no" >&5
9608$as_echo "no" >&6; }
fddafd51
ZK
9609fi
9610
9611
5556819a 9612 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 9613set dummy genhtml; ac_word=$2
ec6a6fbe
AK
9614{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9615$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 9616if test "${ac_cv_path_GENHTML+set}" = set; then
ec6a6fbe 9617 $as_echo_n "(cached) " >&6
fddafd51
ZK
9618else
9619 case $GENHTML in
9620 [\\/]* | ?:[\\/]*)
9621 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
9622 ;;
9623 *)
9624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9625for as_dir in $PATH
9626do
9627 IFS=$as_save_IFS
9628 test -z "$as_dir" && as_dir=.
9629 for ac_exec_ext in '' $ac_executable_extensions; do
9630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9631 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 9632 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
9633 break 2
9634 fi
9635done
9636done
9637IFS=$as_save_IFS
9638
b145d876 9639 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
fddafd51
ZK
9640 ;;
9641esac
9642fi
9643GENHTML=$ac_cv_path_GENHTML
9644if test -n "$GENHTML"; then
ec6a6fbe
AK
9645 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
9646$as_echo "$GENHTML" >&6; }
fddafd51 9647else
ec6a6fbe
AK
9648 { $as_echo "$as_me:$LINENO: result: no" >&5
9649$as_echo "no" >&6; }
fddafd51
ZK
9650fi
9651
9652
b145d876 9653 if test "$LCOV" = no -o "$GENHTML" = no ; then
ec6a6fbe
AK
9654 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
9655$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
9656 { (exit 1); exit 1; }; }
9657 fi
5556819a 9658fi
d0191583
JM
9659
9660################################################################################
ec6a6fbe
AK
9661{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
9662$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
9663# Check whether --enable-devmapper was given.
9664if test "${enable_devmapper+set}" = set; then
9665 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
9666fi
9667
ec6a6fbe
AK
9668{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
9669$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
9670
9671if test x$DEVMAPPER = xyes; then
ad6254c5
AK
9672
9673cat >>confdefs.h <<\_ACEOF
d0191583 9674#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
9675_ACEOF
9676
9677fi
9678
93bd259b
AK
9679################################################################################
9680# Check whether --enable-compat was given.
9681if test "${enable_compat+set}" = set; then
9682 enableval=$enable_compat; DM_COMPAT=$enableval
9683else
9684 DM_COMPAT=no
9685fi
9686
9687
9688################################################################################
9689# Check whether --enable-ioctl was given.
9690if test "${enable_ioctl+set}" = set; then
9691 enableval=$enable_ioctl; DM_IOCTLS=$enableval
9692fi
9693
9694
d0191583 9695################################################################################
ec6a6fbe
AK
9696{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
9697$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
9698# Check whether --enable-o_direct was given.
9699if test "${enable_o_direct+set}" = set; then
9700 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 9701fi
ad6254c5 9702
ec6a6fbe
AK
9703{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
9704$as_echo "$ODIRECT" >&6; }
ad6254c5 9705
d0191583 9706if test x$ODIRECT = xyes; then
ad6254c5 9707
d0191583
JM
9708cat >>confdefs.h <<\_ACEOF
9709#define O_DIRECT_SUPPORT 1
9710_ACEOF
ad6254c5 9711
d0191583 9712fi
ad6254c5 9713
572fefeb
AK
9714################################################################################
9715{ $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
9716$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
9717# Check whether --enable-applib was given.
9718if test "${enable_applib+set}" = set; then
9719 enableval=$enable_applib; APPLIB=$enableval
9720else
9721 APPLIB=no
9722fi
9723
9724{ $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
9725$as_echo "$APPLIB" >&6; }
9726
9727test x$APPLIB = xyes \
9728 && LVM2APP_LIB=-llvm2app \
9729 || LVM2APP_LIB=
9730
d0191583 9731################################################################################
ec6a6fbe
AK
9732{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
9733$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
9734# Check whether --enable-cmdlib was given.
9735if test "${enable_cmdlib+set}" = set; then
9736 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 9737else
d0191583
JM
9738 CMDLIB=no
9739fi
8a2fc586 9740
ec6a6fbe
AK
9741{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
9742$as_echo "$CMDLIB" >&6; }
8a2fc586 9743
2a9a80c9 9744test x$CMDLIB = xyes \
d179cc7a
JM
9745 && LVM2CMD_LIB=-llvm2cmd \
9746 || LVM2CMD_LIB=
9747
93bd259b
AK
9748################################################################################
9749# Check whether --enable-pkgconfig was given.
9750if test "${enable_pkgconfig+set}" = set; then
9751 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
9752else
9753 PKGCONFIG=no
9754fi
9755
2a9a80c9 9756
d0191583 9757################################################################################
ec6a6fbe
AK
9758{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
9759$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
9760# Check whether --enable-fsadm was given.
9761if test "${enable_fsadm+set}" = set; then
9762 enableval=$enable_fsadm; FSADM=$enableval
9763fi
8a2fc586 9764
ec6a6fbe
AK
9765{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
9766$as_echo "$FSADM" >&6; }
8a2fc586 9767
d0191583 9768################################################################################
ec6a6fbe
AK
9769{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
9770$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
9771# Check whether --enable-dmeventd was given.
9772if test "${enable_dmeventd+set}" = set; then
9773 enableval=$enable_dmeventd; DMEVENTD=$enableval
9774fi
ad6254c5 9775
ec6a6fbe
AK
9776{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
9777$as_echo "$DMEVENTD" >&6; }
ad6254c5 9778
93bd259b
AK
9779BUILD_DMEVENTD=$DMEVENTD
9780
2a9a80c9
PR
9781if test x$DMEVENTD = xyes; then
9782 if test x$MIRRORS != xinternal; then
ec6a6fbe 9783 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 9784 " >&5
ec6a6fbe 9785$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 9786 " >&2;}
d0191583 9787 { (exit 1); exit 1; }; }
2a9a80c9
PR
9788 fi
9789 if test x$CMDLIB = xno; then
ec6a6fbe 9790 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 9791 " >&5
ec6a6fbe 9792$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
9793 " >&2;}
9794 { (exit 1); exit 1; }; }
9795 fi
ad6254c5 9796fi
7a197a62 9797
d0191583
JM
9798if test x$DMEVENTD = xyes; then
9799
9800cat >>confdefs.h <<\_ACEOF
9801#define DMEVENTD 1
ad6254c5
AK
9802_ACEOF
9803
ad6254c5 9804fi
93bd259b
AK
9805
9806################################################################################
9807
ec6a6fbe
AK
9808{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
9809$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 9810if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 9811 $as_echo_n "(cached) " >&6
93bd259b
AK
9812else
9813 ac_check_lib_save_LIBS=$LIBS
9814LIBS="-lc $LIBS"
9815cat >conftest.$ac_ext <<_ACEOF
9816/* confdefs.h. */
9817_ACEOF
9818cat confdefs.h >>conftest.$ac_ext
9819cat >>conftest.$ac_ext <<_ACEOF
9820/* end confdefs.h. */
9821
9822/* Override any GCC internal prototype to avoid an error.
9823 Use char because int might match the return type of a GCC
9824 builtin and then its argument prototype would still apply. */
9825#ifdef __cplusplus
9826extern "C"
9827#endif
9828char getline ();
9829int
9830main ()
9831{
9832return getline ();
9833 ;
9834 return 0;
9835}
9836_ACEOF
9837rm -f conftest.$ac_objext conftest$ac_exeext
9838if { (ac_try="$ac_link"
9839case "(($ac_try" in
9840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9841 *) ac_try_echo=$ac_try;;
9842esac
ec6a6fbe
AK
9843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9844$as_echo "$ac_try_echo") >&5
93bd259b
AK
9845 (eval "$ac_link") 2>conftest.er1
9846 ac_status=$?
9847 grep -v '^ *+' conftest.er1 >conftest.err
9848 rm -f conftest.er1
9849 cat conftest.err >&5
ec6a6fbe 9850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
9851 (exit $ac_status); } && {
9852 test -z "$ac_c_werror_flag" ||
9853 test ! -s conftest.err
ec6a6fbe
AK
9854 } && test -s conftest$ac_exeext && {
9855 test "$cross_compiling" = yes ||
9856 $as_test_x conftest$ac_exeext
9857 }; then
93bd259b
AK
9858 ac_cv_lib_c_getline=yes
9859else
ec6a6fbe 9860 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
9861sed 's/^/| /' conftest.$ac_ext >&5
9862
9863 ac_cv_lib_c_getline=no
9864fi
9865
ec6a6fbe 9866rm -rf conftest.dSYM
93bd259b
AK
9867rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9868 conftest$ac_exeext conftest.$ac_ext
9869LIBS=$ac_check_lib_save_LIBS
9870fi
ec6a6fbe
AK
9871{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
9872$as_echo "$ac_cv_lib_c_getline" >&6; }
9873if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
9874
9875cat >>confdefs.h <<\_ACEOF
9876#define HAVE_GETLINE 1
9877_ACEOF
9878
9879fi
9880
9881
9882################################################################################
9883
ec6a6fbe
AK
9884{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
9885$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 9886if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 9887 $as_echo_n "(cached) " >&6
93bd259b
AK
9888else
9889 ac_check_lib_save_LIBS=$LIBS
9890LIBS="-lc $LIBS"
9891cat >conftest.$ac_ext <<_ACEOF
9892/* confdefs.h. */
9893_ACEOF
9894cat confdefs.h >>conftest.$ac_ext
9895cat >>conftest.$ac_ext <<_ACEOF
9896/* end confdefs.h. */
9897
9898/* Override any GCC internal prototype to avoid an error.
9899 Use char because int might match the return type of a GCC
9900 builtin and then its argument prototype would still apply. */
9901#ifdef __cplusplus
9902extern "C"
9903#endif
9904char canonicalize_file_name ();
9905int
9906main ()
9907{
9908return canonicalize_file_name ();
9909 ;
9910 return 0;
9911}
9912_ACEOF
9913rm -f conftest.$ac_objext conftest$ac_exeext
9914if { (ac_try="$ac_link"
9915case "(($ac_try" in
9916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917 *) ac_try_echo=$ac_try;;
9918esac
ec6a6fbe
AK
9919eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9920$as_echo "$ac_try_echo") >&5
93bd259b
AK
9921 (eval "$ac_link") 2>conftest.er1
9922 ac_status=$?
9923 grep -v '^ *+' conftest.er1 >conftest.err
9924 rm -f conftest.er1
9925 cat conftest.err >&5
ec6a6fbe 9926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
9927 (exit $ac_status); } && {
9928 test -z "$ac_c_werror_flag" ||
9929 test ! -s conftest.err
ec6a6fbe
AK
9930 } && test -s conftest$ac_exeext && {
9931 test "$cross_compiling" = yes ||
9932 $as_test_x conftest$ac_exeext
9933 }; then
93bd259b
AK
9934 ac_cv_lib_c_canonicalize_file_name=yes
9935else
ec6a6fbe 9936 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
9937sed 's/^/| /' conftest.$ac_ext >&5
9938
9939 ac_cv_lib_c_canonicalize_file_name=no
9940fi
9941
ec6a6fbe 9942rm -rf conftest.dSYM
93bd259b
AK
9943rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9944 conftest$ac_exeext conftest.$ac_ext
9945LIBS=$ac_check_lib_save_LIBS
9946fi
ec6a6fbe
AK
9947{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9948$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9949if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
9950
9951cat >>confdefs.h <<\_ACEOF
9952#define HAVE_CANONICALIZE_FILE_NAME 1
9953_ACEOF
9954
9955fi
9956
9957
d0191583
JM
9958################################################################################
9959if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9960 then exec_prefix="";
9961fi;
ad6254c5
AK
9962
9963################################################################################
06e459df 9964if test x$READLINE != xno; then
ec6a6fbe
AK
9965 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
9966$as_echo_n "checking for library containing tgetent... " >&6; }
ad6254c5 9967if test "${ac_cv_search_tgetent+set}" = set; then
ec6a6fbe 9968 $as_echo_n "(cached) " >&6
ad6254c5
AK
9969else
9970 ac_func_search_save_LIBS=$LIBS
ad6254c5 9971cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9972/* confdefs.h. */
9973_ACEOF
9974cat confdefs.h >>conftest.$ac_ext
9975cat >>conftest.$ac_ext <<_ACEOF
9976/* end confdefs.h. */
9977
7a197a62
AK
9978/* Override any GCC internal prototype to avoid an error.
9979 Use char because int might match the return type of a GCC
9980 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9981#ifdef __cplusplus
9982extern "C"
9983#endif
ad6254c5
AK
9984char tgetent ();
9985int
9986main ()
9987{
7a197a62 9988return tgetent ();
ad6254c5
AK
9989 ;
9990 return 0;
9991}
9992_ACEOF
18dcfb69 9993for ac_lib in '' tinfo ncurses curses termcap termlib; do
7a197a62
AK
9994 if test -z "$ac_lib"; then
9995 ac_res="none required"
9996 else
9997 ac_res=-l$ac_lib
9998 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9999 fi
10000 rm -f conftest.$ac_objext conftest$ac_exeext
10001if { (ac_try="$ac_link"
10002case "(($ac_try" in
10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004 *) ac_try_echo=$ac_try;;
10005esac
ec6a6fbe
AK
10006eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10007$as_echo "$ac_try_echo") >&5
7a197a62 10008 (eval "$ac_link") 2>conftest.er1
ad6254c5 10009 ac_status=$?
8a2fc586
AK
10010 grep -v '^ *+' conftest.er1 >conftest.err
10011 rm -f conftest.er1
10012 cat conftest.err >&5
ec6a6fbe 10013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10014 (exit $ac_status); } && {
10015 test -z "$ac_c_werror_flag" ||
10016 test ! -s conftest.err
ec6a6fbe
AK
10017 } && test -s conftest$ac_exeext && {
10018 test "$cross_compiling" = yes ||
10019 $as_test_x conftest$ac_exeext
10020 }; then
7a197a62 10021 ac_cv_search_tgetent=$ac_res
ad6254c5 10022else
ec6a6fbe 10023 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10024sed 's/^/| /' conftest.$ac_ext >&5
10025
ad6254c5 10026
7a197a62 10027fi
ad6254c5 10028
ec6a6fbe 10029rm -rf conftest.dSYM
25fbec5b 10030rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7a197a62
AK
10031 conftest$ac_exeext
10032 if test "${ac_cv_search_tgetent+set}" = set; then
10033 break
ad6254c5 10034fi
7a197a62
AK
10035done
10036if test "${ac_cv_search_tgetent+set}" = set; then
10037 :
10038else
10039 ac_cv_search_tgetent=no
ad6254c5 10040fi
7a197a62 10041rm conftest.$ac_ext
ad6254c5
AK
10042LIBS=$ac_func_search_save_LIBS
10043fi
ec6a6fbe
AK
10044{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10045$as_echo "$ac_cv_search_tgetent" >&6; }
7a197a62
AK
10046ac_res=$ac_cv_search_tgetent
10047if test "$ac_res" != no; then
10048 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
06e459df 10049 tg_found=yes
ad6254c5 10050else
06e459df
JM
10051 tg_found=no
10052fi
10053
10054 test x$READLINE:$tg_found = xyes:no &&
ec6a6fbe 10055 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
ad6254c5
AK
10056--enable-readline option (which is enabled by default). Either disable readline
10057support with --disable-readline or download and install termcap from:
10058 ftp.gnu.org/gnu/termcap
10059Note: if you are using precompiled packages you will also need the development
10060 package as well (which may be called termcap-devel or something similar).
10061Note: (n)curses also seems to work as a substitute for termcap. This was
10062 not found either - but you could try installing that as well.
10063" >&5
ec6a6fbe 10064$as_echo "$as_me: error: termcap could not be found which is required for the
ad6254c5
AK
10065--enable-readline option (which is enabled by default). Either disable readline
10066support with --disable-readline or download and install termcap from:
10067 ftp.gnu.org/gnu/termcap
10068Note: if you are using precompiled packages you will also need the development
10069 package as well (which may be called termcap-devel or something similar).
10070Note: (n)curses also seems to work as a substitute for termcap. This was
10071 not found either - but you could try installing that as well.
10072" >&2;}
10073 { (exit 1); exit 1; }; }
ad6254c5
AK
10074fi
10075
10076################################################################################
ec6a6fbe
AK
10077{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10078$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 10079if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 10080 $as_echo_n "(cached) " >&6
ad6254c5
AK
10081else
10082 ac_check_lib_save_LIBS=$LIBS
10083LIBS="-ldl $LIBS"
10084cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10085/* confdefs.h. */
10086_ACEOF
10087cat confdefs.h >>conftest.$ac_ext
10088cat >>conftest.$ac_ext <<_ACEOF
10089/* end confdefs.h. */
10090
7a197a62
AK
10091/* Override any GCC internal prototype to avoid an error.
10092 Use char because int might match the return type of a GCC
10093 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10094#ifdef __cplusplus
10095extern "C"
10096#endif
ad6254c5
AK
10097char dlopen ();
10098int
10099main ()
10100{
7a197a62 10101return dlopen ();
ad6254c5
AK
10102 ;
10103 return 0;
10104}
10105_ACEOF
10106rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10107if { (ac_try="$ac_link"
10108case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10111esac
ec6a6fbe
AK
10112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10113$as_echo "$ac_try_echo") >&5
7a197a62 10114 (eval "$ac_link") 2>conftest.er1
ad6254c5 10115 ac_status=$?
8a2fc586
AK
10116 grep -v '^ *+' conftest.er1 >conftest.err
10117 rm -f conftest.er1
10118 cat conftest.err >&5
ec6a6fbe 10119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10120 (exit $ac_status); } && {
10121 test -z "$ac_c_werror_flag" ||
10122 test ! -s conftest.err
ec6a6fbe
AK
10123 } && test -s conftest$ac_exeext && {
10124 test "$cross_compiling" = yes ||
10125 $as_test_x conftest$ac_exeext
10126 }; then
ad6254c5
AK
10127 ac_cv_lib_dl_dlopen=yes
10128else
ec6a6fbe 10129 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10130sed 's/^/| /' conftest.$ac_ext >&5
10131
7a197a62 10132 ac_cv_lib_dl_dlopen=no
ad6254c5 10133fi
7a197a62 10134
ec6a6fbe 10135rm -rf conftest.dSYM
25fbec5b 10136rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10137 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10138LIBS=$ac_check_lib_save_LIBS
10139fi
ec6a6fbe
AK
10140{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10141$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10142if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5
AK
10143 HAVE_LIBDL=yes
10144else
10145 HAVE_LIBDL=no
10146fi
10147
10148
7e9e9502 10149if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
10150
10151cat >>confdefs.h <<\_ACEOF
10152#define HAVE_LIBDL 1
10153_ACEOF
10154
ad6254c5
AK
10155 LIBS="-ldl $LIBS"
10156else
10157 HAVE_LIBDL=no
10158fi
10159
10160################################################################################
10161if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
10162 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
10163 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 10164 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 10165" >&5
ec6a6fbe 10166$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
10167" >&2;}
10168 { (exit 1); exit 1; }; }
10169fi
10170
d0191583 10171################################################################################
ec6a6fbe
AK
10172{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
10173$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
10174# Check whether --enable-selinux was given.
10175if test "${enable_selinux+set}" = set; then
10176 enableval=$enable_selinux; SELINUX=$enableval
10177fi
10178
ec6a6fbe
AK
10179{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
10180$as_echo "$SELINUX" >&6; }
d0191583 10181
ad6254c5
AK
10182################################################################################
10183if test x$SELINUX = xyes; then
ec6a6fbe
AK
10184 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
10185$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 10186if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 10187 $as_echo_n "(cached) " >&6
8a2fc586
AK
10188else
10189 ac_check_lib_save_LIBS=$LIBS
10190LIBS="-lsepol $LIBS"
10191cat >conftest.$ac_ext <<_ACEOF
10192/* confdefs.h. */
10193_ACEOF
10194cat confdefs.h >>conftest.$ac_ext
10195cat >>conftest.$ac_ext <<_ACEOF
10196/* end confdefs.h. */
10197
7a197a62
AK
10198/* Override any GCC internal prototype to avoid an error.
10199 Use char because int might match the return type of a GCC
10200 builtin and then its argument prototype would still apply. */
8a2fc586
AK
10201#ifdef __cplusplus
10202extern "C"
10203#endif
8a2fc586
AK
10204char sepol_check_context ();
10205int
10206main ()
10207{
7a197a62 10208return sepol_check_context ();
8a2fc586
AK
10209 ;
10210 return 0;
10211}
10212_ACEOF
10213rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10214if { (ac_try="$ac_link"
10215case "(($ac_try" in
10216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217 *) ac_try_echo=$ac_try;;
10218esac
ec6a6fbe
AK
10219eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10220$as_echo "$ac_try_echo") >&5
7a197a62 10221 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
10222 ac_status=$?
10223 grep -v '^ *+' conftest.er1 >conftest.err
10224 rm -f conftest.er1
10225 cat conftest.err >&5
ec6a6fbe 10226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10227 (exit $ac_status); } && {
10228 test -z "$ac_c_werror_flag" ||
10229 test ! -s conftest.err
ec6a6fbe
AK
10230 } && test -s conftest$ac_exeext && {
10231 test "$cross_compiling" = yes ||
10232 $as_test_x conftest$ac_exeext
10233 }; then
8a2fc586
AK
10234 ac_cv_lib_sepol_sepol_check_context=yes
10235else
ec6a6fbe 10236 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
10237sed 's/^/| /' conftest.$ac_ext >&5
10238
7a197a62 10239 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 10240fi
7a197a62 10241
ec6a6fbe 10242rm -rf conftest.dSYM
25fbec5b 10243rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
10244 conftest$ac_exeext conftest.$ac_ext
10245LIBS=$ac_check_lib_save_LIBS
10246fi
ec6a6fbe
AK
10247{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
10248$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
10249if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586
AK
10250 HAVE_SEPOL=yes
10251else
10252 HAVE_SEPOL=no
10253fi
10254
8a2fc586
AK
10255
10256 if test x$HAVE_SEPOL = xyes; then
d0191583
JM
10257
10258cat >>confdefs.h <<\_ACEOF
10259#define HAVE_SEPOL 1
10260_ACEOF
10261
8a2fc586
AK
10262 LIBS="-lsepol $LIBS"
10263 fi
10264
ec6a6fbe
AK
10265 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
10266$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 10267if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 10268 $as_echo_n "(cached) " >&6
ad6254c5
AK
10269else
10270 ac_check_lib_save_LIBS=$LIBS
10271LIBS="-lselinux $LIBS"
10272cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10273/* confdefs.h. */
10274_ACEOF
10275cat confdefs.h >>conftest.$ac_ext
10276cat >>conftest.$ac_ext <<_ACEOF
10277/* end confdefs.h. */
10278
7a197a62
AK
10279/* Override any GCC internal prototype to avoid an error.
10280 Use char because int might match the return type of a GCC
10281 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10282#ifdef __cplusplus
10283extern "C"
10284#endif
ad6254c5
AK
10285char is_selinux_enabled ();
10286int
10287main ()
10288{
7a197a62 10289return is_selinux_enabled ();
ad6254c5
AK
10290 ;
10291 return 0;
10292}
10293_ACEOF
10294rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10295if { (ac_try="$ac_link"
10296case "(($ac_try" in
10297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298 *) ac_try_echo=$ac_try;;
10299esac
ec6a6fbe
AK
10300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10301$as_echo "$ac_try_echo") >&5
7a197a62 10302 (eval "$ac_link") 2>conftest.er1
ad6254c5 10303 ac_status=$?
8a2fc586
AK
10304 grep -v '^ *+' conftest.er1 >conftest.err
10305 rm -f conftest.er1
10306 cat conftest.err >&5
ec6a6fbe 10307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10308 (exit $ac_status); } && {
10309 test -z "$ac_c_werror_flag" ||
10310 test ! -s conftest.err
ec6a6fbe
AK
10311 } && test -s conftest$ac_exeext && {
10312 test "$cross_compiling" = yes ||
10313 $as_test_x conftest$ac_exeext
10314 }; then
ad6254c5
AK
10315 ac_cv_lib_selinux_is_selinux_enabled=yes
10316else
ec6a6fbe 10317 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10318sed 's/^/| /' conftest.$ac_ext >&5
10319
7a197a62 10320 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 10321fi
7a197a62 10322
ec6a6fbe 10323rm -rf conftest.dSYM
25fbec5b 10324rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10325 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10326LIBS=$ac_check_lib_save_LIBS
10327fi
ec6a6fbe
AK
10328{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
10329$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
10330if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5
AK
10331 HAVE_SELINUX=yes
10332else
10333 HAVE_SELINUX=no
10334fi
10335
ad6254c5
AK
10336
10337 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
10338
10339cat >>confdefs.h <<\_ACEOF
10340#define HAVE_SELINUX 1
10341_ACEOF
10342
ad6254c5
AK
10343 LIBS="-lselinux $LIBS"
10344 else
ec6a6fbe
AK
10345 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
10346$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
66e941e8
JM
10347 fi
10348
d0191583 10349 # With --enable-static_link and selinux enabled, linking
66e941e8
JM
10350 # fails on at least Debian unstable due to unsatisfied references
10351 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
10352 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
10353 lvm_saved_libs=$LIBS
10354 LIBS="$LIBS -static"
ec6a6fbe
AK
10355 { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
10356$as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
66e941e8 10357if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
ec6a6fbe 10358 $as_echo_n "(cached) " >&6
66e941e8
JM
10359else
10360 ac_func_search_save_LIBS=$LIBS
10361cat >conftest.$ac_ext <<_ACEOF
10362/* confdefs.h. */
10363_ACEOF
10364cat confdefs.h >>conftest.$ac_ext
10365cat >>conftest.$ac_ext <<_ACEOF
10366/* end confdefs.h. */
10367
10368/* Override any GCC internal prototype to avoid an error.
10369 Use char because int might match the return type of a GCC
10370 builtin and then its argument prototype would still apply. */
10371#ifdef __cplusplus
10372extern "C"
10373#endif
10374char pthread_mutex_lock ();
10375int
10376main ()
10377{
10378return pthread_mutex_lock ();
10379 ;
10380 return 0;
10381}
10382_ACEOF
10383for ac_lib in '' pthread; do
10384 if test -z "$ac_lib"; then
10385 ac_res="none required"
10386 else
10387 ac_res=-l$ac_lib
10388 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10389 fi
10390 rm -f conftest.$ac_objext conftest$ac_exeext
10391if { (ac_try="$ac_link"
10392case "(($ac_try" in
10393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10394 *) ac_try_echo=$ac_try;;
10395esac
ec6a6fbe
AK
10396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10397$as_echo "$ac_try_echo") >&5
66e941e8
JM
10398 (eval "$ac_link") 2>conftest.er1
10399 ac_status=$?
10400 grep -v '^ *+' conftest.er1 >conftest.err
10401 rm -f conftest.er1
10402 cat conftest.err >&5
ec6a6fbe 10403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10404 (exit $ac_status); } && {
10405 test -z "$ac_c_werror_flag" ||
10406 test ! -s conftest.err
ec6a6fbe
AK
10407 } && test -s conftest$ac_exeext && {
10408 test "$cross_compiling" = yes ||
10409 $as_test_x conftest$ac_exeext
10410 }; then
66e941e8
JM
10411 ac_cv_search_pthread_mutex_lock=$ac_res
10412else
ec6a6fbe 10413 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
10414sed 's/^/| /' conftest.$ac_ext >&5
10415
10416
10417fi
10418
ec6a6fbe 10419rm -rf conftest.dSYM
25fbec5b 10420rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66e941e8
JM
10421 conftest$ac_exeext
10422 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10423 break
10424fi
10425done
10426if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10427 :
10428else
10429 ac_cv_search_pthread_mutex_lock=no
10430fi
10431rm conftest.$ac_ext
10432LIBS=$ac_func_search_save_LIBS
10433fi
ec6a6fbe
AK
10434{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
10435$as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
66e941e8
JM
10436ac_res=$ac_cv_search_pthread_mutex_lock
10437if test "$ac_res" != no; then
10438 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10439 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
10440 LIB_PTHREAD=-lpthread
10441fi
10442
10443 LIBS=$lvm_saved_libs
ad6254c5
AK
10444 fi
10445fi
10446
8b1a3214
AK
10447################################################################################
10448if test x$REALTIME = xyes; then
ec6a6fbe
AK
10449 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
10450$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 10451if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 10452 $as_echo_n "(cached) " >&6
8b1a3214
AK
10453else
10454 ac_check_lib_save_LIBS=$LIBS
10455LIBS="-lrt $LIBS"
10456cat >conftest.$ac_ext <<_ACEOF
10457/* confdefs.h. */
10458_ACEOF
10459cat confdefs.h >>conftest.$ac_ext
10460cat >>conftest.$ac_ext <<_ACEOF
10461/* end confdefs.h. */
10462
7a197a62
AK
10463/* Override any GCC internal prototype to avoid an error.
10464 Use char because int might match the return type of a GCC
10465 builtin and then its argument prototype would still apply. */
8b1a3214
AK
10466#ifdef __cplusplus
10467extern "C"
10468#endif
8b1a3214
AK
10469char clock_gettime ();
10470int
10471main ()
10472{
7a197a62 10473return clock_gettime ();
8b1a3214
AK
10474 ;
10475 return 0;
10476}
10477_ACEOF
10478rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10479if { (ac_try="$ac_link"
10480case "(($ac_try" in
10481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482 *) ac_try_echo=$ac_try;;
10483esac
ec6a6fbe
AK
10484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10485$as_echo "$ac_try_echo") >&5
7a197a62 10486 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
10487 ac_status=$?
10488 grep -v '^ *+' conftest.er1 >conftest.err
10489 rm -f conftest.er1
10490 cat conftest.err >&5
ec6a6fbe 10491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10492 (exit $ac_status); } && {
10493 test -z "$ac_c_werror_flag" ||
10494 test ! -s conftest.err
ec6a6fbe
AK
10495 } && test -s conftest$ac_exeext && {
10496 test "$cross_compiling" = yes ||
10497 $as_test_x conftest$ac_exeext
10498 }; then
8b1a3214
AK
10499 ac_cv_lib_rt_clock_gettime=yes
10500else
ec6a6fbe 10501 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
10502sed 's/^/| /' conftest.$ac_ext >&5
10503
7a197a62 10504 ac_cv_lib_rt_clock_gettime=no
8b1a3214 10505fi
7a197a62 10506
ec6a6fbe 10507rm -rf conftest.dSYM
25fbec5b 10508rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
10509 conftest$ac_exeext conftest.$ac_ext
10510LIBS=$ac_check_lib_save_LIBS
10511fi
ec6a6fbe
AK
10512{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
10513$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
10514if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
10515 HAVE_REALTIME=yes
10516else
10517 HAVE_REALTIME=no
10518fi
10519
8b1a3214
AK
10520
10521 if test x$HAVE_REALTIME = xyes; then
10522
10523cat >>confdefs.h <<\_ACEOF
10524#define HAVE_REALTIME 1
10525_ACEOF
10526
10527 LIBS="-lrt $LIBS"
10528 else
ec6a6fbe
AK
10529 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
10530$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
10531 fi
10532fi
10533
ad6254c5
AK
10534################################################################################
10535
10536for ac_header in getopt.h
10537do
ec6a6fbe 10538as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10539if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
10540 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10541$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10542if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10543 $as_echo_n "(cached) " >&6
ad6254c5 10544fi
ec6a6fbe
AK
10545ac_res=`eval 'as_val=${'$as_ac_Header'}
10546 $as_echo "$as_val"'`
10547 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10548$as_echo "$ac_res" >&6; }
ad6254c5
AK
10549else
10550 # Is the header compilable?
ec6a6fbe
AK
10551{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10552$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 10553cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10554/* confdefs.h. */
10555_ACEOF
10556cat confdefs.h >>conftest.$ac_ext
10557cat >>conftest.$ac_ext <<_ACEOF
10558/* end confdefs.h. */
10559$ac_includes_default
10560#include <$ac_header>
10561_ACEOF
10562rm -f conftest.$ac_objext
7a197a62
AK
10563if { (ac_try="$ac_compile"
10564case "(($ac_try" in
10565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10566 *) ac_try_echo=$ac_try;;
10567esac
ec6a6fbe
AK
10568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10569$as_echo "$ac_try_echo") >&5
7a197a62 10570 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10571 ac_status=$?
8a2fc586
AK
10572 grep -v '^ *+' conftest.er1 >conftest.err
10573 rm -f conftest.er1
10574 cat conftest.err >&5
ec6a6fbe 10575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10576 (exit $ac_status); } && {
10577 test -z "$ac_c_werror_flag" ||
10578 test ! -s conftest.err
10579 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10580 ac_header_compiler=yes
10581else
ec6a6fbe 10582 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10583sed 's/^/| /' conftest.$ac_ext >&5
10584
7a197a62 10585 ac_header_compiler=no
ad6254c5 10586fi
7a197a62
AK
10587
10588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
10589{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10590$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
10591
10592# Is the header present?
ec6a6fbe
AK
10593{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10594$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 10595cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10596/* confdefs.h. */
10597_ACEOF
10598cat confdefs.h >>conftest.$ac_ext
10599cat >>conftest.$ac_ext <<_ACEOF
10600/* end confdefs.h. */
10601#include <$ac_header>
10602_ACEOF
7a197a62
AK
10603if { (ac_try="$ac_cpp conftest.$ac_ext"
10604case "(($ac_try" in
10605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10606 *) ac_try_echo=$ac_try;;
10607esac
ec6a6fbe
AK
10608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10609$as_echo "$ac_try_echo") >&5
7a197a62 10610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10611 ac_status=$?
10612 grep -v '^ *+' conftest.er1 >conftest.err
10613 rm -f conftest.er1
10614 cat conftest.err >&5
ec6a6fbe 10615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10616 (exit $ac_status); } >/dev/null && {
10617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10618 test ! -s conftest.err
10619 }; then
ad6254c5
AK
10620 ac_header_preproc=yes
10621else
ec6a6fbe 10622 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10623sed 's/^/| /' conftest.$ac_ext >&5
10624
10625 ac_header_preproc=no
10626fi
7a197a62 10627
ad6254c5 10628rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
10629{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10630$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
10631
10632# So? What about this header?
8a2fc586
AK
10633case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10634 yes:no: )
ec6a6fbe
AK
10635 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10636$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10638$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10639 ac_header_preproc=yes
ad6254c5 10640 ;;
8a2fc586 10641 no:yes:* )
ec6a6fbe
AK
10642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10643$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10644 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10645$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10647$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10649$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10651$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10653$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10654
ad6254c5
AK
10655 ;;
10656esac
ec6a6fbe
AK
10657{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10658$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10659if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10660 $as_echo_n "(cached) " >&6
ad6254c5 10661else
8a2fc586 10662 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10663fi
ec6a6fbe
AK
10664ac_res=`eval 'as_val=${'$as_ac_Header'}
10665 $as_echo "$as_val"'`
10666 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10667$as_echo "$ac_res" >&6; }
ad6254c5
AK
10668
10669fi
ec6a6fbe
AK
10670as_val=`eval 'as_val=${'$as_ac_Header'}
10671 $as_echo "$as_val"'`
10672 if test "x$as_val" = x""yes; then
ad6254c5 10673 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10674#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 10675_ACEOF
72b2cb61
AK
10676
10677cat >>confdefs.h <<\_ACEOF
10678#define HAVE_GETOPTLONG 1
10679_ACEOF
10680
ad6254c5
AK
10681fi
10682
10683done
10684
10685
10686################################################################################
06e459df 10687if test x$READLINE != xno; then
bc1024f8
JM
10688 rl_found=yes
10689
ec6a6fbe
AK
10690{ $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
10691$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 10692if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 10693 $as_echo_n "(cached) " >&6
ad6254c5
AK
10694else
10695 ac_check_lib_save_LIBS=$LIBS
10696LIBS="-lreadline $LIBS"
10697cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10698/* confdefs.h. */
10699_ACEOF
10700cat confdefs.h >>conftest.$ac_ext
10701cat >>conftest.$ac_ext <<_ACEOF
10702/* end confdefs.h. */
10703
7a197a62
AK
10704/* Override any GCC internal prototype to avoid an error.
10705 Use char because int might match the return type of a GCC
10706 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10707#ifdef __cplusplus
10708extern "C"
10709#endif
ad6254c5
AK
10710char readline ();
10711int
10712main ()
10713{
7a197a62 10714return readline ();
ad6254c5
AK
10715 ;
10716 return 0;
10717}
10718_ACEOF
10719rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10720if { (ac_try="$ac_link"
10721case "(($ac_try" in
10722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723 *) ac_try_echo=$ac_try;;
10724esac
ec6a6fbe
AK
10725eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10726$as_echo "$ac_try_echo") >&5
7a197a62 10727 (eval "$ac_link") 2>conftest.er1
ad6254c5 10728 ac_status=$?
8a2fc586
AK
10729 grep -v '^ *+' conftest.er1 >conftest.err
10730 rm -f conftest.er1
10731 cat conftest.err >&5
ec6a6fbe 10732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10733 (exit $ac_status); } && {
10734 test -z "$ac_c_werror_flag" ||
10735 test ! -s conftest.err
ec6a6fbe
AK
10736 } && test -s conftest$ac_exeext && {
10737 test "$cross_compiling" = yes ||
10738 $as_test_x conftest$ac_exeext
10739 }; then
ad6254c5
AK
10740 ac_cv_lib_readline_readline=yes
10741else
ec6a6fbe 10742 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10743sed 's/^/| /' conftest.$ac_ext >&5
10744
7a197a62 10745 ac_cv_lib_readline_readline=no
ad6254c5 10746fi
7a197a62 10747
ec6a6fbe 10748rm -rf conftest.dSYM
25fbec5b 10749rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10750 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10751LIBS=$ac_check_lib_save_LIBS
10752fi
ec6a6fbe
AK
10753{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
10754$as_echo "$ac_cv_lib_readline_readline" >&6; }
10755if test "x$ac_cv_lib_readline_readline" = x""yes; then
bc1024f8
JM
10756 cat >>confdefs.h <<_ACEOF
10757#define HAVE_LIBREADLINE 1
10758_ACEOF
10759
10760 LIBS="-lreadline $LIBS"
10761
ad6254c5 10762else
06e459df
JM
10763 rl_found=no
10764fi
10765
10766 test x$READLINE:$rl_found = xyes:no &&
ec6a6fbe 10767 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
10768--enable-readline option (which is enabled by default). Either disable readline
10769support with --disable-readline or download and install readline from:
10770 ftp.gnu.org/gnu/readline
10771Note: if you are using precompiled packages you will also need the development
10772package as well (which may be called readline-devel or something similar).
10773" >&5
ec6a6fbe 10774$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
10775--enable-readline option (which is enabled by default). Either disable readline
10776support with --disable-readline or download and install readline from:
10777 ftp.gnu.org/gnu/readline
10778Note: if you are using precompiled packages you will also need the development
10779package as well (which may be called readline-devel or something similar).
10780" >&2;}
10781 { (exit 1); exit 1; }; }
06e459df 10782 if test $rl_found = yes; then
bc1024f8
JM
10783
10784for ac_func in rl_completion_matches
10785do
ec6a6fbe
AK
10786as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10787{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10788$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 10789if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10790 $as_echo_n "(cached) " >&6
ad6254c5
AK
10791else
10792 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10793/* confdefs.h. */
10794_ACEOF
10795cat confdefs.h >>conftest.$ac_ext
10796cat >>conftest.$ac_ext <<_ACEOF
10797/* end confdefs.h. */
bc1024f8 10798/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 10799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 10800#define $ac_func innocuous_$ac_func
8a2fc586 10801
ad6254c5 10802/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 10803 which can conflict with char $ac_func (); below.
ad6254c5
AK
10804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10805 <limits.h> exists even on freestanding compilers. */
8a2fc586 10806
ad6254c5
AK
10807#ifdef __STDC__
10808# include <limits.h>
10809#else
10810# include <assert.h>
10811#endif
8a2fc586 10812
bc1024f8 10813#undef $ac_func
8a2fc586 10814
7a197a62
AK
10815/* Override any GCC internal prototype to avoid an error.
10816 Use char because int might match the return type of a GCC
10817 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10818#ifdef __cplusplus
10819extern "C"
ad6254c5 10820#endif
bc1024f8 10821char $ac_func ();
ad6254c5
AK
10822/* The GNU C library defines this for functions which it implements
10823 to always fail with ENOSYS. Some functions are actually named
10824 something starting with __ and the normal name is an alias. */
bc1024f8 10825#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 10826choke me
ad6254c5
AK
10827#endif
10828
10829int
10830main ()
10831{
bc1024f8 10832return $ac_func ();
ad6254c5
AK
10833 ;
10834 return 0;
10835}
10836_ACEOF
10837rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10838if { (ac_try="$ac_link"
10839case "(($ac_try" in
10840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841 *) ac_try_echo=$ac_try;;
10842esac
ec6a6fbe
AK
10843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10844$as_echo "$ac_try_echo") >&5
7a197a62 10845 (eval "$ac_link") 2>conftest.er1
ad6254c5 10846 ac_status=$?
8a2fc586
AK
10847 grep -v '^ *+' conftest.er1 >conftest.err
10848 rm -f conftest.er1
10849 cat conftest.err >&5
ec6a6fbe 10850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10851 (exit $ac_status); } && {
10852 test -z "$ac_c_werror_flag" ||
10853 test ! -s conftest.err
ec6a6fbe
AK
10854 } && test -s conftest$ac_exeext && {
10855 test "$cross_compiling" = yes ||
10856 $as_test_x conftest$ac_exeext
10857 }; then
bc1024f8 10858 eval "$as_ac_var=yes"
ad6254c5 10859else
ec6a6fbe 10860 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10861sed 's/^/| /' conftest.$ac_ext >&5
10862
bc1024f8 10863 eval "$as_ac_var=no"
ad6254c5 10864fi
7a197a62 10865
ec6a6fbe 10866rm -rf conftest.dSYM
25fbec5b 10867rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10868 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10869fi
ec6a6fbe
AK
10870ac_res=`eval 'as_val=${'$as_ac_var'}
10871 $as_echo "$as_val"'`
10872 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10873$as_echo "$ac_res" >&6; }
10874as_val=`eval 'as_val=${'$as_ac_var'}
10875 $as_echo "$as_val"'`
10876 if test "x$as_val" = x""yes; then
bc1024f8 10877 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10878#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
10879_ACEOF
10880
10881fi
bc1024f8 10882done
ad6254c5 10883
d179cc7a
JM
10884
10885cat >>confdefs.h <<\_ACEOF
10886#define READLINE_SUPPORT 1
10887_ACEOF
10888
06e459df 10889 fi
ad6254c5
AK
10890fi
10891
10892################################################################################
ec6a6fbe
AK
10893{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
10894$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 10895# Check whether --enable-nls was given.
ad6254c5 10896if test "${enable_nls+set}" = set; then
7a197a62 10897 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
10898else
10899 INTL=no
7a197a62
AK
10900fi
10901
ec6a6fbe
AK
10902{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
10903$as_echo "$INTL" >&6; }
ad6254c5
AK
10904
10905if test x$INTL = xyes; then
93bd259b 10906# FIXME - Move this - can be device-mapper too
ad6254c5
AK
10907 INTL_PACKAGE="lvm2"
10908 # Extract the first word of "msgfmt", so it can be a program name with args.
10909set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
10910{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10911$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 10912if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 10913 $as_echo_n "(cached) " >&6
ad6254c5
AK
10914else
10915 case $MSGFMT in
10916 [\\/]* | ?:[\\/]*)
10917 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10918 ;;
10919 *)
10920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921for as_dir in $PATH
10922do
10923 IFS=$as_save_IFS
10924 test -z "$as_dir" && as_dir=.
10925 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 10926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 10927 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 10928 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
10929 break 2
10930 fi
10931done
10932done
7a197a62 10933IFS=$as_save_IFS
ad6254c5
AK
10934
10935 ;;
10936esac
10937fi
10938MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 10939if test -n "$MSGFMT"; then
ec6a6fbe
AK
10940 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
10941$as_echo "$MSGFMT" >&6; }
ad6254c5 10942else
ec6a6fbe
AK
10943 { $as_echo "$as_me:$LINENO: result: no" >&5
10944$as_echo "no" >&6; }
ad6254c5
AK
10945fi
10946
7a197a62 10947
ad6254c5 10948 if [ "x$MSGFMT" == x ];
ec6a6fbe 10949 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 10950 " >&5
ec6a6fbe 10951$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
10952 " >&2;}
10953 { (exit 1); exit 1; }; }
10954 fi;
10955
10956
7a197a62 10957# Check whether --with-localedir was given.
ad6254c5 10958if test "${with_localedir+set}" = set; then
7a197a62 10959 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
10960else
10961 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
10962fi
10963
ad6254c5
AK
10964fi
10965
10966################################################################################
10967
7a197a62 10968# Check whether --with-confdir was given.
ad6254c5 10969if test "${with_confdir+set}" = set; then
7a197a62 10970 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
10971else
10972 CONFDIR='/etc'
7a197a62
AK
10973fi
10974
ad6254c5
AK
10975
10976
7a197a62 10977# Check whether --with-staticdir was given.
ad6254c5 10978if test "${with_staticdir+set}" = set; then
7a197a62 10979 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
10980else
10981 STATICDIR='${exec_prefix}/sbin'
7a197a62 10982fi
ad6254c5 10983
33f732c5 10984
7a197a62 10985
68f2de6d
AK
10986# Check whether --with-usrlibdir was given.
10987if test "${with_usrlibdir+set}" = set; then
10988 withval=$with_usrlibdir; usrlibdir="$withval"
10989else
10990 usrlibdir='${prefix}/lib'
10991fi
10992
10993
10994
10995# Check whether --with-usrsbindir was given.
10996if test "${with_usrsbindir+set}" = set; then
10997 withval=$with_usrsbindir; usrsbindir="$withval"
10998else
10999 usrsbindir='${prefix}/sbin'
11000fi
11001
11002
ad6254c5
AK
11003################################################################################
11004if test x$READLINE = xyes; then
11005
11006
11007for ac_header in readline/readline.h readline/history.h
11008do
ec6a6fbe 11009as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11010if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
11011 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11012$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11013if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11014 $as_echo_n "(cached) " >&6
ad6254c5 11015fi
ec6a6fbe
AK
11016ac_res=`eval 'as_val=${'$as_ac_Header'}
11017 $as_echo "$as_val"'`
11018 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11019$as_echo "$ac_res" >&6; }
ad6254c5
AK
11020else
11021 # Is the header compilable?
ec6a6fbe
AK
11022{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11023$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11024cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11025/* confdefs.h. */
11026_ACEOF
11027cat confdefs.h >>conftest.$ac_ext
11028cat >>conftest.$ac_ext <<_ACEOF
11029/* end confdefs.h. */
11030$ac_includes_default
11031#include <$ac_header>
11032_ACEOF
11033rm -f conftest.$ac_objext
7a197a62
AK
11034if { (ac_try="$ac_compile"
11035case "(($ac_try" in
11036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037 *) ac_try_echo=$ac_try;;
11038esac
ec6a6fbe
AK
11039eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11040$as_echo "$ac_try_echo") >&5
7a197a62 11041 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11042 ac_status=$?
8a2fc586
AK
11043 grep -v '^ *+' conftest.er1 >conftest.err
11044 rm -f conftest.er1
11045 cat conftest.err >&5
ec6a6fbe 11046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11047 (exit $ac_status); } && {
11048 test -z "$ac_c_werror_flag" ||
11049 test ! -s conftest.err
11050 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11051 ac_header_compiler=yes
11052else
ec6a6fbe 11053 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11054sed 's/^/| /' conftest.$ac_ext >&5
11055
7a197a62 11056 ac_header_compiler=no
ad6254c5 11057fi
7a197a62
AK
11058
11059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
11060{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11061$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11062
11063# Is the header present?
ec6a6fbe
AK
11064{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11065$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11066cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11067/* confdefs.h. */
11068_ACEOF
11069cat confdefs.h >>conftest.$ac_ext
11070cat >>conftest.$ac_ext <<_ACEOF
11071/* end confdefs.h. */
11072#include <$ac_header>
11073_ACEOF
7a197a62
AK
11074if { (ac_try="$ac_cpp conftest.$ac_ext"
11075case "(($ac_try" in
11076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077 *) ac_try_echo=$ac_try;;
11078esac
ec6a6fbe
AK
11079eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11080$as_echo "$ac_try_echo") >&5
7a197a62 11081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11082 ac_status=$?
11083 grep -v '^ *+' conftest.er1 >conftest.err
11084 rm -f conftest.er1
11085 cat conftest.err >&5
ec6a6fbe 11086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11087 (exit $ac_status); } >/dev/null && {
11088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11089 test ! -s conftest.err
11090 }; then
ad6254c5
AK
11091 ac_header_preproc=yes
11092else
ec6a6fbe 11093 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11094sed 's/^/| /' conftest.$ac_ext >&5
11095
11096 ac_header_preproc=no
11097fi
7a197a62 11098
ad6254c5 11099rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
11100{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11101$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11102
11103# So? What about this header?
8a2fc586
AK
11104case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11105 yes:no: )
ec6a6fbe
AK
11106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11107$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11109$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11110 ac_header_preproc=yes
ad6254c5 11111 ;;
8a2fc586 11112 no:yes:* )
ec6a6fbe
AK
11113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11114$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11116$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11118$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11120$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11122$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11124$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11125
ad6254c5
AK
11126 ;;
11127esac
ec6a6fbe
AK
11128{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11129$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11130if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11131 $as_echo_n "(cached) " >&6
ad6254c5 11132else
8a2fc586 11133 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 11134fi
ec6a6fbe
AK
11135ac_res=`eval 'as_val=${'$as_ac_Header'}
11136 $as_echo "$as_val"'`
11137 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11138$as_echo "$ac_res" >&6; }
ad6254c5
AK
11139
11140fi
ec6a6fbe
AK
11141as_val=`eval 'as_val=${'$as_ac_Header'}
11142 $as_echo "$as_val"'`
11143 if test "x$as_val" = x""yes; then
ad6254c5 11144 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11145#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11146_ACEOF
11147
11148else
ec6a6fbe
AK
11149 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11150$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
11151 { (exit 1); exit 1; }; }
11152fi
11153
11154done
11155
11156fi
11157
5c7fc7c4 11158if test x$CLVMD != xnone; then
ad6254c5
AK
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169for 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
11170do
ec6a6fbe 11171as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11172if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
11173 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11174$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11175if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11176 $as_echo_n "(cached) " >&6
ad6254c5 11177fi
ec6a6fbe
AK
11178ac_res=`eval 'as_val=${'$as_ac_Header'}
11179 $as_echo "$as_val"'`
11180 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11181$as_echo "$ac_res" >&6; }
ad6254c5
AK
11182else
11183 # Is the header compilable?
ec6a6fbe
AK
11184{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11185$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11186cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11187/* confdefs.h. */
11188_ACEOF
11189cat confdefs.h >>conftest.$ac_ext
11190cat >>conftest.$ac_ext <<_ACEOF
11191/* end confdefs.h. */
11192$ac_includes_default
11193#include <$ac_header>
11194_ACEOF
11195rm -f conftest.$ac_objext
7a197a62
AK
11196if { (ac_try="$ac_compile"
11197case "(($ac_try" in
11198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199 *) ac_try_echo=$ac_try;;
11200esac
ec6a6fbe
AK
11201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11202$as_echo "$ac_try_echo") >&5
7a197a62 11203 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11204 ac_status=$?
8a2fc586
AK
11205 grep -v '^ *+' conftest.er1 >conftest.err
11206 rm -f conftest.er1
11207 cat conftest.err >&5
ec6a6fbe 11208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11209 (exit $ac_status); } && {
11210 test -z "$ac_c_werror_flag" ||
11211 test ! -s conftest.err
11212 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11213 ac_header_compiler=yes
11214else
ec6a6fbe 11215 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11216sed 's/^/| /' conftest.$ac_ext >&5
11217
7a197a62 11218 ac_header_compiler=no
ad6254c5 11219fi
7a197a62
AK
11220
11221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
11222{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11223$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11224
11225# Is the header present?
ec6a6fbe
AK
11226{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11227$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11228cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11229/* confdefs.h. */
11230_ACEOF
11231cat confdefs.h >>conftest.$ac_ext
11232cat >>conftest.$ac_ext <<_ACEOF
11233/* end confdefs.h. */
11234#include <$ac_header>
11235_ACEOF
7a197a62
AK
11236if { (ac_try="$ac_cpp conftest.$ac_ext"
11237case "(($ac_try" in
11238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11239 *) ac_try_echo=$ac_try;;
11240esac
ec6a6fbe
AK
11241eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11242$as_echo "$ac_try_echo") >&5
7a197a62 11243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11244 ac_status=$?
11245 grep -v '^ *+' conftest.er1 >conftest.err
11246 rm -f conftest.er1
11247 cat conftest.err >&5
ec6a6fbe 11248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11249 (exit $ac_status); } >/dev/null && {
11250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11251 test ! -s conftest.err
11252 }; then
ad6254c5
AK
11253 ac_header_preproc=yes
11254else
ec6a6fbe 11255 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11256sed 's/^/| /' conftest.$ac_ext >&5
11257
11258 ac_header_preproc=no
11259fi
7a197a62 11260
ad6254c5 11261rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
11262{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11263$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11264
11265# So? What about this header?
8a2fc586
AK
11266case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11267 yes:no: )
ec6a6fbe
AK
11268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11269$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11271$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11272 ac_header_preproc=yes
ad6254c5 11273 ;;
8a2fc586 11274 no:yes:* )
ec6a6fbe
AK
11275 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11276$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11278$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11280$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11282$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11284$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11286$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11287
ad6254c5
AK
11288 ;;
11289esac
ec6a6fbe
AK
11290{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11291$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11292if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11293 $as_echo_n "(cached) " >&6
ad6254c5 11294else
8a2fc586 11295 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 11296fi
ec6a6fbe
AK
11297ac_res=`eval 'as_val=${'$as_ac_Header'}
11298 $as_echo "$as_val"'`
11299 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11300$as_echo "$ac_res" >&6; }
ad6254c5
AK
11301
11302fi
ec6a6fbe
AK
11303as_val=`eval 'as_val=${'$as_ac_Header'}
11304 $as_echo "$as_val"'`
11305 if test "x$as_val" = x""yes; then
ad6254c5 11306 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11307#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11308_ACEOF
11309
11310else
ec6a6fbe
AK
11311 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11312$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11313 { (exit 1); exit 1; }; }
795ca3e5
AK
11314fi
11315
ad6254c5
AK
11316done
11317
11318
795ca3e5 11319
8106cdd5 11320
ad6254c5
AK
11321
11322
11323for ac_func in dup2 getmntent memmove select socket
11324do
ec6a6fbe
AK
11325as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11326{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11327$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 11328if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11329 $as_echo_n "(cached) " >&6
795ca3e5 11330else
ad6254c5 11331 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11332/* confdefs.h. */
11333_ACEOF
11334cat confdefs.h >>conftest.$ac_ext
11335cat >>conftest.$ac_ext <<_ACEOF
11336/* end confdefs.h. */
8a2fc586
AK
11337/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11339#define $ac_func innocuous_$ac_func
11340
795ca3e5 11341/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
11342 which can conflict with char $ac_func (); below.
11343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11344 <limits.h> exists even on freestanding compilers. */
8a2fc586 11345
ad6254c5
AK
11346#ifdef __STDC__
11347# include <limits.h>
11348#else
11349# include <assert.h>
11350#endif
8a2fc586
AK
11351
11352#undef $ac_func
11353
7a197a62
AK
11354/* Override any GCC internal prototype to avoid an error.
11355 Use char because int might match the return type of a GCC
11356 builtin and then its argument prototype would still apply. */
ad6254c5
AK
11357#ifdef __cplusplus
11358extern "C"
ad6254c5 11359#endif
ad6254c5 11360char $ac_func ();
795ca3e5
AK
11361/* The GNU C library defines this for functions which it implements
11362 to always fail with ENOSYS. Some functions are actually named
11363 something starting with __ and the normal name is an alias. */
7a197a62 11364#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 11365choke me
795ca3e5
AK
11366#endif
11367
ad6254c5
AK
11368int
11369main ()
11370{
7a197a62 11371return $ac_func ();
ad6254c5
AK
11372 ;
11373 return 0;
11374}
11375_ACEOF
11376rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
11377if { (ac_try="$ac_link"
11378case "(($ac_try" in
11379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11380 *) ac_try_echo=$ac_try;;
11381esac
ec6a6fbe
AK
11382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11383$as_echo "$ac_try_echo") >&5
7a197a62 11384 (eval "$ac_link") 2>conftest.er1
ad6254c5 11385 ac_status=$?
8a2fc586
AK
11386 grep -v '^ *+' conftest.er1 >conftest.err
11387 rm -f conftest.er1
11388 cat conftest.err >&5
ec6a6fbe 11389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11390 (exit $ac_status); } && {
11391 test -z "$ac_c_werror_flag" ||
11392 test ! -s conftest.err
ec6a6fbe
AK
11393 } && test -s conftest$ac_exeext && {
11394 test "$cross_compiling" = yes ||
11395 $as_test_x conftest$ac_exeext
11396 }; then
ad6254c5 11397 eval "$as_ac_var=yes"
795ca3e5 11398else
ec6a6fbe 11399 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11400sed 's/^/| /' conftest.$ac_ext >&5
11401
7a197a62 11402 eval "$as_ac_var=no"
80992638 11403fi
7a197a62 11404
ec6a6fbe 11405rm -rf conftest.dSYM
25fbec5b 11406rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 11407 conftest$ac_exeext conftest.$ac_ext
795ca3e5 11408fi
ec6a6fbe
AK
11409ac_res=`eval 'as_val=${'$as_ac_var'}
11410 $as_echo "$as_val"'`
11411 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11412$as_echo "$ac_res" >&6; }
11413as_val=`eval 'as_val=${'$as_ac_var'}
11414 $as_echo "$as_val"'`
11415 if test "x$as_val" = x""yes; then
ad6254c5 11416 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11417#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 11418_ACEOF
80992638
AK
11419
11420else
ec6a6fbe
AK
11421 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11422$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11423 { (exit 1); exit 1; }; }
8106cdd5 11424fi
ad6254c5 11425done
795ca3e5 11426
25fbec5b
AK
11427 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11428# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
11429{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
11430$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 11431if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 11432 $as_echo_n "(cached) " >&6
25fbec5b
AK
11433else
11434 ac_func_search_save_LIBS=$LIBS
11435cat >conftest.$ac_ext <<_ACEOF
11436/* confdefs.h. */
11437_ACEOF
11438cat confdefs.h >>conftest.$ac_ext
11439cat >>conftest.$ac_ext <<_ACEOF
11440/* end confdefs.h. */
80992638 11441
7a197a62
AK
11442/* Override any GCC internal prototype to avoid an error.
11443 Use char because int might match the return type of a GCC
ad6254c5 11444 builtin and then its argument prototype would still apply. */
ad6254c5
AK
11445#ifdef __cplusplus
11446extern "C"
11447#endif
25fbec5b 11448char getmntent ();
ad6254c5
AK
11449int
11450main ()
11451{
25fbec5b 11452return getmntent ();
ad6254c5
AK
11453 ;
11454 return 0;
11455}
11456_ACEOF
25fbec5b
AK
11457for ac_lib in '' sun seq gen; do
11458 if test -z "$ac_lib"; then
11459 ac_res="none required"
11460 else
11461 ac_res=-l$ac_lib
11462 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11463 fi
11464 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
11465if { (ac_try="$ac_link"
11466case "(($ac_try" in
11467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11468 *) ac_try_echo=$ac_try;;
11469esac
ec6a6fbe
AK
11470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11471$as_echo "$ac_try_echo") >&5
7a197a62 11472 (eval "$ac_link") 2>conftest.er1
ad6254c5 11473 ac_status=$?
8a2fc586
AK
11474 grep -v '^ *+' conftest.er1 >conftest.err
11475 rm -f conftest.er1
11476 cat conftest.err >&5
ec6a6fbe 11477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11478 (exit $ac_status); } && {
11479 test -z "$ac_c_werror_flag" ||
11480 test ! -s conftest.err
ec6a6fbe
AK
11481 } && test -s conftest$ac_exeext && {
11482 test "$cross_compiling" = yes ||
11483 $as_test_x conftest$ac_exeext
11484 }; then
25fbec5b 11485 ac_cv_search_getmntent=$ac_res
80992638 11486else
ec6a6fbe 11487 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11488sed 's/^/| /' conftest.$ac_ext >&5
11489
25fbec5b 11490
795ca3e5
AK
11491fi
11492
ec6a6fbe 11493rm -rf conftest.dSYM
25fbec5b
AK
11494rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11495 conftest$ac_exeext
11496 if test "${ac_cv_search_getmntent+set}" = set; then
11497 break
795ca3e5 11498fi
25fbec5b
AK
11499done
11500if test "${ac_cv_search_getmntent+set}" = set; then
11501 :
11502else
11503 ac_cv_search_getmntent=no
11504fi
11505rm conftest.$ac_ext
11506LIBS=$ac_func_search_save_LIBS
11507fi
ec6a6fbe
AK
11508{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
11509$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
11510ac_res=$ac_cv_search_getmntent
11511if test "$ac_res" != no; then
11512 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11513 ac_cv_func_getmntent=yes
11514
11515cat >>confdefs.h <<\_ACEOF
9c961554 11516#define HAVE_GETMNTENT 1
ad6254c5 11517_ACEOF
795ca3e5 11518
25fbec5b
AK
11519else
11520 ac_cv_func_getmntent=no
795ca3e5 11521fi
795ca3e5
AK
11522
11523
ad6254c5
AK
11524# AC_FUNC_REALLOC
11525
11526
11527for ac_header in sys/select.h sys/socket.h
11528do
ec6a6fbe 11529as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11530if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
11531 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11532$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11533if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11534 $as_echo_n "(cached) " >&6
ad6254c5 11535fi
ec6a6fbe
AK
11536ac_res=`eval 'as_val=${'$as_ac_Header'}
11537 $as_echo "$as_val"'`
11538 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11539$as_echo "$ac_res" >&6; }
795ca3e5 11540else
ad6254c5 11541 # Is the header compilable?
ec6a6fbe
AK
11542{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11543$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11544cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11545/* confdefs.h. */
11546_ACEOF
11547cat confdefs.h >>conftest.$ac_ext
11548cat >>conftest.$ac_ext <<_ACEOF
11549/* end confdefs.h. */
11550$ac_includes_default
11551#include <$ac_header>
11552_ACEOF
11553rm -f conftest.$ac_objext
7a197a62
AK
11554if { (ac_try="$ac_compile"
11555case "(($ac_try" in
11556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557 *) ac_try_echo=$ac_try;;
11558esac
ec6a6fbe
AK
11559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11560$as_echo "$ac_try_echo") >&5
7a197a62 11561 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11562 ac_status=$?
8a2fc586
AK
11563 grep -v '^ *+' conftest.er1 >conftest.err
11564 rm -f conftest.er1
11565 cat conftest.err >&5
ec6a6fbe 11566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11567 (exit $ac_status); } && {
11568 test -z "$ac_c_werror_flag" ||
11569 test ! -s conftest.err
11570 } && test -s conftest.$ac_objext; then
ad6254c5 11571 ac_header_compiler=yes
80992638 11572else
ec6a6fbe 11573 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11574sed 's/^/| /' conftest.$ac_ext >&5
11575
7a197a62 11576 ac_header_compiler=no
ad6254c5 11577fi
7a197a62
AK
11578
11579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
11580{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11581$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11582
11583# Is the header present?
ec6a6fbe
AK
11584{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11585$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11586cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11587/* confdefs.h. */
11588_ACEOF
11589cat confdefs.h >>conftest.$ac_ext
11590cat >>conftest.$ac_ext <<_ACEOF
11591/* end confdefs.h. */
11592#include <$ac_header>
11593_ACEOF
7a197a62
AK
11594if { (ac_try="$ac_cpp conftest.$ac_ext"
11595case "(($ac_try" in
11596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597 *) ac_try_echo=$ac_try;;
11598esac
ec6a6fbe
AK
11599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11600$as_echo "$ac_try_echo") >&5
7a197a62 11601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11602 ac_status=$?
11603 grep -v '^ *+' conftest.er1 >conftest.err
11604 rm -f conftest.er1
11605 cat conftest.err >&5
ec6a6fbe 11606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11607 (exit $ac_status); } >/dev/null && {
11608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11609 test ! -s conftest.err
11610 }; then
ad6254c5
AK
11611 ac_header_preproc=yes
11612else
ec6a6fbe 11613 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11614sed 's/^/| /' conftest.$ac_ext >&5
11615
11616 ac_header_preproc=no
11617fi
7a197a62 11618
ad6254c5 11619rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
11620{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11621$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11622
11623# So? What about this header?
8a2fc586
AK
11624case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11625 yes:no: )
ec6a6fbe
AK
11626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11627$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11629$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11630 ac_header_preproc=yes
ad6254c5 11631 ;;
8a2fc586 11632 no:yes:* )
ec6a6fbe
AK
11633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11634$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11635 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11636$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11638$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11640$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11642$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11644$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11645
ad6254c5
AK
11646 ;;
11647esac
ec6a6fbe
AK
11648{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11649$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11650if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11651 $as_echo_n "(cached) " >&6
ad6254c5 11652else
8a2fc586 11653 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 11654fi
ec6a6fbe
AK
11655ac_res=`eval 'as_val=${'$as_ac_Header'}
11656 $as_echo "$as_val"'`
11657 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11658$as_echo "$ac_res" >&6; }
8106cdd5 11659
795ca3e5 11660fi
ec6a6fbe
AK
11661as_val=`eval 'as_val=${'$as_ac_Header'}
11662 $as_echo "$as_val"'`
11663 if test "x$as_val" = x""yes; then
ad6254c5 11664 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11665#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11666_ACEOF
11667
795ca3e5
AK
11668fi
11669
ad6254c5
AK
11670done
11671
ec6a6fbe
AK
11672{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
11673$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 11674if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 11675 $as_echo_n "(cached) " >&6
26e7f2e0 11676else
ad6254c5 11677 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 11678 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
11679 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
11680 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11681/* confdefs.h. */
11682_ACEOF
11683cat confdefs.h >>conftest.$ac_ext
11684cat >>conftest.$ac_ext <<_ACEOF
11685/* end confdefs.h. */
11686$ac_includes_default
25fbec5b 11687#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
11688# include <sys/select.h>
11689#endif
25fbec5b 11690#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
11691# include <sys/socket.h>
11692#endif
11693
11694int
11695main ()
11696{
11697extern int select ($ac_arg1,
8a2fc586
AK
11698 $ac_arg234, $ac_arg234, $ac_arg234,
11699 $ac_arg5);
ad6254c5
AK
11700 ;
11701 return 0;
11702}
11703_ACEOF
11704rm -f conftest.$ac_objext
7a197a62
AK
11705if { (ac_try="$ac_compile"
11706case "(($ac_try" in
11707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11709esac
ec6a6fbe
AK
11710eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11711$as_echo "$ac_try_echo") >&5
7a197a62 11712 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11713 ac_status=$?
8a2fc586
AK
11714 grep -v '^ *+' conftest.er1 >conftest.err
11715 rm -f conftest.er1
11716 cat conftest.err >&5
ec6a6fbe 11717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11718 (exit $ac_status); } && {
11719 test -z "$ac_c_werror_flag" ||
11720 test ! -s conftest.err
11721 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11722 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11723else
ec6a6fbe 11724 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11725sed 's/^/| /' conftest.$ac_ext >&5
11726
7a197a62 11727
ad6254c5 11728fi
7a197a62
AK
11729
11730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
11731 done
11732 done
11733done
11734# Provide a safe default value.
11735: ${ac_cv_func_select_args='int,int *,struct timeval *'}
11736
26e7f2e0 11737fi
ec6a6fbe
AK
11738{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
11739$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
11740ac_save_IFS=$IFS; IFS=','
11741set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11742IFS=$ac_save_IFS
11743shift
11744
11745cat >>confdefs.h <<_ACEOF
11746#define SELECT_TYPE_ARG1 $1
11747_ACEOF
11748
11749
11750cat >>confdefs.h <<_ACEOF
11751#define SELECT_TYPE_ARG234 ($2)
11752_ACEOF
11753
11754
11755cat >>confdefs.h <<_ACEOF
11756#define SELECT_TYPE_ARG5 ($3)
11757_ACEOF
11758
80992638 11759rm -f conftest*
80992638 11760
8106cdd5 11761fi
ad6254c5 11762
ad6254c5
AK
11763if test x$CLUSTER != xnone; then
11764
11765
11766for ac_header in sys/socket.h sys/un.h
b896caa1 11767do
ec6a6fbe 11768as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11769if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
11770 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11771$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11772if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11773 $as_echo_n "(cached) " >&6
ad6254c5 11774fi
ec6a6fbe
AK
11775ac_res=`eval 'as_val=${'$as_ac_Header'}
11776 $as_echo "$as_val"'`
11777 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11778$as_echo "$ac_res" >&6; }
ad6254c5
AK
11779else
11780 # Is the header compilable?
ec6a6fbe
AK
11781{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11782$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11783cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11784/* confdefs.h. */
11785_ACEOF
11786cat confdefs.h >>conftest.$ac_ext
11787cat >>conftest.$ac_ext <<_ACEOF
11788/* end confdefs.h. */
11789$ac_includes_default
11790#include <$ac_header>
11791_ACEOF
11792rm -f conftest.$ac_objext
7a197a62
AK
11793if { (ac_try="$ac_compile"
11794case "(($ac_try" in
11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796 *) ac_try_echo=$ac_try;;
11797esac
ec6a6fbe
AK
11798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11799$as_echo "$ac_try_echo") >&5
7a197a62 11800 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11801 ac_status=$?
8a2fc586
AK
11802 grep -v '^ *+' conftest.er1 >conftest.err
11803 rm -f conftest.er1
11804 cat conftest.err >&5
ec6a6fbe 11805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11806 (exit $ac_status); } && {
11807 test -z "$ac_c_werror_flag" ||
11808 test ! -s conftest.err
11809 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11810 ac_header_compiler=yes
11811else
ec6a6fbe 11812 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11813sed 's/^/| /' conftest.$ac_ext >&5
11814
7a197a62 11815 ac_header_compiler=no
ad6254c5 11816fi
7a197a62
AK
11817
11818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
11819{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11820$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11821
11822# Is the header present?
ec6a6fbe
AK
11823{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11824$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11825cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11826/* confdefs.h. */
11827_ACEOF
11828cat confdefs.h >>conftest.$ac_ext
11829cat >>conftest.$ac_ext <<_ACEOF
11830/* end confdefs.h. */
11831#include <$ac_header>
11832_ACEOF
7a197a62
AK
11833if { (ac_try="$ac_cpp conftest.$ac_ext"
11834case "(($ac_try" in
11835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836 *) ac_try_echo=$ac_try;;
11837esac
ec6a6fbe
AK
11838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11839$as_echo "$ac_try_echo") >&5
7a197a62 11840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11841 ac_status=$?
11842 grep -v '^ *+' conftest.er1 >conftest.err
11843 rm -f conftest.er1
11844 cat conftest.err >&5
ec6a6fbe 11845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11846 (exit $ac_status); } >/dev/null && {
11847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11848 test ! -s conftest.err
11849 }; then
ad6254c5
AK
11850 ac_header_preproc=yes
11851else
ec6a6fbe 11852 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11853sed 's/^/| /' conftest.$ac_ext >&5
11854
11855 ac_header_preproc=no
11856fi
7a197a62 11857
ad6254c5 11858rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
11859{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11860$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11861
11862# So? What about this header?
8a2fc586
AK
11863case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11864 yes:no: )
ec6a6fbe
AK
11865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11866$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11868$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11869 ac_header_preproc=yes
ad6254c5 11870 ;;
8a2fc586 11871 no:yes:* )
ec6a6fbe
AK
11872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11873$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11875$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11877$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11879$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11881$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11883$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11884
ad6254c5
AK
11885 ;;
11886esac
ec6a6fbe
AK
11887{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11888$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11889if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11890 $as_echo_n "(cached) " >&6
ad6254c5 11891else
8a2fc586 11892 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 11893fi
ec6a6fbe
AK
11894ac_res=`eval 'as_val=${'$as_ac_Header'}
11895 $as_echo "$as_val"'`
11896 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11897$as_echo "$ac_res" >&6; }
ad6254c5
AK
11898
11899fi
ec6a6fbe
AK
11900as_val=`eval 'as_val=${'$as_ac_Header'}
11901 $as_echo "$as_val"'`
11902 if test "x$as_val" = x""yes; then
ad6254c5 11903 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11904#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11905_ACEOF
11906
80992638 11907else
ec6a6fbe
AK
11908 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11909$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11910 { (exit 1); exit 1; }; }
b896caa1 11911fi
ad6254c5 11912
b896caa1
AK
11913done
11914
11915
ad6254c5
AK
11916for ac_func in socket
11917do
ec6a6fbe
AK
11918as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11919{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11920$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 11921if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 11922 $as_echo_n "(cached) " >&6
795ca3e5 11923else
ad6254c5 11924 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11925/* confdefs.h. */
11926_ACEOF
11927cat confdefs.h >>conftest.$ac_ext
11928cat >>conftest.$ac_ext <<_ACEOF
11929/* end confdefs.h. */
8a2fc586
AK
11930/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11932#define $ac_func innocuous_$ac_func
11933
ad6254c5
AK
11934/* System header to define __stub macros and hopefully few prototypes,
11935 which can conflict with char $ac_func (); below.
11936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11937 <limits.h> exists even on freestanding compilers. */
8a2fc586 11938
ad6254c5
AK
11939#ifdef __STDC__
11940# include <limits.h>
11941#else
11942# include <assert.h>
11943#endif
8a2fc586
AK
11944
11945#undef $ac_func
11946
7a197a62
AK
11947/* Override any GCC internal prototype to avoid an error.
11948 Use char because int might match the return type of a GCC
11949 builtin and then its argument prototype would still apply. */
ad6254c5
AK
11950#ifdef __cplusplus
11951extern "C"
ad6254c5 11952#endif
ad6254c5
AK
11953char $ac_func ();
11954/* The GNU C library defines this for functions which it implements
11955 to always fail with ENOSYS. Some functions are actually named
11956 something starting with __ and the normal name is an alias. */
7a197a62 11957#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 11958choke me
ad6254c5
AK
11959#endif
11960
11961int
11962main ()
11963{
7a197a62 11964return $ac_func ();
ad6254c5
AK
11965 ;
11966 return 0;
11967}
11968_ACEOF
11969rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
11970if { (ac_try="$ac_link"
11971case "(($ac_try" in
11972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973 *) ac_try_echo=$ac_try;;
11974esac
ec6a6fbe
AK
11975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11976$as_echo "$ac_try_echo") >&5
7a197a62 11977 (eval "$ac_link") 2>conftest.er1
ad6254c5 11978 ac_status=$?
8a2fc586
AK
11979 grep -v '^ *+' conftest.er1 >conftest.err
11980 rm -f conftest.er1
11981 cat conftest.err >&5
ec6a6fbe 11982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11983 (exit $ac_status); } && {
11984 test -z "$ac_c_werror_flag" ||
11985 test ! -s conftest.err
ec6a6fbe
AK
11986 } && test -s conftest$ac_exeext && {
11987 test "$cross_compiling" = yes ||
11988 $as_test_x conftest$ac_exeext
11989 }; then
ad6254c5
AK
11990 eval "$as_ac_var=yes"
11991else
ec6a6fbe 11992 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11993sed 's/^/| /' conftest.$ac_ext >&5
11994
7a197a62 11995 eval "$as_ac_var=no"
ad6254c5 11996fi
7a197a62 11997
ec6a6fbe 11998rm -rf conftest.dSYM
25fbec5b 11999rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 12000 conftest$ac_exeext conftest.$ac_ext
ad6254c5 12001fi
ec6a6fbe
AK
12002ac_res=`eval 'as_val=${'$as_ac_var'}
12003 $as_echo "$as_val"'`
12004 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12005$as_echo "$ac_res" >&6; }
12006as_val=`eval 'as_val=${'$as_ac_var'}
12007 $as_echo "$as_val"'`
12008 if test "x$as_val" = x""yes; then
ad6254c5 12009 cat >>confdefs.h <<_ACEOF
ec6a6fbe 12010#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
12011_ACEOF
12012
12013else
ec6a6fbe
AK
12014 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12015$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
12016 { (exit 1); exit 1; }; }
12017fi
12018done
12019
12020fi
12021
12022if test x$HAVE_LIBDL = xyes; then
12023
12024for ac_header in dlfcn.h
12025do
ec6a6fbe 12026as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 12027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
12028 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12029$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12030if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12031 $as_echo_n "(cached) " >&6
ad6254c5 12032fi
ec6a6fbe
AK
12033ac_res=`eval 'as_val=${'$as_ac_Header'}
12034 $as_echo "$as_val"'`
12035 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12036$as_echo "$ac_res" >&6; }
ad6254c5
AK
12037else
12038 # Is the header compilable?
ec6a6fbe
AK
12039{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12040$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 12041cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12042/* confdefs.h. */
12043_ACEOF
12044cat confdefs.h >>conftest.$ac_ext
12045cat >>conftest.$ac_ext <<_ACEOF
12046/* end confdefs.h. */
12047$ac_includes_default
12048#include <$ac_header>
12049_ACEOF
12050rm -f conftest.$ac_objext
7a197a62
AK
12051if { (ac_try="$ac_compile"
12052case "(($ac_try" in
12053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054 *) ac_try_echo=$ac_try;;
12055esac
ec6a6fbe
AK
12056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12057$as_echo "$ac_try_echo") >&5
7a197a62 12058 (eval "$ac_compile") 2>conftest.er1
ad6254c5 12059 ac_status=$?
8a2fc586
AK
12060 grep -v '^ *+' conftest.er1 >conftest.err
12061 rm -f conftest.er1
12062 cat conftest.err >&5
ec6a6fbe 12063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12064 (exit $ac_status); } && {
12065 test -z "$ac_c_werror_flag" ||
12066 test ! -s conftest.err
12067 } && test -s conftest.$ac_objext; then
ad6254c5
AK
12068 ac_header_compiler=yes
12069else
ec6a6fbe 12070 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12071sed 's/^/| /' conftest.$ac_ext >&5
12072
7a197a62 12073 ac_header_compiler=no
ad6254c5 12074fi
7a197a62
AK
12075
12076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
12077{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12078$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
12079
12080# Is the header present?
ec6a6fbe
AK
12081{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12082$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 12083cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12084/* confdefs.h. */
12085_ACEOF
12086cat confdefs.h >>conftest.$ac_ext
12087cat >>conftest.$ac_ext <<_ACEOF
12088/* end confdefs.h. */
12089#include <$ac_header>
12090_ACEOF
7a197a62
AK
12091if { (ac_try="$ac_cpp conftest.$ac_ext"
12092case "(($ac_try" in
12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094 *) ac_try_echo=$ac_try;;
12095esac
ec6a6fbe
AK
12096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12097$as_echo "$ac_try_echo") >&5
7a197a62 12098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
12099 ac_status=$?
12100 grep -v '^ *+' conftest.er1 >conftest.err
12101 rm -f conftest.er1
12102 cat conftest.err >&5
ec6a6fbe 12103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12104 (exit $ac_status); } >/dev/null && {
12105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12106 test ! -s conftest.err
12107 }; then
ad6254c5
AK
12108 ac_header_preproc=yes
12109else
ec6a6fbe 12110 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12111sed 's/^/| /' conftest.$ac_ext >&5
12112
12113 ac_header_preproc=no
12114fi
7a197a62 12115
ad6254c5 12116rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
12117{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12118$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
12119
12120# So? What about this header?
8a2fc586
AK
12121case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12122 yes:no: )
ec6a6fbe
AK
12123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12124$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12126$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 12127 ac_header_preproc=yes
ad6254c5 12128 ;;
8a2fc586 12129 no:yes:* )
ec6a6fbe
AK
12130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12131$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12133$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12135$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12137$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12139$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12141$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 12142
ad6254c5
AK
12143 ;;
12144esac
ec6a6fbe
AK
12145{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12146$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12147if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12148 $as_echo_n "(cached) " >&6
ad6254c5 12149else
8a2fc586 12150 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 12151fi
ec6a6fbe
AK
12152ac_res=`eval 'as_val=${'$as_ac_Header'}
12153 $as_echo "$as_val"'`
12154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12155$as_echo "$ac_res" >&6; }
80992638 12156
8106cdd5 12157fi
ec6a6fbe
AK
12158as_val=`eval 'as_val=${'$as_ac_Header'}
12159 $as_echo "$as_val"'`
12160 if test "x$as_val" = x""yes; then
ad6254c5 12161 cat >>confdefs.h <<_ACEOF
ec6a6fbe 12162#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 12163_ACEOF
795ca3e5
AK
12164
12165else
ec6a6fbe
AK
12166 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12167$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 12168 { (exit 1); exit 1; }; }
795ca3e5
AK
12169fi
12170
ad6254c5 12171done
80992638 12172
ad6254c5 12173fi
80992638 12174
ad6254c5 12175if test x$INTL = xyes; then
83912faa 12176
ad6254c5
AK
12177for ac_header in libintl.h
12178do
ec6a6fbe 12179as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 12180if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
12181 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12182$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12183if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12184 $as_echo_n "(cached) " >&6
ad6254c5 12185fi
ec6a6fbe
AK
12186ac_res=`eval 'as_val=${'$as_ac_Header'}
12187 $as_echo "$as_val"'`
12188 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12189$as_echo "$ac_res" >&6; }
83912faa 12190else
ad6254c5 12191 # Is the header compilable?
ec6a6fbe
AK
12192{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12193$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 12194cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12195/* confdefs.h. */
12196_ACEOF
12197cat confdefs.h >>conftest.$ac_ext
12198cat >>conftest.$ac_ext <<_ACEOF
12199/* end confdefs.h. */
12200$ac_includes_default
12201#include <$ac_header>
12202_ACEOF
12203rm -f conftest.$ac_objext
7a197a62
AK
12204if { (ac_try="$ac_compile"
12205case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12208esac
ec6a6fbe
AK
12209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12210$as_echo "$ac_try_echo") >&5
7a197a62 12211 (eval "$ac_compile") 2>conftest.er1
ad6254c5 12212 ac_status=$?
8a2fc586
AK
12213 grep -v '^ *+' conftest.er1 >conftest.err
12214 rm -f conftest.er1
12215 cat conftest.err >&5
ec6a6fbe 12216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12217 (exit $ac_status); } && {
12218 test -z "$ac_c_werror_flag" ||
12219 test ! -s conftest.err
12220 } && test -s conftest.$ac_objext; then
ad6254c5
AK
12221 ac_header_compiler=yes
12222else
ec6a6fbe 12223 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12224sed 's/^/| /' conftest.$ac_ext >&5
12225
7a197a62 12226 ac_header_compiler=no
ad6254c5 12227fi
7a197a62
AK
12228
12229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
12230{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12231$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
12232
12233# Is the header present?
ec6a6fbe
AK
12234{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12235$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 12236cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12237/* confdefs.h. */
12238_ACEOF
12239cat confdefs.h >>conftest.$ac_ext
12240cat >>conftest.$ac_ext <<_ACEOF
12241/* end confdefs.h. */
12242#include <$ac_header>
12243_ACEOF
7a197a62
AK
12244if { (ac_try="$ac_cpp conftest.$ac_ext"
12245case "(($ac_try" in
12246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247 *) ac_try_echo=$ac_try;;
12248esac
ec6a6fbe
AK
12249eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12250$as_echo "$ac_try_echo") >&5
7a197a62 12251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
12252 ac_status=$?
12253 grep -v '^ *+' conftest.er1 >conftest.err
12254 rm -f conftest.er1
12255 cat conftest.err >&5
ec6a6fbe 12256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12257 (exit $ac_status); } >/dev/null && {
12258 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12259 test ! -s conftest.err
12260 }; then
ad6254c5
AK
12261 ac_header_preproc=yes
12262else
ec6a6fbe 12263 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12264sed 's/^/| /' conftest.$ac_ext >&5
12265
12266 ac_header_preproc=no
12267fi
7a197a62 12268
ad6254c5 12269rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
12270{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12271$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
12272
12273# So? What about this header?
8a2fc586
AK
12274case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12275 yes:no: )
ec6a6fbe
AK
12276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12277$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12279$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 12280 ac_header_preproc=yes
ad6254c5 12281 ;;
8a2fc586 12282 no:yes:* )
ec6a6fbe
AK
12283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12284$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12286$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12288$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12290$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12292$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12294$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 12295
ad6254c5
AK
12296 ;;
12297esac
ec6a6fbe
AK
12298{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12299$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12300if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12301 $as_echo_n "(cached) " >&6
80992638 12302else
8a2fc586 12303 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 12304fi
ec6a6fbe
AK
12305ac_res=`eval 'as_val=${'$as_ac_Header'}
12306 $as_echo "$as_val"'`
12307 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12308$as_echo "$ac_res" >&6; }
83912faa 12309
69792976 12310fi
ec6a6fbe
AK
12311as_val=`eval 'as_val=${'$as_ac_Header'}
12312 $as_echo "$as_val"'`
12313 if test "x$as_val" = x""yes; then
ad6254c5 12314 cat >>confdefs.h <<_ACEOF
ec6a6fbe 12315#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 12316_ACEOF
69792976 12317
69792976 12318else
ec6a6fbe
AK
12319 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12320$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 12321 { (exit 1); exit 1; }; }
80992638
AK
12322fi
12323
ad6254c5 12324done
69792976 12325
ad6254c5
AK
12326fi
12327
ad6254c5
AK
12328if test x$HAVE_SELINUX = xyes; then
12329
12330for ac_header in selinux/selinux.h
12331do
ec6a6fbe 12332as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 12333if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
12334 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12335$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12336if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12337 $as_echo_n "(cached) " >&6
ad6254c5 12338fi
ec6a6fbe
AK
12339ac_res=`eval 'as_val=${'$as_ac_Header'}
12340 $as_echo "$as_val"'`
12341 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12342$as_echo "$ac_res" >&6; }
4a7f3eb2 12343else
ad6254c5 12344 # Is the header compilable?
ec6a6fbe
AK
12345{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12346$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 12347cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12348/* confdefs.h. */
12349_ACEOF
12350cat confdefs.h >>conftest.$ac_ext
12351cat >>conftest.$ac_ext <<_ACEOF
12352/* end confdefs.h. */
12353$ac_includes_default
12354#include <$ac_header>
12355_ACEOF
12356rm -f conftest.$ac_objext
7a197a62
AK
12357if { (ac_try="$ac_compile"
12358case "(($ac_try" in
12359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360 *) ac_try_echo=$ac_try;;
12361esac
ec6a6fbe
AK
12362eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12363$as_echo "$ac_try_echo") >&5
7a197a62 12364 (eval "$ac_compile") 2>conftest.er1
ad6254c5 12365 ac_status=$?
8a2fc586
AK
12366 grep -v '^ *+' conftest.er1 >conftest.err
12367 rm -f conftest.er1
12368 cat conftest.err >&5
ec6a6fbe 12369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12370 (exit $ac_status); } && {
12371 test -z "$ac_c_werror_flag" ||
12372 test ! -s conftest.err
12373 } && test -s conftest.$ac_objext; then
ad6254c5
AK
12374 ac_header_compiler=yes
12375else
ec6a6fbe 12376 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12377sed 's/^/| /' conftest.$ac_ext >&5
12378
7a197a62 12379 ac_header_compiler=no
ad6254c5 12380fi
7a197a62
AK
12381
12382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
12383{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12384$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
12385
12386# Is the header present?
ec6a6fbe
AK
12387{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12388$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 12389cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12390/* confdefs.h. */
12391_ACEOF
12392cat confdefs.h >>conftest.$ac_ext
12393cat >>conftest.$ac_ext <<_ACEOF
12394/* end confdefs.h. */
12395#include <$ac_header>
12396_ACEOF
7a197a62
AK
12397if { (ac_try="$ac_cpp conftest.$ac_ext"
12398case "(($ac_try" in
12399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400 *) ac_try_echo=$ac_try;;
12401esac
ec6a6fbe
AK
12402eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12403$as_echo "$ac_try_echo") >&5
7a197a62 12404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
12405 ac_status=$?
12406 grep -v '^ *+' conftest.er1 >conftest.err
12407 rm -f conftest.er1
12408 cat conftest.err >&5
ec6a6fbe 12409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
12410 (exit $ac_status); } >/dev/null && {
12411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12412 test ! -s conftest.err
12413 }; then
ad6254c5
AK
12414 ac_header_preproc=yes
12415else
ec6a6fbe 12416 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
12417sed 's/^/| /' conftest.$ac_ext >&5
12418
12419 ac_header_preproc=no
12420fi
7a197a62 12421
ad6254c5 12422rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
12423{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12424$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
12425
12426# So? What about this header?
8a2fc586
AK
12427case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12428 yes:no: )
ec6a6fbe
AK
12429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12430$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12432$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 12433 ac_header_preproc=yes
ad6254c5 12434 ;;
8a2fc586 12435 no:yes:* )
ec6a6fbe
AK
12436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12437$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12439$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12441$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12443$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12445$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12447$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 12448
ad6254c5
AK
12449 ;;
12450esac
ec6a6fbe
AK
12451{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12452$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 12453if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 12454 $as_echo_n "(cached) " >&6
ad6254c5 12455else
8a2fc586 12456 eval "$as_ac_Header=\$ac_header_preproc"
80992638 12457fi
ec6a6fbe
AK
12458ac_res=`eval 'as_val=${'$as_ac_Header'}
12459 $as_echo "$as_val"'`
12460 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12461$as_echo "$ac_res" >&6; }
4a7f3eb2 12462
ad6254c5 12463fi
ec6a6fbe
AK
12464as_val=`eval 'as_val=${'$as_ac_Header'}
12465 $as_echo "$as_val"'`
12466 if test "x$as_val" = x""yes; then
ad6254c5 12467 cat >>confdefs.h <<_ACEOF
ec6a6fbe 12468#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 12469_ACEOF
0a62c911 12470
0a62c911 12471else
ec6a6fbe
AK
12472 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12473$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 12474 { (exit 1); exit 1; }; }
80992638
AK
12475fi
12476
ad6254c5 12477done
0a62c911 12478
ad6254c5 12479fi
0a62c911 12480
a653923f
AK
12481################################################################################
12482# Extract the first word of "modprobe", so it can be a program name with args.
12483set dummy modprobe; ac_word=$2
ec6a6fbe
AK
12484{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12485$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 12486if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 12487 $as_echo_n "(cached) " >&6
72b2cb61
AK
12488else
12489 case $MODPROBE_CMD in
12490 [\\/]* | ?:[\\/]*)
12491 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
12492 ;;
12493 *)
12494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12495for as_dir in $PATH
12496do
12497 IFS=$as_save_IFS
12498 test -z "$as_dir" && as_dir=.
12499 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 12500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 12501 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 12502 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
12503 break 2
12504 fi
12505done
12506done
7a197a62 12507IFS=$as_save_IFS
72b2cb61
AK
12508
12509 ;;
12510esac
12511fi
12512MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 12513if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
12514 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
12515$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 12516else
ec6a6fbe
AK
12517 { $as_echo "$as_me:$LINENO: result: no" >&5
12518$as_echo "no" >&6; }
72b2cb61
AK
12519fi
12520
a653923f 12521
7a197a62 12522
a653923f 12523if test x$MODPROBE_CMD != x; then
72b2cb61
AK
12524
12525cat >>confdefs.h <<_ACEOF
12526#define MODPROBE_CMD "$MODPROBE_CMD"
12527_ACEOF
12528
a653923f
AK
12529fi
12530
80992638 12531################################################################################
93bd259b
AK
12532
12533
12534if test "$BUILD_DMEVENTD" = yes; then
12535
12536# Check whether --with-dmeventd-pidfile was given.
12537if test "${with_dmeventd_pidfile+set}" = set; then
12538 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
12539#define DMEVENTD_PIDFILE "$withval"
12540_ACEOF
12541
12542else
12543 cat >>confdefs.h <<_ACEOF
12544#define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
12545_ACEOF
12546
12547fi
12548
12549fi
12550
12551
12552
12553if test "$BUILD_DMEVENTD" = yes; then
12554 dmeventd_prefix="$exec_prefix"
12555 if test "x$dmeventd_prefix" = "xNONE"; then
12556 dmeventd_prefix="$prefix"
12557 fi
12558 if test "x$dmeventd_prefix" = "xNONE"; then
12559 dmeventd_prefix=""
12560 fi
12561
12562# Check whether --with-dmeventd-path was given.
12563if test "${with_dmeventd_path+set}" = set; then
12564 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
12565#define DMEVENTD_PATH "$withval"
12566_ACEOF
12567
12568else
12569 cat >>confdefs.h <<_ACEOF
12570#define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
12571_ACEOF
12572
12573fi
12574
12575fi
12576
12577################################################################################
ec6a6fbe
AK
12578{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
12579$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
12580
12581# Check whether --with-interface was given.
12582if test "${with_interface+set}" = set; then
12583 withval=$with_interface; interface="$withval"
12584else
12585 interface=ioctl
12586fi
12587
12588if [ "x$interface" != xioctl ];
12589then
ec6a6fbe
AK
12590 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
12591$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
12592 { (exit 1); exit 1; }; }
12593fi
ec6a6fbe
AK
12594{ $as_echo "$as_me:$LINENO: result: $interface" >&5
12595$as_echo "$interface" >&6; }
93bd259b
AK
12596
12597################################################################################
2c44337b 12598DM_LIB_VERSION="\"`cat VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
12599
12600cat >>confdefs.h <<_ACEOF
12601#define DM_LIB_VERSION $DM_LIB_VERSION
12602_ACEOF
12603
12604
ec6a6fbe 12605DM_LIB_PATCHLEVEL=`cat VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 12606
d0191583 12607LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
fae0c576 12608
ec6a6fbe 12609VER=`cat VERSION`
bf456146 12610LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
12611VER=`echo "$VER" | $AWK '{print $1}'`
12612LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
12613VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
12614LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
12615LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
12616LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
12617LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 12618
80992638 12619################################################################################
fae0c576 12620
83912faa 12621
795ca3e5
AK
12622
12623
12624
12625
12626
12627
5a52dca9 12628
8ef2b021 12629
199e490e 12630
69792976
AK
12631
12632
12633
d0191583 12634
69792976 12635
8106cdd5
AK
12636
12637
12638
12639
12640
d68a82ec 12641
036f273a 12642
7d1552c9 12643
8106cdd5 12644
0a62c911 12645
8106cdd5 12646
4a7f3eb2 12647
4922197a
AK
12648
12649
d8ac0fbc 12650
1a9ea74d 12651
8a2fc586
AK
12652
12653
d0191583 12654
93bd259b
AK
12655
12656
12657
12658
12659
d0191583
JM
12660
12661
12662
12663
12664
8a2fc586 12665
8ce0cbda 12666
8b1a3214 12667
ec6a6fbe
AK
12668
12669
12670
12671
e2997b73
AK
12672
12673
12674
12675
12676
12677
ec6a6fbe 12678
33f732c5 12679
66e941e8 12680
d3c8211f 12681
7e3fe830 12682
572fefeb 12683
bf456146 12684
68f2de6d
AK
12685
12686
80992638 12687################################################################################
e0c64c6c 12688ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/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 man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile"
7a197a62 12689
ad6254c5 12690cat >confcache <<\_ACEOF
795ca3e5
AK
12691# This file is a shell script that caches the results of configure
12692# tests run on this system so they can be shared between configure
ad6254c5
AK
12693# scripts and configure runs, see configure's option --config-cache.
12694# It is not useful on other systems. If it contains results you don't
12695# want to keep, you may remove or edit it.
795ca3e5 12696#
ad6254c5
AK
12697# config.status only pays attention to the cache file if you give it
12698# the --recheck option to rerun configure.
795ca3e5 12699#
ad6254c5
AK
12700# `ac_cv_env_foo' variables (set or unset) will be overridden when
12701# loading this file, other *unset* `ac_cv_foo' will be assigned the
12702# following values.
12703
12704_ACEOF
12705
795ca3e5
AK
12706# The following way of writing the cache mishandles newlines in values,
12707# but we know of no workaround that is simple, portable, and efficient.
7a197a62 12708# So, we kill variables containing newlines.
795ca3e5
AK
12709# Ultrix sh set writes to stderr and can't be redirected directly,
12710# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
12711(
12712 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12713 eval ac_val=\$$ac_var
12714 case $ac_val in #(
12715 *${as_nl}*)
12716 case $ac_var in #(
ec6a6fbe
AK
12717 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12718$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
12719 esac
12720 case $ac_var in #(
12721 _ | IFS | as_nl) ;; #(
ec6a6fbe 12722 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
12723 *) $as_unset $ac_var ;;
12724 esac ;;
12725 esac
12726 done
12727
ad6254c5 12728 (set) 2>&1 |
7a197a62
AK
12729 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12730 *${as_nl}ac_space=\ *)
ad6254c5
AK
12731 # `set' does not quote correctly, so add quotes (double-quote
12732 # substitution turns \\\\ into \\, and sed turns \\ into \).
12733 sed -n \
8a2fc586
AK
12734 "s/'/'\\\\''/g;
12735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 12736 ;; #(
ad6254c5
AK
12737 *)
12738 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 12739 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 12740 ;;
7a197a62
AK
12741 esac |
12742 sort
12743) |
ad6254c5 12744 sed '
7a197a62 12745 /^ac_cv_env_/b end
ad6254c5 12746 t clear
7a197a62 12747 :clear
ad6254c5
AK
12748 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12749 t end
7a197a62
AK
12750 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12751 :end' >>confcache
12752if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12753 if test -w "$cache_file"; then
12754 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
12755 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12756$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 12757 cat confcache >$cache_file
795ca3e5 12758 else
ec6a6fbe
AK
12759 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12760$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
12761 fi
12762fi
12763rm -f confcache
12764
795ca3e5
AK
12765test "x$prefix" = xNONE && prefix=$ac_default_prefix
12766# Let make expand exec_prefix.
12767test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12768
72b2cb61 12769DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
12770
12771ac_libobjs=
12772ac_ltlibobjs=
12773for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12774 # 1. Remove the extension, and $U if already installed.
7a197a62 12775 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 12776 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
12777 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12778 # will be set to the directory where LIBOBJS objects are built.
12779 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12780 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
12781done
12782LIBOBJS=$ac_libobjs
80992638 12783
ad6254c5
AK
12784LTLIBOBJS=$ac_ltlibobjs
12785
12786
12787
12788: ${CONFIG_STATUS=./config.status}
ec6a6fbe 12789ac_write_fail=0
ad6254c5
AK
12790ac_clean_files_save=$ac_clean_files
12791ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
12792{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12793$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12794cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
12795#! $SHELL
12796# Generated by $as_me.
795ca3e5 12797# Run this file to recreate the current configuration.
795ca3e5 12798# Compiler output produced by configure, useful for debugging
ad6254c5
AK
12799# configure, is in config.log if it exists.
12800
12801debug=false
12802ac_cs_recheck=false
12803ac_cs_silent=false
12804SHELL=\${CONFIG_SHELL-$SHELL}
12805_ACEOF
12806
ec6a6fbe 12807cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
12808## --------------------- ##
12809## M4sh Initialization. ##
12810## --------------------- ##
12811
25fbec5b
AK
12812# Be more Bourne compatible
12813DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
12814if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12815 emulate sh
12816 NULLCMD=:
ec6a6fbe 12817 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
12818 # is contrary to our usage. Disable this feature.
12819 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
12820 setopt NO_GLOB_SUBST
12821else
25fbec5b
AK
12822 case `(set -o) 2>/dev/null` in
12823 *posix*) set -o posix ;;
12824esac
12825
7a197a62 12826fi
25fbec5b
AK
12827
12828
7a197a62
AK
12829
12830
12831# PATH needs CR
12832# Avoid depending upon Character Ranges.
12833as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12834as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12835as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12836as_cr_digits='0123456789'
12837as_cr_alnum=$as_cr_Letters$as_cr_digits
12838
ec6a6fbe
AK
12839as_nl='
12840'
12841export as_nl
12842# Printing a long string crashes Solaris 7 /usr/bin/printf.
12843as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12844as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12845as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12846if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12847 as_echo='printf %s\n'
12848 as_echo_n='printf %s'
12849else
12850 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12851 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12852 as_echo_n='/usr/ucb/echo -n'
68f2de6d 12853 else
ec6a6fbe
AK
12854 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12855 as_echo_n_body='eval
12856 arg=$1;
12857 case $arg in
12858 *"$as_nl"*)
12859 expr "X$arg" : "X\\(.*\\)$as_nl";
12860 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12861 esac;
12862 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12863 '
12864 export as_echo_n_body
12865 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 12866 fi
ec6a6fbe
AK
12867 export as_echo_body
12868 as_echo='sh -c $as_echo_body as_echo'
12869fi
12870
12871# The user is always right.
12872if test "${PATH_SEPARATOR+set}" != set; then
12873 PATH_SEPARATOR=:
12874 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12875 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12876 PATH_SEPARATOR=';'
12877 }
ad6254c5
AK
12878fi
12879
12880# Support unset when possible.
8a2fc586 12881if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
12882 as_unset=unset
12883else
12884 as_unset=false
12885fi
8106cdd5 12886
ad6254c5 12887
7a197a62
AK
12888# IFS
12889# We need space, tab and new line, in precisely that order. Quoting is
12890# there to prevent editors from complaining about space-tab.
12891# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12892# splitting by setting IFS to empty value.)
7a197a62
AK
12893IFS=" "" $as_nl"
12894
12895# Find who we are. Look in the path if we contain no directory separator.
12896case $0 in
12897 *[\\/]* ) as_myself=$0 ;;
12898 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12899for as_dir in $PATH
12900do
12901 IFS=$as_save_IFS
12902 test -z "$as_dir" && as_dir=.
12903 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12904done
12905IFS=$as_save_IFS
12906
12907 ;;
12908esac
12909# We did not find ourselves, most probably we were run as `sh COMMAND'
12910# in which case we are not to be found in the path.
12911if test "x$as_myself" = x; then
12912 as_myself=$0
12913fi
12914if test ! -f "$as_myself"; then
ec6a6fbe 12915 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
12916 { (exit 1); exit 1; }
12917fi
12918
ad6254c5 12919# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
12920for as_var in ENV MAIL MAILPATH
12921do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12922done
ad6254c5
AK
12923PS1='$ '
12924PS2='> '
12925PS4='+ '
12926
12927# NLS nuisances.
ec6a6fbe
AK
12928LC_ALL=C
12929export LC_ALL
12930LANGUAGE=C
12931export LANGUAGE
8106cdd5 12932
ad6254c5 12933# Required to use basename.
7a197a62
AK
12934if expr a : '\(a\)' >/dev/null 2>&1 &&
12935 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
12936 as_expr=expr
12937else
12938 as_expr=false
12939fi
8106cdd5 12940
7a197a62 12941if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
12942 as_basename=basename
12943else
12944 as_basename=false
12945fi
12946
12947
12948# Name of the executable.
7a197a62 12949as_me=`$as_basename -- "$0" ||
ad6254c5
AK
12950$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12951 X"$0" : 'X\(//\)$' \| \
7a197a62 12952 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 12953$as_echo X/"$0" |
7a197a62
AK
12954 sed '/^.*\/\([^/][^/]*\)\/*$/{
12955 s//\1/
12956 q
12957 }
12958 /^X\/\(\/\/\)$/{
12959 s//\1/
12960 q
12961 }
12962 /^X\/\(\/\).*/{
12963 s//\1/
12964 q
12965 }
12966 s/.*/./; q'`
ad6254c5 12967
7a197a62
AK
12968# CDPATH.
12969$as_unset CDPATH
ad6254c5
AK
12970
12971
ad6254c5 12972
ad6254c5
AK
12973 as_lineno_1=$LINENO
12974 as_lineno_2=$LINENO
ad6254c5 12975 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 12976 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 12977
ad6254c5
AK
12978 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12979 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
12980 # line-number line after each line using $LINENO; the second 'sed'
12981 # does the real work. The second script uses 'N' to pair each
12982 # line-number line with the line containing $LINENO, and appends
12983 # trailing '-' during substitution so that $LINENO is not a special
12984 # case at line end.
ad6254c5 12985 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
12986 # scripts with optimization help from Paolo Bonzini. Blame Lee
12987 # E. McMahon (1931-1989) for sed's syntax. :-)
12988 sed -n '
12989 p
12990 /[$]LINENO/=
12991 ' <$as_myself |
ad6254c5 12992 sed '
7a197a62
AK
12993 s/[$]LINENO.*/&-/
12994 t lineno
12995 b
12996 :lineno
ad6254c5 12997 N
7a197a62
AK
12998 :loop
12999 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 13000 t loop
7a197a62 13001 s/-\n.*//
ad6254c5 13002 ' >$as_me.lineno &&
7a197a62 13003 chmod +x "$as_me.lineno" ||
ec6a6fbe 13004 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
13005 { (exit 1); exit 1; }; }
13006
13007 # Don't try to exec as it changes $[0], causing all sort of problems
13008 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
13009 # original and so on. Autoconf is especially sensitive to this).
13010 . "./$as_me.lineno"
ad6254c5
AK
13011 # Exit status is that of the last command.
13012 exit
13013}
13014
13015
7a197a62
AK
13016if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13017 as_dirname=dirname
13018else
13019 as_dirname=false
13020fi
13021
13022ECHO_C= ECHO_N= ECHO_T=
13023case `echo -n x` in
13024-n*)
13025 case `echo 'x\c'` in
13026 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13027 *) ECHO_C='\c';;
13028 esac;;
13029*)
13030 ECHO_N='-n';;
ad6254c5 13031esac
7a197a62
AK
13032if expr a : '\(a\)' >/dev/null 2>&1 &&
13033 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
13034 as_expr=expr
13035else
13036 as_expr=false
13037fi
80992638 13038
ad6254c5 13039rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
13040if test -d conf$$.dir; then
13041 rm -f conf$$.dir/conf$$.file
13042else
13043 rm -f conf$$.dir
ec6a6fbe
AK
13044 mkdir conf$$.dir 2>/dev/null
13045fi
13046if (echo >conf$$.file) 2>/dev/null; then
13047 if ln -s conf$$.file conf$$ 2>/dev/null; then
13048 as_ln_s='ln -s'
13049 # ... but there are two gotchas:
13050 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13051 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13052 # In both cases, we have to default to `cp -p'.
13053 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13054 as_ln_s='cp -p'
13055 elif ln conf$$.file conf$$ 2>/dev/null; then
13056 as_ln_s=ln
13057 else
ad6254c5 13058 as_ln_s='cp -p'
ec6a6fbe 13059 fi
ad6254c5
AK
13060else
13061 as_ln_s='cp -p'
13062fi
7a197a62
AK
13063rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13064rmdir conf$$.dir 2>/dev/null
8106cdd5 13065
ad6254c5
AK
13066if mkdir -p . 2>/dev/null; then
13067 as_mkdir_p=:
13068else
8a2fc586 13069 test -d ./-p && rmdir ./-p
ad6254c5
AK
13070 as_mkdir_p=false
13071fi
13072
25fbec5b
AK
13073if test -x / >/dev/null 2>&1; then
13074 as_test_x='test -x'
7a197a62 13075else
25fbec5b
AK
13076 if ls -dL / >/dev/null 2>&1; then
13077 as_ls_L_option=L
13078 else
13079 as_ls_L_option=
13080 fi
13081 as_test_x='
13082 eval sh -c '\''
13083 if test -d "$1"; then
ec6a6fbe 13084 test -d "$1/.";
25fbec5b
AK
13085 else
13086 case $1 in
ec6a6fbe 13087 -*)set "./$1";;
25fbec5b
AK
13088 esac;
13089 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13090 ???[sx]*):;;*)false;;esac;fi
13091 '\'' sh
13092 '
7a197a62 13093fi
25fbec5b 13094as_executable_p=$as_test_x
ad6254c5
AK
13095
13096# Sed expression to map a string onto a valid CPP name.
8a2fc586 13097as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
13098
13099# Sed expression to map a string onto a valid variable name.
8a2fc586 13100as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
13101
13102
ad6254c5
AK
13103exec 6>&1
13104
7a197a62 13105# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 13106# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
13107# values after options handling.
13108ac_log="
ad6254c5 13109This file was extended by $as_me, which was
ec6a6fbe 13110generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
13111
13112 CONFIG_FILES = $CONFIG_FILES
13113 CONFIG_HEADERS = $CONFIG_HEADERS
13114 CONFIG_LINKS = $CONFIG_LINKS
13115 CONFIG_COMMANDS = $CONFIG_COMMANDS
13116 $ $0 $@
13117
7a197a62
AK
13118on `(hostname || uname -n) 2>/dev/null | sed 1q`
13119"
13120
ad6254c5
AK
13121_ACEOF
13122
ec6a6fbe
AK
13123case $ac_config_files in *"
13124"*) set x $ac_config_files; shift; ac_config_files=$*;;
13125esac
13126
13127case $ac_config_headers in *"
13128"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13129esac
13130
13131
13132cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 13133# Files that config.status was made for.
68f2de6d
AK
13134config_files="$ac_config_files"
13135config_headers="$ac_config_headers"
ad6254c5 13136
7a197a62 13137_ACEOF
ad6254c5 13138
ec6a6fbe 13139cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
13140ac_cs_usage="\
13141\`$as_me' instantiates files from templates according to the
13142current configuration.
13143
ec6a6fbe 13144Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
13145
13146 -h, --help print this help, then exit
25fbec5b 13147 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
13148 -q, --quiet, --silent
13149 do not print progress messages
ad6254c5
AK
13150 -d, --debug don't remove temporary files
13151 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
13152 --file=FILE[:TEMPLATE]
13153 instantiate the configuration file FILE
13154 --header=FILE[:TEMPLATE]
13155 instantiate the configuration header FILE
ad6254c5
AK
13156
13157Configuration files:
13158$config_files
13159
72b2cb61
AK
13160Configuration headers:
13161$config_headers
13162
ad6254c5 13163Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 13164
7a197a62 13165_ACEOF
ec6a6fbe 13166cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
13167ac_cs_version="\\
13168config.status
ec6a6fbe
AK
13169configured by $0, generated by GNU Autoconf 2.63,
13170 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 13171
ec6a6fbe 13172Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
13173This config.status script is free software; the Free Software Foundation
13174gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
13175
13176ac_pwd='$ac_pwd'
13177srcdir='$srcdir'
13178INSTALL='$INSTALL'
fddafd51 13179MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
13180AWK='$AWK'
13181test -n "\$AWK" || AWK=awk
ad6254c5
AK
13182_ACEOF
13183
ec6a6fbe
AK
13184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13185# The default lists apply if the user does not specify any file.
ad6254c5
AK
13186ac_need_defaults=:
13187while test $# != 0
13188do
13189 case $1 in
13190 --*=*)
7a197a62
AK
13191 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13192 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
13193 ac_shift=:
13194 ;;
7a197a62 13195 *)
ad6254c5
AK
13196 ac_option=$1
13197 ac_optarg=$2
13198 ac_shift=shift
13199 ;;
ad6254c5
AK
13200 esac
13201
13202 case $ac_option in
13203 # Handling of the options.
ad6254c5
AK
13204 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13205 ac_cs_recheck=: ;;
7a197a62 13206 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 13207 $as_echo "$ac_cs_version"; exit ;;
7a197a62 13208 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
13209 debug=: ;;
13210 --file | --fil | --fi | --f )
13211 $ac_shift
ec6a6fbe
AK
13212 case $ac_optarg in
13213 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13214 esac
13215 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
13216 ac_need_defaults=false;;
13217 --header | --heade | --head | --hea )
13218 $ac_shift
ec6a6fbe
AK
13219 case $ac_optarg in
13220 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13221 esac
13222 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 13223 ac_need_defaults=false;;
7a197a62
AK
13224 --he | --h)
13225 # Conflict between --help and --header
ec6a6fbe 13226 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
13227Try \`$0 --help' for more information." >&2
13228 { (exit 1); exit 1; }; };;
13229 --help | --hel | -h )
ec6a6fbe 13230 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
13231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13232 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13233 ac_cs_silent=: ;;
13234
13235 # This is an error.
ec6a6fbe 13236 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 13237Try \`$0 --help' for more information." >&2
ad6254c5
AK
13238 { (exit 1); exit 1; }; } ;;
13239
7a197a62
AK
13240 *) ac_config_targets="$ac_config_targets $1"
13241 ac_need_defaults=false ;;
ad6254c5
AK
13242
13243 esac
13244 shift
13245done
13246
13247ac_configure_extra_args=
13248
13249if $ac_cs_silent; then
13250 exec 6>/dev/null
13251 ac_configure_extra_args="$ac_configure_extra_args --silent"
13252fi
13253
13254_ACEOF
ec6a6fbe 13255cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 13256if \$ac_cs_recheck; then
ec6a6fbe
AK
13257 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13258 shift
13259 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13260 CONFIG_SHELL='$SHELL'
7a197a62 13261 export CONFIG_SHELL
ec6a6fbe 13262 exec "\$@"
ad6254c5
AK
13263fi
13264
13265_ACEOF
ec6a6fbe 13266cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
13267exec 5>>config.log
13268{
13269 echo
13270 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13271## Running $as_me. ##
13272_ASBOX
ec6a6fbe 13273 $as_echo "$ac_log"
7a197a62 13274} >&5
ad6254c5 13275
7a197a62 13276_ACEOF
ec6a6fbe 13277cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 13278_ACEOF
ad6254c5 13279
ec6a6fbe 13280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
13281
13282# Handling of arguments.
ad6254c5
AK
13283for ac_config_target in $ac_config_targets
13284do
7a197a62
AK
13285 case $ac_config_target in
13286 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
13287 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13288 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
13289 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
13290 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
93bd259b
AK
13291 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
13292 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 13293 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
93bd259b
AK
13294 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
13295 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 13296 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
93bd259b
AK
13297 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13298 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
13299 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
13300 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
13301 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
13302 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
ec6a6fbe 13303 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 13304 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
13305 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
13306 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 13307 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
93bd259b
AK
13308 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13309 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 13310 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
7a197a62 13311 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 13312 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 13313 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 13314 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
7a197a62 13315
ec6a6fbe
AK
13316 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13317$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 13318 { (exit 1); exit 1; }; };;
80992638 13319 esac
ad6254c5
AK
13320done
13321
7a197a62 13322
ad6254c5
AK
13323# If the user did not use the arguments to specify the items to instantiate,
13324# then the envvar interface is used. Set only those that are not.
13325# We use the long form for the default assignment because of an extremely
13326# bizarre bug on SunOS 4.1.3.
13327if $ac_need_defaults; then
13328 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 13329 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
13330fi
13331
13332# Have a temporary directory for convenience. Make it in the build tree
7a197a62 13333# simply because there is no reason against having it here, and in addition,
ad6254c5 13334# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
13335# Hook for its removal unless debugging.
13336# Note that there is a small window in which the directory will not be cleaned:
13337# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
13338$debug ||
13339{
7a197a62
AK
13340 tmp=
13341 trap 'exit_status=$?
13342 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13343' 0
ad6254c5
AK
13344 trap '{ (exit 1); exit 1; }' 1 2 13 15
13345}
ad6254c5
AK
13346# Create a (secure) tmp directory for tmp files.
13347
13348{
7a197a62 13349 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
13350 test -n "$tmp" && test -d "$tmp"
13351} ||
13352{
7a197a62
AK
13353 tmp=./conf$$-$RANDOM
13354 (umask 077 && mkdir "$tmp")
ad6254c5
AK
13355} ||
13356{
ec6a6fbe 13357 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
13358 { (exit 1); exit 1; }
13359}
13360
ec6a6fbe
AK
13361# Set up the scripts for CONFIG_FILES section.
13362# No need to generate them if there are no CONFIG_FILES.
13363# This happens for instance with `./config.status config.h'.
1995c9ff 13364if test -n "$CONFIG_FILES"; then
7a197a62 13365
68f2de6d 13366
ec6a6fbe
AK
13367ac_cr='\r'
13368ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13369if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13370 ac_cs_awk_cr='\\r'
13371else
13372 ac_cs_awk_cr=$ac_cr
1995c9ff 13373fi
7a197a62 13374
ec6a6fbe 13375echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 13376_ACEOF
7a197a62 13377
8106cdd5 13378
ec6a6fbe
AK
13379{
13380 echo "cat >conf$$subs.awk <<_ACEOF" &&
13381 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13382 echo "_ACEOF"
13383} >conf$$subs.sh ||
13384 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13385$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13386 { (exit 1); exit 1; }; }
13387ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
13388ac_delim='%!_!# '
13389for ac_last_try in false false false false false :; do
ec6a6fbe
AK
13390 . ./conf$$subs.sh ||
13391 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13392$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13393 { (exit 1); exit 1; }; }
13394
13395 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13396 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
13397 break
13398 elif $ac_last_try; then
ec6a6fbe
AK
13399 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13400$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
13401 { (exit 1); exit 1; }; }
13402 else
13403 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13404 fi
13405done
ec6a6fbe
AK
13406rm -f conf$$subs.sh
13407
13408cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13409cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13410_ACEOF
13411sed -n '
13412h
13413s/^/S["/; s/!.*/"]=/
13414p
13415g
13416s/^[^!]*!//
13417:repl
13418t repl
13419s/'"$ac_delim"'$//
13420t delim
13421:nl
13422h
13423s/\(.\{148\}\).*/\1/
13424t more1
13425s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13426p
13427n
13428b repl
13429:more1
13430s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13431p
13432g
13433s/.\{148\}//
13434t nl
13435:delim
13436h
13437s/\(.\{148\}\).*/\1/
13438t more2
13439s/["\\]/\\&/g; s/^/"/; s/$/"/
13440p
13441b
13442:more2
13443s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13444p
13445g
13446s/.\{148\}//
13447t delim
13448' <conf$$subs.awk | sed '
13449/^[^""]/{
13450 N
13451 s/\n//
13452}
13453' >>$CONFIG_STATUS || ac_write_fail=1
13454rm -f conf$$subs.awk
13455cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13456_ACAWK
13457cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13458 for (key in S) S_is_set[key] = 1
13459 FS = "\a"
7a197a62 13460
ec6a6fbe
AK
13461}
13462{
13463 line = $ 0
13464 nfields = split(line, field, "@")
13465 substed = 0
13466 len = length(field[1])
13467 for (i = 2; i < nfields; i++) {
13468 key = field[i]
13469 keylen = length(key)
13470 if (S_is_set[key]) {
13471 value = S[key]
13472 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13473 len += length(value) + length(field[++i])
13474 substed = 1
13475 } else
13476 len += 1 + keylen
13477 }
13478
13479 print line
13480}
fddafd51 13481
ec6a6fbe 13482_ACAWK
1995c9ff 13483_ACEOF
ec6a6fbe
AK
13484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13485if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13486 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13487else
13488 cat
13489fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13490 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13491$as_echo "$as_me: error: could not setup config files machinery" >&2;}
13492 { (exit 1); exit 1; }; }
7a197a62
AK
13493_ACEOF
13494
7a197a62
AK
13495# VPATH may cause trouble with some makes, so we remove $(srcdir),
13496# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13497# trailing colons and then remove the whole line if VPATH becomes empty
13498# (actually we leave an empty line to preserve line numbers).
13499if test "x$srcdir" = x.; then
13500 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13501s/:*\$(srcdir):*/:/
13502s/:*\${srcdir}:*/:/
13503s/:*@srcdir@:*/:/
13504s/^\([^=]*=[ ]*\):*/\1/
13505s/:*$//
13506s/^[^=]*=[ ]*$//
13507}'
13508fi
13509
ec6a6fbe 13510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
13511fi # test -n "$CONFIG_FILES"
13512
ec6a6fbe
AK
13513# Set up the scripts for CONFIG_HEADERS section.
13514# No need to generate them if there are no CONFIG_HEADERS.
13515# This happens for instance with `./config.status Makefile'.
13516if test -n "$CONFIG_HEADERS"; then
13517cat >"$tmp/defines.awk" <<\_ACAWK ||
13518BEGIN {
13519_ACEOF
13520
13521# Transform confdefs.h into an awk script `defines.awk', embedded as
13522# here-document in config.status, that substitutes the proper values into
13523# config.h.in to produce config.h.
13524
13525# Create a delimiter string that does not exist in confdefs.h, to ease
13526# handling of long lines.
13527ac_delim='%!_!# '
13528for ac_last_try in false false :; do
13529 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13530 if test -z "$ac_t"; then
13531 break
13532 elif $ac_last_try; then
13533 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13534$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13535 { (exit 1); exit 1; }; }
13536 else
13537 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13538 fi
13539done
13540
13541# For the awk script, D is an array of macro values keyed by name,
13542# likewise P contains macro parameters if any. Preserve backslash
13543# newline sequences.
13544
13545ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13546sed -n '
13547s/.\{148\}/&'"$ac_delim"'/g
13548t rset
13549:rset
13550s/^[ ]*#[ ]*define[ ][ ]*/ /
13551t def
13552d
13553:def
13554s/\\$//
13555t bsnl
13556s/["\\]/\\&/g
13557s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13558D["\1"]=" \3"/p
13559s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13560d
13561:bsnl
13562s/["\\]/\\&/g
13563s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13564D["\1"]=" \3\\\\\\n"\\/p
13565t cont
13566s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13567t cont
13568d
13569:cont
13570n
13571s/.\{148\}/&'"$ac_delim"'/g
13572t clear
13573:clear
13574s/\\$//
13575t bsnlc
13576s/["\\]/\\&/g; s/^/"/; s/$/"/p
13577d
13578:bsnlc
13579s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13580b cont
13581' <confdefs.h | sed '
13582s/'"$ac_delim"'/"\\\
13583"/g' >>$CONFIG_STATUS || ac_write_fail=1
13584
13585cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13586 for (key in D) D_is_set[key] = 1
13587 FS = "\a"
13588}
13589/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13590 line = \$ 0
13591 split(line, arg, " ")
13592 if (arg[1] == "#") {
13593 defundef = arg[2]
13594 mac1 = arg[3]
13595 } else {
13596 defundef = substr(arg[1], 2)
13597 mac1 = arg[2]
13598 }
13599 split(mac1, mac2, "(") #)
13600 macro = mac2[1]
13601 prefix = substr(line, 1, index(line, defundef) - 1)
13602 if (D_is_set[macro]) {
13603 # Preserve the white space surrounding the "#".
13604 print prefix "define", macro P[macro] D[macro]
13605 next
13606 } else {
13607 # Replace #undef with comments. This is necessary, for example,
13608 # in the case of _POSIX_SOURCE, which is predefined and required
13609 # on some systems where configure will not decide to define it.
13610 if (defundef == "undef") {
13611 print "/*", prefix defundef, macro, "*/"
13612 next
13613 }
13614 }
13615}
13616{ print }
13617_ACAWK
13618_ACEOF
13619cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13620 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13621$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13622 { (exit 1); exit 1; }; }
13623fi # test -n "$CONFIG_HEADERS"
13624
7a197a62 13625
ec6a6fbe
AK
13626eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
13627shift
13628for ac_tag
7a197a62
AK
13629do
13630 case $ac_tag in
13631 :[FHLC]) ac_mode=$ac_tag; continue;;
13632 esac
13633 case $ac_mode$ac_tag in
13634 :[FHL]*:*);;
ec6a6fbe
AK
13635 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13636$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
13637 { (exit 1); exit 1; }; };;
13638 :[FH]-) ac_tag=-:-;;
13639 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13640 esac
13641 ac_save_IFS=$IFS
13642 IFS=:
13643 set x $ac_tag
13644 IFS=$ac_save_IFS
13645 shift
13646 ac_file=$1
13647 shift
13648
13649 case $ac_mode in
13650 :L) ac_source=$1;;
13651 :[FH])
13652 ac_file_inputs=
13653 for ac_f
13654 do
13655 case $ac_f in
13656 -) ac_f="$tmp/stdin";;
13657 *) # Look for the file first in the build tree, then in the source tree
13658 # (if the path is not absolute). The absolute path cannot be DOS-style,
13659 # because $ac_f cannot contain `:'.
13660 test -f "$ac_f" ||
13661 case $ac_f in
13662 [\\/$]*) false;;
13663 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13664 esac ||
ec6a6fbe
AK
13665 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13666$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
13667 { (exit 1); exit 1; }; };;
13668 esac
ec6a6fbe
AK
13669 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13670 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
13671 done
13672
13673 # Let's still pretend it is `configure' which instantiates (i.e., don't
13674 # use $as_me), people would be surprised to read:
13675 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
13676 configure_input='Generated from '`
13677 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13678 `' by configure.'
7a197a62
AK
13679 if test x"$ac_file" != x-; then
13680 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
13681 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13682$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 13683 fi
ec6a6fbe
AK
13684 # Neutralize special characters interpreted by sed in replacement strings.
13685 case $configure_input in #(
13686 *\&* | *\|* | *\\* )
13687 ac_sed_conf_input=`$as_echo "$configure_input" |
13688 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13689 *) ac_sed_conf_input=$configure_input;;
13690 esac
7a197a62
AK
13691
13692 case $ac_tag in
ec6a6fbe
AK
13693 *:-:* | *:-) cat >"$tmp/stdin" \
13694 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13695$as_echo "$as_me: error: could not create $ac_file" >&2;}
13696 { (exit 1); exit 1; }; } ;;
7a197a62
AK
13697 esac
13698 ;;
80992638 13699 esac
8106cdd5 13700
7a197a62 13701 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 13702$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
13703 X"$ac_file" : 'X\(//\)[^/]' \| \
13704 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 13705 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 13706$as_echo X"$ac_file" |
7a197a62
AK
13707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13708 s//\1/
13709 q
13710 }
13711 /^X\(\/\/\)[^/].*/{
13712 s//\1/
13713 q
13714 }
13715 /^X\(\/\/\)$/{
13716 s//\1/
13717 q
13718 }
13719 /^X\(\/\).*/{
13720 s//\1/
13721 q
13722 }
13723 s/.*/./; q'`
13724 { as_dir="$ac_dir"
13725 case $as_dir in #(
13726 -*) as_dir=./$as_dir;;
13727 esac
13728 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 13729 as_dirs=
7a197a62
AK
13730 while :; do
13731 case $as_dir in #(
ec6a6fbe 13732 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
13733 *) as_qdir=$as_dir;;
13734 esac
13735 as_dirs="'$as_qdir' $as_dirs"
13736 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 13737$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
13738 X"$as_dir" : 'X\(//\)[^/]' \| \
13739 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 13740 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 13741$as_echo X"$as_dir" |
7a197a62
AK
13742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13743 s//\1/
13744 q
13745 }
13746 /^X\(\/\/\)[^/].*/{
13747 s//\1/
13748 q
13749 }
13750 /^X\(\/\/\)$/{
13751 s//\1/
13752 q
13753 }
13754 /^X\(\/\).*/{
13755 s//\1/
13756 q
13757 }
13758 s/.*/./; q'`
13759 test -d "$as_dir" && break
ad6254c5 13760 done
7a197a62 13761 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
13762 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13763$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 13764 { (exit 1); exit 1; }; }; }
ad6254c5
AK
13765 ac_builddir=.
13766
7a197a62
AK
13767case "$ac_dir" in
13768.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13769*)
ec6a6fbe 13770 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 13771 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 13772 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
13773 case $ac_top_builddir_sub in
13774 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13775 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13776 esac ;;
13777esac
13778ac_abs_top_builddir=$ac_pwd
13779ac_abs_builddir=$ac_pwd$ac_dir_suffix
13780# for backward compatibility:
13781ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
13782
13783case $srcdir in
7a197a62 13784 .) # We are building in place.
ad6254c5 13785 ac_srcdir=.
7a197a62
AK
13786 ac_top_srcdir=$ac_top_builddir_sub
13787 ac_abs_top_srcdir=$ac_pwd ;;
13788 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 13789 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
13790 ac_top_srcdir=$srcdir
13791 ac_abs_top_srcdir=$srcdir ;;
13792 *) # Relative name.
13793 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13794 ac_top_srcdir=$ac_top_build_prefix$srcdir
13795 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 13796esac
7a197a62 13797ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 13798
ad6254c5 13799
7a197a62
AK
13800 case $ac_mode in
13801 :F)
13802 #
13803 # CONFIG_FILE
13804 #
ad6254c5
AK
13805
13806 case $INSTALL in
13807 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 13808 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 13809 esac
fddafd51
ZK
13810 ac_MKDIR_P=$MKDIR_P
13811 case $MKDIR_P in
13812 [\\/$]* | ?:[\\/]* ) ;;
13813 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13814 esac
7a197a62 13815_ACEOF
795ca3e5 13816
ec6a6fbe 13817cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
13818# If the template does not know about datarootdir, expand it.
13819# FIXME: This hack should be removed a few years after 2.60.
13820ac_datarootdir_hack=; ac_datarootdir_seen=
13821
ec6a6fbe
AK
13822ac_sed_dataroot='
13823/datarootdir/ {
7a197a62
AK
13824 p
13825 q
13826}
13827/@datadir@/p
13828/@docdir@/p
13829/@infodir@/p
13830/@localedir@/p
13831/@mandir@/p
ec6a6fbe
AK
13832'
13833case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
13834*datarootdir*) ac_datarootdir_seen=yes;;
13835*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
13836 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13837$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 13838_ACEOF
ec6a6fbe 13839cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
13840 ac_datarootdir_hack='
13841 s&@datadir@&$datadir&g
13842 s&@docdir@&$docdir&g
13843 s&@infodir@&$infodir&g
13844 s&@localedir@&$localedir&g
13845 s&@mandir@&$mandir&g
13846 s&\\\${datarootdir}&$datarootdir&g' ;;
13847esac
13848_ACEOF
13849
13850# Neutralize VPATH when `$srcdir' = `.'.
13851# Shell code in configure.ac might set extrasub.
13852# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
13853cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13854ac_sed_extra="$ac_vpsub
ad6254c5
AK
13855$extrasub
13856_ACEOF
ec6a6fbe 13857cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
13858:t
13859/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 13860s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 13861s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 13862s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
13863s&@srcdir@&$ac_srcdir&;t t
13864s&@abs_srcdir@&$ac_abs_srcdir&;t t
13865s&@top_srcdir@&$ac_top_srcdir&;t t
13866s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13867s&@builddir@&$ac_builddir&;t t
13868s&@abs_builddir@&$ac_abs_builddir&;t t
13869s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13870s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 13871s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 13872$ac_datarootdir_hack
ec6a6fbe
AK
13873"
13874eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13875 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13876$as_echo "$as_me: error: could not create $ac_file" >&2;}
13877 { (exit 1); exit 1; }; }
7a197a62
AK
13878
13879test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13880 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13881 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 13882 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 13883which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 13884$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
13885which seems to be undefined. Please make sure it is defined." >&2;}
13886
13887 rm -f "$tmp/stdin"
72b2cb61 13888 case $ac_file in
ec6a6fbe
AK
13889 -) cat "$tmp/out" && rm -f "$tmp/out";;
13890 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13891 esac \
13892 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13893$as_echo "$as_me: error: could not create $ac_file" >&2;}
13894 { (exit 1); exit 1; }; }
7a197a62
AK
13895 ;;
13896 :H)
13897 #
13898 # CONFIG_HEADER
13899 #
72b2cb61 13900 if test x"$ac_file" != x-; then
ec6a6fbe
AK
13901 {
13902 $as_echo "/* $configure_input */" \
13903 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13904 } >"$tmp/config.h" \
13905 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13906$as_echo "$as_me: error: could not create $ac_file" >&2;}
13907 { (exit 1); exit 1; }; }
13908 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13909 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13910$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 13911 else
ec6a6fbe
AK
13912 rm -f "$ac_file"
13913 mv "$tmp/config.h" "$ac_file" \
13914 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13915$as_echo "$as_me: error: could not create $ac_file" >&2;}
13916 { (exit 1); exit 1; }; }
72b2cb61
AK
13917 fi
13918 else
ec6a6fbe
AK
13919 $as_echo "/* $configure_input */" \
13920 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13921 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13922$as_echo "$as_me: error: could not create -" >&2;}
13923 { (exit 1); exit 1; }; }
72b2cb61 13924 fi
7a197a62
AK
13925 ;;
13926
13927
13928 esac
13929
13930done # for ac_tag
795ca3e5 13931
795ca3e5 13932
ad6254c5
AK
13933{ (exit 0); exit 0; }
13934_ACEOF
795ca3e5 13935chmod +x $CONFIG_STATUS
ad6254c5
AK
13936ac_clean_files=$ac_clean_files_save
13937
ec6a6fbe
AK
13938test $ac_write_fail = 0 ||
13939 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13940$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13941 { (exit 1); exit 1; }; }
13942
ad6254c5
AK
13943
13944# configure is writing to config.log, and then calls config.status.
13945# config.status does its own redirection, appending to config.log.
13946# Unfortunately, on DOS this fails, as config.log is still kept open
13947# by configure, so config.status won't be able to write to it; its
13948# output is simply discarded. So we exec the FD to /dev/null,
13949# effectively closing config.log, so it can be properly (re)opened and
13950# appended to by config.status. When coming back to configure, we
13951# need to make the FD available again.
13952if test "$no_create" != yes; then
13953 ac_cs_success=:
13954 ac_config_status_args=
13955 test "$silent" = yes &&
13956 ac_config_status_args="$ac_config_status_args --quiet"
13957 exec 5>/dev/null
13958 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13959 exec 5>>config.log
13960 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13961 # would make configure fail if this is the last instruction.
13962 $ac_cs_success || { (exit 1); exit 1; }
13963fi
ec6a6fbe
AK
13964if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13965 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13966$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13967fi
795ca3e5 13968
2dc95e1c
AK
13969
13970if test x$ODIRECT != xyes; then
ec6a6fbe
AK
13971 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
13972$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 13973fi
This page took 1.903828 seconds and 5 git commands to generate.