]> sourceware.org Git - lvm2.git/blame - configure
further progress
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
68f2de6d 3# Generated by GNU Autoconf 2.61.
795ca3e5 4#
7a197a62 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
68f2de6d 6# 2002, 2003, 2004, 2005, 2006 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=:
68f2de6d 18 # Zsh 3.x and 4.x performs 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
b145d876
ZK
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
68f2de6d
AK
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
ad6254c5
AK
51fi
52
53# Support unset when possible.
8a2fc586 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
55 as_unset=unset
56else
57 as_unset=false
58fi
59
60
7a197a62
AK
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
68f2de6d
AK
66as_nl='
67'
7a197a62
AK
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
68f2de6d 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
91 { (exit 1); exit 1; }
92fi
93
ad6254c5 94# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
ad6254c5
AK
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
68f2de6d
AK
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113done
ad6254c5
AK
114
115# Required to use basename.
7a197a62
AK
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
118 as_expr=expr
119else
120 as_expr=false
121fi
122
7a197a62 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
7a197a62 131as_me=`$as_basename -- "$0" ||
ad6254c5
AK
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
7a197a62 134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
68f2de6d 135echo X/"$0" |
7a197a62
AK
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
ad6254c5 149
7a197a62
AK
150# CDPATH.
151$as_unset CDPATH
ad6254c5 152
ad6254c5 153
7a197a62
AK
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
ad6254c5
AK
159fi
160
68f2de6d 161 if test $as_have_required = yes && (eval ":
7a197a62
AK
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
ad6254c5 177
7a197a62
AK
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
ad6254c5 185
7a197a62
AK
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
ad6254c5 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25fbec5b 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
ad6254c5
AK
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
7a197a62 226 case $as_dir in
ad6254c5 227 /*)
7a197a62
AK
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
68f2de6d 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7a197a62
AK
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
25fbec5b
AK
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
7a197a62 252fi
25fbec5b 253
7a197a62
AK
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
68f2de6d 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7a197a62
AK
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
25fbec5b
AK
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
7a197a62 273fi
25fbec5b 274
7a197a62
AK
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
ad6254c5
AK
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
ad6254c5 330 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62
AK
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
68f2de6d
AK
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
7a197a62
AK
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
68f2de6d
AK
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
7a197a62
AK
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
ad6254c5
AK
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
ad6254c5 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
ad6254c5 442 sed '
7a197a62
AK
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
ad6254c5 447 N
7a197a62
AK
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 450 t loop
7a197a62 451 s/-\n.*//
ad6254c5 452 ' >$as_me.lineno &&
7a197a62 453 chmod +x "$as_me.lineno" ||
68f2de6d 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
ad6254c5
AK
461 # Exit status is that of the last command.
462 exit
463}
795ca3e5 464
ad6254c5 465
7a197a62
AK
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
ad6254c5 481esac
68f2de6d 482
7a197a62
AK
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
68f2de6d
AK
495 mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
ad6254c5 505 as_ln_s='cp -p'
68f2de6d
AK
506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
ad6254c5
AK
508else
509 as_ln_s='cp -p'
510fi
7a197a62
AK
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
ad6254c5
AK
513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
8a2fc586 517 test -d ./-p && rmdir ./-p
ad6254c5
AK
518 as_mkdir_p=false
519fi
520
25fbec5b
AK
521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
7a197a62 523else
25fbec5b
AK
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
68f2de6d 532 test -d "$1/.";
25fbec5b
AK
533 else
534 case $1 in
68f2de6d 535 -*)set "./$1";;
25fbec5b
AK
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
7a197a62 541fi
25fbec5b 542as_executable_p=$as_test_x
ad6254c5
AK
543
544# Sed expression to map a string onto a valid CPP name.
8a2fc586 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
546
547# Sed expression to map a string onto a valid variable name.
8a2fc586 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
549
550
ad6254c5 551
7a197a62 552exec 7<&0 </dev/null 6>&1
ad6254c5
AK
553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
ad6254c5
AK
559#
560# Initializations.
561#
795ca3e5 562ac_default_prefix=/usr/local
7a197a62 563ac_clean_files=
ad6254c5 564ac_config_libobj_dir=.
7a197a62 565LIBOBJS=
ad6254c5
AK
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
ad6254c5
AK
572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="lib/device/dev-cache.h"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
25fbec5b 583#ifdef HAVE_SYS_TYPES_H
ad6254c5
AK
584# include <sys/types.h>
585#endif
25fbec5b 586#ifdef HAVE_SYS_STAT_H
ad6254c5
AK
587# include <sys/stat.h>
588#endif
25fbec5b 589#ifdef STDC_HEADERS
ad6254c5
AK
590# include <stdlib.h>
591# include <stddef.h>
592#else
25fbec5b 593# ifdef HAVE_STDLIB_H
ad6254c5
AK
594# include <stdlib.h>
595# endif
596#endif
25fbec5b
AK
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ad6254c5
AK
599# include <memory.h>
600# endif
601# include <string.h>
602#endif
25fbec5b 603#ifdef HAVE_STRINGS_H
ad6254c5
AK
604# include <strings.h>
605#endif
25fbec5b 606#ifdef HAVE_INTTYPES_H
ad6254c5 607# include <inttypes.h>
ad6254c5 608#endif
25fbec5b 609#ifdef HAVE_STDINT_H
7a197a62
AK
610# include <stdint.h>
611#endif
25fbec5b 612#ifdef HAVE_UNISTD_H
ad6254c5
AK
613# include <unistd.h>
614#endif"
615
795ca3e5 616ac_default_prefix=/usr
7a197a62
AK
617ac_subst_vars='SHELL
618PATH_SEPARATOR
619PACKAGE_NAME
620PACKAGE_TARNAME
621PACKAGE_VERSION
622PACKAGE_STRING
623PACKAGE_BUGREPORT
624exec_prefix
625prefix
626program_transform_name
627bindir
628sbindir
629libexecdir
630datarootdir
631datadir
632sysconfdir
633sharedstatedir
634localstatedir
635includedir
636oldincludedir
637docdir
638infodir
639htmldir
640dvidir
641pdfdir
642psdir
643libdir
644localedir
645mandir
646DEFS
647ECHO_C
648ECHO_N
649ECHO_T
650LIBS
651build_alias
652host_alias
653target_alias
654build
655build_cpu
656build_vendor
657build_os
658host
659host_cpu
660host_vendor
661host_os
662target
663target_cpu
664target_vendor
665target_os
5951ef33 666SED
7a197a62
AK
667AWK
668CC
669CFLAGS
670LDFLAGS
671CPPFLAGS
672ac_ct_CC
673EXEEXT
674OBJEXT
d0191583
JM
675CPP
676GREP
677EGREP
7a197a62
AK
678INSTALL_PROGRAM
679INSTALL_SCRIPT
680INSTALL_DATA
681LN_S
682SET_MAKE
683RANLIB
684CFLOW_CMD
685CSCOPE_CMD
7a197a62
AK
686ALLOCA
687LIBOBJS
688POW_LIB
fddafd51
ZK
689LCOV
690GENHTML
d179cc7a 691LVM2CMD_LIB
7a197a62
AK
692MSGFMT
693MODPROBE_CMD
d0191583 694BUILD_DMEVENTD
7a197a62 695CLDFLAGS
7a197a62 696CLDNOWHOLEARCHIVE
d0191583
JM
697CLDWHOLEARCHIVE
698CLUSTER
699CLVMD
700CMDLIB
701COPTIMISE_FLAG
7a197a62
AK
702DEBUG
703DEVMAPPER
d0191583
JM
704DMEVENTD
705DM_COMPAT
706DM_DEVICE_GID
707DM_DEVICE_MODE
708DM_DEVICE_UID
709DM_IOCTLS
710DM_LIB_VERSION
711FSADM
712GROUP
7a197a62 713HAVE_LIBDL
7a197a62 714HAVE_REALTIME
d0191583
JM
715HAVE_SELINUX
716INTL
717INTL_PACKAGE
718JOBS
719LDDEPS
720LIB_SUFFIX
7a197a62 721LOCALEDIR
d0191583
JM
722LVM1
723LVM1_FALLBACK
7a197a62 724CONFDIR
d0191583
JM
725LVM_VERSION
726MIRRORS
727OWNER
728PKGCONFIG
729POOL
730SNAPSHOTS
7a197a62 731STATICDIR
d0191583 732STATIC_LINK
66e941e8 733LIB_PTHREAD
93bd259b
AK
734interface
735kerneldir
736missingkernel
737kernelvsn
738tmpdir
68f2de6d
AK
739usrlibdir
740usrsbindir
7a197a62 741LTLIBOBJS'
ad6254c5 742ac_subst_files=''
7a197a62
AK
743 ac_precious_vars='build_alias
744host_alias
745target_alias
746CC
747CFLAGS
748LDFLAGS
25fbec5b 749LIBS
7a197a62
AK
750CPPFLAGS
751CPP'
752
795ca3e5
AK
753
754# Initialize some variables set by options.
ad6254c5
AK
755ac_init_help=
756ac_init_version=false
795ca3e5
AK
757# The variables have the same names as the options, with
758# dashes changed to underlines.
ad6254c5 759cache_file=/dev/null
795ca3e5 760exec_prefix=NONE
795ca3e5 761no_create=
795ca3e5
AK
762no_recursion=
763prefix=NONE
764program_prefix=NONE
765program_suffix=NONE
766program_transform_name=s,x,x,
767silent=
768site=
769srcdir=
795ca3e5
AK
770verbose=
771x_includes=NONE
772x_libraries=NONE
ad6254c5
AK
773
774# Installation directory options.
775# These are left unexpanded so users can "make install exec_prefix=/foo"
776# and all the variables that are supposed to be based on exec_prefix
777# by default will actually change.
778# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 779# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
780bindir='${exec_prefix}/bin'
781sbindir='${exec_prefix}/sbin'
782libexecdir='${exec_prefix}/libexec'
7a197a62
AK
783datarootdir='${prefix}/share'
784datadir='${datarootdir}'
795ca3e5
AK
785sysconfdir='${prefix}/etc'
786sharedstatedir='${prefix}/com'
787localstatedir='${prefix}/var'
795ca3e5
AK
788includedir='${prefix}/include'
789oldincludedir='/usr/include'
7a197a62
AK
790docdir='${datarootdir}/doc/${PACKAGE}'
791infodir='${datarootdir}/info'
792htmldir='${docdir}'
793dvidir='${docdir}'
794pdfdir='${docdir}'
795psdir='${docdir}'
796libdir='${exec_prefix}/lib'
797localedir='${datarootdir}/locale'
798mandir='${datarootdir}/man'
795ca3e5 799
795ca3e5 800ac_prev=
7a197a62 801ac_dashdash=
795ca3e5
AK
802for ac_option
803do
795ca3e5
AK
804 # If the previous option needs an argument, assign it.
805 if test -n "$ac_prev"; then
7a197a62 806 eval $ac_prev=\$ac_option
795ca3e5
AK
807 ac_prev=
808 continue
809 fi
810
7a197a62
AK
811 case $ac_option in
812 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 *) ac_optarg=yes ;;
814 esac
795ca3e5
AK
815
816 # Accept the important Cygnus configure options, so we can diagnose typos.
817
7a197a62
AK
818 case $ac_dashdash$ac_option in
819 --)
820 ac_dashdash=yes ;;
795ca3e5
AK
821
822 -bindir | --bindir | --bindi | --bind | --bin | --bi)
823 ac_prev=bindir ;;
824 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 825 bindir=$ac_optarg ;;
795ca3e5
AK
826
827 -build | --build | --buil | --bui | --bu)
ad6254c5 828 ac_prev=build_alias ;;
795ca3e5 829 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 830 build_alias=$ac_optarg ;;
795ca3e5
AK
831
832 -cache-file | --cache-file | --cache-fil | --cache-fi \
833 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
834 ac_prev=cache_file ;;
835 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
836 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
837 cache_file=$ac_optarg ;;
838
839 --config-cache | -C)
840 cache_file=config.cache ;;
795ca3e5 841
7a197a62 842 -datadir | --datadir | --datadi | --datad)
795ca3e5 843 ac_prev=datadir ;;
7a197a62 844 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 845 datadir=$ac_optarg ;;
795ca3e5 846
7a197a62
AK
847 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
848 | --dataroo | --dataro | --datar)
849 ac_prev=datarootdir ;;
850 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
851 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
852 datarootdir=$ac_optarg ;;
853
795ca3e5 854 -disable-* | --disable-*)
68f2de6d 855 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 856 # Reject names that are not valid shell variable names.
68f2de6d
AK
857 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
858 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
ad6254c5 859 { (exit 1); exit 1; }; }
68f2de6d
AK
860 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
861 eval enable_$ac_feature=no ;;
7a197a62
AK
862
863 -docdir | --docdir | --docdi | --doc | --do)
864 ac_prev=docdir ;;
865 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
866 docdir=$ac_optarg ;;
867
868 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
869 ac_prev=dvidir ;;
870 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
871 dvidir=$ac_optarg ;;
795ca3e5
AK
872
873 -enable-* | --enable-*)
68f2de6d 874 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 875 # Reject names that are not valid shell variable names.
68f2de6d
AK
876 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
877 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
ad6254c5 878 { (exit 1); exit 1; }; }
68f2de6d
AK
879 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
880 eval enable_$ac_feature=\$ac_optarg ;;
795ca3e5
AK
881
882 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
883 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
884 | --exec | --exe | --ex)
885 ac_prev=exec_prefix ;;
886 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
887 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
888 | --exec=* | --exe=* | --ex=*)
ad6254c5 889 exec_prefix=$ac_optarg ;;
795ca3e5
AK
890
891 -gas | --gas | --ga | --g)
892 # Obsolete; use --with-gas.
893 with_gas=yes ;;
894
ad6254c5
AK
895 -help | --help | --hel | --he | -h)
896 ac_init_help=long ;;
897 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
898 ac_init_help=recursive ;;
899 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
900 ac_init_help=short ;;
795ca3e5
AK
901
902 -host | --host | --hos | --ho)
ad6254c5 903 ac_prev=host_alias ;;
795ca3e5 904 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 905 host_alias=$ac_optarg ;;
795ca3e5 906
7a197a62
AK
907 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
908 ac_prev=htmldir ;;
909 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
910 | --ht=*)
911 htmldir=$ac_optarg ;;
912
795ca3e5
AK
913 -includedir | --includedir | --includedi | --included | --include \
914 | --includ | --inclu | --incl | --inc)
915 ac_prev=includedir ;;
916 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
917 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 918 includedir=$ac_optarg ;;
795ca3e5
AK
919
920 -infodir | --infodir | --infodi | --infod | --info | --inf)
921 ac_prev=infodir ;;
922 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 923 infodir=$ac_optarg ;;
795ca3e5
AK
924
925 -libdir | --libdir | --libdi | --libd)
926 ac_prev=libdir ;;
927 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 928 libdir=$ac_optarg ;;
795ca3e5
AK
929
930 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
931 | --libexe | --libex | --libe)
932 ac_prev=libexecdir ;;
933 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
934 | --libexe=* | --libex=* | --libe=*)
ad6254c5 935 libexecdir=$ac_optarg ;;
795ca3e5 936
7a197a62
AK
937 -localedir | --localedir | --localedi | --localed | --locale)
938 ac_prev=localedir ;;
939 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
940 localedir=$ac_optarg ;;
941
795ca3e5 942 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 943 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
944 ac_prev=localstatedir ;;
945 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 946 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 947 localstatedir=$ac_optarg ;;
795ca3e5
AK
948
949 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
950 ac_prev=mandir ;;
951 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 952 mandir=$ac_optarg ;;
795ca3e5
AK
953
954 -nfp | --nfp | --nf)
955 # Obsolete; use --without-fp.
956 with_fp=no ;;
957
958 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 959 | --no-cr | --no-c | -n)
795ca3e5
AK
960 no_create=yes ;;
961
962 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
963 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
964 no_recursion=yes ;;
965
966 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
967 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
968 | --oldin | --oldi | --old | --ol | --o)
969 ac_prev=oldincludedir ;;
970 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
971 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
972 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 973 oldincludedir=$ac_optarg ;;
795ca3e5
AK
974
975 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
976 ac_prev=prefix ;;
977 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 978 prefix=$ac_optarg ;;
795ca3e5
AK
979
980 -program-prefix | --program-prefix | --program-prefi | --program-pref \
981 | --program-pre | --program-pr | --program-p)
982 ac_prev=program_prefix ;;
983 -program-prefix=* | --program-prefix=* | --program-prefi=* \
984 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 985 program_prefix=$ac_optarg ;;
795ca3e5
AK
986
987 -program-suffix | --program-suffix | --program-suffi | --program-suff \
988 | --program-suf | --program-su | --program-s)
989 ac_prev=program_suffix ;;
990 -program-suffix=* | --program-suffix=* | --program-suffi=* \
991 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 992 program_suffix=$ac_optarg ;;
795ca3e5
AK
993
994 -program-transform-name | --program-transform-name \
995 | --program-transform-nam | --program-transform-na \
996 | --program-transform-n | --program-transform- \
997 | --program-transform | --program-transfor \
998 | --program-transfo | --program-transf \
999 | --program-trans | --program-tran \
1000 | --progr-tra | --program-tr | --program-t)
1001 ac_prev=program_transform_name ;;
1002 -program-transform-name=* | --program-transform-name=* \
1003 | --program-transform-nam=* | --program-transform-na=* \
1004 | --program-transform-n=* | --program-transform-=* \
1005 | --program-transform=* | --program-transfor=* \
1006 | --program-transfo=* | --program-transf=* \
1007 | --program-trans=* | --program-tran=* \
1008 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1009 program_transform_name=$ac_optarg ;;
795ca3e5 1010
7a197a62
AK
1011 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1012 ac_prev=pdfdir ;;
1013 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1014 pdfdir=$ac_optarg ;;
1015
1016 -psdir | --psdir | --psdi | --psd | --ps)
1017 ac_prev=psdir ;;
1018 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1019 psdir=$ac_optarg ;;
1020
795ca3e5
AK
1021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1022 | -silent | --silent | --silen | --sile | --sil)
1023 silent=yes ;;
1024
1025 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1026 ac_prev=sbindir ;;
1027 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1028 | --sbi=* | --sb=*)
ad6254c5 1029 sbindir=$ac_optarg ;;
795ca3e5
AK
1030
1031 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1032 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1033 | --sharedst | --shareds | --shared | --share | --shar \
1034 | --sha | --sh)
1035 ac_prev=sharedstatedir ;;
1036 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1037 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1038 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1039 | --sha=* | --sh=*)
ad6254c5 1040 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1041
1042 -site | --site | --sit)
1043 ac_prev=site ;;
1044 -site=* | --site=* | --sit=*)
ad6254c5 1045 site=$ac_optarg ;;
795ca3e5
AK
1046
1047 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1048 ac_prev=srcdir ;;
1049 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1050 srcdir=$ac_optarg ;;
795ca3e5
AK
1051
1052 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1053 | --syscon | --sysco | --sysc | --sys | --sy)
1054 ac_prev=sysconfdir ;;
1055 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1056 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1057 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1058
1059 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1060 ac_prev=target_alias ;;
795ca3e5 1061 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1062 target_alias=$ac_optarg ;;
795ca3e5
AK
1063
1064 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1065 verbose=yes ;;
1066
ad6254c5
AK
1067 -version | --version | --versio | --versi | --vers | -V)
1068 ac_init_version=: ;;
795ca3e5
AK
1069
1070 -with-* | --with-*)
68f2de6d 1071 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1072 # Reject names that are not valid shell variable names.
68f2de6d
AK
1073 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1074 { echo "$as_me: error: invalid package name: $ac_package" >&2
ad6254c5 1075 { (exit 1); exit 1; }; }
68f2de6d
AK
1076 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1077 eval with_$ac_package=\$ac_optarg ;;
795ca3e5
AK
1078
1079 -without-* | --without-*)
68f2de6d 1080 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1081 # Reject names that are not valid shell variable names.
68f2de6d
AK
1082 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1083 { echo "$as_me: error: invalid package name: $ac_package" >&2
ad6254c5 1084 { (exit 1); exit 1; }; }
68f2de6d
AK
1085 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1086 eval with_$ac_package=no ;;
795ca3e5
AK
1087
1088 --x)
1089 # Obsolete; use --with-x.
1090 with_x=yes ;;
1091
1092 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1093 | --x-incl | --x-inc | --x-in | --x-i)
1094 ac_prev=x_includes ;;
1095 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1096 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1097 x_includes=$ac_optarg ;;
795ca3e5
AK
1098
1099 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1100 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1101 ac_prev=x_libraries ;;
1102 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1103 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1104 x_libraries=$ac_optarg ;;
795ca3e5 1105
68f2de6d 1106 -*) { echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1107Try \`$0 --help' for more information." >&2
1108 { (exit 1); exit 1; }; }
795ca3e5
AK
1109 ;;
1110
ad6254c5
AK
1111 *=*)
1112 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
68f2de6d 1115 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1116 { (exit 1); exit 1; }; }
7a197a62 1117 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1118 export $ac_envvar ;;
1119
795ca3e5 1120 *)
ad6254c5 1121 # FIXME: should be removed in autoconf 3.0.
68f2de6d 1122 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1123 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
68f2de6d 1124 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1125 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1126 ;;
1127
1128 esac
1129done
1130
1131if test -n "$ac_prev"; then
ad6254c5 1132 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
68f2de6d 1133 { echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1134 { (exit 1); exit 1; }; }
795ca3e5 1135fi
795ca3e5 1136
68f2de6d 1137# Be sure to have absolute directory names.
7a197a62
AK
1138for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1139 datadir sysconfdir sharedstatedir localstatedir includedir \
1140 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1141 libdir localedir mandir
795ca3e5 1142do
7a197a62 1143 eval ac_val=\$$ac_var
ad6254c5 1144 case $ac_val in
7a197a62
AK
1145 [\\/$]* | ?:[\\/]* ) continue;;
1146 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1147 esac
68f2de6d 1148 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1149 { (exit 1); exit 1; }; }
795ca3e5
AK
1150done
1151
ad6254c5
AK
1152# There might be people who depend on the old broken behavior: `$host'
1153# used to hold the argument of --host etc.
1154# FIXME: To remove some day.
1155build=$build_alias
1156host=$host_alias
1157target=$target_alias
1158
1159# FIXME: To remove some day.
1160if test "x$host_alias" != x; then
1161 if test "x$build_alias" = x; then
1162 cross_compiling=maybe
68f2de6d 1163 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1164 If a cross compiler is detected then cross compile mode will be used." >&2
1165 elif test "x$build_alias" != "x$host_alias"; then
1166 cross_compiling=yes
1167 fi
1168fi
8106cdd5 1169
ad6254c5
AK
1170ac_tool_prefix=
1171test -n "$host_alias" && ac_tool_prefix=$host_alias-
1172
1173test "$silent" = yes && exec 6>/dev/null
795ca3e5 1174
795ca3e5 1175
7a197a62
AK
1176ac_pwd=`pwd` && test -n "$ac_pwd" &&
1177ac_ls_di=`ls -di .` &&
1178ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
68f2de6d 1179 { echo "$as_me: error: Working directory cannot be determined" >&2
7a197a62
AK
1180 { (exit 1); exit 1; }; }
1181test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
68f2de6d 1182 { echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1183 { (exit 1); exit 1; }; }
1184
1185
795ca3e5
AK
1186# Find the source files, if location was not specified.
1187if test -z "$srcdir"; then
1188 ac_srcdir_defaulted=yes
7a197a62 1189 # Try the directory containing this script, then the parent directory.
68f2de6d
AK
1190 ac_confdir=`$as_dirname -- "$0" ||
1191$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1192 X"$0" : 'X\(//\)[^/]' \| \
1193 X"$0" : 'X\(//\)$' \| \
1194 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1195echo X"$0" |
7a197a62
AK
1196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1197 s//\1/
1198 q
1199 }
1200 /^X\(\/\/\)[^/].*/{
1201 s//\1/
1202 q
1203 }
1204 /^X\(\/\/\)$/{
1205 s//\1/
1206 q
1207 }
1208 /^X\(\/\).*/{
1209 s//\1/
1210 q
1211 }
1212 s/.*/./; q'`
795ca3e5 1213 srcdir=$ac_confdir
7a197a62 1214 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1215 srcdir=..
1216 fi
1217else
1218 ac_srcdir_defaulted=no
1219fi
7a197a62
AK
1220if test ! -r "$srcdir/$ac_unique_file"; then
1221 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
68f2de6d 1222 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1223 { (exit 1); exit 1; }; }
795ca3e5 1224fi
7a197a62
AK
1225ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1226ac_abs_confdir=`(
68f2de6d 1227 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
ad6254c5 1228 { (exit 1); exit 1; }; }
7a197a62
AK
1229 pwd)`
1230# When building in place, set srcdir=.
1231if test "$ac_abs_confdir" = "$ac_pwd"; then
1232 srcdir=.
1233fi
1234# Remove unnecessary trailing slashes from srcdir.
1235# Double slashes in file names in object file debugging info
1236# mess up M-x gdb in Emacs.
1237case $srcdir in
1238*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1239esac
1240for ac_var in $ac_precious_vars; do
1241 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1242 eval ac_env_${ac_var}_value=\$${ac_var}
1243 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1244 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1245done
ad6254c5
AK
1246
1247#
1248# Report the --help message.
1249#
1250if test "$ac_init_help" = "long"; then
1251 # Omit some internal or obsolete options to make the list less imposing.
1252 # This message is too long to be a string in the A/UX 3.1 sh.
1253 cat <<_ACEOF
1254\`configure' configures this package to adapt to many kinds of systems.
1255
1256Usage: $0 [OPTION]... [VAR=VALUE]...
1257
1258To assign environment variables (e.g., CC, CFLAGS...), specify them as
1259VAR=VALUE. See below for descriptions of some of the useful variables.
1260
1261Defaults for the options are specified in brackets.
1262
1263Configuration:
1264 -h, --help display this help and exit
1265 --help=short display options specific to this package
1266 --help=recursive display the short help of all the included packages
1267 -V, --version display version information and exit
1268 -q, --quiet, --silent do not print \`checking...' messages
1269 --cache-file=FILE cache test results in FILE [disabled]
1270 -C, --config-cache alias for \`--cache-file=config.cache'
1271 -n, --no-create do not create output files
1272 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1273
ad6254c5
AK
1274Installation directories:
1275 --prefix=PREFIX install architecture-independent files in PREFIX
68f2de6d 1276 [$ac_default_prefix]
ad6254c5 1277 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
68f2de6d 1278 [PREFIX]
ad6254c5
AK
1279
1280By default, \`make install' will install all the files in
1281\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1282an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1283for instance \`--prefix=\$HOME'.
1284
1285For better control, use the options below.
1286
1287Fine tuning of the installation directories:
68f2de6d
AK
1288 --bindir=DIR user executables [EPREFIX/bin]
1289 --sbindir=DIR system admin executables [EPREFIX/sbin]
1290 --libexecdir=DIR program executables [EPREFIX/libexec]
1291 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1292 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1293 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1294 --libdir=DIR object code libraries [EPREFIX/lib]
1295 --includedir=DIR C header files [PREFIX/include]
1296 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1297 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1298 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1299 --infodir=DIR info documentation [DATAROOTDIR/info]
1300 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1301 --mandir=DIR man documentation [DATAROOTDIR/man]
1302 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1303 --htmldir=DIR html documentation [DOCDIR]
1304 --dvidir=DIR dvi documentation [DOCDIR]
1305 --pdfdir=DIR pdf documentation [DOCDIR]
1306 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1307_ACEOF
1308
1309 cat <<\_ACEOF
1310
1311System types:
1312 --build=BUILD configure for building on BUILD [guessed]
1313 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1314 --target=TARGET configure for building compilers for TARGET [HOST]
1315_ACEOF
1316fi
1317
1318if test -n "$ac_init_help"; then
1319
1320 cat <<\_ACEOF
1321
1322Optional Features:
1323 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1324 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ad6254c5
AK
1325 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1326 device-mapper is missing from the kernel
1b523347 1327 --disable-readline Disable readline support
3d978351 1328 --disable-realtime Disable realtime clock support
ad6254c5 1329 --enable-debug Enable debugging
5556819a 1330 --enable-profiling Gather gcov profiling data
93bd259b
AK
1331 --disable-devmapper Disable LVM2 device-mapper interaction
1332 --enable-compat Enable support for old device-mapper versions
1333 --disable-driver Disable calls to device-mapper in the kernel
ad6254c5
AK
1334 --disable-o_direct Disable O_DIRECT
1335 --enable-cmdlib Build shared command library
93bd259b 1336 --enable-pkgconfig Install pkgconfig support
ad6254c5 1337 --enable-fsadm Enable fsadm
15d91f5a 1338 --enable-dmeventd Enable the device-mapper event daemon
d0191583
JM
1339 --enable-static_link Use this to link the tools to their libraries
1340 statically. Default is dynamic linking
1341 --disable-selinux Disable selinux support
ad6254c5
AK
1342 --enable-nls Enable Native Language Support
1343
1344Optional Packages:
1345 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1346 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d0191583
JM
1347 --with-user=USER Set the owner of installed files [USER=root]
1348 --with-group=GROUP Set the group owner of installed files [GROUP=root]
93bd259b 1349 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
ad6254c5
AK
1350 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1351 TYPE=internal
1352 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1353 TYPE=internal
1354 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1355 TYPE=internal
1356 --with-snapshots=TYPE Snapshot support: internal/shared/none
1357 TYPE=internal
1358 --with-mirrors=TYPE Mirror support: internal/shared/none
1359 TYPE=internal
5c7fc7c4 1360 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all
a266258f 1361 TYPE=none
d0191583
JM
1362 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1363 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
ad6254c5
AK
1364 --with-confdir=DIR Configuration files in DIR /etc
1365 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
68f2de6d
AK
1366 --with-usrlibdir=DIR
1367 --with-usrsbindir=DIR
93bd259b
AK
1368 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
1369 --with-dmeventd-path=PATH dmeventd path [${exec_prefix}/sbin/dmeventd]
1370 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1371
1372Some influential environment variables:
1373 CC C compiler command
1374 CFLAGS C compiler flags
1375 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1376 nonstandard directory <lib dir>
25fbec5b 1377 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1378 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1379 you have headers in a nonstandard directory <include dir>
ad6254c5
AK
1380 CPP C preprocessor
1381
1382Use these variables to override the choices made by `configure' or to help
1383it to find libraries and programs with nonstandard names/locations.
1384
1385_ACEOF
7a197a62 1386ac_status=$?
ad6254c5
AK
1387fi
1388
1389if test "$ac_init_help" = "recursive"; then
1390 # If there are subdirs, report their specific --help.
ad6254c5 1391 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
68f2de6d 1392 test -d "$ac_dir" || continue
ad6254c5
AK
1393 ac_builddir=.
1394
7a197a62
AK
1395case "$ac_dir" in
1396.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397*)
68f2de6d 1398 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7a197a62 1399 # A ".." for each directory in $ac_dir_suffix.
68f2de6d 1400 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7a197a62
AK
1401 case $ac_top_builddir_sub in
1402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1404 esac ;;
1405esac
1406ac_abs_top_builddir=$ac_pwd
1407ac_abs_builddir=$ac_pwd$ac_dir_suffix
1408# for backward compatibility:
1409ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1410
1411case $srcdir in
7a197a62 1412 .) # We are building in place.
ad6254c5 1413 ac_srcdir=.
7a197a62
AK
1414 ac_top_srcdir=$ac_top_builddir_sub
1415 ac_abs_top_srcdir=$ac_pwd ;;
1416 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1417 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1418 ac_top_srcdir=$srcdir
1419 ac_abs_top_srcdir=$srcdir ;;
1420 *) # Relative name.
1421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1422 ac_top_srcdir=$ac_top_build_prefix$srcdir
1423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1424esac
7a197a62
AK
1425ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1426
1427 cd "$ac_dir" || { ac_status=$?; continue; }
1428 # Check for guested configure.
1429 if test -f "$ac_srcdir/configure.gnu"; then
1430 echo &&
1431 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1432 elif test -f "$ac_srcdir/configure"; then
1433 echo &&
1434 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1435 else
68f2de6d 1436 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1437 fi || ac_status=$?
1438 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1439 done
1440fi
1441
7a197a62 1442test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1443if $ac_init_version; then
1444 cat <<\_ACEOF
7a197a62 1445configure
68f2de6d 1446generated by GNU Autoconf 2.61
ad6254c5 1447
7a197a62 1448Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
68f2de6d 14492002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
ad6254c5
AK
1450This configure script is free software; the Free Software Foundation
1451gives unlimited permission to copy, distribute and modify it.
1452_ACEOF
7a197a62 1453 exit
ad6254c5 1454fi
7a197a62 1455cat >config.log <<_ACEOF
ad6254c5
AK
1456This file contains any messages produced by compilers while
1457running configure, to aid debugging if configure makes a mistake.
1458
1459It was created by $as_me, which was
68f2de6d 1460generated by GNU Autoconf 2.61. Invocation command line was
ad6254c5
AK
1461
1462 $ $0 $@
1463
1464_ACEOF
7a197a62 1465exec 5>>config.log
ad6254c5
AK
1466{
1467cat <<_ASUNAME
1468## --------- ##
1469## Platform. ##
1470## --------- ##
1471
1472hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1473uname -m = `(uname -m) 2>/dev/null || echo unknown`
1474uname -r = `(uname -r) 2>/dev/null || echo unknown`
1475uname -s = `(uname -s) 2>/dev/null || echo unknown`
1476uname -v = `(uname -v) 2>/dev/null || echo unknown`
1477
1478/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1479/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1480
1481/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1482/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1483/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1484/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1485/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1486/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1487/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1488
1489_ASUNAME
1490
1491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492for as_dir in $PATH
1493do
1494 IFS=$as_save_IFS
1495 test -z "$as_dir" && as_dir=.
68f2de6d 1496 echo "PATH: $as_dir"
ad6254c5 1497done
7a197a62 1498IFS=$as_save_IFS
ad6254c5
AK
1499
1500} >&5
1501
1502cat >&5 <<_ACEOF
1503
1504
1505## ----------- ##
1506## Core tests. ##
1507## ----------- ##
1508
1509_ACEOF
1510
1511
1512# Keep a trace of the command line.
1513# Strip out --no-create and --no-recursion so they do not pile up.
1514# Strip out --silent because we don't want to record it for future runs.
1515# Also quote any args containing shell meta-characters.
1516# Make two passes to allow for proper duplicate-argument suppression.
1517ac_configure_args=
1518ac_configure_args0=
1519ac_configure_args1=
ad6254c5
AK
1520ac_must_keep_next=false
1521for ac_pass in 1 2
1522do
1523 for ac_arg
1524 do
1525 case $ac_arg in
1526 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1528 | -silent | --silent | --silen | --sile | --sil)
1529 continue ;;
7a197a62 1530 *\'*)
68f2de6d 1531 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1532 esac
1533 case $ac_pass in
1534 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1535 2)
1536 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1537 if test $ac_must_keep_next = true; then
8a2fc586 1538 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1539 else
8a2fc586
AK
1540 case $ac_arg in
1541 *=* | --config-cache | -C | -disable-* | --disable-* \
1542 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1543 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1544 | -with-* | --with-* | -without-* | --without-* | --x)
1545 case "$ac_configure_args0 " in
1546 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1547 esac
1548 ;;
1549 -* ) ac_must_keep_next=true ;;
1550 esac
ad6254c5 1551 fi
7a197a62 1552 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1553 ;;
1554 esac
1555 done
1556done
1557$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1558$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1559
1560# When interrupted or exit'd, cleanup temporary files, and complete
1561# config.log. We remove comments because anyway the quotes in there
1562# would cause problems or look ugly.
7a197a62
AK
1563# WARNING: Use '\'' to represent an apostrophe within the trap.
1564# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1565trap 'exit_status=$?
1566 # Save into config.log some information that might help in debugging.
1567 {
1568 echo
1569
1570 cat <<\_ASBOX
1571## ---------------- ##
1572## Cache variables. ##
1573## ---------------- ##
1574_ASBOX
1575 echo
1576 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1577(
1578 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1579 eval ac_val=\$$ac_var
1580 case $ac_val in #(
1581 *${as_nl}*)
1582 case $ac_var in #(
68f2de6d
AK
1583 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1584echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7a197a62
AK
1585 esac
1586 case $ac_var in #(
1587 _ | IFS | as_nl) ;; #(
1588 *) $as_unset $ac_var ;;
1589 esac ;;
1590 esac
1591 done
ad6254c5 1592 (set) 2>&1 |
7a197a62
AK
1593 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1594 *${as_nl}ac_space=\ *)
ad6254c5 1595 sed -n \
7a197a62
AK
1596 "s/'\''/'\''\\\\'\'''\''/g;
1597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1598 ;; #(
ad6254c5 1599 *)
7a197a62 1600 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1601 ;;
7a197a62
AK
1602 esac |
1603 sort
1604)
ad6254c5
AK
1605 echo
1606
1607 cat <<\_ASBOX
1608## ----------------- ##
1609## Output variables. ##
1610## ----------------- ##
1611_ASBOX
1612 echo
1613 for ac_var in $ac_subst_vars
1614 do
7a197a62
AK
1615 eval ac_val=\$$ac_var
1616 case $ac_val in
68f2de6d 1617 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1618 esac
68f2de6d 1619 echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1620 done | sort
1621 echo
1622
1623 if test -n "$ac_subst_files"; then
1624 cat <<\_ASBOX
7a197a62
AK
1625## ------------------- ##
1626## File substitutions. ##
1627## ------------------- ##
ad6254c5
AK
1628_ASBOX
1629 echo
1630 for ac_var in $ac_subst_files
1631 do
7a197a62
AK
1632 eval ac_val=\$$ac_var
1633 case $ac_val in
68f2de6d 1634 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1635 esac
68f2de6d 1636 echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1637 done | sort
1638 echo
1639 fi
1640
1641 if test -s confdefs.h; then
1642 cat <<\_ASBOX
1643## ----------- ##
1644## confdefs.h. ##
1645## ----------- ##
1646_ASBOX
1647 echo
7a197a62 1648 cat confdefs.h
ad6254c5
AK
1649 echo
1650 fi
1651 test "$ac_signal" != 0 &&
68f2de6d
AK
1652 echo "$as_me: caught signal $ac_signal"
1653 echo "$as_me: exit $exit_status"
ad6254c5 1654 } >&5
7a197a62
AK
1655 rm -f core *.core core.conftest.* &&
1656 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1657 exit $exit_status
7a197a62 1658' 0
ad6254c5
AK
1659for ac_signal in 1 2 13 15; do
1660 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1661done
1662ac_signal=0
1663
1664# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1665rm -f -r conftest* confdefs.h
ad6254c5
AK
1666
1667# Predefined preprocessor variables.
1668
1669cat >>confdefs.h <<_ACEOF
1670#define PACKAGE_NAME "$PACKAGE_NAME"
1671_ACEOF
1672
1673
1674cat >>confdefs.h <<_ACEOF
1675#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1676_ACEOF
1677
1678
1679cat >>confdefs.h <<_ACEOF
1680#define PACKAGE_VERSION "$PACKAGE_VERSION"
1681_ACEOF
8106cdd5 1682
ad6254c5
AK
1683
1684cat >>confdefs.h <<_ACEOF
1685#define PACKAGE_STRING "$PACKAGE_STRING"
1686_ACEOF
1687
1688
1689cat >>confdefs.h <<_ACEOF
1690#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1691_ACEOF
1692
1693
1694# Let the site file select an alternate cache file if it wants to.
68f2de6d 1695# Prefer explicitly selected file to automatically selected ones.
7a197a62 1696if test -n "$CONFIG_SITE"; then
68f2de6d 1697 set x "$CONFIG_SITE"
7a197a62 1698elif test "x$prefix" != xNONE; then
68f2de6d 1699 set x "$prefix/share/config.site" "$prefix/etc/config.site"
7a197a62 1700else
68f2de6d
AK
1701 set x "$ac_default_prefix/share/config.site" \
1702 "$ac_default_prefix/etc/config.site"
795ca3e5 1703fi
68f2de6d
AK
1704shift
1705for ac_site_file
7a197a62 1706do
795ca3e5 1707 if test -r "$ac_site_file"; then
68f2de6d
AK
1708 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1709echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1710 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1711 . "$ac_site_file"
1712 fi
1713done
1714
1715if test -r "$cache_file"; then
ad6254c5
AK
1716 # Some versions of bash will fail to source /dev/null (special
1717 # files actually), so we avoid doing that.
1718 if test -f "$cache_file"; then
68f2de6d
AK
1719 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1720echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1721 case $cache_file in
7a197a62
AK
1722 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1723 *) . "./$cache_file";;
ad6254c5
AK
1724 esac
1725 fi
795ca3e5 1726else
68f2de6d
AK
1727 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1728echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1729 >$cache_file
1730fi
1731
1732# Check that the precious variables saved in the cache have kept the same
1733# value.
1734ac_cache_corrupted=false
7a197a62 1735for ac_var in $ac_precious_vars; do
ad6254c5
AK
1736 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1737 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1738 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1739 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1740 case $ac_old_set,$ac_new_set in
1741 set,)
68f2de6d
AK
1742 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1743echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
1744 ac_cache_corrupted=: ;;
1745 ,set)
68f2de6d
AK
1746 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1747echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
1748 ac_cache_corrupted=: ;;
1749 ,);;
1750 *)
1751 if test "x$ac_old_val" != "x$ac_new_val"; then
68f2de6d
AK
1752 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1753echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1754 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1755echo "$as_me: former value: $ac_old_val" >&2;}
1756 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1757echo "$as_me: current value: $ac_new_val" >&2;}
1758 ac_cache_corrupted=:
ad6254c5
AK
1759 fi;;
1760 esac
1761 # Pass precious variables to config.status.
1762 if test "$ac_new_set" = set; then
1763 case $ac_new_val in
68f2de6d 1764 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1765 *) ac_arg=$ac_var=$ac_new_val ;;
1766 esac
1767 case " $ac_configure_args " in
1768 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1769 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1770 esac
1771 fi
1772done
1773if $ac_cache_corrupted; then
68f2de6d
AK
1774 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1775echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1776 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1777echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 1778 { (exit 1); exit 1; }; }
795ca3e5
AK
1779fi
1780
ad6254c5
AK
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
7a197a62
AK
1797ac_ext=c
1798ac_cpp='$CPP $CPPFLAGS'
1799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1801ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 1802
795ca3e5
AK
1803
1804
7a197a62 1805ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
1806
1807
80992638 1808################################################################################
795ca3e5 1809ac_aux_dir=
7a197a62
AK
1810for ac_dir in autoconf "$srcdir"/autoconf; do
1811 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
1812 ac_aux_dir=$ac_dir
1813 ac_install_sh="$ac_aux_dir/install-sh -c"
1814 break
7a197a62 1815 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
1816 ac_aux_dir=$ac_dir
1817 ac_install_sh="$ac_aux_dir/install.sh -c"
1818 break
7a197a62 1819 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
1820 ac_aux_dir=$ac_dir
1821 ac_install_sh="$ac_aux_dir/shtool install -c"
1822 break
795ca3e5
AK
1823 fi
1824done
1825if test -z "$ac_aux_dir"; then
68f2de6d
AK
1826 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1827echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 1828 { (exit 1); exit 1; }; }
795ca3e5 1829fi
7a197a62
AK
1830
1831# These three variables are undocumented and unsupported,
1832# and are intended to be withdrawn in a future Autoconf release.
1833# They can cause serious problems if a builder's source tree is in a directory
1834# whose full name contains unusual characters.
1835ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1836ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1837ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1838
8ce0cbda
AK
1839
1840
ad6254c5 1841################################################################################
8ce0cbda 1842# Make sure we can run config.sub.
7a197a62 1843$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
68f2de6d
AK
1844 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1845echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
1846 { (exit 1); exit 1; }; }
1847
68f2de6d
AK
1848{ echo "$as_me:$LINENO: checking build system type" >&5
1849echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
ad6254c5 1850if test "${ac_cv_build+set}" = set; then
68f2de6d 1851 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 1852else
7a197a62
AK
1853 ac_build_alias=$build_alias
1854test "x$ac_build_alias" = x &&
1855 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1856test "x$ac_build_alias" = x &&
68f2de6d
AK
1857 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1858echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 1859 { (exit 1); exit 1; }; }
7a197a62 1860ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
68f2de6d
AK
1861 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1862echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
1863 { (exit 1); exit 1; }; }
1864
1865fi
68f2de6d
AK
1866{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1867echo "${ECHO_T}$ac_cv_build" >&6; }
7a197a62
AK
1868case $ac_cv_build in
1869*-*-*) ;;
68f2de6d
AK
1870*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1871echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
1872 { (exit 1); exit 1; }; };;
1873esac
ad6254c5 1874build=$ac_cv_build
7a197a62
AK
1875ac_save_IFS=$IFS; IFS='-'
1876set x $ac_cv_build
1877shift
1878build_cpu=$1
1879build_vendor=$2
1880shift; shift
1881# Remember, the first character of IFS is used to create $*,
1882# except with old shells:
1883build_os=$*
1884IFS=$ac_save_IFS
1885case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
1886
1887
68f2de6d
AK
1888{ echo "$as_me:$LINENO: checking host system type" >&5
1889echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
ad6254c5 1890if test "${ac_cv_host+set}" = set; then
68f2de6d 1891 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 1892else
7a197a62
AK
1893 if test "x$host_alias" = x; then
1894 ac_cv_host=$ac_cv_build
1895else
1896 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
68f2de6d
AK
1897 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1898echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 1899 { (exit 1); exit 1; }; }
7a197a62 1900fi
ad6254c5
AK
1901
1902fi
68f2de6d
AK
1903{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1904echo "${ECHO_T}$ac_cv_host" >&6; }
7a197a62
AK
1905case $ac_cv_host in
1906*-*-*) ;;
68f2de6d
AK
1907*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1908echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
1909 { (exit 1); exit 1; }; };;
1910esac
ad6254c5 1911host=$ac_cv_host
7a197a62
AK
1912ac_save_IFS=$IFS; IFS='-'
1913set x $ac_cv_host
1914shift
1915host_cpu=$1
1916host_vendor=$2
1917shift; shift
1918# Remember, the first character of IFS is used to create $*,
1919# except with old shells:
1920host_os=$*
1921IFS=$ac_save_IFS
1922case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
1923
1924
68f2de6d
AK
1925{ echo "$as_me:$LINENO: checking target system type" >&5
1926echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
ad6254c5 1927if test "${ac_cv_target+set}" = set; then
68f2de6d 1928 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 1929else
7a197a62
AK
1930 if test "x$target_alias" = x; then
1931 ac_cv_target=$ac_cv_host
1932else
1933 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
68f2de6d
AK
1934 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1935echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 1936 { (exit 1); exit 1; }; }
7a197a62 1937fi
8ce0cbda 1938
ad6254c5 1939fi
68f2de6d
AK
1940{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1941echo "${ECHO_T}$ac_cv_target" >&6; }
7a197a62
AK
1942case $ac_cv_target in
1943*-*-*) ;;
68f2de6d
AK
1944*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1945echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
1946 { (exit 1); exit 1; }; };;
1947esac
ad6254c5 1948target=$ac_cv_target
7a197a62
AK
1949ac_save_IFS=$IFS; IFS='-'
1950set x $ac_cv_target
1951shift
1952target_cpu=$1
1953target_vendor=$2
1954shift; shift
1955# Remember, the first character of IFS is used to create $*,
1956# except with old shells:
1957target_os=$*
1958IFS=$ac_save_IFS
1959case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 1960
8ce0cbda 1961
ad6254c5
AK
1962# The aliases save the names the user supplied, while $host etc.
1963# will get canonicalized.
1964test -n "$target_alias" &&
8ce0cbda
AK
1965 test "$program_prefix$program_suffix$program_transform_name" = \
1966 NONENONEs,x,x, &&
1967 program_prefix=${target_alias}-
1968
8ce0cbda
AK
1969case "$host_os" in
1970 linux*)
8ce0cbda
AK
1971 COPTIMISE_FLAG="-O2"
1972 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
1973 CLDWHOLEARCHIVE="-Wl,-whole-archive"
1974 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
1975 LDDEPS="$LDDEPS .export.sym"
1976 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 1977 LIB_SUFFIX=so
8ce0cbda
AK
1978 DEVMAPPER=yes
1979 ODIRECT=yes
d0191583 1980 DM_IOCTLS=yes
8ce0cbda 1981 SELINUX=yes
8b1a3214 1982 REALTIME=yes
8ce0cbda 1983 CLUSTER=internal
93bd259b 1984 FSADM=yes
d0191583 1985 ;;
8ce0cbda
AK
1986 darwin*)
1987 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
1988 COPTIMISE_FLAG="-O2"
1989 CLDFLAGS="$CLDFLAGS"
1990 CLDWHOLEARCHIVE="-all_load"
1991 CLDNOWHOLEARCHIVE=
d0191583 1992 LIB_SUFFIX=dylib
a653923f 1993 DEVMAPPER=yes
8ce0cbda 1994 ODIRECT=no
d0191583 1995 DM_IOCTLS=no
8ce0cbda 1996 SELINUX=no
8b1a3214 1997 REALTIME=no
8ce0cbda 1998 CLUSTER=none
d0191583
JM
1999 FSADM=no
2000 ;;
8ce0cbda
AK
2001esac
2002
80992638 2003################################################################################
5951ef33
AK
2004{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2005echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
2006if test "${ac_cv_path_SED+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2008else
2009 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2010 for ac_i in 1 2 3 4 5 6 7; do
2011 ac_script="$ac_script$as_nl$ac_script"
2012 done
2013 echo "$ac_script" | sed 99q >conftest.sed
2014 $as_unset ac_script || ac_script=
2015 # Extract the first word of "sed gsed" to use in msg output
2016if test -z "$SED"; then
2017set dummy sed gsed; ac_prog_name=$2
2018if test "${ac_cv_path_SED+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2020else
2021 ac_path_SED_found=false
2022# Loop through the user's path and test for each of PROGNAME-LIST
2023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024for as_dir in $PATH
2025do
2026 IFS=$as_save_IFS
2027 test -z "$as_dir" && as_dir=.
2028 for ac_prog in sed gsed; do
2029 for ac_exec_ext in '' $ac_executable_extensions; do
2030 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2031 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2032 # Check for GNU ac_path_SED and select it if it is found.
2033 # Check for GNU $ac_path_SED
2034case `"$ac_path_SED" --version 2>&1` in
2035*GNU*)
2036 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2037*)
2038 ac_count=0
2039 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2040 while :
2041 do
2042 cat "conftest.in" "conftest.in" >"conftest.tmp"
2043 mv "conftest.tmp" "conftest.in"
2044 cp "conftest.in" "conftest.nl"
2045 echo '' >> "conftest.nl"
2046 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2047 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2048 ac_count=`expr $ac_count + 1`
2049 if test $ac_count -gt ${ac_path_SED_max-0}; then
2050 # Best one so far, save it but keep looking for a better one
2051 ac_cv_path_SED="$ac_path_SED"
2052 ac_path_SED_max=$ac_count
2053 fi
2054 # 10*(2^10) chars as input seems more than enough
2055 test $ac_count -gt 10 && break
2056 done
2057 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2058esac
2059
2060
2061 $ac_path_SED_found && break 3
2062 done
2063done
2064
2065done
2066IFS=$as_save_IFS
2067
2068
2069fi
2070
2071SED="$ac_cv_path_SED"
2072if test -z "$SED"; then
2073 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
2074echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
2075 { (exit 1); exit 1; }; }
2076fi
2077
2078else
2079 ac_cv_path_SED=$SED
2080fi
2081
2082fi
2083{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2084echo "${ECHO_T}$ac_cv_path_SED" >&6; }
2085 SED="$ac_cv_path_SED"
2086 rm -f conftest.sed
2087
ad6254c5 2088for ac_prog in gawk mawk nawk awk
795ca3e5 2089do
ad6254c5 2090 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2091set dummy $ac_prog; ac_word=$2
68f2de6d
AK
2092{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2094if test "${ac_cv_prog_AWK+set}" = set; then
68f2de6d 2095 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2096else
2097 if test -n "$AWK"; then
2098 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2099else
ad6254c5
AK
2100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101for as_dir in $PATH
2102do
2103 IFS=$as_save_IFS
2104 test -z "$as_dir" && as_dir=.
2105 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2107 ac_cv_prog_AWK="$ac_prog"
68f2de6d 2108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2109 break 2
2110 fi
2111done
2112done
7a197a62 2113IFS=$as_save_IFS
ad6254c5 2114
795ca3e5
AK
2115fi
2116fi
ad6254c5 2117AWK=$ac_cv_prog_AWK
795ca3e5 2118if test -n "$AWK"; then
68f2de6d
AK
2119 { echo "$as_me:$LINENO: result: $AWK" >&5
2120echo "${ECHO_T}$AWK" >&6; }
795ca3e5 2121else
68f2de6d
AK
2122 { echo "$as_me:$LINENO: result: no" >&5
2123echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2124fi
2125
7a197a62 2126
ad6254c5
AK
2127 test -n "$AWK" && break
2128done
2129
2130ac_ext=c
2131ac_cpp='$CPP $CPPFLAGS'
2132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2134ac_compiler_gnu=$ac_cv_c_compiler_gnu
2135if test -n "$ac_tool_prefix"; then
2136 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2137set dummy ${ac_tool_prefix}gcc; ac_word=$2
68f2de6d
AK
2138{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2140if test "${ac_cv_prog_CC+set}" = set; then
68f2de6d 2141 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2142else
2143 if test -n "$CC"; then
2144 ac_cv_prog_CC="$CC" # Let the user override the test.
2145else
2146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147for as_dir in $PATH
2148do
2149 IFS=$as_save_IFS
2150 test -z "$as_dir" && as_dir=.
2151 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2153 ac_cv_prog_CC="${ac_tool_prefix}gcc"
68f2de6d 2154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2155 break 2
2156 fi
2157done
8106cdd5 2158done
7a197a62 2159IFS=$as_save_IFS
8106cdd5 2160
ad6254c5
AK
2161fi
2162fi
2163CC=$ac_cv_prog_CC
2164if test -n "$CC"; then
68f2de6d
AK
2165 { echo "$as_me:$LINENO: result: $CC" >&5
2166echo "${ECHO_T}$CC" >&6; }
ad6254c5 2167else
68f2de6d
AK
2168 { echo "$as_me:$LINENO: result: no" >&5
2169echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2170fi
2171
7a197a62 2172
ad6254c5
AK
2173fi
2174if test -z "$ac_cv_prog_CC"; then
2175 ac_ct_CC=$CC
2176 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2177set dummy gcc; ac_word=$2
68f2de6d
AK
2178{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2180if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
68f2de6d 2181 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2182else
2183 if test -n "$ac_ct_CC"; then
2184 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2185else
2186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187for as_dir in $PATH
2188do
2189 IFS=$as_save_IFS
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2193 ac_cv_prog_ac_ct_CC="gcc"
68f2de6d 2194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2195 break 2
2196 fi
2197done
2198done
7a197a62 2199IFS=$as_save_IFS
ad6254c5
AK
2200
2201fi
2202fi
2203ac_ct_CC=$ac_cv_prog_ac_ct_CC
2204if test -n "$ac_ct_CC"; then
68f2de6d
AK
2205 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2206echo "${ECHO_T}$ac_ct_CC" >&6; }
ad6254c5 2207else
68f2de6d
AK
2208 { echo "$as_me:$LINENO: result: no" >&5
2209echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2210fi
2211
7a197a62
AK
2212 if test "x$ac_ct_CC" = x; then
2213 CC=""
2214 else
2215 case $cross_compiling:$ac_tool_warned in
2216yes:)
68f2de6d 2217{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2218whose name does not start with the host triplet. If you think this
2219configuration is useful to you, please write to autoconf@gnu.org." >&5
68f2de6d 2220echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2221whose name does not start with the host triplet. If you think this
2222configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2223ac_tool_warned=yes ;;
2224esac
2225 CC=$ac_ct_CC
2226 fi
ad6254c5
AK
2227else
2228 CC="$ac_cv_prog_CC"
2229fi
2230
2231if test -z "$CC"; then
7a197a62
AK
2232 if test -n "$ac_tool_prefix"; then
2233 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2234set dummy ${ac_tool_prefix}cc; ac_word=$2
68f2de6d
AK
2235{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2237if test "${ac_cv_prog_CC+set}" = set; then
68f2de6d 2238 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5
AK
2239else
2240 if test -n "$CC"; then
2241 ac_cv_prog_CC="$CC" # Let the user override the test.
2242else
ad6254c5
AK
2243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244for as_dir in $PATH
2245do
2246 IFS=$as_save_IFS
2247 test -z "$as_dir" && as_dir=.
2248 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2250 ac_cv_prog_CC="${ac_tool_prefix}cc"
68f2de6d 2251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2252 break 2
2253 fi
2254done
2255done
7a197a62 2256IFS=$as_save_IFS
ad6254c5 2257
8106cdd5
AK
2258fi
2259fi
ad6254c5 2260CC=$ac_cv_prog_CC
8106cdd5 2261if test -n "$CC"; then
68f2de6d
AK
2262 { echo "$as_me:$LINENO: result: $CC" >&5
2263echo "${ECHO_T}$CC" >&6; }
ad6254c5 2264else
68f2de6d
AK
2265 { echo "$as_me:$LINENO: result: no" >&5
2266echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2267fi
2268
8106cdd5 2269
7a197a62 2270 fi
ad6254c5 2271fi
795ca3e5
AK
2272if test -z "$CC"; then
2273 # Extract the first word of "cc", so it can be a program name with args.
2274set dummy cc; ac_word=$2
68f2de6d
AK
2275{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2277if test "${ac_cv_prog_CC+set}" = set; then
68f2de6d 2278 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2279else
2280 if test -n "$CC"; then
2281 ac_cv_prog_CC="$CC" # Let the user override the test.
2282else
795ca3e5 2283 ac_prog_rejected=no
ad6254c5
AK
2284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285for as_dir in $PATH
2286do
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2291 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2292 ac_prog_rejected=yes
2293 continue
2294 fi
2295 ac_cv_prog_CC="cc"
68f2de6d 2296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2297 break 2
2298 fi
2299done
2300done
7a197a62 2301IFS=$as_save_IFS
ad6254c5 2302
795ca3e5
AK
2303if test $ac_prog_rejected = yes; then
2304 # We found a bogon in the path, so make sure we never use it.
2305 set dummy $ac_cv_prog_CC
2306 shift
ad6254c5 2307 if test $# != 0; then
795ca3e5
AK
2308 # We chose a different compiler from the bogus one.
2309 # However, it has the same basename, so the bogon will be chosen
2310 # first if we set CC to just the basename; use the full file name.
2311 shift
ad6254c5 2312 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2313 fi
2314fi
2315fi
2316fi
ad6254c5 2317CC=$ac_cv_prog_CC
795ca3e5 2318if test -n "$CC"; then
68f2de6d
AK
2319 { echo "$as_me:$LINENO: result: $CC" >&5
2320echo "${ECHO_T}$CC" >&6; }
795ca3e5 2321else
68f2de6d
AK
2322 { echo "$as_me:$LINENO: result: no" >&5
2323echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2324fi
2325
7a197a62 2326
ad6254c5
AK
2327fi
2328if test -z "$CC"; then
2329 if test -n "$ac_tool_prefix"; then
7a197a62 2330 for ac_prog in cl.exe
ad6254c5
AK
2331 do
2332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2333set dummy $ac_tool_prefix$ac_prog; ac_word=$2
68f2de6d
AK
2334{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2336if test "${ac_cv_prog_CC+set}" = set; then
68f2de6d 2337 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2338else
2339 if test -n "$CC"; then
2340 ac_cv_prog_CC="$CC" # Let the user override the test.
2341else
ad6254c5
AK
2342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343for as_dir in $PATH
2344do
2345 IFS=$as_save_IFS
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2349 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
68f2de6d 2350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2351 break 2
2352 fi
2353done
2354done
7a197a62 2355IFS=$as_save_IFS
ad6254c5 2356
795ca3e5
AK
2357fi
2358fi
ad6254c5 2359CC=$ac_cv_prog_CC
795ca3e5 2360if test -n "$CC"; then
68f2de6d
AK
2361 { echo "$as_me:$LINENO: result: $CC" >&5
2362echo "${ECHO_T}$CC" >&6; }
795ca3e5 2363else
68f2de6d
AK
2364 { echo "$as_me:$LINENO: result: no" >&5
2365echo "${ECHO_T}no" >&6; }
795ca3e5 2366fi
ad6254c5 2367
7a197a62 2368
ad6254c5
AK
2369 test -n "$CC" && break
2370 done
2371fi
2372if test -z "$CC"; then
2373 ac_ct_CC=$CC
7a197a62 2374 for ac_prog in cl.exe
ad6254c5
AK
2375do
2376 # Extract the first word of "$ac_prog", so it can be a program name with args.
2377set dummy $ac_prog; ac_word=$2
68f2de6d
AK
2378{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2380if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
68f2de6d 2381 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2382else
2383 if test -n "$ac_ct_CC"; then
2384 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2385else
2386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387for as_dir in $PATH
2388do
2389 IFS=$as_save_IFS
2390 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2393 ac_cv_prog_ac_ct_CC="$ac_prog"
68f2de6d 2394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2395 break 2
795ca3e5 2396 fi
ad6254c5
AK
2397done
2398done
7a197a62 2399IFS=$as_save_IFS
ad6254c5
AK
2400
2401fi
2402fi
2403ac_ct_CC=$ac_cv_prog_ac_ct_CC
2404if test -n "$ac_ct_CC"; then
68f2de6d
AK
2405 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2406echo "${ECHO_T}$ac_ct_CC" >&6; }
ad6254c5 2407else
68f2de6d
AK
2408 { echo "$as_me:$LINENO: result: no" >&5
2409echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2410fi
2411
7a197a62 2412
ad6254c5
AK
2413 test -n "$ac_ct_CC" && break
2414done
795ca3e5 2415
7a197a62
AK
2416 if test "x$ac_ct_CC" = x; then
2417 CC=""
2418 else
2419 case $cross_compiling:$ac_tool_warned in
2420yes:)
68f2de6d 2421{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2422whose name does not start with the host triplet. If you think this
2423configuration is useful to you, please write to autoconf@gnu.org." >&5
68f2de6d 2424echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2425whose name does not start with the host triplet. If you think this
2426configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2427ac_tool_warned=yes ;;
2428esac
2429 CC=$ac_ct_CC
2430 fi
ad6254c5
AK
2431fi
2432
2433fi
2434
2435
68f2de6d 2436test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2437See \`config.log' for more details." >&5
68f2de6d 2438echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5
AK
2439See \`config.log' for more details." >&2;}
2440 { (exit 1); exit 1; }; }
2441
2442# Provide some information about the compiler.
68f2de6d
AK
2443echo "$as_me:$LINENO: checking for C compiler version" >&5
2444ac_compiler=`set X $ac_compile; echo $2`
7a197a62
AK
2445{ (ac_try="$ac_compiler --version >&5"
2446case "(($ac_try" in
2447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448 *) ac_try_echo=$ac_try;;
2449esac
68f2de6d 2450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2451 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2452 ac_status=$?
68f2de6d 2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2454 (exit $ac_status); }
7a197a62
AK
2455{ (ac_try="$ac_compiler -v >&5"
2456case "(($ac_try" in
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2459esac
68f2de6d 2460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2461 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2462 ac_status=$?
68f2de6d 2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2464 (exit $ac_status); }
7a197a62
AK
2465{ (ac_try="$ac_compiler -V >&5"
2466case "(($ac_try" in
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2469esac
68f2de6d 2470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2471 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2472 ac_status=$?
68f2de6d 2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2474 (exit $ac_status); }
2475
2476cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2477/* confdefs.h. */
2478_ACEOF
2479cat confdefs.h >>conftest.$ac_ext
2480cat >>conftest.$ac_ext <<_ACEOF
2481/* end confdefs.h. */
2482
2483int
2484main ()
2485{
2486
2487 ;
2488 return 0;
2489}
2490_ACEOF
2491ac_clean_files_save=$ac_clean_files
68f2de6d 2492ac_clean_files="$ac_clean_files a.out a.exe b.out"
ad6254c5
AK
2493# Try to create an executable without -o first, disregard a.out.
2494# It will help us diagnose broken compilers, and finding out an intuition
2495# of exeext.
68f2de6d
AK
2496{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2497echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2498ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2499#
2500# List of possible output files, starting from the most likely.
2501# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2502# only as a last resort. b.out is created by i960 compilers.
2503ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2504#
2505# The IRIX 6 linker writes into existing files which may not be
2506# executable, retaining their permissions. Remove them first so a
2507# subsequent execution test works.
7a197a62
AK
2508ac_rmfiles=
2509for ac_file in $ac_files
2510do
2511 case $ac_file in
68f2de6d 2512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
7a197a62
AK
2513 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2514 esac
2515done
2516rm -f $ac_rmfiles
2517
2518if { (ac_try="$ac_link_default"
2519case "(($ac_try" in
2520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521 *) ac_try_echo=$ac_try;;
2522esac
68f2de6d 2523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2524 (eval "$ac_link_default") 2>&5
ad6254c5 2525 ac_status=$?
68f2de6d 2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2527 (exit $ac_status); }; then
7a197a62
AK
2528 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2529# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2530# in a Makefile. We should not override ac_cv_exeext if it was cached,
2531# so that the user can short-circuit this test for compilers unknown to
2532# Autoconf.
25fbec5b 2533for ac_file in $ac_files ''
ad6254c5
AK
2534do
2535 test -f "$ac_file" || continue
2536 case $ac_file in
68f2de6d 2537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
8a2fc586 2538 ;;
ad6254c5 2539 [ab].out )
8a2fc586
AK
2540 # We found the default executable, but exeext='' is most
2541 # certainly right.
2542 break;;
ad6254c5 2543 *.* )
7a197a62
AK
2544 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2545 then :; else
2546 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2547 fi
2548 # We set ac_cv_exeext here because the later test for it is not
2549 # safe: cross compilers may not add the suffix if given an `-o'
2550 # argument, so we may need to know it at that point already.
2551 # Even if this section looks crufty: it has the advantage of
2552 # actually working.
8a2fc586 2553 break;;
ad6254c5 2554 * )
8a2fc586 2555 break;;
ad6254c5
AK
2556 esac
2557done
7a197a62
AK
2558test "$ac_cv_exeext" = no && ac_cv_exeext=
2559
ad6254c5 2560else
25fbec5b
AK
2561 ac_file=''
2562fi
2563
68f2de6d
AK
2564{ echo "$as_me:$LINENO: result: $ac_file" >&5
2565echo "${ECHO_T}$ac_file" >&6; }
25fbec5b 2566if test -z "$ac_file"; then
68f2de6d 2567 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2568sed 's/^/| /' conftest.$ac_ext >&5
2569
68f2de6d 2570{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2571See \`config.log' for more details." >&5
68f2de6d 2572echo "$as_me: error: C compiler cannot create executables
ad6254c5
AK
2573See \`config.log' for more details." >&2;}
2574 { (exit 77); exit 77; }; }
2575fi
2576
2577ac_exeext=$ac_cv_exeext
ad6254c5 2578
7a197a62 2579# Check that the compiler produces executables we can run. If not, either
ad6254c5 2580# the compiler is broken, or we cross compile.
68f2de6d
AK
2581{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2582echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
ad6254c5
AK
2583# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2584# If not cross compiling, check that we can run a simple program.
2585if test "$cross_compiling" != yes; then
2586 if { ac_try='./$ac_file'
7a197a62
AK
2587 { (case "(($ac_try" in
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2590esac
68f2de6d 2591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2592 (eval "$ac_try") 2>&5
ad6254c5 2593 ac_status=$?
68f2de6d 2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2595 (exit $ac_status); }; }; then
2596 cross_compiling=no
795ca3e5 2597 else
ad6254c5
AK
2598 if test "$cross_compiling" = maybe; then
2599 cross_compiling=yes
2600 else
68f2de6d 2601 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2602If you meant to cross compile, use \`--host'.
2603See \`config.log' for more details." >&5
68f2de6d 2604echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2605If you meant to cross compile, use \`--host'.
2606See \`config.log' for more details." >&2;}
2607 { (exit 1); exit 1; }; }
2608 fi
795ca3e5 2609 fi
80992638 2610fi
68f2de6d
AK
2611{ echo "$as_me:$LINENO: result: yes" >&5
2612echo "${ECHO_T}yes" >&6; }
ad6254c5 2613
68f2de6d 2614rm -f a.out a.exe conftest$ac_cv_exeext b.out
ad6254c5 2615ac_clean_files=$ac_clean_files_save
7a197a62 2616# Check that the compiler produces executables we can run. If not, either
ad6254c5 2617# the compiler is broken, or we cross compile.
68f2de6d
AK
2618{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2619echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2620{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2621echo "${ECHO_T}$cross_compiling" >&6; }
7a197a62 2622
68f2de6d
AK
2623{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2624echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
7a197a62
AK
2625if { (ac_try="$ac_link"
2626case "(($ac_try" in
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2629esac
68f2de6d 2630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2631 (eval "$ac_link") 2>&5
ad6254c5 2632 ac_status=$?
68f2de6d 2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2634 (exit $ac_status); }; then
2635 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2636# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2637# work properly (i.e., refer to `conftest.exe'), while it won't with
2638# `rm'.
2639for ac_file in conftest.exe conftest conftest.*; do
2640 test -f "$ac_file" || continue
2641 case $ac_file in
68f2de6d 2642 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
ad6254c5 2643 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2644 break;;
ad6254c5
AK
2645 * ) break;;
2646 esac
2647done
80992638 2648else
68f2de6d 2649 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2650See \`config.log' for more details." >&5
68f2de6d 2651echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5
AK
2652See \`config.log' for more details." >&2;}
2653 { (exit 1); exit 1; }; }
2654fi
2655
2656rm -f conftest$ac_cv_exeext
68f2de6d
AK
2657{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2658echo "${ECHO_T}$ac_cv_exeext" >&6; }
ad6254c5
AK
2659
2660rm -f conftest.$ac_ext
2661EXEEXT=$ac_cv_exeext
2662ac_exeext=$EXEEXT
68f2de6d
AK
2663{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2664echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
ad6254c5 2665if test "${ac_cv_objext+set}" = set; then
68f2de6d 2666 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2667else
ad6254c5 2668 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2669/* confdefs.h. */
2670_ACEOF
2671cat confdefs.h >>conftest.$ac_ext
2672cat >>conftest.$ac_ext <<_ACEOF
2673/* end confdefs.h. */
2674
2675int
2676main ()
2677{
2678
2679 ;
2680 return 0;
2681}
2682_ACEOF
2683rm -f conftest.o conftest.obj
7a197a62
AK
2684if { (ac_try="$ac_compile"
2685case "(($ac_try" in
2686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2687 *) ac_try_echo=$ac_try;;
2688esac
68f2de6d 2689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2690 (eval "$ac_compile") 2>&5
ad6254c5 2691 ac_status=$?
68f2de6d 2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2693 (exit $ac_status); }; then
7a197a62
AK
2694 for ac_file in conftest.o conftest.obj conftest.*; do
2695 test -f "$ac_file" || continue;
ad6254c5 2696 case $ac_file in
68f2de6d 2697 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
ad6254c5
AK
2698 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2699 break;;
2700 esac
2701done
2702else
68f2de6d 2703 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2704sed 's/^/| /' conftest.$ac_ext >&5
2705
68f2de6d 2706{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2707See \`config.log' for more details." >&5
68f2de6d 2708echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5
AK
2709See \`config.log' for more details." >&2;}
2710 { (exit 1); exit 1; }; }
2711fi
2712
2713rm -f conftest.$ac_cv_objext conftest.$ac_ext
2714fi
68f2de6d
AK
2715{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2716echo "${ECHO_T}$ac_cv_objext" >&6; }
ad6254c5
AK
2717OBJEXT=$ac_cv_objext
2718ac_objext=$OBJEXT
68f2de6d
AK
2719{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2720echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
ad6254c5 2721if test "${ac_cv_c_compiler_gnu+set}" = set; then
68f2de6d 2722 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2723else
2724 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2725/* confdefs.h. */
2726_ACEOF
2727cat confdefs.h >>conftest.$ac_ext
2728cat >>conftest.$ac_ext <<_ACEOF
2729/* end confdefs.h. */
2730
2731int
2732main ()
2733{
2734#ifndef __GNUC__
2735 choke me
2736#endif
80992638 2737
ad6254c5
AK
2738 ;
2739 return 0;
2740}
2741_ACEOF
2742rm -f conftest.$ac_objext
7a197a62
AK
2743if { (ac_try="$ac_compile"
2744case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2747esac
68f2de6d 2748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2749 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2750 ac_status=$?
8a2fc586
AK
2751 grep -v '^ *+' conftest.er1 >conftest.err
2752 rm -f conftest.er1
2753 cat conftest.err >&5
68f2de6d 2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2755 (exit $ac_status); } && {
2756 test -z "$ac_c_werror_flag" ||
2757 test ! -s conftest.err
2758 } && test -s conftest.$ac_objext; then
ad6254c5 2759 ac_compiler_gnu=yes
80992638 2760else
68f2de6d 2761 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2762sed 's/^/| /' conftest.$ac_ext >&5
2763
7a197a62 2764 ac_compiler_gnu=no
8106cdd5 2765fi
7a197a62
AK
2766
2767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2768ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 2769
ad6254c5 2770fi
68f2de6d
AK
2771{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2772echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2773GCC=`test $ac_compiler_gnu = yes && echo yes`
ad6254c5
AK
2774ac_test_CFLAGS=${CFLAGS+set}
2775ac_save_CFLAGS=$CFLAGS
68f2de6d
AK
2776{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2777echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
ad6254c5 2778if test "${ac_cv_prog_cc_g+set}" = set; then
68f2de6d 2779 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2780else
7a197a62
AK
2781 ac_save_c_werror_flag=$ac_c_werror_flag
2782 ac_c_werror_flag=yes
2783 ac_cv_prog_cc_g=no
2784 CFLAGS="-g"
2785 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2786/* confdefs.h. */
2787_ACEOF
2788cat confdefs.h >>conftest.$ac_ext
2789cat >>conftest.$ac_ext <<_ACEOF
2790/* end confdefs.h. */
2791
2792int
2793main ()
2794{
2795
2796 ;
2797 return 0;
2798}
2799_ACEOF
2800rm -f conftest.$ac_objext
7a197a62
AK
2801if { (ac_try="$ac_compile"
2802case "(($ac_try" in
2803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804 *) ac_try_echo=$ac_try;;
2805esac
68f2de6d 2806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2807 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2808 ac_status=$?
8a2fc586
AK
2809 grep -v '^ *+' conftest.er1 >conftest.err
2810 rm -f conftest.er1
2811 cat conftest.err >&5
68f2de6d 2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2813 (exit $ac_status); } && {
2814 test -z "$ac_c_werror_flag" ||
2815 test ! -s conftest.err
2816 } && test -s conftest.$ac_objext; then
7a197a62
AK
2817 ac_cv_prog_cc_g=yes
2818else
68f2de6d 2819 echo "$as_me: failed program was:" >&5
7a197a62
AK
2820sed 's/^/| /' conftest.$ac_ext >&5
2821
2822 CFLAGS=""
2823 cat >conftest.$ac_ext <<_ACEOF
2824/* confdefs.h. */
2825_ACEOF
2826cat confdefs.h >>conftest.$ac_ext
2827cat >>conftest.$ac_ext <<_ACEOF
2828/* end confdefs.h. */
2829
2830int
2831main ()
2832{
2833
2834 ;
2835 return 0;
2836}
2837_ACEOF
2838rm -f conftest.$ac_objext
2839if { (ac_try="$ac_compile"
2840case "(($ac_try" in
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2843esac
68f2de6d 2844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2845 (eval "$ac_compile") 2>conftest.er1
8a2fc586 2846 ac_status=$?
7a197a62
AK
2847 grep -v '^ *+' conftest.er1 >conftest.err
2848 rm -f conftest.er1
2849 cat conftest.err >&5
68f2de6d 2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2851 (exit $ac_status); } && {
2852 test -z "$ac_c_werror_flag" ||
2853 test ! -s conftest.err
2854 } && test -s conftest.$ac_objext; then
7a197a62
AK
2855 :
2856else
68f2de6d 2857 echo "$as_me: failed program was:" >&5
7a197a62
AK
2858sed 's/^/| /' conftest.$ac_ext >&5
2859
2860 ac_c_werror_flag=$ac_save_c_werror_flag
2861 CFLAGS="-g"
2862 cat >conftest.$ac_ext <<_ACEOF
2863/* confdefs.h. */
2864_ACEOF
2865cat confdefs.h >>conftest.$ac_ext
2866cat >>conftest.$ac_ext <<_ACEOF
2867/* end confdefs.h. */
2868
2869int
2870main ()
2871{
2872
2873 ;
2874 return 0;
2875}
2876_ACEOF
2877rm -f conftest.$ac_objext
2878if { (ac_try="$ac_compile"
2879case "(($ac_try" in
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2882esac
68f2de6d 2883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2884 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2885 ac_status=$?
7a197a62
AK
2886 grep -v '^ *+' conftest.er1 >conftest.err
2887 rm -f conftest.er1
2888 cat conftest.err >&5
68f2de6d 2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2890 (exit $ac_status); } && {
2891 test -z "$ac_c_werror_flag" ||
2892 test ! -s conftest.err
2893 } && test -s conftest.$ac_objext; then
795ca3e5
AK
2894 ac_cv_prog_cc_g=yes
2895else
68f2de6d 2896 echo "$as_me: failed program was:" >&5
ad6254c5 2897sed 's/^/| /' conftest.$ac_ext >&5
80992638 2898
7a197a62
AK
2899
2900fi
2901
2902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2903fi
2904
2905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 2906fi
7a197a62
AK
2907
2908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 2910fi
68f2de6d
AK
2911{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2912echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
795ca3e5 2913if test "$ac_test_CFLAGS" = set; then
ad6254c5 2914 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
2915elif test $ac_cv_prog_cc_g = yes; then
2916 if test "$GCC" = yes; then
2917 CFLAGS="-g -O2"
2918 else
2919 CFLAGS="-g"
2920 fi
2921else
2922 if test "$GCC" = yes; then
2923 CFLAGS="-O2"
2924 else
2925 CFLAGS=
2926 fi
2927fi
68f2de6d
AK
2928{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2929echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
7a197a62 2930if test "${ac_cv_prog_cc_c89+set}" = set; then
68f2de6d 2931 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 2932else
7a197a62 2933 ac_cv_prog_cc_c89=no
ad6254c5
AK
2934ac_save_CC=$CC
2935cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2936/* confdefs.h. */
2937_ACEOF
2938cat confdefs.h >>conftest.$ac_ext
2939cat >>conftest.$ac_ext <<_ACEOF
2940/* end confdefs.h. */
2941#include <stdarg.h>
2942#include <stdio.h>
2943#include <sys/types.h>
2944#include <sys/stat.h>
2945/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2946struct buf { int x; };
2947FILE * (*rcsopen) (struct buf *, struct stat *, int);
2948static char *e (p, i)
2949 char **p;
2950 int i;
2951{
2952 return p[i];
2953}
2954static char *f (char * (*g) (char **, int), char **p, ...)
2955{
2956 char *s;
2957 va_list v;
2958 va_start (v,p);
2959 s = g (p, va_arg (v,int));
2960 va_end (v);
2961 return s;
2962}
8a2fc586
AK
2963
2964/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2965 function prototypes and stuff, but not '\xHH' hex character constants.
2966 These don't provoke an error unfortunately, instead are silently treated
7a197a62 2967 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
2968 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2969 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 2970 that's true only with -std. */
8a2fc586
AK
2971int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2972
7a197a62
AK
2973/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2974 inside strings and character constants. */
2975#define FOO(x) 'x'
2976int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2977
ad6254c5
AK
2978int test (int i, double x);
2979struct s1 {int (*f) (int a);};
2980struct s2 {int (*f) (double a);};
2981int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2982int argc;
2983char **argv;
2984int
2985main ()
2986{
2987return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2988 ;
2989 return 0;
2990}
2991_ACEOF
7a197a62
AK
2992for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2993 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
2994do
2995 CC="$ac_save_CC $ac_arg"
2996 rm -f conftest.$ac_objext
7a197a62
AK
2997if { (ac_try="$ac_compile"
2998case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3001esac
68f2de6d 3002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 3003 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3004 ac_status=$?
8a2fc586
AK
3005 grep -v '^ *+' conftest.er1 >conftest.err
3006 rm -f conftest.er1
3007 cat conftest.err >&5
68f2de6d 3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3009 (exit $ac_status); } && {
3010 test -z "$ac_c_werror_flag" ||
3011 test ! -s conftest.err
3012 } && test -s conftest.$ac_objext; then
7a197a62 3013 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3014else
68f2de6d 3015 echo "$as_me: failed program was:" >&5
ad6254c5
AK
3016sed 's/^/| /' conftest.$ac_ext >&5
3017
7a197a62 3018
ad6254c5 3019fi
7a197a62
AK
3020
3021rm -f core conftest.err conftest.$ac_objext
3022 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3023done
7a197a62 3024rm -f conftest.$ac_ext
ad6254c5
AK
3025CC=$ac_save_CC
3026
3027fi
7a197a62
AK
3028# AC_CACHE_VAL
3029case "x$ac_cv_prog_cc_c89" in
3030 x)
68f2de6d
AK
3031 { echo "$as_me:$LINENO: result: none needed" >&5
3032echo "${ECHO_T}none needed" >&6; } ;;
7a197a62 3033 xno)
68f2de6d
AK
3034 { echo "$as_me:$LINENO: result: unsupported" >&5
3035echo "${ECHO_T}unsupported" >&6; } ;;
ad6254c5 3036 *)
7a197a62 3037 CC="$CC $ac_cv_prog_cc_c89"
68f2de6d
AK
3038 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3039echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3040esac
3041
ad6254c5 3042
ad6254c5
AK
3043ac_ext=c
3044ac_cpp='$CPP $CPPFLAGS'
3045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3047ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3048
d0191583
JM
3049
3050
3051ac_ext=c
3052ac_cpp='$CPP $CPPFLAGS'
3053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3055ac_compiler_gnu=$ac_cv_c_compiler_gnu
68f2de6d
AK
3056{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3057echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
d0191583
JM
3058# On Suns, sometimes $CPP names a directory.
3059if test -n "$CPP" && test -d "$CPP"; then
3060 CPP=
3061fi
3062if test -z "$CPP"; then
3063 if test "${ac_cv_prog_CPP+set}" = set; then
68f2de6d 3064 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3065else
d0191583
JM
3066 # Double quotes because CPP needs to be expanded
3067 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3068 do
3069 ac_preproc_ok=false
3070for ac_c_preproc_warn_flag in '' yes
ad6254c5 3071do
d0191583
JM
3072 # Use a header file that comes with gcc, so configuring glibc
3073 # with a fresh cross-compiler works.
3074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3075 # <limits.h> exists even on freestanding compilers.
3076 # On the NeXT, cc -E runs the code through the compiler's parser,
3077 # not just through cpp. "Syntax error" is here to catch this case.
3078 cat >conftest.$ac_ext <<_ACEOF
3079/* confdefs.h. */
3080_ACEOF
3081cat confdefs.h >>conftest.$ac_ext
3082cat >>conftest.$ac_ext <<_ACEOF
3083/* end confdefs.h. */
3084#ifdef __STDC__
3085# include <limits.h>
3086#else
3087# include <assert.h>
3088#endif
3089 Syntax error
3090_ACEOF
3091if { (ac_try="$ac_cpp conftest.$ac_ext"
3092case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
ad6254c5 3095esac
68f2de6d 3096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3098 ac_status=$?
3099 grep -v '^ *+' conftest.er1 >conftest.err
3100 rm -f conftest.er1
3101 cat conftest.err >&5
68f2de6d 3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3103 (exit $ac_status); } >/dev/null && {
3104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3105 test ! -s conftest.err
3106 }; then
3107 :
3108else
68f2de6d 3109 echo "$as_me: failed program was:" >&5
d0191583 3110sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3111
d0191583
JM
3112 # Broken: fails on valid input.
3113continue
795ca3e5 3114fi
795ca3e5 3115
d0191583 3116rm -f conftest.err conftest.$ac_ext
795ca3e5 3117
d0191583
JM
3118 # OK, works on sane cases. Now check whether nonexistent headers
3119 # can be detected and how.
3120 cat >conftest.$ac_ext <<_ACEOF
3121/* confdefs.h. */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
3125/* end confdefs.h. */
3126#include <ac_nonexistent.h>
3127_ACEOF
3128if { (ac_try="$ac_cpp conftest.$ac_ext"
3129case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132esac
68f2de6d 3133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3135 ac_status=$?
3136 grep -v '^ *+' conftest.er1 >conftest.err
3137 rm -f conftest.er1
3138 cat conftest.err >&5
68f2de6d 3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3140 (exit $ac_status); } >/dev/null && {
3141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3142 test ! -s conftest.err
3143 }; then
3144 # Broken: success on invalid input.
3145continue
3146else
68f2de6d 3147 echo "$as_me: failed program was:" >&5
d0191583 3148sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3149
d0191583
JM
3150 # Passes both tests.
3151ac_preproc_ok=:
3152break
3153fi
795ca3e5 3154
d0191583
JM
3155rm -f conftest.err conftest.$ac_ext
3156
3157done
3158# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3159rm -f conftest.err conftest.$ac_ext
3160if $ac_preproc_ok; then
3161 break
795ca3e5
AK
3162fi
3163
d0191583
JM
3164 done
3165 ac_cv_prog_CPP=$CPP
3166
3167fi
3168 CPP=$ac_cv_prog_CPP
795ca3e5 3169else
d0191583
JM
3170 ac_cv_prog_CPP=$CPP
3171fi
68f2de6d
AK
3172{ echo "$as_me:$LINENO: result: $CPP" >&5
3173echo "${ECHO_T}$CPP" >&6; }
d0191583
JM
3174ac_preproc_ok=false
3175for ac_c_preproc_warn_flag in '' yes
3176do
3177 # Use a header file that comes with gcc, so configuring glibc
3178 # with a fresh cross-compiler works.
3179 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3180 # <limits.h> exists even on freestanding compilers.
3181 # On the NeXT, cc -E runs the code through the compiler's parser,
3182 # not just through cpp. "Syntax error" is here to catch this case.
3183 cat >conftest.$ac_ext <<_ACEOF
3184/* confdefs.h. */
ad6254c5 3185_ACEOF
d0191583
JM
3186cat confdefs.h >>conftest.$ac_ext
3187cat >>conftest.$ac_ext <<_ACEOF
3188/* end confdefs.h. */
3189#ifdef __STDC__
3190# include <limits.h>
3191#else
3192# include <assert.h>
3193#endif
3194 Syntax error
3195_ACEOF
3196if { (ac_try="$ac_cpp conftest.$ac_ext"
3197case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
7a197a62 3200esac
68f2de6d 3201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3203 ac_status=$?
3204 grep -v '^ *+' conftest.er1 >conftest.err
3205 rm -f conftest.er1
3206 cat conftest.err >&5
68f2de6d 3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3208 (exit $ac_status); } >/dev/null && {
3209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3210 test ! -s conftest.err
3211 }; then
3212 :
795ca3e5 3213else
68f2de6d 3214 echo "$as_me: failed program was:" >&5
d0191583
JM
3215sed 's/^/| /' conftest.$ac_ext >&5
3216
3217 # Broken: fails on valid input.
3218continue
795ca3e5
AK
3219fi
3220
d0191583
JM
3221rm -f conftest.err conftest.$ac_ext
3222
3223 # OK, works on sane cases. Now check whether nonexistent headers
3224 # can be detected and how.
3225 cat >conftest.$ac_ext <<_ACEOF
3226/* confdefs.h. */
3227_ACEOF
3228cat confdefs.h >>conftest.$ac_ext
3229cat >>conftest.$ac_ext <<_ACEOF
3230/* end confdefs.h. */
3231#include <ac_nonexistent.h>
3232_ACEOF
3233if { (ac_try="$ac_cpp conftest.$ac_ext"
3234case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237esac
68f2de6d 3238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3240 ac_status=$?
3241 grep -v '^ *+' conftest.er1 >conftest.err
3242 rm -f conftest.er1
3243 cat conftest.err >&5
68f2de6d 3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3245 (exit $ac_status); } >/dev/null && {
3246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3247 test ! -s conftest.err
3248 }; then
3249 # Broken: success on invalid input.
3250continue
795ca3e5 3251else
68f2de6d 3252 echo "$as_me: failed program was:" >&5
d0191583 3253sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3254
d0191583
JM
3255 # Passes both tests.
3256ac_preproc_ok=:
3257break
795ca3e5 3258fi
d0191583
JM
3259
3260rm -f conftest.err conftest.$ac_ext
3261
3262done
3263# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3264rm -f conftest.err conftest.$ac_ext
3265if $ac_preproc_ok; then
3266 :
8106cdd5 3267else
68f2de6d 3268 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3269See \`config.log' for more details." >&5
68f2de6d 3270echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583
JM
3271See \`config.log' for more details." >&2;}
3272 { (exit 1); exit 1; }; }
8106cdd5
AK
3273fi
3274
d0191583
JM
3275ac_ext=c
3276ac_cpp='$CPP $CPPFLAGS'
3277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279ac_compiler_gnu=$ac_cv_c_compiler_gnu
3280
7a197a62 3281
68f2de6d
AK
3282{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3283echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3284if test "${ac_cv_path_GREP+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286else
3287 # Extract the first word of "grep ggrep" to use in msg output
3288if test -z "$GREP"; then
3289set dummy grep ggrep; ac_prog_name=$2
5556819a 3290if test "${ac_cv_path_GREP+set}" = set; then
68f2de6d 3291 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3292else
d0191583 3293 ac_path_GREP_found=false
68f2de6d
AK
3294# Loop through the user's path and test for each of PROGNAME-LIST
3295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3296for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3297do
3298 IFS=$as_save_IFS
3299 test -z "$as_dir" && as_dir=.
d0191583 3300 for ac_prog in grep ggrep; do
68f2de6d
AK
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3303 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3304 # Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3305 # Check for GNU $ac_path_GREP
3306case `"$ac_path_GREP" --version 2>&1` in
3307*GNU*)
3308 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3309*)
3310 ac_count=0
68f2de6d 3311 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
d0191583
JM
3312 while :
3313 do
3314 cat "conftest.in" "conftest.in" >"conftest.tmp"
3315 mv "conftest.tmp" "conftest.in"
3316 cp "conftest.in" "conftest.nl"
68f2de6d 3317 echo 'GREP' >> "conftest.nl"
d0191583
JM
3318 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3320 ac_count=`expr $ac_count + 1`
3321 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3322 # Best one so far, save it but keep looking for a better one
3323 ac_cv_path_GREP="$ac_path_GREP"
3324 ac_path_GREP_max=$ac_count
3325 fi
3326 # 10*(2^10) chars as input seems more than enough
3327 test $ac_count -gt 10 && break
3328 done
3329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3330esac
3331
68f2de6d
AK
3332
3333 $ac_path_GREP_found && break 3
d0191583 3334 done
ad6254c5 3335done
68f2de6d
AK
3336
3337done
7a197a62 3338IFS=$as_save_IFS
68f2de6d
AK
3339
3340
3341fi
3342
3343GREP="$ac_cv_path_GREP"
3344if test -z "$GREP"; then
3345 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3346echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3347 { (exit 1); exit 1; }; }
68f2de6d
AK
3348fi
3349
80992638 3350else
d0191583 3351 ac_cv_path_GREP=$GREP
8106cdd5 3352fi
8106cdd5 3353
68f2de6d 3354
80992638 3355fi
68f2de6d
AK
3356{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3357echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
d0191583 3358 GREP="$ac_cv_path_GREP"
795ca3e5 3359
d0191583 3360
68f2de6d
AK
3361{ echo "$as_me:$LINENO: checking for egrep" >&5
3362echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
d0191583 3363if test "${ac_cv_path_EGREP+set}" = set; then
68f2de6d 3364 echo $ECHO_N "(cached) $ECHO_C" >&6
8a2fc586 3365else
d0191583
JM
3366 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3367 then ac_cv_path_EGREP="$GREP -E"
3368 else
68f2de6d
AK
3369 # Extract the first word of "egrep" to use in msg output
3370if test -z "$EGREP"; then
3371set dummy egrep; ac_prog_name=$2
3372if test "${ac_cv_path_EGREP+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374else
d0191583 3375 ac_path_EGREP_found=false
68f2de6d
AK
3376# Loop through the user's path and test for each of PROGNAME-LIST
3377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3378for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3379do
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
d0191583 3382 for ac_prog in egrep; do
68f2de6d
AK
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3385 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3386 # Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3387 # Check for GNU $ac_path_EGREP
3388case `"$ac_path_EGREP" --version 2>&1` in
3389*GNU*)
3390 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3391*)
3392 ac_count=0
68f2de6d 3393 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
d0191583
JM
3394 while :
3395 do
3396 cat "conftest.in" "conftest.in" >"conftest.tmp"
3397 mv "conftest.tmp" "conftest.in"
3398 cp "conftest.in" "conftest.nl"
68f2de6d 3399 echo 'EGREP' >> "conftest.nl"
d0191583
JM
3400 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3401 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3402 ac_count=`expr $ac_count + 1`
3403 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3404 # Best one so far, save it but keep looking for a better one
3405 ac_cv_path_EGREP="$ac_path_EGREP"
3406 ac_path_EGREP_max=$ac_count
3407 fi
3408 # 10*(2^10) chars as input seems more than enough
3409 test $ac_count -gt 10 && break
3410 done
3411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3412esac
8a2fc586 3413
68f2de6d
AK
3414
3415 $ac_path_EGREP_found && break 3
d0191583 3416 done
8a2fc586 3417done
68f2de6d
AK
3418
3419done
7a197a62 3420IFS=$as_save_IFS
68f2de6d
AK
3421
3422
3423fi
3424
3425EGREP="$ac_cv_path_EGREP"
3426if test -z "$EGREP"; then
3427 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3428echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3429 { (exit 1); exit 1; }; }
68f2de6d
AK
3430fi
3431
d0191583
JM
3432else
3433 ac_cv_path_EGREP=$EGREP
3434fi
ad6254c5 3435
68f2de6d 3436
d0191583
JM
3437 fi
3438fi
68f2de6d
AK
3439{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3440echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
d0191583 3441 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3442
3443
d0191583 3444if test $ac_cv_c_compiler_gnu = yes; then
68f2de6d
AK
3445 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3446echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
d0191583 3447if test "${ac_cv_prog_gcc_traditional+set}" = set; then
68f2de6d 3448 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 3449else
d0191583 3450 ac_pattern="Autoconf.*'x'"
ad6254c5 3451 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3452/* confdefs.h. */
3453_ACEOF
3454cat confdefs.h >>conftest.$ac_ext
3455cat >>conftest.$ac_ext <<_ACEOF
3456/* end confdefs.h. */
d0191583
JM
3457#include <sgtty.h>
3458Autoconf TIOCGETP
ad6254c5 3459_ACEOF
d0191583
JM
3460if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3461 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3462 ac_cv_prog_gcc_traditional=yes
8106cdd5 3463else
d0191583 3464 ac_cv_prog_gcc_traditional=no
80992638 3465fi
d0191583 3466rm -f conftest*
ad6254c5 3467
8106cdd5 3468
d0191583
JM
3469 if test $ac_cv_prog_gcc_traditional = no; then
3470 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3471/* confdefs.h. */
3472_ACEOF
3473cat confdefs.h >>conftest.$ac_ext
3474cat >>conftest.$ac_ext <<_ACEOF
3475/* end confdefs.h. */
d0191583
JM
3476#include <termio.h>
3477Autoconf TCGETA
ad6254c5 3478_ACEOF
d0191583
JM
3479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3480 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3481 ac_cv_prog_gcc_traditional=yes
7a197a62 3482fi
d0191583 3483rm -f conftest*
795ca3e5 3484
d0191583 3485 fi
795ca3e5 3486fi
68f2de6d
AK
3487{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3488echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3489 if test $ac_cv_prog_gcc_traditional = yes; then
3490 CC="$CC -traditional"
3491 fi
795ca3e5
AK
3492fi
3493
d0191583
JM
3494# Find a good install program. We prefer a C program (faster),
3495# so one script is as good as another. But avoid the broken or
3496# incompatible versions:
3497# SysV /etc/install, /usr/sbin/install
3498# SunOS /usr/etc/install
3499# IRIX /sbin/install
3500# AIX /bin/install
3501# AmigaOS /C/install, which installs bootblocks on floppy discs
3502# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3503# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3504# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3505# OS/2's system install, which has a completely different semantic
3506# ./install, which can be erroneously created by make from ./install.sh.
68f2de6d
AK
3507{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3508echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d0191583
JM
3509if test -z "$INSTALL"; then
3510if test "${ac_cv_path_install+set}" = set; then
68f2de6d 3511 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3512else
d0191583
JM
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514for as_dir in $PATH
3515do
3516 IFS=$as_save_IFS
3517 test -z "$as_dir" && as_dir=.
3518 # Account for people who put trailing slashes in PATH elements.
3519case $as_dir/ in
3520 ./ | .// | /cC/* | \
3521 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3522 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3523 /usr/ucb/* ) ;;
3524 *)
3525 # OSF1 and SCO ODT 3.0 have their own names for install.
3526 # Don't use installbsd from OSF since it installs stuff as root
3527 # by default.
3528 for ac_prog in ginstall scoinst install; do
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3531 if test $ac_prog = install &&
3532 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3533 # AIX install. It has an incompatible calling convention.
3534 :
3535 elif test $ac_prog = install &&
3536 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3537 # program-specific install script used by HP pwplus--don't use.
3538 :
3539 else
68f2de6d
AK
3540 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3541 break 3
d0191583
JM
3542 fi
3543 fi
3544 done
3545 done
3546 ;;
3547esac
3548done
3549IFS=$as_save_IFS
80992638 3550
d0191583
JM
3551
3552fi
3553 if test "${ac_cv_path_install+set}" = set; then
3554 INSTALL=$ac_cv_path_install
7a197a62 3555 else
d0191583
JM
3556 # As a last resort, use the slow shell script. Don't cache a
3557 # value for INSTALL within a source directory, because that will
3558 # break other packages using the cache if that directory is
3559 # removed, or if the value is a relative name.
3560 INSTALL=$ac_install_sh
7a197a62 3561 fi
d0191583 3562fi
68f2de6d
AK
3563{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3564echo "${ECHO_T}$INSTALL" >&6; }
ad6254c5 3565
d0191583
JM
3566# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3567# It thinks the first close brace ends the variable substitution.
3568test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3569
d0191583 3570test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3571
d0191583
JM
3572test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3573
68f2de6d
AK
3574{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3575echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
d0191583
JM
3576LN_S=$as_ln_s
3577if test "$LN_S" = "ln -s"; then
68f2de6d
AK
3578 { echo "$as_me:$LINENO: result: yes" >&5
3579echo "${ECHO_T}yes" >&6; }
d0191583 3580else
68f2de6d
AK
3581 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3582echo "${ECHO_T}no, using $LN_S" >&6; }
795ca3e5 3583fi
d0191583 3584
68f2de6d
AK
3585{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3586echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3587set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3588if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 3589 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62 3590else
d0191583
JM
3591 cat >conftest.make <<\_ACEOF
3592SHELL = /bin/sh
3593all:
3594 @echo '@@@%%%=$(MAKE)=@@@%%%'
3595_ACEOF
3596# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3597case `${MAKE-make} -f conftest.make 2>/dev/null` in
3598 *@@@%%%=?*=@@@%%%*)
3599 eval ac_cv_prog_make_${ac_make}_set=yes;;
3600 *)
3601 eval ac_cv_prog_make_${ac_make}_set=no;;
3602esac
3603rm -f conftest.make
ad6254c5 3604fi
d0191583 3605if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
68f2de6d
AK
3606 { echo "$as_me:$LINENO: result: yes" >&5
3607echo "${ECHO_T}yes" >&6; }
d0191583
JM
3608 SET_MAKE=
3609else
68f2de6d
AK
3610 { echo "$as_me:$LINENO: result: no" >&5
3611echo "${ECHO_T}no" >&6; }
d0191583 3612 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3613fi
8106cdd5 3614
68f2de6d
AK
3615{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3616echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
5556819a
AK
3617if test -z "$MKDIR_P"; then
3618 if test "${ac_cv_path_mkdir+set}" = set; then
68f2de6d 3619 echo $ECHO_N "(cached) $ECHO_C" >&6
5556819a
AK
3620else
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3623do
3624 IFS=$as_save_IFS
3625 test -z "$as_dir" && as_dir=.
3626 for ac_prog in mkdir gmkdir; do
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3629 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3630 'mkdir (GNU coreutils) '* | \
3631 'mkdir (coreutils) '* | \
3632 'mkdir (fileutils) '4.1*)
3633 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3634 break 3;;
3635 esac
3636 done
3637 done
3638done
3639IFS=$as_save_IFS
3640
3641fi
3642
3643 if test "${ac_cv_path_mkdir+set}" = set; then
3644 MKDIR_P="$ac_cv_path_mkdir -p"
3645 else
3646 # As a last resort, use the slow shell script. Don't cache a
3647 # value for MKDIR_P within a source directory, because that will
3648 # break other packages using the cache if that directory is
3649 # removed, or if the value is a relative name.
3650 test -d ./--version && rmdir ./--version
3651 MKDIR_P="$ac_install_sh -d"
3652 fi
3653fi
68f2de6d
AK
3654{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3655echo "${ECHO_T}$MKDIR_P" >&6; }
5556819a 3656
d0191583
JM
3657if test -n "$ac_tool_prefix"; then
3658 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3659set dummy ${ac_tool_prefix}ranlib; ac_word=$2
68f2de6d
AK
3660{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d0191583 3662if test "${ac_cv_prog_RANLIB+set}" = set; then
68f2de6d 3663 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
3664else
3665 if test -n "$RANLIB"; then
3666 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3667else
3668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669for as_dir in $PATH
3670do
3671 IFS=$as_save_IFS
3672 test -z "$as_dir" && as_dir=.
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3675 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
68f2de6d 3676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3677 break 2
3678 fi
3679done
3680done
3681IFS=$as_save_IFS
8106cdd5 3682
795ca3e5 3683fi
d0191583
JM
3684fi
3685RANLIB=$ac_cv_prog_RANLIB
3686if test -n "$RANLIB"; then
68f2de6d
AK
3687 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3688echo "${ECHO_T}$RANLIB" >&6; }
d0191583 3689else
68f2de6d
AK
3690 { echo "$as_me:$LINENO: result: no" >&5
3691echo "${ECHO_T}no" >&6; }
d0191583
JM
3692fi
3693
8106cdd5 3694
ad6254c5 3695fi
d0191583
JM
3696if test -z "$ac_cv_prog_RANLIB"; then
3697 ac_ct_RANLIB=$RANLIB
3698 # Extract the first word of "ranlib", so it can be a program name with args.
3699set dummy ranlib; ac_word=$2
68f2de6d
AK
3700{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d0191583 3702if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
68f2de6d 3703 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3704else
d0191583
JM
3705 if test -n "$ac_ct_RANLIB"; then
3706 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3707else
3708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709for as_dir in $PATH
8106cdd5 3710do
d0191583
JM
3711 IFS=$as_save_IFS
3712 test -z "$as_dir" && as_dir=.
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3715 ac_cv_prog_ac_ct_RANLIB="ranlib"
68f2de6d 3716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3717 break 2
3718 fi
3719done
3720done
3721IFS=$as_save_IFS
3722
3723fi
3724fi
3725ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3726if test -n "$ac_ct_RANLIB"; then
68f2de6d
AK
3727 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3728echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
ad6254c5 3729else
68f2de6d
AK
3730 { echo "$as_me:$LINENO: result: no" >&5
3731echo "${ECHO_T}no" >&6; }
d0191583 3732fi
ad6254c5 3733
d0191583
JM
3734 if test "x$ac_ct_RANLIB" = x; then
3735 RANLIB=":"
3736 else
3737 case $cross_compiling:$ac_tool_warned in
3738yes:)
68f2de6d 3739{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
d0191583
JM
3740whose name does not start with the host triplet. If you think this
3741configuration is useful to you, please write to autoconf@gnu.org." >&5
68f2de6d 3742echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
d0191583
JM
3743whose name does not start with the host triplet. If you think this
3744configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3745ac_tool_warned=yes ;;
3746esac
3747 RANLIB=$ac_ct_RANLIB
3748 fi
3749else
3750 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 3751fi
7a197a62 3752
d0191583
JM
3753# Extract the first word of "cflow", so it can be a program name with args.
3754set dummy cflow; ac_word=$2
68f2de6d
AK
3755{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d0191583 3757if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
68f2de6d 3758 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
3759else
3760 case $CFLOW_CMD in
3761 [\\/]* | ?:[\\/]*)
3762 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3763 ;;
3764 *)
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766for as_dir in $PATH
3767do
3768 IFS=$as_save_IFS
3769 test -z "$as_dir" && as_dir=.
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3772 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 3773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3774 break 2
3775 fi
3776done
3777done
3778IFS=$as_save_IFS
ad6254c5 3779
d0191583 3780 ;;
7a197a62 3781esac
d0191583
JM
3782fi
3783CFLOW_CMD=$ac_cv_path_CFLOW_CMD
3784if test -n "$CFLOW_CMD"; then
68f2de6d
AK
3785 { echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3786echo "${ECHO_T}$CFLOW_CMD" >&6; }
80992638 3787else
68f2de6d
AK
3788 { echo "$as_me:$LINENO: result: no" >&5
3789echo "${ECHO_T}no" >&6; }
795ca3e5 3790fi
7a197a62 3791
ad6254c5 3792
d0191583
JM
3793# Extract the first word of "cscope", so it can be a program name with args.
3794set dummy cscope; ac_word=$2
68f2de6d
AK
3795{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d0191583 3797if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
68f2de6d 3798 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
3799else
3800 case $CSCOPE_CMD in
3801 [\\/]* | ?:[\\/]*)
3802 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
3803 ;;
3804 *)
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806for as_dir in $PATH
3807do
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3812 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 3813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3814 break 2
3815 fi
795ca3e5 3816done
d0191583
JM
3817done
3818IFS=$as_save_IFS
795ca3e5 3819
d0191583
JM
3820 ;;
3821esac
ad6254c5 3822fi
d0191583
JM
3823CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
3824if test -n "$CSCOPE_CMD"; then
68f2de6d
AK
3825 { echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3826echo "${ECHO_T}$CSCOPE_CMD" >&6; }
795ca3e5 3827else
68f2de6d
AK
3828 { echo "$as_me:$LINENO: result: no" >&5
3829echo "${ECHO_T}no" >&6; }
795ca3e5 3830fi
ad6254c5 3831
7a197a62 3832
ad6254c5 3833
d0191583
JM
3834################################################################################
3835
3836
3837
3838
3839
3840ac_header_dirent=no
3841for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
68f2de6d
AK
3842 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3843{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3844echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
d0191583 3845if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 3846 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583 3847else
ad6254c5 3848 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3849/* confdefs.h. */
3850_ACEOF
3851cat confdefs.h >>conftest.$ac_ext
3852cat >>conftest.$ac_ext <<_ACEOF
3853/* end confdefs.h. */
d0191583
JM
3854#include <sys/types.h>
3855#include <$ac_hdr>
3856
3857int
3858main ()
3859{
3860if ((DIR *) 0)
3861return 0;
3862 ;
3863 return 0;
3864}
ad6254c5 3865_ACEOF
d0191583
JM
3866rm -f conftest.$ac_objext
3867if { (ac_try="$ac_compile"
7a197a62
AK
3868case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3871esac
68f2de6d 3872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583 3873 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
3874 ac_status=$?
3875 grep -v '^ *+' conftest.er1 >conftest.err
3876 rm -f conftest.er1
3877 cat conftest.err >&5
68f2de6d 3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3879 (exit $ac_status); } && {
3880 test -z "$ac_c_werror_flag" ||
25fbec5b 3881 test ! -s conftest.err
d0191583
JM
3882 } && test -s conftest.$ac_objext; then
3883 eval "$as_ac_Header=yes"
ad6254c5 3884else
68f2de6d 3885 echo "$as_me: failed program was:" >&5
ad6254c5 3886sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 3887
d0191583 3888 eval "$as_ac_Header=no"
795ca3e5 3889fi
7a197a62 3890
d0191583 3891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 3892fi
68f2de6d
AK
3893ac_res=`eval echo '${'$as_ac_Header'}'`
3894 { echo "$as_me:$LINENO: result: $ac_res" >&5
3895echo "${ECHO_T}$ac_res" >&6; }
3896if test `eval echo '${'$as_ac_Header'}'` = yes; then
d0191583 3897 cat >>confdefs.h <<_ACEOF
68f2de6d 3898#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 3899_ACEOF
795ca3e5 3900
d0191583
JM
3901ac_header_dirent=$ac_hdr; break
3902fi
ad6254c5 3903
d0191583
JM
3904done
3905# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3906if test $ac_header_dirent = dirent.h; then
68f2de6d
AK
3907 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3908echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
d0191583 3909if test "${ac_cv_search_opendir+set}" = set; then
68f2de6d 3910 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3911else
d0191583
JM
3912 ac_func_search_save_LIBS=$LIBS
3913cat >conftest.$ac_ext <<_ACEOF
3914/* confdefs.h. */
3915_ACEOF
3916cat confdefs.h >>conftest.$ac_ext
3917cat >>conftest.$ac_ext <<_ACEOF
3918/* end confdefs.h. */
ad6254c5 3919
d0191583
JM
3920/* Override any GCC internal prototype to avoid an error.
3921 Use char because int might match the return type of a GCC
3922 builtin and then its argument prototype would still apply. */
3923#ifdef __cplusplus
3924extern "C"
3925#endif
3926char opendir ();
3927int
3928main ()
3929{
3930return opendir ();
3931 ;
3932 return 0;
3933}
3934_ACEOF
3935for ac_lib in '' dir; do
3936 if test -z "$ac_lib"; then
3937 ac_res="none required"
3938 else
3939 ac_res=-l$ac_lib
3940 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3941 fi
3942 rm -f conftest.$ac_objext conftest$ac_exeext
3943if { (ac_try="$ac_link"
3944case "(($ac_try" in
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3947esac
68f2de6d 3948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3949 (eval "$ac_link") 2>conftest.er1
3950 ac_status=$?
3951 grep -v '^ *+' conftest.er1 >conftest.err
3952 rm -f conftest.er1
3953 cat conftest.err >&5
68f2de6d 3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3955 (exit $ac_status); } && {
3956 test -z "$ac_c_werror_flag" ||
3957 test ! -s conftest.err
68f2de6d
AK
3958 } && test -s conftest$ac_exeext &&
3959 $as_test_x conftest$ac_exeext; then
d0191583
JM
3960 ac_cv_search_opendir=$ac_res
3961else
68f2de6d 3962 echo "$as_me: failed program was:" >&5
d0191583 3963sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3964
ad6254c5 3965
795ca3e5 3966fi
ad6254c5 3967
d0191583
JM
3968rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3969 conftest$ac_exeext
3970 if test "${ac_cv_search_opendir+set}" = set; then
3971 break
7a197a62 3972fi
d0191583
JM
3973done
3974if test "${ac_cv_search_opendir+set}" = set; then
3975 :
7a197a62 3976else
d0191583 3977 ac_cv_search_opendir=no
7a197a62 3978fi
d0191583
JM
3979rm conftest.$ac_ext
3980LIBS=$ac_func_search_save_LIBS
7a197a62 3981fi
68f2de6d
AK
3982{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3983echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
d0191583
JM
3984ac_res=$ac_cv_search_opendir
3985if test "$ac_res" != no; then
3986 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 3987
d0191583 3988fi
7a197a62 3989
7a197a62 3990else
68f2de6d
AK
3991 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3992echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
d0191583 3993if test "${ac_cv_search_opendir+set}" = set; then
68f2de6d 3994 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62 3995else
d0191583
JM
3996 ac_func_search_save_LIBS=$LIBS
3997cat >conftest.$ac_ext <<_ACEOF
3998/* confdefs.h. */
3999_ACEOF
4000cat confdefs.h >>conftest.$ac_ext
4001cat >>conftest.$ac_ext <<_ACEOF
4002/* end confdefs.h. */
7a197a62 4003
d0191583
JM
4004/* Override any GCC internal prototype to avoid an error.
4005 Use char because int might match the return type of a GCC
4006 builtin and then its argument prototype would still apply. */
4007#ifdef __cplusplus
4008extern "C"
4009#endif
4010char opendir ();
4011int
4012main ()
4013{
4014return opendir ();
4015 ;
4016 return 0;
4017}
4018_ACEOF
4019for ac_lib in '' x; do
4020 if test -z "$ac_lib"; then
4021 ac_res="none required"
4022 else
4023 ac_res=-l$ac_lib
4024 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4025 fi
4026 rm -f conftest.$ac_objext conftest$ac_exeext
4027if { (ac_try="$ac_link"
4028case "(($ac_try" in
4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4031esac
68f2de6d 4032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
4033 (eval "$ac_link") 2>conftest.er1
4034 ac_status=$?
4035 grep -v '^ *+' conftest.er1 >conftest.err
4036 rm -f conftest.er1
4037 cat conftest.err >&5
68f2de6d 4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4039 (exit $ac_status); } && {
4040 test -z "$ac_c_werror_flag" ||
4041 test ! -s conftest.err
68f2de6d
AK
4042 } && test -s conftest$ac_exeext &&
4043 $as_test_x conftest$ac_exeext; then
d0191583
JM
4044 ac_cv_search_opendir=$ac_res
4045else
68f2de6d 4046 echo "$as_me: failed program was:" >&5
d0191583 4047sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4048
4049
4050fi
4051
d0191583
JM
4052rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4053 conftest$ac_exeext
4054 if test "${ac_cv_search_opendir+set}" = set; then
4055 break
7a197a62 4056fi
d0191583
JM
4057done
4058if test "${ac_cv_search_opendir+set}" = set; then
4059 :
7a197a62 4060else
d0191583 4061 ac_cv_search_opendir=no
7a197a62 4062fi
d0191583
JM
4063rm conftest.$ac_ext
4064LIBS=$ac_func_search_save_LIBS
4065fi
68f2de6d
AK
4066{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4067echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
d0191583
JM
4068ac_res=$ac_cv_search_opendir
4069if test "$ac_res" != no; then
4070 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4071
7a197a62 4072fi
7a197a62 4073
d0191583 4074fi
7a197a62 4075
68f2de6d
AK
4076{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4077echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7a197a62 4078if test "${ac_cv_header_stdc+set}" = set; then
68f2de6d 4079 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62
AK
4080else
4081 cat >conftest.$ac_ext <<_ACEOF
4082/* confdefs.h. */
4083_ACEOF
4084cat confdefs.h >>conftest.$ac_ext
4085cat >>conftest.$ac_ext <<_ACEOF
4086/* end confdefs.h. */
4087#include <stdlib.h>
4088#include <stdarg.h>
4089#include <string.h>
4090#include <float.h>
4091
4092int
4093main ()
4094{
4095
4096 ;
4097 return 0;
4098}
4099_ACEOF
4100rm -f conftest.$ac_objext
4101if { (ac_try="$ac_compile"
4102case "(($ac_try" in
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4105esac
68f2de6d 4106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62
AK
4107 (eval "$ac_compile") 2>conftest.er1
4108 ac_status=$?
4109 grep -v '^ *+' conftest.er1 >conftest.err
4110 rm -f conftest.er1
4111 cat conftest.err >&5
68f2de6d 4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4113 (exit $ac_status); } && {
4114 test -z "$ac_c_werror_flag" ||
4115 test ! -s conftest.err
4116 } && test -s conftest.$ac_objext; then
7a197a62
AK
4117 ac_cv_header_stdc=yes
4118else
68f2de6d 4119 echo "$as_me: failed program was:" >&5
7a197a62
AK
4120sed 's/^/| /' conftest.$ac_ext >&5
4121
4122 ac_cv_header_stdc=no
4123fi
4124
4125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126
4127if test $ac_cv_header_stdc = yes; then
4128 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4129 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4130/* confdefs.h. */
4131_ACEOF
4132cat confdefs.h >>conftest.$ac_ext
4133cat >>conftest.$ac_ext <<_ACEOF
4134/* end confdefs.h. */
4135#include <string.h>
8106cdd5 4136
ad6254c5
AK
4137_ACEOF
4138if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4139 $EGREP "memchr" >/dev/null 2>&1; then
4140 :
4141else
4142 ac_cv_header_stdc=no
80992638 4143fi
ad6254c5 4144rm -f conftest*
795ca3e5
AK
4145
4146fi
4147
ad6254c5
AK
4148if test $ac_cv_header_stdc = yes; then
4149 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4150 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4151/* confdefs.h. */
4152_ACEOF
4153cat confdefs.h >>conftest.$ac_ext
4154cat >>conftest.$ac_ext <<_ACEOF
4155/* end confdefs.h. */
80992638 4156#include <stdlib.h>
ad6254c5
AK
4157
4158_ACEOF
80992638 4159if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4160 $EGREP "free" >/dev/null 2>&1; then
4161 :
795ca3e5 4162else
ad6254c5 4163 ac_cv_header_stdc=no
795ca3e5 4164fi
80992638 4165rm -f conftest*
8106cdd5 4166
795ca3e5
AK
4167fi
4168
ad6254c5
AK
4169if test $ac_cv_header_stdc = yes; then
4170 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4171 if test "$cross_compiling" = yes; then
4172 :
795ca3e5 4173else
ad6254c5 4174 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4175/* confdefs.h. */
4176_ACEOF
4177cat confdefs.h >>conftest.$ac_ext
4178cat >>conftest.$ac_ext <<_ACEOF
4179/* end confdefs.h. */
4180#include <ctype.h>
7a197a62 4181#include <stdlib.h>
ad6254c5
AK
4182#if ((' ' & 0x0FF) == 0x020)
4183# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4184# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4185#else
4186# define ISLOWER(c) \
8a2fc586
AK
4187 (('a' <= (c) && (c) <= 'i') \
4188 || ('j' <= (c) && (c) <= 'r') \
4189 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4190# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4191#endif
ad6254c5
AK
4192
4193#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4194int
4195main ()
4196{
4197 int i;
4198 for (i = 0; i < 256; i++)
4199 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4200 || toupper (i) != TOUPPER (i))
7a197a62
AK
4201 return 2;
4202 return 0;
ad6254c5
AK
4203}
4204_ACEOF
4205rm -f conftest$ac_exeext
7a197a62
AK
4206if { (ac_try="$ac_link"
4207case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210esac
68f2de6d 4211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4212 (eval "$ac_link") 2>&5
ad6254c5 4213 ac_status=$?
68f2de6d 4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4216 { (case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4219esac
68f2de6d 4220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4221 (eval "$ac_try") 2>&5
ad6254c5 4222 ac_status=$?
68f2de6d 4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4224 (exit $ac_status); }; }; then
4225 :
795ca3e5 4226else
68f2de6d
AK
4227 echo "$as_me: program exited with status $ac_status" >&5
4228echo "$as_me: failed program was:" >&5
ad6254c5 4229sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4230
ad6254c5
AK
4231( exit $ac_status )
4232ac_cv_header_stdc=no
80992638 4233fi
7a197a62 4234rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4235fi
7a197a62
AK
4236
4237
ad6254c5
AK
4238fi
4239fi
68f2de6d
AK
4240{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4241echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4242if test $ac_cv_header_stdc = yes; then
4243
4244cat >>confdefs.h <<\_ACEOF
4245#define STDC_HEADERS 1
4246_ACEOF
795ca3e5
AK
4247
4248fi
4249
68f2de6d
AK
4250{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4251echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
ad6254c5 4252if test "${ac_cv_header_sys_wait_h+set}" = set; then
68f2de6d 4253 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 4254else
ad6254c5 4255 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4256/* confdefs.h. */
4257_ACEOF
4258cat confdefs.h >>conftest.$ac_ext
4259cat >>conftest.$ac_ext <<_ACEOF
4260/* end confdefs.h. */
80992638 4261#include <sys/types.h>
ad6254c5
AK
4262#include <sys/wait.h>
4263#ifndef WEXITSTATUS
7a197a62 4264# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4265#endif
4266#ifndef WIFEXITED
4267# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4268#endif
4269
4270int
4271main ()
4272{
4273 int s;
4274 wait (&s);
4275 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4276 ;
4277 return 0;
4278}
4279_ACEOF
4280rm -f conftest.$ac_objext
7a197a62
AK
4281if { (ac_try="$ac_compile"
4282case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285esac
68f2de6d 4286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4287 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4288 ac_status=$?
8a2fc586
AK
4289 grep -v '^ *+' conftest.er1 >conftest.err
4290 rm -f conftest.er1
4291 cat conftest.err >&5
68f2de6d 4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4293 (exit $ac_status); } && {
4294 test -z "$ac_c_werror_flag" ||
4295 test ! -s conftest.err
4296 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4297 ac_cv_header_sys_wait_h=yes
4298else
68f2de6d 4299 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4300sed 's/^/| /' conftest.$ac_ext >&5
4301
7a197a62 4302 ac_cv_header_sys_wait_h=no
8106cdd5 4303fi
7a197a62
AK
4304
4305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4306fi
68f2de6d
AK
4307{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4308echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4309if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4310
ad6254c5
AK
4311cat >>confdefs.h <<\_ACEOF
4312#define HAVE_SYS_WAIT_H 1
4313_ACEOF
795ca3e5
AK
4314
4315fi
4316
68f2de6d
AK
4317{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4318echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
ad6254c5 4319if test "${ac_cv_header_time+set}" = set; then
68f2de6d 4320 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 4321else
ad6254c5 4322 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4323/* confdefs.h. */
4324_ACEOF
4325cat confdefs.h >>conftest.$ac_ext
4326cat >>conftest.$ac_ext <<_ACEOF
4327/* end confdefs.h. */
795ca3e5
AK
4328#include <sys/types.h>
4329#include <sys/time.h>
4330#include <time.h>
ad6254c5
AK
4331
4332int
4333main ()
4334{
4335if ((struct tm *) 0)
4336return 0;
4337 ;
4338 return 0;
4339}
4340_ACEOF
4341rm -f conftest.$ac_objext
7a197a62
AK
4342if { (ac_try="$ac_compile"
4343case "(($ac_try" in
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4346esac
68f2de6d 4347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4348 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4349 ac_status=$?
8a2fc586
AK
4350 grep -v '^ *+' conftest.er1 >conftest.err
4351 rm -f conftest.er1
4352 cat conftest.err >&5
68f2de6d 4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4354 (exit $ac_status); } && {
4355 test -z "$ac_c_werror_flag" ||
4356 test ! -s conftest.err
4357 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4358 ac_cv_header_time=yes
4359else
68f2de6d 4360 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4361sed 's/^/| /' conftest.$ac_ext >&5
4362
7a197a62 4363 ac_cv_header_time=no
795ca3e5 4364fi
7a197a62
AK
4365
4366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4367fi
68f2de6d
AK
4368{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4369echo "${ECHO_T}$ac_cv_header_time" >&6; }
80992638 4370if test $ac_cv_header_time = yes; then
ad6254c5
AK
4371
4372cat >>confdefs.h <<\_ACEOF
795ca3e5 4373#define TIME_WITH_SYS_TIME 1
ad6254c5 4374_ACEOF
b896caa1 4375
8106cdd5 4376fi
b896caa1 4377
b896caa1 4378
d0191583
JM
4379# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4390 inttypes.h stdint.h unistd.h
4391do
68f2de6d
AK
4392as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4393{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
d0191583 4395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4396 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
4397else
4398 cat >conftest.$ac_ext <<_ACEOF
4399/* confdefs.h. */
4400_ACEOF
4401cat confdefs.h >>conftest.$ac_ext
4402cat >>conftest.$ac_ext <<_ACEOF
4403/* end confdefs.h. */
4404$ac_includes_default
4405
4406#include <$ac_header>
4407_ACEOF
4408rm -f conftest.$ac_objext
4409if { (ac_try="$ac_compile"
4410case "(($ac_try" in
4411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412 *) ac_try_echo=$ac_try;;
4413esac
68f2de6d 4414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
4415 (eval "$ac_compile") 2>conftest.er1
4416 ac_status=$?
4417 grep -v '^ *+' conftest.er1 >conftest.err
4418 rm -f conftest.er1
4419 cat conftest.err >&5
68f2de6d 4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4421 (exit $ac_status); } && {
4422 test -z "$ac_c_werror_flag" ||
4423 test ! -s conftest.err
4424 } && test -s conftest.$ac_objext; then
4425 eval "$as_ac_Header=yes"
4426else
68f2de6d 4427 echo "$as_me: failed program was:" >&5
d0191583
JM
4428sed 's/^/| /' conftest.$ac_ext >&5
4429
4430 eval "$as_ac_Header=no"
4431fi
4432
4433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4434fi
68f2de6d
AK
4435ac_res=`eval echo '${'$as_ac_Header'}'`
4436 { echo "$as_me:$LINENO: result: $ac_res" >&5
4437echo "${ECHO_T}$ac_res" >&6; }
4438if test `eval echo '${'$as_ac_Header'}'` = yes; then
d0191583 4439 cat >>confdefs.h <<_ACEOF
68f2de6d 4440#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d0191583
JM
4441_ACEOF
4442
4443fi
4444
4445done
4446
b896caa1 4447
b896caa1
AK
4448
4449
795ca3e5 4450
8106cdd5 4451
80992638 4452
795ca3e5 4453
a38df97f 4454
80992638 4455
d0191583
JM
4456
4457
4458
4459
4460
4461for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4462 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
ad6254c5 4463do
68f2de6d 4464as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0191583 4465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
4466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4469 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583 4470fi
68f2de6d
AK
4471ac_res=`eval echo '${'$as_ac_Header'}'`
4472 { echo "$as_me:$LINENO: result: $ac_res" >&5
4473echo "${ECHO_T}$ac_res" >&6; }
ad6254c5 4474else
d0191583 4475 # Is the header compilable?
68f2de6d
AK
4476{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4477echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d0191583 4478cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4479/* confdefs.h. */
4480_ACEOF
4481cat confdefs.h >>conftest.$ac_ext
4482cat >>conftest.$ac_ext <<_ACEOF
4483/* end confdefs.h. */
4484$ac_includes_default
ad6254c5
AK
4485#include <$ac_header>
4486_ACEOF
4487rm -f conftest.$ac_objext
7a197a62
AK
4488if { (ac_try="$ac_compile"
4489case "(($ac_try" in
4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4492esac
68f2de6d 4493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4494 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4495 ac_status=$?
8a2fc586
AK
4496 grep -v '^ *+' conftest.er1 >conftest.err
4497 rm -f conftest.er1
4498 cat conftest.err >&5
68f2de6d 4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4500 (exit $ac_status); } && {
4501 test -z "$ac_c_werror_flag" ||
4502 test ! -s conftest.err
4503 } && test -s conftest.$ac_objext; then
d0191583 4504 ac_header_compiler=yes
ad6254c5 4505else
68f2de6d 4506 echo "$as_me: failed program was:" >&5
ad6254c5 4507sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4508
d0191583 4509 ac_header_compiler=no
ad6254c5 4510fi
7a197a62
AK
4511
4512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
4513{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4514echo "${ECHO_T}$ac_header_compiler" >&6; }
d0191583
JM
4515
4516# Is the header present?
68f2de6d
AK
4517{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4518echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d0191583
JM
4519cat >conftest.$ac_ext <<_ACEOF
4520/* confdefs.h. */
4521_ACEOF
4522cat confdefs.h >>conftest.$ac_ext
4523cat >>conftest.$ac_ext <<_ACEOF
4524/* end confdefs.h. */
4525#include <$ac_header>
4526_ACEOF
4527if { (ac_try="$ac_cpp conftest.$ac_ext"
4528case "(($ac_try" in
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4531esac
68f2de6d 4532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
4533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4534 ac_status=$?
4535 grep -v '^ *+' conftest.er1 >conftest.err
4536 rm -f conftest.er1
4537 cat conftest.err >&5
68f2de6d 4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4539 (exit $ac_status); } >/dev/null && {
4540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4541 test ! -s conftest.err
4542 }; then
4543 ac_header_preproc=yes
4544else
68f2de6d 4545 echo "$as_me: failed program was:" >&5
d0191583
JM
4546sed 's/^/| /' conftest.$ac_ext >&5
4547
4548 ac_header_preproc=no
4549fi
4550
4551rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
4552{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4553echo "${ECHO_T}$ac_header_preproc" >&6; }
d0191583
JM
4554
4555# So? What about this header?
4556case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4557 yes:no: )
68f2de6d
AK
4558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4559echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4561echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d0191583
JM
4562 ac_header_preproc=yes
4563 ;;
4564 no:yes:* )
68f2de6d
AK
4565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4566echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4568echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4570echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4572echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4574echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4576echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4577
4578 ;;
4579esac
68f2de6d
AK
4580{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
d0191583 4582if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4583 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
4584else
4585 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4586fi
68f2de6d
AK
4587ac_res=`eval echo '${'$as_ac_Header'}'`
4588 { echo "$as_me:$LINENO: result: $ac_res" >&5
4589echo "${ECHO_T}$ac_res" >&6; }
d0191583
JM
4590
4591fi
68f2de6d 4592if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4593 cat >>confdefs.h <<_ACEOF
68f2de6d 4594#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4595_ACEOF
a38df97f 4596
d0191583 4597else
68f2de6d
AK
4598 { { echo "$as_me:$LINENO: error: bailing out" >&5
4599echo "$as_me: error: bailing out" >&2;}
d0191583 4600 { (exit 1); exit 1; }; }
80992638
AK
4601fi
4602
ad6254c5
AK
4603done
4604
7d1552c9 4605
d0191583
JM
4606case "$host_os" in
4607 linux*)
7d1552c9 4608
80992638 4609
5a52dca9 4610
d0191583 4611for ac_header in asm/byteorder.h linux/fs.h malloc.h
ad6254c5 4612do
68f2de6d 4613as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
4615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4616echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4617if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4618 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4619fi
68f2de6d
AK
4620ac_res=`eval echo '${'$as_ac_Header'}'`
4621 { echo "$as_me:$LINENO: result: $ac_res" >&5
4622echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4623else
4624 # Is the header compilable?
68f2de6d
AK
4625{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4626echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4627cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4628/* confdefs.h. */
4629_ACEOF
4630cat confdefs.h >>conftest.$ac_ext
4631cat >>conftest.$ac_ext <<_ACEOF
4632/* end confdefs.h. */
4633$ac_includes_default
4634#include <$ac_header>
4635_ACEOF
4636rm -f conftest.$ac_objext
7a197a62
AK
4637if { (ac_try="$ac_compile"
4638case "(($ac_try" in
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4641esac
68f2de6d 4642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4643 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4644 ac_status=$?
8a2fc586
AK
4645 grep -v '^ *+' conftest.er1 >conftest.err
4646 rm -f conftest.er1
4647 cat conftest.err >&5
68f2de6d 4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4649 (exit $ac_status); } && {
4650 test -z "$ac_c_werror_flag" ||
4651 test ! -s conftest.err
4652 } && test -s conftest.$ac_objext; then
fc54be10
AK
4653 ac_header_compiler=yes
4654else
68f2de6d 4655 echo "$as_me: failed program was:" >&5
fc54be10
AK
4656sed 's/^/| /' conftest.$ac_ext >&5
4657
4658 ac_header_compiler=no
4659fi
4660
4661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
4662{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4663echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4664
4665# Is the header present?
68f2de6d
AK
4666{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4667echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4668cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4669/* confdefs.h. */
4670_ACEOF
4671cat confdefs.h >>conftest.$ac_ext
4672cat >>conftest.$ac_ext <<_ACEOF
4673/* end confdefs.h. */
4674#include <$ac_header>
4675_ACEOF
7a197a62
AK
4676if { (ac_try="$ac_cpp conftest.$ac_ext"
4677case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4680esac
68f2de6d 4681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4683 ac_status=$?
4684 grep -v '^ *+' conftest.er1 >conftest.err
4685 rm -f conftest.er1
4686 cat conftest.err >&5
68f2de6d 4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4688 (exit $ac_status); } >/dev/null && {
4689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4690 test ! -s conftest.err
4691 }; then
ad6254c5
AK
4692 ac_header_preproc=yes
4693else
68f2de6d 4694 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4695sed 's/^/| /' conftest.$ac_ext >&5
4696
4697 ac_header_preproc=no
4698fi
7a197a62 4699
ad6254c5 4700rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
4701{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4702echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
4703
4704# So? What about this header?
8a2fc586
AK
4705case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4706 yes:no: )
68f2de6d
AK
4707 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4708echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4710echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4711 ac_header_preproc=yes
ad6254c5 4712 ;;
8a2fc586 4713 no:yes:* )
68f2de6d
AK
4714 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4715echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4716 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4717echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4718 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4719echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4720 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4721echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4723echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4725echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4726
ad6254c5
AK
4727 ;;
4728esac
68f2de6d
AK
4729{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4730echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4731if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4732 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4733else
8a2fc586 4734 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4735fi
68f2de6d
AK
4736ac_res=`eval echo '${'$as_ac_Header'}'`
4737 { echo "$as_me:$LINENO: result: $ac_res" >&5
4738echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4739
4740fi
68f2de6d 4741if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4742 cat >>confdefs.h <<_ACEOF
68f2de6d 4743#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4744_ACEOF
b896caa1 4745
d8ac0fbc 4746else
68f2de6d
AK
4747 { { echo "$as_me:$LINENO: error: bailing out" >&5
4748echo "$as_me: error: bailing out" >&2;}
ad6254c5 4749 { (exit 1); exit 1; }; }
80992638
AK
4750fi
4751
ad6254c5 4752done
d0191583
JM
4753 ;;
4754 darwin*)
d8ac0fbc 4755
d8ac0fbc 4756
d0191583 4757for ac_header in machine/endian.h sys/disk.h
ad6254c5 4758do
68f2de6d 4759as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4760if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
4761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4764 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4765fi
68f2de6d
AK
4766ac_res=`eval echo '${'$as_ac_Header'}'`
4767 { echo "$as_me:$LINENO: result: $ac_res" >&5
4768echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4769else
4770 # Is the header compilable?
68f2de6d
AK
4771{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4772echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4773cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4774/* confdefs.h. */
4775_ACEOF
4776cat confdefs.h >>conftest.$ac_ext
4777cat >>conftest.$ac_ext <<_ACEOF
4778/* end confdefs.h. */
4779$ac_includes_default
4780#include <$ac_header>
4781_ACEOF
4782rm -f conftest.$ac_objext
7a197a62
AK
4783if { (ac_try="$ac_compile"
4784case "(($ac_try" in
4785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4786 *) ac_try_echo=$ac_try;;
4787esac
68f2de6d 4788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4789 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4790 ac_status=$?
8a2fc586
AK
4791 grep -v '^ *+' conftest.er1 >conftest.err
4792 rm -f conftest.er1
4793 cat conftest.err >&5
68f2de6d 4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4795 (exit $ac_status); } && {
4796 test -z "$ac_c_werror_flag" ||
4797 test ! -s conftest.err
4798 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4799 ac_header_compiler=yes
4800else
68f2de6d 4801 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4802sed 's/^/| /' conftest.$ac_ext >&5
4803
7a197a62 4804 ac_header_compiler=no
ad6254c5 4805fi
7a197a62
AK
4806
4807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
4808{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4809echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4810
4811# Is the header present?
68f2de6d
AK
4812{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4813echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4814cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4815/* confdefs.h. */
4816_ACEOF
4817cat confdefs.h >>conftest.$ac_ext
4818cat >>conftest.$ac_ext <<_ACEOF
4819/* end confdefs.h. */
4820#include <$ac_header>
4821_ACEOF
7a197a62
AK
4822if { (ac_try="$ac_cpp conftest.$ac_ext"
4823case "(($ac_try" in
4824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4825 *) ac_try_echo=$ac_try;;
4826esac
68f2de6d 4827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4829 ac_status=$?
4830 grep -v '^ *+' conftest.er1 >conftest.err
4831 rm -f conftest.er1
4832 cat conftest.err >&5
68f2de6d 4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4834 (exit $ac_status); } >/dev/null && {
4835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4836 test ! -s conftest.err
4837 }; then
ad6254c5
AK
4838 ac_header_preproc=yes
4839else
68f2de6d 4840 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4841sed 's/^/| /' conftest.$ac_ext >&5
4842
4843 ac_header_preproc=no
4844fi
7a197a62 4845
ad6254c5 4846rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
4847{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4848echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
4849
4850# So? What about this header?
8a2fc586
AK
4851case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4852 yes:no: )
68f2de6d
AK
4853 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4854echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4856echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4857 ac_header_preproc=yes
ad6254c5 4858 ;;
8a2fc586 4859 no:yes:* )
68f2de6d
AK
4860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4861echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4863echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4864 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4865echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4866 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4867echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4869echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4870 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4871echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4872
ad6254c5
AK
4873 ;;
4874esac
68f2de6d
AK
4875{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4877if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4878 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4879else
8a2fc586 4880 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 4881fi
68f2de6d
AK
4882ac_res=`eval echo '${'$as_ac_Header'}'`
4883 { echo "$as_me:$LINENO: result: $ac_res" >&5
4884echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4885
4886fi
68f2de6d 4887if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4888 cat >>confdefs.h <<_ACEOF
68f2de6d 4889#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4890_ACEOF
4922197a 4891
4922197a 4892else
68f2de6d
AK
4893 { { echo "$as_me:$LINENO: error: bailing out" >&5
4894echo "$as_me: error: bailing out" >&2;}
ad6254c5 4895 { (exit 1); exit 1; }; }
80992638
AK
4896fi
4897
ad6254c5 4898done
d0191583
JM
4899 ;;
4900esac
4922197a 4901
4922197a 4902
4922197a 4903
ad6254c5
AK
4904
4905
d0191583
JM
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4919 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4920 sys/types.h unistd.h
ad6254c5 4921do
68f2de6d 4922as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4923if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
4924 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4926if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4927 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4928fi
68f2de6d
AK
4929ac_res=`eval echo '${'$as_ac_Header'}'`
4930 { echo "$as_me:$LINENO: result: $ac_res" >&5
4931echo "${ECHO_T}$ac_res" >&6; }
795ca3e5 4932else
ad6254c5 4933 # Is the header compilable?
68f2de6d
AK
4934{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4935echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4936cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4937/* confdefs.h. */
4938_ACEOF
4939cat confdefs.h >>conftest.$ac_ext
4940cat >>conftest.$ac_ext <<_ACEOF
4941/* end confdefs.h. */
4942$ac_includes_default
4943#include <$ac_header>
4944_ACEOF
4945rm -f conftest.$ac_objext
7a197a62
AK
4946if { (ac_try="$ac_compile"
4947case "(($ac_try" in
4948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949 *) ac_try_echo=$ac_try;;
4950esac
68f2de6d 4951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4952 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4953 ac_status=$?
8a2fc586
AK
4954 grep -v '^ *+' conftest.er1 >conftest.err
4955 rm -f conftest.er1
4956 cat conftest.err >&5
68f2de6d 4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4958 (exit $ac_status); } && {
4959 test -z "$ac_c_werror_flag" ||
4960 test ! -s conftest.err
4961 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4962 ac_header_compiler=yes
4963else
68f2de6d 4964 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4965sed 's/^/| /' conftest.$ac_ext >&5
4966
7a197a62 4967 ac_header_compiler=no
ad6254c5 4968fi
7a197a62
AK
4969
4970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
4971{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4972echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4973
4974# Is the header present?
68f2de6d
AK
4975{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4976echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4977cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4978/* confdefs.h. */
4979_ACEOF
4980cat confdefs.h >>conftest.$ac_ext
4981cat >>conftest.$ac_ext <<_ACEOF
4982/* end confdefs.h. */
4983#include <$ac_header>
4984_ACEOF
7a197a62
AK
4985if { (ac_try="$ac_cpp conftest.$ac_ext"
4986case "(($ac_try" in
4987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4988 *) ac_try_echo=$ac_try;;
4989esac
68f2de6d 4990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4992 ac_status=$?
4993 grep -v '^ *+' conftest.er1 >conftest.err
4994 rm -f conftest.er1
4995 cat conftest.err >&5
68f2de6d 4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4997 (exit $ac_status); } >/dev/null && {
4998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4999 test ! -s conftest.err
5000 }; then
ad6254c5
AK
5001 ac_header_preproc=yes
5002else
68f2de6d 5003 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5004sed 's/^/| /' conftest.$ac_ext >&5
5005
5006 ac_header_preproc=no
5007fi
7a197a62 5008
ad6254c5 5009rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
5010{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5011echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
5012
5013# So? What about this header?
8a2fc586
AK
5014case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5015 yes:no: )
68f2de6d
AK
5016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5017echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5019echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5020 ac_header_preproc=yes
ad6254c5 5021 ;;
8a2fc586 5022 no:yes:* )
68f2de6d
AK
5023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5024echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5026echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5027 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5028echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5029 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5030echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5032echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5033 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5034echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5035
ad6254c5
AK
5036 ;;
5037esac
68f2de6d
AK
5038{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 5040if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 5041 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5042else
8a2fc586 5043 eval "$as_ac_Header=\$ac_header_preproc"
80992638 5044fi
68f2de6d
AK
5045ac_res=`eval echo '${'$as_ac_Header'}'`
5046 { echo "$as_me:$LINENO: result: $ac_res" >&5
5047echo "${ECHO_T}$ac_res" >&6; }
80992638 5048
ad6254c5 5049fi
68f2de6d 5050if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 5051 cat >>confdefs.h <<_ACEOF
68f2de6d 5052#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5053_ACEOF
795ca3e5 5054
795ca3e5 5055else
68f2de6d
AK
5056 { { echo "$as_me:$LINENO: error: bailing out" >&5
5057echo "$as_me: error: bailing out" >&2;}
ad6254c5 5058 { (exit 1); exit 1; }; }
80992638
AK
5059fi
5060
ad6254c5 5061done
ad6254c5 5062
795ca3e5 5063
d0191583
JM
5064
5065for ac_header in termios.h sys/statvfs.h
ad6254c5 5066do
68f2de6d 5067as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5068if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
5069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 5071if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 5072 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5073fi
68f2de6d
AK
5074ac_res=`eval echo '${'$as_ac_Header'}'`
5075 { echo "$as_me:$LINENO: result: $ac_res" >&5
5076echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
5077else
5078 # Is the header compilable?
68f2de6d
AK
5079{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5080echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 5081cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5082/* confdefs.h. */
5083_ACEOF
5084cat confdefs.h >>conftest.$ac_ext
5085cat >>conftest.$ac_ext <<_ACEOF
5086/* end confdefs.h. */
5087$ac_includes_default
5088#include <$ac_header>
5089_ACEOF
5090rm -f conftest.$ac_objext
7a197a62
AK
5091if { (ac_try="$ac_compile"
5092case "(($ac_try" in
5093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5094 *) ac_try_echo=$ac_try;;
5095esac
68f2de6d 5096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5097 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5098 ac_status=$?
8a2fc586
AK
5099 grep -v '^ *+' conftest.er1 >conftest.err
5100 rm -f conftest.er1
5101 cat conftest.err >&5
68f2de6d 5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5103 (exit $ac_status); } && {
5104 test -z "$ac_c_werror_flag" ||
5105 test ! -s conftest.err
5106 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5107 ac_header_compiler=yes
5108else
68f2de6d 5109 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5110sed 's/^/| /' conftest.$ac_ext >&5
5111
7a197a62 5112 ac_header_compiler=no
ad6254c5 5113fi
7a197a62
AK
5114
5115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
5116{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5117echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
5118
5119# Is the header present?
68f2de6d
AK
5120{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5121echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 5122cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5123/* confdefs.h. */
5124_ACEOF
5125cat confdefs.h >>conftest.$ac_ext
5126cat >>conftest.$ac_ext <<_ACEOF
5127/* end confdefs.h. */
5128#include <$ac_header>
5129_ACEOF
7a197a62
AK
5130if { (ac_try="$ac_cpp conftest.$ac_ext"
5131case "(($ac_try" in
5132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5133 *) ac_try_echo=$ac_try;;
5134esac
68f2de6d 5135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5137 ac_status=$?
5138 grep -v '^ *+' conftest.er1 >conftest.err
5139 rm -f conftest.er1
5140 cat conftest.err >&5
68f2de6d 5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5142 (exit $ac_status); } >/dev/null && {
5143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5144 test ! -s conftest.err
5145 }; then
ad6254c5
AK
5146 ac_header_preproc=yes
5147else
68f2de6d 5148 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5149sed 's/^/| /' conftest.$ac_ext >&5
5150
5151 ac_header_preproc=no
5152fi
7a197a62 5153
ad6254c5 5154rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
5155{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5156echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
5157
5158# So? What about this header?
8a2fc586
AK
5159case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5160 yes:no: )
68f2de6d
AK
5161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5162echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5164echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5165 ac_header_preproc=yes
ad6254c5 5166 ;;
8a2fc586 5167 no:yes:* )
68f2de6d
AK
5168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5169echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5171echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5173echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5175echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5177echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5179echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5180
ad6254c5
AK
5181 ;;
5182esac
68f2de6d
AK
5183{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5184echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 5185if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 5186 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5187else
8a2fc586 5188 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5189fi
68f2de6d
AK
5190ac_res=`eval echo '${'$as_ac_Header'}'`
5191 { echo "$as_me:$LINENO: result: $ac_res" >&5
5192echo "${ECHO_T}$ac_res" >&6; }
b896caa1 5193
ad6254c5 5194fi
68f2de6d 5195if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 5196 cat >>confdefs.h <<_ACEOF
68f2de6d 5197#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5198_ACEOF
5199
80992638
AK
5200fi
5201
ad6254c5 5202done
d0191583 5203
d3c8211f 5204
80992638 5205################################################################################
68f2de6d
AK
5206{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5207echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
ad6254c5 5208if test "${ac_cv_c_const+set}" = set; then
68f2de6d 5209 echo $ECHO_N "(cached) $ECHO_C" >&6
d3c8211f 5210else
ad6254c5 5211 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5212/* confdefs.h. */
5213_ACEOF
5214cat confdefs.h >>conftest.$ac_ext
5215cat >>conftest.$ac_ext <<_ACEOF
5216/* end confdefs.h. */
5217
5218int
5219main ()
5220{
5221/* FIXME: Include the comments suggested by Paul. */
5222#ifndef __cplusplus
5223 /* Ultrix mips cc rejects this. */
5224 typedef int charset[2];
25fbec5b 5225 const charset cs;
ad6254c5 5226 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
5227 char const *const *pcpcc;
5228 char **ppc;
ad6254c5
AK
5229 /* NEC SVR4.0.2 mips cc rejects this. */
5230 struct point {int x, y;};
5231 static struct point const zero = {0,0};
5232 /* AIX XL C 1.02.0.0 rejects this.
5233 It does not let you subtract one const X* pointer from another in
5234 an arm of an if-expression whose if-part is not a constant
5235 expression */
5236 const char *g = "string";
25fbec5b 5237 pcpcc = &g + (g ? g-g : 0);
ad6254c5 5238 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
5239 ++pcpcc;
5240 ppc = (char**) pcpcc;
5241 pcpcc = (char const *const *) ppc;
ad6254c5
AK
5242 { /* SCO 3.2v4 cc rejects this. */
5243 char *t;
5244 char const *s = 0 ? (char *) 0 : (char const *) 0;
5245
5246 *t++ = 0;
7a197a62 5247 if (s) return 0;
ad6254c5
AK
5248 }
5249 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5250 int x[] = {25, 17};
5251 const int *foo = &x[0];
5252 ++foo;
5253 }
5254 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5255 typedef const int *iptr;
5256 iptr p = 0;
5257 ++p;
5258 }
5259 { /* AIX XL C 1.02.0.0 rejects this saying
5260 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5261 struct s { int j; const int *ap[3]; };
5262 struct s *b; b->j = 5;
5263 }
5264 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5265 const int foo = 10;
7a197a62 5266 if (!foo) return 0;
ad6254c5 5267 }
25fbec5b 5268 return !cs[0] && !zero.x;
ad6254c5
AK
5269#endif
5270
5271 ;
5272 return 0;
5273}
5274_ACEOF
5275rm -f conftest.$ac_objext
7a197a62
AK
5276if { (ac_try="$ac_compile"
5277case "(($ac_try" in
5278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5279 *) ac_try_echo=$ac_try;;
5280esac
68f2de6d 5281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5282 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5283 ac_status=$?
8a2fc586
AK
5284 grep -v '^ *+' conftest.er1 >conftest.err
5285 rm -f conftest.er1
5286 cat conftest.err >&5
68f2de6d 5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5288 (exit $ac_status); } && {
5289 test -z "$ac_c_werror_flag" ||
5290 test ! -s conftest.err
5291 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5292 ac_cv_c_const=yes
5293else
68f2de6d 5294 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5295sed 's/^/| /' conftest.$ac_ext >&5
5296
7a197a62 5297 ac_cv_c_const=no
ad6254c5 5298fi
7a197a62
AK
5299
5300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5301fi
68f2de6d
AK
5302{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5303echo "${ECHO_T}$ac_cv_c_const" >&6; }
ad6254c5 5304if test $ac_cv_c_const = no; then
80992638 5305
ad6254c5 5306cat >>confdefs.h <<\_ACEOF
68f2de6d 5307#define const
ad6254c5 5308_ACEOF
80992638 5309
d3c8211f 5310fi
d3c8211f 5311
68f2de6d
AK
5312{ echo "$as_me:$LINENO: checking for inline" >&5
5313echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
ad6254c5 5314if test "${ac_cv_c_inline+set}" = set; then
68f2de6d 5315 echo $ECHO_N "(cached) $ECHO_C" >&6
8ef2b021 5316else
ad6254c5
AK
5317 ac_cv_c_inline=no
5318for ac_kw in inline __inline__ __inline; do
5319 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5320/* confdefs.h. */
5321_ACEOF
5322cat confdefs.h >>conftest.$ac_ext
5323cat >>conftest.$ac_ext <<_ACEOF
5324/* end confdefs.h. */
5325#ifndef __cplusplus
5326typedef int foo_t;
5327static $ac_kw foo_t static_foo () {return 0; }
5328$ac_kw foo_t foo () {return 0; }
5329#endif
80992638 5330
ad6254c5
AK
5331_ACEOF
5332rm -f conftest.$ac_objext
7a197a62
AK
5333if { (ac_try="$ac_compile"
5334case "(($ac_try" in
5335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336 *) ac_try_echo=$ac_try;;
5337esac
68f2de6d 5338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5339 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5340 ac_status=$?
8a2fc586
AK
5341 grep -v '^ *+' conftest.er1 >conftest.err
5342 rm -f conftest.er1
5343 cat conftest.err >&5
68f2de6d 5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5345 (exit $ac_status); } && {
5346 test -z "$ac_c_werror_flag" ||
5347 test ! -s conftest.err
5348 } && test -s conftest.$ac_objext; then
7a197a62 5349 ac_cv_c_inline=$ac_kw
ad6254c5 5350else
68f2de6d 5351 echo "$as_me: failed program was:" >&5
ad6254c5 5352sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5353
7a197a62 5354
8ce0cbda 5355fi
7a197a62
AK
5356
5357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 test "$ac_cv_c_inline" != no && break
ad6254c5 5359done
8ce0cbda 5360
8ce0cbda 5361fi
68f2de6d
AK
5362{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5363echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8a2fc586
AK
5364
5365
ad6254c5
AK
5366case $ac_cv_c_inline in
5367 inline | yes) ;;
8a2fc586
AK
5368 *)
5369 case $ac_cv_c_inline in
5370 no) ac_val=;;
5371 *) ac_val=$ac_cv_c_inline;;
5372 esac
5373 cat >>confdefs.h <<_ACEOF
5374#ifndef __cplusplus
5375#define inline $ac_val
5376#endif
c1c065a3 5377_ACEOF
d0191583
JM
5378 ;;
5379esac
5380
68f2de6d
AK
5381{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5382echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
d0191583 5383if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
68f2de6d 5384 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
5385else
5386 cat >conftest.$ac_ext <<_ACEOF
5387/* confdefs.h. */
5388_ACEOF
5389cat confdefs.h >>conftest.$ac_ext
5390cat >>conftest.$ac_ext <<_ACEOF
5391/* end confdefs.h. */
5392$ac_includes_default
5393int
5394main ()
5395{
5396static struct stat ac_aggr;
5397if (ac_aggr.st_rdev)
5398return 0;
5399 ;
5400 return 0;
5401}
5402_ACEOF
5403rm -f conftest.$ac_objext
5404if { (ac_try="$ac_compile"
5405case "(($ac_try" in
5406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5407 *) ac_try_echo=$ac_try;;
5408esac
68f2de6d 5409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
5410 (eval "$ac_compile") 2>conftest.er1
5411 ac_status=$?
5412 grep -v '^ *+' conftest.er1 >conftest.err
5413 rm -f conftest.er1
5414 cat conftest.err >&5
68f2de6d 5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5416 (exit $ac_status); } && {
5417 test -z "$ac_c_werror_flag" ||
5418 test ! -s conftest.err
5419 } && test -s conftest.$ac_objext; then
5420 ac_cv_member_struct_stat_st_rdev=yes
5421else
68f2de6d 5422 echo "$as_me: failed program was:" >&5
d0191583
JM
5423sed 's/^/| /' conftest.$ac_ext >&5
5424
5425 cat >conftest.$ac_ext <<_ACEOF
5426/* confdefs.h. */
5427_ACEOF
5428cat confdefs.h >>conftest.$ac_ext
5429cat >>conftest.$ac_ext <<_ACEOF
5430/* end confdefs.h. */
5431$ac_includes_default
5432int
5433main ()
5434{
5435static struct stat ac_aggr;
5436if (sizeof ac_aggr.st_rdev)
5437return 0;
5438 ;
5439 return 0;
5440}
5441_ACEOF
5442rm -f conftest.$ac_objext
5443if { (ac_try="$ac_compile"
5444case "(($ac_try" in
5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5447esac
68f2de6d 5448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
5449 (eval "$ac_compile") 2>conftest.er1
5450 ac_status=$?
5451 grep -v '^ *+' conftest.er1 >conftest.err
5452 rm -f conftest.er1
5453 cat conftest.err >&5
68f2de6d 5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5455 (exit $ac_status); } && {
5456 test -z "$ac_c_werror_flag" ||
5457 test ! -s conftest.err
5458 } && test -s conftest.$ac_objext; then
5459 ac_cv_member_struct_stat_st_rdev=yes
5460else
68f2de6d 5461 echo "$as_me: failed program was:" >&5
d0191583
JM
5462sed 's/^/| /' conftest.$ac_ext >&5
5463
5464 ac_cv_member_struct_stat_st_rdev=no
5465fi
5466
5467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5468fi
5469
5470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471fi
68f2de6d
AK
5472{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5473echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
d0191583
JM
5474if test $ac_cv_member_struct_stat_st_rdev = yes; then
5475
5476cat >>confdefs.h <<_ACEOF
5477#define HAVE_STRUCT_STAT_ST_RDEV 1
5478_ACEOF
5479
5480
5481fi
8ce0cbda 5482
68f2de6d
AK
5483{ echo "$as_me:$LINENO: checking for off_t" >&5
5484echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
ad6254c5 5485if test "${ac_cv_type_off_t+set}" = set; then
68f2de6d 5486 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5487else
b145d876
ZK
5488 cat >conftest.$ac_ext <<_ACEOF
5489/* confdefs.h. */
5490_ACEOF
5491cat confdefs.h >>conftest.$ac_ext
5492cat >>conftest.$ac_ext <<_ACEOF
5493/* end confdefs.h. */
5494$ac_includes_default
68f2de6d 5495typedef off_t ac__type_new_;
b145d876
ZK
5496int
5497main ()
5498{
68f2de6d
AK
5499if ((ac__type_new_ *) 0)
5500 return 0;
5501if (sizeof (ac__type_new_))
5502 return 0;
ad6254c5
AK
5503 ;
5504 return 0;
5505}
5506_ACEOF
5507rm -f conftest.$ac_objext
7a197a62
AK
5508if { (ac_try="$ac_compile"
5509case "(($ac_try" in
5510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5511 *) ac_try_echo=$ac_try;;
5512esac
68f2de6d 5513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5514 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5515 ac_status=$?
8a2fc586
AK
5516 grep -v '^ *+' conftest.er1 >conftest.err
5517 rm -f conftest.er1
5518 cat conftest.err >&5
68f2de6d 5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5520 (exit $ac_status); } && {
5521 test -z "$ac_c_werror_flag" ||
5522 test ! -s conftest.err
5523 } && test -s conftest.$ac_objext; then
68f2de6d 5524 ac_cv_type_off_t=yes
b145d876 5525else
68f2de6d 5526 echo "$as_me: failed program was:" >&5
b145d876
ZK
5527sed 's/^/| /' conftest.$ac_ext >&5
5528
68f2de6d 5529 ac_cv_type_off_t=no
ad6254c5 5530fi
b145d876
ZK
5531
5532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5533fi
68f2de6d
AK
5534{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5535echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
ad6254c5
AK
5536if test $ac_cv_type_off_t = yes; then
5537 :
5538else
80992638 5539
ad6254c5 5540cat >>confdefs.h <<_ACEOF
7a197a62 5541#define off_t long int
ad6254c5 5542_ACEOF
199e490e 5543
b896caa1
AK
5544fi
5545
68f2de6d
AK
5546{ echo "$as_me:$LINENO: checking for pid_t" >&5
5547echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
ad6254c5 5548if test "${ac_cv_type_pid_t+set}" = set; then
68f2de6d 5549 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5550else
b145d876
ZK
5551 cat >conftest.$ac_ext <<_ACEOF
5552/* confdefs.h. */
5553_ACEOF
5554cat confdefs.h >>conftest.$ac_ext
5555cat >>conftest.$ac_ext <<_ACEOF
5556/* end confdefs.h. */
5557$ac_includes_default
68f2de6d 5558typedef pid_t ac__type_new_;
b145d876
ZK
5559int
5560main ()
5561{
68f2de6d
AK
5562if ((ac__type_new_ *) 0)
5563 return 0;
5564if (sizeof (ac__type_new_))
5565 return 0;
ad6254c5
AK
5566 ;
5567 return 0;
5568}
5569_ACEOF
5570rm -f conftest.$ac_objext
7a197a62
AK
5571if { (ac_try="$ac_compile"
5572case "(($ac_try" in
5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574 *) ac_try_echo=$ac_try;;
5575esac
68f2de6d 5576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5577 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5578 ac_status=$?
8a2fc586
AK
5579 grep -v '^ *+' conftest.er1 >conftest.err
5580 rm -f conftest.er1
5581 cat conftest.err >&5
68f2de6d 5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5583 (exit $ac_status); } && {
5584 test -z "$ac_c_werror_flag" ||
5585 test ! -s conftest.err
5586 } && test -s conftest.$ac_objext; then
68f2de6d 5587 ac_cv_type_pid_t=yes
ad6254c5 5588else
68f2de6d 5589 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5590sed 's/^/| /' conftest.$ac_ext >&5
5591
68f2de6d 5592 ac_cv_type_pid_t=no
ad6254c5 5593fi
7a197a62
AK
5594
5595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5596fi
68f2de6d
AK
5597{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5598echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
ad6254c5
AK
5599if test $ac_cv_type_pid_t = yes; then
5600 :
5601else
80992638 5602
ad6254c5
AK
5603cat >>confdefs.h <<_ACEOF
5604#define pid_t int
5605_ACEOF
2dc95e1c 5606
2dc95e1c
AK
5607fi
5608
68f2de6d
AK
5609{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5610echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
d0191583 5611if test "${ac_cv_type_signal+set}" = set; then
68f2de6d 5612 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
5613else
5614 cat >conftest.$ac_ext <<_ACEOF
5615/* confdefs.h. */
5616_ACEOF
5617cat confdefs.h >>conftest.$ac_ext
5618cat >>conftest.$ac_ext <<_ACEOF
5619/* end confdefs.h. */
5620#include <sys/types.h>
5621#include <signal.h>
5622
5623int
5624main ()
5625{
5626return *(signal (0, 0)) (0) == 1;
5627 ;
5628 return 0;
5629}
5630_ACEOF
5631rm -f conftest.$ac_objext
5632if { (ac_try="$ac_compile"
5633case "(($ac_try" in
5634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5636esac
68f2de6d 5637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
5638 (eval "$ac_compile") 2>conftest.er1
5639 ac_status=$?
5640 grep -v '^ *+' conftest.er1 >conftest.err
5641 rm -f conftest.er1
5642 cat conftest.err >&5
68f2de6d 5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5644 (exit $ac_status); } && {
5645 test -z "$ac_c_werror_flag" ||
5646 test ! -s conftest.err
5647 } && test -s conftest.$ac_objext; then
5648 ac_cv_type_signal=int
5649else
68f2de6d 5650 echo "$as_me: failed program was:" >&5
d0191583
JM
5651sed 's/^/| /' conftest.$ac_ext >&5
5652
5653 ac_cv_type_signal=void
5654fi
5655
5656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5657fi
68f2de6d
AK
5658{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5659echo "${ECHO_T}$ac_cv_type_signal" >&6; }
d0191583
JM
5660
5661cat >>confdefs.h <<_ACEOF
5662#define RETSIGTYPE $ac_cv_type_signal
5663_ACEOF
5664
5665
68f2de6d
AK
5666{ echo "$as_me:$LINENO: checking for size_t" >&5
5667echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
ad6254c5 5668if test "${ac_cv_type_size_t+set}" = set; then
68f2de6d 5669 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 5670else
b145d876
ZK
5671 cat >conftest.$ac_ext <<_ACEOF
5672/* confdefs.h. */
5673_ACEOF
5674cat confdefs.h >>conftest.$ac_ext
5675cat >>conftest.$ac_ext <<_ACEOF
5676/* end confdefs.h. */
5677$ac_includes_default
68f2de6d 5678typedef size_t ac__type_new_;
b145d876
ZK
5679int
5680main ()
5681{
68f2de6d
AK
5682if ((ac__type_new_ *) 0)
5683 return 0;
5684if (sizeof (ac__type_new_))
5685 return 0;
ad6254c5
AK
5686 ;
5687 return 0;
5688}
5689_ACEOF
5690rm -f conftest.$ac_objext
7a197a62
AK
5691if { (ac_try="$ac_compile"
5692case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5695esac
68f2de6d 5696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5697 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5698 ac_status=$?
8a2fc586
AK
5699 grep -v '^ *+' conftest.er1 >conftest.err
5700 rm -f conftest.er1
5701 cat conftest.err >&5
68f2de6d 5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5703 (exit $ac_status); } && {
5704 test -z "$ac_c_werror_flag" ||
5705 test ! -s conftest.err
5706 } && test -s conftest.$ac_objext; then
68f2de6d 5707 ac_cv_type_size_t=yes
b145d876 5708else
68f2de6d 5709 echo "$as_me: failed program was:" >&5
b145d876
ZK
5710sed 's/^/| /' conftest.$ac_ext >&5
5711
68f2de6d 5712 ac_cv_type_size_t=no
ad6254c5 5713fi
b145d876
ZK
5714
5715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5716fi
68f2de6d
AK
5717{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5718echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
ad6254c5
AK
5719if test $ac_cv_type_size_t = yes; then
5720 :
5721else
80992638 5722
ad6254c5 5723cat >>confdefs.h <<_ACEOF
7a197a62 5724#define size_t unsigned int
ad6254c5 5725_ACEOF
8106cdd5 5726
8106cdd5
AK
5727fi
5728
68f2de6d
AK
5729{ echo "$as_me:$LINENO: checking for mode_t" >&5
5730echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
ad6254c5 5731if test "${ac_cv_type_mode_t+set}" = set; then
68f2de6d 5732 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5733else
b145d876
ZK
5734 cat >conftest.$ac_ext <<_ACEOF
5735/* confdefs.h. */
5736_ACEOF
5737cat confdefs.h >>conftest.$ac_ext
5738cat >>conftest.$ac_ext <<_ACEOF
5739/* end confdefs.h. */
5740$ac_includes_default
68f2de6d 5741typedef mode_t ac__type_new_;
b145d876
ZK
5742int
5743main ()
5744{
68f2de6d
AK
5745if ((ac__type_new_ *) 0)
5746 return 0;
5747if (sizeof (ac__type_new_))
5748 return 0;
ad6254c5
AK
5749 ;
5750 return 0;
5751}
5752_ACEOF
5753rm -f conftest.$ac_objext
7a197a62
AK
5754if { (ac_try="$ac_compile"
5755case "(($ac_try" in
5756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757 *) ac_try_echo=$ac_try;;
5758esac
68f2de6d 5759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5760 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5761 ac_status=$?
8a2fc586
AK
5762 grep -v '^ *+' conftest.er1 >conftest.err
5763 rm -f conftest.er1
5764 cat conftest.err >&5
68f2de6d 5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5766 (exit $ac_status); } && {
5767 test -z "$ac_c_werror_flag" ||
5768 test ! -s conftest.err
5769 } && test -s conftest.$ac_objext; then
68f2de6d 5770 ac_cv_type_mode_t=yes
fddafd51 5771else
68f2de6d 5772 echo "$as_me: failed program was:" >&5
fddafd51
ZK
5773sed 's/^/| /' conftest.$ac_ext >&5
5774
68f2de6d 5775 ac_cv_type_mode_t=no
80992638 5776fi
7a197a62
AK
5777
5778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5779fi
68f2de6d
AK
5780{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5781echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
ad6254c5
AK
5782if test $ac_cv_type_mode_t = yes; then
5783 :
5784else
80992638 5785
ad6254c5
AK
5786cat >>confdefs.h <<_ACEOF
5787#define mode_t int
5788_ACEOF
5789
5790fi
5791
68f2de6d
AK
5792{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5793echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
ad6254c5 5794if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
68f2de6d 5795 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5796else
5797 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5798/* confdefs.h. */
5799_ACEOF
5800cat confdefs.h >>conftest.$ac_ext
5801cat >>conftest.$ac_ext <<_ACEOF
5802/* end confdefs.h. */
5803$ac_includes_default
5804int
5805main ()
5806{
5807static struct stat ac_aggr;
5808if (ac_aggr.st_rdev)
5809return 0;
5810 ;
5811 return 0;
5812}
5813_ACEOF
5814rm -f conftest.$ac_objext
7a197a62
AK
5815if { (ac_try="$ac_compile"
5816case "(($ac_try" in
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5819esac
68f2de6d 5820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5821 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5822 ac_status=$?
8a2fc586
AK
5823 grep -v '^ *+' conftest.er1 >conftest.err
5824 rm -f conftest.er1
5825 cat conftest.err >&5
68f2de6d 5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5827 (exit $ac_status); } && {
5828 test -z "$ac_c_werror_flag" ||
5829 test ! -s conftest.err
5830 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5831 ac_cv_member_struct_stat_st_rdev=yes
5832else
68f2de6d 5833 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5834sed 's/^/| /' conftest.$ac_ext >&5
5835
7a197a62 5836 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5837/* confdefs.h. */
5838_ACEOF
5839cat confdefs.h >>conftest.$ac_ext
5840cat >>conftest.$ac_ext <<_ACEOF
5841/* end confdefs.h. */
5842$ac_includes_default
5843int
5844main ()
5845{
5846static struct stat ac_aggr;
5847if (sizeof ac_aggr.st_rdev)
5848return 0;
5849 ;
5850 return 0;
5851}
5852_ACEOF
5853rm -f conftest.$ac_objext
7a197a62
AK
5854if { (ac_try="$ac_compile"
5855case "(($ac_try" in
5856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857 *) ac_try_echo=$ac_try;;
5858esac
68f2de6d 5859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5860 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5861 ac_status=$?
8a2fc586
AK
5862 grep -v '^ *+' conftest.er1 >conftest.err
5863 rm -f conftest.er1
5864 cat conftest.err >&5
68f2de6d 5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5866 (exit $ac_status); } && {
5867 test -z "$ac_c_werror_flag" ||
5868 test ! -s conftest.err
5869 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5870 ac_cv_member_struct_stat_st_rdev=yes
5871else
68f2de6d 5872 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5873sed 's/^/| /' conftest.$ac_ext >&5
5874
7a197a62 5875 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 5876fi
7a197a62
AK
5877
5878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5879fi
7a197a62
AK
5880
5881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5882fi
68f2de6d
AK
5883{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5884echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
ad6254c5
AK
5885if test $ac_cv_member_struct_stat_st_rdev = yes; then
5886
5887cat >>confdefs.h <<_ACEOF
5888#define HAVE_STRUCT_STAT_ST_RDEV 1
5889_ACEOF
5890
5891
ad6254c5
AK
5892fi
5893
68f2de6d
AK
5894{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5895echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
ad6254c5 5896if test "${ac_cv_struct_tm+set}" = set; then
68f2de6d 5897 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5898else
5899 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5900/* confdefs.h. */
5901_ACEOF
5902cat confdefs.h >>conftest.$ac_ext
5903cat >>conftest.$ac_ext <<_ACEOF
5904/* end confdefs.h. */
5905#include <sys/types.h>
5906#include <time.h>
5907
5908int
5909main ()
5910{
25fbec5b
AK
5911struct tm tm;
5912 int *p = &tm.tm_sec;
68f2de6d 5913 return !p;
ad6254c5
AK
5914 ;
5915 return 0;
5916}
5917_ACEOF
5918rm -f conftest.$ac_objext
7a197a62
AK
5919if { (ac_try="$ac_compile"
5920case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5923esac
68f2de6d 5924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5925 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5926 ac_status=$?
8a2fc586
AK
5927 grep -v '^ *+' conftest.er1 >conftest.err
5928 rm -f conftest.er1
5929 cat conftest.err >&5
68f2de6d 5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5931 (exit $ac_status); } && {
5932 test -z "$ac_c_werror_flag" ||
5933 test ! -s conftest.err
5934 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5935 ac_cv_struct_tm=time.h
5936else
68f2de6d 5937 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5938sed 's/^/| /' conftest.$ac_ext >&5
5939
7a197a62 5940 ac_cv_struct_tm=sys/time.h
ad6254c5 5941fi
7a197a62
AK
5942
5943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5944fi
68f2de6d
AK
5945{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5946echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
ad6254c5
AK
5947if test $ac_cv_struct_tm = sys/time.h; then
5948
5949cat >>confdefs.h <<\_ACEOF
5950#define TM_IN_SYS_TIME 1
5951_ACEOF
5952
5953fi
809fae91 5954
795ca3e5 5955
80992638 5956################################################################################
ad6254c5
AK
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
d0191583
JM
5971
5972
5973
5974for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
5975 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
5976 uname
ad6254c5 5977do
68f2de6d
AK
5978as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5979{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5980echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 5981if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 5982 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 5983else
ad6254c5 5984 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5985/* confdefs.h. */
5986_ACEOF
5987cat confdefs.h >>conftest.$ac_ext
5988cat >>conftest.$ac_ext <<_ACEOF
5989/* end confdefs.h. */
8a2fc586
AK
5990/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5992#define $ac_func innocuous_$ac_func
5993
ad6254c5
AK
5994/* System header to define __stub macros and hopefully few prototypes,
5995 which can conflict with char $ac_func (); below.
5996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5997 <limits.h> exists even on freestanding compilers. */
8a2fc586 5998
ad6254c5
AK
5999#ifdef __STDC__
6000# include <limits.h>
6001#else
6002# include <assert.h>
6003#endif
8a2fc586
AK
6004
6005#undef $ac_func
6006
7a197a62
AK
6007/* Override any GCC internal prototype to avoid an error.
6008 Use char because int might match the return type of a GCC
6009 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6010#ifdef __cplusplus
6011extern "C"
ad6254c5 6012#endif
ad6254c5
AK
6013char $ac_func ();
6014/* The GNU C library defines this for functions which it implements
6015 to always fail with ENOSYS. Some functions are actually named
6016 something starting with __ and the normal name is an alias. */
7a197a62 6017#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6018choke me
ad6254c5
AK
6019#endif
6020
6021int
6022main ()
6023{
7a197a62 6024return $ac_func ();
ad6254c5
AK
6025 ;
6026 return 0;
6027}
6028_ACEOF
6029rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6030if { (ac_try="$ac_link"
6031case "(($ac_try" in
6032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033 *) ac_try_echo=$ac_try;;
6034esac
68f2de6d 6035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6036 (eval "$ac_link") 2>conftest.er1
ad6254c5 6037 ac_status=$?
8a2fc586
AK
6038 grep -v '^ *+' conftest.er1 >conftest.err
6039 rm -f conftest.er1
6040 cat conftest.err >&5
68f2de6d 6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6042 (exit $ac_status); } && {
6043 test -z "$ac_c_werror_flag" ||
6044 test ! -s conftest.err
68f2de6d
AK
6045 } && test -s conftest$ac_exeext &&
6046 $as_test_x conftest$ac_exeext; then
fc54be10
AK
6047 eval "$as_ac_var=yes"
6048else
68f2de6d 6049 echo "$as_me: failed program was:" >&5
fc54be10
AK
6050sed 's/^/| /' conftest.$ac_ext >&5
6051
6052 eval "$as_ac_var=no"
6053fi
6054
25fbec5b 6055rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
6056 conftest$ac_exeext conftest.$ac_ext
6057fi
68f2de6d
AK
6058ac_res=`eval echo '${'$as_ac_var'}'`
6059 { echo "$as_me:$LINENO: result: $ac_res" >&5
6060echo "${ECHO_T}$ac_res" >&6; }
6061if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 6062 cat >>confdefs.h <<_ACEOF
68f2de6d 6063#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6064_ACEOF
6065
6066else
68f2de6d
AK
6067 { { echo "$as_me:$LINENO: error: bailing out" >&5
6068echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
6069 { (exit 1); exit 1; }; }
6070fi
6071done
795ca3e5 6072
ad6254c5
AK
6073# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6074# for constant arguments. Useless!
68f2de6d
AK
6075{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
6076echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
ad6254c5 6077if test "${ac_cv_working_alloca_h+set}" = set; then
68f2de6d 6078 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6079else
6080 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6081/* confdefs.h. */
6082_ACEOF
6083cat confdefs.h >>conftest.$ac_ext
6084cat >>conftest.$ac_ext <<_ACEOF
6085/* end confdefs.h. */
6086#include <alloca.h>
6087int
6088main ()
6089{
6090char *p = (char *) alloca (2 * sizeof (int));
7a197a62 6091 if (p) return 0;
ad6254c5
AK
6092 ;
6093 return 0;
6094}
6095_ACEOF
6096rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6097if { (ac_try="$ac_link"
6098case "(($ac_try" in
6099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100 *) ac_try_echo=$ac_try;;
6101esac
68f2de6d 6102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6103 (eval "$ac_link") 2>conftest.er1
ad6254c5 6104 ac_status=$?
8a2fc586
AK
6105 grep -v '^ *+' conftest.er1 >conftest.err
6106 rm -f conftest.er1
6107 cat conftest.err >&5
68f2de6d 6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6109 (exit $ac_status); } && {
6110 test -z "$ac_c_werror_flag" ||
6111 test ! -s conftest.err
68f2de6d
AK
6112 } && test -s conftest$ac_exeext &&
6113 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
6114 ac_cv_working_alloca_h=yes
6115else
68f2de6d 6116 echo "$as_me: failed program was:" >&5
ad6254c5 6117sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 6118
7a197a62 6119 ac_cv_working_alloca_h=no
ad6254c5 6120fi
7a197a62 6121
25fbec5b 6122rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6123 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6124fi
68f2de6d
AK
6125{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6126echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
6127if test $ac_cv_working_alloca_h = yes; then
6128
6129cat >>confdefs.h <<\_ACEOF
6130#define HAVE_ALLOCA_H 1
6131_ACEOF
6132
6133fi
6134
68f2de6d
AK
6135{ echo "$as_me:$LINENO: checking for alloca" >&5
6136echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
ad6254c5 6137if test "${ac_cv_func_alloca_works+set}" = set; then
68f2de6d 6138 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6139else
6140 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6141/* confdefs.h. */
6142_ACEOF
6143cat confdefs.h >>conftest.$ac_ext
6144cat >>conftest.$ac_ext <<_ACEOF
6145/* end confdefs.h. */
6146#ifdef __GNUC__
6147# define alloca __builtin_alloca
6148#else
6149# ifdef _MSC_VER
6150# include <malloc.h>
6151# define alloca _alloca
6152# else
25fbec5b 6153# ifdef HAVE_ALLOCA_H
ad6254c5
AK
6154# include <alloca.h>
6155# else
6156# ifdef _AIX
6157 #pragma alloca
6158# else
6159# ifndef alloca /* predefined by HP cc +Olibcalls */
6160char *alloca ();
6161# endif
6162# endif
6163# endif
6164# endif
6165#endif
6166
6167int
6168main ()
6169{
6170char *p = (char *) alloca (1);
7a197a62 6171 if (p) return 0;
ad6254c5
AK
6172 ;
6173 return 0;
6174}
6175_ACEOF
6176rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6177if { (ac_try="$ac_link"
6178case "(($ac_try" in
6179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180 *) ac_try_echo=$ac_try;;
6181esac
68f2de6d 6182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6183 (eval "$ac_link") 2>conftest.er1
ad6254c5 6184 ac_status=$?
8a2fc586
AK
6185 grep -v '^ *+' conftest.er1 >conftest.err
6186 rm -f conftest.er1
6187 cat conftest.err >&5
68f2de6d 6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6189 (exit $ac_status); } && {
6190 test -z "$ac_c_werror_flag" ||
6191 test ! -s conftest.err
68f2de6d
AK
6192 } && test -s conftest$ac_exeext &&
6193 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
6194 ac_cv_func_alloca_works=yes
6195else
68f2de6d 6196 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6197sed 's/^/| /' conftest.$ac_ext >&5
6198
7a197a62 6199 ac_cv_func_alloca_works=no
ad6254c5 6200fi
7a197a62 6201
25fbec5b 6202rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6203 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6204fi
68f2de6d
AK
6205{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6206echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6207
6208if test $ac_cv_func_alloca_works = yes; then
6209
6210cat >>confdefs.h <<\_ACEOF
6211#define HAVE_ALLOCA 1
6212_ACEOF
6213
6214else
6215 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6216# that cause trouble. Some versions do not even contain alloca or
6217# contain a buggy version. If you still want to use their alloca,
6218# use ar to extract alloca.o from them instead of compiling alloca.c.
6219
7a197a62 6220ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6221
6222cat >>confdefs.h <<\_ACEOF
6223#define C_ALLOCA 1
6224_ACEOF
6225
6226
68f2de6d
AK
6227{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6228echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
ad6254c5 6229if test "${ac_cv_os_cray+set}" = set; then
68f2de6d 6230 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6231else
6232 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6233/* confdefs.h. */
6234_ACEOF
6235cat confdefs.h >>conftest.$ac_ext
6236cat >>conftest.$ac_ext <<_ACEOF
6237/* end confdefs.h. */
7a197a62 6238#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6239webecray
6240#else
6241wenotbecray
6242#endif
6243
6244_ACEOF
795ca3e5 6245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6246 $EGREP "webecray" >/dev/null 2>&1; then
6247 ac_cv_os_cray=yes
6248else
6249 ac_cv_os_cray=no
795ca3e5
AK
6250fi
6251rm -f conftest*
6252
795ca3e5 6253fi
68f2de6d
AK
6254{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6255echo "${ECHO_T}$ac_cv_os_cray" >&6; }
ad6254c5
AK
6256if test $ac_cv_os_cray = yes; then
6257 for ac_func in _getb67 GETB67 getb67; do
68f2de6d
AK
6258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6259{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6260echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 6261if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 6262 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6263else
6264 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6265/* confdefs.h. */
6266_ACEOF
6267cat confdefs.h >>conftest.$ac_ext
6268cat >>conftest.$ac_ext <<_ACEOF
6269/* end confdefs.h. */
8a2fc586
AK
6270/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6272#define $ac_func innocuous_$ac_func
6273
ad6254c5
AK
6274/* System header to define __stub macros and hopefully few prototypes,
6275 which can conflict with char $ac_func (); below.
6276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6277 <limits.h> exists even on freestanding compilers. */
8a2fc586 6278
ad6254c5
AK
6279#ifdef __STDC__
6280# include <limits.h>
6281#else
6282# include <assert.h>
6283#endif
8a2fc586
AK
6284
6285#undef $ac_func
6286
7a197a62
AK
6287/* Override any GCC internal prototype to avoid an error.
6288 Use char because int might match the return type of a GCC
6289 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6290#ifdef __cplusplus
6291extern "C"
ad6254c5 6292#endif
ad6254c5
AK
6293char $ac_func ();
6294/* The GNU C library defines this for functions which it implements
6295 to always fail with ENOSYS. Some functions are actually named
6296 something starting with __ and the normal name is an alias. */
7a197a62 6297#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6298choke me
ad6254c5
AK
6299#endif
6300
6301int
6302main ()
6303{
7a197a62 6304return $ac_func ();
ad6254c5
AK
6305 ;
6306 return 0;
6307}
6308_ACEOF
6309rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6310if { (ac_try="$ac_link"
6311case "(($ac_try" in
6312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313 *) ac_try_echo=$ac_try;;
6314esac
68f2de6d 6315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6316 (eval "$ac_link") 2>conftest.er1
ad6254c5 6317 ac_status=$?
8a2fc586
AK
6318 grep -v '^ *+' conftest.er1 >conftest.err
6319 rm -f conftest.er1
6320 cat conftest.err >&5
68f2de6d 6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6322 (exit $ac_status); } && {
6323 test -z "$ac_c_werror_flag" ||
6324 test ! -s conftest.err
68f2de6d
AK
6325 } && test -s conftest$ac_exeext &&
6326 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
6327 eval "$as_ac_var=yes"
6328else
68f2de6d 6329 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6330sed 's/^/| /' conftest.$ac_ext >&5
6331
7a197a62 6332 eval "$as_ac_var=no"
ad6254c5 6333fi
7a197a62 6334
25fbec5b 6335rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6336 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6337fi
68f2de6d
AK
6338ac_res=`eval echo '${'$as_ac_var'}'`
6339 { echo "$as_me:$LINENO: result: $ac_res" >&5
6340echo "${ECHO_T}$ac_res" >&6; }
6341if test `eval echo '${'$as_ac_var'}'` = yes; then
80992638 6342
ad6254c5
AK
6343cat >>confdefs.h <<_ACEOF
6344#define CRAY_STACKSEG_END $ac_func
6345_ACEOF
6346
6347 break
6348fi
6349
6350 done
6351fi
6352
68f2de6d
AK
6353{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6354echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
ad6254c5 6355if test "${ac_cv_c_stack_direction+set}" = set; then
68f2de6d 6356 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6357else
6358 if test "$cross_compiling" = yes; then
6359 ac_cv_c_stack_direction=0
6360else
6361 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6362/* confdefs.h. */
6363_ACEOF
6364cat confdefs.h >>conftest.$ac_ext
6365cat >>conftest.$ac_ext <<_ACEOF
6366/* end confdefs.h. */
7a197a62 6367$ac_includes_default
ad6254c5
AK
6368int
6369find_stack_direction ()
6370{
6371 static char *addr = 0;
6372 auto char dummy;
6373 if (addr == 0)
6374 {
6375 addr = &dummy;
6376 return find_stack_direction ();
6377 }
6378 else
6379 return (&dummy > addr) ? 1 : -1;
6380}
6381
6382int
6383main ()
6384{
7a197a62 6385 return find_stack_direction () < 0;
ad6254c5
AK
6386}
6387_ACEOF
6388rm -f conftest$ac_exeext
7a197a62
AK
6389if { (ac_try="$ac_link"
6390case "(($ac_try" in
6391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6392 *) ac_try_echo=$ac_try;;
6393esac
68f2de6d 6394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6395 (eval "$ac_link") 2>&5
ad6254c5 6396 ac_status=$?
68f2de6d 6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6399 { (case "(($ac_try" in
6400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6401 *) ac_try_echo=$ac_try;;
6402esac
68f2de6d 6403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6404 (eval "$ac_try") 2>&5
ad6254c5 6405 ac_status=$?
68f2de6d 6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6407 (exit $ac_status); }; }; then
6408 ac_cv_c_stack_direction=1
6409else
68f2de6d
AK
6410 echo "$as_me: program exited with status $ac_status" >&5
6411echo "$as_me: failed program was:" >&5
ad6254c5
AK
6412sed 's/^/| /' conftest.$ac_ext >&5
6413
6414( exit $ac_status )
6415ac_cv_c_stack_direction=-1
6416fi
7a197a62 6417rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6418fi
7a197a62
AK
6419
6420
ad6254c5 6421fi
68f2de6d
AK
6422{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6423echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
6424
6425cat >>confdefs.h <<_ACEOF
6426#define STACK_DIRECTION $ac_cv_c_stack_direction
6427_ACEOF
6428
6429
6430fi
6431
68f2de6d
AK
6432{ echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6433echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
ad6254c5 6434if test "${ac_cv_func_closedir_void+set}" = set; then
68f2de6d 6435 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6436else
6437 if test "$cross_compiling" = yes; then
6438 ac_cv_func_closedir_void=yes
6439else
6440 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6441/* confdefs.h. */
6442_ACEOF
6443cat confdefs.h >>conftest.$ac_ext
6444cat >>conftest.$ac_ext <<_ACEOF
6445/* end confdefs.h. */
6446$ac_includes_default
6447#include <$ac_header_dirent>
6448#ifndef __cplusplus
6449int closedir ();
6450#endif
6451
6452int
6453main ()
6454{
7a197a62 6455return closedir (opendir (".")) != 0;
ad6254c5
AK
6456 ;
6457 return 0;
6458}
6459_ACEOF
6460rm -f conftest$ac_exeext
7a197a62
AK
6461if { (ac_try="$ac_link"
6462case "(($ac_try" in
6463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6464 *) ac_try_echo=$ac_try;;
6465esac
68f2de6d 6466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6467 (eval "$ac_link") 2>&5
ad6254c5 6468 ac_status=$?
68f2de6d 6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6471 { (case "(($ac_try" in
6472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473 *) ac_try_echo=$ac_try;;
6474esac
68f2de6d 6475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6476 (eval "$ac_try") 2>&5
ad6254c5 6477 ac_status=$?
68f2de6d 6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6479 (exit $ac_status); }; }; then
6480 ac_cv_func_closedir_void=no
6481else
68f2de6d
AK
6482 echo "$as_me: program exited with status $ac_status" >&5
6483echo "$as_me: failed program was:" >&5
ad6254c5
AK
6484sed 's/^/| /' conftest.$ac_ext >&5
6485
6486( exit $ac_status )
6487ac_cv_func_closedir_void=yes
6488fi
7a197a62 6489rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6490fi
7a197a62
AK
6491
6492
ad6254c5 6493fi
68f2de6d
AK
6494{ echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6495echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
6496if test $ac_cv_func_closedir_void = yes; then
6497
6498cat >>confdefs.h <<\_ACEOF
6499#define CLOSEDIR_VOID 1
6500_ACEOF
6501
6502fi
6503
6504
7a197a62 6505for ac_header in vfork.h
ad6254c5 6506do
68f2de6d 6507as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 6508if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
6509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 6511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 6512 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 6513fi
68f2de6d
AK
6514ac_res=`eval echo '${'$as_ac_Header'}'`
6515 { echo "$as_me:$LINENO: result: $ac_res" >&5
6516echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
6517else
6518 # Is the header compilable?
68f2de6d
AK
6519{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6520echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 6521cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6522/* confdefs.h. */
6523_ACEOF
6524cat confdefs.h >>conftest.$ac_ext
6525cat >>conftest.$ac_ext <<_ACEOF
6526/* end confdefs.h. */
6527$ac_includes_default
6528#include <$ac_header>
6529_ACEOF
6530rm -f conftest.$ac_objext
7a197a62
AK
6531if { (ac_try="$ac_compile"
6532case "(($ac_try" in
6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6535esac
68f2de6d 6536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6537 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6538 ac_status=$?
8a2fc586
AK
6539 grep -v '^ *+' conftest.er1 >conftest.err
6540 rm -f conftest.er1
6541 cat conftest.err >&5
68f2de6d 6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6543 (exit $ac_status); } && {
6544 test -z "$ac_c_werror_flag" ||
6545 test ! -s conftest.err
6546 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6547 ac_header_compiler=yes
6548else
68f2de6d 6549 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6550sed 's/^/| /' conftest.$ac_ext >&5
6551
7a197a62 6552 ac_header_compiler=no
ad6254c5 6553fi
7a197a62
AK
6554
6555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
6556{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6557echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
6558
6559# Is the header present?
68f2de6d
AK
6560{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6561echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 6562cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6563/* confdefs.h. */
6564_ACEOF
6565cat confdefs.h >>conftest.$ac_ext
6566cat >>conftest.$ac_ext <<_ACEOF
6567/* end confdefs.h. */
6568#include <$ac_header>
6569_ACEOF
7a197a62
AK
6570if { (ac_try="$ac_cpp conftest.$ac_ext"
6571case "(($ac_try" in
6572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6573 *) ac_try_echo=$ac_try;;
6574esac
68f2de6d 6575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
6577 ac_status=$?
6578 grep -v '^ *+' conftest.er1 >conftest.err
6579 rm -f conftest.er1
6580 cat conftest.err >&5
68f2de6d 6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6582 (exit $ac_status); } >/dev/null && {
6583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6584 test ! -s conftest.err
6585 }; then
ad6254c5
AK
6586 ac_header_preproc=yes
6587else
68f2de6d 6588 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6589sed 's/^/| /' conftest.$ac_ext >&5
6590
6591 ac_header_preproc=no
6592fi
7a197a62 6593
ad6254c5 6594rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
6595{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6596echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
6597
6598# So? What about this header?
8a2fc586
AK
6599case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6600 yes:no: )
68f2de6d
AK
6601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6602echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6604echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 6605 ac_header_preproc=yes
ad6254c5 6606 ;;
8a2fc586 6607 no:yes:* )
68f2de6d
AK
6608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6609echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6611echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6613echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6615echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6617echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6619echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 6620
ad6254c5
AK
6621 ;;
6622esac
68f2de6d
AK
6623{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6624echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 6625if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 6626 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 6627else
8a2fc586 6628 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 6629fi
68f2de6d
AK
6630ac_res=`eval echo '${'$as_ac_Header'}'`
6631 { echo "$as_me:$LINENO: result: $ac_res" >&5
6632echo "${ECHO_T}$ac_res" >&6; }
ad6254c5 6633
795ca3e5 6634fi
68f2de6d 6635if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 6636 cat >>confdefs.h <<_ACEOF
68f2de6d 6637#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
6638_ACEOF
6639
6640fi
6641
6642done
795ca3e5 6643
ad6254c5
AK
6644
6645
6646for ac_func in fork vfork
6647do
68f2de6d
AK
6648as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6649{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6650echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 6651if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 6652 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 6653else
ad6254c5 6654 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6655/* confdefs.h. */
6656_ACEOF
6657cat confdefs.h >>conftest.$ac_ext
6658cat >>conftest.$ac_ext <<_ACEOF
6659/* end confdefs.h. */
8a2fc586
AK
6660/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6662#define $ac_func innocuous_$ac_func
6663
ad6254c5
AK
6664/* System header to define __stub macros and hopefully few prototypes,
6665 which can conflict with char $ac_func (); below.
6666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6667 <limits.h> exists even on freestanding compilers. */
8a2fc586 6668
ad6254c5
AK
6669#ifdef __STDC__
6670# include <limits.h>
6671#else
6672# include <assert.h>
795ca3e5 6673#endif
8a2fc586
AK
6674
6675#undef $ac_func
6676
7a197a62
AK
6677/* Override any GCC internal prototype to avoid an error.
6678 Use char because int might match the return type of a GCC
6679 builtin and then its argument prototype would still apply. */
795ca3e5 6680#ifdef __cplusplus
ad6254c5 6681extern "C"
ad6254c5 6682#endif
ad6254c5
AK
6683char $ac_func ();
6684/* The GNU C library defines this for functions which it implements
6685 to always fail with ENOSYS. Some functions are actually named
6686 something starting with __ and the normal name is an alias. */
7a197a62 6687#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6688choke me
795ca3e5
AK
6689#endif
6690
ad6254c5
AK
6691int
6692main ()
6693{
7a197a62 6694return $ac_func ();
ad6254c5
AK
6695 ;
6696 return 0;
6697}
6698_ACEOF
6699rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6700if { (ac_try="$ac_link"
6701case "(($ac_try" in
6702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6703 *) ac_try_echo=$ac_try;;
6704esac
68f2de6d 6705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6706 (eval "$ac_link") 2>conftest.er1
ad6254c5 6707 ac_status=$?
8a2fc586
AK
6708 grep -v '^ *+' conftest.er1 >conftest.err
6709 rm -f conftest.er1
6710 cat conftest.err >&5
68f2de6d 6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6712 (exit $ac_status); } && {
6713 test -z "$ac_c_werror_flag" ||
6714 test ! -s conftest.err
68f2de6d
AK
6715 } && test -s conftest$ac_exeext &&
6716 $as_test_x conftest$ac_exeext; then
ad6254c5 6717 eval "$as_ac_var=yes"
795ca3e5 6718else
68f2de6d 6719 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6720sed 's/^/| /' conftest.$ac_ext >&5
6721
7a197a62 6722 eval "$as_ac_var=no"
795ca3e5 6723fi
7a197a62 6724
25fbec5b 6725rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6726 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6727fi
68f2de6d
AK
6728ac_res=`eval echo '${'$as_ac_var'}'`
6729 { echo "$as_me:$LINENO: result: $ac_res" >&5
6730echo "${ECHO_T}$ac_res" >&6; }
6731if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 6732 cat >>confdefs.h <<_ACEOF
68f2de6d 6733#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6734_ACEOF
6735
6736fi
6737done
6738
6739if test "x$ac_cv_func_fork" = xyes; then
68f2de6d
AK
6740 { echo "$as_me:$LINENO: checking for working fork" >&5
6741echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
ad6254c5 6742if test "${ac_cv_func_fork_works+set}" = set; then
68f2de6d 6743 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6744else
6745 if test "$cross_compiling" = yes; then
6746 ac_cv_func_fork_works=cross
6747else
6748 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
6749/* confdefs.h. */
6750_ACEOF
6751cat confdefs.h >>conftest.$ac_ext
6752cat >>conftest.$ac_ext <<_ACEOF
6753/* end confdefs.h. */
6754$ac_includes_default
6755int
6756main ()
6757{
6758
6759 /* By Ruediger Kuhlmann. */
6760 return fork () < 0;
6761
6762 ;
6763 return 0;
6764}
ad6254c5
AK
6765_ACEOF
6766rm -f conftest$ac_exeext
7a197a62
AK
6767if { (ac_try="$ac_link"
6768case "(($ac_try" in
6769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6770 *) ac_try_echo=$ac_try;;
6771esac
68f2de6d 6772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6773 (eval "$ac_link") 2>&5
ad6254c5 6774 ac_status=$?
68f2de6d 6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6777 { (case "(($ac_try" in
6778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6779 *) ac_try_echo=$ac_try;;
6780esac
68f2de6d 6781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6782 (eval "$ac_try") 2>&5
ad6254c5 6783 ac_status=$?
68f2de6d 6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6785 (exit $ac_status); }; }; then
6786 ac_cv_func_fork_works=yes
6787else
68f2de6d
AK
6788 echo "$as_me: program exited with status $ac_status" >&5
6789echo "$as_me: failed program was:" >&5
ad6254c5
AK
6790sed 's/^/| /' conftest.$ac_ext >&5
6791
6792( exit $ac_status )
6793ac_cv_func_fork_works=no
6794fi
7a197a62 6795rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6796fi
7a197a62
AK
6797
6798
ad6254c5 6799fi
68f2de6d
AK
6800{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6801echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
6802
6803else
6804 ac_cv_func_fork_works=$ac_cv_func_fork
6805fi
6806if test "x$ac_cv_func_fork_works" = xcross; then
6807 case $host in
6808 *-*-amigaos* | *-*-msdosdjgpp*)
6809 # Override, as these systems have only a dummy fork() stub
6810 ac_cv_func_fork_works=no
6811 ;;
6812 *)
6813 ac_cv_func_fork_works=yes
6814 ;;
6815 esac
68f2de6d
AK
6816 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6817echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
6818fi
6819ac_cv_func_vfork_works=$ac_cv_func_vfork
6820if test "x$ac_cv_func_vfork" = xyes; then
68f2de6d
AK
6821 { echo "$as_me:$LINENO: checking for working vfork" >&5
6822echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
ad6254c5 6823if test "${ac_cv_func_vfork_works+set}" = set; then
68f2de6d 6824 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6825else
6826 if test "$cross_compiling" = yes; then
6827 ac_cv_func_vfork_works=cross
6828else
6829 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6830/* confdefs.h. */
6831_ACEOF
6832cat confdefs.h >>conftest.$ac_ext
6833cat >>conftest.$ac_ext <<_ACEOF
6834/* end confdefs.h. */
6835/* Thanks to Paul Eggert for this test. */
7a197a62 6836$ac_includes_default
ad6254c5 6837#include <sys/wait.h>
25fbec5b 6838#ifdef HAVE_VFORK_H
ad6254c5
AK
6839# include <vfork.h>
6840#endif
6841/* On some sparc systems, changes by the child to local and incoming
6842 argument registers are propagated back to the parent. The compiler
6843 is told about this with #include <vfork.h>, but some compilers
6844 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6845 static variable whose address is put into a register that is
6846 clobbered by the vfork. */
6847static void
6848#ifdef __cplusplus
6849sparc_address_test (int arg)
6850# else
6851sparc_address_test (arg) int arg;
6852#endif
6853{
6854 static pid_t child;
6855 if (!child) {
6856 child = vfork ();
6857 if (child < 0) {
6858 perror ("vfork");
6859 _exit(2);
6860 }
6861 if (!child) {
6862 arg = getpid();
6863 write(-1, "", 0);
6864 _exit (arg);
6865 }
6866 }
6867}
6868
6869int
6870main ()
6871{
6872 pid_t parent = getpid ();
6873 pid_t child;
6874
6875 sparc_address_test (0);
6876
6877 child = vfork ();
6878
6879 if (child == 0) {
6880 /* Here is another test for sparc vfork register problems. This
6881 test uses lots of local variables, at least as many local
6882 variables as main has allocated so far including compiler
6883 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6884 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6885 reuse the register of parent for one of the local variables,
6886 since it will think that parent can't possibly be used any more
6887 in this routine. Assigning to the local variable will thus
6888 munge parent in the parent process. */
6889 pid_t
6890 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6891 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6892 /* Convince the compiler that p..p7 are live; otherwise, it might
6893 use the same hardware register for all 8 local variables. */
6894 if (p != p1 || p != p2 || p != p3 || p != p4
6895 || p != p5 || p != p6 || p != p7)
6896 _exit(1);
6897
6898 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6899 from child file descriptors. If the child closes a descriptor
6900 before it execs or exits, this munges the parent's descriptor
6901 as well. Test for this by closing stdout in the child. */
6902 _exit(close(fileno(stdout)) != 0);
6903 } else {
6904 int status;
6905 struct stat st;
6906
6907 while (wait(&status) != child)
6908 ;
7a197a62 6909 return (
ad6254c5
AK
6910 /* Was there some problem with vforking? */
6911 child < 0
6912
6913 /* Did the child fail? (This shouldn't happen.) */
6914 || status
6915
6916 /* Did the vfork/compiler bug occur? */
6917 || parent != getpid()
6918
6919 /* Did the file descriptor bug occur? */
6920 || fstat(fileno(stdout), &st) != 0
6921 );
6922 }
6923}
6924_ACEOF
6925rm -f conftest$ac_exeext
7a197a62
AK
6926if { (ac_try="$ac_link"
6927case "(($ac_try" in
6928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6929 *) ac_try_echo=$ac_try;;
6930esac
68f2de6d 6931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6932 (eval "$ac_link") 2>&5
ad6254c5 6933 ac_status=$?
68f2de6d 6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6936 { (case "(($ac_try" in
6937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6938 *) ac_try_echo=$ac_try;;
6939esac
68f2de6d 6940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6941 (eval "$ac_try") 2>&5
ad6254c5 6942 ac_status=$?
68f2de6d 6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6944 (exit $ac_status); }; }; then
6945 ac_cv_func_vfork_works=yes
6946else
68f2de6d
AK
6947 echo "$as_me: program exited with status $ac_status" >&5
6948echo "$as_me: failed program was:" >&5
ad6254c5
AK
6949sed 's/^/| /' conftest.$ac_ext >&5
6950
6951( exit $ac_status )
6952ac_cv_func_vfork_works=no
6953fi
7a197a62 6954rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6955fi
7a197a62
AK
6956
6957
ad6254c5 6958fi
68f2de6d
AK
6959{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
6960echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
6961
6962fi;
6963if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 6964 ac_cv_func_vfork_works=$ac_cv_func_vfork
68f2de6d
AK
6965 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6966echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
6967fi
6968
6969if test "x$ac_cv_func_vfork_works" = xyes; then
6970
6971cat >>confdefs.h <<\_ACEOF
6972#define HAVE_WORKING_VFORK 1
6973_ACEOF
6974
6975else
6976
6977cat >>confdefs.h <<\_ACEOF
6978#define vfork fork
6979_ACEOF
6980
6981fi
6982if test "x$ac_cv_func_fork_works" = xyes; then
6983
6984cat >>confdefs.h <<\_ACEOF
6985#define HAVE_WORKING_FORK 1
6986_ACEOF
6987
6988fi
6989
68f2de6d
AK
6990{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
6991echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
ad6254c5 6992if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
68f2de6d 6993 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6994else
6995 rm -f conftest.sym conftest.file
6996echo >conftest.file
6997if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6998 if test "$cross_compiling" = yes; then
6999 ac_cv_func_lstat_dereferences_slashed_symlink=no
7000else
7001 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7002/* confdefs.h. */
7003_ACEOF
7004cat confdefs.h >>conftest.$ac_ext
7005cat >>conftest.$ac_ext <<_ACEOF
7006/* end confdefs.h. */
7007$ac_includes_default
7008int
7009main ()
7010{
7011struct stat sbuf;
7012 /* Linux will dereference the symlink and fail.
8a2fc586
AK
7013 That is better in the sense that it means we will not
7014 have to compile and use the lstat wrapper. */
7a197a62 7015 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
7016 ;
7017 return 0;
7018}
7019_ACEOF
7020rm -f conftest$ac_exeext
7a197a62
AK
7021if { (ac_try="$ac_link"
7022case "(($ac_try" in
7023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7024 *) ac_try_echo=$ac_try;;
7025esac
68f2de6d 7026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7027 (eval "$ac_link") 2>&5
ad6254c5 7028 ac_status=$?
68f2de6d 7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7031 { (case "(($ac_try" in
7032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7033 *) ac_try_echo=$ac_try;;
7034esac
68f2de6d 7035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7036 (eval "$ac_try") 2>&5
ad6254c5 7037 ac_status=$?
68f2de6d 7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7039 (exit $ac_status); }; }; then
7040 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7041else
68f2de6d
AK
7042 echo "$as_me: program exited with status $ac_status" >&5
7043echo "$as_me: failed program was:" >&5
ad6254c5
AK
7044sed 's/^/| /' conftest.$ac_ext >&5
7045
7046( exit $ac_status )
7047ac_cv_func_lstat_dereferences_slashed_symlink=no
7048fi
7a197a62 7049rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7050fi
7a197a62
AK
7051
7052
ad6254c5
AK
7053else
7054 # If the `ln -s' command failed, then we probably don't even
7055 # have an lstat function.
7056 ac_cv_func_lstat_dereferences_slashed_symlink=no
7057fi
7058rm -f conftest.sym conftest.file
7059
7060fi
68f2de6d
AK
7061{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7062echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
7063
7064test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7065
7066cat >>confdefs.h <<_ACEOF
7067#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7068_ACEOF
7069
7070
7071if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 7072 case " $LIBOBJS " in
8a2fc586 7073 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7074 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7075 ;;
8a2fc586
AK
7076esac
7077
ad6254c5
AK
7078fi
7079
68f2de6d
AK
7080{ echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7081echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
ad6254c5 7082if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
68f2de6d 7083 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7084else
7085 if test "$cross_compiling" = yes; then
7086 ac_cv_func_lstat_empty_string_bug=yes
7087else
7088 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7089/* confdefs.h. */
7090_ACEOF
7091cat confdefs.h >>conftest.$ac_ext
7092cat >>conftest.$ac_ext <<_ACEOF
7093/* end confdefs.h. */
7094$ac_includes_default
7095int
7096main ()
7097{
7098struct stat sbuf;
7a197a62 7099 return lstat ("", &sbuf) == 0;
ad6254c5
AK
7100 ;
7101 return 0;
7102}
7103_ACEOF
7104rm -f conftest$ac_exeext
7a197a62
AK
7105if { (ac_try="$ac_link"
7106case "(($ac_try" in
7107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7108 *) ac_try_echo=$ac_try;;
7109esac
68f2de6d 7110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7111 (eval "$ac_link") 2>&5
ad6254c5 7112 ac_status=$?
68f2de6d 7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7115 { (case "(($ac_try" in
7116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117 *) ac_try_echo=$ac_try;;
7118esac
68f2de6d 7119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7120 (eval "$ac_try") 2>&5
ad6254c5 7121 ac_status=$?
68f2de6d 7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7123 (exit $ac_status); }; }; then
7a197a62 7124 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 7125else
68f2de6d
AK
7126 echo "$as_me: program exited with status $ac_status" >&5
7127echo "$as_me: failed program was:" >&5
ad6254c5
AK
7128sed 's/^/| /' conftest.$ac_ext >&5
7129
7130( exit $ac_status )
7a197a62 7131ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 7132fi
7a197a62 7133rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7134fi
7a197a62
AK
7135
7136
ad6254c5 7137fi
68f2de6d
AK
7138{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7139echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 7140if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 7141 case " $LIBOBJS " in
8a2fc586 7142 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7143 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7144 ;;
8a2fc586
AK
7145esac
7146
ad6254c5
AK
7147
7148cat >>confdefs.h <<_ACEOF
7149#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7150_ACEOF
7151
7152fi
7153
7154
7155for ac_header in stdlib.h
7156do
68f2de6d 7157as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7158if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
7159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 7162 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7163fi
68f2de6d
AK
7164ac_res=`eval echo '${'$as_ac_Header'}'`
7165 { echo "$as_me:$LINENO: result: $ac_res" >&5
7166echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7167else
7168 # Is the header compilable?
68f2de6d
AK
7169{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7170echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 7171cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7172/* confdefs.h. */
7173_ACEOF
7174cat confdefs.h >>conftest.$ac_ext
7175cat >>conftest.$ac_ext <<_ACEOF
7176/* end confdefs.h. */
7177$ac_includes_default
7178#include <$ac_header>
7179_ACEOF
7180rm -f conftest.$ac_objext
7a197a62
AK
7181if { (ac_try="$ac_compile"
7182case "(($ac_try" in
7183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7184 *) ac_try_echo=$ac_try;;
7185esac
68f2de6d 7186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7187 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7188 ac_status=$?
8a2fc586
AK
7189 grep -v '^ *+' conftest.er1 >conftest.err
7190 rm -f conftest.er1
7191 cat conftest.err >&5
68f2de6d 7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7193 (exit $ac_status); } && {
7194 test -z "$ac_c_werror_flag" ||
7195 test ! -s conftest.err
7196 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7197 ac_header_compiler=yes
7198else
68f2de6d 7199 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7200sed 's/^/| /' conftest.$ac_ext >&5
7201
7a197a62 7202 ac_header_compiler=no
ad6254c5 7203fi
7a197a62
AK
7204
7205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
7206{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7207echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
7208
7209# Is the header present?
68f2de6d
AK
7210{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7211echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 7212cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7213/* confdefs.h. */
7214_ACEOF
7215cat confdefs.h >>conftest.$ac_ext
7216cat >>conftest.$ac_ext <<_ACEOF
7217/* end confdefs.h. */
7218#include <$ac_header>
7219_ACEOF
7a197a62
AK
7220if { (ac_try="$ac_cpp conftest.$ac_ext"
7221case "(($ac_try" in
7222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7223 *) ac_try_echo=$ac_try;;
7224esac
68f2de6d 7225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7227 ac_status=$?
7228 grep -v '^ *+' conftest.er1 >conftest.err
7229 rm -f conftest.er1
7230 cat conftest.err >&5
68f2de6d 7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7232 (exit $ac_status); } >/dev/null && {
7233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7234 test ! -s conftest.err
7235 }; then
ad6254c5
AK
7236 ac_header_preproc=yes
7237else
68f2de6d 7238 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7239sed 's/^/| /' conftest.$ac_ext >&5
7240
7241 ac_header_preproc=no
7242fi
7a197a62 7243
ad6254c5 7244rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
7245{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7246echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
7247
7248# So? What about this header?
8a2fc586
AK
7249case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7250 yes:no: )
68f2de6d
AK
7251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7252echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7254echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7255 ac_header_preproc=yes
ad6254c5 7256 ;;
8a2fc586 7257 no:yes:* )
68f2de6d
AK
7258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7259echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7261echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7263echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7265echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7267echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7269echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7270
ad6254c5
AK
7271 ;;
7272esac
68f2de6d
AK
7273{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7274echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7275if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 7276 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7277else
8a2fc586 7278 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7279fi
68f2de6d
AK
7280ac_res=`eval echo '${'$as_ac_Header'}'`
7281 { echo "$as_me:$LINENO: result: $ac_res" >&5
7282echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7283
7284fi
68f2de6d 7285if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 7286 cat >>confdefs.h <<_ACEOF
68f2de6d 7287#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7288_ACEOF
7289
7290fi
7291
7292done
7293
68f2de6d
AK
7294{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7295echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
ad6254c5 7296if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
68f2de6d 7297 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7298else
7299 if test "$cross_compiling" = yes; then
7300 ac_cv_func_malloc_0_nonnull=no
7301else
7302 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7303/* confdefs.h. */
7304_ACEOF
7305cat confdefs.h >>conftest.$ac_ext
7306cat >>conftest.$ac_ext <<_ACEOF
7307/* end confdefs.h. */
25fbec5b 7308#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
7309# include <stdlib.h>
7310#else
7311char *malloc ();
7312#endif
7313
7314int
7315main ()
7316{
7a197a62 7317return ! malloc (0);
ad6254c5
AK
7318 ;
7319 return 0;
7320}
7321_ACEOF
7322rm -f conftest$ac_exeext
7a197a62
AK
7323if { (ac_try="$ac_link"
7324case "(($ac_try" in
7325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7326 *) ac_try_echo=$ac_try;;
7327esac
68f2de6d 7328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7329 (eval "$ac_link") 2>&5
ad6254c5 7330 ac_status=$?
68f2de6d 7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7333 { (case "(($ac_try" in
7334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7335 *) ac_try_echo=$ac_try;;
7336esac
68f2de6d 7337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7338 (eval "$ac_try") 2>&5
ad6254c5 7339 ac_status=$?
68f2de6d 7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7341 (exit $ac_status); }; }; then
7342 ac_cv_func_malloc_0_nonnull=yes
7343else
68f2de6d
AK
7344 echo "$as_me: program exited with status $ac_status" >&5
7345echo "$as_me: failed program was:" >&5
ad6254c5
AK
7346sed 's/^/| /' conftest.$ac_ext >&5
7347
7348( exit $ac_status )
7349ac_cv_func_malloc_0_nonnull=no
7350fi
7a197a62 7351rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7352fi
7a197a62
AK
7353
7354
ad6254c5 7355fi
68f2de6d
AK
7356{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7357echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
7358if test $ac_cv_func_malloc_0_nonnull = yes; then
7359
7360cat >>confdefs.h <<\_ACEOF
7361#define HAVE_MALLOC 1
7362_ACEOF
7363
7364else
7365 cat >>confdefs.h <<\_ACEOF
7366#define HAVE_MALLOC 0
7367_ACEOF
7368
7a197a62 7369 case " $LIBOBJS " in
8a2fc586 7370 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
7371 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7372 ;;
8a2fc586
AK
7373esac
7374
ad6254c5
AK
7375
7376cat >>confdefs.h <<\_ACEOF
7377#define malloc rpl_malloc
7378_ACEOF
7379
7380fi
7381
7382
7383
68f2de6d
AK
7384{ echo "$as_me:$LINENO: checking for working memcmp" >&5
7385echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
ad6254c5 7386if test "${ac_cv_func_memcmp_working+set}" = set; then
68f2de6d 7387 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7388else
7389 if test "$cross_compiling" = yes; then
7390 ac_cv_func_memcmp_working=no
7391else
7392 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7393/* confdefs.h. */
7394_ACEOF
7395cat confdefs.h >>conftest.$ac_ext
7396cat >>conftest.$ac_ext <<_ACEOF
7397/* end confdefs.h. */
8a2fc586 7398$ac_includes_default
ad6254c5
AK
7399int
7400main ()
7401{
7402
7403 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 7404 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 7405 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 7406 return 1;
ad6254c5
AK
7407
7408 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7409 or more and with at least one buffer not starting on a 4-byte boundary.
7410 William Lewis provided this test program. */
7411 {
7412 char foo[21];
7413 char bar[21];
7414 int i;
7415 for (i = 0; i < 4; i++)
7416 {
8a2fc586
AK
7417 char *a = foo + i;
7418 char *b = bar + i;
7419 strcpy (a, "--------01111111");
7420 strcpy (b, "--------10000000");
7421 if (memcmp (a, b, 16) >= 0)
7a197a62 7422 return 1;
ad6254c5 7423 }
7a197a62 7424 return 0;
ad6254c5
AK
7425 }
7426
7427 ;
7428 return 0;
7429}
7430_ACEOF
7431rm -f conftest$ac_exeext
7a197a62
AK
7432if { (ac_try="$ac_link"
7433case "(($ac_try" in
7434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7435 *) ac_try_echo=$ac_try;;
7436esac
68f2de6d 7437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7438 (eval "$ac_link") 2>&5
ad6254c5 7439 ac_status=$?
68f2de6d 7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7442 { (case "(($ac_try" in
7443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7444 *) ac_try_echo=$ac_try;;
7445esac
68f2de6d 7446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7447 (eval "$ac_try") 2>&5
ad6254c5 7448 ac_status=$?
68f2de6d 7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7450 (exit $ac_status); }; }; then
7451 ac_cv_func_memcmp_working=yes
7452else
68f2de6d
AK
7453 echo "$as_me: program exited with status $ac_status" >&5
7454echo "$as_me: failed program was:" >&5
ad6254c5
AK
7455sed 's/^/| /' conftest.$ac_ext >&5
7456
7457( exit $ac_status )
7458ac_cv_func_memcmp_working=no
7459fi
7a197a62 7460rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7461fi
7a197a62
AK
7462
7463
ad6254c5 7464fi
68f2de6d
AK
7465{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7466echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
7a197a62 7467test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 7468 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
7469 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7470 ;;
8a2fc586
AK
7471esac
7472
ad6254c5
AK
7473
7474
7475
7476for ac_header in stdlib.h unistd.h
7477do
68f2de6d 7478as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7479if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
7480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7482if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 7483 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7484fi
68f2de6d
AK
7485ac_res=`eval echo '${'$as_ac_Header'}'`
7486 { echo "$as_me:$LINENO: result: $ac_res" >&5
7487echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7488else
7489 # Is the header compilable?
68f2de6d
AK
7490{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7491echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 7492cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7493/* confdefs.h. */
7494_ACEOF
7495cat confdefs.h >>conftest.$ac_ext
7496cat >>conftest.$ac_ext <<_ACEOF
7497/* end confdefs.h. */
7498$ac_includes_default
7499#include <$ac_header>
7500_ACEOF
7501rm -f conftest.$ac_objext
7a197a62
AK
7502if { (ac_try="$ac_compile"
7503case "(($ac_try" in
7504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7505 *) ac_try_echo=$ac_try;;
7506esac
68f2de6d 7507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7508 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7509 ac_status=$?
8a2fc586
AK
7510 grep -v '^ *+' conftest.er1 >conftest.err
7511 rm -f conftest.er1
7512 cat conftest.err >&5
68f2de6d 7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7514 (exit $ac_status); } && {
7515 test -z "$ac_c_werror_flag" ||
7516 test ! -s conftest.err
7517 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7518 ac_header_compiler=yes
7519else
68f2de6d 7520 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7521sed 's/^/| /' conftest.$ac_ext >&5
7522
7a197a62 7523 ac_header_compiler=no
ad6254c5 7524fi
7a197a62
AK
7525
7526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
7527{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7528echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
7529
7530# Is the header present?
68f2de6d
AK
7531{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7532echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 7533cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7534/* confdefs.h. */
7535_ACEOF
7536cat confdefs.h >>conftest.$ac_ext
7537cat >>conftest.$ac_ext <<_ACEOF
7538/* end confdefs.h. */
7539#include <$ac_header>
7540_ACEOF
7a197a62
AK
7541if { (ac_try="$ac_cpp conftest.$ac_ext"
7542case "(($ac_try" in
7543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7544 *) ac_try_echo=$ac_try;;
7545esac
68f2de6d 7546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7548 ac_status=$?
7549 grep -v '^ *+' conftest.er1 >conftest.err
7550 rm -f conftest.er1
7551 cat conftest.err >&5
68f2de6d 7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7553 (exit $ac_status); } >/dev/null && {
7554 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7555 test ! -s conftest.err
7556 }; then
ad6254c5
AK
7557 ac_header_preproc=yes
7558else
68f2de6d 7559 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7560sed 's/^/| /' conftest.$ac_ext >&5
7561
7562 ac_header_preproc=no
7563fi
7a197a62 7564
ad6254c5 7565rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
7566{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7567echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
7568
7569# So? What about this header?
8a2fc586
AK
7570case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7571 yes:no: )
68f2de6d
AK
7572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7573echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7575echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7576 ac_header_preproc=yes
ad6254c5 7577 ;;
8a2fc586 7578 no:yes:* )
68f2de6d
AK
7579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7580echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7582echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7584echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7586echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7588echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7590echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7591
ad6254c5
AK
7592 ;;
7593esac
68f2de6d
AK
7594{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7596if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 7597 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7598else
8a2fc586 7599 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7600fi
68f2de6d
AK
7601ac_res=`eval echo '${'$as_ac_Header'}'`
7602 { echo "$as_me:$LINENO: result: $ac_res" >&5
7603echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7604
7605fi
68f2de6d 7606if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 7607 cat >>confdefs.h <<_ACEOF
68f2de6d 7608#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7609_ACEOF
7610
7611fi
7612
7613done
7614
7615
7616for ac_func in getpagesize
7617do
68f2de6d
AK
7618as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7619{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7620echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 7621if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 7622 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7623else
7624 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7625/* confdefs.h. */
7626_ACEOF
7627cat confdefs.h >>conftest.$ac_ext
7628cat >>conftest.$ac_ext <<_ACEOF
7629/* end confdefs.h. */
8a2fc586
AK
7630/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7632#define $ac_func innocuous_$ac_func
7633
ad6254c5
AK
7634/* System header to define __stub macros and hopefully few prototypes,
7635 which can conflict with char $ac_func (); below.
7636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7637 <limits.h> exists even on freestanding compilers. */
8a2fc586 7638
ad6254c5
AK
7639#ifdef __STDC__
7640# include <limits.h>
7641#else
7642# include <assert.h>
7643#endif
8a2fc586
AK
7644
7645#undef $ac_func
7646
7a197a62
AK
7647/* Override any GCC internal prototype to avoid an error.
7648 Use char because int might match the return type of a GCC
7649 builtin and then its argument prototype would still apply. */
ad6254c5
AK
7650#ifdef __cplusplus
7651extern "C"
ad6254c5 7652#endif
ad6254c5
AK
7653char $ac_func ();
7654/* The GNU C library defines this for functions which it implements
7655 to always fail with ENOSYS. Some functions are actually named
7656 something starting with __ and the normal name is an alias. */
7a197a62 7657#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7658choke me
ad6254c5
AK
7659#endif
7660
7661int
7662main ()
7663{
7a197a62 7664return $ac_func ();
ad6254c5
AK
7665 ;
7666 return 0;
7667}
7668_ACEOF
7669rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7670if { (ac_try="$ac_link"
7671case "(($ac_try" in
7672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7673 *) ac_try_echo=$ac_try;;
7674esac
68f2de6d 7675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7676 (eval "$ac_link") 2>conftest.er1
ad6254c5 7677 ac_status=$?
8a2fc586
AK
7678 grep -v '^ *+' conftest.er1 >conftest.err
7679 rm -f conftest.er1
7680 cat conftest.err >&5
68f2de6d 7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7682 (exit $ac_status); } && {
7683 test -z "$ac_c_werror_flag" ||
7684 test ! -s conftest.err
68f2de6d
AK
7685 } && test -s conftest$ac_exeext &&
7686 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
7687 eval "$as_ac_var=yes"
7688else
68f2de6d 7689 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7690sed 's/^/| /' conftest.$ac_ext >&5
7691
7a197a62 7692 eval "$as_ac_var=no"
ad6254c5 7693fi
7a197a62 7694
25fbec5b 7695rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7696 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7697fi
68f2de6d
AK
7698ac_res=`eval echo '${'$as_ac_var'}'`
7699 { echo "$as_me:$LINENO: result: $ac_res" >&5
7700echo "${ECHO_T}$ac_res" >&6; }
7701if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 7702 cat >>confdefs.h <<_ACEOF
68f2de6d 7703#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7704_ACEOF
7705
7706fi
7707done
7708
68f2de6d
AK
7709{ echo "$as_me:$LINENO: checking for working mmap" >&5
7710echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
ad6254c5 7711if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
68f2de6d 7712 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7713else
7714 if test "$cross_compiling" = yes; then
7715 ac_cv_func_mmap_fixed_mapped=no
7716else
7717 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7718/* confdefs.h. */
7719_ACEOF
7720cat confdefs.h >>conftest.$ac_ext
7721cat >>conftest.$ac_ext <<_ACEOF
7722/* end confdefs.h. */
7723$ac_includes_default
7724/* malloc might have been renamed as rpl_malloc. */
7725#undef malloc
7726
7727/* Thanks to Mike Haertel and Jim Avera for this test.
7728 Here is a matrix of mmap possibilities:
7729 mmap private not fixed
7730 mmap private fixed at somewhere currently unmapped
7731 mmap private fixed at somewhere already mapped
7732 mmap shared not fixed
7733 mmap shared fixed at somewhere currently unmapped
7734 mmap shared fixed at somewhere already mapped
7735 For private mappings, we should verify that changes cannot be read()
7736 back from the file, nor mmap's back from the file at a different
7737 address. (There have been systems where private was not correctly
7738 implemented like the infamous i386 svr4.0, and systems where the
7739 VM page cache was not coherent with the file system buffer cache
7740 like early versions of FreeBSD and possibly contemporary NetBSD.)
7741 For shared mappings, we should conversely verify that changes get
7742 propagated back to all the places they're supposed to be.
7743
7744 Grep wants private fixed already mapped.
7745 The main things grep needs to know about mmap are:
7746 * does it exist and is it safe to write into the mmap'd area
7747 * how to use it (BSD variants) */
7748
7749#include <fcntl.h>
7750#include <sys/mman.h>
7751
25fbec5b 7752#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
7753char *malloc ();
7754#endif
7755
7756/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 7757#ifndef HAVE_GETPAGESIZE
ad6254c5 7758/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 7759# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
7760# define HAVE_SYS_PARAM_H 1
7761# endif
7762
7763# ifdef _SC_PAGESIZE
7764# define getpagesize() sysconf(_SC_PAGESIZE)
7765# else /* no _SC_PAGESIZE */
25fbec5b 7766# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
7767# include <sys/param.h>
7768# ifdef EXEC_PAGESIZE
7769# define getpagesize() EXEC_PAGESIZE
7770# else /* no EXEC_PAGESIZE */
7771# ifdef NBPG
7772# define getpagesize() NBPG * CLSIZE
7773# ifndef CLSIZE
7774# define CLSIZE 1
7775# endif /* no CLSIZE */
7776# else /* no NBPG */
7777# ifdef NBPC
7778# define getpagesize() NBPC
7779# else /* no NBPC */
7780# ifdef PAGESIZE
7781# define getpagesize() PAGESIZE
7782# endif /* PAGESIZE */
7783# endif /* no NBPC */
7784# endif /* no NBPG */
7785# endif /* no EXEC_PAGESIZE */
7786# else /* no HAVE_SYS_PARAM_H */
7787# define getpagesize() 8192 /* punt totally */
7788# endif /* no HAVE_SYS_PARAM_H */
7789# endif /* no _SC_PAGESIZE */
7790
7791#endif /* no HAVE_GETPAGESIZE */
7792
7793int
7794main ()
7795{
7796 char *data, *data2, *data3;
7797 int i, pagesize;
7798 int fd;
7799
7800 pagesize = getpagesize ();
7801
7802 /* First, make a file with some known garbage in it. */
7803 data = (char *) malloc (pagesize);
7804 if (!data)
7a197a62 7805 return 1;
ad6254c5
AK
7806 for (i = 0; i < pagesize; ++i)
7807 *(data + i) = rand ();
7808 umask (0);
7809 fd = creat ("conftest.mmap", 0600);
7810 if (fd < 0)
7a197a62 7811 return 1;
ad6254c5 7812 if (write (fd, data, pagesize) != pagesize)
7a197a62 7813 return 1;
ad6254c5
AK
7814 close (fd);
7815
7816 /* Next, try to mmap the file at a fixed address which already has
7817 something else allocated at it. If we can, also make sure that
7818 we see the same garbage. */
7819 fd = open ("conftest.mmap", O_RDWR);
7820 if (fd < 0)
7a197a62 7821 return 1;
ad6254c5
AK
7822 data2 = (char *) malloc (2 * pagesize);
7823 if (!data2)
7a197a62
AK
7824 return 1;
7825 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 7826 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 7827 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 7828 return 1;
ad6254c5
AK
7829 for (i = 0; i < pagesize; ++i)
7830 if (*(data + i) != *(data2 + i))
7a197a62 7831 return 1;
ad6254c5
AK
7832
7833 /* Finally, make sure that changes to the mapped area do not
7834 percolate back to the file as seen by read(). (This is a bug on
7835 some variants of i386 svr4.0.) */
7836 for (i = 0; i < pagesize; ++i)
7837 *(data2 + i) = *(data2 + i) + 1;
7838 data3 = (char *) malloc (pagesize);
7839 if (!data3)
7a197a62 7840 return 1;
ad6254c5 7841 if (read (fd, data3, pagesize) != pagesize)
7a197a62 7842 return 1;
ad6254c5
AK
7843 for (i = 0; i < pagesize; ++i)
7844 if (*(data + i) != *(data3 + i))
7a197a62 7845 return 1;
ad6254c5 7846 close (fd);
7a197a62 7847 return 0;
ad6254c5
AK
7848}
7849_ACEOF
7850rm -f conftest$ac_exeext
7a197a62
AK
7851if { (ac_try="$ac_link"
7852case "(($ac_try" in
7853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854 *) ac_try_echo=$ac_try;;
7855esac
68f2de6d 7856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7857 (eval "$ac_link") 2>&5
ad6254c5 7858 ac_status=$?
68f2de6d 7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7861 { (case "(($ac_try" in
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7864esac
68f2de6d 7865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7866 (eval "$ac_try") 2>&5
ad6254c5 7867 ac_status=$?
68f2de6d 7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7869 (exit $ac_status); }; }; then
7870 ac_cv_func_mmap_fixed_mapped=yes
7871else
68f2de6d
AK
7872 echo "$as_me: program exited with status $ac_status" >&5
7873echo "$as_me: failed program was:" >&5
ad6254c5
AK
7874sed 's/^/| /' conftest.$ac_ext >&5
7875
7876( exit $ac_status )
7877ac_cv_func_mmap_fixed_mapped=no
7878fi
7a197a62 7879rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7880fi
7a197a62
AK
7881
7882
ad6254c5 7883fi
68f2de6d
AK
7884{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7885echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
7886if test $ac_cv_func_mmap_fixed_mapped = yes; then
7887
7888cat >>confdefs.h <<\_ACEOF
7889#define HAVE_MMAP 1
7890_ACEOF
7891
7892fi
7893rm -f conftest.mmap
7894
68f2de6d
AK
7895{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
7896echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
ad6254c5 7897if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
68f2de6d 7898 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7899else
7900 if test "$cross_compiling" = yes; then
7901 ac_cv_func_stat_empty_string_bug=yes
7902else
7903 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7904/* confdefs.h. */
7905_ACEOF
7906cat confdefs.h >>conftest.$ac_ext
7907cat >>conftest.$ac_ext <<_ACEOF
7908/* end confdefs.h. */
7909$ac_includes_default
7910int
7911main ()
7912{
7913struct stat sbuf;
7a197a62 7914 return stat ("", &sbuf) == 0;
ad6254c5
AK
7915 ;
7916 return 0;
7917}
7918_ACEOF
7919rm -f conftest$ac_exeext
7a197a62
AK
7920if { (ac_try="$ac_link"
7921case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7924esac
68f2de6d 7925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7926 (eval "$ac_link") 2>&5
ad6254c5 7927 ac_status=$?
68f2de6d 7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7930 { (case "(($ac_try" in
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7933esac
68f2de6d 7934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7935 (eval "$ac_try") 2>&5
ad6254c5 7936 ac_status=$?
68f2de6d 7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7938 (exit $ac_status); }; }; then
7a197a62 7939 ac_cv_func_stat_empty_string_bug=no
ad6254c5 7940else
68f2de6d
AK
7941 echo "$as_me: program exited with status $ac_status" >&5
7942echo "$as_me: failed program was:" >&5
ad6254c5
AK
7943sed 's/^/| /' conftest.$ac_ext >&5
7944
7945( exit $ac_status )
7a197a62 7946ac_cv_func_stat_empty_string_bug=yes
ad6254c5 7947fi
7a197a62 7948rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7949fi
7a197a62
AK
7950
7951
ad6254c5 7952fi
68f2de6d
AK
7953{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
7954echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 7955if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 7956 case " $LIBOBJS " in
8a2fc586 7957 *" stat.$ac_objext "* ) ;;
7a197a62
AK
7958 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
7959 ;;
8a2fc586
AK
7960esac
7961
ad6254c5
AK
7962
7963cat >>confdefs.h <<_ACEOF
7964#define HAVE_STAT_EMPTY_STRING_BUG 1
7965_ACEOF
7966
7967fi
7968
68f2de6d
AK
7969{ echo "$as_me:$LINENO: checking for working strtod" >&5
7970echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
ad6254c5 7971if test "${ac_cv_func_strtod+set}" = set; then
68f2de6d 7972 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7973else
7974 if test "$cross_compiling" = yes; then
7975 ac_cv_func_strtod=no
7976else
7977 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7978/* confdefs.h. */
7979_ACEOF
7980cat confdefs.h >>conftest.$ac_ext
7981cat >>conftest.$ac_ext <<_ACEOF
7982/* end confdefs.h. */
7983
7a197a62
AK
7984$ac_includes_default
7985#ifndef strtod
ad6254c5 7986double strtod ();
7a197a62 7987#endif
ad6254c5
AK
7988int
7989main()
7990{
7991 {
7992 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
7993 char *string = " +69";
7994 char *term;
7995 double value;
7996 value = strtod (string, &term);
7997 if (value != 69 || term != (string + 4))
7a197a62 7998 return 1;
ad6254c5
AK
7999 }
8000
8001 {
8002 /* Under Solaris 2.4, strtod returns the wrong value for the
8003 terminating character under some conditions. */
8004 char *string = "NaN";
8005 char *term;
8006 strtod (string, &term);
8007 if (term != string && *(term - 1) == 0)
7a197a62 8008 return 1;
ad6254c5 8009 }
7a197a62 8010 return 0;
ad6254c5
AK
8011}
8012
8013_ACEOF
8014rm -f conftest$ac_exeext
7a197a62
AK
8015if { (ac_try="$ac_link"
8016case "(($ac_try" in
8017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018 *) ac_try_echo=$ac_try;;
8019esac
68f2de6d 8020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8021 (eval "$ac_link") 2>&5
ad6254c5 8022 ac_status=$?
68f2de6d 8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8025 { (case "(($ac_try" in
8026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027 *) ac_try_echo=$ac_try;;
8028esac
68f2de6d 8029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8030 (eval "$ac_try") 2>&5
ad6254c5 8031 ac_status=$?
68f2de6d 8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8033 (exit $ac_status); }; }; then
8034 ac_cv_func_strtod=yes
8035else
68f2de6d
AK
8036 echo "$as_me: program exited with status $ac_status" >&5
8037echo "$as_me: failed program was:" >&5
ad6254c5
AK
8038sed 's/^/| /' conftest.$ac_ext >&5
8039
8040( exit $ac_status )
8041ac_cv_func_strtod=no
8042fi
7a197a62 8043rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8044fi
7a197a62
AK
8045
8046
ad6254c5 8047fi
68f2de6d
AK
8048{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8049echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
ad6254c5 8050if test $ac_cv_func_strtod = no; then
7a197a62 8051 case " $LIBOBJS " in
8a2fc586 8052 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
8053 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8054 ;;
8a2fc586
AK
8055esac
8056
68f2de6d
AK
8057{ echo "$as_me:$LINENO: checking for pow" >&5
8058echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
ad6254c5 8059if test "${ac_cv_func_pow+set}" = set; then
68f2de6d 8060 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8061else
8062 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8063/* confdefs.h. */
8064_ACEOF
8065cat confdefs.h >>conftest.$ac_ext
8066cat >>conftest.$ac_ext <<_ACEOF
8067/* end confdefs.h. */
8a2fc586
AK
8068/* Define pow to an innocuous variant, in case <limits.h> declares pow.
8069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8070#define pow innocuous_pow
8071
ad6254c5
AK
8072/* System header to define __stub macros and hopefully few prototypes,
8073 which can conflict with char pow (); below.
8074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8075 <limits.h> exists even on freestanding compilers. */
8a2fc586 8076
ad6254c5
AK
8077#ifdef __STDC__
8078# include <limits.h>
8079#else
8080# include <assert.h>
8081#endif
8a2fc586
AK
8082
8083#undef pow
8084
7a197a62
AK
8085/* Override any GCC internal prototype to avoid an error.
8086 Use char because int might match the return type of a GCC
8087 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8088#ifdef __cplusplus
8089extern "C"
ad6254c5 8090#endif
ad6254c5
AK
8091char pow ();
8092/* The GNU C library defines this for functions which it implements
8093 to always fail with ENOSYS. Some functions are actually named
8094 something starting with __ and the normal name is an alias. */
7a197a62 8095#if defined __stub_pow || defined __stub___pow
ad6254c5 8096choke me
ad6254c5
AK
8097#endif
8098
8099int
8100main ()
8101{
7a197a62 8102return pow ();
ad6254c5
AK
8103 ;
8104 return 0;
8105}
8106_ACEOF
8107rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8108if { (ac_try="$ac_link"
8109case "(($ac_try" in
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8112esac
68f2de6d 8113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8114 (eval "$ac_link") 2>conftest.er1
ad6254c5 8115 ac_status=$?
8a2fc586
AK
8116 grep -v '^ *+' conftest.er1 >conftest.err
8117 rm -f conftest.er1
8118 cat conftest.err >&5
68f2de6d 8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8120 (exit $ac_status); } && {
8121 test -z "$ac_c_werror_flag" ||
8122 test ! -s conftest.err
68f2de6d
AK
8123 } && test -s conftest$ac_exeext &&
8124 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8125 ac_cv_func_pow=yes
8126else
68f2de6d 8127 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8128sed 's/^/| /' conftest.$ac_ext >&5
8129
7a197a62 8130 ac_cv_func_pow=no
ad6254c5 8131fi
7a197a62 8132
25fbec5b 8133rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8134 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8135fi
68f2de6d
AK
8136{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8137echo "${ECHO_T}$ac_cv_func_pow" >&6; }
ad6254c5
AK
8138
8139if test $ac_cv_func_pow = no; then
68f2de6d
AK
8140 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
8141echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
ad6254c5 8142if test "${ac_cv_lib_m_pow+set}" = set; then
68f2de6d 8143 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8144else
8145 ac_check_lib_save_LIBS=$LIBS
8146LIBS="-lm $LIBS"
8147cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8148/* confdefs.h. */
8149_ACEOF
8150cat confdefs.h >>conftest.$ac_ext
8151cat >>conftest.$ac_ext <<_ACEOF
8152/* end confdefs.h. */
8153
7a197a62
AK
8154/* Override any GCC internal prototype to avoid an error.
8155 Use char because int might match the return type of a GCC
8156 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8157#ifdef __cplusplus
8158extern "C"
8159#endif
ad6254c5
AK
8160char pow ();
8161int
8162main ()
8163{
7a197a62 8164return pow ();
ad6254c5
AK
8165 ;
8166 return 0;
8167}
8168_ACEOF
8169rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8170if { (ac_try="$ac_link"
8171case "(($ac_try" in
8172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173 *) ac_try_echo=$ac_try;;
8174esac
68f2de6d 8175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8176 (eval "$ac_link") 2>conftest.er1
ad6254c5 8177 ac_status=$?
8a2fc586
AK
8178 grep -v '^ *+' conftest.er1 >conftest.err
8179 rm -f conftest.er1
8180 cat conftest.err >&5
68f2de6d 8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8182 (exit $ac_status); } && {
8183 test -z "$ac_c_werror_flag" ||
8184 test ! -s conftest.err
68f2de6d
AK
8185 } && test -s conftest$ac_exeext &&
8186 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8187 ac_cv_lib_m_pow=yes
8188else
68f2de6d 8189 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8190sed 's/^/| /' conftest.$ac_ext >&5
8191
7a197a62 8192 ac_cv_lib_m_pow=no
ad6254c5 8193fi
7a197a62 8194
25fbec5b 8195rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8196 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8197LIBS=$ac_check_lib_save_LIBS
d0191583 8198fi
68f2de6d
AK
8199{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8200echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
d0191583
JM
8201if test $ac_cv_lib_m_pow = yes; then
8202 POW_LIB=-lm
8203else
68f2de6d
AK
8204 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8205echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 8206fi
72b2cb61 8207
d0191583 8208fi
72b2cb61 8209
ad6254c5
AK
8210fi
8211
ad6254c5 8212
d0191583
JM
8213for ac_func in vprintf
8214do
68f2de6d
AK
8215as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8216{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8217echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
d0191583 8218if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 8219 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 8220else
d0191583
JM
8221 cat >conftest.$ac_ext <<_ACEOF
8222/* confdefs.h. */
8223_ACEOF
8224cat confdefs.h >>conftest.$ac_ext
8225cat >>conftest.$ac_ext <<_ACEOF
8226/* end confdefs.h. */
8227/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8229#define $ac_func innocuous_$ac_func
7a197a62 8230
d0191583
JM
8231/* System header to define __stub macros and hopefully few prototypes,
8232 which can conflict with char $ac_func (); below.
8233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8234 <limits.h> exists even on freestanding compilers. */
ad6254c5 8235
d0191583
JM
8236#ifdef __STDC__
8237# include <limits.h>
8238#else
8239# include <assert.h>
8240#endif
ad6254c5 8241
d0191583 8242#undef $ac_func
72b2cb61 8243
d0191583
JM
8244/* Override any GCC internal prototype to avoid an error.
8245 Use char because int might match the return type of a GCC
8246 builtin and then its argument prototype would still apply. */
8247#ifdef __cplusplus
8248extern "C"
8249#endif
8250char $ac_func ();
8251/* The GNU C library defines this for functions which it implements
8252 to always fail with ENOSYS. Some functions are actually named
8253 something starting with __ and the normal name is an alias. */
8254#if defined __stub_$ac_func || defined __stub___$ac_func
8255choke me
8256#endif
8257
8258int
8259main ()
8260{
8261return $ac_func ();
8262 ;
8263 return 0;
8264}
72b2cb61 8265_ACEOF
d0191583
JM
8266rm -f conftest.$ac_objext conftest$ac_exeext
8267if { (ac_try="$ac_link"
8268case "(($ac_try" in
8269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270 *) ac_try_echo=$ac_try;;
8271esac
68f2de6d 8272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
8273 (eval "$ac_link") 2>conftest.er1
8274 ac_status=$?
8275 grep -v '^ *+' conftest.er1 >conftest.err
8276 rm -f conftest.er1
8277 cat conftest.err >&5
68f2de6d 8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8279 (exit $ac_status); } && {
8280 test -z "$ac_c_werror_flag" ||
8281 test ! -s conftest.err
68f2de6d
AK
8282 } && test -s conftest$ac_exeext &&
8283 $as_test_x conftest$ac_exeext; then
d0191583
JM
8284 eval "$as_ac_var=yes"
8285else
68f2de6d 8286 echo "$as_me: failed program was:" >&5
d0191583 8287sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8288
d0191583 8289 eval "$as_ac_var=no"
ad6254c5
AK
8290fi
8291
d0191583
JM
8292rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8293 conftest$ac_exeext conftest.$ac_ext
7a197a62 8294fi
68f2de6d
AK
8295ac_res=`eval echo '${'$as_ac_var'}'`
8296 { echo "$as_me:$LINENO: result: $ac_res" >&5
8297echo "${ECHO_T}$ac_res" >&6; }
8298if test `eval echo '${'$as_ac_var'}'` = yes; then
d0191583 8299 cat >>confdefs.h <<_ACEOF
68f2de6d 8300#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 8301_ACEOF
7a197a62 8302
68f2de6d
AK
8303{ echo "$as_me:$LINENO: checking for _doprnt" >&5
8304echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
d0191583 8305if test "${ac_cv_func__doprnt+set}" = set; then
68f2de6d 8306 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 8307else
d0191583
JM
8308 cat >conftest.$ac_ext <<_ACEOF
8309/* confdefs.h. */
8310_ACEOF
8311cat confdefs.h >>conftest.$ac_ext
8312cat >>conftest.$ac_ext <<_ACEOF
8313/* end confdefs.h. */
8314/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8316#define _doprnt innocuous__doprnt
7a197a62 8317
d0191583
JM
8318/* System header to define __stub macros and hopefully few prototypes,
8319 which can conflict with char _doprnt (); below.
8320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8321 <limits.h> exists even on freestanding compilers. */
ad6254c5 8322
d0191583
JM
8323#ifdef __STDC__
8324# include <limits.h>
8325#else
8326# include <assert.h>
8327#endif
72b2cb61 8328
d0191583
JM
8329#undef _doprnt
8330
8331/* Override any GCC internal prototype to avoid an error.
8332 Use char because int might match the return type of a GCC
8333 builtin and then its argument prototype would still apply. */
8334#ifdef __cplusplus
8335extern "C"
8336#endif
8337char _doprnt ();
8338/* The GNU C library defines this for functions which it implements
8339 to always fail with ENOSYS. Some functions are actually named
8340 something starting with __ and the normal name is an alias. */
8341#if defined __stub__doprnt || defined __stub____doprnt
8342choke me
8343#endif
8344
8345int
8346main ()
8347{
8348return _doprnt ();
8349 ;
8350 return 0;
8351}
72b2cb61 8352_ACEOF
d0191583
JM
8353rm -f conftest.$ac_objext conftest$ac_exeext
8354if { (ac_try="$ac_link"
8355case "(($ac_try" in
8356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357 *) ac_try_echo=$ac_try;;
8358esac
68f2de6d 8359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
8360 (eval "$ac_link") 2>conftest.er1
8361 ac_status=$?
8362 grep -v '^ *+' conftest.er1 >conftest.err
8363 rm -f conftest.er1
8364 cat conftest.err >&5
68f2de6d 8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8366 (exit $ac_status); } && {
8367 test -z "$ac_c_werror_flag" ||
8368 test ! -s conftest.err
68f2de6d
AK
8369 } && test -s conftest$ac_exeext &&
8370 $as_test_x conftest$ac_exeext; then
d0191583
JM
8371 ac_cv_func__doprnt=yes
8372else
68f2de6d 8373 echo "$as_me: failed program was:" >&5
d0191583 8374sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8375
d0191583 8376 ac_cv_func__doprnt=no
ad6254c5
AK
8377fi
8378
d0191583
JM
8379rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8380 conftest$ac_exeext conftest.$ac_ext
7a197a62 8381fi
68f2de6d
AK
8382{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8383echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
d0191583 8384if test $ac_cv_func__doprnt = yes; then
7a197a62 8385
d0191583
JM
8386cat >>confdefs.h <<\_ACEOF
8387#define HAVE_DOPRNT 1
8388_ACEOF
ad6254c5 8389
7a197a62
AK
8390fi
8391
d0191583
JM
8392fi
8393done
8b1a3214 8394
ad6254c5 8395
7a197a62 8396
d0191583 8397################################################################################
ad6254c5 8398
ad6254c5
AK
8399
8400################################################################################
68f2de6d
AK
8401{ echo "$as_me:$LINENO: checking file owner" >&5
8402echo $ECHO_N "checking file owner... $ECHO_C" >&6; }
d0191583
JM
8403OWNER="root"
8404
8405
8406# Check whether --with-user was given.
8407if test "${with_user+set}" = set; then
8408 withval=$with_user; OWNER="$withval"
7a197a62
AK
8409fi
8410
68f2de6d
AK
8411{ echo "$as_me:$LINENO: result: $OWNER" >&5
8412echo "${ECHO_T}$OWNER" >&6; }
ad6254c5 8413
d0191583
JM
8414if test x$OWNER != x; then
8415 OWNER="-o $OWNER"
ad6254c5
AK
8416fi
8417
8418################################################################################
68f2de6d
AK
8419{ echo "$as_me:$LINENO: checking group owner" >&5
8420echo $ECHO_N "checking group owner... $ECHO_C" >&6; }
d0191583 8421GROUP="root"
ad6254c5 8422
d0191583
JM
8423# Check whether --with-group was given.
8424if test "${with_group+set}" = set; then
8425 withval=$with_group; GROUP="$withval"
7a197a62
AK
8426fi
8427
68f2de6d
AK
8428{ echo "$as_me:$LINENO: result: $GROUP" >&5
8429echo "${ECHO_T}$GROUP" >&6; }
d0191583
JM
8430
8431if test x$GROUP != x; then
8432 GROUP="-g $GROUP"
8433fi
ad6254c5 8434
93bd259b
AK
8435################################################################################
8436{ echo "$as_me:$LINENO: checking device node mode" >&5
8437echo $ECHO_N "checking device node mode... $ECHO_C" >&6; }
8438
8439
8440# Check whether --with-device-mode was given.
8441if test "${with_device_mode+set}" = set; then
8442 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
8443else
8444 DM_DEVICE_MODE="0600"
8445fi
8446
8447{ echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
8448echo "${ECHO_T}$DM_DEVICE_MODE" >&6; }
8449
ad6254c5 8450################################################################################
68f2de6d
AK
8451{ echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
8452echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6; }
d0191583
JM
8453# Check whether --enable-lvm1_fallback was given.
8454if test "${enable_lvm1_fallback+set}" = set; then
8455 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
8456else
8457 LVM1_FALLBACK=no
7a197a62
AK
8458fi
8459
68f2de6d
AK
8460{ echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
8461echo "${ECHO_T}$LVM1_FALLBACK" >&6; }
ad6254c5 8462
d0191583 8463if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
8464
8465cat >>confdefs.h <<\_ACEOF
d0191583 8466#define LVM1_FALLBACK 1
72b2cb61
AK
8467_ACEOF
8468
ad6254c5
AK
8469fi
8470
8471################################################################################
68f2de6d
AK
8472{ echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
8473echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6; }
d0191583
JM
8474
8475# Check whether --with-lvm1 was given.
8476if test "${with_lvm1+set}" = set; then
8477 withval=$with_lvm1; LVM1="$withval"
8478else
8479 LVM1="internal"
7a197a62
AK
8480fi
8481
68f2de6d
AK
8482{ echo "$as_me:$LINENO: result: $LVM1" >&5
8483echo "${ECHO_T}$LVM1" >&6; }
ad6254c5 8484
d0191583 8485if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
68f2de6d 8486 then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 8487" >&5
68f2de6d 8488echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
8489" >&2;}
8490 { (exit 1); exit 1; }; }
8491fi;
8492
8493if test x$LVM1 = xinternal; then
72b2cb61
AK
8494
8495cat >>confdefs.h <<\_ACEOF
d0191583 8496#define LVM1_INTERNAL 1
72b2cb61
AK
8497_ACEOF
8498
ad6254c5
AK
8499fi
8500
8501################################################################################
68f2de6d
AK
8502{ echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
8503echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6; }
d0191583
JM
8504
8505# Check whether --with-pool was given.
8506if test "${with_pool+set}" = set; then
8507 withval=$with_pool; POOL="$withval"
ad6254c5 8508else
d0191583 8509 POOL="internal"
7a197a62
AK
8510fi
8511
68f2de6d
AK
8512{ echo "$as_me:$LINENO: result: $POOL" >&5
8513echo "${ECHO_T}$POOL" >&6; }
ad6254c5 8514
d0191583 8515if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
68f2de6d 8516 then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 8517" >&5
68f2de6d 8518echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
8519" >&2;}
8520 { (exit 1); exit 1; }; }
8521fi;
7a197a62 8522
d0191583
JM
8523if test x$POOL = xinternal; then
8524
8525cat >>confdefs.h <<\_ACEOF
8526#define POOL_INTERNAL 1
8527_ACEOF
8528
8529fi
ad6254c5 8530
06f62ad1 8531################################################################################
68f2de6d
AK
8532{ echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
8533echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6; }
d0191583
JM
8534
8535# Check whether --with-cluster was given.
8536if test "${with_cluster+set}" = set; then
8537 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
8538fi
8539
68f2de6d
AK
8540{ echo "$as_me:$LINENO: result: $CLUSTER" >&5
8541echo "${ECHO_T}$CLUSTER" >&6; }
06f62ad1 8542
d0191583 8543if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
68f2de6d 8544 then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 8545" >&5
68f2de6d 8546echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
8547" >&2;}
8548 { (exit 1); exit 1; }; }
d0191583 8549fi;
06f62ad1 8550
d0191583 8551if test x$CLUSTER = xinternal; then
72b2cb61
AK
8552
8553cat >>confdefs.h <<\_ACEOF
d0191583 8554#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
8555_ACEOF
8556
15d91f5a 8557fi
ad6254c5
AK
8558
8559################################################################################
68f2de6d
AK
8560{ echo "$as_me:$LINENO: checking whether to include snapshots" >&5
8561echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6; }
ad6254c5 8562
d0191583
JM
8563# Check whether --with-snapshots was given.
8564if test "${with_snapshots+set}" = set; then
8565 withval=$with_snapshots; SNAPSHOTS="$withval"
8566else
8567 SNAPSHOTS="internal"
ad6254c5
AK
8568fi
8569
68f2de6d
AK
8570{ echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
8571echo "${ECHO_T}$SNAPSHOTS" >&6; }
ad6254c5 8572
d0191583 8573if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
68f2de6d 8574 then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 8575" >&5
68f2de6d 8576echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
8577" >&2;}
8578 { (exit 1); exit 1; }; }
8579fi;
8580
8581if test x$SNAPSHOTS = xinternal; then
8582
8583cat >>confdefs.h <<\_ACEOF
8584#define SNAPSHOT_INTERNAL 1
8585_ACEOF
ad6254c5 8586
ad6254c5 8587fi
7a197a62 8588
d0191583 8589################################################################################
68f2de6d
AK
8590{ echo "$as_me:$LINENO: checking whether to include mirrors" >&5
8591echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6; }
d0191583
JM
8592
8593# Check whether --with-mirrors was given.
8594if test "${with_mirrors+set}" = set; then
8595 withval=$with_mirrors; MIRRORS="$withval"
8596else
8597 MIRRORS="internal"
ad6254c5 8598fi
ad6254c5 8599
68f2de6d
AK
8600{ echo "$as_me:$LINENO: result: $MIRRORS" >&5
8601echo "${ECHO_T}$MIRRORS" >&6; }
ad6254c5 8602
d0191583 8603if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
68f2de6d 8604 then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 8605" >&5
68f2de6d 8606echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
8607" >&2;}
8608 { (exit 1); exit 1; }; }
8609fi;
ad6254c5 8610
d0191583 8611if test x$MIRRORS = xinternal; then
ad6254c5 8612
d0191583
JM
8613cat >>confdefs.h <<\_ACEOF
8614#define MIRRORED_INTERNAL 1
ad6254c5 8615_ACEOF
8a2fc586 8616
d0191583 8617fi
8a2fc586 8618
d0191583 8619################################################################################
68f2de6d
AK
8620{ echo "$as_me:$LINENO: checking whether to enable readline" >&5
8621echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6; }
d0191583
JM
8622# Check whether --enable-readline was given.
8623if test "${enable_readline+set}" = set; then
8624 enableval=$enable_readline; READLINE=$enableval
8625else
06e459df 8626 READLINE=maybe
d0191583 8627fi
8a2fc586 8628
68f2de6d
AK
8629{ echo "$as_me:$LINENO: result: $READLINE" >&5
8630echo "${ECHO_T}$READLINE" >&6; }
8a2fc586 8631
d0191583 8632################################################################################
68f2de6d
AK
8633{ echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
8634echo $ECHO_N "checking whether to enable realtime support... $ECHO_C" >&6; }
d0191583
JM
8635# Check whether --enable-realtime was given.
8636if test "${enable_realtime+set}" = set; then
8637 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 8638fi
ad6254c5 8639
68f2de6d
AK
8640{ echo "$as_me:$LINENO: result: $REALTIME" >&5
8641echo "${ECHO_T}$REALTIME" >&6; }
d0191583
JM
8642
8643################################################################################
68f2de6d
AK
8644{ echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
8645echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6; }
d0191583
JM
8646
8647# Check whether --with-clvmd was given.
8648if test "${with_clvmd+set}" = set; then
8649 withval=$with_clvmd; CLVMD="$withval"
ad6254c5 8650else
d0191583
JM
8651 CLVMD="none"
8652fi
8a2fc586 8653
d0191583
JM
8654if test x$CLVMD = xyes; then
8655 CLVMD=all
8656fi
68f2de6d
AK
8657{ echo "$as_me:$LINENO: result: $CLVMD" >&5
8658echo "${ECHO_T}$CLVMD" >&6; }
8a2fc586 8659
d0191583
JM
8660if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
8661 CLUSTER=internal
8662fi
8a2fc586 8663
d0191583 8664################################################################################
68f2de6d
AK
8665{ echo "$as_me:$LINENO: checking whether to enable debugging" >&5
8666echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; }
d0191583
JM
8667# Check whether --enable-debug was given.
8668if test "${enable_debug+set}" = set; then
8669 enableval=$enable_debug; DEBUG=$enableval
8670else
8671 DEBUG=no
8672fi
8a2fc586 8673
68f2de6d
AK
8674{ echo "$as_me:$LINENO: result: $DEBUG" >&5
8675echo "${ECHO_T}$DEBUG" >&6; }
ad6254c5 8676
d0191583
JM
8677if test x$DEBUG = xyes; then
8678 COPTIMISE_FLAG=
fc54be10 8679else
d0191583
JM
8680 CSCOPE_CMD=
8681fi
fc54be10 8682
d0191583 8683################################################################################
68f2de6d
AK
8684{ echo "$as_me:$LINENO: checking for C optimisation flag" >&5
8685echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6; }
d0191583
JM
8686
8687# Check whether --with-optimisation was given.
8688if test "${with_optimisation+set}" = set; then
8689 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
8690fi
8691
68f2de6d
AK
8692{ echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
8693echo "${ECHO_T}$COPTIMISE_FLAG" >&6; }
fddafd51
ZK
8694
8695################################################################################
68f2de6d
AK
8696{ echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
8697echo $ECHO_N "checking whether to gather gcov profiling data... $ECHO_C" >&6; }
fddafd51
ZK
8698# Check whether --enable-profiling was given.
8699if test "${enable_profiling+set}" = set; then
5556819a 8700 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 8701else
5556819a 8702 PROFILING=no
fddafd51
ZK
8703fi
8704
68f2de6d
AK
8705{ echo "$as_me:$LINENO: result: $PROFILING" >&5
8706echo "${ECHO_T}$PROFILING" >&6; }
5556819a
AK
8707
8708if test "x$PROFILING" = xyes; then
8709 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8710 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 8711set dummy lcov; ac_word=$2
68f2de6d
AK
8712{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fddafd51 8714if test "${ac_cv_path_LCOV+set}" = set; then
68f2de6d 8715 echo $ECHO_N "(cached) $ECHO_C" >&6
fddafd51
ZK
8716else
8717 case $LCOV in
8718 [\\/]* | ?:[\\/]*)
8719 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8720 ;;
8721 *)
8722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723for as_dir in $PATH
8724do
8725 IFS=$as_save_IFS
8726 test -z "$as_dir" && as_dir=.
8727 for ac_exec_ext in '' $ac_executable_extensions; do
8728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8729 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 8730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
8731 break 2
8732 fi
8733done
8734done
8735IFS=$as_save_IFS
8736
b145d876 8737 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
fddafd51
ZK
8738 ;;
8739esac
8740fi
8741LCOV=$ac_cv_path_LCOV
8742if test -n "$LCOV"; then
68f2de6d
AK
8743 { echo "$as_me:$LINENO: result: $LCOV" >&5
8744echo "${ECHO_T}$LCOV" >&6; }
fddafd51 8745else
68f2de6d
AK
8746 { echo "$as_me:$LINENO: result: no" >&5
8747echo "${ECHO_T}no" >&6; }
fddafd51
ZK
8748fi
8749
8750
5556819a 8751 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 8752set dummy genhtml; ac_word=$2
68f2de6d
AK
8753{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fddafd51 8755if test "${ac_cv_path_GENHTML+set}" = set; then
68f2de6d 8756 echo $ECHO_N "(cached) $ECHO_C" >&6
fddafd51
ZK
8757else
8758 case $GENHTML in
8759 [\\/]* | ?:[\\/]*)
8760 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8761 ;;
8762 *)
8763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8764for as_dir in $PATH
8765do
8766 IFS=$as_save_IFS
8767 test -z "$as_dir" && as_dir=.
8768 for ac_exec_ext in '' $ac_executable_extensions; do
8769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8770 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 8771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
8772 break 2
8773 fi
8774done
8775done
8776IFS=$as_save_IFS
8777
b145d876 8778 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
fddafd51
ZK
8779 ;;
8780esac
8781fi
8782GENHTML=$ac_cv_path_GENHTML
8783if test -n "$GENHTML"; then
68f2de6d
AK
8784 { echo "$as_me:$LINENO: result: $GENHTML" >&5
8785echo "${ECHO_T}$GENHTML" >&6; }
fddafd51 8786else
68f2de6d
AK
8787 { echo "$as_me:$LINENO: result: no" >&5
8788echo "${ECHO_T}no" >&6; }
fddafd51
ZK
8789fi
8790
8791
b145d876 8792 if test "$LCOV" = no -o "$GENHTML" = no ; then
68f2de6d
AK
8793 { { echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
8794echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
8795 { (exit 1); exit 1; }; }
8796 fi
5556819a 8797fi
d0191583
JM
8798
8799################################################################################
68f2de6d
AK
8800{ echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
8801echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6; }
d0191583
JM
8802# Check whether --enable-devmapper was given.
8803if test "${enable_devmapper+set}" = set; then
8804 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
8805fi
8806
68f2de6d
AK
8807{ echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
8808echo "${ECHO_T}$DEVMAPPER" >&6; }
d0191583
JM
8809
8810if test x$DEVMAPPER = xyes; then
ad6254c5
AK
8811
8812cat >>confdefs.h <<\_ACEOF
d0191583 8813#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
8814_ACEOF
8815
8816fi
8817
93bd259b
AK
8818################################################################################
8819# Check whether --enable-compat was given.
8820if test "${enable_compat+set}" = set; then
8821 enableval=$enable_compat; DM_COMPAT=$enableval
8822else
8823 DM_COMPAT=no
8824fi
8825
8826
8827################################################################################
8828# Check whether --enable-ioctl was given.
8829if test "${enable_ioctl+set}" = set; then
8830 enableval=$enable_ioctl; DM_IOCTLS=$enableval
8831fi
8832
8833
d0191583 8834################################################################################
68f2de6d
AK
8835{ echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
8836echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6; }
d0191583
JM
8837# Check whether --enable-o_direct was given.
8838if test "${enable_o_direct+set}" = set; then
8839 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 8840fi
ad6254c5 8841
68f2de6d
AK
8842{ echo "$as_me:$LINENO: result: $ODIRECT" >&5
8843echo "${ECHO_T}$ODIRECT" >&6; }
ad6254c5 8844
d0191583 8845if test x$ODIRECT = xyes; then
ad6254c5 8846
d0191583
JM
8847cat >>confdefs.h <<\_ACEOF
8848#define O_DIRECT_SUPPORT 1
8849_ACEOF
ad6254c5 8850
d0191583 8851fi
ad6254c5 8852
d0191583 8853################################################################################
68f2de6d
AK
8854{ echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
8855echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6; }
d0191583
JM
8856# Check whether --enable-cmdlib was given.
8857if test "${enable_cmdlib+set}" = set; then
8858 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 8859else
d0191583
JM
8860 CMDLIB=no
8861fi
8a2fc586 8862
68f2de6d
AK
8863{ echo "$as_me:$LINENO: result: $CMDLIB" >&5
8864echo "${ECHO_T}$CMDLIB" >&6; }
8a2fc586 8865
2a9a80c9 8866test x$CMDLIB = xyes \
d179cc7a
JM
8867 && LVM2CMD_LIB=-llvm2cmd \
8868 || LVM2CMD_LIB=
8869
93bd259b
AK
8870################################################################################
8871# Check whether --enable-pkgconfig was given.
8872if test "${enable_pkgconfig+set}" = set; then
8873 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
8874else
8875 PKGCONFIG=no
8876fi
8877
2a9a80c9 8878
d0191583 8879################################################################################
68f2de6d
AK
8880{ echo "$as_me:$LINENO: checking whether to install fsadm" >&5
8881echo $ECHO_N "checking whether to install fsadm... $ECHO_C" >&6; }
d0191583
JM
8882# Check whether --enable-fsadm was given.
8883if test "${enable_fsadm+set}" = set; then
8884 enableval=$enable_fsadm; FSADM=$enableval
8885fi
8a2fc586 8886
68f2de6d
AK
8887{ echo "$as_me:$LINENO: result: $FSADM" >&5
8888echo "${ECHO_T}$FSADM" >&6; }
8a2fc586 8889
d0191583 8890################################################################################
68f2de6d
AK
8891{ echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
8892echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6; }
d0191583
JM
8893# Check whether --enable-dmeventd was given.
8894if test "${enable_dmeventd+set}" = set; then
8895 enableval=$enable_dmeventd; DMEVENTD=$enableval
8896fi
ad6254c5 8897
68f2de6d
AK
8898{ echo "$as_me:$LINENO: result: $DMEVENTD" >&5
8899echo "${ECHO_T}$DMEVENTD" >&6; }
ad6254c5 8900
93bd259b
AK
8901BUILD_DMEVENTD=$DMEVENTD
8902
2a9a80c9
PR
8903if test x$DMEVENTD = xyes; then
8904 if test x$MIRRORS != xinternal; then
68f2de6d 8905 { { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 8906 " >&5
68f2de6d 8907echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 8908 " >&2;}
d0191583 8909 { (exit 1); exit 1; }; }
2a9a80c9
PR
8910 fi
8911 if test x$CMDLIB = xno; then
68f2de6d 8912 { { echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 8913 " >&5
68f2de6d 8914echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
8915 " >&2;}
8916 { (exit 1); exit 1; }; }
8917 fi
ad6254c5 8918fi
7a197a62 8919
d0191583
JM
8920if test x$DMEVENTD = xyes; then
8921
8922cat >>confdefs.h <<\_ACEOF
8923#define DMEVENTD 1
ad6254c5
AK
8924_ACEOF
8925
ad6254c5 8926fi
93bd259b
AK
8927
8928################################################################################
8929
8930{ echo "$as_me:$LINENO: checking for getline in -lc" >&5
8931echo $ECHO_N "checking for getline in -lc... $ECHO_C" >&6; }
8932if test "${ac_cv_lib_c_getline+set}" = set; then
8933 echo $ECHO_N "(cached) $ECHO_C" >&6
8934else
8935 ac_check_lib_save_LIBS=$LIBS
8936LIBS="-lc $LIBS"
8937cat >conftest.$ac_ext <<_ACEOF
8938/* confdefs.h. */
8939_ACEOF
8940cat confdefs.h >>conftest.$ac_ext
8941cat >>conftest.$ac_ext <<_ACEOF
8942/* end confdefs.h. */
8943
8944/* Override any GCC internal prototype to avoid an error.
8945 Use char because int might match the return type of a GCC
8946 builtin and then its argument prototype would still apply. */
8947#ifdef __cplusplus
8948extern "C"
8949#endif
8950char getline ();
8951int
8952main ()
8953{
8954return getline ();
8955 ;
8956 return 0;
8957}
8958_ACEOF
8959rm -f conftest.$ac_objext conftest$ac_exeext
8960if { (ac_try="$ac_link"
8961case "(($ac_try" in
8962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963 *) ac_try_echo=$ac_try;;
8964esac
8965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966 (eval "$ac_link") 2>conftest.er1
8967 ac_status=$?
8968 grep -v '^ *+' conftest.er1 >conftest.err
8969 rm -f conftest.er1
8970 cat conftest.err >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); } && {
8973 test -z "$ac_c_werror_flag" ||
8974 test ! -s conftest.err
8975 } && test -s conftest$ac_exeext &&
8976 $as_test_x conftest$ac_exeext; then
8977 ac_cv_lib_c_getline=yes
8978else
8979 echo "$as_me: failed program was:" >&5
8980sed 's/^/| /' conftest.$ac_ext >&5
8981
8982 ac_cv_lib_c_getline=no
8983fi
8984
8985rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8986 conftest$ac_exeext conftest.$ac_ext
8987LIBS=$ac_check_lib_save_LIBS
8988fi
8989{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
8990echo "${ECHO_T}$ac_cv_lib_c_getline" >&6; }
8991if test $ac_cv_lib_c_getline = yes; then
8992
8993cat >>confdefs.h <<\_ACEOF
8994#define HAVE_GETLINE 1
8995_ACEOF
8996
8997fi
8998
8999
9000################################################################################
9001
9002{ echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
9003echo $ECHO_N "checking for canonicalize_file_name in -lc... $ECHO_C" >&6; }
9004if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
9005 echo $ECHO_N "(cached) $ECHO_C" >&6
9006else
9007 ac_check_lib_save_LIBS=$LIBS
9008LIBS="-lc $LIBS"
9009cat >conftest.$ac_ext <<_ACEOF
9010/* confdefs.h. */
9011_ACEOF
9012cat confdefs.h >>conftest.$ac_ext
9013cat >>conftest.$ac_ext <<_ACEOF
9014/* end confdefs.h. */
9015
9016/* Override any GCC internal prototype to avoid an error.
9017 Use char because int might match the return type of a GCC
9018 builtin and then its argument prototype would still apply. */
9019#ifdef __cplusplus
9020extern "C"
9021#endif
9022char canonicalize_file_name ();
9023int
9024main ()
9025{
9026return canonicalize_file_name ();
9027 ;
9028 return 0;
9029}
9030_ACEOF
9031rm -f conftest.$ac_objext conftest$ac_exeext
9032if { (ac_try="$ac_link"
9033case "(($ac_try" in
9034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9035 *) ac_try_echo=$ac_try;;
9036esac
9037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9038 (eval "$ac_link") 2>conftest.er1
9039 ac_status=$?
9040 grep -v '^ *+' conftest.er1 >conftest.err
9041 rm -f conftest.er1
9042 cat conftest.err >&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } && {
9045 test -z "$ac_c_werror_flag" ||
9046 test ! -s conftest.err
9047 } && test -s conftest$ac_exeext &&
9048 $as_test_x conftest$ac_exeext; then
9049 ac_cv_lib_c_canonicalize_file_name=yes
9050else
9051 echo "$as_me: failed program was:" >&5
9052sed 's/^/| /' conftest.$ac_ext >&5
9053
9054 ac_cv_lib_c_canonicalize_file_name=no
9055fi
9056
9057rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9058 conftest$ac_exeext conftest.$ac_ext
9059LIBS=$ac_check_lib_save_LIBS
9060fi
9061{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9062echo "${ECHO_T}$ac_cv_lib_c_canonicalize_file_name" >&6; }
9063if test $ac_cv_lib_c_canonicalize_file_name = yes; then
9064
9065cat >>confdefs.h <<\_ACEOF
9066#define HAVE_CANONICALIZE_FILE_NAME 1
9067_ACEOF
9068
9069fi
9070
9071
d0191583
JM
9072################################################################################
9073if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9074 then exec_prefix="";
9075fi;
ad6254c5
AK
9076
9077################################################################################
06e459df 9078if test x$READLINE != xno; then
68f2de6d
AK
9079 { echo "$as_me:$LINENO: checking for library containing tgetent" >&5
9080echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
ad6254c5 9081if test "${ac_cv_search_tgetent+set}" = set; then
68f2de6d 9082 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9083else
9084 ac_func_search_save_LIBS=$LIBS
ad6254c5 9085cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9086/* confdefs.h. */
9087_ACEOF
9088cat confdefs.h >>conftest.$ac_ext
9089cat >>conftest.$ac_ext <<_ACEOF
9090/* end confdefs.h. */
9091
7a197a62
AK
9092/* Override any GCC internal prototype to avoid an error.
9093 Use char because int might match the return type of a GCC
9094 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9095#ifdef __cplusplus
9096extern "C"
9097#endif
ad6254c5
AK
9098char tgetent ();
9099int
9100main ()
9101{
7a197a62 9102return tgetent ();
ad6254c5
AK
9103 ;
9104 return 0;
9105}
9106_ACEOF
7a197a62
AK
9107for ac_lib in '' ncurses curses termcap termlib; do
9108 if test -z "$ac_lib"; then
9109 ac_res="none required"
9110 else
9111 ac_res=-l$ac_lib
9112 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9113 fi
9114 rm -f conftest.$ac_objext conftest$ac_exeext
9115if { (ac_try="$ac_link"
9116case "(($ac_try" in
9117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9118 *) ac_try_echo=$ac_try;;
9119esac
68f2de6d 9120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9121 (eval "$ac_link") 2>conftest.er1
ad6254c5 9122 ac_status=$?
8a2fc586
AK
9123 grep -v '^ *+' conftest.er1 >conftest.err
9124 rm -f conftest.er1
9125 cat conftest.err >&5
68f2de6d 9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9127 (exit $ac_status); } && {
9128 test -z "$ac_c_werror_flag" ||
9129 test ! -s conftest.err
68f2de6d
AK
9130 } && test -s conftest$ac_exeext &&
9131 $as_test_x conftest$ac_exeext; then
7a197a62 9132 ac_cv_search_tgetent=$ac_res
ad6254c5 9133else
68f2de6d 9134 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9135sed 's/^/| /' conftest.$ac_ext >&5
9136
ad6254c5 9137
7a197a62 9138fi
ad6254c5 9139
25fbec5b 9140rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7a197a62
AK
9141 conftest$ac_exeext
9142 if test "${ac_cv_search_tgetent+set}" = set; then
9143 break
ad6254c5 9144fi
7a197a62
AK
9145done
9146if test "${ac_cv_search_tgetent+set}" = set; then
9147 :
9148else
9149 ac_cv_search_tgetent=no
ad6254c5 9150fi
7a197a62 9151rm conftest.$ac_ext
ad6254c5
AK
9152LIBS=$ac_func_search_save_LIBS
9153fi
68f2de6d
AK
9154{ echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
9155echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
7a197a62
AK
9156ac_res=$ac_cv_search_tgetent
9157if test "$ac_res" != no; then
9158 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
06e459df 9159 tg_found=yes
ad6254c5 9160else
06e459df
JM
9161 tg_found=no
9162fi
9163
9164 test x$READLINE:$tg_found = xyes:no &&
68f2de6d 9165 { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the
ad6254c5
AK
9166--enable-readline option (which is enabled by default). Either disable readline
9167support with --disable-readline or download and install termcap from:
9168 ftp.gnu.org/gnu/termcap
9169Note: if you are using precompiled packages you will also need the development
9170 package as well (which may be called termcap-devel or something similar).
9171Note: (n)curses also seems to work as a substitute for termcap. This was
9172 not found either - but you could try installing that as well.
9173" >&5
68f2de6d 9174echo "$as_me: error: termcap could not be found which is required for the
ad6254c5
AK
9175--enable-readline option (which is enabled by default). Either disable readline
9176support with --disable-readline or download and install termcap from:
9177 ftp.gnu.org/gnu/termcap
9178Note: if you are using precompiled packages you will also need the development
9179 package as well (which may be called termcap-devel or something similar).
9180Note: (n)curses also seems to work as a substitute for termcap. This was
9181 not found either - but you could try installing that as well.
9182" >&2;}
9183 { (exit 1); exit 1; }; }
ad6254c5
AK
9184fi
9185
9186################################################################################
68f2de6d
AK
9187{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9188echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
ad6254c5 9189if test "${ac_cv_lib_dl_dlopen+set}" = set; then
68f2de6d 9190 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9191else
9192 ac_check_lib_save_LIBS=$LIBS
9193LIBS="-ldl $LIBS"
9194cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9195/* confdefs.h. */
9196_ACEOF
9197cat confdefs.h >>conftest.$ac_ext
9198cat >>conftest.$ac_ext <<_ACEOF
9199/* end confdefs.h. */
9200
7a197a62
AK
9201/* Override any GCC internal prototype to avoid an error.
9202 Use char because int might match the return type of a GCC
9203 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9204#ifdef __cplusplus
9205extern "C"
9206#endif
ad6254c5
AK
9207char dlopen ();
9208int
9209main ()
9210{
7a197a62 9211return dlopen ();
ad6254c5
AK
9212 ;
9213 return 0;
9214}
9215_ACEOF
9216rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9217if { (ac_try="$ac_link"
9218case "(($ac_try" in
9219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9220 *) ac_try_echo=$ac_try;;
9221esac
68f2de6d 9222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9223 (eval "$ac_link") 2>conftest.er1
ad6254c5 9224 ac_status=$?
8a2fc586
AK
9225 grep -v '^ *+' conftest.er1 >conftest.err
9226 rm -f conftest.er1
9227 cat conftest.err >&5
68f2de6d 9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9229 (exit $ac_status); } && {
9230 test -z "$ac_c_werror_flag" ||
9231 test ! -s conftest.err
68f2de6d
AK
9232 } && test -s conftest$ac_exeext &&
9233 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
9234 ac_cv_lib_dl_dlopen=yes
9235else
68f2de6d 9236 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9237sed 's/^/| /' conftest.$ac_ext >&5
9238
7a197a62 9239 ac_cv_lib_dl_dlopen=no
ad6254c5 9240fi
7a197a62 9241
25fbec5b 9242rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9243 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9244LIBS=$ac_check_lib_save_LIBS
9245fi
68f2de6d
AK
9246{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9247echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
ad6254c5
AK
9248if test $ac_cv_lib_dl_dlopen = yes; then
9249 HAVE_LIBDL=yes
9250else
9251 HAVE_LIBDL=no
9252fi
9253
9254
7e9e9502 9255if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
9256
9257cat >>confdefs.h <<\_ACEOF
9258#define HAVE_LIBDL 1
9259_ACEOF
9260
ad6254c5
AK
9261 LIBS="-ldl $LIBS"
9262else
9263 HAVE_LIBDL=no
9264fi
9265
9266################################################################################
9267if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9268 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
9269 \) -a "x$STATIC_LINK" = xyes ];
68f2de6d 9270 then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 9271" >&5
68f2de6d 9272echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
9273" >&2;}
9274 { (exit 1); exit 1; }; }
9275fi
9276
d0191583 9277################################################################################
68f2de6d
AK
9278{ echo "$as_me:$LINENO: checking whether to use static linking" >&5
9279echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6; }
d0191583
JM
9280# Check whether --enable-static_link was given.
9281if test "${enable_static_link+set}" = set; then
9282 enableval=$enable_static_link; STATIC_LINK=$enableval
9283else
9284 STATIC_LINK=no
9285fi
9286
68f2de6d
AK
9287{ echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
9288echo "${ECHO_T}$STATIC_LINK" >&6; }
d0191583
JM
9289
9290################################################################################
68f2de6d
AK
9291{ echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
9292echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6; }
d0191583
JM
9293# Check whether --enable-selinux was given.
9294if test "${enable_selinux+set}" = set; then
9295 enableval=$enable_selinux; SELINUX=$enableval
9296fi
9297
68f2de6d
AK
9298{ echo "$as_me:$LINENO: result: $SELINUX" >&5
9299echo "${ECHO_T}$SELINUX" >&6; }
d0191583 9300
ad6254c5
AK
9301################################################################################
9302if test x$SELINUX = xyes; then
68f2de6d
AK
9303 { echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
9304echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6; }
8a2fc586 9305if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
68f2de6d 9306 echo $ECHO_N "(cached) $ECHO_C" >&6
8a2fc586
AK
9307else
9308 ac_check_lib_save_LIBS=$LIBS
9309LIBS="-lsepol $LIBS"
9310cat >conftest.$ac_ext <<_ACEOF
9311/* confdefs.h. */
9312_ACEOF
9313cat confdefs.h >>conftest.$ac_ext
9314cat >>conftest.$ac_ext <<_ACEOF
9315/* end confdefs.h. */
9316
7a197a62
AK
9317/* Override any GCC internal prototype to avoid an error.
9318 Use char because int might match the return type of a GCC
9319 builtin and then its argument prototype would still apply. */
8a2fc586
AK
9320#ifdef __cplusplus
9321extern "C"
9322#endif
8a2fc586
AK
9323char sepol_check_context ();
9324int
9325main ()
9326{
7a197a62 9327return sepol_check_context ();
8a2fc586
AK
9328 ;
9329 return 0;
9330}
9331_ACEOF
9332rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9333if { (ac_try="$ac_link"
9334case "(($ac_try" in
9335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9336 *) ac_try_echo=$ac_try;;
9337esac
68f2de6d 9338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9339 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
9340 ac_status=$?
9341 grep -v '^ *+' conftest.er1 >conftest.err
9342 rm -f conftest.er1
9343 cat conftest.err >&5
68f2de6d 9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9345 (exit $ac_status); } && {
9346 test -z "$ac_c_werror_flag" ||
9347 test ! -s conftest.err
68f2de6d
AK
9348 } && test -s conftest$ac_exeext &&
9349 $as_test_x conftest$ac_exeext; then
8a2fc586
AK
9350 ac_cv_lib_sepol_sepol_check_context=yes
9351else
68f2de6d 9352 echo "$as_me: failed program was:" >&5
8a2fc586
AK
9353sed 's/^/| /' conftest.$ac_ext >&5
9354
7a197a62 9355 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 9356fi
7a197a62 9357
25fbec5b 9358rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
9359 conftest$ac_exeext conftest.$ac_ext
9360LIBS=$ac_check_lib_save_LIBS
9361fi
68f2de6d
AK
9362{ echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9363echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6; }
8a2fc586
AK
9364if test $ac_cv_lib_sepol_sepol_check_context = yes; then
9365 HAVE_SEPOL=yes
9366else
9367 HAVE_SEPOL=no
9368fi
9369
8a2fc586
AK
9370
9371 if test x$HAVE_SEPOL = xyes; then
d0191583
JM
9372
9373cat >>confdefs.h <<\_ACEOF
9374#define HAVE_SEPOL 1
9375_ACEOF
9376
8a2fc586
AK
9377 LIBS="-lsepol $LIBS"
9378 fi
9379
68f2de6d
AK
9380 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
9381echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
ad6254c5 9382if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
68f2de6d 9383 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9384else
9385 ac_check_lib_save_LIBS=$LIBS
9386LIBS="-lselinux $LIBS"
9387cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9388/* confdefs.h. */
9389_ACEOF
9390cat confdefs.h >>conftest.$ac_ext
9391cat >>conftest.$ac_ext <<_ACEOF
9392/* end confdefs.h. */
9393
7a197a62
AK
9394/* Override any GCC internal prototype to avoid an error.
9395 Use char because int might match the return type of a GCC
9396 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9397#ifdef __cplusplus
9398extern "C"
9399#endif
ad6254c5
AK
9400char is_selinux_enabled ();
9401int
9402main ()
9403{
7a197a62 9404return is_selinux_enabled ();
ad6254c5
AK
9405 ;
9406 return 0;
9407}
9408_ACEOF
9409rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9410if { (ac_try="$ac_link"
9411case "(($ac_try" in
9412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9413 *) ac_try_echo=$ac_try;;
9414esac
68f2de6d 9415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9416 (eval "$ac_link") 2>conftest.er1
ad6254c5 9417 ac_status=$?
8a2fc586
AK
9418 grep -v '^ *+' conftest.er1 >conftest.err
9419 rm -f conftest.er1
9420 cat conftest.err >&5
68f2de6d 9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9422 (exit $ac_status); } && {
9423 test -z "$ac_c_werror_flag" ||
9424 test ! -s conftest.err
68f2de6d
AK
9425 } && test -s conftest$ac_exeext &&
9426 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
9427 ac_cv_lib_selinux_is_selinux_enabled=yes
9428else
68f2de6d 9429 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9430sed 's/^/| /' conftest.$ac_ext >&5
9431
7a197a62 9432 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 9433fi
7a197a62 9434
25fbec5b 9435rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9436 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9437LIBS=$ac_check_lib_save_LIBS
9438fi
68f2de6d
AK
9439{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9440echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
ad6254c5
AK
9441if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
9442 HAVE_SELINUX=yes
9443else
9444 HAVE_SELINUX=no
9445fi
9446
ad6254c5
AK
9447
9448 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
9449
9450cat >>confdefs.h <<\_ACEOF
9451#define HAVE_SELINUX 1
9452_ACEOF
9453
ad6254c5
AK
9454 LIBS="-lselinux $LIBS"
9455 else
68f2de6d
AK
9456 { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
9457echo "$as_me: WARNING: Disabling selinux" >&2;}
66e941e8
JM
9458 fi
9459
d0191583 9460 # With --enable-static_link and selinux enabled, linking
66e941e8
JM
9461 # fails on at least Debian unstable due to unsatisfied references
9462 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
9463 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
9464 lvm_saved_libs=$LIBS
9465 LIBS="$LIBS -static"
68f2de6d
AK
9466 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9467echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
66e941e8 9468if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
68f2de6d 9469 echo $ECHO_N "(cached) $ECHO_C" >&6
66e941e8
JM
9470else
9471 ac_func_search_save_LIBS=$LIBS
9472cat >conftest.$ac_ext <<_ACEOF
9473/* confdefs.h. */
9474_ACEOF
9475cat confdefs.h >>conftest.$ac_ext
9476cat >>conftest.$ac_ext <<_ACEOF
9477/* end confdefs.h. */
9478
9479/* Override any GCC internal prototype to avoid an error.
9480 Use char because int might match the return type of a GCC
9481 builtin and then its argument prototype would still apply. */
9482#ifdef __cplusplus
9483extern "C"
9484#endif
9485char pthread_mutex_lock ();
9486int
9487main ()
9488{
9489return pthread_mutex_lock ();
9490 ;
9491 return 0;
9492}
9493_ACEOF
9494for ac_lib in '' pthread; do
9495 if test -z "$ac_lib"; then
9496 ac_res="none required"
9497 else
9498 ac_res=-l$ac_lib
9499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9500 fi
9501 rm -f conftest.$ac_objext conftest$ac_exeext
9502if { (ac_try="$ac_link"
9503case "(($ac_try" in
9504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505 *) ac_try_echo=$ac_try;;
9506esac
68f2de6d 9507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66e941e8
JM
9508 (eval "$ac_link") 2>conftest.er1
9509 ac_status=$?
9510 grep -v '^ *+' conftest.er1 >conftest.err
9511 rm -f conftest.er1
9512 cat conftest.err >&5
68f2de6d 9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9514 (exit $ac_status); } && {
9515 test -z "$ac_c_werror_flag" ||
9516 test ! -s conftest.err
68f2de6d
AK
9517 } && test -s conftest$ac_exeext &&
9518 $as_test_x conftest$ac_exeext; then
66e941e8
JM
9519 ac_cv_search_pthread_mutex_lock=$ac_res
9520else
68f2de6d 9521 echo "$as_me: failed program was:" >&5
66e941e8
JM
9522sed 's/^/| /' conftest.$ac_ext >&5
9523
9524
9525fi
9526
25fbec5b 9527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66e941e8
JM
9528 conftest$ac_exeext
9529 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9530 break
9531fi
9532done
9533if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9534 :
9535else
9536 ac_cv_search_pthread_mutex_lock=no
9537fi
9538rm conftest.$ac_ext
9539LIBS=$ac_func_search_save_LIBS
9540fi
68f2de6d
AK
9541{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9542echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
66e941e8
JM
9543ac_res=$ac_cv_search_pthread_mutex_lock
9544if test "$ac_res" != no; then
9545 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9546 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
9547 LIB_PTHREAD=-lpthread
9548fi
9549
9550 LIBS=$lvm_saved_libs
ad6254c5
AK
9551 fi
9552fi
9553
8b1a3214
AK
9554################################################################################
9555if test x$REALTIME = xyes; then
68f2de6d
AK
9556 { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
9557echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
8b1a3214 9558if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
68f2de6d 9559 echo $ECHO_N "(cached) $ECHO_C" >&6
8b1a3214
AK
9560else
9561 ac_check_lib_save_LIBS=$LIBS
9562LIBS="-lrt $LIBS"
9563cat >conftest.$ac_ext <<_ACEOF
9564/* confdefs.h. */
9565_ACEOF
9566cat confdefs.h >>conftest.$ac_ext
9567cat >>conftest.$ac_ext <<_ACEOF
9568/* end confdefs.h. */
9569
7a197a62
AK
9570/* Override any GCC internal prototype to avoid an error.
9571 Use char because int might match the return type of a GCC
9572 builtin and then its argument prototype would still apply. */
8b1a3214
AK
9573#ifdef __cplusplus
9574extern "C"
9575#endif
8b1a3214
AK
9576char clock_gettime ();
9577int
9578main ()
9579{
7a197a62 9580return clock_gettime ();
8b1a3214
AK
9581 ;
9582 return 0;
9583}
9584_ACEOF
9585rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9586if { (ac_try="$ac_link"
9587case "(($ac_try" in
9588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9589 *) ac_try_echo=$ac_try;;
9590esac
68f2de6d 9591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9592 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
9593 ac_status=$?
9594 grep -v '^ *+' conftest.er1 >conftest.err
9595 rm -f conftest.er1
9596 cat conftest.err >&5
68f2de6d 9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9598 (exit $ac_status); } && {
9599 test -z "$ac_c_werror_flag" ||
9600 test ! -s conftest.err
68f2de6d
AK
9601 } && test -s conftest$ac_exeext &&
9602 $as_test_x conftest$ac_exeext; then
8b1a3214
AK
9603 ac_cv_lib_rt_clock_gettime=yes
9604else
68f2de6d 9605 echo "$as_me: failed program was:" >&5
8b1a3214
AK
9606sed 's/^/| /' conftest.$ac_ext >&5
9607
7a197a62 9608 ac_cv_lib_rt_clock_gettime=no
8b1a3214 9609fi
7a197a62 9610
25fbec5b 9611rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
9612 conftest$ac_exeext conftest.$ac_ext
9613LIBS=$ac_check_lib_save_LIBS
9614fi
68f2de6d
AK
9615{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
9616echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
8b1a3214
AK
9617if test $ac_cv_lib_rt_clock_gettime = yes; then
9618 HAVE_REALTIME=yes
9619else
9620 HAVE_REALTIME=no
9621fi
9622
8b1a3214
AK
9623
9624 if test x$HAVE_REALTIME = xyes; then
9625
9626cat >>confdefs.h <<\_ACEOF
9627#define HAVE_REALTIME 1
9628_ACEOF
9629
9630 LIBS="-lrt $LIBS"
9631 else
68f2de6d
AK
9632 { echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
9633echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
9634 fi
9635fi
9636
ad6254c5
AK
9637################################################################################
9638
9639for ac_header in getopt.h
9640do
68f2de6d 9641as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
9643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 9646 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9647fi
68f2de6d
AK
9648ac_res=`eval echo '${'$as_ac_Header'}'`
9649 { echo "$as_me:$LINENO: result: $ac_res" >&5
9650echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9651else
9652 # Is the header compilable?
68f2de6d
AK
9653{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9654echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 9655cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9656/* confdefs.h. */
9657_ACEOF
9658cat confdefs.h >>conftest.$ac_ext
9659cat >>conftest.$ac_ext <<_ACEOF
9660/* end confdefs.h. */
9661$ac_includes_default
9662#include <$ac_header>
9663_ACEOF
9664rm -f conftest.$ac_objext
7a197a62
AK
9665if { (ac_try="$ac_compile"
9666case "(($ac_try" in
9667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9668 *) ac_try_echo=$ac_try;;
9669esac
68f2de6d 9670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9671 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9672 ac_status=$?
8a2fc586
AK
9673 grep -v '^ *+' conftest.er1 >conftest.err
9674 rm -f conftest.er1
9675 cat conftest.err >&5
68f2de6d 9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9677 (exit $ac_status); } && {
9678 test -z "$ac_c_werror_flag" ||
9679 test ! -s conftest.err
9680 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9681 ac_header_compiler=yes
9682else
68f2de6d 9683 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9684sed 's/^/| /' conftest.$ac_ext >&5
9685
7a197a62 9686 ac_header_compiler=no
ad6254c5 9687fi
7a197a62
AK
9688
9689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
9690{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9691echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
9692
9693# Is the header present?
68f2de6d
AK
9694{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9695echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 9696cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9697/* confdefs.h. */
9698_ACEOF
9699cat confdefs.h >>conftest.$ac_ext
9700cat >>conftest.$ac_ext <<_ACEOF
9701/* end confdefs.h. */
9702#include <$ac_header>
9703_ACEOF
7a197a62
AK
9704if { (ac_try="$ac_cpp conftest.$ac_ext"
9705case "(($ac_try" in
9706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9707 *) ac_try_echo=$ac_try;;
9708esac
68f2de6d 9709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9711 ac_status=$?
9712 grep -v '^ *+' conftest.er1 >conftest.err
9713 rm -f conftest.er1
9714 cat conftest.err >&5
68f2de6d 9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9716 (exit $ac_status); } >/dev/null && {
9717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9718 test ! -s conftest.err
9719 }; then
ad6254c5
AK
9720 ac_header_preproc=yes
9721else
68f2de6d 9722 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9723sed 's/^/| /' conftest.$ac_ext >&5
9724
9725 ac_header_preproc=no
9726fi
7a197a62 9727
ad6254c5 9728rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
9729{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9730echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
9731
9732# So? What about this header?
8a2fc586
AK
9733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9734 yes:no: )
68f2de6d
AK
9735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9736echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9738echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9739 ac_header_preproc=yes
ad6254c5 9740 ;;
8a2fc586 9741 no:yes:* )
68f2de6d
AK
9742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9743echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9745echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9746 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9747echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9748 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9749echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9751echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9752 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9753echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9754
ad6254c5
AK
9755 ;;
9756esac
68f2de6d
AK
9757{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9758echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9759if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 9760 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9761else
8a2fc586 9762 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9763fi
68f2de6d
AK
9764ac_res=`eval echo '${'$as_ac_Header'}'`
9765 { echo "$as_me:$LINENO: result: $ac_res" >&5
9766echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9767
9768fi
68f2de6d 9769if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 9770 cat >>confdefs.h <<_ACEOF
68f2de6d 9771#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9772_ACEOF
72b2cb61
AK
9773
9774cat >>confdefs.h <<\_ACEOF
9775#define HAVE_GETOPTLONG 1
9776_ACEOF
9777
ad6254c5
AK
9778fi
9779
9780done
9781
9782
9783################################################################################
06e459df 9784if test x$READLINE != xno; then
bc1024f8
JM
9785 rl_found=yes
9786
68f2de6d
AK
9787{ echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
9788echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
ad6254c5 9789if test "${ac_cv_lib_readline_readline+set}" = set; then
68f2de6d 9790 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9791else
9792 ac_check_lib_save_LIBS=$LIBS
9793LIBS="-lreadline $LIBS"
9794cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9795/* confdefs.h. */
9796_ACEOF
9797cat confdefs.h >>conftest.$ac_ext
9798cat >>conftest.$ac_ext <<_ACEOF
9799/* end confdefs.h. */
9800
7a197a62
AK
9801/* Override any GCC internal prototype to avoid an error.
9802 Use char because int might match the return type of a GCC
9803 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9804#ifdef __cplusplus
9805extern "C"
9806#endif
ad6254c5
AK
9807char readline ();
9808int
9809main ()
9810{
7a197a62 9811return readline ();
ad6254c5
AK
9812 ;
9813 return 0;
9814}
9815_ACEOF
9816rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9817if { (ac_try="$ac_link"
9818case "(($ac_try" in
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9821esac
68f2de6d 9822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9823 (eval "$ac_link") 2>conftest.er1
ad6254c5 9824 ac_status=$?
8a2fc586
AK
9825 grep -v '^ *+' conftest.er1 >conftest.err
9826 rm -f conftest.er1
9827 cat conftest.err >&5
68f2de6d 9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9829 (exit $ac_status); } && {
9830 test -z "$ac_c_werror_flag" ||
9831 test ! -s conftest.err
68f2de6d
AK
9832 } && test -s conftest$ac_exeext &&
9833 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
9834 ac_cv_lib_readline_readline=yes
9835else
68f2de6d 9836 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9837sed 's/^/| /' conftest.$ac_ext >&5
9838
7a197a62 9839 ac_cv_lib_readline_readline=no
ad6254c5 9840fi
7a197a62 9841
25fbec5b 9842rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9843 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9844LIBS=$ac_check_lib_save_LIBS
9845fi
68f2de6d
AK
9846{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
9847echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
ad6254c5 9848if test $ac_cv_lib_readline_readline = yes; then
bc1024f8
JM
9849 cat >>confdefs.h <<_ACEOF
9850#define HAVE_LIBREADLINE 1
9851_ACEOF
9852
9853 LIBS="-lreadline $LIBS"
9854
ad6254c5 9855else
06e459df
JM
9856 rl_found=no
9857fi
9858
9859 test x$READLINE:$rl_found = xyes:no &&
68f2de6d 9860 { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
9861--enable-readline option (which is enabled by default). Either disable readline
9862support with --disable-readline or download and install readline from:
9863 ftp.gnu.org/gnu/readline
9864Note: if you are using precompiled packages you will also need the development
9865package as well (which may be called readline-devel or something similar).
9866" >&5
68f2de6d 9867echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
9868--enable-readline option (which is enabled by default). Either disable readline
9869support with --disable-readline or download and install readline from:
9870 ftp.gnu.org/gnu/readline
9871Note: if you are using precompiled packages you will also need the development
9872package as well (which may be called readline-devel or something similar).
9873" >&2;}
9874 { (exit 1); exit 1; }; }
06e459df 9875 if test $rl_found = yes; then
bc1024f8
JM
9876
9877for ac_func in rl_completion_matches
9878do
68f2de6d
AK
9879as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9880{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9881echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
bc1024f8 9882if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 9883 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9884else
9885 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9886/* confdefs.h. */
9887_ACEOF
9888cat confdefs.h >>conftest.$ac_ext
9889cat >>conftest.$ac_ext <<_ACEOF
9890/* end confdefs.h. */
bc1024f8 9891/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 9892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 9893#define $ac_func innocuous_$ac_func
8a2fc586 9894
ad6254c5 9895/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 9896 which can conflict with char $ac_func (); below.
ad6254c5
AK
9897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9898 <limits.h> exists even on freestanding compilers. */
8a2fc586 9899
ad6254c5
AK
9900#ifdef __STDC__
9901# include <limits.h>
9902#else
9903# include <assert.h>
9904#endif
8a2fc586 9905
bc1024f8 9906#undef $ac_func
8a2fc586 9907
7a197a62
AK
9908/* Override any GCC internal prototype to avoid an error.
9909 Use char because int might match the return type of a GCC
9910 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9911#ifdef __cplusplus
9912extern "C"
ad6254c5 9913#endif
bc1024f8 9914char $ac_func ();
ad6254c5
AK
9915/* The GNU C library defines this for functions which it implements
9916 to always fail with ENOSYS. Some functions are actually named
9917 something starting with __ and the normal name is an alias. */
bc1024f8 9918#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 9919choke me
ad6254c5
AK
9920#endif
9921
9922int
9923main ()
9924{
bc1024f8 9925return $ac_func ();
ad6254c5
AK
9926 ;
9927 return 0;
9928}
9929_ACEOF
9930rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9931if { (ac_try="$ac_link"
9932case "(($ac_try" in
9933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9934 *) ac_try_echo=$ac_try;;
9935esac
68f2de6d 9936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9937 (eval "$ac_link") 2>conftest.er1
ad6254c5 9938 ac_status=$?
8a2fc586
AK
9939 grep -v '^ *+' conftest.er1 >conftest.err
9940 rm -f conftest.er1
9941 cat conftest.err >&5
68f2de6d 9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9943 (exit $ac_status); } && {
9944 test -z "$ac_c_werror_flag" ||
9945 test ! -s conftest.err
68f2de6d
AK
9946 } && test -s conftest$ac_exeext &&
9947 $as_test_x conftest$ac_exeext; then
bc1024f8 9948 eval "$as_ac_var=yes"
ad6254c5 9949else
68f2de6d 9950 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9951sed 's/^/| /' conftest.$ac_ext >&5
9952
bc1024f8 9953 eval "$as_ac_var=no"
ad6254c5 9954fi
7a197a62 9955
25fbec5b 9956rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9957 conftest$ac_exeext conftest.$ac_ext
ad6254c5 9958fi
68f2de6d
AK
9959ac_res=`eval echo '${'$as_ac_var'}'`
9960 { echo "$as_me:$LINENO: result: $ac_res" >&5
9961echo "${ECHO_T}$ac_res" >&6; }
9962if test `eval echo '${'$as_ac_var'}'` = yes; then
bc1024f8 9963 cat >>confdefs.h <<_ACEOF
68f2de6d 9964#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
9965_ACEOF
9966
9967fi
bc1024f8 9968done
ad6254c5 9969
d179cc7a
JM
9970
9971cat >>confdefs.h <<\_ACEOF
9972#define READLINE_SUPPORT 1
9973_ACEOF
9974
06e459df 9975 fi
ad6254c5
AK
9976fi
9977
9978################################################################################
68f2de6d
AK
9979{ echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
9980echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6; }
7a197a62 9981# Check whether --enable-nls was given.
ad6254c5 9982if test "${enable_nls+set}" = set; then
7a197a62 9983 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
9984else
9985 INTL=no
7a197a62
AK
9986fi
9987
68f2de6d
AK
9988{ echo "$as_me:$LINENO: result: $INTL" >&5
9989echo "${ECHO_T}$INTL" >&6; }
ad6254c5
AK
9990
9991if test x$INTL = xyes; then
93bd259b 9992# FIXME - Move this - can be device-mapper too
ad6254c5
AK
9993 INTL_PACKAGE="lvm2"
9994 # Extract the first word of "msgfmt", so it can be a program name with args.
9995set dummy msgfmt; ac_word=$2
68f2de6d
AK
9996{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 9998if test "${ac_cv_path_MSGFMT+set}" = set; then
68f2de6d 9999 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
10000else
10001 case $MSGFMT in
10002 [\\/]* | ?:[\\/]*)
10003 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10004 ;;
10005 *)
10006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10007for as_dir in $PATH
10008do
10009 IFS=$as_save_IFS
10010 test -z "$as_dir" && as_dir=.
10011 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 10012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 10013 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 10014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
10015 break 2
10016 fi
10017done
10018done
7a197a62 10019IFS=$as_save_IFS
ad6254c5
AK
10020
10021 ;;
10022esac
10023fi
10024MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 10025if test -n "$MSGFMT"; then
68f2de6d
AK
10026 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
10027echo "${ECHO_T}$MSGFMT" >&6; }
ad6254c5 10028else
68f2de6d
AK
10029 { echo "$as_me:$LINENO: result: no" >&5
10030echo "${ECHO_T}no" >&6; }
ad6254c5
AK
10031fi
10032
7a197a62 10033
ad6254c5 10034 if [ "x$MSGFMT" == x ];
68f2de6d 10035 then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 10036 " >&5
68f2de6d 10037echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
10038 " >&2;}
10039 { (exit 1); exit 1; }; }
10040 fi;
10041
10042
7a197a62 10043# Check whether --with-localedir was given.
ad6254c5 10044if test "${with_localedir+set}" = set; then
7a197a62 10045 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
10046else
10047 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
10048fi
10049
ad6254c5
AK
10050fi
10051
10052################################################################################
10053
7a197a62 10054# Check whether --with-confdir was given.
ad6254c5 10055if test "${with_confdir+set}" = set; then
7a197a62 10056 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
10057else
10058 CONFDIR='/etc'
7a197a62
AK
10059fi
10060
ad6254c5
AK
10061
10062
7a197a62 10063# Check whether --with-staticdir was given.
ad6254c5 10064if test "${with_staticdir+set}" = set; then
7a197a62 10065 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
10066else
10067 STATICDIR='${exec_prefix}/sbin'
7a197a62 10068fi
ad6254c5 10069
33f732c5 10070
7a197a62 10071
68f2de6d
AK
10072# Check whether --with-usrlibdir was given.
10073if test "${with_usrlibdir+set}" = set; then
10074 withval=$with_usrlibdir; usrlibdir="$withval"
10075else
10076 usrlibdir='${prefix}/lib'
10077fi
10078
10079
10080
10081# Check whether --with-usrsbindir was given.
10082if test "${with_usrsbindir+set}" = set; then
10083 withval=$with_usrsbindir; usrsbindir="$withval"
10084else
10085 usrsbindir='${prefix}/sbin'
10086fi
10087
10088
ad6254c5
AK
10089################################################################################
10090if test x$READLINE = xyes; then
10091
10092
10093for ac_header in readline/readline.h readline/history.h
10094do
68f2de6d 10095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10096if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
10097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10100 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10101fi
68f2de6d
AK
10102ac_res=`eval echo '${'$as_ac_Header'}'`
10103 { echo "$as_me:$LINENO: result: $ac_res" >&5
10104echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10105else
10106 # Is the header compilable?
68f2de6d
AK
10107{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10108echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10109cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10110/* confdefs.h. */
10111_ACEOF
10112cat confdefs.h >>conftest.$ac_ext
10113cat >>conftest.$ac_ext <<_ACEOF
10114/* end confdefs.h. */
10115$ac_includes_default
10116#include <$ac_header>
10117_ACEOF
10118rm -f conftest.$ac_objext
7a197a62
AK
10119if { (ac_try="$ac_compile"
10120case "(($ac_try" in
10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10123esac
68f2de6d 10124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10125 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10126 ac_status=$?
8a2fc586
AK
10127 grep -v '^ *+' conftest.er1 >conftest.err
10128 rm -f conftest.er1
10129 cat conftest.err >&5
68f2de6d 10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10131 (exit $ac_status); } && {
10132 test -z "$ac_c_werror_flag" ||
10133 test ! -s conftest.err
10134 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10135 ac_header_compiler=yes
10136else
68f2de6d 10137 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10138sed 's/^/| /' conftest.$ac_ext >&5
10139
7a197a62 10140 ac_header_compiler=no
ad6254c5 10141fi
7a197a62
AK
10142
10143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
10144{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10145echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10146
10147# Is the header present?
68f2de6d
AK
10148{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10149echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10150cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10151/* confdefs.h. */
10152_ACEOF
10153cat confdefs.h >>conftest.$ac_ext
10154cat >>conftest.$ac_ext <<_ACEOF
10155/* end confdefs.h. */
10156#include <$ac_header>
10157_ACEOF
7a197a62
AK
10158if { (ac_try="$ac_cpp conftest.$ac_ext"
10159case "(($ac_try" in
10160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161 *) ac_try_echo=$ac_try;;
10162esac
68f2de6d 10163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10165 ac_status=$?
10166 grep -v '^ *+' conftest.er1 >conftest.err
10167 rm -f conftest.er1
10168 cat conftest.err >&5
68f2de6d 10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10170 (exit $ac_status); } >/dev/null && {
10171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10172 test ! -s conftest.err
10173 }; then
ad6254c5
AK
10174 ac_header_preproc=yes
10175else
68f2de6d 10176 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10177sed 's/^/| /' conftest.$ac_ext >&5
10178
10179 ac_header_preproc=no
10180fi
7a197a62 10181
ad6254c5 10182rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
10183{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10184echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10185
10186# So? What about this header?
8a2fc586
AK
10187case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10188 yes:no: )
68f2de6d
AK
10189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10190echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10192echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10193 ac_header_preproc=yes
ad6254c5 10194 ;;
8a2fc586 10195 no:yes:* )
68f2de6d
AK
10196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10197echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10199echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10201echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10203echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10205echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10207echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10208
ad6254c5
AK
10209 ;;
10210esac
68f2de6d
AK
10211{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10212echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10213if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10214 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10215else
8a2fc586 10216 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10217fi
68f2de6d
AK
10218ac_res=`eval echo '${'$as_ac_Header'}'`
10219 { echo "$as_me:$LINENO: result: $ac_res" >&5
10220echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10221
10222fi
68f2de6d 10223if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10224 cat >>confdefs.h <<_ACEOF
68f2de6d 10225#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10226_ACEOF
10227
10228else
68f2de6d
AK
10229 { { echo "$as_me:$LINENO: error: bailing out" >&5
10230echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
10231 { (exit 1); exit 1; }; }
10232fi
10233
10234done
10235
10236fi
10237
5c7fc7c4 10238if test x$CLVMD != xnone; then
ad6254c5
AK
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249for 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
10250do
68f2de6d 10251as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10252if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
10253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10255if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10256 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10257fi
68f2de6d
AK
10258ac_res=`eval echo '${'$as_ac_Header'}'`
10259 { echo "$as_me:$LINENO: result: $ac_res" >&5
10260echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10261else
10262 # Is the header compilable?
68f2de6d
AK
10263{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10264echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10265cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10266/* confdefs.h. */
10267_ACEOF
10268cat confdefs.h >>conftest.$ac_ext
10269cat >>conftest.$ac_ext <<_ACEOF
10270/* end confdefs.h. */
10271$ac_includes_default
10272#include <$ac_header>
10273_ACEOF
10274rm -f conftest.$ac_objext
7a197a62
AK
10275if { (ac_try="$ac_compile"
10276case "(($ac_try" in
10277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10278 *) ac_try_echo=$ac_try;;
10279esac
68f2de6d 10280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10281 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10282 ac_status=$?
8a2fc586
AK
10283 grep -v '^ *+' conftest.er1 >conftest.err
10284 rm -f conftest.er1
10285 cat conftest.err >&5
68f2de6d 10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10287 (exit $ac_status); } && {
10288 test -z "$ac_c_werror_flag" ||
10289 test ! -s conftest.err
10290 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10291 ac_header_compiler=yes
10292else
68f2de6d 10293 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10294sed 's/^/| /' conftest.$ac_ext >&5
10295
7a197a62 10296 ac_header_compiler=no
ad6254c5 10297fi
7a197a62
AK
10298
10299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
10300{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10301echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10302
10303# Is the header present?
68f2de6d
AK
10304{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10305echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10306cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10307/* confdefs.h. */
10308_ACEOF
10309cat confdefs.h >>conftest.$ac_ext
10310cat >>conftest.$ac_ext <<_ACEOF
10311/* end confdefs.h. */
10312#include <$ac_header>
10313_ACEOF
7a197a62
AK
10314if { (ac_try="$ac_cpp conftest.$ac_ext"
10315case "(($ac_try" in
10316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317 *) ac_try_echo=$ac_try;;
10318esac
68f2de6d 10319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10321 ac_status=$?
10322 grep -v '^ *+' conftest.er1 >conftest.err
10323 rm -f conftest.er1
10324 cat conftest.err >&5
68f2de6d 10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10326 (exit $ac_status); } >/dev/null && {
10327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10328 test ! -s conftest.err
10329 }; then
ad6254c5
AK
10330 ac_header_preproc=yes
10331else
68f2de6d 10332 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10333sed 's/^/| /' conftest.$ac_ext >&5
10334
10335 ac_header_preproc=no
10336fi
7a197a62 10337
ad6254c5 10338rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
10339{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10340echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10341
10342# So? What about this header?
8a2fc586
AK
10343case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10344 yes:no: )
68f2de6d
AK
10345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10346echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10348echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10349 ac_header_preproc=yes
ad6254c5 10350 ;;
8a2fc586 10351 no:yes:* )
68f2de6d
AK
10352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10353echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10355echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10357echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10359echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10361echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10363echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10364
ad6254c5
AK
10365 ;;
10366esac
68f2de6d
AK
10367{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10368echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10369if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10370 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10371else
8a2fc586 10372 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10373fi
68f2de6d
AK
10374ac_res=`eval echo '${'$as_ac_Header'}'`
10375 { echo "$as_me:$LINENO: result: $ac_res" >&5
10376echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10377
10378fi
68f2de6d 10379if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10380 cat >>confdefs.h <<_ACEOF
68f2de6d 10381#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10382_ACEOF
10383
10384else
68f2de6d
AK
10385 { { echo "$as_me:$LINENO: error: bailing out" >&5
10386echo "$as_me: error: bailing out" >&2;}
ad6254c5 10387 { (exit 1); exit 1; }; }
795ca3e5
AK
10388fi
10389
ad6254c5
AK
10390done
10391
10392
795ca3e5 10393
8106cdd5 10394
ad6254c5
AK
10395
10396
10397for ac_func in dup2 getmntent memmove select socket
10398do
68f2de6d
AK
10399as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10400{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10401echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 10402if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10403 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 10404else
ad6254c5 10405 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10406/* confdefs.h. */
10407_ACEOF
10408cat confdefs.h >>conftest.$ac_ext
10409cat >>conftest.$ac_ext <<_ACEOF
10410/* end confdefs.h. */
8a2fc586
AK
10411/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10413#define $ac_func innocuous_$ac_func
10414
795ca3e5 10415/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
10416 which can conflict with char $ac_func (); below.
10417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10418 <limits.h> exists even on freestanding compilers. */
8a2fc586 10419
ad6254c5
AK
10420#ifdef __STDC__
10421# include <limits.h>
10422#else
10423# include <assert.h>
10424#endif
8a2fc586
AK
10425
10426#undef $ac_func
10427
7a197a62
AK
10428/* Override any GCC internal prototype to avoid an error.
10429 Use char because int might match the return type of a GCC
10430 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10431#ifdef __cplusplus
10432extern "C"
ad6254c5 10433#endif
ad6254c5 10434char $ac_func ();
795ca3e5
AK
10435/* The GNU C library defines this for functions which it implements
10436 to always fail with ENOSYS. Some functions are actually named
10437 something starting with __ and the normal name is an alias. */
7a197a62 10438#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 10439choke me
795ca3e5
AK
10440#endif
10441
ad6254c5
AK
10442int
10443main ()
10444{
7a197a62 10445return $ac_func ();
ad6254c5
AK
10446 ;
10447 return 0;
10448}
10449_ACEOF
10450rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10451if { (ac_try="$ac_link"
10452case "(($ac_try" in
10453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10454 *) ac_try_echo=$ac_try;;
10455esac
68f2de6d 10456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10457 (eval "$ac_link") 2>conftest.er1
ad6254c5 10458 ac_status=$?
8a2fc586
AK
10459 grep -v '^ *+' conftest.er1 >conftest.err
10460 rm -f conftest.er1
10461 cat conftest.err >&5
68f2de6d 10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10463 (exit $ac_status); } && {
10464 test -z "$ac_c_werror_flag" ||
10465 test ! -s conftest.err
68f2de6d
AK
10466 } && test -s conftest$ac_exeext &&
10467 $as_test_x conftest$ac_exeext; then
ad6254c5 10468 eval "$as_ac_var=yes"
795ca3e5 10469else
68f2de6d 10470 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10471sed 's/^/| /' conftest.$ac_ext >&5
10472
7a197a62 10473 eval "$as_ac_var=no"
80992638 10474fi
7a197a62 10475
25fbec5b 10476rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10477 conftest$ac_exeext conftest.$ac_ext
795ca3e5 10478fi
68f2de6d
AK
10479ac_res=`eval echo '${'$as_ac_var'}'`
10480 { echo "$as_me:$LINENO: result: $ac_res" >&5
10481echo "${ECHO_T}$ac_res" >&6; }
10482if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 10483 cat >>confdefs.h <<_ACEOF
68f2de6d 10484#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 10485_ACEOF
80992638
AK
10486
10487else
68f2de6d
AK
10488 { { echo "$as_me:$LINENO: error: bailing out" >&5
10489echo "$as_me: error: bailing out" >&2;}
ad6254c5 10490 { (exit 1); exit 1; }; }
8106cdd5 10491fi
ad6254c5 10492done
795ca3e5 10493
25fbec5b
AK
10494 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
10495# -lseq on Dynix/PTX, -lgen on Unixware.
68f2de6d
AK
10496{ echo "$as_me:$LINENO: checking for library containing getmntent" >&5
10497echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
25fbec5b 10498if test "${ac_cv_search_getmntent+set}" = set; then
68f2de6d 10499 echo $ECHO_N "(cached) $ECHO_C" >&6
25fbec5b
AK
10500else
10501 ac_func_search_save_LIBS=$LIBS
10502cat >conftest.$ac_ext <<_ACEOF
10503/* confdefs.h. */
10504_ACEOF
10505cat confdefs.h >>conftest.$ac_ext
10506cat >>conftest.$ac_ext <<_ACEOF
10507/* end confdefs.h. */
80992638 10508
7a197a62
AK
10509/* Override any GCC internal prototype to avoid an error.
10510 Use char because int might match the return type of a GCC
ad6254c5 10511 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10512#ifdef __cplusplus
10513extern "C"
10514#endif
25fbec5b 10515char getmntent ();
ad6254c5
AK
10516int
10517main ()
10518{
25fbec5b 10519return getmntent ();
ad6254c5
AK
10520 ;
10521 return 0;
10522}
10523_ACEOF
25fbec5b
AK
10524for ac_lib in '' sun seq gen; do
10525 if test -z "$ac_lib"; then
10526 ac_res="none required"
10527 else
10528 ac_res=-l$ac_lib
10529 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10530 fi
10531 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10532if { (ac_try="$ac_link"
10533case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10536esac
68f2de6d 10537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10538 (eval "$ac_link") 2>conftest.er1
ad6254c5 10539 ac_status=$?
8a2fc586
AK
10540 grep -v '^ *+' conftest.er1 >conftest.err
10541 rm -f conftest.er1
10542 cat conftest.err >&5
68f2de6d 10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10544 (exit $ac_status); } && {
10545 test -z "$ac_c_werror_flag" ||
10546 test ! -s conftest.err
68f2de6d
AK
10547 } && test -s conftest$ac_exeext &&
10548 $as_test_x conftest$ac_exeext; then
25fbec5b 10549 ac_cv_search_getmntent=$ac_res
80992638 10550else
68f2de6d 10551 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10552sed 's/^/| /' conftest.$ac_ext >&5
10553
25fbec5b 10554
795ca3e5
AK
10555fi
10556
25fbec5b
AK
10557rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10558 conftest$ac_exeext
10559 if test "${ac_cv_search_getmntent+set}" = set; then
10560 break
795ca3e5 10561fi
25fbec5b
AK
10562done
10563if test "${ac_cv_search_getmntent+set}" = set; then
10564 :
10565else
10566 ac_cv_search_getmntent=no
10567fi
10568rm conftest.$ac_ext
10569LIBS=$ac_func_search_save_LIBS
10570fi
68f2de6d
AK
10571{ echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
10572echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
10573ac_res=$ac_cv_search_getmntent
10574if test "$ac_res" != no; then
10575 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10576 ac_cv_func_getmntent=yes
10577
10578cat >>confdefs.h <<\_ACEOF
68f2de6d 10579#define HAVE_GETMNTENT
ad6254c5 10580_ACEOF
795ca3e5 10581
25fbec5b
AK
10582else
10583 ac_cv_func_getmntent=no
795ca3e5 10584fi
795ca3e5
AK
10585
10586
ad6254c5
AK
10587# AC_FUNC_REALLOC
10588
10589
10590for ac_header in sys/select.h sys/socket.h
10591do
68f2de6d 10592as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10593if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
10594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10596if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10597 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10598fi
68f2de6d
AK
10599ac_res=`eval echo '${'$as_ac_Header'}'`
10600 { echo "$as_me:$LINENO: result: $ac_res" >&5
10601echo "${ECHO_T}$ac_res" >&6; }
795ca3e5 10602else
ad6254c5 10603 # Is the header compilable?
68f2de6d
AK
10604{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10605echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10606cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10607/* confdefs.h. */
10608_ACEOF
10609cat confdefs.h >>conftest.$ac_ext
10610cat >>conftest.$ac_ext <<_ACEOF
10611/* end confdefs.h. */
10612$ac_includes_default
10613#include <$ac_header>
10614_ACEOF
10615rm -f conftest.$ac_objext
7a197a62
AK
10616if { (ac_try="$ac_compile"
10617case "(($ac_try" in
10618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619 *) ac_try_echo=$ac_try;;
10620esac
68f2de6d 10621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10622 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10623 ac_status=$?
8a2fc586
AK
10624 grep -v '^ *+' conftest.er1 >conftest.err
10625 rm -f conftest.er1
10626 cat conftest.err >&5
68f2de6d 10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10628 (exit $ac_status); } && {
10629 test -z "$ac_c_werror_flag" ||
10630 test ! -s conftest.err
10631 } && test -s conftest.$ac_objext; then
ad6254c5 10632 ac_header_compiler=yes
80992638 10633else
68f2de6d 10634 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10635sed 's/^/| /' conftest.$ac_ext >&5
10636
7a197a62 10637 ac_header_compiler=no
ad6254c5 10638fi
7a197a62
AK
10639
10640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
10641{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10642echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10643
10644# Is the header present?
68f2de6d
AK
10645{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10646echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10647cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10648/* confdefs.h. */
10649_ACEOF
10650cat confdefs.h >>conftest.$ac_ext
10651cat >>conftest.$ac_ext <<_ACEOF
10652/* end confdefs.h. */
10653#include <$ac_header>
10654_ACEOF
7a197a62
AK
10655if { (ac_try="$ac_cpp conftest.$ac_ext"
10656case "(($ac_try" in
10657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10658 *) ac_try_echo=$ac_try;;
10659esac
68f2de6d 10660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10662 ac_status=$?
10663 grep -v '^ *+' conftest.er1 >conftest.err
10664 rm -f conftest.er1
10665 cat conftest.err >&5
68f2de6d 10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10667 (exit $ac_status); } >/dev/null && {
10668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10669 test ! -s conftest.err
10670 }; then
ad6254c5
AK
10671 ac_header_preproc=yes
10672else
68f2de6d 10673 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10674sed 's/^/| /' conftest.$ac_ext >&5
10675
10676 ac_header_preproc=no
10677fi
7a197a62 10678
ad6254c5 10679rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
10680{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10681echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10682
10683# So? What about this header?
8a2fc586
AK
10684case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10685 yes:no: )
68f2de6d
AK
10686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10687echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10689echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10690 ac_header_preproc=yes
ad6254c5 10691 ;;
8a2fc586 10692 no:yes:* )
68f2de6d
AK
10693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10694echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10696echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10698echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10700echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10702echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10704echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10705
ad6254c5
AK
10706 ;;
10707esac
68f2de6d
AK
10708{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10710if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10711 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10712else
8a2fc586 10713 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 10714fi
68f2de6d
AK
10715ac_res=`eval echo '${'$as_ac_Header'}'`
10716 { echo "$as_me:$LINENO: result: $ac_res" >&5
10717echo "${ECHO_T}$ac_res" >&6; }
8106cdd5 10718
795ca3e5 10719fi
68f2de6d 10720if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10721 cat >>confdefs.h <<_ACEOF
68f2de6d 10722#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10723_ACEOF
10724
795ca3e5
AK
10725fi
10726
ad6254c5
AK
10727done
10728
68f2de6d
AK
10729{ echo "$as_me:$LINENO: checking types of arguments for select" >&5
10730echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
ad6254c5 10731if test "${ac_cv_func_select_args+set}" = set; then
68f2de6d 10732 echo $ECHO_N "(cached) $ECHO_C" >&6
26e7f2e0 10733else
ad6254c5 10734 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 10735 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
10736 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10737 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10738/* confdefs.h. */
10739_ACEOF
10740cat confdefs.h >>conftest.$ac_ext
10741cat >>conftest.$ac_ext <<_ACEOF
10742/* end confdefs.h. */
10743$ac_includes_default
25fbec5b 10744#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
10745# include <sys/select.h>
10746#endif
25fbec5b 10747#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
10748# include <sys/socket.h>
10749#endif
10750
10751int
10752main ()
10753{
10754extern int select ($ac_arg1,
8a2fc586
AK
10755 $ac_arg234, $ac_arg234, $ac_arg234,
10756 $ac_arg5);
ad6254c5
AK
10757 ;
10758 return 0;
10759}
10760_ACEOF
10761rm -f conftest.$ac_objext
7a197a62
AK
10762if { (ac_try="$ac_compile"
10763case "(($ac_try" in
10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10766esac
68f2de6d 10767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10768 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10769 ac_status=$?
8a2fc586
AK
10770 grep -v '^ *+' conftest.er1 >conftest.err
10771 rm -f conftest.er1
10772 cat conftest.err >&5
68f2de6d 10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10774 (exit $ac_status); } && {
10775 test -z "$ac_c_werror_flag" ||
10776 test ! -s conftest.err
10777 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10778 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10779else
68f2de6d 10780 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10781sed 's/^/| /' conftest.$ac_ext >&5
10782
7a197a62 10783
ad6254c5 10784fi
7a197a62
AK
10785
10786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10787 done
10788 done
10789done
10790# Provide a safe default value.
10791: ${ac_cv_func_select_args='int,int *,struct timeval *'}
10792
26e7f2e0 10793fi
68f2de6d
AK
10794{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
10795echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
ad6254c5
AK
10796ac_save_IFS=$IFS; IFS=','
10797set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10798IFS=$ac_save_IFS
10799shift
10800
10801cat >>confdefs.h <<_ACEOF
10802#define SELECT_TYPE_ARG1 $1
10803_ACEOF
10804
10805
10806cat >>confdefs.h <<_ACEOF
10807#define SELECT_TYPE_ARG234 ($2)
10808_ACEOF
10809
10810
10811cat >>confdefs.h <<_ACEOF
10812#define SELECT_TYPE_ARG5 ($3)
10813_ACEOF
10814
80992638 10815rm -f conftest*
80992638 10816
8106cdd5 10817fi
ad6254c5 10818
ad6254c5
AK
10819if test x$CLUSTER != xnone; then
10820
10821
10822for ac_header in sys/socket.h sys/un.h
b896caa1 10823do
68f2de6d 10824as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10825if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
10826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10828if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10829 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10830fi
68f2de6d
AK
10831ac_res=`eval echo '${'$as_ac_Header'}'`
10832 { echo "$as_me:$LINENO: result: $ac_res" >&5
10833echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10834else
10835 # Is the header compilable?
68f2de6d
AK
10836{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10837echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10838cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10839/* confdefs.h. */
10840_ACEOF
10841cat confdefs.h >>conftest.$ac_ext
10842cat >>conftest.$ac_ext <<_ACEOF
10843/* end confdefs.h. */
10844$ac_includes_default
10845#include <$ac_header>
10846_ACEOF
10847rm -f conftest.$ac_objext
7a197a62
AK
10848if { (ac_try="$ac_compile"
10849case "(($ac_try" in
10850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10852esac
68f2de6d 10853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10854 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10855 ac_status=$?
8a2fc586
AK
10856 grep -v '^ *+' conftest.er1 >conftest.err
10857 rm -f conftest.er1
10858 cat conftest.err >&5
68f2de6d 10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10860 (exit $ac_status); } && {
10861 test -z "$ac_c_werror_flag" ||
10862 test ! -s conftest.err
10863 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10864 ac_header_compiler=yes
10865else
68f2de6d 10866 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10867sed 's/^/| /' conftest.$ac_ext >&5
10868
7a197a62 10869 ac_header_compiler=no
ad6254c5 10870fi
7a197a62
AK
10871
10872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
10873{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10874echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10875
10876# Is the header present?
68f2de6d
AK
10877{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10878echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10879cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10880/* confdefs.h. */
10881_ACEOF
10882cat confdefs.h >>conftest.$ac_ext
10883cat >>conftest.$ac_ext <<_ACEOF
10884/* end confdefs.h. */
10885#include <$ac_header>
10886_ACEOF
7a197a62
AK
10887if { (ac_try="$ac_cpp conftest.$ac_ext"
10888case "(($ac_try" in
10889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890 *) ac_try_echo=$ac_try;;
10891esac
68f2de6d 10892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10894 ac_status=$?
10895 grep -v '^ *+' conftest.er1 >conftest.err
10896 rm -f conftest.er1
10897 cat conftest.err >&5
68f2de6d 10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10899 (exit $ac_status); } >/dev/null && {
10900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10901 test ! -s conftest.err
10902 }; then
ad6254c5
AK
10903 ac_header_preproc=yes
10904else
68f2de6d 10905 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10906sed 's/^/| /' conftest.$ac_ext >&5
10907
10908 ac_header_preproc=no
10909fi
7a197a62 10910
ad6254c5 10911rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
10912{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10913echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10914
10915# So? What about this header?
8a2fc586
AK
10916case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10917 yes:no: )
68f2de6d
AK
10918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10919echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10921echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10922 ac_header_preproc=yes
ad6254c5 10923 ;;
8a2fc586 10924 no:yes:* )
68f2de6d
AK
10925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10926echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10928echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10930echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10932echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10934echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10936echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10937
ad6254c5
AK
10938 ;;
10939esac
68f2de6d
AK
10940{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10942if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10943 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10944else
8a2fc586 10945 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 10946fi
68f2de6d
AK
10947ac_res=`eval echo '${'$as_ac_Header'}'`
10948 { echo "$as_me:$LINENO: result: $ac_res" >&5
10949echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10950
10951fi
68f2de6d 10952if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10953 cat >>confdefs.h <<_ACEOF
68f2de6d 10954#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10955_ACEOF
10956
80992638 10957else
68f2de6d
AK
10958 { { echo "$as_me:$LINENO: error: bailing out" >&5
10959echo "$as_me: error: bailing out" >&2;}
ad6254c5 10960 { (exit 1); exit 1; }; }
b896caa1 10961fi
ad6254c5 10962
b896caa1
AK
10963done
10964
10965
ad6254c5
AK
10966for ac_func in socket
10967do
68f2de6d
AK
10968as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10969{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10970echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 10971if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10972 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 10973else
ad6254c5 10974 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10975/* confdefs.h. */
10976_ACEOF
10977cat confdefs.h >>conftest.$ac_ext
10978cat >>conftest.$ac_ext <<_ACEOF
10979/* end confdefs.h. */
8a2fc586
AK
10980/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10982#define $ac_func innocuous_$ac_func
10983
ad6254c5
AK
10984/* System header to define __stub macros and hopefully few prototypes,
10985 which can conflict with char $ac_func (); below.
10986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10987 <limits.h> exists even on freestanding compilers. */
8a2fc586 10988
ad6254c5
AK
10989#ifdef __STDC__
10990# include <limits.h>
10991#else
10992# include <assert.h>
10993#endif
8a2fc586
AK
10994
10995#undef $ac_func
10996
7a197a62
AK
10997/* Override any GCC internal prototype to avoid an error.
10998 Use char because int might match the return type of a GCC
10999 builtin and then its argument prototype would still apply. */
ad6254c5
AK
11000#ifdef __cplusplus
11001extern "C"
ad6254c5 11002#endif
ad6254c5
AK
11003char $ac_func ();
11004/* The GNU C library defines this for functions which it implements
11005 to always fail with ENOSYS. Some functions are actually named
11006 something starting with __ and the normal name is an alias. */
7a197a62 11007#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 11008choke me
ad6254c5
AK
11009#endif
11010
11011int
11012main ()
11013{
7a197a62 11014return $ac_func ();
ad6254c5
AK
11015 ;
11016 return 0;
11017}
11018_ACEOF
11019rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
11020if { (ac_try="$ac_link"
11021case "(($ac_try" in
11022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11023 *) ac_try_echo=$ac_try;;
11024esac
68f2de6d 11025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11026 (eval "$ac_link") 2>conftest.er1
ad6254c5 11027 ac_status=$?
8a2fc586
AK
11028 grep -v '^ *+' conftest.er1 >conftest.err
11029 rm -f conftest.er1
11030 cat conftest.err >&5
68f2de6d 11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11032 (exit $ac_status); } && {
11033 test -z "$ac_c_werror_flag" ||
11034 test ! -s conftest.err
68f2de6d
AK
11035 } && test -s conftest$ac_exeext &&
11036 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
11037 eval "$as_ac_var=yes"
11038else
68f2de6d 11039 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11040sed 's/^/| /' conftest.$ac_ext >&5
11041
7a197a62 11042 eval "$as_ac_var=no"
ad6254c5 11043fi
7a197a62 11044
25fbec5b 11045rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 11046 conftest$ac_exeext conftest.$ac_ext
ad6254c5 11047fi
68f2de6d
AK
11048ac_res=`eval echo '${'$as_ac_var'}'`
11049 { echo "$as_me:$LINENO: result: $ac_res" >&5
11050echo "${ECHO_T}$ac_res" >&6; }
11051if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 11052 cat >>confdefs.h <<_ACEOF
68f2de6d 11053#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
11054_ACEOF
11055
11056else
68f2de6d
AK
11057 { { echo "$as_me:$LINENO: error: bailing out" >&5
11058echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
11059 { (exit 1); exit 1; }; }
11060fi
11061done
11062
11063fi
11064
11065if test x$HAVE_LIBDL = xyes; then
11066
11067for ac_header in dlfcn.h
11068do
68f2de6d 11069as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11070if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
11071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11073if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11074 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11075fi
68f2de6d
AK
11076ac_res=`eval echo '${'$as_ac_Header'}'`
11077 { echo "$as_me:$LINENO: result: $ac_res" >&5
11078echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
11079else
11080 # Is the header compilable?
68f2de6d
AK
11081{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11082echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11083cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11084/* confdefs.h. */
11085_ACEOF
11086cat confdefs.h >>conftest.$ac_ext
11087cat >>conftest.$ac_ext <<_ACEOF
11088/* end confdefs.h. */
11089$ac_includes_default
11090#include <$ac_header>
11091_ACEOF
11092rm -f conftest.$ac_objext
7a197a62
AK
11093if { (ac_try="$ac_compile"
11094case "(($ac_try" in
11095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096 *) ac_try_echo=$ac_try;;
11097esac
68f2de6d 11098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11099 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11100 ac_status=$?
8a2fc586
AK
11101 grep -v '^ *+' conftest.er1 >conftest.err
11102 rm -f conftest.er1
11103 cat conftest.err >&5
68f2de6d 11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11105 (exit $ac_status); } && {
11106 test -z "$ac_c_werror_flag" ||
11107 test ! -s conftest.err
11108 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11109 ac_header_compiler=yes
11110else
68f2de6d 11111 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11112sed 's/^/| /' conftest.$ac_ext >&5
11113
7a197a62 11114 ac_header_compiler=no
ad6254c5 11115fi
7a197a62
AK
11116
11117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
11118{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11119echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11120
11121# Is the header present?
68f2de6d
AK
11122{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11123echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11124cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11125/* confdefs.h. */
11126_ACEOF
11127cat confdefs.h >>conftest.$ac_ext
11128cat >>conftest.$ac_ext <<_ACEOF
11129/* end confdefs.h. */
11130#include <$ac_header>
11131_ACEOF
7a197a62
AK
11132if { (ac_try="$ac_cpp conftest.$ac_ext"
11133case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11136esac
68f2de6d 11137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11139 ac_status=$?
11140 grep -v '^ *+' conftest.er1 >conftest.err
11141 rm -f conftest.er1
11142 cat conftest.err >&5
68f2de6d 11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11144 (exit $ac_status); } >/dev/null && {
11145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11146 test ! -s conftest.err
11147 }; then
ad6254c5
AK
11148 ac_header_preproc=yes
11149else
68f2de6d 11150 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11151sed 's/^/| /' conftest.$ac_ext >&5
11152
11153 ac_header_preproc=no
11154fi
7a197a62 11155
ad6254c5 11156rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
11157{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11158echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11159
11160# So? What about this header?
8a2fc586
AK
11161case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11162 yes:no: )
68f2de6d
AK
11163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11164echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11166echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11167 ac_header_preproc=yes
ad6254c5 11168 ;;
8a2fc586 11169 no:yes:* )
68f2de6d
AK
11170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11171echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11173echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11175echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11177echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11179echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11181echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11182
ad6254c5
AK
11183 ;;
11184esac
68f2de6d
AK
11185{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11188 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11189else
8a2fc586 11190 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 11191fi
68f2de6d
AK
11192ac_res=`eval echo '${'$as_ac_Header'}'`
11193 { echo "$as_me:$LINENO: result: $ac_res" >&5
11194echo "${ECHO_T}$ac_res" >&6; }
80992638 11195
8106cdd5 11196fi
68f2de6d 11197if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11198 cat >>confdefs.h <<_ACEOF
68f2de6d 11199#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11200_ACEOF
795ca3e5
AK
11201
11202else
68f2de6d
AK
11203 { { echo "$as_me:$LINENO: error: bailing out" >&5
11204echo "$as_me: error: bailing out" >&2;}
ad6254c5 11205 { (exit 1); exit 1; }; }
795ca3e5
AK
11206fi
11207
ad6254c5 11208done
80992638 11209
ad6254c5 11210fi
80992638 11211
ad6254c5 11212if test x$INTL = xyes; then
83912faa 11213
ad6254c5
AK
11214for ac_header in libintl.h
11215do
68f2de6d 11216as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11217if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
11218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11221 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11222fi
68f2de6d
AK
11223ac_res=`eval echo '${'$as_ac_Header'}'`
11224 { echo "$as_me:$LINENO: result: $ac_res" >&5
11225echo "${ECHO_T}$ac_res" >&6; }
83912faa 11226else
ad6254c5 11227 # Is the header compilable?
68f2de6d
AK
11228{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11229echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11230cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11231/* confdefs.h. */
11232_ACEOF
11233cat confdefs.h >>conftest.$ac_ext
11234cat >>conftest.$ac_ext <<_ACEOF
11235/* end confdefs.h. */
11236$ac_includes_default
11237#include <$ac_header>
11238_ACEOF
11239rm -f conftest.$ac_objext
7a197a62
AK
11240if { (ac_try="$ac_compile"
11241case "(($ac_try" in
11242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11243 *) ac_try_echo=$ac_try;;
11244esac
68f2de6d 11245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11246 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11247 ac_status=$?
8a2fc586
AK
11248 grep -v '^ *+' conftest.er1 >conftest.err
11249 rm -f conftest.er1
11250 cat conftest.err >&5
68f2de6d 11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11252 (exit $ac_status); } && {
11253 test -z "$ac_c_werror_flag" ||
11254 test ! -s conftest.err
11255 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11256 ac_header_compiler=yes
11257else
68f2de6d 11258 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11259sed 's/^/| /' conftest.$ac_ext >&5
11260
7a197a62 11261 ac_header_compiler=no
ad6254c5 11262fi
7a197a62
AK
11263
11264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
11265{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11266echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11267
11268# Is the header present?
68f2de6d
AK
11269{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11270echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11271cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11272/* confdefs.h. */
11273_ACEOF
11274cat confdefs.h >>conftest.$ac_ext
11275cat >>conftest.$ac_ext <<_ACEOF
11276/* end confdefs.h. */
11277#include <$ac_header>
11278_ACEOF
7a197a62
AK
11279if { (ac_try="$ac_cpp conftest.$ac_ext"
11280case "(($ac_try" in
11281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282 *) ac_try_echo=$ac_try;;
11283esac
68f2de6d 11284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11286 ac_status=$?
11287 grep -v '^ *+' conftest.er1 >conftest.err
11288 rm -f conftest.er1
11289 cat conftest.err >&5
68f2de6d 11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11291 (exit $ac_status); } >/dev/null && {
11292 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11293 test ! -s conftest.err
11294 }; then
ad6254c5
AK
11295 ac_header_preproc=yes
11296else
68f2de6d 11297 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11298sed 's/^/| /' conftest.$ac_ext >&5
11299
11300 ac_header_preproc=no
11301fi
7a197a62 11302
ad6254c5 11303rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
11304{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11305echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11306
11307# So? What about this header?
8a2fc586
AK
11308case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11309 yes:no: )
68f2de6d
AK
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11311echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11313echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11314 ac_header_preproc=yes
ad6254c5 11315 ;;
8a2fc586 11316 no:yes:* )
68f2de6d
AK
11317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11318echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11320echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11322echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11324echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11326echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11328echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11329
ad6254c5
AK
11330 ;;
11331esac
68f2de6d
AK
11332{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11333echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11334if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11335 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 11336else
8a2fc586 11337 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 11338fi
68f2de6d
AK
11339ac_res=`eval echo '${'$as_ac_Header'}'`
11340 { echo "$as_me:$LINENO: result: $ac_res" >&5
11341echo "${ECHO_T}$ac_res" >&6; }
83912faa 11342
69792976 11343fi
68f2de6d 11344if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11345 cat >>confdefs.h <<_ACEOF
68f2de6d 11346#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11347_ACEOF
69792976 11348
69792976 11349else
68f2de6d
AK
11350 { { echo "$as_me:$LINENO: error: bailing out" >&5
11351echo "$as_me: error: bailing out" >&2;}
ad6254c5 11352 { (exit 1); exit 1; }; }
80992638
AK
11353fi
11354
ad6254c5 11355done
69792976 11356
ad6254c5
AK
11357fi
11358
ad6254c5
AK
11359
11360for ac_header in libdevmapper.h
11361do
68f2de6d 11362as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11363if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
11364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11367 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11368fi
68f2de6d
AK
11369ac_res=`eval echo '${'$as_ac_Header'}'`
11370 { echo "$as_me:$LINENO: result: $ac_res" >&5
11371echo "${ECHO_T}$ac_res" >&6; }
69792976 11372else
ad6254c5 11373 # Is the header compilable?
68f2de6d
AK
11374{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11375echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11376cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11377/* confdefs.h. */
11378_ACEOF
11379cat confdefs.h >>conftest.$ac_ext
11380cat >>conftest.$ac_ext <<_ACEOF
11381/* end confdefs.h. */
11382$ac_includes_default
11383#include <$ac_header>
11384_ACEOF
11385rm -f conftest.$ac_objext
7a197a62
AK
11386if { (ac_try="$ac_compile"
11387case "(($ac_try" in
11388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389 *) ac_try_echo=$ac_try;;
11390esac
68f2de6d 11391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11392 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11393 ac_status=$?
8a2fc586
AK
11394 grep -v '^ *+' conftest.er1 >conftest.err
11395 rm -f conftest.er1
11396 cat conftest.err >&5
68f2de6d 11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11398 (exit $ac_status); } && {
11399 test -z "$ac_c_werror_flag" ||
11400 test ! -s conftest.err
11401 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11402 ac_header_compiler=yes
11403else
68f2de6d 11404 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11405sed 's/^/| /' conftest.$ac_ext >&5
11406
7a197a62 11407 ac_header_compiler=no
ad6254c5 11408fi
7a197a62
AK
11409
11410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
11411{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11412echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11413
11414# Is the header present?
68f2de6d
AK
11415{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11416echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11417cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11418/* confdefs.h. */
11419_ACEOF
11420cat confdefs.h >>conftest.$ac_ext
11421cat >>conftest.$ac_ext <<_ACEOF
11422/* end confdefs.h. */
11423#include <$ac_header>
11424_ACEOF
7a197a62
AK
11425if { (ac_try="$ac_cpp conftest.$ac_ext"
11426case "(($ac_try" in
11427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428 *) ac_try_echo=$ac_try;;
11429esac
68f2de6d 11430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11432 ac_status=$?
11433 grep -v '^ *+' conftest.er1 >conftest.err
11434 rm -f conftest.er1
11435 cat conftest.err >&5
68f2de6d 11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11437 (exit $ac_status); } >/dev/null && {
11438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11439 test ! -s conftest.err
11440 }; then
ad6254c5
AK
11441 ac_header_preproc=yes
11442else
68f2de6d 11443 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11444sed 's/^/| /' conftest.$ac_ext >&5
11445
11446 ac_header_preproc=no
11447fi
7a197a62 11448
ad6254c5 11449rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
11450{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11451echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11452
11453# So? What about this header?
8a2fc586
AK
11454case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11455 yes:no: )
68f2de6d
AK
11456 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11457echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11459echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11460 ac_header_preproc=yes
ad6254c5 11461 ;;
8a2fc586 11462 no:yes:* )
68f2de6d
AK
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11464echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11466echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11467 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11468echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11469 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11470echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11472echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11474echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11475
ad6254c5
AK
11476 ;;
11477esac
68f2de6d
AK
11478{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11480if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11481 echo $ECHO_N "(cached) $ECHO_C" >&6
69792976 11482else
8a2fc586 11483 eval "$as_ac_Header=\$ac_header_preproc"
69792976 11484fi
68f2de6d
AK
11485ac_res=`eval echo '${'$as_ac_Header'}'`
11486 { echo "$as_me:$LINENO: result: $ac_res" >&5
11487echo "${ECHO_T}$ac_res" >&6; }
69792976 11488
ad6254c5 11489fi
68f2de6d 11490if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11491 cat >>confdefs.h <<_ACEOF
68f2de6d 11492#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11493_ACEOF
69792976 11494
69792976 11495else
68f2de6d
AK
11496 { { echo "$as_me:$LINENO: error: bailing out" >&5
11497echo "$as_me: error: bailing out" >&2;}
ad6254c5 11498 { (exit 1); exit 1; }; }
83912faa
AK
11499fi
11500
ad6254c5
AK
11501done
11502
4a7f3eb2 11503
ad6254c5
AK
11504if test x$HAVE_SELINUX = xyes; then
11505
11506for ac_header in selinux/selinux.h
11507do
68f2de6d 11508as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
11510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11513 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11514fi
68f2de6d
AK
11515ac_res=`eval echo '${'$as_ac_Header'}'`
11516 { echo "$as_me:$LINENO: result: $ac_res" >&5
11517echo "${ECHO_T}$ac_res" >&6; }
4a7f3eb2 11518else
ad6254c5 11519 # Is the header compilable?
68f2de6d
AK
11520{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11521echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11522cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11523/* confdefs.h. */
11524_ACEOF
11525cat confdefs.h >>conftest.$ac_ext
11526cat >>conftest.$ac_ext <<_ACEOF
11527/* end confdefs.h. */
11528$ac_includes_default
11529#include <$ac_header>
11530_ACEOF
11531rm -f conftest.$ac_objext
7a197a62
AK
11532if { (ac_try="$ac_compile"
11533case "(($ac_try" in
11534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535 *) ac_try_echo=$ac_try;;
11536esac
68f2de6d 11537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11538 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11539 ac_status=$?
8a2fc586
AK
11540 grep -v '^ *+' conftest.er1 >conftest.err
11541 rm -f conftest.er1
11542 cat conftest.err >&5
68f2de6d 11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11544 (exit $ac_status); } && {
11545 test -z "$ac_c_werror_flag" ||
11546 test ! -s conftest.err
11547 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11548 ac_header_compiler=yes
11549else
68f2de6d 11550 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11551sed 's/^/| /' conftest.$ac_ext >&5
11552
7a197a62 11553 ac_header_compiler=no
ad6254c5 11554fi
7a197a62
AK
11555
11556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
11557{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11558echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11559
11560# Is the header present?
68f2de6d
AK
11561{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11562echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11563cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11564/* confdefs.h. */
11565_ACEOF
11566cat confdefs.h >>conftest.$ac_ext
11567cat >>conftest.$ac_ext <<_ACEOF
11568/* end confdefs.h. */
11569#include <$ac_header>
11570_ACEOF
7a197a62
AK
11571if { (ac_try="$ac_cpp conftest.$ac_ext"
11572case "(($ac_try" in
11573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11574 *) ac_try_echo=$ac_try;;
11575esac
68f2de6d 11576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11578 ac_status=$?
11579 grep -v '^ *+' conftest.er1 >conftest.err
11580 rm -f conftest.er1
11581 cat conftest.err >&5
68f2de6d 11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11583 (exit $ac_status); } >/dev/null && {
11584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11585 test ! -s conftest.err
11586 }; then
ad6254c5
AK
11587 ac_header_preproc=yes
11588else
68f2de6d 11589 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11590sed 's/^/| /' conftest.$ac_ext >&5
11591
11592 ac_header_preproc=no
11593fi
7a197a62 11594
ad6254c5 11595rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
11596{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11597echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11598
11599# So? What about this header?
8a2fc586
AK
11600case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11601 yes:no: )
68f2de6d
AK
11602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11603echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11605echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11606 ac_header_preproc=yes
ad6254c5 11607 ;;
8a2fc586 11608 no:yes:* )
68f2de6d
AK
11609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11610echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11612echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11614echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11616echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11618echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11620echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11621
ad6254c5
AK
11622 ;;
11623esac
68f2de6d
AK
11624{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11625echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11626if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11627 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11628else
8a2fc586 11629 eval "$as_ac_Header=\$ac_header_preproc"
80992638 11630fi
68f2de6d
AK
11631ac_res=`eval echo '${'$as_ac_Header'}'`
11632 { echo "$as_me:$LINENO: result: $ac_res" >&5
11633echo "${ECHO_T}$ac_res" >&6; }
4a7f3eb2 11634
ad6254c5 11635fi
68f2de6d 11636if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11637 cat >>confdefs.h <<_ACEOF
68f2de6d 11638#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11639_ACEOF
0a62c911 11640
0a62c911 11641else
68f2de6d
AK
11642 { { echo "$as_me:$LINENO: error: bailing out" >&5
11643echo "$as_me: error: bailing out" >&2;}
ad6254c5 11644 { (exit 1); exit 1; }; }
80992638
AK
11645fi
11646
ad6254c5 11647done
0a62c911 11648
ad6254c5 11649fi
0a62c911 11650
a653923f
AK
11651################################################################################
11652# Extract the first word of "modprobe", so it can be a program name with args.
11653set dummy modprobe; ac_word=$2
68f2de6d
AK
11654{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
72b2cb61 11656if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
68f2de6d 11657 echo $ECHO_N "(cached) $ECHO_C" >&6
72b2cb61
AK
11658else
11659 case $MODPROBE_CMD in
11660 [\\/]* | ?:[\\/]*)
11661 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
11662 ;;
11663 *)
11664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665for as_dir in $PATH
11666do
11667 IFS=$as_save_IFS
11668 test -z "$as_dir" && as_dir=.
11669 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 11670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 11671 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 11672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
11673 break 2
11674 fi
11675done
11676done
7a197a62 11677IFS=$as_save_IFS
72b2cb61
AK
11678
11679 ;;
11680esac
11681fi
11682MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 11683if test -n "$MODPROBE_CMD"; then
68f2de6d
AK
11684 { echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
11685echo "${ECHO_T}$MODPROBE_CMD" >&6; }
72b2cb61 11686else
68f2de6d
AK
11687 { echo "$as_me:$LINENO: result: no" >&5
11688echo "${ECHO_T}no" >&6; }
72b2cb61
AK
11689fi
11690
a653923f 11691
7a197a62 11692
a653923f 11693if test x$MODPROBE_CMD != x; then
72b2cb61
AK
11694
11695cat >>confdefs.h <<_ACEOF
11696#define MODPROBE_CMD "$MODPROBE_CMD"
11697_ACEOF
11698
a653923f
AK
11699fi
11700
80992638 11701################################################################################
93bd259b
AK
11702
11703
11704if test "$BUILD_DMEVENTD" = yes; then
11705
11706# Check whether --with-dmeventd-pidfile was given.
11707if test "${with_dmeventd_pidfile+set}" = set; then
11708 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
11709#define DMEVENTD_PIDFILE "$withval"
11710_ACEOF
11711
11712else
11713 cat >>confdefs.h <<_ACEOF
11714#define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
11715_ACEOF
11716
11717fi
11718
11719fi
11720
11721
11722
11723if test "$BUILD_DMEVENTD" = yes; then
11724 dmeventd_prefix="$exec_prefix"
11725 if test "x$dmeventd_prefix" = "xNONE"; then
11726 dmeventd_prefix="$prefix"
11727 fi
11728 if test "x$dmeventd_prefix" = "xNONE"; then
11729 dmeventd_prefix=""
11730 fi
11731
11732# Check whether --with-dmeventd-path was given.
11733if test "${with_dmeventd_path+set}" = set; then
11734 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
11735#define DMEVENTD_PATH "$withval"
11736_ACEOF
11737
11738else
11739 cat >>confdefs.h <<_ACEOF
11740#define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
11741_ACEOF
11742
11743fi
11744
11745fi
11746
11747################################################################################
11748{ echo "$as_me:$LINENO: checking for kernel interface choice" >&5
11749echo $ECHO_N "checking for kernel interface choice... $ECHO_C" >&6; }
11750
11751# Check whether --with-interface was given.
11752if test "${with_interface+set}" = set; then
11753 withval=$with_interface; interface="$withval"
11754else
11755 interface=ioctl
11756fi
11757
11758if [ "x$interface" != xioctl ];
11759then
11760 { { echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
11761echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
11762 { (exit 1); exit 1; }; }
11763fi
11764{ echo "$as_me:$LINENO: result: $interface" >&5
11765echo "${ECHO_T}$interface" >&6; }
11766
11767################################################################################
11768DM_LIB_VERSION="\"`cat VERSION_LIB 2>/dev/null || echo Unknown`\""
d0191583 11769LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
fae0c576 11770
80992638 11771################################################################################
fae0c576 11772
83912faa 11773
795ca3e5
AK
11774
11775
11776
11777
11778
11779
5a52dca9 11780
8ef2b021 11781
199e490e 11782
69792976
AK
11783
11784
11785
d0191583 11786
69792976 11787
8106cdd5
AK
11788
11789
11790
11791
11792
d68a82ec 11793
036f273a 11794
7d1552c9 11795
8106cdd5 11796
0a62c911 11797
8106cdd5 11798
4a7f3eb2 11799
4922197a
AK
11800
11801
d8ac0fbc 11802
1a9ea74d 11803
8a2fc586
AK
11804
11805
d0191583 11806
93bd259b
AK
11807
11808
11809
11810
11811
d0191583
JM
11812
11813
11814
11815
11816
8a2fc586 11817
8ce0cbda 11818
8b1a3214 11819
33f732c5 11820
66e941e8 11821
d3c8211f 11822
68f2de6d
AK
11823
11824
80992638 11825################################################################################
04f06bc9 11826ac_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/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc man/Makefile po/Makefile scripts/Makefile test/Makefile tools/Makefile tools/version.h"
7a197a62 11827
ad6254c5 11828cat >confcache <<\_ACEOF
795ca3e5
AK
11829# This file is a shell script that caches the results of configure
11830# tests run on this system so they can be shared between configure
ad6254c5
AK
11831# scripts and configure runs, see configure's option --config-cache.
11832# It is not useful on other systems. If it contains results you don't
11833# want to keep, you may remove or edit it.
795ca3e5 11834#
ad6254c5
AK
11835# config.status only pays attention to the cache file if you give it
11836# the --recheck option to rerun configure.
795ca3e5 11837#
ad6254c5
AK
11838# `ac_cv_env_foo' variables (set or unset) will be overridden when
11839# loading this file, other *unset* `ac_cv_foo' will be assigned the
11840# following values.
11841
11842_ACEOF
11843
795ca3e5
AK
11844# The following way of writing the cache mishandles newlines in values,
11845# but we know of no workaround that is simple, portable, and efficient.
7a197a62 11846# So, we kill variables containing newlines.
795ca3e5
AK
11847# Ultrix sh set writes to stderr and can't be redirected directly,
11848# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
11849(
11850 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11851 eval ac_val=\$$ac_var
11852 case $ac_val in #(
11853 *${as_nl}*)
11854 case $ac_var in #(
68f2de6d
AK
11855 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11856echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7a197a62
AK
11857 esac
11858 case $ac_var in #(
11859 _ | IFS | as_nl) ;; #(
11860 *) $as_unset $ac_var ;;
11861 esac ;;
11862 esac
11863 done
11864
ad6254c5 11865 (set) 2>&1 |
7a197a62
AK
11866 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11867 *${as_nl}ac_space=\ *)
ad6254c5
AK
11868 # `set' does not quote correctly, so add quotes (double-quote
11869 # substitution turns \\\\ into \\, and sed turns \\ into \).
11870 sed -n \
8a2fc586
AK
11871 "s/'/'\\\\''/g;
11872 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 11873 ;; #(
ad6254c5
AK
11874 *)
11875 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 11876 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 11877 ;;
7a197a62
AK
11878 esac |
11879 sort
11880) |
ad6254c5 11881 sed '
7a197a62 11882 /^ac_cv_env_/b end
ad6254c5 11883 t clear
7a197a62 11884 :clear
ad6254c5
AK
11885 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11886 t end
7a197a62
AK
11887 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11888 :end' >>confcache
11889if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11890 if test -w "$cache_file"; then
11891 test "x$cache_file" != "x/dev/null" &&
68f2de6d
AK
11892 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11893echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 11894 cat confcache >$cache_file
795ca3e5 11895 else
68f2de6d
AK
11896 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11897echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
11898 fi
11899fi
11900rm -f confcache
11901
795ca3e5
AK
11902test "x$prefix" = xNONE && prefix=$ac_default_prefix
11903# Let make expand exec_prefix.
11904test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11905
72b2cb61 11906DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
11907
11908ac_libobjs=
11909ac_ltlibobjs=
11910for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11911 # 1. Remove the extension, and $U if already installed.
7a197a62 11912 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
68f2de6d 11913 ac_i=`echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
11914 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11915 # will be set to the directory where LIBOBJS objects are built.
11916 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11917 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
11918done
11919LIBOBJS=$ac_libobjs
80992638 11920
ad6254c5
AK
11921LTLIBOBJS=$ac_ltlibobjs
11922
11923
11924
11925: ${CONFIG_STATUS=./config.status}
11926ac_clean_files_save=$ac_clean_files
11927ac_clean_files="$ac_clean_files $CONFIG_STATUS"
68f2de6d
AK
11928{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11929echo "$as_me: creating $CONFIG_STATUS" >&6;}
11930cat >$CONFIG_STATUS <<_ACEOF
ad6254c5
AK
11931#! $SHELL
11932# Generated by $as_me.
795ca3e5 11933# Run this file to recreate the current configuration.
795ca3e5 11934# Compiler output produced by configure, useful for debugging
ad6254c5
AK
11935# configure, is in config.log if it exists.
11936
11937debug=false
11938ac_cs_recheck=false
11939ac_cs_silent=false
11940SHELL=\${CONFIG_SHELL-$SHELL}
11941_ACEOF
11942
68f2de6d 11943cat >>$CONFIG_STATUS <<\_ACEOF
ad6254c5
AK
11944## --------------------- ##
11945## M4sh Initialization. ##
11946## --------------------- ##
11947
25fbec5b
AK
11948# Be more Bourne compatible
11949DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
11950if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11951 emulate sh
11952 NULLCMD=:
68f2de6d 11953 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
ad6254c5
AK
11954 # is contrary to our usage. Disable this feature.
11955 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
11956 setopt NO_GLOB_SUBST
11957else
25fbec5b
AK
11958 case `(set -o) 2>/dev/null` in
11959 *posix*) set -o posix ;;
11960esac
11961
7a197a62 11962fi
25fbec5b
AK
11963
11964
7a197a62
AK
11965
11966
11967# PATH needs CR
11968# Avoid depending upon Character Ranges.
11969as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11970as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11971as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11972as_cr_digits='0123456789'
11973as_cr_alnum=$as_cr_Letters$as_cr_digits
11974
b145d876
ZK
11975# The user is always right.
11976if test "${PATH_SEPARATOR+set}" != set; then
68f2de6d
AK
11977 echo "#! /bin/sh" >conf$$.sh
11978 echo "exit 0" >>conf$$.sh
11979 chmod +x conf$$.sh
11980 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11981 PATH_SEPARATOR=';'
11982 else
11983 PATH_SEPARATOR=:
11984 fi
11985 rm -f conf$$.sh
ad6254c5
AK
11986fi
11987
11988# Support unset when possible.
8a2fc586 11989if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
11990 as_unset=unset
11991else
11992 as_unset=false
11993fi
8106cdd5 11994
ad6254c5 11995
7a197a62
AK
11996# IFS
11997# We need space, tab and new line, in precisely that order. Quoting is
11998# there to prevent editors from complaining about space-tab.
11999# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12000# splitting by setting IFS to empty value.)
68f2de6d
AK
12001as_nl='
12002'
7a197a62
AK
12003IFS=" "" $as_nl"
12004
12005# Find who we are. Look in the path if we contain no directory separator.
12006case $0 in
12007 *[\\/]* ) as_myself=$0 ;;
12008 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12009for as_dir in $PATH
12010do
12011 IFS=$as_save_IFS
12012 test -z "$as_dir" && as_dir=.
12013 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12014done
12015IFS=$as_save_IFS
12016
12017 ;;
12018esac
12019# We did not find ourselves, most probably we were run as `sh COMMAND'
12020# in which case we are not to be found in the path.
12021if test "x$as_myself" = x; then
12022 as_myself=$0
12023fi
12024if test ! -f "$as_myself"; then
68f2de6d 12025 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
12026 { (exit 1); exit 1; }
12027fi
12028
ad6254c5 12029# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
12030for as_var in ENV MAIL MAILPATH
12031do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12032done
ad6254c5
AK
12033PS1='$ '
12034PS2='> '
12035PS4='+ '
12036
12037# NLS nuisances.
68f2de6d
AK
12038for as_var in \
12039 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12040 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12041 LC_TELEPHONE LC_TIME
12042do
12043 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12044 eval $as_var=C; export $as_var
12045 else
12046 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12047 fi
12048done
8106cdd5 12049
ad6254c5 12050# Required to use basename.
7a197a62
AK
12051if expr a : '\(a\)' >/dev/null 2>&1 &&
12052 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
12053 as_expr=expr
12054else
12055 as_expr=false
12056fi
8106cdd5 12057
7a197a62 12058if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
12059 as_basename=basename
12060else
12061 as_basename=false
12062fi
12063
12064
12065# Name of the executable.
7a197a62 12066as_me=`$as_basename -- "$0" ||
ad6254c5
AK
12067$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12068 X"$0" : 'X\(//\)$' \| \
7a197a62 12069 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
68f2de6d 12070echo X/"$0" |
7a197a62
AK
12071 sed '/^.*\/\([^/][^/]*\)\/*$/{
12072 s//\1/
12073 q
12074 }
12075 /^X\/\(\/\/\)$/{
12076 s//\1/
12077 q
12078 }
12079 /^X\/\(\/\).*/{
12080 s//\1/
12081 q
12082 }
12083 s/.*/./; q'`
ad6254c5 12084
7a197a62
AK
12085# CDPATH.
12086$as_unset CDPATH
ad6254c5
AK
12087
12088
ad6254c5 12089
ad6254c5
AK
12090 as_lineno_1=$LINENO
12091 as_lineno_2=$LINENO
ad6254c5 12092 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 12093 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 12094
ad6254c5
AK
12095 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12096 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
12097 # line-number line after each line using $LINENO; the second 'sed'
12098 # does the real work. The second script uses 'N' to pair each
12099 # line-number line with the line containing $LINENO, and appends
12100 # trailing '-' during substitution so that $LINENO is not a special
12101 # case at line end.
ad6254c5 12102 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
12103 # scripts with optimization help from Paolo Bonzini. Blame Lee
12104 # E. McMahon (1931-1989) for sed's syntax. :-)
12105 sed -n '
12106 p
12107 /[$]LINENO/=
12108 ' <$as_myself |
ad6254c5 12109 sed '
7a197a62
AK
12110 s/[$]LINENO.*/&-/
12111 t lineno
12112 b
12113 :lineno
ad6254c5 12114 N
7a197a62
AK
12115 :loop
12116 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 12117 t loop
7a197a62 12118 s/-\n.*//
ad6254c5 12119 ' >$as_me.lineno &&
7a197a62 12120 chmod +x "$as_me.lineno" ||
68f2de6d 12121 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
12122 { (exit 1); exit 1; }; }
12123
12124 # Don't try to exec as it changes $[0], causing all sort of problems
12125 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
12126 # original and so on. Autoconf is especially sensitive to this).
12127 . "./$as_me.lineno"
ad6254c5
AK
12128 # Exit status is that of the last command.
12129 exit
12130}
12131
12132
7a197a62
AK
12133if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12134 as_dirname=dirname
12135else
12136 as_dirname=false
12137fi
12138
12139ECHO_C= ECHO_N= ECHO_T=
12140case `echo -n x` in
12141-n*)
12142 case `echo 'x\c'` in
12143 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12144 *) ECHO_C='\c';;
12145 esac;;
12146*)
12147 ECHO_N='-n';;
ad6254c5 12148esac
68f2de6d 12149
7a197a62
AK
12150if expr a : '\(a\)' >/dev/null 2>&1 &&
12151 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
12152 as_expr=expr
12153else
12154 as_expr=false
12155fi
80992638 12156
ad6254c5 12157rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
12158if test -d conf$$.dir; then
12159 rm -f conf$$.dir/conf$$.file
12160else
12161 rm -f conf$$.dir
68f2de6d
AK
12162 mkdir conf$$.dir
12163fi
12164echo >conf$$.file
12165if ln -s conf$$.file conf$$ 2>/dev/null; then
12166 as_ln_s='ln -s'
12167 # ... but there are two gotchas:
12168 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12169 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12170 # In both cases, we have to default to `cp -p'.
12171 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
ad6254c5 12172 as_ln_s='cp -p'
68f2de6d
AK
12173elif ln conf$$.file conf$$ 2>/dev/null; then
12174 as_ln_s=ln
ad6254c5
AK
12175else
12176 as_ln_s='cp -p'
12177fi
7a197a62
AK
12178rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12179rmdir conf$$.dir 2>/dev/null
8106cdd5 12180
ad6254c5
AK
12181if mkdir -p . 2>/dev/null; then
12182 as_mkdir_p=:
12183else
8a2fc586 12184 test -d ./-p && rmdir ./-p
ad6254c5
AK
12185 as_mkdir_p=false
12186fi
12187
25fbec5b
AK
12188if test -x / >/dev/null 2>&1; then
12189 as_test_x='test -x'
7a197a62 12190else
25fbec5b
AK
12191 if ls -dL / >/dev/null 2>&1; then
12192 as_ls_L_option=L
12193 else
12194 as_ls_L_option=
12195 fi
12196 as_test_x='
12197 eval sh -c '\''
12198 if test -d "$1"; then
68f2de6d 12199 test -d "$1/.";
25fbec5b
AK
12200 else
12201 case $1 in
68f2de6d 12202 -*)set "./$1";;
25fbec5b
AK
12203 esac;
12204 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12205 ???[sx]*):;;*)false;;esac;fi
12206 '\'' sh
12207 '
7a197a62 12208fi
25fbec5b 12209as_executable_p=$as_test_x
ad6254c5
AK
12210
12211# Sed expression to map a string onto a valid CPP name.
8a2fc586 12212as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
12213
12214# Sed expression to map a string onto a valid variable name.
8a2fc586 12215as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
12216
12217
ad6254c5
AK
12218exec 6>&1
12219
7a197a62 12220# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 12221# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
12222# values after options handling.
12223ac_log="
ad6254c5 12224This file was extended by $as_me, which was
68f2de6d 12225generated by GNU Autoconf 2.61. Invocation command line was
ad6254c5
AK
12226
12227 CONFIG_FILES = $CONFIG_FILES
12228 CONFIG_HEADERS = $CONFIG_HEADERS
12229 CONFIG_LINKS = $CONFIG_LINKS
12230 CONFIG_COMMANDS = $CONFIG_COMMANDS
12231 $ $0 $@
12232
7a197a62
AK
12233on `(hostname || uname -n) 2>/dev/null | sed 1q`
12234"
12235
ad6254c5
AK
12236_ACEOF
12237
68f2de6d 12238cat >>$CONFIG_STATUS <<_ACEOF
ad6254c5 12239# Files that config.status was made for.
68f2de6d
AK
12240config_files="$ac_config_files"
12241config_headers="$ac_config_headers"
ad6254c5 12242
7a197a62 12243_ACEOF
ad6254c5 12244
68f2de6d 12245cat >>$CONFIG_STATUS <<\_ACEOF
ad6254c5
AK
12246ac_cs_usage="\
12247\`$as_me' instantiates files from templates according to the
12248current configuration.
12249
12250Usage: $0 [OPTIONS] [FILE]...
12251
12252 -h, --help print this help, then exit
25fbec5b 12253 -V, --version print version number and configuration settings, then exit
ad6254c5
AK
12254 -q, --quiet do not print progress messages
12255 -d, --debug don't remove temporary files
12256 --recheck update $as_me by reconfiguring in the same conditions
12257 --file=FILE[:TEMPLATE]
68f2de6d 12258 instantiate the configuration file FILE
72b2cb61 12259 --header=FILE[:TEMPLATE]
68f2de6d 12260 instantiate the configuration header FILE
ad6254c5
AK
12261
12262Configuration files:
12263$config_files
12264
72b2cb61
AK
12265Configuration headers:
12266$config_headers
12267
ad6254c5 12268Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 12269
7a197a62 12270_ACEOF
68f2de6d 12271cat >>$CONFIG_STATUS <<_ACEOF
ad6254c5
AK
12272ac_cs_version="\\
12273config.status
68f2de6d
AK
12274configured by $0, generated by GNU Autoconf 2.61,
12275 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 12276
68f2de6d 12277Copyright (C) 2006 Free Software Foundation, Inc.
ad6254c5
AK
12278This config.status script is free software; the Free Software Foundation
12279gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
12280
12281ac_pwd='$ac_pwd'
12282srcdir='$srcdir'
12283INSTALL='$INSTALL'
fddafd51 12284MKDIR_P='$MKDIR_P'
ad6254c5
AK
12285_ACEOF
12286
68f2de6d
AK
12287cat >>$CONFIG_STATUS <<\_ACEOF
12288# If no file are specified by the user, then we need to provide default
12289# value. By we need to know if files were specified by the user.
ad6254c5
AK
12290ac_need_defaults=:
12291while test $# != 0
12292do
12293 case $1 in
12294 --*=*)
7a197a62
AK
12295 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12296 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
12297 ac_shift=:
12298 ;;
7a197a62 12299 *)
ad6254c5
AK
12300 ac_option=$1
12301 ac_optarg=$2
12302 ac_shift=shift
12303 ;;
ad6254c5
AK
12304 esac
12305
12306 case $ac_option in
12307 # Handling of the options.
ad6254c5
AK
12308 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12309 ac_cs_recheck=: ;;
7a197a62 12310 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
68f2de6d 12311 echo "$ac_cs_version"; exit ;;
7a197a62 12312 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
12313 debug=: ;;
12314 --file | --fil | --fi | --f )
12315 $ac_shift
68f2de6d 12316 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
ad6254c5
AK
12317 ac_need_defaults=false;;
12318 --header | --heade | --head | --hea )
12319 $ac_shift
68f2de6d 12320 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
ad6254c5 12321 ac_need_defaults=false;;
7a197a62
AK
12322 --he | --h)
12323 # Conflict between --help and --header
68f2de6d 12324 { echo "$as_me: error: ambiguous option: $1
7a197a62
AK
12325Try \`$0 --help' for more information." >&2
12326 { (exit 1); exit 1; }; };;
12327 --help | --hel | -h )
68f2de6d 12328 echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
12329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12330 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12331 ac_cs_silent=: ;;
12332
12333 # This is an error.
68f2de6d 12334 -*) { echo "$as_me: error: unrecognized option: $1
7a197a62 12335Try \`$0 --help' for more information." >&2
ad6254c5
AK
12336 { (exit 1); exit 1; }; } ;;
12337
7a197a62
AK
12338 *) ac_config_targets="$ac_config_targets $1"
12339 ac_need_defaults=false ;;
ad6254c5
AK
12340
12341 esac
12342 shift
12343done
12344
12345ac_configure_extra_args=
12346
12347if $ac_cs_silent; then
12348 exec 6>/dev/null
12349 ac_configure_extra_args="$ac_configure_extra_args --silent"
12350fi
12351
12352_ACEOF
68f2de6d 12353cat >>$CONFIG_STATUS <<_ACEOF
ad6254c5 12354if \$ac_cs_recheck; then
68f2de6d
AK
12355 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12356 CONFIG_SHELL=$SHELL
7a197a62 12357 export CONFIG_SHELL
68f2de6d 12358 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
ad6254c5
AK
12359fi
12360
12361_ACEOF
68f2de6d 12362cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12363exec 5>>config.log
12364{
12365 echo
12366 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12367## Running $as_me. ##
12368_ASBOX
68f2de6d 12369 echo "$ac_log"
7a197a62 12370} >&5
ad6254c5 12371
7a197a62 12372_ACEOF
68f2de6d 12373cat >>$CONFIG_STATUS <<_ACEOF
7a197a62 12374_ACEOF
ad6254c5 12375
68f2de6d 12376cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12377
12378# Handling of arguments.
ad6254c5
AK
12379for ac_config_target in $ac_config_targets
12380do
7a197a62
AK
12381 case $ac_config_target in
12382 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
12383 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12384 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
12385 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
12386 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
93bd259b
AK
12387 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
12388 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 12389 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
93bd259b
AK
12390 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
12391 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 12392 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
93bd259b
AK
12393 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12394 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
12395 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
12396 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
12397 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
12398 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
12399 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
12400 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
12401 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
12402 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12403 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
7a197a62 12404 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 12405 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
7a197a62
AK
12406 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
12407 "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
7a197a62 12408
68f2de6d
AK
12409 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12410echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 12411 { (exit 1); exit 1; }; };;
80992638 12412 esac
ad6254c5
AK
12413done
12414
7a197a62 12415
ad6254c5
AK
12416# If the user did not use the arguments to specify the items to instantiate,
12417# then the envvar interface is used. Set only those that are not.
12418# We use the long form for the default assignment because of an extremely
12419# bizarre bug on SunOS 4.1.3.
12420if $ac_need_defaults; then
12421 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 12422 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
12423fi
12424
12425# Have a temporary directory for convenience. Make it in the build tree
7a197a62 12426# simply because there is no reason against having it here, and in addition,
ad6254c5 12427# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
12428# Hook for its removal unless debugging.
12429# Note that there is a small window in which the directory will not be cleaned:
12430# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
12431$debug ||
12432{
7a197a62
AK
12433 tmp=
12434 trap 'exit_status=$?
12435 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12436' 0
ad6254c5
AK
12437 trap '{ (exit 1); exit 1; }' 1 2 13 15
12438}
ad6254c5
AK
12439# Create a (secure) tmp directory for tmp files.
12440
12441{
7a197a62 12442 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
12443 test -n "$tmp" && test -d "$tmp"
12444} ||
12445{
7a197a62
AK
12446 tmp=./conf$$-$RANDOM
12447 (umask 077 && mkdir "$tmp")
ad6254c5
AK
12448} ||
12449{
68f2de6d 12450 echo "$me: cannot create a temporary directory in ." >&2
ad6254c5
AK
12451 { (exit 1); exit 1; }
12452}
12453
68f2de6d
AK
12454#
12455# Set up the sed scripts for CONFIG_FILES section.
12456#
12457
12458# No need to generate the scripts if there are no CONFIG_FILES.
12459# This happens for instance when ./config.status config.h
1995c9ff 12460if test -n "$CONFIG_FILES"; then
7a197a62 12461
68f2de6d 12462_ACEOF
5556819a 12463
68f2de6d
AK
12464
12465
12466ac_delim='%!_!# '
12467for ac_last_try in false false false false false :; do
12468 cat >conf$$subs.sed <<_ACEOF
12469SHELL!$SHELL$ac_delim
12470PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12471PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12472PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12473PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12474PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12475PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12476exec_prefix!$exec_prefix$ac_delim
12477prefix!$prefix$ac_delim
12478program_transform_name!$program_transform_name$ac_delim
12479bindir!$bindir$ac_delim
12480sbindir!$sbindir$ac_delim
12481libexecdir!$libexecdir$ac_delim
12482datarootdir!$datarootdir$ac_delim
12483datadir!$datadir$ac_delim
12484sysconfdir!$sysconfdir$ac_delim
12485sharedstatedir!$sharedstatedir$ac_delim
12486localstatedir!$localstatedir$ac_delim
12487includedir!$includedir$ac_delim
12488oldincludedir!$oldincludedir$ac_delim
12489docdir!$docdir$ac_delim
12490infodir!$infodir$ac_delim
12491htmldir!$htmldir$ac_delim
12492dvidir!$dvidir$ac_delim
12493pdfdir!$pdfdir$ac_delim
12494psdir!$psdir$ac_delim
12495libdir!$libdir$ac_delim
12496localedir!$localedir$ac_delim
12497mandir!$mandir$ac_delim
12498DEFS!$DEFS$ac_delim
12499ECHO_C!$ECHO_C$ac_delim
12500ECHO_N!$ECHO_N$ac_delim
12501ECHO_T!$ECHO_T$ac_delim
12502LIBS!$LIBS$ac_delim
12503build_alias!$build_alias$ac_delim
12504host_alias!$host_alias$ac_delim
12505target_alias!$target_alias$ac_delim
12506build!$build$ac_delim
12507build_cpu!$build_cpu$ac_delim
12508build_vendor!$build_vendor$ac_delim
12509build_os!$build_os$ac_delim
12510host!$host$ac_delim
12511host_cpu!$host_cpu$ac_delim
12512host_vendor!$host_vendor$ac_delim
12513host_os!$host_os$ac_delim
12514target!$target$ac_delim
12515target_cpu!$target_cpu$ac_delim
12516target_vendor!$target_vendor$ac_delim
12517target_os!$target_os$ac_delim
5951ef33 12518SED!$SED$ac_delim
68f2de6d
AK
12519AWK!$AWK$ac_delim
12520CC!$CC$ac_delim
12521CFLAGS!$CFLAGS$ac_delim
12522LDFLAGS!$LDFLAGS$ac_delim
12523CPPFLAGS!$CPPFLAGS$ac_delim
12524ac_ct_CC!$ac_ct_CC$ac_delim
12525EXEEXT!$EXEEXT$ac_delim
12526OBJEXT!$OBJEXT$ac_delim
12527CPP!$CPP$ac_delim
12528GREP!$GREP$ac_delim
12529EGREP!$EGREP$ac_delim
12530INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12531INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12532INSTALL_DATA!$INSTALL_DATA$ac_delim
12533LN_S!$LN_S$ac_delim
12534SET_MAKE!$SET_MAKE$ac_delim
12535RANLIB!$RANLIB$ac_delim
12536CFLOW_CMD!$CFLOW_CMD$ac_delim
12537CSCOPE_CMD!$CSCOPE_CMD$ac_delim
12538ALLOCA!$ALLOCA$ac_delim
12539LIBOBJS!$LIBOBJS$ac_delim
12540POW_LIB!$POW_LIB$ac_delim
12541LCOV!$LCOV$ac_delim
12542GENHTML!$GENHTML$ac_delim
12543LVM2CMD_LIB!$LVM2CMD_LIB$ac_delim
12544MSGFMT!$MSGFMT$ac_delim
12545MODPROBE_CMD!$MODPROBE_CMD$ac_delim
12546BUILD_DMEVENTD!$BUILD_DMEVENTD$ac_delim
12547CLDFLAGS!$CLDFLAGS$ac_delim
12548CLDNOWHOLEARCHIVE!$CLDNOWHOLEARCHIVE$ac_delim
12549CLDWHOLEARCHIVE!$CLDWHOLEARCHIVE$ac_delim
12550CLUSTER!$CLUSTER$ac_delim
12551CLVMD!$CLVMD$ac_delim
12552CMDLIB!$CMDLIB$ac_delim
12553COPTIMISE_FLAG!$COPTIMISE_FLAG$ac_delim
12554DEBUG!$DEBUG$ac_delim
12555DEVMAPPER!$DEVMAPPER$ac_delim
68f2de6d
AK
12556DMEVENTD!$DMEVENTD$ac_delim
12557DM_COMPAT!$DM_COMPAT$ac_delim
12558DM_DEVICE_GID!$DM_DEVICE_GID$ac_delim
12559DM_DEVICE_MODE!$DM_DEVICE_MODE$ac_delim
12560DM_DEVICE_UID!$DM_DEVICE_UID$ac_delim
12561DM_IOCTLS!$DM_IOCTLS$ac_delim
12562DM_LIB_VERSION!$DM_LIB_VERSION$ac_delim
12563FSADM!$FSADM$ac_delim
12564GROUP!$GROUP$ac_delim
04f06bc9 12565HAVE_LIBDL!$HAVE_LIBDL$ac_delim
68f2de6d
AK
12566_ACEOF
12567
12568 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12569 break
12570 elif $ac_last_try; then
12571 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12572echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12573 { (exit 1); exit 1; }; }
12574 else
12575 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12576 fi
12577done
12578
12579ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12580if test -n "$ac_eof"; then
12581 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12582 ac_eof=`expr $ac_eof + 1`
1995c9ff 12583fi
7a197a62 12584
68f2de6d
AK
12585cat >>$CONFIG_STATUS <<_ACEOF
12586cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12587/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12588_ACEOF
12589sed '
12590s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12591s/^/s,@/; s/!/@,|#_!!_#|/
12592:n
12593t n
12594s/'"$ac_delim"'$/,g/; t
12595s/$/\\/; p
12596N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12597' >>$CONFIG_STATUS <conf$$subs.sed
12598rm -f conf$$subs.sed
12599cat >>$CONFIG_STATUS <<_ACEOF
12600CEOF$ac_eof
1995c9ff 12601_ACEOF
7a197a62 12602
8106cdd5 12603
1995c9ff
AK
12604ac_delim='%!_!# '
12605for ac_last_try in false false false false false :; do
68f2de6d
AK
12606 cat >conf$$subs.sed <<_ACEOF
12607HAVE_REALTIME!$HAVE_REALTIME$ac_delim
12608HAVE_SELINUX!$HAVE_SELINUX$ac_delim
12609INTL!$INTL$ac_delim
12610INTL_PACKAGE!$INTL_PACKAGE$ac_delim
12611JOBS!$JOBS$ac_delim
12612LDDEPS!$LDDEPS$ac_delim
12613LIB_SUFFIX!$LIB_SUFFIX$ac_delim
12614LOCALEDIR!$LOCALEDIR$ac_delim
12615LVM1!$LVM1$ac_delim
12616LVM1_FALLBACK!$LVM1_FALLBACK$ac_delim
12617CONFDIR!$CONFDIR$ac_delim
12618LVM_VERSION!$LVM_VERSION$ac_delim
12619MIRRORS!$MIRRORS$ac_delim
12620OWNER!$OWNER$ac_delim
12621PKGCONFIG!$PKGCONFIG$ac_delim
12622POOL!$POOL$ac_delim
12623SNAPSHOTS!$SNAPSHOTS$ac_delim
12624STATICDIR!$STATICDIR$ac_delim
12625STATIC_LINK!$STATIC_LINK$ac_delim
12626LIB_PTHREAD!$LIB_PTHREAD$ac_delim
93bd259b
AK
12627interface!$interface$ac_delim
12628kerneldir!$kerneldir$ac_delim
12629missingkernel!$missingkernel$ac_delim
12630kernelvsn!$kernelvsn$ac_delim
12631tmpdir!$tmpdir$ac_delim
68f2de6d
AK
12632usrlibdir!$usrlibdir$ac_delim
12633usrsbindir!$usrsbindir$ac_delim
12634LTLIBOBJS!$LTLIBOBJS$ac_delim
12635_ACEOF
12636
04f06bc9 12637 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 28; then
1995c9ff
AK
12638 break
12639 elif $ac_last_try; then
68f2de6d
AK
12640 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12641echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
12642 { (exit 1); exit 1; }; }
12643 else
12644 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12645 fi
12646done
7a197a62 12647
68f2de6d
AK
12648ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12649if test -n "$ac_eof"; then
12650 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12651 ac_eof=`expr $ac_eof + 1`
12652fi
fddafd51 12653
68f2de6d
AK
12654cat >>$CONFIG_STATUS <<_ACEOF
12655cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12656/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
1995c9ff 12657_ACEOF
68f2de6d
AK
12658sed '
12659s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12660s/^/s,@/; s/!/@,|#_!!_#|/
12661:n
12662t n
12663s/'"$ac_delim"'$/,g/; t
12664s/$/\\/; p
12665N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12666' >>$CONFIG_STATUS <conf$$subs.sed
12667rm -f conf$$subs.sed
12668cat >>$CONFIG_STATUS <<_ACEOF
12669:end
12670s/|#_!!_#|//g
12671CEOF$ac_eof
7a197a62
AK
12672_ACEOF
12673
68f2de6d 12674
7a197a62
AK
12675# VPATH may cause trouble with some makes, so we remove $(srcdir),
12676# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12677# trailing colons and then remove the whole line if VPATH becomes empty
12678# (actually we leave an empty line to preserve line numbers).
12679if test "x$srcdir" = x.; then
12680 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12681s/:*\$(srcdir):*/:/
12682s/:*\${srcdir}:*/:/
12683s/:*@srcdir@:*/:/
12684s/^\([^=]*=[ ]*\):*/\1/
12685s/:*$//
12686s/^[^=]*=[ ]*$//
12687}'
12688fi
12689
68f2de6d 12690cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12691fi # test -n "$CONFIG_FILES"
12692
12693
68f2de6d 12694for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
7a197a62
AK
12695do
12696 case $ac_tag in
12697 :[FHLC]) ac_mode=$ac_tag; continue;;
12698 esac
12699 case $ac_mode$ac_tag in
12700 :[FHL]*:*);;
68f2de6d
AK
12701 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12702echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7a197a62
AK
12703 { (exit 1); exit 1; }; };;
12704 :[FH]-) ac_tag=-:-;;
12705 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12706 esac
12707 ac_save_IFS=$IFS
12708 IFS=:
12709 set x $ac_tag
12710 IFS=$ac_save_IFS
12711 shift
12712 ac_file=$1
12713 shift
12714
12715 case $ac_mode in
12716 :L) ac_source=$1;;
12717 :[FH])
12718 ac_file_inputs=
12719 for ac_f
12720 do
12721 case $ac_f in
12722 -) ac_f="$tmp/stdin";;
12723 *) # Look for the file first in the build tree, then in the source tree
12724 # (if the path is not absolute). The absolute path cannot be DOS-style,
12725 # because $ac_f cannot contain `:'.
12726 test -f "$ac_f" ||
12727 case $ac_f in
12728 [\\/$]*) false;;
12729 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12730 esac ||
68f2de6d
AK
12731 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12732echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
12733 { (exit 1); exit 1; }; };;
12734 esac
68f2de6d 12735 ac_file_inputs="$ac_file_inputs $ac_f"
7a197a62
AK
12736 done
12737
12738 # Let's still pretend it is `configure' which instantiates (i.e., don't
12739 # use $as_me), people would be surprised to read:
12740 # /* config.h. Generated by config.status. */
68f2de6d
AK
12741 configure_input="Generated from "`IFS=:
12742 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7a197a62
AK
12743 if test x"$ac_file" != x-; then
12744 configure_input="$ac_file. $configure_input"
68f2de6d
AK
12745 { echo "$as_me:$LINENO: creating $ac_file" >&5
12746echo "$as_me: creating $ac_file" >&6;}
7a197a62
AK
12747 fi
12748
12749 case $ac_tag in
68f2de6d 12750 *:-:* | *:-) cat >"$tmp/stdin";;
7a197a62
AK
12751 esac
12752 ;;
80992638 12753 esac
8106cdd5 12754
7a197a62 12755 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 12756$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
12757 X"$ac_file" : 'X\(//\)[^/]' \| \
12758 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 12759 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
68f2de6d 12760echo X"$ac_file" |
7a197a62
AK
12761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12762 s//\1/
12763 q
12764 }
12765 /^X\(\/\/\)[^/].*/{
12766 s//\1/
12767 q
12768 }
12769 /^X\(\/\/\)$/{
12770 s//\1/
12771 q
12772 }
12773 /^X\(\/\).*/{
12774 s//\1/
12775 q
12776 }
12777 s/.*/./; q'`
12778 { as_dir="$ac_dir"
12779 case $as_dir in #(
12780 -*) as_dir=./$as_dir;;
12781 esac
12782 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 12783 as_dirs=
7a197a62
AK
12784 while :; do
12785 case $as_dir in #(
68f2de6d 12786 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7a197a62
AK
12787 *) as_qdir=$as_dir;;
12788 esac
12789 as_dirs="'$as_qdir' $as_dirs"
12790 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 12791$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
12792 X"$as_dir" : 'X\(//\)[^/]' \| \
12793 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 12794 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
68f2de6d 12795echo X"$as_dir" |
7a197a62
AK
12796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12797 s//\1/
12798 q
12799 }
12800 /^X\(\/\/\)[^/].*/{
12801 s//\1/
12802 q
12803 }
12804 /^X\(\/\/\)$/{
12805 s//\1/
12806 q
12807 }
12808 /^X\(\/\).*/{
12809 s//\1/
12810 q
12811 }
12812 s/.*/./; q'`
12813 test -d "$as_dir" && break
ad6254c5 12814 done
7a197a62 12815 test -z "$as_dirs" || eval "mkdir $as_dirs"
68f2de6d
AK
12816 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12817echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 12818 { (exit 1); exit 1; }; }; }
ad6254c5
AK
12819 ac_builddir=.
12820
7a197a62
AK
12821case "$ac_dir" in
12822.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12823*)
68f2de6d 12824 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7a197a62 12825 # A ".." for each directory in $ac_dir_suffix.
68f2de6d 12826 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7a197a62
AK
12827 case $ac_top_builddir_sub in
12828 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12829 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12830 esac ;;
12831esac
12832ac_abs_top_builddir=$ac_pwd
12833ac_abs_builddir=$ac_pwd$ac_dir_suffix
12834# for backward compatibility:
12835ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
12836
12837case $srcdir in
7a197a62 12838 .) # We are building in place.
ad6254c5 12839 ac_srcdir=.
7a197a62
AK
12840 ac_top_srcdir=$ac_top_builddir_sub
12841 ac_abs_top_srcdir=$ac_pwd ;;
12842 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 12843 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
12844 ac_top_srcdir=$srcdir
12845 ac_abs_top_srcdir=$srcdir ;;
12846 *) # Relative name.
12847 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12848 ac_top_srcdir=$ac_top_build_prefix$srcdir
12849 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 12850esac
7a197a62 12851ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 12852
ad6254c5 12853
7a197a62
AK
12854 case $ac_mode in
12855 :F)
12856 #
12857 # CONFIG_FILE
12858 #
ad6254c5
AK
12859
12860 case $INSTALL in
12861 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 12862 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 12863 esac
fddafd51
ZK
12864 ac_MKDIR_P=$MKDIR_P
12865 case $MKDIR_P in
12866 [\\/$]* | ?:[\\/]* ) ;;
12867 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12868 esac
7a197a62 12869_ACEOF
795ca3e5 12870
68f2de6d 12871cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12872# If the template does not know about datarootdir, expand it.
12873# FIXME: This hack should be removed a few years after 2.60.
12874ac_datarootdir_hack=; ac_datarootdir_seen=
12875
68f2de6d 12876case `sed -n '/datarootdir/ {
7a197a62
AK
12877 p
12878 q
12879}
12880/@datadir@/p
12881/@docdir@/p
12882/@infodir@/p
12883/@localedir@/p
12884/@mandir@/p
68f2de6d 12885' $ac_file_inputs` in
7a197a62
AK
12886*datarootdir*) ac_datarootdir_seen=yes;;
12887*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
68f2de6d
AK
12888 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12889echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 12890_ACEOF
68f2de6d 12891cat >>$CONFIG_STATUS <<_ACEOF
7a197a62
AK
12892 ac_datarootdir_hack='
12893 s&@datadir@&$datadir&g
12894 s&@docdir@&$docdir&g
12895 s&@infodir@&$infodir&g
12896 s&@localedir@&$localedir&g
12897 s&@mandir@&$mandir&g
12898 s&\\\${datarootdir}&$datarootdir&g' ;;
12899esac
12900_ACEOF
12901
12902# Neutralize VPATH when `$srcdir' = `.'.
12903# Shell code in configure.ac might set extrasub.
12904# FIXME: do we really want to maintain this feature?
68f2de6d
AK
12905cat >>$CONFIG_STATUS <<_ACEOF
12906 sed "$ac_vpsub
ad6254c5
AK
12907$extrasub
12908_ACEOF
68f2de6d 12909cat >>$CONFIG_STATUS <<\_ACEOF
ad6254c5
AK
12910:t
12911/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
68f2de6d 12912s&@configure_input@&$configure_input&;t t
7a197a62
AK
12913s&@top_builddir@&$ac_top_builddir_sub&;t t
12914s&@srcdir@&$ac_srcdir&;t t
12915s&@abs_srcdir@&$ac_abs_srcdir&;t t
12916s&@top_srcdir@&$ac_top_srcdir&;t t
12917s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12918s&@builddir@&$ac_builddir&;t t
12919s&@abs_builddir@&$ac_abs_builddir&;t t
12920s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12921s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 12922s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 12923$ac_datarootdir_hack
68f2de6d 12924" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
7a197a62
AK
12925
12926test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12927 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12928 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
68f2de6d 12929 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 12930which seems to be undefined. Please make sure it is defined." >&5
68f2de6d 12931echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
12932which seems to be undefined. Please make sure it is defined." >&2;}
12933
12934 rm -f "$tmp/stdin"
72b2cb61 12935 case $ac_file in
68f2de6d
AK
12936 -) cat "$tmp/out"; rm -f "$tmp/out";;
12937 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12938 esac
7a197a62
AK
12939 ;;
12940 :H)
12941 #
12942 # CONFIG_HEADER
12943 #
68f2de6d
AK
12944_ACEOF
12945
12946# Transform confdefs.h into a sed script `conftest.defines', that
12947# substitutes the proper values into config.h.in to produce config.h.
12948rm -f conftest.defines conftest.tail
12949# First, append a space to every undef/define line, to ease matching.
12950echo 's/$/ /' >conftest.defines
12951# Then, protect against being on the right side of a sed subst, or in
12952# an unquoted here document, in config.status. If some macros were
12953# called several times there might be several #defines for the same
12954# symbol, which is useless. But do not sort them, since the last
12955# AC_DEFINE must be honored.
12956ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12957# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12958# NAME is the cpp macro being defined, VALUE is the value it is being given.
12959# PARAMS is the parameter list in the macro definition--in most cases, it's
12960# just an empty string.
12961ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12962ac_dB='\\)[ (].*,\\1define\\2'
12963ac_dC=' '
12964ac_dD=' ,'
12965
12966uniq confdefs.h |
12967 sed -n '
12968 t rset
12969 :rset
12970 s/^[ ]*#[ ]*define[ ][ ]*//
12971 t ok
12972 d
12973 :ok
12974 s/[\\&,]/\\&/g
12975 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12976 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12977 ' >>conftest.defines
12978
12979# Remove the space that was appended to ease matching.
12980# Then replace #undef with comments. This is necessary, for
12981# example, in the case of _POSIX_SOURCE, which is predefined and required
12982# on some systems where configure will not decide to define it.
12983# (The regexp can be short, since the line contains either #define or #undef.)
12984echo 's/ $//
12985s,^[ #]*u.*,/* & */,' >>conftest.defines
12986
12987# Break up conftest.defines:
12988ac_max_sed_lines=50
12989
12990# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12991# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12992# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12993# et cetera.
12994ac_in='$ac_file_inputs'
12995ac_out='"$tmp/out1"'
12996ac_nxt='"$tmp/out2"'
12997
12998while :
12999do
13000 # Write a here document:
13001 cat >>$CONFIG_STATUS <<_ACEOF
13002 # First, check the format of the line:
13003 cat >"\$tmp/defines.sed" <<\\CEOF
13004/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13005/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13006b
13007:def
13008_ACEOF
13009 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13010 echo 'CEOF
13011 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13012 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13013 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13014 grep . conftest.tail >/dev/null || break
13015 rm -f conftest.defines
13016 mv conftest.tail conftest.defines
13017done
13018rm -f conftest.defines conftest.tail
13019
13020echo "ac_result=$ac_in" >>$CONFIG_STATUS
13021cat >>$CONFIG_STATUS <<\_ACEOF
72b2cb61 13022 if test x"$ac_file" != x-; then
68f2de6d
AK
13023 echo "/* $configure_input */" >"$tmp/config.h"
13024 cat "$ac_result" >>"$tmp/config.h"
13025 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13026 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13027echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 13028 else
68f2de6d
AK
13029 rm -f $ac_file
13030 mv "$tmp/config.h" $ac_file
72b2cb61
AK
13031 fi
13032 else
68f2de6d
AK
13033 echo "/* $configure_input */"
13034 cat "$ac_result"
72b2cb61 13035 fi
68f2de6d 13036 rm -f "$tmp/out12"
7a197a62
AK
13037 ;;
13038
13039
13040 esac
13041
13042done # for ac_tag
795ca3e5 13043
795ca3e5 13044
ad6254c5
AK
13045{ (exit 0); exit 0; }
13046_ACEOF
795ca3e5 13047chmod +x $CONFIG_STATUS
ad6254c5
AK
13048ac_clean_files=$ac_clean_files_save
13049
13050
13051# configure is writing to config.log, and then calls config.status.
13052# config.status does its own redirection, appending to config.log.
13053# Unfortunately, on DOS this fails, as config.log is still kept open
13054# by configure, so config.status won't be able to write to it; its
13055# output is simply discarded. So we exec the FD to /dev/null,
13056# effectively closing config.log, so it can be properly (re)opened and
13057# appended to by config.status. When coming back to configure, we
13058# need to make the FD available again.
13059if test "$no_create" != yes; then
13060 ac_cs_success=:
13061 ac_config_status_args=
13062 test "$silent" = yes &&
13063 ac_config_status_args="$ac_config_status_args --quiet"
13064 exec 5>/dev/null
13065 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13066 exec 5>>config.log
13067 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13068 # would make configure fail if this is the last instruction.
13069 $ac_cs_success || { (exit 1); exit 1; }
13070fi
795ca3e5 13071
2dc95e1c
AK
13072
13073if test x$ODIRECT != xyes; then
68f2de6d
AK
13074 { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
13075echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 13076fi
This page took 1.805548 seconds and 5 git commands to generate.