]> sourceware.org Git - lvm2.git/blame - configure
no DMDIR
[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
704DMDIR
705DMEVENTD
706DM_COMPAT
707DM_DEVICE_GID
708DM_DEVICE_MODE
709DM_DEVICE_UID
710DM_IOCTLS
711DM_LIB_VERSION
712FSADM
713GROUP
7a197a62 714HAVE_LIBDL
7a197a62 715HAVE_REALTIME
d0191583
JM
716HAVE_SELINUX
717INTL
718INTL_PACKAGE
719JOBS
720LDDEPS
721LIB_SUFFIX
7a197a62 722LOCALEDIR
d0191583
JM
723LVM1
724LVM1_FALLBACK
7a197a62 725CONFDIR
d0191583
JM
726LVM_VERSION
727MIRRORS
728OWNER
729PKGCONFIG
730POOL
731SNAPSHOTS
7a197a62 732STATICDIR
d0191583 733STATIC_LINK
66e941e8 734LIB_PTHREAD
93bd259b
AK
735interface
736kerneldir
737missingkernel
738kernelvsn
739tmpdir
68f2de6d
AK
740usrlibdir
741usrsbindir
7a197a62 742LTLIBOBJS'
ad6254c5 743ac_subst_files=''
7a197a62
AK
744 ac_precious_vars='build_alias
745host_alias
746target_alias
747CC
748CFLAGS
749LDFLAGS
25fbec5b 750LIBS
7a197a62
AK
751CPPFLAGS
752CPP'
753
795ca3e5
AK
754
755# Initialize some variables set by options.
ad6254c5
AK
756ac_init_help=
757ac_init_version=false
795ca3e5
AK
758# The variables have the same names as the options, with
759# dashes changed to underlines.
ad6254c5 760cache_file=/dev/null
795ca3e5 761exec_prefix=NONE
795ca3e5 762no_create=
795ca3e5
AK
763no_recursion=
764prefix=NONE
765program_prefix=NONE
766program_suffix=NONE
767program_transform_name=s,x,x,
768silent=
769site=
770srcdir=
795ca3e5
AK
771verbose=
772x_includes=NONE
773x_libraries=NONE
ad6254c5
AK
774
775# Installation directory options.
776# These are left unexpanded so users can "make install exec_prefix=/foo"
777# and all the variables that are supposed to be based on exec_prefix
778# by default will actually change.
779# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 780# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
781bindir='${exec_prefix}/bin'
782sbindir='${exec_prefix}/sbin'
783libexecdir='${exec_prefix}/libexec'
7a197a62
AK
784datarootdir='${prefix}/share'
785datadir='${datarootdir}'
795ca3e5
AK
786sysconfdir='${prefix}/etc'
787sharedstatedir='${prefix}/com'
788localstatedir='${prefix}/var'
795ca3e5
AK
789includedir='${prefix}/include'
790oldincludedir='/usr/include'
7a197a62
AK
791docdir='${datarootdir}/doc/${PACKAGE}'
792infodir='${datarootdir}/info'
793htmldir='${docdir}'
794dvidir='${docdir}'
795pdfdir='${docdir}'
796psdir='${docdir}'
797libdir='${exec_prefix}/lib'
798localedir='${datarootdir}/locale'
799mandir='${datarootdir}/man'
795ca3e5 800
795ca3e5 801ac_prev=
7a197a62 802ac_dashdash=
795ca3e5
AK
803for ac_option
804do
795ca3e5
AK
805 # If the previous option needs an argument, assign it.
806 if test -n "$ac_prev"; then
7a197a62 807 eval $ac_prev=\$ac_option
795ca3e5
AK
808 ac_prev=
809 continue
810 fi
811
7a197a62
AK
812 case $ac_option in
813 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
814 *) ac_optarg=yes ;;
815 esac
795ca3e5
AK
816
817 # Accept the important Cygnus configure options, so we can diagnose typos.
818
7a197a62
AK
819 case $ac_dashdash$ac_option in
820 --)
821 ac_dashdash=yes ;;
795ca3e5
AK
822
823 -bindir | --bindir | --bindi | --bind | --bin | --bi)
824 ac_prev=bindir ;;
825 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 826 bindir=$ac_optarg ;;
795ca3e5
AK
827
828 -build | --build | --buil | --bui | --bu)
ad6254c5 829 ac_prev=build_alias ;;
795ca3e5 830 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 831 build_alias=$ac_optarg ;;
795ca3e5
AK
832
833 -cache-file | --cache-file | --cache-fil | --cache-fi \
834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
835 ac_prev=cache_file ;;
836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
838 cache_file=$ac_optarg ;;
839
840 --config-cache | -C)
841 cache_file=config.cache ;;
795ca3e5 842
7a197a62 843 -datadir | --datadir | --datadi | --datad)
795ca3e5 844 ac_prev=datadir ;;
7a197a62 845 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 846 datadir=$ac_optarg ;;
795ca3e5 847
7a197a62
AK
848 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
849 | --dataroo | --dataro | --datar)
850 ac_prev=datarootdir ;;
851 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
852 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
853 datarootdir=$ac_optarg ;;
854
795ca3e5 855 -disable-* | --disable-*)
68f2de6d 856 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 857 # Reject names that are not valid shell variable names.
68f2de6d
AK
858 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
859 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
ad6254c5 860 { (exit 1); exit 1; }; }
68f2de6d
AK
861 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
862 eval enable_$ac_feature=no ;;
7a197a62
AK
863
864 -docdir | --docdir | --docdi | --doc | --do)
865 ac_prev=docdir ;;
866 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
867 docdir=$ac_optarg ;;
868
869 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
870 ac_prev=dvidir ;;
871 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
872 dvidir=$ac_optarg ;;
795ca3e5
AK
873
874 -enable-* | --enable-*)
68f2de6d 875 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 876 # Reject names that are not valid shell variable names.
68f2de6d
AK
877 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
878 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
ad6254c5 879 { (exit 1); exit 1; }; }
68f2de6d
AK
880 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
881 eval enable_$ac_feature=\$ac_optarg ;;
795ca3e5
AK
882
883 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
884 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
885 | --exec | --exe | --ex)
886 ac_prev=exec_prefix ;;
887 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
888 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
889 | --exec=* | --exe=* | --ex=*)
ad6254c5 890 exec_prefix=$ac_optarg ;;
795ca3e5
AK
891
892 -gas | --gas | --ga | --g)
893 # Obsolete; use --with-gas.
894 with_gas=yes ;;
895
ad6254c5
AK
896 -help | --help | --hel | --he | -h)
897 ac_init_help=long ;;
898 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
899 ac_init_help=recursive ;;
900 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
901 ac_init_help=short ;;
795ca3e5
AK
902
903 -host | --host | --hos | --ho)
ad6254c5 904 ac_prev=host_alias ;;
795ca3e5 905 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 906 host_alias=$ac_optarg ;;
795ca3e5 907
7a197a62
AK
908 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
909 ac_prev=htmldir ;;
910 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
911 | --ht=*)
912 htmldir=$ac_optarg ;;
913
795ca3e5
AK
914 -includedir | --includedir | --includedi | --included | --include \
915 | --includ | --inclu | --incl | --inc)
916 ac_prev=includedir ;;
917 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
918 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 919 includedir=$ac_optarg ;;
795ca3e5
AK
920
921 -infodir | --infodir | --infodi | --infod | --info | --inf)
922 ac_prev=infodir ;;
923 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 924 infodir=$ac_optarg ;;
795ca3e5
AK
925
926 -libdir | --libdir | --libdi | --libd)
927 ac_prev=libdir ;;
928 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 929 libdir=$ac_optarg ;;
795ca3e5
AK
930
931 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
932 | --libexe | --libex | --libe)
933 ac_prev=libexecdir ;;
934 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
935 | --libexe=* | --libex=* | --libe=*)
ad6254c5 936 libexecdir=$ac_optarg ;;
795ca3e5 937
7a197a62
AK
938 -localedir | --localedir | --localedi | --localed | --locale)
939 ac_prev=localedir ;;
940 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
941 localedir=$ac_optarg ;;
942
795ca3e5 943 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 944 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
945 ac_prev=localstatedir ;;
946 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 947 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 948 localstatedir=$ac_optarg ;;
795ca3e5
AK
949
950 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
951 ac_prev=mandir ;;
952 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 953 mandir=$ac_optarg ;;
795ca3e5
AK
954
955 -nfp | --nfp | --nf)
956 # Obsolete; use --without-fp.
957 with_fp=no ;;
958
959 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 960 | --no-cr | --no-c | -n)
795ca3e5
AK
961 no_create=yes ;;
962
963 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
964 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
965 no_recursion=yes ;;
966
967 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
968 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
969 | --oldin | --oldi | --old | --ol | --o)
970 ac_prev=oldincludedir ;;
971 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
972 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
973 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 974 oldincludedir=$ac_optarg ;;
795ca3e5
AK
975
976 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
977 ac_prev=prefix ;;
978 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 979 prefix=$ac_optarg ;;
795ca3e5
AK
980
981 -program-prefix | --program-prefix | --program-prefi | --program-pref \
982 | --program-pre | --program-pr | --program-p)
983 ac_prev=program_prefix ;;
984 -program-prefix=* | --program-prefix=* | --program-prefi=* \
985 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 986 program_prefix=$ac_optarg ;;
795ca3e5
AK
987
988 -program-suffix | --program-suffix | --program-suffi | --program-suff \
989 | --program-suf | --program-su | --program-s)
990 ac_prev=program_suffix ;;
991 -program-suffix=* | --program-suffix=* | --program-suffi=* \
992 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 993 program_suffix=$ac_optarg ;;
795ca3e5
AK
994
995 -program-transform-name | --program-transform-name \
996 | --program-transform-nam | --program-transform-na \
997 | --program-transform-n | --program-transform- \
998 | --program-transform | --program-transfor \
999 | --program-transfo | --program-transf \
1000 | --program-trans | --program-tran \
1001 | --progr-tra | --program-tr | --program-t)
1002 ac_prev=program_transform_name ;;
1003 -program-transform-name=* | --program-transform-name=* \
1004 | --program-transform-nam=* | --program-transform-na=* \
1005 | --program-transform-n=* | --program-transform-=* \
1006 | --program-transform=* | --program-transfor=* \
1007 | --program-transfo=* | --program-transf=* \
1008 | --program-trans=* | --program-tran=* \
1009 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1010 program_transform_name=$ac_optarg ;;
795ca3e5 1011
7a197a62
AK
1012 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1013 ac_prev=pdfdir ;;
1014 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1015 pdfdir=$ac_optarg ;;
1016
1017 -psdir | --psdir | --psdi | --psd | --ps)
1018 ac_prev=psdir ;;
1019 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1020 psdir=$ac_optarg ;;
1021
795ca3e5
AK
1022 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1023 | -silent | --silent | --silen | --sile | --sil)
1024 silent=yes ;;
1025
1026 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1027 ac_prev=sbindir ;;
1028 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1029 | --sbi=* | --sb=*)
ad6254c5 1030 sbindir=$ac_optarg ;;
795ca3e5
AK
1031
1032 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1033 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1034 | --sharedst | --shareds | --shared | --share | --shar \
1035 | --sha | --sh)
1036 ac_prev=sharedstatedir ;;
1037 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1038 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1039 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1040 | --sha=* | --sh=*)
ad6254c5 1041 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1042
1043 -site | --site | --sit)
1044 ac_prev=site ;;
1045 -site=* | --site=* | --sit=*)
ad6254c5 1046 site=$ac_optarg ;;
795ca3e5
AK
1047
1048 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1049 ac_prev=srcdir ;;
1050 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1051 srcdir=$ac_optarg ;;
795ca3e5
AK
1052
1053 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1054 | --syscon | --sysco | --sysc | --sys | --sy)
1055 ac_prev=sysconfdir ;;
1056 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1057 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1058 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1059
1060 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1061 ac_prev=target_alias ;;
795ca3e5 1062 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1063 target_alias=$ac_optarg ;;
795ca3e5
AK
1064
1065 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1066 verbose=yes ;;
1067
ad6254c5
AK
1068 -version | --version | --versio | --versi | --vers | -V)
1069 ac_init_version=: ;;
795ca3e5
AK
1070
1071 -with-* | --with-*)
68f2de6d 1072 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1073 # Reject names that are not valid shell variable names.
68f2de6d
AK
1074 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1075 { echo "$as_me: error: invalid package name: $ac_package" >&2
ad6254c5 1076 { (exit 1); exit 1; }; }
68f2de6d
AK
1077 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1078 eval with_$ac_package=\$ac_optarg ;;
795ca3e5
AK
1079
1080 -without-* | --without-*)
68f2de6d 1081 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1082 # Reject names that are not valid shell variable names.
68f2de6d
AK
1083 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1084 { echo "$as_me: error: invalid package name: $ac_package" >&2
ad6254c5 1085 { (exit 1); exit 1; }; }
68f2de6d
AK
1086 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1087 eval with_$ac_package=no ;;
795ca3e5
AK
1088
1089 --x)
1090 # Obsolete; use --with-x.
1091 with_x=yes ;;
1092
1093 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1094 | --x-incl | --x-inc | --x-in | --x-i)
1095 ac_prev=x_includes ;;
1096 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1097 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1098 x_includes=$ac_optarg ;;
795ca3e5
AK
1099
1100 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1101 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1102 ac_prev=x_libraries ;;
1103 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1104 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1105 x_libraries=$ac_optarg ;;
795ca3e5 1106
68f2de6d 1107 -*) { echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1108Try \`$0 --help' for more information." >&2
1109 { (exit 1); exit 1; }; }
795ca3e5
AK
1110 ;;
1111
ad6254c5
AK
1112 *=*)
1113 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
68f2de6d 1116 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1117 { (exit 1); exit 1; }; }
7a197a62 1118 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1119 export $ac_envvar ;;
1120
795ca3e5 1121 *)
ad6254c5 1122 # FIXME: should be removed in autoconf 3.0.
68f2de6d 1123 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1124 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
68f2de6d 1125 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1126 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1127 ;;
1128
1129 esac
1130done
1131
1132if test -n "$ac_prev"; then
ad6254c5 1133 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
68f2de6d 1134 { echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1135 { (exit 1); exit 1; }; }
795ca3e5 1136fi
795ca3e5 1137
68f2de6d 1138# Be sure to have absolute directory names.
7a197a62
AK
1139for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1140 datadir sysconfdir sharedstatedir localstatedir includedir \
1141 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1142 libdir localedir mandir
795ca3e5 1143do
7a197a62 1144 eval ac_val=\$$ac_var
ad6254c5 1145 case $ac_val in
7a197a62
AK
1146 [\\/$]* | ?:[\\/]* ) continue;;
1147 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1148 esac
68f2de6d 1149 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1150 { (exit 1); exit 1; }; }
795ca3e5
AK
1151done
1152
ad6254c5
AK
1153# There might be people who depend on the old broken behavior: `$host'
1154# used to hold the argument of --host etc.
1155# FIXME: To remove some day.
1156build=$build_alias
1157host=$host_alias
1158target=$target_alias
1159
1160# FIXME: To remove some day.
1161if test "x$host_alias" != x; then
1162 if test "x$build_alias" = x; then
1163 cross_compiling=maybe
68f2de6d 1164 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1165 If a cross compiler is detected then cross compile mode will be used." >&2
1166 elif test "x$build_alias" != "x$host_alias"; then
1167 cross_compiling=yes
1168 fi
1169fi
8106cdd5 1170
ad6254c5
AK
1171ac_tool_prefix=
1172test -n "$host_alias" && ac_tool_prefix=$host_alias-
1173
1174test "$silent" = yes && exec 6>/dev/null
795ca3e5 1175
795ca3e5 1176
7a197a62
AK
1177ac_pwd=`pwd` && test -n "$ac_pwd" &&
1178ac_ls_di=`ls -di .` &&
1179ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
68f2de6d 1180 { echo "$as_me: error: Working directory cannot be determined" >&2
7a197a62
AK
1181 { (exit 1); exit 1; }; }
1182test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
68f2de6d 1183 { echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1184 { (exit 1); exit 1; }; }
1185
1186
795ca3e5
AK
1187# Find the source files, if location was not specified.
1188if test -z "$srcdir"; then
1189 ac_srcdir_defaulted=yes
7a197a62 1190 # Try the directory containing this script, then the parent directory.
68f2de6d
AK
1191 ac_confdir=`$as_dirname -- "$0" ||
1192$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1193 X"$0" : 'X\(//\)[^/]' \| \
1194 X"$0" : 'X\(//\)$' \| \
1195 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1196echo X"$0" |
7a197a62
AK
1197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1198 s//\1/
1199 q
1200 }
1201 /^X\(\/\/\)[^/].*/{
1202 s//\1/
1203 q
1204 }
1205 /^X\(\/\/\)$/{
1206 s//\1/
1207 q
1208 }
1209 /^X\(\/\).*/{
1210 s//\1/
1211 q
1212 }
1213 s/.*/./; q'`
795ca3e5 1214 srcdir=$ac_confdir
7a197a62 1215 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1216 srcdir=..
1217 fi
1218else
1219 ac_srcdir_defaulted=no
1220fi
7a197a62
AK
1221if test ! -r "$srcdir/$ac_unique_file"; then
1222 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
68f2de6d 1223 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1224 { (exit 1); exit 1; }; }
795ca3e5 1225fi
7a197a62
AK
1226ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1227ac_abs_confdir=`(
68f2de6d 1228 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
ad6254c5 1229 { (exit 1); exit 1; }; }
7a197a62
AK
1230 pwd)`
1231# When building in place, set srcdir=.
1232if test "$ac_abs_confdir" = "$ac_pwd"; then
1233 srcdir=.
1234fi
1235# Remove unnecessary trailing slashes from srcdir.
1236# Double slashes in file names in object file debugging info
1237# mess up M-x gdb in Emacs.
1238case $srcdir in
1239*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1240esac
1241for ac_var in $ac_precious_vars; do
1242 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1243 eval ac_env_${ac_var}_value=\$${ac_var}
1244 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1245 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1246done
ad6254c5
AK
1247
1248#
1249# Report the --help message.
1250#
1251if test "$ac_init_help" = "long"; then
1252 # Omit some internal or obsolete options to make the list less imposing.
1253 # This message is too long to be a string in the A/UX 3.1 sh.
1254 cat <<_ACEOF
1255\`configure' configures this package to adapt to many kinds of systems.
1256
1257Usage: $0 [OPTION]... [VAR=VALUE]...
1258
1259To assign environment variables (e.g., CC, CFLAGS...), specify them as
1260VAR=VALUE. See below for descriptions of some of the useful variables.
1261
1262Defaults for the options are specified in brackets.
1263
1264Configuration:
1265 -h, --help display this help and exit
1266 --help=short display options specific to this package
1267 --help=recursive display the short help of all the included packages
1268 -V, --version display version information and exit
1269 -q, --quiet, --silent do not print \`checking...' messages
1270 --cache-file=FILE cache test results in FILE [disabled]
1271 -C, --config-cache alias for \`--cache-file=config.cache'
1272 -n, --no-create do not create output files
1273 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1274
ad6254c5
AK
1275Installation directories:
1276 --prefix=PREFIX install architecture-independent files in PREFIX
68f2de6d 1277 [$ac_default_prefix]
ad6254c5 1278 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
68f2de6d 1279 [PREFIX]
ad6254c5
AK
1280
1281By default, \`make install' will install all the files in
1282\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1283an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1284for instance \`--prefix=\$HOME'.
1285
1286For better control, use the options below.
1287
1288Fine tuning of the installation directories:
68f2de6d
AK
1289 --bindir=DIR user executables [EPREFIX/bin]
1290 --sbindir=DIR system admin executables [EPREFIX/sbin]
1291 --libexecdir=DIR program executables [EPREFIX/libexec]
1292 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1293 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1294 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1295 --libdir=DIR object code libraries [EPREFIX/lib]
1296 --includedir=DIR C header files [PREFIX/include]
1297 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1298 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1299 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1300 --infodir=DIR info documentation [DATAROOTDIR/info]
1301 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1302 --mandir=DIR man documentation [DATAROOTDIR/man]
1303 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1304 --htmldir=DIR html documentation [DOCDIR]
1305 --dvidir=DIR dvi documentation [DOCDIR]
1306 --pdfdir=DIR pdf documentation [DOCDIR]
1307 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1308_ACEOF
1309
1310 cat <<\_ACEOF
1311
1312System types:
1313 --build=BUILD configure for building on BUILD [guessed]
1314 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1315 --target=TARGET configure for building compilers for TARGET [HOST]
1316_ACEOF
1317fi
1318
1319if test -n "$ac_init_help"; then
1320
1321 cat <<\_ACEOF
1322
1323Optional Features:
1324 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1325 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ad6254c5
AK
1326 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1327 device-mapper is missing from the kernel
1b523347 1328 --disable-readline Disable readline support
3d978351 1329 --disable-realtime Disable realtime clock support
ad6254c5 1330 --enable-debug Enable debugging
5556819a 1331 --enable-profiling Gather gcov profiling data
93bd259b
AK
1332 --disable-devmapper Disable LVM2 device-mapper interaction
1333 --enable-compat Enable support for old device-mapper versions
1334 --disable-driver Disable calls to device-mapper in the kernel
ad6254c5
AK
1335 --disable-o_direct Disable O_DIRECT
1336 --enable-cmdlib Build shared command library
93bd259b 1337 --enable-pkgconfig Install pkgconfig support
ad6254c5 1338 --enable-fsadm Enable fsadm
15d91f5a 1339 --enable-dmeventd Enable the device-mapper event daemon
d0191583
JM
1340 --enable-static_link Use this to link the tools to their libraries
1341 statically. Default is dynamic linking
1342 --disable-selinux Disable selinux support
ad6254c5
AK
1343 --enable-nls Enable Native Language Support
1344
1345Optional Packages:
1346 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1347 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d0191583
JM
1348 --with-user=USER Set the owner of installed files [USER=root]
1349 --with-group=GROUP Set the group owner of installed files [GROUP=root]
93bd259b 1350 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
ad6254c5
AK
1351 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1352 TYPE=internal
1353 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1354 TYPE=internal
1355 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1356 TYPE=internal
1357 --with-snapshots=TYPE Snapshot support: internal/shared/none
1358 TYPE=internal
1359 --with-mirrors=TYPE Mirror support: internal/shared/none
1360 TYPE=internal
5c7fc7c4 1361 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all
a266258f 1362 TYPE=none
d0191583
JM
1363 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1364 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
ad6254c5
AK
1365 --with-confdir=DIR Configuration files in DIR /etc
1366 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
33f732c5 1367 --with-dmdir=DIR Build against device-mapper source tree in DIR
68f2de6d
AK
1368 --with-usrlibdir=DIR
1369 --with-usrsbindir=DIR
93bd259b
AK
1370 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
1371 --with-dmeventd-path=PATH dmeventd path [${exec_prefix}/sbin/dmeventd]
1372 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1373
1374Some influential environment variables:
1375 CC C compiler command
1376 CFLAGS C compiler flags
1377 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1378 nonstandard directory <lib dir>
25fbec5b 1379 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1380 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1381 you have headers in a nonstandard directory <include dir>
ad6254c5
AK
1382 CPP C preprocessor
1383
1384Use these variables to override the choices made by `configure' or to help
1385it to find libraries and programs with nonstandard names/locations.
1386
1387_ACEOF
7a197a62 1388ac_status=$?
ad6254c5
AK
1389fi
1390
1391if test "$ac_init_help" = "recursive"; then
1392 # If there are subdirs, report their specific --help.
ad6254c5 1393 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
68f2de6d 1394 test -d "$ac_dir" || continue
ad6254c5
AK
1395 ac_builddir=.
1396
7a197a62
AK
1397case "$ac_dir" in
1398.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1399*)
68f2de6d 1400 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7a197a62 1401 # A ".." for each directory in $ac_dir_suffix.
68f2de6d 1402 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7a197a62
AK
1403 case $ac_top_builddir_sub in
1404 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1406 esac ;;
1407esac
1408ac_abs_top_builddir=$ac_pwd
1409ac_abs_builddir=$ac_pwd$ac_dir_suffix
1410# for backward compatibility:
1411ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1412
1413case $srcdir in
7a197a62 1414 .) # We are building in place.
ad6254c5 1415 ac_srcdir=.
7a197a62
AK
1416 ac_top_srcdir=$ac_top_builddir_sub
1417 ac_abs_top_srcdir=$ac_pwd ;;
1418 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1419 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1420 ac_top_srcdir=$srcdir
1421 ac_abs_top_srcdir=$srcdir ;;
1422 *) # Relative name.
1423 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1424 ac_top_srcdir=$ac_top_build_prefix$srcdir
1425 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1426esac
7a197a62
AK
1427ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1428
1429 cd "$ac_dir" || { ac_status=$?; continue; }
1430 # Check for guested configure.
1431 if test -f "$ac_srcdir/configure.gnu"; then
1432 echo &&
1433 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1434 elif test -f "$ac_srcdir/configure"; then
1435 echo &&
1436 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1437 else
68f2de6d 1438 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1439 fi || ac_status=$?
1440 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1441 done
1442fi
1443
7a197a62 1444test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1445if $ac_init_version; then
1446 cat <<\_ACEOF
7a197a62 1447configure
68f2de6d 1448generated by GNU Autoconf 2.61
ad6254c5 1449
7a197a62 1450Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
68f2de6d 14512002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
ad6254c5
AK
1452This configure script is free software; the Free Software Foundation
1453gives unlimited permission to copy, distribute and modify it.
1454_ACEOF
7a197a62 1455 exit
ad6254c5 1456fi
7a197a62 1457cat >config.log <<_ACEOF
ad6254c5
AK
1458This file contains any messages produced by compilers while
1459running configure, to aid debugging if configure makes a mistake.
1460
1461It was created by $as_me, which was
68f2de6d 1462generated by GNU Autoconf 2.61. Invocation command line was
ad6254c5
AK
1463
1464 $ $0 $@
1465
1466_ACEOF
7a197a62 1467exec 5>>config.log
ad6254c5
AK
1468{
1469cat <<_ASUNAME
1470## --------- ##
1471## Platform. ##
1472## --------- ##
1473
1474hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1475uname -m = `(uname -m) 2>/dev/null || echo unknown`
1476uname -r = `(uname -r) 2>/dev/null || echo unknown`
1477uname -s = `(uname -s) 2>/dev/null || echo unknown`
1478uname -v = `(uname -v) 2>/dev/null || echo unknown`
1479
1480/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1481/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1482
1483/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1484/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1485/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1486/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1487/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1488/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1489/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1490
1491_ASUNAME
1492
1493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494for as_dir in $PATH
1495do
1496 IFS=$as_save_IFS
1497 test -z "$as_dir" && as_dir=.
68f2de6d 1498 echo "PATH: $as_dir"
ad6254c5 1499done
7a197a62 1500IFS=$as_save_IFS
ad6254c5
AK
1501
1502} >&5
1503
1504cat >&5 <<_ACEOF
1505
1506
1507## ----------- ##
1508## Core tests. ##
1509## ----------- ##
1510
1511_ACEOF
1512
1513
1514# Keep a trace of the command line.
1515# Strip out --no-create and --no-recursion so they do not pile up.
1516# Strip out --silent because we don't want to record it for future runs.
1517# Also quote any args containing shell meta-characters.
1518# Make two passes to allow for proper duplicate-argument suppression.
1519ac_configure_args=
1520ac_configure_args0=
1521ac_configure_args1=
ad6254c5
AK
1522ac_must_keep_next=false
1523for ac_pass in 1 2
1524do
1525 for ac_arg
1526 do
1527 case $ac_arg in
1528 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1529 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1530 | -silent | --silent | --silen | --sile | --sil)
1531 continue ;;
7a197a62 1532 *\'*)
68f2de6d 1533 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1534 esac
1535 case $ac_pass in
1536 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1537 2)
1538 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1539 if test $ac_must_keep_next = true; then
8a2fc586 1540 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1541 else
8a2fc586
AK
1542 case $ac_arg in
1543 *=* | --config-cache | -C | -disable-* | --disable-* \
1544 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1545 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1546 | -with-* | --with-* | -without-* | --without-* | --x)
1547 case "$ac_configure_args0 " in
1548 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1549 esac
1550 ;;
1551 -* ) ac_must_keep_next=true ;;
1552 esac
ad6254c5 1553 fi
7a197a62 1554 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1555 ;;
1556 esac
1557 done
1558done
1559$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1560$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1561
1562# When interrupted or exit'd, cleanup temporary files, and complete
1563# config.log. We remove comments because anyway the quotes in there
1564# would cause problems or look ugly.
7a197a62
AK
1565# WARNING: Use '\'' to represent an apostrophe within the trap.
1566# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1567trap 'exit_status=$?
1568 # Save into config.log some information that might help in debugging.
1569 {
1570 echo
1571
1572 cat <<\_ASBOX
1573## ---------------- ##
1574## Cache variables. ##
1575## ---------------- ##
1576_ASBOX
1577 echo
1578 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1579(
1580 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1581 eval ac_val=\$$ac_var
1582 case $ac_val in #(
1583 *${as_nl}*)
1584 case $ac_var in #(
68f2de6d
AK
1585 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1586echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7a197a62
AK
1587 esac
1588 case $ac_var in #(
1589 _ | IFS | as_nl) ;; #(
1590 *) $as_unset $ac_var ;;
1591 esac ;;
1592 esac
1593 done
ad6254c5 1594 (set) 2>&1 |
7a197a62
AK
1595 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1596 *${as_nl}ac_space=\ *)
ad6254c5 1597 sed -n \
7a197a62
AK
1598 "s/'\''/'\''\\\\'\'''\''/g;
1599 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1600 ;; #(
ad6254c5 1601 *)
7a197a62 1602 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1603 ;;
7a197a62
AK
1604 esac |
1605 sort
1606)
ad6254c5
AK
1607 echo
1608
1609 cat <<\_ASBOX
1610## ----------------- ##
1611## Output variables. ##
1612## ----------------- ##
1613_ASBOX
1614 echo
1615 for ac_var in $ac_subst_vars
1616 do
7a197a62
AK
1617 eval ac_val=\$$ac_var
1618 case $ac_val in
68f2de6d 1619 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1620 esac
68f2de6d 1621 echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1622 done | sort
1623 echo
1624
1625 if test -n "$ac_subst_files"; then
1626 cat <<\_ASBOX
7a197a62
AK
1627## ------------------- ##
1628## File substitutions. ##
1629## ------------------- ##
ad6254c5
AK
1630_ASBOX
1631 echo
1632 for ac_var in $ac_subst_files
1633 do
7a197a62
AK
1634 eval ac_val=\$$ac_var
1635 case $ac_val in
68f2de6d 1636 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1637 esac
68f2de6d 1638 echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1639 done | sort
1640 echo
1641 fi
1642
1643 if test -s confdefs.h; then
1644 cat <<\_ASBOX
1645## ----------- ##
1646## confdefs.h. ##
1647## ----------- ##
1648_ASBOX
1649 echo
7a197a62 1650 cat confdefs.h
ad6254c5
AK
1651 echo
1652 fi
1653 test "$ac_signal" != 0 &&
68f2de6d
AK
1654 echo "$as_me: caught signal $ac_signal"
1655 echo "$as_me: exit $exit_status"
ad6254c5 1656 } >&5
7a197a62
AK
1657 rm -f core *.core core.conftest.* &&
1658 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1659 exit $exit_status
7a197a62 1660' 0
ad6254c5
AK
1661for ac_signal in 1 2 13 15; do
1662 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1663done
1664ac_signal=0
1665
1666# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1667rm -f -r conftest* confdefs.h
ad6254c5
AK
1668
1669# Predefined preprocessor variables.
1670
1671cat >>confdefs.h <<_ACEOF
1672#define PACKAGE_NAME "$PACKAGE_NAME"
1673_ACEOF
1674
1675
1676cat >>confdefs.h <<_ACEOF
1677#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1678_ACEOF
1679
1680
1681cat >>confdefs.h <<_ACEOF
1682#define PACKAGE_VERSION "$PACKAGE_VERSION"
1683_ACEOF
8106cdd5 1684
ad6254c5
AK
1685
1686cat >>confdefs.h <<_ACEOF
1687#define PACKAGE_STRING "$PACKAGE_STRING"
1688_ACEOF
1689
1690
1691cat >>confdefs.h <<_ACEOF
1692#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1693_ACEOF
1694
1695
1696# Let the site file select an alternate cache file if it wants to.
68f2de6d 1697# Prefer explicitly selected file to automatically selected ones.
7a197a62 1698if test -n "$CONFIG_SITE"; then
68f2de6d 1699 set x "$CONFIG_SITE"
7a197a62 1700elif test "x$prefix" != xNONE; then
68f2de6d 1701 set x "$prefix/share/config.site" "$prefix/etc/config.site"
7a197a62 1702else
68f2de6d
AK
1703 set x "$ac_default_prefix/share/config.site" \
1704 "$ac_default_prefix/etc/config.site"
795ca3e5 1705fi
68f2de6d
AK
1706shift
1707for ac_site_file
7a197a62 1708do
795ca3e5 1709 if test -r "$ac_site_file"; then
68f2de6d
AK
1710 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1711echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1712 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1713 . "$ac_site_file"
1714 fi
1715done
1716
1717if test -r "$cache_file"; then
ad6254c5
AK
1718 # Some versions of bash will fail to source /dev/null (special
1719 # files actually), so we avoid doing that.
1720 if test -f "$cache_file"; then
68f2de6d
AK
1721 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1722echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1723 case $cache_file in
7a197a62
AK
1724 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1725 *) . "./$cache_file";;
ad6254c5
AK
1726 esac
1727 fi
795ca3e5 1728else
68f2de6d
AK
1729 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1730echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1731 >$cache_file
1732fi
1733
1734# Check that the precious variables saved in the cache have kept the same
1735# value.
1736ac_cache_corrupted=false
7a197a62 1737for ac_var in $ac_precious_vars; do
ad6254c5
AK
1738 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1739 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1740 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1741 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1742 case $ac_old_set,$ac_new_set in
1743 set,)
68f2de6d
AK
1744 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1745echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
1746 ac_cache_corrupted=: ;;
1747 ,set)
68f2de6d
AK
1748 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1749echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
1750 ac_cache_corrupted=: ;;
1751 ,);;
1752 *)
1753 if test "x$ac_old_val" != "x$ac_new_val"; then
68f2de6d
AK
1754 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1755echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1756 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1757echo "$as_me: former value: $ac_old_val" >&2;}
1758 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1759echo "$as_me: current value: $ac_new_val" >&2;}
1760 ac_cache_corrupted=:
ad6254c5
AK
1761 fi;;
1762 esac
1763 # Pass precious variables to config.status.
1764 if test "$ac_new_set" = set; then
1765 case $ac_new_val in
68f2de6d 1766 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1767 *) ac_arg=$ac_var=$ac_new_val ;;
1768 esac
1769 case " $ac_configure_args " in
1770 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1771 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1772 esac
1773 fi
1774done
1775if $ac_cache_corrupted; then
68f2de6d
AK
1776 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1777echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1778 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1779echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 1780 { (exit 1); exit 1; }; }
795ca3e5
AK
1781fi
1782
ad6254c5
AK
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
7a197a62
AK
1799ac_ext=c
1800ac_cpp='$CPP $CPPFLAGS'
1801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1803ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 1804
795ca3e5
AK
1805
1806
7a197a62 1807ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
1808
1809
80992638 1810################################################################################
795ca3e5 1811ac_aux_dir=
7a197a62
AK
1812for ac_dir in autoconf "$srcdir"/autoconf; do
1813 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
1814 ac_aux_dir=$ac_dir
1815 ac_install_sh="$ac_aux_dir/install-sh -c"
1816 break
7a197a62 1817 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
1818 ac_aux_dir=$ac_dir
1819 ac_install_sh="$ac_aux_dir/install.sh -c"
1820 break
7a197a62 1821 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
1822 ac_aux_dir=$ac_dir
1823 ac_install_sh="$ac_aux_dir/shtool install -c"
1824 break
795ca3e5
AK
1825 fi
1826done
1827if test -z "$ac_aux_dir"; then
68f2de6d
AK
1828 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1829echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 1830 { (exit 1); exit 1; }; }
795ca3e5 1831fi
7a197a62
AK
1832
1833# These three variables are undocumented and unsupported,
1834# and are intended to be withdrawn in a future Autoconf release.
1835# They can cause serious problems if a builder's source tree is in a directory
1836# whose full name contains unusual characters.
1837ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1838ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1839ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1840
8ce0cbda
AK
1841
1842
ad6254c5 1843################################################################################
8ce0cbda 1844# Make sure we can run config.sub.
7a197a62 1845$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
68f2de6d
AK
1846 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1847echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
1848 { (exit 1); exit 1; }; }
1849
68f2de6d
AK
1850{ echo "$as_me:$LINENO: checking build system type" >&5
1851echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
ad6254c5 1852if test "${ac_cv_build+set}" = set; then
68f2de6d 1853 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 1854else
7a197a62
AK
1855 ac_build_alias=$build_alias
1856test "x$ac_build_alias" = x &&
1857 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1858test "x$ac_build_alias" = x &&
68f2de6d
AK
1859 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1860echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 1861 { (exit 1); exit 1; }; }
7a197a62 1862ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
68f2de6d
AK
1863 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1864echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
1865 { (exit 1); exit 1; }; }
1866
1867fi
68f2de6d
AK
1868{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1869echo "${ECHO_T}$ac_cv_build" >&6; }
7a197a62
AK
1870case $ac_cv_build in
1871*-*-*) ;;
68f2de6d
AK
1872*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1873echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
1874 { (exit 1); exit 1; }; };;
1875esac
ad6254c5 1876build=$ac_cv_build
7a197a62
AK
1877ac_save_IFS=$IFS; IFS='-'
1878set x $ac_cv_build
1879shift
1880build_cpu=$1
1881build_vendor=$2
1882shift; shift
1883# Remember, the first character of IFS is used to create $*,
1884# except with old shells:
1885build_os=$*
1886IFS=$ac_save_IFS
1887case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
1888
1889
68f2de6d
AK
1890{ echo "$as_me:$LINENO: checking host system type" >&5
1891echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
ad6254c5 1892if test "${ac_cv_host+set}" = set; then
68f2de6d 1893 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 1894else
7a197a62
AK
1895 if test "x$host_alias" = x; then
1896 ac_cv_host=$ac_cv_build
1897else
1898 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
68f2de6d
AK
1899 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1900echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 1901 { (exit 1); exit 1; }; }
7a197a62 1902fi
ad6254c5
AK
1903
1904fi
68f2de6d
AK
1905{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1906echo "${ECHO_T}$ac_cv_host" >&6; }
7a197a62
AK
1907case $ac_cv_host in
1908*-*-*) ;;
68f2de6d
AK
1909*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1910echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
1911 { (exit 1); exit 1; }; };;
1912esac
ad6254c5 1913host=$ac_cv_host
7a197a62
AK
1914ac_save_IFS=$IFS; IFS='-'
1915set x $ac_cv_host
1916shift
1917host_cpu=$1
1918host_vendor=$2
1919shift; shift
1920# Remember, the first character of IFS is used to create $*,
1921# except with old shells:
1922host_os=$*
1923IFS=$ac_save_IFS
1924case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
1925
1926
68f2de6d
AK
1927{ echo "$as_me:$LINENO: checking target system type" >&5
1928echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
ad6254c5 1929if test "${ac_cv_target+set}" = set; then
68f2de6d 1930 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 1931else
7a197a62
AK
1932 if test "x$target_alias" = x; then
1933 ac_cv_target=$ac_cv_host
1934else
1935 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
68f2de6d
AK
1936 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1937echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 1938 { (exit 1); exit 1; }; }
7a197a62 1939fi
8ce0cbda 1940
ad6254c5 1941fi
68f2de6d
AK
1942{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1943echo "${ECHO_T}$ac_cv_target" >&6; }
7a197a62
AK
1944case $ac_cv_target in
1945*-*-*) ;;
68f2de6d
AK
1946*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1947echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
1948 { (exit 1); exit 1; }; };;
1949esac
ad6254c5 1950target=$ac_cv_target
7a197a62
AK
1951ac_save_IFS=$IFS; IFS='-'
1952set x $ac_cv_target
1953shift
1954target_cpu=$1
1955target_vendor=$2
1956shift; shift
1957# Remember, the first character of IFS is used to create $*,
1958# except with old shells:
1959target_os=$*
1960IFS=$ac_save_IFS
1961case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 1962
8ce0cbda 1963
ad6254c5
AK
1964# The aliases save the names the user supplied, while $host etc.
1965# will get canonicalized.
1966test -n "$target_alias" &&
8ce0cbda
AK
1967 test "$program_prefix$program_suffix$program_transform_name" = \
1968 NONENONEs,x,x, &&
1969 program_prefix=${target_alias}-
1970
8ce0cbda
AK
1971case "$host_os" in
1972 linux*)
8ce0cbda
AK
1973 COPTIMISE_FLAG="-O2"
1974 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
1975 CLDWHOLEARCHIVE="-Wl,-whole-archive"
1976 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
1977 LDDEPS="$LDDEPS .export.sym"
1978 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 1979 LIB_SUFFIX=so
8ce0cbda
AK
1980 DEVMAPPER=yes
1981 ODIRECT=yes
d0191583 1982 DM_IOCTLS=yes
8ce0cbda 1983 SELINUX=yes
8b1a3214 1984 REALTIME=yes
8ce0cbda 1985 CLUSTER=internal
93bd259b 1986 FSADM=yes
d0191583 1987 ;;
8ce0cbda
AK
1988 darwin*)
1989 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
1990 COPTIMISE_FLAG="-O2"
1991 CLDFLAGS="$CLDFLAGS"
1992 CLDWHOLEARCHIVE="-all_load"
1993 CLDNOWHOLEARCHIVE=
d0191583 1994 LIB_SUFFIX=dylib
a653923f 1995 DEVMAPPER=yes
8ce0cbda 1996 ODIRECT=no
d0191583 1997 DM_IOCTLS=no
8ce0cbda 1998 SELINUX=no
8b1a3214 1999 REALTIME=no
8ce0cbda 2000 CLUSTER=none
d0191583
JM
2001 FSADM=no
2002 ;;
8ce0cbda
AK
2003esac
2004
80992638 2005################################################################################
5951ef33
AK
2006{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2007echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
2008if test "${ac_cv_path_SED+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2010else
2011 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2012 for ac_i in 1 2 3 4 5 6 7; do
2013 ac_script="$ac_script$as_nl$ac_script"
2014 done
2015 echo "$ac_script" | sed 99q >conftest.sed
2016 $as_unset ac_script || ac_script=
2017 # Extract the first word of "sed gsed" to use in msg output
2018if test -z "$SED"; then
2019set dummy sed gsed; ac_prog_name=$2
2020if test "${ac_cv_path_SED+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2022else
2023 ac_path_SED_found=false
2024# Loop through the user's path and test for each of PROGNAME-LIST
2025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026for as_dir in $PATH
2027do
2028 IFS=$as_save_IFS
2029 test -z "$as_dir" && as_dir=.
2030 for ac_prog in sed gsed; do
2031 for ac_exec_ext in '' $ac_executable_extensions; do
2032 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2033 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2034 # Check for GNU ac_path_SED and select it if it is found.
2035 # Check for GNU $ac_path_SED
2036case `"$ac_path_SED" --version 2>&1` in
2037*GNU*)
2038 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2039*)
2040 ac_count=0
2041 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2042 while :
2043 do
2044 cat "conftest.in" "conftest.in" >"conftest.tmp"
2045 mv "conftest.tmp" "conftest.in"
2046 cp "conftest.in" "conftest.nl"
2047 echo '' >> "conftest.nl"
2048 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2050 ac_count=`expr $ac_count + 1`
2051 if test $ac_count -gt ${ac_path_SED_max-0}; then
2052 # Best one so far, save it but keep looking for a better one
2053 ac_cv_path_SED="$ac_path_SED"
2054 ac_path_SED_max=$ac_count
2055 fi
2056 # 10*(2^10) chars as input seems more than enough
2057 test $ac_count -gt 10 && break
2058 done
2059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2060esac
2061
2062
2063 $ac_path_SED_found && break 3
2064 done
2065done
2066
2067done
2068IFS=$as_save_IFS
2069
2070
2071fi
2072
2073SED="$ac_cv_path_SED"
2074if test -z "$SED"; then
2075 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
2076echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
2077 { (exit 1); exit 1; }; }
2078fi
2079
2080else
2081 ac_cv_path_SED=$SED
2082fi
2083
2084fi
2085{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2086echo "${ECHO_T}$ac_cv_path_SED" >&6; }
2087 SED="$ac_cv_path_SED"
2088 rm -f conftest.sed
2089
ad6254c5 2090for ac_prog in gawk mawk nawk awk
795ca3e5 2091do
ad6254c5 2092 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2093set dummy $ac_prog; ac_word=$2
68f2de6d
AK
2094{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2096if test "${ac_cv_prog_AWK+set}" = set; then
68f2de6d 2097 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2098else
2099 if test -n "$AWK"; then
2100 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2101else
ad6254c5
AK
2102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103for as_dir in $PATH
2104do
2105 IFS=$as_save_IFS
2106 test -z "$as_dir" && as_dir=.
2107 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2109 ac_cv_prog_AWK="$ac_prog"
68f2de6d 2110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2111 break 2
2112 fi
2113done
2114done
7a197a62 2115IFS=$as_save_IFS
ad6254c5 2116
795ca3e5
AK
2117fi
2118fi
ad6254c5 2119AWK=$ac_cv_prog_AWK
795ca3e5 2120if test -n "$AWK"; then
68f2de6d
AK
2121 { echo "$as_me:$LINENO: result: $AWK" >&5
2122echo "${ECHO_T}$AWK" >&6; }
795ca3e5 2123else
68f2de6d
AK
2124 { echo "$as_me:$LINENO: result: no" >&5
2125echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2126fi
2127
7a197a62 2128
ad6254c5
AK
2129 test -n "$AWK" && break
2130done
2131
2132ac_ext=c
2133ac_cpp='$CPP $CPPFLAGS'
2134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2136ac_compiler_gnu=$ac_cv_c_compiler_gnu
2137if test -n "$ac_tool_prefix"; then
2138 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2139set dummy ${ac_tool_prefix}gcc; ac_word=$2
68f2de6d
AK
2140{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2142if test "${ac_cv_prog_CC+set}" = set; then
68f2de6d 2143 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2144else
2145 if test -n "$CC"; then
2146 ac_cv_prog_CC="$CC" # Let the user override the test.
2147else
2148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149for as_dir in $PATH
2150do
2151 IFS=$as_save_IFS
2152 test -z "$as_dir" && as_dir=.
2153 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2155 ac_cv_prog_CC="${ac_tool_prefix}gcc"
68f2de6d 2156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2157 break 2
2158 fi
2159done
8106cdd5 2160done
7a197a62 2161IFS=$as_save_IFS
8106cdd5 2162
ad6254c5
AK
2163fi
2164fi
2165CC=$ac_cv_prog_CC
2166if test -n "$CC"; then
68f2de6d
AK
2167 { echo "$as_me:$LINENO: result: $CC" >&5
2168echo "${ECHO_T}$CC" >&6; }
ad6254c5 2169else
68f2de6d
AK
2170 { echo "$as_me:$LINENO: result: no" >&5
2171echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2172fi
2173
7a197a62 2174
ad6254c5
AK
2175fi
2176if test -z "$ac_cv_prog_CC"; then
2177 ac_ct_CC=$CC
2178 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2179set dummy gcc; ac_word=$2
68f2de6d
AK
2180{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2182if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
68f2de6d 2183 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2184else
2185 if test -n "$ac_ct_CC"; then
2186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2187else
2188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189for as_dir in $PATH
2190do
2191 IFS=$as_save_IFS
2192 test -z "$as_dir" && as_dir=.
2193 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2195 ac_cv_prog_ac_ct_CC="gcc"
68f2de6d 2196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2197 break 2
2198 fi
2199done
2200done
7a197a62 2201IFS=$as_save_IFS
ad6254c5
AK
2202
2203fi
2204fi
2205ac_ct_CC=$ac_cv_prog_ac_ct_CC
2206if test -n "$ac_ct_CC"; then
68f2de6d
AK
2207 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2208echo "${ECHO_T}$ac_ct_CC" >&6; }
ad6254c5 2209else
68f2de6d
AK
2210 { echo "$as_me:$LINENO: result: no" >&5
2211echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2212fi
2213
7a197a62
AK
2214 if test "x$ac_ct_CC" = x; then
2215 CC=""
2216 else
2217 case $cross_compiling:$ac_tool_warned in
2218yes:)
68f2de6d 2219{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2220whose name does not start with the host triplet. If you think this
2221configuration is useful to you, please write to autoconf@gnu.org." >&5
68f2de6d 2222echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2223whose name does not start with the host triplet. If you think this
2224configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2225ac_tool_warned=yes ;;
2226esac
2227 CC=$ac_ct_CC
2228 fi
ad6254c5
AK
2229else
2230 CC="$ac_cv_prog_CC"
2231fi
2232
2233if test -z "$CC"; then
7a197a62
AK
2234 if test -n "$ac_tool_prefix"; then
2235 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2236set dummy ${ac_tool_prefix}cc; ac_word=$2
68f2de6d
AK
2237{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2239if test "${ac_cv_prog_CC+set}" = set; then
68f2de6d 2240 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5
AK
2241else
2242 if test -n "$CC"; then
2243 ac_cv_prog_CC="$CC" # Let the user override the test.
2244else
ad6254c5
AK
2245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246for as_dir in $PATH
2247do
2248 IFS=$as_save_IFS
2249 test -z "$as_dir" && as_dir=.
2250 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2252 ac_cv_prog_CC="${ac_tool_prefix}cc"
68f2de6d 2253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2254 break 2
2255 fi
2256done
2257done
7a197a62 2258IFS=$as_save_IFS
ad6254c5 2259
8106cdd5
AK
2260fi
2261fi
ad6254c5 2262CC=$ac_cv_prog_CC
8106cdd5 2263if test -n "$CC"; then
68f2de6d
AK
2264 { echo "$as_me:$LINENO: result: $CC" >&5
2265echo "${ECHO_T}$CC" >&6; }
ad6254c5 2266else
68f2de6d
AK
2267 { echo "$as_me:$LINENO: result: no" >&5
2268echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2269fi
2270
8106cdd5 2271
7a197a62 2272 fi
ad6254c5 2273fi
795ca3e5
AK
2274if test -z "$CC"; then
2275 # Extract the first word of "cc", so it can be a program name with args.
2276set dummy cc; ac_word=$2
68f2de6d
AK
2277{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2279if test "${ac_cv_prog_CC+set}" = set; then
68f2de6d 2280 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2281else
2282 if test -n "$CC"; then
2283 ac_cv_prog_CC="$CC" # Let the user override the test.
2284else
795ca3e5 2285 ac_prog_rejected=no
ad6254c5
AK
2286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287for as_dir in $PATH
2288do
2289 IFS=$as_save_IFS
2290 test -z "$as_dir" && as_dir=.
2291 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2293 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2294 ac_prog_rejected=yes
2295 continue
2296 fi
2297 ac_cv_prog_CC="cc"
68f2de6d 2298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2299 break 2
2300 fi
2301done
2302done
7a197a62 2303IFS=$as_save_IFS
ad6254c5 2304
795ca3e5
AK
2305if test $ac_prog_rejected = yes; then
2306 # We found a bogon in the path, so make sure we never use it.
2307 set dummy $ac_cv_prog_CC
2308 shift
ad6254c5 2309 if test $# != 0; then
795ca3e5
AK
2310 # We chose a different compiler from the bogus one.
2311 # However, it has the same basename, so the bogon will be chosen
2312 # first if we set CC to just the basename; use the full file name.
2313 shift
ad6254c5 2314 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2315 fi
2316fi
2317fi
2318fi
ad6254c5 2319CC=$ac_cv_prog_CC
795ca3e5 2320if test -n "$CC"; then
68f2de6d
AK
2321 { echo "$as_me:$LINENO: result: $CC" >&5
2322echo "${ECHO_T}$CC" >&6; }
795ca3e5 2323else
68f2de6d
AK
2324 { echo "$as_me:$LINENO: result: no" >&5
2325echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2326fi
2327
7a197a62 2328
ad6254c5
AK
2329fi
2330if test -z "$CC"; then
2331 if test -n "$ac_tool_prefix"; then
7a197a62 2332 for ac_prog in cl.exe
ad6254c5
AK
2333 do
2334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2335set dummy $ac_tool_prefix$ac_prog; ac_word=$2
68f2de6d
AK
2336{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2338if test "${ac_cv_prog_CC+set}" = set; then
68f2de6d 2339 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2340else
2341 if test -n "$CC"; then
2342 ac_cv_prog_CC="$CC" # Let the user override the test.
2343else
ad6254c5
AK
2344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345for as_dir in $PATH
2346do
2347 IFS=$as_save_IFS
2348 test -z "$as_dir" && as_dir=.
2349 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2351 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
68f2de6d 2352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2353 break 2
2354 fi
2355done
2356done
7a197a62 2357IFS=$as_save_IFS
ad6254c5 2358
795ca3e5
AK
2359fi
2360fi
ad6254c5 2361CC=$ac_cv_prog_CC
795ca3e5 2362if test -n "$CC"; then
68f2de6d
AK
2363 { echo "$as_me:$LINENO: result: $CC" >&5
2364echo "${ECHO_T}$CC" >&6; }
795ca3e5 2365else
68f2de6d
AK
2366 { echo "$as_me:$LINENO: result: no" >&5
2367echo "${ECHO_T}no" >&6; }
795ca3e5 2368fi
ad6254c5 2369
7a197a62 2370
ad6254c5
AK
2371 test -n "$CC" && break
2372 done
2373fi
2374if test -z "$CC"; then
2375 ac_ct_CC=$CC
7a197a62 2376 for ac_prog in cl.exe
ad6254c5
AK
2377do
2378 # Extract the first word of "$ac_prog", so it can be a program name with args.
2379set dummy $ac_prog; ac_word=$2
68f2de6d
AK
2380{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2382if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
68f2de6d 2383 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2384else
2385 if test -n "$ac_ct_CC"; then
2386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2387else
2388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389for as_dir in $PATH
2390do
2391 IFS=$as_save_IFS
2392 test -z "$as_dir" && as_dir=.
2393 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2395 ac_cv_prog_ac_ct_CC="$ac_prog"
68f2de6d 2396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2397 break 2
795ca3e5 2398 fi
ad6254c5
AK
2399done
2400done
7a197a62 2401IFS=$as_save_IFS
ad6254c5
AK
2402
2403fi
2404fi
2405ac_ct_CC=$ac_cv_prog_ac_ct_CC
2406if test -n "$ac_ct_CC"; then
68f2de6d
AK
2407 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2408echo "${ECHO_T}$ac_ct_CC" >&6; }
ad6254c5 2409else
68f2de6d
AK
2410 { echo "$as_me:$LINENO: result: no" >&5
2411echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2412fi
2413
7a197a62 2414
ad6254c5
AK
2415 test -n "$ac_ct_CC" && break
2416done
795ca3e5 2417
7a197a62
AK
2418 if test "x$ac_ct_CC" = x; then
2419 CC=""
2420 else
2421 case $cross_compiling:$ac_tool_warned in
2422yes:)
68f2de6d 2423{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2424whose name does not start with the host triplet. If you think this
2425configuration is useful to you, please write to autoconf@gnu.org." >&5
68f2de6d 2426echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2427whose name does not start with the host triplet. If you think this
2428configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2429ac_tool_warned=yes ;;
2430esac
2431 CC=$ac_ct_CC
2432 fi
ad6254c5
AK
2433fi
2434
2435fi
2436
2437
68f2de6d 2438test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2439See \`config.log' for more details." >&5
68f2de6d 2440echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5
AK
2441See \`config.log' for more details." >&2;}
2442 { (exit 1); exit 1; }; }
2443
2444# Provide some information about the compiler.
68f2de6d
AK
2445echo "$as_me:$LINENO: checking for C compiler version" >&5
2446ac_compiler=`set X $ac_compile; echo $2`
7a197a62
AK
2447{ (ac_try="$ac_compiler --version >&5"
2448case "(($ac_try" in
2449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450 *) ac_try_echo=$ac_try;;
2451esac
68f2de6d 2452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2453 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2454 ac_status=$?
68f2de6d 2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2456 (exit $ac_status); }
7a197a62
AK
2457{ (ac_try="$ac_compiler -v >&5"
2458case "(($ac_try" in
2459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460 *) ac_try_echo=$ac_try;;
2461esac
68f2de6d 2462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2463 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2464 ac_status=$?
68f2de6d 2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2466 (exit $ac_status); }
7a197a62
AK
2467{ (ac_try="$ac_compiler -V >&5"
2468case "(($ac_try" in
2469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2470 *) ac_try_echo=$ac_try;;
2471esac
68f2de6d 2472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2473 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2474 ac_status=$?
68f2de6d 2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2476 (exit $ac_status); }
2477
2478cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2479/* confdefs.h. */
2480_ACEOF
2481cat confdefs.h >>conftest.$ac_ext
2482cat >>conftest.$ac_ext <<_ACEOF
2483/* end confdefs.h. */
2484
2485int
2486main ()
2487{
2488
2489 ;
2490 return 0;
2491}
2492_ACEOF
2493ac_clean_files_save=$ac_clean_files
68f2de6d 2494ac_clean_files="$ac_clean_files a.out a.exe b.out"
ad6254c5
AK
2495# Try to create an executable without -o first, disregard a.out.
2496# It will help us diagnose broken compilers, and finding out an intuition
2497# of exeext.
68f2de6d
AK
2498{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2499echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2500ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2501#
2502# List of possible output files, starting from the most likely.
2503# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2504# only as a last resort. b.out is created by i960 compilers.
2505ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2506#
2507# The IRIX 6 linker writes into existing files which may not be
2508# executable, retaining their permissions. Remove them first so a
2509# subsequent execution test works.
7a197a62
AK
2510ac_rmfiles=
2511for ac_file in $ac_files
2512do
2513 case $ac_file in
68f2de6d 2514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
7a197a62
AK
2515 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2516 esac
2517done
2518rm -f $ac_rmfiles
2519
2520if { (ac_try="$ac_link_default"
2521case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2524esac
68f2de6d 2525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2526 (eval "$ac_link_default") 2>&5
ad6254c5 2527 ac_status=$?
68f2de6d 2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2529 (exit $ac_status); }; then
7a197a62
AK
2530 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2531# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2532# in a Makefile. We should not override ac_cv_exeext if it was cached,
2533# so that the user can short-circuit this test for compilers unknown to
2534# Autoconf.
25fbec5b 2535for ac_file in $ac_files ''
ad6254c5
AK
2536do
2537 test -f "$ac_file" || continue
2538 case $ac_file in
68f2de6d 2539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
8a2fc586 2540 ;;
ad6254c5 2541 [ab].out )
8a2fc586
AK
2542 # We found the default executable, but exeext='' is most
2543 # certainly right.
2544 break;;
ad6254c5 2545 *.* )
7a197a62
AK
2546 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2547 then :; else
2548 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2549 fi
2550 # We set ac_cv_exeext here because the later test for it is not
2551 # safe: cross compilers may not add the suffix if given an `-o'
2552 # argument, so we may need to know it at that point already.
2553 # Even if this section looks crufty: it has the advantage of
2554 # actually working.
8a2fc586 2555 break;;
ad6254c5 2556 * )
8a2fc586 2557 break;;
ad6254c5
AK
2558 esac
2559done
7a197a62
AK
2560test "$ac_cv_exeext" = no && ac_cv_exeext=
2561
ad6254c5 2562else
25fbec5b
AK
2563 ac_file=''
2564fi
2565
68f2de6d
AK
2566{ echo "$as_me:$LINENO: result: $ac_file" >&5
2567echo "${ECHO_T}$ac_file" >&6; }
25fbec5b 2568if test -z "$ac_file"; then
68f2de6d 2569 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2570sed 's/^/| /' conftest.$ac_ext >&5
2571
68f2de6d 2572{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2573See \`config.log' for more details." >&5
68f2de6d 2574echo "$as_me: error: C compiler cannot create executables
ad6254c5
AK
2575See \`config.log' for more details." >&2;}
2576 { (exit 77); exit 77; }; }
2577fi
2578
2579ac_exeext=$ac_cv_exeext
ad6254c5 2580
7a197a62 2581# Check that the compiler produces executables we can run. If not, either
ad6254c5 2582# the compiler is broken, or we cross compile.
68f2de6d
AK
2583{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2584echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
ad6254c5
AK
2585# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2586# If not cross compiling, check that we can run a simple program.
2587if test "$cross_compiling" != yes; then
2588 if { ac_try='./$ac_file'
7a197a62
AK
2589 { (case "(($ac_try" in
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2592esac
68f2de6d 2593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2594 (eval "$ac_try") 2>&5
ad6254c5 2595 ac_status=$?
68f2de6d 2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2597 (exit $ac_status); }; }; then
2598 cross_compiling=no
795ca3e5 2599 else
ad6254c5
AK
2600 if test "$cross_compiling" = maybe; then
2601 cross_compiling=yes
2602 else
68f2de6d 2603 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2604If you meant to cross compile, use \`--host'.
2605See \`config.log' for more details." >&5
68f2de6d 2606echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2607If you meant to cross compile, use \`--host'.
2608See \`config.log' for more details." >&2;}
2609 { (exit 1); exit 1; }; }
2610 fi
795ca3e5 2611 fi
80992638 2612fi
68f2de6d
AK
2613{ echo "$as_me:$LINENO: result: yes" >&5
2614echo "${ECHO_T}yes" >&6; }
ad6254c5 2615
68f2de6d 2616rm -f a.out a.exe conftest$ac_cv_exeext b.out
ad6254c5 2617ac_clean_files=$ac_clean_files_save
7a197a62 2618# Check that the compiler produces executables we can run. If not, either
ad6254c5 2619# the compiler is broken, or we cross compile.
68f2de6d
AK
2620{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2621echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2622{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2623echo "${ECHO_T}$cross_compiling" >&6; }
7a197a62 2624
68f2de6d
AK
2625{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2626echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
7a197a62
AK
2627if { (ac_try="$ac_link"
2628case "(($ac_try" in
2629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2630 *) ac_try_echo=$ac_try;;
2631esac
68f2de6d 2632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2633 (eval "$ac_link") 2>&5
ad6254c5 2634 ac_status=$?
68f2de6d 2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2636 (exit $ac_status); }; then
2637 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2638# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2639# work properly (i.e., refer to `conftest.exe'), while it won't with
2640# `rm'.
2641for ac_file in conftest.exe conftest conftest.*; do
2642 test -f "$ac_file" || continue
2643 case $ac_file in
68f2de6d 2644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
ad6254c5 2645 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2646 break;;
ad6254c5
AK
2647 * ) break;;
2648 esac
2649done
80992638 2650else
68f2de6d 2651 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2652See \`config.log' for more details." >&5
68f2de6d 2653echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5
AK
2654See \`config.log' for more details." >&2;}
2655 { (exit 1); exit 1; }; }
2656fi
2657
2658rm -f conftest$ac_cv_exeext
68f2de6d
AK
2659{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2660echo "${ECHO_T}$ac_cv_exeext" >&6; }
ad6254c5
AK
2661
2662rm -f conftest.$ac_ext
2663EXEEXT=$ac_cv_exeext
2664ac_exeext=$EXEEXT
68f2de6d
AK
2665{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2666echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
ad6254c5 2667if test "${ac_cv_objext+set}" = set; then
68f2de6d 2668 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2669else
ad6254c5 2670 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2671/* confdefs.h. */
2672_ACEOF
2673cat confdefs.h >>conftest.$ac_ext
2674cat >>conftest.$ac_ext <<_ACEOF
2675/* end confdefs.h. */
2676
2677int
2678main ()
2679{
2680
2681 ;
2682 return 0;
2683}
2684_ACEOF
2685rm -f conftest.o conftest.obj
7a197a62
AK
2686if { (ac_try="$ac_compile"
2687case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2690esac
68f2de6d 2691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2692 (eval "$ac_compile") 2>&5
ad6254c5 2693 ac_status=$?
68f2de6d 2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2695 (exit $ac_status); }; then
7a197a62
AK
2696 for ac_file in conftest.o conftest.obj conftest.*; do
2697 test -f "$ac_file" || continue;
ad6254c5 2698 case $ac_file in
68f2de6d 2699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
ad6254c5
AK
2700 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2701 break;;
2702 esac
2703done
2704else
68f2de6d 2705 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2706sed 's/^/| /' conftest.$ac_ext >&5
2707
68f2de6d 2708{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2709See \`config.log' for more details." >&5
68f2de6d 2710echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5
AK
2711See \`config.log' for more details." >&2;}
2712 { (exit 1); exit 1; }; }
2713fi
2714
2715rm -f conftest.$ac_cv_objext conftest.$ac_ext
2716fi
68f2de6d
AK
2717{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2718echo "${ECHO_T}$ac_cv_objext" >&6; }
ad6254c5
AK
2719OBJEXT=$ac_cv_objext
2720ac_objext=$OBJEXT
68f2de6d
AK
2721{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2722echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
ad6254c5 2723if test "${ac_cv_c_compiler_gnu+set}" = set; then
68f2de6d 2724 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2725else
2726 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2727/* confdefs.h. */
2728_ACEOF
2729cat confdefs.h >>conftest.$ac_ext
2730cat >>conftest.$ac_ext <<_ACEOF
2731/* end confdefs.h. */
2732
2733int
2734main ()
2735{
2736#ifndef __GNUC__
2737 choke me
2738#endif
80992638 2739
ad6254c5
AK
2740 ;
2741 return 0;
2742}
2743_ACEOF
2744rm -f conftest.$ac_objext
7a197a62
AK
2745if { (ac_try="$ac_compile"
2746case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749esac
68f2de6d 2750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2751 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2752 ac_status=$?
8a2fc586
AK
2753 grep -v '^ *+' conftest.er1 >conftest.err
2754 rm -f conftest.er1
2755 cat conftest.err >&5
68f2de6d 2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2757 (exit $ac_status); } && {
2758 test -z "$ac_c_werror_flag" ||
2759 test ! -s conftest.err
2760 } && test -s conftest.$ac_objext; then
ad6254c5 2761 ac_compiler_gnu=yes
80992638 2762else
68f2de6d 2763 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2764sed 's/^/| /' conftest.$ac_ext >&5
2765
7a197a62 2766 ac_compiler_gnu=no
8106cdd5 2767fi
7a197a62
AK
2768
2769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2770ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 2771
ad6254c5 2772fi
68f2de6d
AK
2773{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2774echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2775GCC=`test $ac_compiler_gnu = yes && echo yes`
ad6254c5
AK
2776ac_test_CFLAGS=${CFLAGS+set}
2777ac_save_CFLAGS=$CFLAGS
68f2de6d
AK
2778{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2779echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
ad6254c5 2780if test "${ac_cv_prog_cc_g+set}" = set; then
68f2de6d 2781 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2782else
7a197a62
AK
2783 ac_save_c_werror_flag=$ac_c_werror_flag
2784 ac_c_werror_flag=yes
2785 ac_cv_prog_cc_g=no
2786 CFLAGS="-g"
2787 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2788/* confdefs.h. */
2789_ACEOF
2790cat confdefs.h >>conftest.$ac_ext
2791cat >>conftest.$ac_ext <<_ACEOF
2792/* end confdefs.h. */
2793
2794int
2795main ()
2796{
2797
2798 ;
2799 return 0;
2800}
2801_ACEOF
2802rm -f conftest.$ac_objext
7a197a62
AK
2803if { (ac_try="$ac_compile"
2804case "(($ac_try" in
2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806 *) ac_try_echo=$ac_try;;
2807esac
68f2de6d 2808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2809 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2810 ac_status=$?
8a2fc586
AK
2811 grep -v '^ *+' conftest.er1 >conftest.err
2812 rm -f conftest.er1
2813 cat conftest.err >&5
68f2de6d 2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2815 (exit $ac_status); } && {
2816 test -z "$ac_c_werror_flag" ||
2817 test ! -s conftest.err
2818 } && test -s conftest.$ac_objext; then
7a197a62
AK
2819 ac_cv_prog_cc_g=yes
2820else
68f2de6d 2821 echo "$as_me: failed program was:" >&5
7a197a62
AK
2822sed 's/^/| /' conftest.$ac_ext >&5
2823
2824 CFLAGS=""
2825 cat >conftest.$ac_ext <<_ACEOF
2826/* confdefs.h. */
2827_ACEOF
2828cat confdefs.h >>conftest.$ac_ext
2829cat >>conftest.$ac_ext <<_ACEOF
2830/* end confdefs.h. */
2831
2832int
2833main ()
2834{
2835
2836 ;
2837 return 0;
2838}
2839_ACEOF
2840rm -f conftest.$ac_objext
2841if { (ac_try="$ac_compile"
2842case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2845esac
68f2de6d 2846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2847 (eval "$ac_compile") 2>conftest.er1
8a2fc586 2848 ac_status=$?
7a197a62
AK
2849 grep -v '^ *+' conftest.er1 >conftest.err
2850 rm -f conftest.er1
2851 cat conftest.err >&5
68f2de6d 2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2853 (exit $ac_status); } && {
2854 test -z "$ac_c_werror_flag" ||
2855 test ! -s conftest.err
2856 } && test -s conftest.$ac_objext; then
7a197a62
AK
2857 :
2858else
68f2de6d 2859 echo "$as_me: failed program was:" >&5
7a197a62
AK
2860sed 's/^/| /' conftest.$ac_ext >&5
2861
2862 ac_c_werror_flag=$ac_save_c_werror_flag
2863 CFLAGS="-g"
2864 cat >conftest.$ac_ext <<_ACEOF
2865/* confdefs.h. */
2866_ACEOF
2867cat confdefs.h >>conftest.$ac_ext
2868cat >>conftest.$ac_ext <<_ACEOF
2869/* end confdefs.h. */
2870
2871int
2872main ()
2873{
2874
2875 ;
2876 return 0;
2877}
2878_ACEOF
2879rm -f conftest.$ac_objext
2880if { (ac_try="$ac_compile"
2881case "(($ac_try" in
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2884esac
68f2de6d 2885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2886 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2887 ac_status=$?
7a197a62
AK
2888 grep -v '^ *+' conftest.er1 >conftest.err
2889 rm -f conftest.er1
2890 cat conftest.err >&5
68f2de6d 2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2892 (exit $ac_status); } && {
2893 test -z "$ac_c_werror_flag" ||
2894 test ! -s conftest.err
2895 } && test -s conftest.$ac_objext; then
795ca3e5
AK
2896 ac_cv_prog_cc_g=yes
2897else
68f2de6d 2898 echo "$as_me: failed program was:" >&5
ad6254c5 2899sed 's/^/| /' conftest.$ac_ext >&5
80992638 2900
7a197a62
AK
2901
2902fi
2903
2904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2905fi
2906
2907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 2908fi
7a197a62
AK
2909
2910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 2912fi
68f2de6d
AK
2913{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2914echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
795ca3e5 2915if test "$ac_test_CFLAGS" = set; then
ad6254c5 2916 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
2917elif test $ac_cv_prog_cc_g = yes; then
2918 if test "$GCC" = yes; then
2919 CFLAGS="-g -O2"
2920 else
2921 CFLAGS="-g"
2922 fi
2923else
2924 if test "$GCC" = yes; then
2925 CFLAGS="-O2"
2926 else
2927 CFLAGS=
2928 fi
2929fi
68f2de6d
AK
2930{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2931echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
7a197a62 2932if test "${ac_cv_prog_cc_c89+set}" = set; then
68f2de6d 2933 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 2934else
7a197a62 2935 ac_cv_prog_cc_c89=no
ad6254c5
AK
2936ac_save_CC=$CC
2937cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2938/* confdefs.h. */
2939_ACEOF
2940cat confdefs.h >>conftest.$ac_ext
2941cat >>conftest.$ac_ext <<_ACEOF
2942/* end confdefs.h. */
2943#include <stdarg.h>
2944#include <stdio.h>
2945#include <sys/types.h>
2946#include <sys/stat.h>
2947/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2948struct buf { int x; };
2949FILE * (*rcsopen) (struct buf *, struct stat *, int);
2950static char *e (p, i)
2951 char **p;
2952 int i;
2953{
2954 return p[i];
2955}
2956static char *f (char * (*g) (char **, int), char **p, ...)
2957{
2958 char *s;
2959 va_list v;
2960 va_start (v,p);
2961 s = g (p, va_arg (v,int));
2962 va_end (v);
2963 return s;
2964}
8a2fc586
AK
2965
2966/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2967 function prototypes and stuff, but not '\xHH' hex character constants.
2968 These don't provoke an error unfortunately, instead are silently treated
7a197a62 2969 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
2970 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2971 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 2972 that's true only with -std. */
8a2fc586
AK
2973int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2974
7a197a62
AK
2975/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2976 inside strings and character constants. */
2977#define FOO(x) 'x'
2978int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2979
ad6254c5
AK
2980int test (int i, double x);
2981struct s1 {int (*f) (int a);};
2982struct s2 {int (*f) (double a);};
2983int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2984int argc;
2985char **argv;
2986int
2987main ()
2988{
2989return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2990 ;
2991 return 0;
2992}
2993_ACEOF
7a197a62
AK
2994for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2995 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
2996do
2997 CC="$ac_save_CC $ac_arg"
2998 rm -f conftest.$ac_objext
7a197a62
AK
2999if { (ac_try="$ac_compile"
3000case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003esac
68f2de6d 3004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 3005 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3006 ac_status=$?
8a2fc586
AK
3007 grep -v '^ *+' conftest.er1 >conftest.err
3008 rm -f conftest.er1
3009 cat conftest.err >&5
68f2de6d 3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3011 (exit $ac_status); } && {
3012 test -z "$ac_c_werror_flag" ||
3013 test ! -s conftest.err
3014 } && test -s conftest.$ac_objext; then
7a197a62 3015 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3016else
68f2de6d 3017 echo "$as_me: failed program was:" >&5
ad6254c5
AK
3018sed 's/^/| /' conftest.$ac_ext >&5
3019
7a197a62 3020
ad6254c5 3021fi
7a197a62
AK
3022
3023rm -f core conftest.err conftest.$ac_objext
3024 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3025done
7a197a62 3026rm -f conftest.$ac_ext
ad6254c5
AK
3027CC=$ac_save_CC
3028
3029fi
7a197a62
AK
3030# AC_CACHE_VAL
3031case "x$ac_cv_prog_cc_c89" in
3032 x)
68f2de6d
AK
3033 { echo "$as_me:$LINENO: result: none needed" >&5
3034echo "${ECHO_T}none needed" >&6; } ;;
7a197a62 3035 xno)
68f2de6d
AK
3036 { echo "$as_me:$LINENO: result: unsupported" >&5
3037echo "${ECHO_T}unsupported" >&6; } ;;
ad6254c5 3038 *)
7a197a62 3039 CC="$CC $ac_cv_prog_cc_c89"
68f2de6d
AK
3040 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3041echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3042esac
3043
ad6254c5 3044
ad6254c5
AK
3045ac_ext=c
3046ac_cpp='$CPP $CPPFLAGS'
3047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3049ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3050
d0191583
JM
3051
3052
3053ac_ext=c
3054ac_cpp='$CPP $CPPFLAGS'
3055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057ac_compiler_gnu=$ac_cv_c_compiler_gnu
68f2de6d
AK
3058{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3059echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
d0191583
JM
3060# On Suns, sometimes $CPP names a directory.
3061if test -n "$CPP" && test -d "$CPP"; then
3062 CPP=
3063fi
3064if test -z "$CPP"; then
3065 if test "${ac_cv_prog_CPP+set}" = set; then
68f2de6d 3066 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3067else
d0191583
JM
3068 # Double quotes because CPP needs to be expanded
3069 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3070 do
3071 ac_preproc_ok=false
3072for ac_c_preproc_warn_flag in '' yes
ad6254c5 3073do
d0191583
JM
3074 # Use a header file that comes with gcc, so configuring glibc
3075 # with a fresh cross-compiler works.
3076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3077 # <limits.h> exists even on freestanding compilers.
3078 # On the NeXT, cc -E runs the code through the compiler's parser,
3079 # not just through cpp. "Syntax error" is here to catch this case.
3080 cat >conftest.$ac_ext <<_ACEOF
3081/* confdefs.h. */
3082_ACEOF
3083cat confdefs.h >>conftest.$ac_ext
3084cat >>conftest.$ac_ext <<_ACEOF
3085/* end confdefs.h. */
3086#ifdef __STDC__
3087# include <limits.h>
3088#else
3089# include <assert.h>
3090#endif
3091 Syntax error
3092_ACEOF
3093if { (ac_try="$ac_cpp conftest.$ac_ext"
3094case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
ad6254c5 3097esac
68f2de6d 3098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3100 ac_status=$?
3101 grep -v '^ *+' conftest.er1 >conftest.err
3102 rm -f conftest.er1
3103 cat conftest.err >&5
68f2de6d 3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3105 (exit $ac_status); } >/dev/null && {
3106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3107 test ! -s conftest.err
3108 }; then
3109 :
3110else
68f2de6d 3111 echo "$as_me: failed program was:" >&5
d0191583 3112sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3113
d0191583
JM
3114 # Broken: fails on valid input.
3115continue
795ca3e5 3116fi
795ca3e5 3117
d0191583 3118rm -f conftest.err conftest.$ac_ext
795ca3e5 3119
d0191583
JM
3120 # OK, works on sane cases. Now check whether nonexistent headers
3121 # can be detected and how.
3122 cat >conftest.$ac_ext <<_ACEOF
3123/* confdefs.h. */
3124_ACEOF
3125cat confdefs.h >>conftest.$ac_ext
3126cat >>conftest.$ac_ext <<_ACEOF
3127/* end confdefs.h. */
3128#include <ac_nonexistent.h>
3129_ACEOF
3130if { (ac_try="$ac_cpp conftest.$ac_ext"
3131case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134esac
68f2de6d 3135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
68f2de6d 3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3142 (exit $ac_status); } >/dev/null && {
3143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3144 test ! -s conftest.err
3145 }; then
3146 # Broken: success on invalid input.
3147continue
3148else
68f2de6d 3149 echo "$as_me: failed program was:" >&5
d0191583 3150sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3151
d0191583
JM
3152 # Passes both tests.
3153ac_preproc_ok=:
3154break
3155fi
795ca3e5 3156
d0191583
JM
3157rm -f conftest.err conftest.$ac_ext
3158
3159done
3160# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3161rm -f conftest.err conftest.$ac_ext
3162if $ac_preproc_ok; then
3163 break
795ca3e5
AK
3164fi
3165
d0191583
JM
3166 done
3167 ac_cv_prog_CPP=$CPP
3168
3169fi
3170 CPP=$ac_cv_prog_CPP
795ca3e5 3171else
d0191583
JM
3172 ac_cv_prog_CPP=$CPP
3173fi
68f2de6d
AK
3174{ echo "$as_me:$LINENO: result: $CPP" >&5
3175echo "${ECHO_T}$CPP" >&6; }
d0191583
JM
3176ac_preproc_ok=false
3177for ac_c_preproc_warn_flag in '' yes
3178do
3179 # Use a header file that comes with gcc, so configuring glibc
3180 # with a fresh cross-compiler works.
3181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3182 # <limits.h> exists even on freestanding compilers.
3183 # On the NeXT, cc -E runs the code through the compiler's parser,
3184 # not just through cpp. "Syntax error" is here to catch this case.
3185 cat >conftest.$ac_ext <<_ACEOF
3186/* confdefs.h. */
ad6254c5 3187_ACEOF
d0191583
JM
3188cat confdefs.h >>conftest.$ac_ext
3189cat >>conftest.$ac_ext <<_ACEOF
3190/* end confdefs.h. */
3191#ifdef __STDC__
3192# include <limits.h>
3193#else
3194# include <assert.h>
3195#endif
3196 Syntax error
3197_ACEOF
3198if { (ac_try="$ac_cpp conftest.$ac_ext"
3199case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
7a197a62 3202esac
68f2de6d 3203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3205 ac_status=$?
3206 grep -v '^ *+' conftest.er1 >conftest.err
3207 rm -f conftest.er1
3208 cat conftest.err >&5
68f2de6d 3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3210 (exit $ac_status); } >/dev/null && {
3211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3212 test ! -s conftest.err
3213 }; then
3214 :
795ca3e5 3215else
68f2de6d 3216 echo "$as_me: failed program was:" >&5
d0191583
JM
3217sed 's/^/| /' conftest.$ac_ext >&5
3218
3219 # Broken: fails on valid input.
3220continue
795ca3e5
AK
3221fi
3222
d0191583
JM
3223rm -f conftest.err conftest.$ac_ext
3224
3225 # OK, works on sane cases. Now check whether nonexistent headers
3226 # can be detected and how.
3227 cat >conftest.$ac_ext <<_ACEOF
3228/* confdefs.h. */
3229_ACEOF
3230cat confdefs.h >>conftest.$ac_ext
3231cat >>conftest.$ac_ext <<_ACEOF
3232/* end confdefs.h. */
3233#include <ac_nonexistent.h>
3234_ACEOF
3235if { (ac_try="$ac_cpp conftest.$ac_ext"
3236case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239esac
68f2de6d 3240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3242 ac_status=$?
3243 grep -v '^ *+' conftest.er1 >conftest.err
3244 rm -f conftest.er1
3245 cat conftest.err >&5
68f2de6d 3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3247 (exit $ac_status); } >/dev/null && {
3248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3249 test ! -s conftest.err
3250 }; then
3251 # Broken: success on invalid input.
3252continue
795ca3e5 3253else
68f2de6d 3254 echo "$as_me: failed program was:" >&5
d0191583 3255sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3256
d0191583
JM
3257 # Passes both tests.
3258ac_preproc_ok=:
3259break
795ca3e5 3260fi
d0191583
JM
3261
3262rm -f conftest.err conftest.$ac_ext
3263
3264done
3265# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3266rm -f conftest.err conftest.$ac_ext
3267if $ac_preproc_ok; then
3268 :
8106cdd5 3269else
68f2de6d 3270 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3271See \`config.log' for more details." >&5
68f2de6d 3272echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583
JM
3273See \`config.log' for more details." >&2;}
3274 { (exit 1); exit 1; }; }
8106cdd5
AK
3275fi
3276
d0191583
JM
3277ac_ext=c
3278ac_cpp='$CPP $CPPFLAGS'
3279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3281ac_compiler_gnu=$ac_cv_c_compiler_gnu
3282
7a197a62 3283
68f2de6d
AK
3284{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3285echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3286if test "${ac_cv_path_GREP+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3288else
3289 # Extract the first word of "grep ggrep" to use in msg output
3290if test -z "$GREP"; then
3291set dummy grep ggrep; ac_prog_name=$2
5556819a 3292if test "${ac_cv_path_GREP+set}" = set; then
68f2de6d 3293 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3294else
d0191583 3295 ac_path_GREP_found=false
68f2de6d
AK
3296# Loop through the user's path and test for each of PROGNAME-LIST
3297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3298for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3299do
3300 IFS=$as_save_IFS
3301 test -z "$as_dir" && as_dir=.
d0191583 3302 for ac_prog in grep ggrep; do
68f2de6d
AK
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3305 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3306 # Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3307 # Check for GNU $ac_path_GREP
3308case `"$ac_path_GREP" --version 2>&1` in
3309*GNU*)
3310 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3311*)
3312 ac_count=0
68f2de6d 3313 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
d0191583
JM
3314 while :
3315 do
3316 cat "conftest.in" "conftest.in" >"conftest.tmp"
3317 mv "conftest.tmp" "conftest.in"
3318 cp "conftest.in" "conftest.nl"
68f2de6d 3319 echo 'GREP' >> "conftest.nl"
d0191583
JM
3320 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3322 ac_count=`expr $ac_count + 1`
3323 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3324 # Best one so far, save it but keep looking for a better one
3325 ac_cv_path_GREP="$ac_path_GREP"
3326 ac_path_GREP_max=$ac_count
3327 fi
3328 # 10*(2^10) chars as input seems more than enough
3329 test $ac_count -gt 10 && break
3330 done
3331 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3332esac
3333
68f2de6d
AK
3334
3335 $ac_path_GREP_found && break 3
d0191583 3336 done
ad6254c5 3337done
68f2de6d
AK
3338
3339done
7a197a62 3340IFS=$as_save_IFS
68f2de6d
AK
3341
3342
3343fi
3344
3345GREP="$ac_cv_path_GREP"
3346if test -z "$GREP"; then
3347 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3348echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3349 { (exit 1); exit 1; }; }
68f2de6d
AK
3350fi
3351
80992638 3352else
d0191583 3353 ac_cv_path_GREP=$GREP
8106cdd5 3354fi
8106cdd5 3355
68f2de6d 3356
80992638 3357fi
68f2de6d
AK
3358{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3359echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
d0191583 3360 GREP="$ac_cv_path_GREP"
795ca3e5 3361
d0191583 3362
68f2de6d
AK
3363{ echo "$as_me:$LINENO: checking for egrep" >&5
3364echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
d0191583 3365if test "${ac_cv_path_EGREP+set}" = set; then
68f2de6d 3366 echo $ECHO_N "(cached) $ECHO_C" >&6
8a2fc586 3367else
d0191583
JM
3368 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3369 then ac_cv_path_EGREP="$GREP -E"
3370 else
68f2de6d
AK
3371 # Extract the first word of "egrep" to use in msg output
3372if test -z "$EGREP"; then
3373set dummy egrep; ac_prog_name=$2
3374if test "${ac_cv_path_EGREP+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376else
d0191583 3377 ac_path_EGREP_found=false
68f2de6d
AK
3378# Loop through the user's path and test for each of PROGNAME-LIST
3379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3380for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3381do
3382 IFS=$as_save_IFS
3383 test -z "$as_dir" && as_dir=.
d0191583 3384 for ac_prog in egrep; do
68f2de6d
AK
3385 for ac_exec_ext in '' $ac_executable_extensions; do
3386 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3387 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3388 # Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3389 # Check for GNU $ac_path_EGREP
3390case `"$ac_path_EGREP" --version 2>&1` in
3391*GNU*)
3392 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3393*)
3394 ac_count=0
68f2de6d 3395 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
d0191583
JM
3396 while :
3397 do
3398 cat "conftest.in" "conftest.in" >"conftest.tmp"
3399 mv "conftest.tmp" "conftest.in"
3400 cp "conftest.in" "conftest.nl"
68f2de6d 3401 echo 'EGREP' >> "conftest.nl"
d0191583
JM
3402 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3404 ac_count=`expr $ac_count + 1`
3405 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3406 # Best one so far, save it but keep looking for a better one
3407 ac_cv_path_EGREP="$ac_path_EGREP"
3408 ac_path_EGREP_max=$ac_count
3409 fi
3410 # 10*(2^10) chars as input seems more than enough
3411 test $ac_count -gt 10 && break
3412 done
3413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3414esac
8a2fc586 3415
68f2de6d
AK
3416
3417 $ac_path_EGREP_found && break 3
d0191583 3418 done
8a2fc586 3419done
68f2de6d
AK
3420
3421done
7a197a62 3422IFS=$as_save_IFS
68f2de6d
AK
3423
3424
3425fi
3426
3427EGREP="$ac_cv_path_EGREP"
3428if test -z "$EGREP"; then
3429 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3430echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3431 { (exit 1); exit 1; }; }
68f2de6d
AK
3432fi
3433
d0191583
JM
3434else
3435 ac_cv_path_EGREP=$EGREP
3436fi
ad6254c5 3437
68f2de6d 3438
d0191583
JM
3439 fi
3440fi
68f2de6d
AK
3441{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3442echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
d0191583 3443 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3444
3445
d0191583 3446if test $ac_cv_c_compiler_gnu = yes; then
68f2de6d
AK
3447 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3448echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
d0191583 3449if test "${ac_cv_prog_gcc_traditional+set}" = set; then
68f2de6d 3450 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 3451else
d0191583 3452 ac_pattern="Autoconf.*'x'"
ad6254c5 3453 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3454/* confdefs.h. */
3455_ACEOF
3456cat confdefs.h >>conftest.$ac_ext
3457cat >>conftest.$ac_ext <<_ACEOF
3458/* end confdefs.h. */
d0191583
JM
3459#include <sgtty.h>
3460Autoconf TIOCGETP
ad6254c5 3461_ACEOF
d0191583
JM
3462if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3463 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3464 ac_cv_prog_gcc_traditional=yes
8106cdd5 3465else
d0191583 3466 ac_cv_prog_gcc_traditional=no
80992638 3467fi
d0191583 3468rm -f conftest*
ad6254c5 3469
8106cdd5 3470
d0191583
JM
3471 if test $ac_cv_prog_gcc_traditional = no; then
3472 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3473/* confdefs.h. */
3474_ACEOF
3475cat confdefs.h >>conftest.$ac_ext
3476cat >>conftest.$ac_ext <<_ACEOF
3477/* end confdefs.h. */
d0191583
JM
3478#include <termio.h>
3479Autoconf TCGETA
ad6254c5 3480_ACEOF
d0191583
JM
3481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3482 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3483 ac_cv_prog_gcc_traditional=yes
7a197a62 3484fi
d0191583 3485rm -f conftest*
795ca3e5 3486
d0191583 3487 fi
795ca3e5 3488fi
68f2de6d
AK
3489{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3490echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3491 if test $ac_cv_prog_gcc_traditional = yes; then
3492 CC="$CC -traditional"
3493 fi
795ca3e5
AK
3494fi
3495
d0191583
JM
3496# Find a good install program. We prefer a C program (faster),
3497# so one script is as good as another. But avoid the broken or
3498# incompatible versions:
3499# SysV /etc/install, /usr/sbin/install
3500# SunOS /usr/etc/install
3501# IRIX /sbin/install
3502# AIX /bin/install
3503# AmigaOS /C/install, which installs bootblocks on floppy discs
3504# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3505# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3506# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3507# OS/2's system install, which has a completely different semantic
3508# ./install, which can be erroneously created by make from ./install.sh.
68f2de6d
AK
3509{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3510echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d0191583
JM
3511if test -z "$INSTALL"; then
3512if test "${ac_cv_path_install+set}" = set; then
68f2de6d 3513 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3514else
d0191583
JM
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516for as_dir in $PATH
3517do
3518 IFS=$as_save_IFS
3519 test -z "$as_dir" && as_dir=.
3520 # Account for people who put trailing slashes in PATH elements.
3521case $as_dir/ in
3522 ./ | .// | /cC/* | \
3523 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3524 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3525 /usr/ucb/* ) ;;
3526 *)
3527 # OSF1 and SCO ODT 3.0 have their own names for install.
3528 # Don't use installbsd from OSF since it installs stuff as root
3529 # by default.
3530 for ac_prog in ginstall scoinst install; do
3531 for ac_exec_ext in '' $ac_executable_extensions; do
3532 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3533 if test $ac_prog = install &&
3534 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3535 # AIX install. It has an incompatible calling convention.
3536 :
3537 elif test $ac_prog = install &&
3538 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3539 # program-specific install script used by HP pwplus--don't use.
3540 :
3541 else
68f2de6d
AK
3542 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3543 break 3
d0191583
JM
3544 fi
3545 fi
3546 done
3547 done
3548 ;;
3549esac
3550done
3551IFS=$as_save_IFS
80992638 3552
d0191583
JM
3553
3554fi
3555 if test "${ac_cv_path_install+set}" = set; then
3556 INSTALL=$ac_cv_path_install
7a197a62 3557 else
d0191583
JM
3558 # As a last resort, use the slow shell script. Don't cache a
3559 # value for INSTALL within a source directory, because that will
3560 # break other packages using the cache if that directory is
3561 # removed, or if the value is a relative name.
3562 INSTALL=$ac_install_sh
7a197a62 3563 fi
d0191583 3564fi
68f2de6d
AK
3565{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3566echo "${ECHO_T}$INSTALL" >&6; }
ad6254c5 3567
d0191583
JM
3568# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3569# It thinks the first close brace ends the variable substitution.
3570test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3571
d0191583 3572test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3573
d0191583
JM
3574test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3575
68f2de6d
AK
3576{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3577echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
d0191583
JM
3578LN_S=$as_ln_s
3579if test "$LN_S" = "ln -s"; then
68f2de6d
AK
3580 { echo "$as_me:$LINENO: result: yes" >&5
3581echo "${ECHO_T}yes" >&6; }
d0191583 3582else
68f2de6d
AK
3583 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3584echo "${ECHO_T}no, using $LN_S" >&6; }
795ca3e5 3585fi
d0191583 3586
68f2de6d
AK
3587{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3588echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3589set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3590if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 3591 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62 3592else
d0191583
JM
3593 cat >conftest.make <<\_ACEOF
3594SHELL = /bin/sh
3595all:
3596 @echo '@@@%%%=$(MAKE)=@@@%%%'
3597_ACEOF
3598# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3599case `${MAKE-make} -f conftest.make 2>/dev/null` in
3600 *@@@%%%=?*=@@@%%%*)
3601 eval ac_cv_prog_make_${ac_make}_set=yes;;
3602 *)
3603 eval ac_cv_prog_make_${ac_make}_set=no;;
3604esac
3605rm -f conftest.make
ad6254c5 3606fi
d0191583 3607if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
68f2de6d
AK
3608 { echo "$as_me:$LINENO: result: yes" >&5
3609echo "${ECHO_T}yes" >&6; }
d0191583
JM
3610 SET_MAKE=
3611else
68f2de6d
AK
3612 { echo "$as_me:$LINENO: result: no" >&5
3613echo "${ECHO_T}no" >&6; }
d0191583 3614 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3615fi
8106cdd5 3616
68f2de6d
AK
3617{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3618echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
5556819a
AK
3619if test -z "$MKDIR_P"; then
3620 if test "${ac_cv_path_mkdir+set}" = set; then
68f2de6d 3621 echo $ECHO_N "(cached) $ECHO_C" >&6
5556819a
AK
3622else
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3625do
3626 IFS=$as_save_IFS
3627 test -z "$as_dir" && as_dir=.
3628 for ac_prog in mkdir gmkdir; do
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3631 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3632 'mkdir (GNU coreutils) '* | \
3633 'mkdir (coreutils) '* | \
3634 'mkdir (fileutils) '4.1*)
3635 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3636 break 3;;
3637 esac
3638 done
3639 done
3640done
3641IFS=$as_save_IFS
3642
3643fi
3644
3645 if test "${ac_cv_path_mkdir+set}" = set; then
3646 MKDIR_P="$ac_cv_path_mkdir -p"
3647 else
3648 # As a last resort, use the slow shell script. Don't cache a
3649 # value for MKDIR_P within a source directory, because that will
3650 # break other packages using the cache if that directory is
3651 # removed, or if the value is a relative name.
3652 test -d ./--version && rmdir ./--version
3653 MKDIR_P="$ac_install_sh -d"
3654 fi
3655fi
68f2de6d
AK
3656{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3657echo "${ECHO_T}$MKDIR_P" >&6; }
5556819a 3658
d0191583
JM
3659if test -n "$ac_tool_prefix"; then
3660 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3661set dummy ${ac_tool_prefix}ranlib; ac_word=$2
68f2de6d
AK
3662{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d0191583 3664if test "${ac_cv_prog_RANLIB+set}" = set; then
68f2de6d 3665 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
3666else
3667 if test -n "$RANLIB"; then
3668 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3669else
3670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671for as_dir in $PATH
3672do
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3677 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
68f2de6d 3678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3679 break 2
3680 fi
3681done
3682done
3683IFS=$as_save_IFS
8106cdd5 3684
795ca3e5 3685fi
d0191583
JM
3686fi
3687RANLIB=$ac_cv_prog_RANLIB
3688if test -n "$RANLIB"; then
68f2de6d
AK
3689 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3690echo "${ECHO_T}$RANLIB" >&6; }
d0191583 3691else
68f2de6d
AK
3692 { echo "$as_me:$LINENO: result: no" >&5
3693echo "${ECHO_T}no" >&6; }
d0191583
JM
3694fi
3695
8106cdd5 3696
ad6254c5 3697fi
d0191583
JM
3698if test -z "$ac_cv_prog_RANLIB"; then
3699 ac_ct_RANLIB=$RANLIB
3700 # Extract the first word of "ranlib", so it can be a program name with args.
3701set dummy ranlib; ac_word=$2
68f2de6d
AK
3702{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d0191583 3704if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
68f2de6d 3705 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3706else
d0191583
JM
3707 if test -n "$ac_ct_RANLIB"; then
3708 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3709else
3710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711for as_dir in $PATH
8106cdd5 3712do
d0191583
JM
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3717 ac_cv_prog_ac_ct_RANLIB="ranlib"
68f2de6d 3718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3719 break 2
3720 fi
3721done
3722done
3723IFS=$as_save_IFS
3724
3725fi
3726fi
3727ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3728if test -n "$ac_ct_RANLIB"; then
68f2de6d
AK
3729 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3730echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
ad6254c5 3731else
68f2de6d
AK
3732 { echo "$as_me:$LINENO: result: no" >&5
3733echo "${ECHO_T}no" >&6; }
d0191583 3734fi
ad6254c5 3735
d0191583
JM
3736 if test "x$ac_ct_RANLIB" = x; then
3737 RANLIB=":"
3738 else
3739 case $cross_compiling:$ac_tool_warned in
3740yes:)
68f2de6d 3741{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
d0191583
JM
3742whose name does not start with the host triplet. If you think this
3743configuration is useful to you, please write to autoconf@gnu.org." >&5
68f2de6d 3744echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
d0191583
JM
3745whose name does not start with the host triplet. If you think this
3746configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3747ac_tool_warned=yes ;;
3748esac
3749 RANLIB=$ac_ct_RANLIB
3750 fi
3751else
3752 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 3753fi
7a197a62 3754
d0191583
JM
3755# Extract the first word of "cflow", so it can be a program name with args.
3756set dummy cflow; ac_word=$2
68f2de6d
AK
3757{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d0191583 3759if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
68f2de6d 3760 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
3761else
3762 case $CFLOW_CMD in
3763 [\\/]* | ?:[\\/]*)
3764 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3765 ;;
3766 *)
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH
3769do
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3774 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 3775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3776 break 2
3777 fi
3778done
3779done
3780IFS=$as_save_IFS
ad6254c5 3781
d0191583 3782 ;;
7a197a62 3783esac
d0191583
JM
3784fi
3785CFLOW_CMD=$ac_cv_path_CFLOW_CMD
3786if test -n "$CFLOW_CMD"; then
68f2de6d
AK
3787 { echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3788echo "${ECHO_T}$CFLOW_CMD" >&6; }
80992638 3789else
68f2de6d
AK
3790 { echo "$as_me:$LINENO: result: no" >&5
3791echo "${ECHO_T}no" >&6; }
795ca3e5 3792fi
7a197a62 3793
ad6254c5 3794
d0191583
JM
3795# Extract the first word of "cscope", so it can be a program name with args.
3796set dummy cscope; ac_word=$2
68f2de6d
AK
3797{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d0191583 3799if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
68f2de6d 3800 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
3801else
3802 case $CSCOPE_CMD in
3803 [\\/]* | ?:[\\/]*)
3804 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
3805 ;;
3806 *)
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808for as_dir in $PATH
3809do
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3814 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 3815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3816 break 2
3817 fi
795ca3e5 3818done
d0191583
JM
3819done
3820IFS=$as_save_IFS
795ca3e5 3821
d0191583
JM
3822 ;;
3823esac
ad6254c5 3824fi
d0191583
JM
3825CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
3826if test -n "$CSCOPE_CMD"; then
68f2de6d
AK
3827 { echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3828echo "${ECHO_T}$CSCOPE_CMD" >&6; }
795ca3e5 3829else
68f2de6d
AK
3830 { echo "$as_me:$LINENO: result: no" >&5
3831echo "${ECHO_T}no" >&6; }
795ca3e5 3832fi
ad6254c5 3833
7a197a62 3834
ad6254c5 3835
d0191583
JM
3836################################################################################
3837
3838
3839
3840
3841
3842ac_header_dirent=no
3843for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
68f2de6d
AK
3844 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3845{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3846echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
d0191583 3847if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 3848 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583 3849else
ad6254c5 3850 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3851/* confdefs.h. */
3852_ACEOF
3853cat confdefs.h >>conftest.$ac_ext
3854cat >>conftest.$ac_ext <<_ACEOF
3855/* end confdefs.h. */
d0191583
JM
3856#include <sys/types.h>
3857#include <$ac_hdr>
3858
3859int
3860main ()
3861{
3862if ((DIR *) 0)
3863return 0;
3864 ;
3865 return 0;
3866}
ad6254c5 3867_ACEOF
d0191583
JM
3868rm -f conftest.$ac_objext
3869if { (ac_try="$ac_compile"
7a197a62
AK
3870case "(($ac_try" in
3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3873esac
68f2de6d 3874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583 3875 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
3876 ac_status=$?
3877 grep -v '^ *+' conftest.er1 >conftest.err
3878 rm -f conftest.er1
3879 cat conftest.err >&5
68f2de6d 3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3881 (exit $ac_status); } && {
3882 test -z "$ac_c_werror_flag" ||
25fbec5b 3883 test ! -s conftest.err
d0191583
JM
3884 } && test -s conftest.$ac_objext; then
3885 eval "$as_ac_Header=yes"
ad6254c5 3886else
68f2de6d 3887 echo "$as_me: failed program was:" >&5
ad6254c5 3888sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 3889
d0191583 3890 eval "$as_ac_Header=no"
795ca3e5 3891fi
7a197a62 3892
d0191583 3893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 3894fi
68f2de6d
AK
3895ac_res=`eval echo '${'$as_ac_Header'}'`
3896 { echo "$as_me:$LINENO: result: $ac_res" >&5
3897echo "${ECHO_T}$ac_res" >&6; }
3898if test `eval echo '${'$as_ac_Header'}'` = yes; then
d0191583 3899 cat >>confdefs.h <<_ACEOF
68f2de6d 3900#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 3901_ACEOF
795ca3e5 3902
d0191583
JM
3903ac_header_dirent=$ac_hdr; break
3904fi
ad6254c5 3905
d0191583
JM
3906done
3907# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3908if test $ac_header_dirent = dirent.h; then
68f2de6d
AK
3909 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3910echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
d0191583 3911if test "${ac_cv_search_opendir+set}" = set; then
68f2de6d 3912 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3913else
d0191583
JM
3914 ac_func_search_save_LIBS=$LIBS
3915cat >conftest.$ac_ext <<_ACEOF
3916/* confdefs.h. */
3917_ACEOF
3918cat confdefs.h >>conftest.$ac_ext
3919cat >>conftest.$ac_ext <<_ACEOF
3920/* end confdefs.h. */
ad6254c5 3921
d0191583
JM
3922/* Override any GCC internal prototype to avoid an error.
3923 Use char because int might match the return type of a GCC
3924 builtin and then its argument prototype would still apply. */
3925#ifdef __cplusplus
3926extern "C"
3927#endif
3928char opendir ();
3929int
3930main ()
3931{
3932return opendir ();
3933 ;
3934 return 0;
3935}
3936_ACEOF
3937for ac_lib in '' dir; do
3938 if test -z "$ac_lib"; then
3939 ac_res="none required"
3940 else
3941 ac_res=-l$ac_lib
3942 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3943 fi
3944 rm -f conftest.$ac_objext conftest$ac_exeext
3945if { (ac_try="$ac_link"
3946case "(($ac_try" in
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3949esac
68f2de6d 3950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3951 (eval "$ac_link") 2>conftest.er1
3952 ac_status=$?
3953 grep -v '^ *+' conftest.er1 >conftest.err
3954 rm -f conftest.er1
3955 cat conftest.err >&5
68f2de6d 3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3957 (exit $ac_status); } && {
3958 test -z "$ac_c_werror_flag" ||
3959 test ! -s conftest.err
68f2de6d
AK
3960 } && test -s conftest$ac_exeext &&
3961 $as_test_x conftest$ac_exeext; then
d0191583
JM
3962 ac_cv_search_opendir=$ac_res
3963else
68f2de6d 3964 echo "$as_me: failed program was:" >&5
d0191583 3965sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3966
ad6254c5 3967
795ca3e5 3968fi
ad6254c5 3969
d0191583
JM
3970rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3971 conftest$ac_exeext
3972 if test "${ac_cv_search_opendir+set}" = set; then
3973 break
7a197a62 3974fi
d0191583
JM
3975done
3976if test "${ac_cv_search_opendir+set}" = set; then
3977 :
7a197a62 3978else
d0191583 3979 ac_cv_search_opendir=no
7a197a62 3980fi
d0191583
JM
3981rm conftest.$ac_ext
3982LIBS=$ac_func_search_save_LIBS
7a197a62 3983fi
68f2de6d
AK
3984{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3985echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
d0191583
JM
3986ac_res=$ac_cv_search_opendir
3987if test "$ac_res" != no; then
3988 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 3989
d0191583 3990fi
7a197a62 3991
7a197a62 3992else
68f2de6d
AK
3993 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3994echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
d0191583 3995if test "${ac_cv_search_opendir+set}" = set; then
68f2de6d 3996 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62 3997else
d0191583
JM
3998 ac_func_search_save_LIBS=$LIBS
3999cat >conftest.$ac_ext <<_ACEOF
4000/* confdefs.h. */
4001_ACEOF
4002cat confdefs.h >>conftest.$ac_ext
4003cat >>conftest.$ac_ext <<_ACEOF
4004/* end confdefs.h. */
7a197a62 4005
d0191583
JM
4006/* Override any GCC internal prototype to avoid an error.
4007 Use char because int might match the return type of a GCC
4008 builtin and then its argument prototype would still apply. */
4009#ifdef __cplusplus
4010extern "C"
4011#endif
4012char opendir ();
4013int
4014main ()
4015{
4016return opendir ();
4017 ;
4018 return 0;
4019}
4020_ACEOF
4021for ac_lib in '' x; do
4022 if test -z "$ac_lib"; then
4023 ac_res="none required"
4024 else
4025 ac_res=-l$ac_lib
4026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4027 fi
4028 rm -f conftest.$ac_objext conftest$ac_exeext
4029if { (ac_try="$ac_link"
4030case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033esac
68f2de6d 4034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
4035 (eval "$ac_link") 2>conftest.er1
4036 ac_status=$?
4037 grep -v '^ *+' conftest.er1 >conftest.err
4038 rm -f conftest.er1
4039 cat conftest.err >&5
68f2de6d 4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4041 (exit $ac_status); } && {
4042 test -z "$ac_c_werror_flag" ||
4043 test ! -s conftest.err
68f2de6d
AK
4044 } && test -s conftest$ac_exeext &&
4045 $as_test_x conftest$ac_exeext; then
d0191583
JM
4046 ac_cv_search_opendir=$ac_res
4047else
68f2de6d 4048 echo "$as_me: failed program was:" >&5
d0191583 4049sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4050
4051
4052fi
4053
d0191583
JM
4054rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4055 conftest$ac_exeext
4056 if test "${ac_cv_search_opendir+set}" = set; then
4057 break
7a197a62 4058fi
d0191583
JM
4059done
4060if test "${ac_cv_search_opendir+set}" = set; then
4061 :
7a197a62 4062else
d0191583 4063 ac_cv_search_opendir=no
7a197a62 4064fi
d0191583
JM
4065rm conftest.$ac_ext
4066LIBS=$ac_func_search_save_LIBS
4067fi
68f2de6d
AK
4068{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4069echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
d0191583
JM
4070ac_res=$ac_cv_search_opendir
4071if test "$ac_res" != no; then
4072 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4073
7a197a62 4074fi
7a197a62 4075
d0191583 4076fi
7a197a62 4077
68f2de6d
AK
4078{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4079echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7a197a62 4080if test "${ac_cv_header_stdc+set}" = set; then
68f2de6d 4081 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62
AK
4082else
4083 cat >conftest.$ac_ext <<_ACEOF
4084/* confdefs.h. */
4085_ACEOF
4086cat confdefs.h >>conftest.$ac_ext
4087cat >>conftest.$ac_ext <<_ACEOF
4088/* end confdefs.h. */
4089#include <stdlib.h>
4090#include <stdarg.h>
4091#include <string.h>
4092#include <float.h>
4093
4094int
4095main ()
4096{
4097
4098 ;
4099 return 0;
4100}
4101_ACEOF
4102rm -f conftest.$ac_objext
4103if { (ac_try="$ac_compile"
4104case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4107esac
68f2de6d 4108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62
AK
4109 (eval "$ac_compile") 2>conftest.er1
4110 ac_status=$?
4111 grep -v '^ *+' conftest.er1 >conftest.err
4112 rm -f conftest.er1
4113 cat conftest.err >&5
68f2de6d 4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4115 (exit $ac_status); } && {
4116 test -z "$ac_c_werror_flag" ||
4117 test ! -s conftest.err
4118 } && test -s conftest.$ac_objext; then
7a197a62
AK
4119 ac_cv_header_stdc=yes
4120else
68f2de6d 4121 echo "$as_me: failed program was:" >&5
7a197a62
AK
4122sed 's/^/| /' conftest.$ac_ext >&5
4123
4124 ac_cv_header_stdc=no
4125fi
4126
4127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128
4129if test $ac_cv_header_stdc = yes; then
4130 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4131 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4132/* confdefs.h. */
4133_ACEOF
4134cat confdefs.h >>conftest.$ac_ext
4135cat >>conftest.$ac_ext <<_ACEOF
4136/* end confdefs.h. */
4137#include <string.h>
8106cdd5 4138
ad6254c5
AK
4139_ACEOF
4140if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4141 $EGREP "memchr" >/dev/null 2>&1; then
4142 :
4143else
4144 ac_cv_header_stdc=no
80992638 4145fi
ad6254c5 4146rm -f conftest*
795ca3e5
AK
4147
4148fi
4149
ad6254c5
AK
4150if test $ac_cv_header_stdc = yes; then
4151 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4152 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4153/* confdefs.h. */
4154_ACEOF
4155cat confdefs.h >>conftest.$ac_ext
4156cat >>conftest.$ac_ext <<_ACEOF
4157/* end confdefs.h. */
80992638 4158#include <stdlib.h>
ad6254c5
AK
4159
4160_ACEOF
80992638 4161if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4162 $EGREP "free" >/dev/null 2>&1; then
4163 :
795ca3e5 4164else
ad6254c5 4165 ac_cv_header_stdc=no
795ca3e5 4166fi
80992638 4167rm -f conftest*
8106cdd5 4168
795ca3e5
AK
4169fi
4170
ad6254c5
AK
4171if test $ac_cv_header_stdc = yes; then
4172 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4173 if test "$cross_compiling" = yes; then
4174 :
795ca3e5 4175else
ad6254c5 4176 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4177/* confdefs.h. */
4178_ACEOF
4179cat confdefs.h >>conftest.$ac_ext
4180cat >>conftest.$ac_ext <<_ACEOF
4181/* end confdefs.h. */
4182#include <ctype.h>
7a197a62 4183#include <stdlib.h>
ad6254c5
AK
4184#if ((' ' & 0x0FF) == 0x020)
4185# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4186# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4187#else
4188# define ISLOWER(c) \
8a2fc586
AK
4189 (('a' <= (c) && (c) <= 'i') \
4190 || ('j' <= (c) && (c) <= 'r') \
4191 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4192# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4193#endif
ad6254c5
AK
4194
4195#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4196int
4197main ()
4198{
4199 int i;
4200 for (i = 0; i < 256; i++)
4201 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4202 || toupper (i) != TOUPPER (i))
7a197a62
AK
4203 return 2;
4204 return 0;
ad6254c5
AK
4205}
4206_ACEOF
4207rm -f conftest$ac_exeext
7a197a62
AK
4208if { (ac_try="$ac_link"
4209case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4212esac
68f2de6d 4213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4214 (eval "$ac_link") 2>&5
ad6254c5 4215 ac_status=$?
68f2de6d 4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4218 { (case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221esac
68f2de6d 4222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4223 (eval "$ac_try") 2>&5
ad6254c5 4224 ac_status=$?
68f2de6d 4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4226 (exit $ac_status); }; }; then
4227 :
795ca3e5 4228else
68f2de6d
AK
4229 echo "$as_me: program exited with status $ac_status" >&5
4230echo "$as_me: failed program was:" >&5
ad6254c5 4231sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4232
ad6254c5
AK
4233( exit $ac_status )
4234ac_cv_header_stdc=no
80992638 4235fi
7a197a62 4236rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4237fi
7a197a62
AK
4238
4239
ad6254c5
AK
4240fi
4241fi
68f2de6d
AK
4242{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4243echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4244if test $ac_cv_header_stdc = yes; then
4245
4246cat >>confdefs.h <<\_ACEOF
4247#define STDC_HEADERS 1
4248_ACEOF
795ca3e5
AK
4249
4250fi
4251
68f2de6d
AK
4252{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4253echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
ad6254c5 4254if test "${ac_cv_header_sys_wait_h+set}" = set; then
68f2de6d 4255 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 4256else
ad6254c5 4257 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4258/* confdefs.h. */
4259_ACEOF
4260cat confdefs.h >>conftest.$ac_ext
4261cat >>conftest.$ac_ext <<_ACEOF
4262/* end confdefs.h. */
80992638 4263#include <sys/types.h>
ad6254c5
AK
4264#include <sys/wait.h>
4265#ifndef WEXITSTATUS
7a197a62 4266# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4267#endif
4268#ifndef WIFEXITED
4269# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4270#endif
4271
4272int
4273main ()
4274{
4275 int s;
4276 wait (&s);
4277 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4278 ;
4279 return 0;
4280}
4281_ACEOF
4282rm -f conftest.$ac_objext
7a197a62
AK
4283if { (ac_try="$ac_compile"
4284case "(($ac_try" in
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4287esac
68f2de6d 4288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4289 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4290 ac_status=$?
8a2fc586
AK
4291 grep -v '^ *+' conftest.er1 >conftest.err
4292 rm -f conftest.er1
4293 cat conftest.err >&5
68f2de6d 4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4295 (exit $ac_status); } && {
4296 test -z "$ac_c_werror_flag" ||
4297 test ! -s conftest.err
4298 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4299 ac_cv_header_sys_wait_h=yes
4300else
68f2de6d 4301 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4302sed 's/^/| /' conftest.$ac_ext >&5
4303
7a197a62 4304 ac_cv_header_sys_wait_h=no
8106cdd5 4305fi
7a197a62
AK
4306
4307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4308fi
68f2de6d
AK
4309{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4310echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4311if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4312
ad6254c5
AK
4313cat >>confdefs.h <<\_ACEOF
4314#define HAVE_SYS_WAIT_H 1
4315_ACEOF
795ca3e5
AK
4316
4317fi
4318
68f2de6d
AK
4319{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4320echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
ad6254c5 4321if test "${ac_cv_header_time+set}" = set; then
68f2de6d 4322 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 4323else
ad6254c5 4324 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4325/* confdefs.h. */
4326_ACEOF
4327cat confdefs.h >>conftest.$ac_ext
4328cat >>conftest.$ac_ext <<_ACEOF
4329/* end confdefs.h. */
795ca3e5
AK
4330#include <sys/types.h>
4331#include <sys/time.h>
4332#include <time.h>
ad6254c5
AK
4333
4334int
4335main ()
4336{
4337if ((struct tm *) 0)
4338return 0;
4339 ;
4340 return 0;
4341}
4342_ACEOF
4343rm -f conftest.$ac_objext
7a197a62
AK
4344if { (ac_try="$ac_compile"
4345case "(($ac_try" in
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4348esac
68f2de6d 4349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4350 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4351 ac_status=$?
8a2fc586
AK
4352 grep -v '^ *+' conftest.er1 >conftest.err
4353 rm -f conftest.er1
4354 cat conftest.err >&5
68f2de6d 4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4356 (exit $ac_status); } && {
4357 test -z "$ac_c_werror_flag" ||
4358 test ! -s conftest.err
4359 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4360 ac_cv_header_time=yes
4361else
68f2de6d 4362 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4363sed 's/^/| /' conftest.$ac_ext >&5
4364
7a197a62 4365 ac_cv_header_time=no
795ca3e5 4366fi
7a197a62
AK
4367
4368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4369fi
68f2de6d
AK
4370{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4371echo "${ECHO_T}$ac_cv_header_time" >&6; }
80992638 4372if test $ac_cv_header_time = yes; then
ad6254c5
AK
4373
4374cat >>confdefs.h <<\_ACEOF
795ca3e5 4375#define TIME_WITH_SYS_TIME 1
ad6254c5 4376_ACEOF
b896caa1 4377
8106cdd5 4378fi
b896caa1 4379
b896caa1 4380
d0191583
JM
4381# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4392 inttypes.h stdint.h unistd.h
4393do
68f2de6d
AK
4394as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4395{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
d0191583 4397if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4398 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
4399else
4400 cat >conftest.$ac_ext <<_ACEOF
4401/* confdefs.h. */
4402_ACEOF
4403cat confdefs.h >>conftest.$ac_ext
4404cat >>conftest.$ac_ext <<_ACEOF
4405/* end confdefs.h. */
4406$ac_includes_default
4407
4408#include <$ac_header>
4409_ACEOF
4410rm -f conftest.$ac_objext
4411if { (ac_try="$ac_compile"
4412case "(($ac_try" in
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4415esac
68f2de6d 4416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
4417 (eval "$ac_compile") 2>conftest.er1
4418 ac_status=$?
4419 grep -v '^ *+' conftest.er1 >conftest.err
4420 rm -f conftest.er1
4421 cat conftest.err >&5
68f2de6d 4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4423 (exit $ac_status); } && {
4424 test -z "$ac_c_werror_flag" ||
4425 test ! -s conftest.err
4426 } && test -s conftest.$ac_objext; then
4427 eval "$as_ac_Header=yes"
4428else
68f2de6d 4429 echo "$as_me: failed program was:" >&5
d0191583
JM
4430sed 's/^/| /' conftest.$ac_ext >&5
4431
4432 eval "$as_ac_Header=no"
4433fi
4434
4435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436fi
68f2de6d
AK
4437ac_res=`eval echo '${'$as_ac_Header'}'`
4438 { echo "$as_me:$LINENO: result: $ac_res" >&5
4439echo "${ECHO_T}$ac_res" >&6; }
4440if test `eval echo '${'$as_ac_Header'}'` = yes; then
d0191583 4441 cat >>confdefs.h <<_ACEOF
68f2de6d 4442#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d0191583
JM
4443_ACEOF
4444
4445fi
4446
4447done
4448
b896caa1 4449
b896caa1
AK
4450
4451
795ca3e5 4452
8106cdd5 4453
80992638 4454
795ca3e5 4455
a38df97f 4456
80992638 4457
d0191583
JM
4458
4459
4460
4461
4462
4463for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4464 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
ad6254c5 4465do
68f2de6d 4466as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0191583 4467if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
4468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4469echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4470if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4471 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583 4472fi
68f2de6d
AK
4473ac_res=`eval echo '${'$as_ac_Header'}'`
4474 { echo "$as_me:$LINENO: result: $ac_res" >&5
4475echo "${ECHO_T}$ac_res" >&6; }
ad6254c5 4476else
d0191583 4477 # Is the header compilable?
68f2de6d
AK
4478{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4479echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d0191583 4480cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4481/* confdefs.h. */
4482_ACEOF
4483cat confdefs.h >>conftest.$ac_ext
4484cat >>conftest.$ac_ext <<_ACEOF
4485/* end confdefs.h. */
4486$ac_includes_default
ad6254c5
AK
4487#include <$ac_header>
4488_ACEOF
4489rm -f conftest.$ac_objext
7a197a62
AK
4490if { (ac_try="$ac_compile"
4491case "(($ac_try" in
4492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493 *) ac_try_echo=$ac_try;;
4494esac
68f2de6d 4495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4496 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4497 ac_status=$?
8a2fc586
AK
4498 grep -v '^ *+' conftest.er1 >conftest.err
4499 rm -f conftest.er1
4500 cat conftest.err >&5
68f2de6d 4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4502 (exit $ac_status); } && {
4503 test -z "$ac_c_werror_flag" ||
4504 test ! -s conftest.err
4505 } && test -s conftest.$ac_objext; then
d0191583 4506 ac_header_compiler=yes
ad6254c5 4507else
68f2de6d 4508 echo "$as_me: failed program was:" >&5
ad6254c5 4509sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4510
d0191583 4511 ac_header_compiler=no
ad6254c5 4512fi
7a197a62
AK
4513
4514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
4515{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4516echo "${ECHO_T}$ac_header_compiler" >&6; }
d0191583
JM
4517
4518# Is the header present?
68f2de6d
AK
4519{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4520echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d0191583
JM
4521cat >conftest.$ac_ext <<_ACEOF
4522/* confdefs.h. */
4523_ACEOF
4524cat confdefs.h >>conftest.$ac_ext
4525cat >>conftest.$ac_ext <<_ACEOF
4526/* end confdefs.h. */
4527#include <$ac_header>
4528_ACEOF
4529if { (ac_try="$ac_cpp conftest.$ac_ext"
4530case "(($ac_try" in
4531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532 *) ac_try_echo=$ac_try;;
4533esac
68f2de6d 4534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
4535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4536 ac_status=$?
4537 grep -v '^ *+' conftest.er1 >conftest.err
4538 rm -f conftest.er1
4539 cat conftest.err >&5
68f2de6d 4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4541 (exit $ac_status); } >/dev/null && {
4542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4543 test ! -s conftest.err
4544 }; then
4545 ac_header_preproc=yes
4546else
68f2de6d 4547 echo "$as_me: failed program was:" >&5
d0191583
JM
4548sed 's/^/| /' conftest.$ac_ext >&5
4549
4550 ac_header_preproc=no
4551fi
4552
4553rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
4554{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4555echo "${ECHO_T}$ac_header_preproc" >&6; }
d0191583
JM
4556
4557# So? What about this header?
4558case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4559 yes:no: )
68f2de6d
AK
4560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4561echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4563echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d0191583
JM
4564 ac_header_preproc=yes
4565 ;;
4566 no:yes:* )
68f2de6d
AK
4567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4568echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4570echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4571 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4572echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4573 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4574echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4576echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4577 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4578echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4579
4580 ;;
4581esac
68f2de6d
AK
4582{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
d0191583 4584if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4585 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
4586else
4587 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4588fi
68f2de6d
AK
4589ac_res=`eval echo '${'$as_ac_Header'}'`
4590 { echo "$as_me:$LINENO: result: $ac_res" >&5
4591echo "${ECHO_T}$ac_res" >&6; }
d0191583
JM
4592
4593fi
68f2de6d 4594if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4595 cat >>confdefs.h <<_ACEOF
68f2de6d 4596#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4597_ACEOF
a38df97f 4598
d0191583 4599else
68f2de6d
AK
4600 { { echo "$as_me:$LINENO: error: bailing out" >&5
4601echo "$as_me: error: bailing out" >&2;}
d0191583 4602 { (exit 1); exit 1; }; }
80992638
AK
4603fi
4604
ad6254c5
AK
4605done
4606
7d1552c9 4607
d0191583
JM
4608case "$host_os" in
4609 linux*)
7d1552c9 4610
80992638 4611
5a52dca9 4612
d0191583 4613for ac_header in asm/byteorder.h linux/fs.h malloc.h
ad6254c5 4614do
68f2de6d 4615as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4616if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
4617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4619if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4620 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4621fi
68f2de6d
AK
4622ac_res=`eval echo '${'$as_ac_Header'}'`
4623 { echo "$as_me:$LINENO: result: $ac_res" >&5
4624echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4625else
4626 # Is the header compilable?
68f2de6d
AK
4627{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4628echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4629cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4630/* confdefs.h. */
4631_ACEOF
4632cat confdefs.h >>conftest.$ac_ext
4633cat >>conftest.$ac_ext <<_ACEOF
4634/* end confdefs.h. */
4635$ac_includes_default
4636#include <$ac_header>
4637_ACEOF
4638rm -f conftest.$ac_objext
7a197a62
AK
4639if { (ac_try="$ac_compile"
4640case "(($ac_try" in
4641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642 *) ac_try_echo=$ac_try;;
4643esac
68f2de6d 4644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4645 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4646 ac_status=$?
8a2fc586
AK
4647 grep -v '^ *+' conftest.er1 >conftest.err
4648 rm -f conftest.er1
4649 cat conftest.err >&5
68f2de6d 4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4651 (exit $ac_status); } && {
4652 test -z "$ac_c_werror_flag" ||
4653 test ! -s conftest.err
4654 } && test -s conftest.$ac_objext; then
fc54be10
AK
4655 ac_header_compiler=yes
4656else
68f2de6d 4657 echo "$as_me: failed program was:" >&5
fc54be10
AK
4658sed 's/^/| /' conftest.$ac_ext >&5
4659
4660 ac_header_compiler=no
4661fi
4662
4663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
4664{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4665echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4666
4667# Is the header present?
68f2de6d
AK
4668{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4669echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4670cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4671/* confdefs.h. */
4672_ACEOF
4673cat confdefs.h >>conftest.$ac_ext
4674cat >>conftest.$ac_ext <<_ACEOF
4675/* end confdefs.h. */
4676#include <$ac_header>
4677_ACEOF
7a197a62
AK
4678if { (ac_try="$ac_cpp conftest.$ac_ext"
4679case "(($ac_try" in
4680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681 *) ac_try_echo=$ac_try;;
4682esac
68f2de6d 4683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4685 ac_status=$?
4686 grep -v '^ *+' conftest.er1 >conftest.err
4687 rm -f conftest.er1
4688 cat conftest.err >&5
68f2de6d 4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4690 (exit $ac_status); } >/dev/null && {
4691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4692 test ! -s conftest.err
4693 }; then
ad6254c5
AK
4694 ac_header_preproc=yes
4695else
68f2de6d 4696 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4697sed 's/^/| /' conftest.$ac_ext >&5
4698
4699 ac_header_preproc=no
4700fi
7a197a62 4701
ad6254c5 4702rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
4703{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4704echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
4705
4706# So? What about this header?
8a2fc586
AK
4707case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4708 yes:no: )
68f2de6d
AK
4709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4710echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4712echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4713 ac_header_preproc=yes
ad6254c5 4714 ;;
8a2fc586 4715 no:yes:* )
68f2de6d
AK
4716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4717echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4719echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4721echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4723echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4725echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4727echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4728
ad6254c5
AK
4729 ;;
4730esac
68f2de6d
AK
4731{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4732echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4733if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4734 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4735else
8a2fc586 4736 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4737fi
68f2de6d
AK
4738ac_res=`eval echo '${'$as_ac_Header'}'`
4739 { echo "$as_me:$LINENO: result: $ac_res" >&5
4740echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4741
4742fi
68f2de6d 4743if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4744 cat >>confdefs.h <<_ACEOF
68f2de6d 4745#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4746_ACEOF
b896caa1 4747
d8ac0fbc 4748else
68f2de6d
AK
4749 { { echo "$as_me:$LINENO: error: bailing out" >&5
4750echo "$as_me: error: bailing out" >&2;}
ad6254c5 4751 { (exit 1); exit 1; }; }
80992638
AK
4752fi
4753
ad6254c5 4754done
d0191583
JM
4755 ;;
4756 darwin*)
d8ac0fbc 4757
d8ac0fbc 4758
d0191583 4759for ac_header in machine/endian.h sys/disk.h
ad6254c5 4760do
68f2de6d 4761as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
4763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4764echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4765if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4766 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4767fi
68f2de6d
AK
4768ac_res=`eval echo '${'$as_ac_Header'}'`
4769 { echo "$as_me:$LINENO: result: $ac_res" >&5
4770echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4771else
4772 # Is the header compilable?
68f2de6d
AK
4773{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4774echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4775cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4776/* confdefs.h. */
4777_ACEOF
4778cat confdefs.h >>conftest.$ac_ext
4779cat >>conftest.$ac_ext <<_ACEOF
4780/* end confdefs.h. */
4781$ac_includes_default
4782#include <$ac_header>
4783_ACEOF
4784rm -f conftest.$ac_objext
7a197a62
AK
4785if { (ac_try="$ac_compile"
4786case "(($ac_try" in
4787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4788 *) ac_try_echo=$ac_try;;
4789esac
68f2de6d 4790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4791 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4792 ac_status=$?
8a2fc586
AK
4793 grep -v '^ *+' conftest.er1 >conftest.err
4794 rm -f conftest.er1
4795 cat conftest.err >&5
68f2de6d 4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4797 (exit $ac_status); } && {
4798 test -z "$ac_c_werror_flag" ||
4799 test ! -s conftest.err
4800 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4801 ac_header_compiler=yes
4802else
68f2de6d 4803 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4804sed 's/^/| /' conftest.$ac_ext >&5
4805
7a197a62 4806 ac_header_compiler=no
ad6254c5 4807fi
7a197a62
AK
4808
4809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
4810{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4811echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4812
4813# Is the header present?
68f2de6d
AK
4814{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4815echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4816cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4817/* confdefs.h. */
4818_ACEOF
4819cat confdefs.h >>conftest.$ac_ext
4820cat >>conftest.$ac_ext <<_ACEOF
4821/* end confdefs.h. */
4822#include <$ac_header>
4823_ACEOF
7a197a62
AK
4824if { (ac_try="$ac_cpp conftest.$ac_ext"
4825case "(($ac_try" in
4826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4827 *) ac_try_echo=$ac_try;;
4828esac
68f2de6d 4829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4831 ac_status=$?
4832 grep -v '^ *+' conftest.er1 >conftest.err
4833 rm -f conftest.er1
4834 cat conftest.err >&5
68f2de6d 4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4836 (exit $ac_status); } >/dev/null && {
4837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4838 test ! -s conftest.err
4839 }; then
ad6254c5
AK
4840 ac_header_preproc=yes
4841else
68f2de6d 4842 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4843sed 's/^/| /' conftest.$ac_ext >&5
4844
4845 ac_header_preproc=no
4846fi
7a197a62 4847
ad6254c5 4848rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
4849{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4850echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
4851
4852# So? What about this header?
8a2fc586
AK
4853case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4854 yes:no: )
68f2de6d
AK
4855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4856echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4858echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4859 ac_header_preproc=yes
ad6254c5 4860 ;;
8a2fc586 4861 no:yes:* )
68f2de6d
AK
4862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4863echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4865echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4866 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4867echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4868 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4869echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4871echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4872 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4873echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4874
ad6254c5
AK
4875 ;;
4876esac
68f2de6d
AK
4877{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4880 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4881else
8a2fc586 4882 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 4883fi
68f2de6d
AK
4884ac_res=`eval echo '${'$as_ac_Header'}'`
4885 { echo "$as_me:$LINENO: result: $ac_res" >&5
4886echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4887
4888fi
68f2de6d 4889if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4890 cat >>confdefs.h <<_ACEOF
68f2de6d 4891#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4892_ACEOF
4922197a 4893
4922197a 4894else
68f2de6d
AK
4895 { { echo "$as_me:$LINENO: error: bailing out" >&5
4896echo "$as_me: error: bailing out" >&2;}
ad6254c5 4897 { (exit 1); exit 1; }; }
80992638
AK
4898fi
4899
ad6254c5 4900done
d0191583
JM
4901 ;;
4902esac
4922197a 4903
4922197a 4904
4922197a 4905
ad6254c5
AK
4906
4907
d0191583
JM
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4921 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4922 sys/types.h unistd.h
ad6254c5 4923do
68f2de6d 4924as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4925if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
4926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4927echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4928if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4929 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4930fi
68f2de6d
AK
4931ac_res=`eval echo '${'$as_ac_Header'}'`
4932 { echo "$as_me:$LINENO: result: $ac_res" >&5
4933echo "${ECHO_T}$ac_res" >&6; }
795ca3e5 4934else
ad6254c5 4935 # Is the header compilable?
68f2de6d
AK
4936{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4937echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4938cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4939/* confdefs.h. */
4940_ACEOF
4941cat confdefs.h >>conftest.$ac_ext
4942cat >>conftest.$ac_ext <<_ACEOF
4943/* end confdefs.h. */
4944$ac_includes_default
4945#include <$ac_header>
4946_ACEOF
4947rm -f conftest.$ac_objext
7a197a62
AK
4948if { (ac_try="$ac_compile"
4949case "(($ac_try" in
4950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951 *) ac_try_echo=$ac_try;;
4952esac
68f2de6d 4953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4954 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4955 ac_status=$?
8a2fc586
AK
4956 grep -v '^ *+' conftest.er1 >conftest.err
4957 rm -f conftest.er1
4958 cat conftest.err >&5
68f2de6d 4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4960 (exit $ac_status); } && {
4961 test -z "$ac_c_werror_flag" ||
4962 test ! -s conftest.err
4963 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4964 ac_header_compiler=yes
4965else
68f2de6d 4966 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4967sed 's/^/| /' conftest.$ac_ext >&5
4968
7a197a62 4969 ac_header_compiler=no
ad6254c5 4970fi
7a197a62
AK
4971
4972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
4973{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4974echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4975
4976# Is the header present?
68f2de6d
AK
4977{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4978echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4979cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4980/* confdefs.h. */
4981_ACEOF
4982cat confdefs.h >>conftest.$ac_ext
4983cat >>conftest.$ac_ext <<_ACEOF
4984/* end confdefs.h. */
4985#include <$ac_header>
4986_ACEOF
7a197a62
AK
4987if { (ac_try="$ac_cpp conftest.$ac_ext"
4988case "(($ac_try" in
4989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4990 *) ac_try_echo=$ac_try;;
4991esac
68f2de6d 4992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4994 ac_status=$?
4995 grep -v '^ *+' conftest.er1 >conftest.err
4996 rm -f conftest.er1
4997 cat conftest.err >&5
68f2de6d 4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4999 (exit $ac_status); } >/dev/null && {
5000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5001 test ! -s conftest.err
5002 }; then
ad6254c5
AK
5003 ac_header_preproc=yes
5004else
68f2de6d 5005 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5006sed 's/^/| /' conftest.$ac_ext >&5
5007
5008 ac_header_preproc=no
5009fi
7a197a62 5010
ad6254c5 5011rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
5012{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5013echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
5014
5015# So? What about this header?
8a2fc586
AK
5016case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5017 yes:no: )
68f2de6d
AK
5018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5019echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5021echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5022 ac_header_preproc=yes
ad6254c5 5023 ;;
8a2fc586 5024 no:yes:* )
68f2de6d
AK
5025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5026echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5028echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5030echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5032echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5034echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5036echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5037
ad6254c5
AK
5038 ;;
5039esac
68f2de6d
AK
5040{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5041echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 5042if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 5043 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5044else
8a2fc586 5045 eval "$as_ac_Header=\$ac_header_preproc"
80992638 5046fi
68f2de6d
AK
5047ac_res=`eval echo '${'$as_ac_Header'}'`
5048 { echo "$as_me:$LINENO: result: $ac_res" >&5
5049echo "${ECHO_T}$ac_res" >&6; }
80992638 5050
ad6254c5 5051fi
68f2de6d 5052if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 5053 cat >>confdefs.h <<_ACEOF
68f2de6d 5054#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5055_ACEOF
795ca3e5 5056
795ca3e5 5057else
68f2de6d
AK
5058 { { echo "$as_me:$LINENO: error: bailing out" >&5
5059echo "$as_me: error: bailing out" >&2;}
ad6254c5 5060 { (exit 1); exit 1; }; }
80992638
AK
5061fi
5062
ad6254c5 5063done
ad6254c5 5064
795ca3e5 5065
d0191583
JM
5066
5067for ac_header in termios.h sys/statvfs.h
ad6254c5 5068do
68f2de6d 5069as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5070if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
5071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 5073if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 5074 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5075fi
68f2de6d
AK
5076ac_res=`eval echo '${'$as_ac_Header'}'`
5077 { echo "$as_me:$LINENO: result: $ac_res" >&5
5078echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
5079else
5080 # Is the header compilable?
68f2de6d
AK
5081{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5082echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 5083cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5084/* confdefs.h. */
5085_ACEOF
5086cat confdefs.h >>conftest.$ac_ext
5087cat >>conftest.$ac_ext <<_ACEOF
5088/* end confdefs.h. */
5089$ac_includes_default
5090#include <$ac_header>
5091_ACEOF
5092rm -f conftest.$ac_objext
7a197a62
AK
5093if { (ac_try="$ac_compile"
5094case "(($ac_try" in
5095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5096 *) ac_try_echo=$ac_try;;
5097esac
68f2de6d 5098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5099 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5100 ac_status=$?
8a2fc586
AK
5101 grep -v '^ *+' conftest.er1 >conftest.err
5102 rm -f conftest.er1
5103 cat conftest.err >&5
68f2de6d 5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5105 (exit $ac_status); } && {
5106 test -z "$ac_c_werror_flag" ||
5107 test ! -s conftest.err
5108 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5109 ac_header_compiler=yes
5110else
68f2de6d 5111 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5112sed 's/^/| /' conftest.$ac_ext >&5
5113
7a197a62 5114 ac_header_compiler=no
ad6254c5 5115fi
7a197a62
AK
5116
5117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
5118{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5119echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
5120
5121# Is the header present?
68f2de6d
AK
5122{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5123echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 5124cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5125/* confdefs.h. */
5126_ACEOF
5127cat confdefs.h >>conftest.$ac_ext
5128cat >>conftest.$ac_ext <<_ACEOF
5129/* end confdefs.h. */
5130#include <$ac_header>
5131_ACEOF
7a197a62
AK
5132if { (ac_try="$ac_cpp conftest.$ac_ext"
5133case "(($ac_try" in
5134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135 *) ac_try_echo=$ac_try;;
5136esac
68f2de6d 5137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5139 ac_status=$?
5140 grep -v '^ *+' conftest.er1 >conftest.err
5141 rm -f conftest.er1
5142 cat conftest.err >&5
68f2de6d 5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5144 (exit $ac_status); } >/dev/null && {
5145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5146 test ! -s conftest.err
5147 }; then
ad6254c5
AK
5148 ac_header_preproc=yes
5149else
68f2de6d 5150 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5151sed 's/^/| /' conftest.$ac_ext >&5
5152
5153 ac_header_preproc=no
5154fi
7a197a62 5155
ad6254c5 5156rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
5157{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5158echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
5159
5160# So? What about this header?
8a2fc586
AK
5161case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5162 yes:no: )
68f2de6d
AK
5163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5164echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5166echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5167 ac_header_preproc=yes
ad6254c5 5168 ;;
8a2fc586 5169 no:yes:* )
68f2de6d
AK
5170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5171echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5173echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5175echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5177echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5179echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5181echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5182
ad6254c5
AK
5183 ;;
5184esac
68f2de6d
AK
5185{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 5187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 5188 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5189else
8a2fc586 5190 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5191fi
68f2de6d
AK
5192ac_res=`eval echo '${'$as_ac_Header'}'`
5193 { echo "$as_me:$LINENO: result: $ac_res" >&5
5194echo "${ECHO_T}$ac_res" >&6; }
b896caa1 5195
ad6254c5 5196fi
68f2de6d 5197if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 5198 cat >>confdefs.h <<_ACEOF
68f2de6d 5199#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5200_ACEOF
5201
80992638
AK
5202fi
5203
ad6254c5 5204done
d0191583 5205
d3c8211f 5206
80992638 5207################################################################################
68f2de6d
AK
5208{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5209echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
ad6254c5 5210if test "${ac_cv_c_const+set}" = set; then
68f2de6d 5211 echo $ECHO_N "(cached) $ECHO_C" >&6
d3c8211f 5212else
ad6254c5 5213 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5214/* confdefs.h. */
5215_ACEOF
5216cat confdefs.h >>conftest.$ac_ext
5217cat >>conftest.$ac_ext <<_ACEOF
5218/* end confdefs.h. */
5219
5220int
5221main ()
5222{
5223/* FIXME: Include the comments suggested by Paul. */
5224#ifndef __cplusplus
5225 /* Ultrix mips cc rejects this. */
5226 typedef int charset[2];
25fbec5b 5227 const charset cs;
ad6254c5 5228 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
5229 char const *const *pcpcc;
5230 char **ppc;
ad6254c5
AK
5231 /* NEC SVR4.0.2 mips cc rejects this. */
5232 struct point {int x, y;};
5233 static struct point const zero = {0,0};
5234 /* AIX XL C 1.02.0.0 rejects this.
5235 It does not let you subtract one const X* pointer from another in
5236 an arm of an if-expression whose if-part is not a constant
5237 expression */
5238 const char *g = "string";
25fbec5b 5239 pcpcc = &g + (g ? g-g : 0);
ad6254c5 5240 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
5241 ++pcpcc;
5242 ppc = (char**) pcpcc;
5243 pcpcc = (char const *const *) ppc;
ad6254c5
AK
5244 { /* SCO 3.2v4 cc rejects this. */
5245 char *t;
5246 char const *s = 0 ? (char *) 0 : (char const *) 0;
5247
5248 *t++ = 0;
7a197a62 5249 if (s) return 0;
ad6254c5
AK
5250 }
5251 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5252 int x[] = {25, 17};
5253 const int *foo = &x[0];
5254 ++foo;
5255 }
5256 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5257 typedef const int *iptr;
5258 iptr p = 0;
5259 ++p;
5260 }
5261 { /* AIX XL C 1.02.0.0 rejects this saying
5262 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5263 struct s { int j; const int *ap[3]; };
5264 struct s *b; b->j = 5;
5265 }
5266 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5267 const int foo = 10;
7a197a62 5268 if (!foo) return 0;
ad6254c5 5269 }
25fbec5b 5270 return !cs[0] && !zero.x;
ad6254c5
AK
5271#endif
5272
5273 ;
5274 return 0;
5275}
5276_ACEOF
5277rm -f conftest.$ac_objext
7a197a62
AK
5278if { (ac_try="$ac_compile"
5279case "(($ac_try" in
5280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5281 *) ac_try_echo=$ac_try;;
5282esac
68f2de6d 5283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5284 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5285 ac_status=$?
8a2fc586
AK
5286 grep -v '^ *+' conftest.er1 >conftest.err
5287 rm -f conftest.er1
5288 cat conftest.err >&5
68f2de6d 5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5290 (exit $ac_status); } && {
5291 test -z "$ac_c_werror_flag" ||
5292 test ! -s conftest.err
5293 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5294 ac_cv_c_const=yes
5295else
68f2de6d 5296 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5297sed 's/^/| /' conftest.$ac_ext >&5
5298
7a197a62 5299 ac_cv_c_const=no
ad6254c5 5300fi
7a197a62
AK
5301
5302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5303fi
68f2de6d
AK
5304{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5305echo "${ECHO_T}$ac_cv_c_const" >&6; }
ad6254c5 5306if test $ac_cv_c_const = no; then
80992638 5307
ad6254c5 5308cat >>confdefs.h <<\_ACEOF
68f2de6d 5309#define const
ad6254c5 5310_ACEOF
80992638 5311
d3c8211f 5312fi
d3c8211f 5313
68f2de6d
AK
5314{ echo "$as_me:$LINENO: checking for inline" >&5
5315echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
ad6254c5 5316if test "${ac_cv_c_inline+set}" = set; then
68f2de6d 5317 echo $ECHO_N "(cached) $ECHO_C" >&6
8ef2b021 5318else
ad6254c5
AK
5319 ac_cv_c_inline=no
5320for ac_kw in inline __inline__ __inline; do
5321 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5322/* confdefs.h. */
5323_ACEOF
5324cat confdefs.h >>conftest.$ac_ext
5325cat >>conftest.$ac_ext <<_ACEOF
5326/* end confdefs.h. */
5327#ifndef __cplusplus
5328typedef int foo_t;
5329static $ac_kw foo_t static_foo () {return 0; }
5330$ac_kw foo_t foo () {return 0; }
5331#endif
80992638 5332
ad6254c5
AK
5333_ACEOF
5334rm -f conftest.$ac_objext
7a197a62
AK
5335if { (ac_try="$ac_compile"
5336case "(($ac_try" in
5337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338 *) ac_try_echo=$ac_try;;
5339esac
68f2de6d 5340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5341 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5342 ac_status=$?
8a2fc586
AK
5343 grep -v '^ *+' conftest.er1 >conftest.err
5344 rm -f conftest.er1
5345 cat conftest.err >&5
68f2de6d 5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5347 (exit $ac_status); } && {
5348 test -z "$ac_c_werror_flag" ||
5349 test ! -s conftest.err
5350 } && test -s conftest.$ac_objext; then
7a197a62 5351 ac_cv_c_inline=$ac_kw
ad6254c5 5352else
68f2de6d 5353 echo "$as_me: failed program was:" >&5
ad6254c5 5354sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5355
7a197a62 5356
8ce0cbda 5357fi
7a197a62
AK
5358
5359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5360 test "$ac_cv_c_inline" != no && break
ad6254c5 5361done
8ce0cbda 5362
8ce0cbda 5363fi
68f2de6d
AK
5364{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5365echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8a2fc586
AK
5366
5367
ad6254c5
AK
5368case $ac_cv_c_inline in
5369 inline | yes) ;;
8a2fc586
AK
5370 *)
5371 case $ac_cv_c_inline in
5372 no) ac_val=;;
5373 *) ac_val=$ac_cv_c_inline;;
5374 esac
5375 cat >>confdefs.h <<_ACEOF
5376#ifndef __cplusplus
5377#define inline $ac_val
5378#endif
c1c065a3 5379_ACEOF
d0191583
JM
5380 ;;
5381esac
5382
68f2de6d
AK
5383{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5384echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
d0191583 5385if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
68f2de6d 5386 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
5387else
5388 cat >conftest.$ac_ext <<_ACEOF
5389/* confdefs.h. */
5390_ACEOF
5391cat confdefs.h >>conftest.$ac_ext
5392cat >>conftest.$ac_ext <<_ACEOF
5393/* end confdefs.h. */
5394$ac_includes_default
5395int
5396main ()
5397{
5398static struct stat ac_aggr;
5399if (ac_aggr.st_rdev)
5400return 0;
5401 ;
5402 return 0;
5403}
5404_ACEOF
5405rm -f conftest.$ac_objext
5406if { (ac_try="$ac_compile"
5407case "(($ac_try" in
5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5410esac
68f2de6d 5411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
5412 (eval "$ac_compile") 2>conftest.er1
5413 ac_status=$?
5414 grep -v '^ *+' conftest.er1 >conftest.err
5415 rm -f conftest.er1
5416 cat conftest.err >&5
68f2de6d 5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5418 (exit $ac_status); } && {
5419 test -z "$ac_c_werror_flag" ||
5420 test ! -s conftest.err
5421 } && test -s conftest.$ac_objext; then
5422 ac_cv_member_struct_stat_st_rdev=yes
5423else
68f2de6d 5424 echo "$as_me: failed program was:" >&5
d0191583
JM
5425sed 's/^/| /' conftest.$ac_ext >&5
5426
5427 cat >conftest.$ac_ext <<_ACEOF
5428/* confdefs.h. */
5429_ACEOF
5430cat confdefs.h >>conftest.$ac_ext
5431cat >>conftest.$ac_ext <<_ACEOF
5432/* end confdefs.h. */
5433$ac_includes_default
5434int
5435main ()
5436{
5437static struct stat ac_aggr;
5438if (sizeof ac_aggr.st_rdev)
5439return 0;
5440 ;
5441 return 0;
5442}
5443_ACEOF
5444rm -f conftest.$ac_objext
5445if { (ac_try="$ac_compile"
5446case "(($ac_try" in
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5449esac
68f2de6d 5450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
5451 (eval "$ac_compile") 2>conftest.er1
5452 ac_status=$?
5453 grep -v '^ *+' conftest.er1 >conftest.err
5454 rm -f conftest.er1
5455 cat conftest.err >&5
68f2de6d 5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5457 (exit $ac_status); } && {
5458 test -z "$ac_c_werror_flag" ||
5459 test ! -s conftest.err
5460 } && test -s conftest.$ac_objext; then
5461 ac_cv_member_struct_stat_st_rdev=yes
5462else
68f2de6d 5463 echo "$as_me: failed program was:" >&5
d0191583
JM
5464sed 's/^/| /' conftest.$ac_ext >&5
5465
5466 ac_cv_member_struct_stat_st_rdev=no
5467fi
5468
5469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470fi
5471
5472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5473fi
68f2de6d
AK
5474{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5475echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
d0191583
JM
5476if test $ac_cv_member_struct_stat_st_rdev = yes; then
5477
5478cat >>confdefs.h <<_ACEOF
5479#define HAVE_STRUCT_STAT_ST_RDEV 1
5480_ACEOF
5481
5482
5483fi
8ce0cbda 5484
68f2de6d
AK
5485{ echo "$as_me:$LINENO: checking for off_t" >&5
5486echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
ad6254c5 5487if test "${ac_cv_type_off_t+set}" = set; then
68f2de6d 5488 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5489else
b145d876
ZK
5490 cat >conftest.$ac_ext <<_ACEOF
5491/* confdefs.h. */
5492_ACEOF
5493cat confdefs.h >>conftest.$ac_ext
5494cat >>conftest.$ac_ext <<_ACEOF
5495/* end confdefs.h. */
5496$ac_includes_default
68f2de6d 5497typedef off_t ac__type_new_;
b145d876
ZK
5498int
5499main ()
5500{
68f2de6d
AK
5501if ((ac__type_new_ *) 0)
5502 return 0;
5503if (sizeof (ac__type_new_))
5504 return 0;
ad6254c5
AK
5505 ;
5506 return 0;
5507}
5508_ACEOF
5509rm -f conftest.$ac_objext
7a197a62
AK
5510if { (ac_try="$ac_compile"
5511case "(($ac_try" in
5512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5513 *) ac_try_echo=$ac_try;;
5514esac
68f2de6d 5515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5516 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5517 ac_status=$?
8a2fc586
AK
5518 grep -v '^ *+' conftest.er1 >conftest.err
5519 rm -f conftest.er1
5520 cat conftest.err >&5
68f2de6d 5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5522 (exit $ac_status); } && {
5523 test -z "$ac_c_werror_flag" ||
5524 test ! -s conftest.err
5525 } && test -s conftest.$ac_objext; then
68f2de6d 5526 ac_cv_type_off_t=yes
b145d876 5527else
68f2de6d 5528 echo "$as_me: failed program was:" >&5
b145d876
ZK
5529sed 's/^/| /' conftest.$ac_ext >&5
5530
68f2de6d 5531 ac_cv_type_off_t=no
ad6254c5 5532fi
b145d876
ZK
5533
5534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535fi
68f2de6d
AK
5536{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5537echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
ad6254c5
AK
5538if test $ac_cv_type_off_t = yes; then
5539 :
5540else
80992638 5541
ad6254c5 5542cat >>confdefs.h <<_ACEOF
7a197a62 5543#define off_t long int
ad6254c5 5544_ACEOF
199e490e 5545
b896caa1
AK
5546fi
5547
68f2de6d
AK
5548{ echo "$as_me:$LINENO: checking for pid_t" >&5
5549echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
ad6254c5 5550if test "${ac_cv_type_pid_t+set}" = set; then
68f2de6d 5551 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5552else
b145d876
ZK
5553 cat >conftest.$ac_ext <<_ACEOF
5554/* confdefs.h. */
5555_ACEOF
5556cat confdefs.h >>conftest.$ac_ext
5557cat >>conftest.$ac_ext <<_ACEOF
5558/* end confdefs.h. */
5559$ac_includes_default
68f2de6d 5560typedef pid_t ac__type_new_;
b145d876
ZK
5561int
5562main ()
5563{
68f2de6d
AK
5564if ((ac__type_new_ *) 0)
5565 return 0;
5566if (sizeof (ac__type_new_))
5567 return 0;
ad6254c5
AK
5568 ;
5569 return 0;
5570}
5571_ACEOF
5572rm -f conftest.$ac_objext
7a197a62
AK
5573if { (ac_try="$ac_compile"
5574case "(($ac_try" in
5575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576 *) ac_try_echo=$ac_try;;
5577esac
68f2de6d 5578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5579 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5580 ac_status=$?
8a2fc586
AK
5581 grep -v '^ *+' conftest.er1 >conftest.err
5582 rm -f conftest.er1
5583 cat conftest.err >&5
68f2de6d 5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5585 (exit $ac_status); } && {
5586 test -z "$ac_c_werror_flag" ||
5587 test ! -s conftest.err
5588 } && test -s conftest.$ac_objext; then
68f2de6d 5589 ac_cv_type_pid_t=yes
ad6254c5 5590else
68f2de6d 5591 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5592sed 's/^/| /' conftest.$ac_ext >&5
5593
68f2de6d 5594 ac_cv_type_pid_t=no
ad6254c5 5595fi
7a197a62
AK
5596
5597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5598fi
68f2de6d
AK
5599{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5600echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
ad6254c5
AK
5601if test $ac_cv_type_pid_t = yes; then
5602 :
5603else
80992638 5604
ad6254c5
AK
5605cat >>confdefs.h <<_ACEOF
5606#define pid_t int
5607_ACEOF
2dc95e1c 5608
2dc95e1c
AK
5609fi
5610
68f2de6d
AK
5611{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5612echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
d0191583 5613if test "${ac_cv_type_signal+set}" = set; then
68f2de6d 5614 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
5615else
5616 cat >conftest.$ac_ext <<_ACEOF
5617/* confdefs.h. */
5618_ACEOF
5619cat confdefs.h >>conftest.$ac_ext
5620cat >>conftest.$ac_ext <<_ACEOF
5621/* end confdefs.h. */
5622#include <sys/types.h>
5623#include <signal.h>
5624
5625int
5626main ()
5627{
5628return *(signal (0, 0)) (0) == 1;
5629 ;
5630 return 0;
5631}
5632_ACEOF
5633rm -f conftest.$ac_objext
5634if { (ac_try="$ac_compile"
5635case "(($ac_try" in
5636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5637 *) ac_try_echo=$ac_try;;
5638esac
68f2de6d 5639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
5640 (eval "$ac_compile") 2>conftest.er1
5641 ac_status=$?
5642 grep -v '^ *+' conftest.er1 >conftest.err
5643 rm -f conftest.er1
5644 cat conftest.err >&5
68f2de6d 5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5646 (exit $ac_status); } && {
5647 test -z "$ac_c_werror_flag" ||
5648 test ! -s conftest.err
5649 } && test -s conftest.$ac_objext; then
5650 ac_cv_type_signal=int
5651else
68f2de6d 5652 echo "$as_me: failed program was:" >&5
d0191583
JM
5653sed 's/^/| /' conftest.$ac_ext >&5
5654
5655 ac_cv_type_signal=void
5656fi
5657
5658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659fi
68f2de6d
AK
5660{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5661echo "${ECHO_T}$ac_cv_type_signal" >&6; }
d0191583
JM
5662
5663cat >>confdefs.h <<_ACEOF
5664#define RETSIGTYPE $ac_cv_type_signal
5665_ACEOF
5666
5667
68f2de6d
AK
5668{ echo "$as_me:$LINENO: checking for size_t" >&5
5669echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
ad6254c5 5670if test "${ac_cv_type_size_t+set}" = set; then
68f2de6d 5671 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 5672else
b145d876
ZK
5673 cat >conftest.$ac_ext <<_ACEOF
5674/* confdefs.h. */
5675_ACEOF
5676cat confdefs.h >>conftest.$ac_ext
5677cat >>conftest.$ac_ext <<_ACEOF
5678/* end confdefs.h. */
5679$ac_includes_default
68f2de6d 5680typedef size_t ac__type_new_;
b145d876
ZK
5681int
5682main ()
5683{
68f2de6d
AK
5684if ((ac__type_new_ *) 0)
5685 return 0;
5686if (sizeof (ac__type_new_))
5687 return 0;
ad6254c5
AK
5688 ;
5689 return 0;
5690}
5691_ACEOF
5692rm -f conftest.$ac_objext
7a197a62
AK
5693if { (ac_try="$ac_compile"
5694case "(($ac_try" in
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5697esac
68f2de6d 5698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5699 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5700 ac_status=$?
8a2fc586
AK
5701 grep -v '^ *+' conftest.er1 >conftest.err
5702 rm -f conftest.er1
5703 cat conftest.err >&5
68f2de6d 5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5705 (exit $ac_status); } && {
5706 test -z "$ac_c_werror_flag" ||
5707 test ! -s conftest.err
5708 } && test -s conftest.$ac_objext; then
68f2de6d 5709 ac_cv_type_size_t=yes
b145d876 5710else
68f2de6d 5711 echo "$as_me: failed program was:" >&5
b145d876
ZK
5712sed 's/^/| /' conftest.$ac_ext >&5
5713
68f2de6d 5714 ac_cv_type_size_t=no
ad6254c5 5715fi
b145d876
ZK
5716
5717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5718fi
68f2de6d
AK
5719{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5720echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
ad6254c5
AK
5721if test $ac_cv_type_size_t = yes; then
5722 :
5723else
80992638 5724
ad6254c5 5725cat >>confdefs.h <<_ACEOF
7a197a62 5726#define size_t unsigned int
ad6254c5 5727_ACEOF
8106cdd5 5728
8106cdd5
AK
5729fi
5730
68f2de6d
AK
5731{ echo "$as_me:$LINENO: checking for mode_t" >&5
5732echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
ad6254c5 5733if test "${ac_cv_type_mode_t+set}" = set; then
68f2de6d 5734 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5735else
b145d876
ZK
5736 cat >conftest.$ac_ext <<_ACEOF
5737/* confdefs.h. */
5738_ACEOF
5739cat confdefs.h >>conftest.$ac_ext
5740cat >>conftest.$ac_ext <<_ACEOF
5741/* end confdefs.h. */
5742$ac_includes_default
68f2de6d 5743typedef mode_t ac__type_new_;
b145d876
ZK
5744int
5745main ()
5746{
68f2de6d
AK
5747if ((ac__type_new_ *) 0)
5748 return 0;
5749if (sizeof (ac__type_new_))
5750 return 0;
ad6254c5
AK
5751 ;
5752 return 0;
5753}
5754_ACEOF
5755rm -f conftest.$ac_objext
7a197a62
AK
5756if { (ac_try="$ac_compile"
5757case "(($ac_try" in
5758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759 *) ac_try_echo=$ac_try;;
5760esac
68f2de6d 5761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5762 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5763 ac_status=$?
8a2fc586
AK
5764 grep -v '^ *+' conftest.er1 >conftest.err
5765 rm -f conftest.er1
5766 cat conftest.err >&5
68f2de6d 5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5768 (exit $ac_status); } && {
5769 test -z "$ac_c_werror_flag" ||
5770 test ! -s conftest.err
5771 } && test -s conftest.$ac_objext; then
68f2de6d 5772 ac_cv_type_mode_t=yes
fddafd51 5773else
68f2de6d 5774 echo "$as_me: failed program was:" >&5
fddafd51
ZK
5775sed 's/^/| /' conftest.$ac_ext >&5
5776
68f2de6d 5777 ac_cv_type_mode_t=no
80992638 5778fi
7a197a62
AK
5779
5780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5781fi
68f2de6d
AK
5782{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5783echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
ad6254c5
AK
5784if test $ac_cv_type_mode_t = yes; then
5785 :
5786else
80992638 5787
ad6254c5
AK
5788cat >>confdefs.h <<_ACEOF
5789#define mode_t int
5790_ACEOF
5791
5792fi
5793
68f2de6d
AK
5794{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5795echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
ad6254c5 5796if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
68f2de6d 5797 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5798else
5799 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5800/* confdefs.h. */
5801_ACEOF
5802cat confdefs.h >>conftest.$ac_ext
5803cat >>conftest.$ac_ext <<_ACEOF
5804/* end confdefs.h. */
5805$ac_includes_default
5806int
5807main ()
5808{
5809static struct stat ac_aggr;
5810if (ac_aggr.st_rdev)
5811return 0;
5812 ;
5813 return 0;
5814}
5815_ACEOF
5816rm -f conftest.$ac_objext
7a197a62
AK
5817if { (ac_try="$ac_compile"
5818case "(($ac_try" in
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5821esac
68f2de6d 5822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5823 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5824 ac_status=$?
8a2fc586
AK
5825 grep -v '^ *+' conftest.er1 >conftest.err
5826 rm -f conftest.er1
5827 cat conftest.err >&5
68f2de6d 5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5829 (exit $ac_status); } && {
5830 test -z "$ac_c_werror_flag" ||
5831 test ! -s conftest.err
5832 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5833 ac_cv_member_struct_stat_st_rdev=yes
5834else
68f2de6d 5835 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5836sed 's/^/| /' conftest.$ac_ext >&5
5837
7a197a62 5838 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5839/* confdefs.h. */
5840_ACEOF
5841cat confdefs.h >>conftest.$ac_ext
5842cat >>conftest.$ac_ext <<_ACEOF
5843/* end confdefs.h. */
5844$ac_includes_default
5845int
5846main ()
5847{
5848static struct stat ac_aggr;
5849if (sizeof ac_aggr.st_rdev)
5850return 0;
5851 ;
5852 return 0;
5853}
5854_ACEOF
5855rm -f conftest.$ac_objext
7a197a62
AK
5856if { (ac_try="$ac_compile"
5857case "(($ac_try" in
5858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5859 *) ac_try_echo=$ac_try;;
5860esac
68f2de6d 5861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5862 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5863 ac_status=$?
8a2fc586
AK
5864 grep -v '^ *+' conftest.er1 >conftest.err
5865 rm -f conftest.er1
5866 cat conftest.err >&5
68f2de6d 5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5868 (exit $ac_status); } && {
5869 test -z "$ac_c_werror_flag" ||
5870 test ! -s conftest.err
5871 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5872 ac_cv_member_struct_stat_st_rdev=yes
5873else
68f2de6d 5874 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5875sed 's/^/| /' conftest.$ac_ext >&5
5876
7a197a62 5877 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 5878fi
7a197a62
AK
5879
5880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5881fi
7a197a62
AK
5882
5883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5884fi
68f2de6d
AK
5885{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5886echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
ad6254c5
AK
5887if test $ac_cv_member_struct_stat_st_rdev = yes; then
5888
5889cat >>confdefs.h <<_ACEOF
5890#define HAVE_STRUCT_STAT_ST_RDEV 1
5891_ACEOF
5892
5893
ad6254c5
AK
5894fi
5895
68f2de6d
AK
5896{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5897echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
ad6254c5 5898if test "${ac_cv_struct_tm+set}" = set; then
68f2de6d 5899 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5900else
5901 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5902/* confdefs.h. */
5903_ACEOF
5904cat confdefs.h >>conftest.$ac_ext
5905cat >>conftest.$ac_ext <<_ACEOF
5906/* end confdefs.h. */
5907#include <sys/types.h>
5908#include <time.h>
5909
5910int
5911main ()
5912{
25fbec5b
AK
5913struct tm tm;
5914 int *p = &tm.tm_sec;
68f2de6d 5915 return !p;
ad6254c5
AK
5916 ;
5917 return 0;
5918}
5919_ACEOF
5920rm -f conftest.$ac_objext
7a197a62
AK
5921if { (ac_try="$ac_compile"
5922case "(($ac_try" in
5923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924 *) ac_try_echo=$ac_try;;
5925esac
68f2de6d 5926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5927 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5928 ac_status=$?
8a2fc586
AK
5929 grep -v '^ *+' conftest.er1 >conftest.err
5930 rm -f conftest.er1
5931 cat conftest.err >&5
68f2de6d 5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5933 (exit $ac_status); } && {
5934 test -z "$ac_c_werror_flag" ||
5935 test ! -s conftest.err
5936 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5937 ac_cv_struct_tm=time.h
5938else
68f2de6d 5939 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5940sed 's/^/| /' conftest.$ac_ext >&5
5941
7a197a62 5942 ac_cv_struct_tm=sys/time.h
ad6254c5 5943fi
7a197a62
AK
5944
5945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5946fi
68f2de6d
AK
5947{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5948echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
ad6254c5
AK
5949if test $ac_cv_struct_tm = sys/time.h; then
5950
5951cat >>confdefs.h <<\_ACEOF
5952#define TM_IN_SYS_TIME 1
5953_ACEOF
5954
5955fi
809fae91 5956
795ca3e5 5957
80992638 5958################################################################################
ad6254c5
AK
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
d0191583
JM
5973
5974
5975
5976for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
5977 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
5978 uname
ad6254c5 5979do
68f2de6d
AK
5980as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5981{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5982echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 5983if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 5984 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 5985else
ad6254c5 5986 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5987/* confdefs.h. */
5988_ACEOF
5989cat confdefs.h >>conftest.$ac_ext
5990cat >>conftest.$ac_ext <<_ACEOF
5991/* end confdefs.h. */
8a2fc586
AK
5992/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5994#define $ac_func innocuous_$ac_func
5995
ad6254c5
AK
5996/* System header to define __stub macros and hopefully few prototypes,
5997 which can conflict with char $ac_func (); below.
5998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5999 <limits.h> exists even on freestanding compilers. */
8a2fc586 6000
ad6254c5
AK
6001#ifdef __STDC__
6002# include <limits.h>
6003#else
6004# include <assert.h>
6005#endif
8a2fc586
AK
6006
6007#undef $ac_func
6008
7a197a62
AK
6009/* Override any GCC internal prototype to avoid an error.
6010 Use char because int might match the return type of a GCC
6011 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6012#ifdef __cplusplus
6013extern "C"
ad6254c5 6014#endif
ad6254c5
AK
6015char $ac_func ();
6016/* The GNU C library defines this for functions which it implements
6017 to always fail with ENOSYS. Some functions are actually named
6018 something starting with __ and the normal name is an alias. */
7a197a62 6019#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6020choke me
ad6254c5
AK
6021#endif
6022
6023int
6024main ()
6025{
7a197a62 6026return $ac_func ();
ad6254c5
AK
6027 ;
6028 return 0;
6029}
6030_ACEOF
6031rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6032if { (ac_try="$ac_link"
6033case "(($ac_try" in
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6036esac
68f2de6d 6037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6038 (eval "$ac_link") 2>conftest.er1
ad6254c5 6039 ac_status=$?
8a2fc586
AK
6040 grep -v '^ *+' conftest.er1 >conftest.err
6041 rm -f conftest.er1
6042 cat conftest.err >&5
68f2de6d 6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6044 (exit $ac_status); } && {
6045 test -z "$ac_c_werror_flag" ||
6046 test ! -s conftest.err
68f2de6d
AK
6047 } && test -s conftest$ac_exeext &&
6048 $as_test_x conftest$ac_exeext; then
fc54be10
AK
6049 eval "$as_ac_var=yes"
6050else
68f2de6d 6051 echo "$as_me: failed program was:" >&5
fc54be10
AK
6052sed 's/^/| /' conftest.$ac_ext >&5
6053
6054 eval "$as_ac_var=no"
6055fi
6056
25fbec5b 6057rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
6058 conftest$ac_exeext conftest.$ac_ext
6059fi
68f2de6d
AK
6060ac_res=`eval echo '${'$as_ac_var'}'`
6061 { echo "$as_me:$LINENO: result: $ac_res" >&5
6062echo "${ECHO_T}$ac_res" >&6; }
6063if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 6064 cat >>confdefs.h <<_ACEOF
68f2de6d 6065#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6066_ACEOF
6067
6068else
68f2de6d
AK
6069 { { echo "$as_me:$LINENO: error: bailing out" >&5
6070echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
6071 { (exit 1); exit 1; }; }
6072fi
6073done
795ca3e5 6074
ad6254c5
AK
6075# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6076# for constant arguments. Useless!
68f2de6d
AK
6077{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
6078echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
ad6254c5 6079if test "${ac_cv_working_alloca_h+set}" = set; then
68f2de6d 6080 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6081else
6082 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6083/* confdefs.h. */
6084_ACEOF
6085cat confdefs.h >>conftest.$ac_ext
6086cat >>conftest.$ac_ext <<_ACEOF
6087/* end confdefs.h. */
6088#include <alloca.h>
6089int
6090main ()
6091{
6092char *p = (char *) alloca (2 * sizeof (int));
7a197a62 6093 if (p) return 0;
ad6254c5
AK
6094 ;
6095 return 0;
6096}
6097_ACEOF
6098rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6099if { (ac_try="$ac_link"
6100case "(($ac_try" in
6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6102 *) ac_try_echo=$ac_try;;
6103esac
68f2de6d 6104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6105 (eval "$ac_link") 2>conftest.er1
ad6254c5 6106 ac_status=$?
8a2fc586
AK
6107 grep -v '^ *+' conftest.er1 >conftest.err
6108 rm -f conftest.er1
6109 cat conftest.err >&5
68f2de6d 6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6111 (exit $ac_status); } && {
6112 test -z "$ac_c_werror_flag" ||
6113 test ! -s conftest.err
68f2de6d
AK
6114 } && test -s conftest$ac_exeext &&
6115 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
6116 ac_cv_working_alloca_h=yes
6117else
68f2de6d 6118 echo "$as_me: failed program was:" >&5
ad6254c5 6119sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 6120
7a197a62 6121 ac_cv_working_alloca_h=no
ad6254c5 6122fi
7a197a62 6123
25fbec5b 6124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6125 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6126fi
68f2de6d
AK
6127{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6128echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
6129if test $ac_cv_working_alloca_h = yes; then
6130
6131cat >>confdefs.h <<\_ACEOF
6132#define HAVE_ALLOCA_H 1
6133_ACEOF
6134
6135fi
6136
68f2de6d
AK
6137{ echo "$as_me:$LINENO: checking for alloca" >&5
6138echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
ad6254c5 6139if test "${ac_cv_func_alloca_works+set}" = set; then
68f2de6d 6140 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6141else
6142 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6143/* confdefs.h. */
6144_ACEOF
6145cat confdefs.h >>conftest.$ac_ext
6146cat >>conftest.$ac_ext <<_ACEOF
6147/* end confdefs.h. */
6148#ifdef __GNUC__
6149# define alloca __builtin_alloca
6150#else
6151# ifdef _MSC_VER
6152# include <malloc.h>
6153# define alloca _alloca
6154# else
25fbec5b 6155# ifdef HAVE_ALLOCA_H
ad6254c5
AK
6156# include <alloca.h>
6157# else
6158# ifdef _AIX
6159 #pragma alloca
6160# else
6161# ifndef alloca /* predefined by HP cc +Olibcalls */
6162char *alloca ();
6163# endif
6164# endif
6165# endif
6166# endif
6167#endif
6168
6169int
6170main ()
6171{
6172char *p = (char *) alloca (1);
7a197a62 6173 if (p) return 0;
ad6254c5
AK
6174 ;
6175 return 0;
6176}
6177_ACEOF
6178rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6179if { (ac_try="$ac_link"
6180case "(($ac_try" in
6181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6182 *) ac_try_echo=$ac_try;;
6183esac
68f2de6d 6184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6185 (eval "$ac_link") 2>conftest.er1
ad6254c5 6186 ac_status=$?
8a2fc586
AK
6187 grep -v '^ *+' conftest.er1 >conftest.err
6188 rm -f conftest.er1
6189 cat conftest.err >&5
68f2de6d 6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6191 (exit $ac_status); } && {
6192 test -z "$ac_c_werror_flag" ||
6193 test ! -s conftest.err
68f2de6d
AK
6194 } && test -s conftest$ac_exeext &&
6195 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
6196 ac_cv_func_alloca_works=yes
6197else
68f2de6d 6198 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6199sed 's/^/| /' conftest.$ac_ext >&5
6200
7a197a62 6201 ac_cv_func_alloca_works=no
ad6254c5 6202fi
7a197a62 6203
25fbec5b 6204rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6205 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6206fi
68f2de6d
AK
6207{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6208echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6209
6210if test $ac_cv_func_alloca_works = yes; then
6211
6212cat >>confdefs.h <<\_ACEOF
6213#define HAVE_ALLOCA 1
6214_ACEOF
6215
6216else
6217 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6218# that cause trouble. Some versions do not even contain alloca or
6219# contain a buggy version. If you still want to use their alloca,
6220# use ar to extract alloca.o from them instead of compiling alloca.c.
6221
7a197a62 6222ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6223
6224cat >>confdefs.h <<\_ACEOF
6225#define C_ALLOCA 1
6226_ACEOF
6227
6228
68f2de6d
AK
6229{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6230echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
ad6254c5 6231if test "${ac_cv_os_cray+set}" = set; then
68f2de6d 6232 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6233else
6234 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6235/* confdefs.h. */
6236_ACEOF
6237cat confdefs.h >>conftest.$ac_ext
6238cat >>conftest.$ac_ext <<_ACEOF
6239/* end confdefs.h. */
7a197a62 6240#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6241webecray
6242#else
6243wenotbecray
6244#endif
6245
6246_ACEOF
795ca3e5 6247if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6248 $EGREP "webecray" >/dev/null 2>&1; then
6249 ac_cv_os_cray=yes
6250else
6251 ac_cv_os_cray=no
795ca3e5
AK
6252fi
6253rm -f conftest*
6254
795ca3e5 6255fi
68f2de6d
AK
6256{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6257echo "${ECHO_T}$ac_cv_os_cray" >&6; }
ad6254c5
AK
6258if test $ac_cv_os_cray = yes; then
6259 for ac_func in _getb67 GETB67 getb67; do
68f2de6d
AK
6260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6261{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6262echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 6263if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 6264 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6265else
6266 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6267/* confdefs.h. */
6268_ACEOF
6269cat confdefs.h >>conftest.$ac_ext
6270cat >>conftest.$ac_ext <<_ACEOF
6271/* end confdefs.h. */
8a2fc586
AK
6272/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6274#define $ac_func innocuous_$ac_func
6275
ad6254c5
AK
6276/* System header to define __stub macros and hopefully few prototypes,
6277 which can conflict with char $ac_func (); below.
6278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6279 <limits.h> exists even on freestanding compilers. */
8a2fc586 6280
ad6254c5
AK
6281#ifdef __STDC__
6282# include <limits.h>
6283#else
6284# include <assert.h>
6285#endif
8a2fc586
AK
6286
6287#undef $ac_func
6288
7a197a62
AK
6289/* Override any GCC internal prototype to avoid an error.
6290 Use char because int might match the return type of a GCC
6291 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6292#ifdef __cplusplus
6293extern "C"
ad6254c5 6294#endif
ad6254c5
AK
6295char $ac_func ();
6296/* The GNU C library defines this for functions which it implements
6297 to always fail with ENOSYS. Some functions are actually named
6298 something starting with __ and the normal name is an alias. */
7a197a62 6299#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6300choke me
ad6254c5
AK
6301#endif
6302
6303int
6304main ()
6305{
7a197a62 6306return $ac_func ();
ad6254c5
AK
6307 ;
6308 return 0;
6309}
6310_ACEOF
6311rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6312if { (ac_try="$ac_link"
6313case "(($ac_try" in
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6316esac
68f2de6d 6317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6318 (eval "$ac_link") 2>conftest.er1
ad6254c5 6319 ac_status=$?
8a2fc586
AK
6320 grep -v '^ *+' conftest.er1 >conftest.err
6321 rm -f conftest.er1
6322 cat conftest.err >&5
68f2de6d 6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6324 (exit $ac_status); } && {
6325 test -z "$ac_c_werror_flag" ||
6326 test ! -s conftest.err
68f2de6d
AK
6327 } && test -s conftest$ac_exeext &&
6328 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
6329 eval "$as_ac_var=yes"
6330else
68f2de6d 6331 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6332sed 's/^/| /' conftest.$ac_ext >&5
6333
7a197a62 6334 eval "$as_ac_var=no"
ad6254c5 6335fi
7a197a62 6336
25fbec5b 6337rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6338 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6339fi
68f2de6d
AK
6340ac_res=`eval echo '${'$as_ac_var'}'`
6341 { echo "$as_me:$LINENO: result: $ac_res" >&5
6342echo "${ECHO_T}$ac_res" >&6; }
6343if test `eval echo '${'$as_ac_var'}'` = yes; then
80992638 6344
ad6254c5
AK
6345cat >>confdefs.h <<_ACEOF
6346#define CRAY_STACKSEG_END $ac_func
6347_ACEOF
6348
6349 break
6350fi
6351
6352 done
6353fi
6354
68f2de6d
AK
6355{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6356echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
ad6254c5 6357if test "${ac_cv_c_stack_direction+set}" = set; then
68f2de6d 6358 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6359else
6360 if test "$cross_compiling" = yes; then
6361 ac_cv_c_stack_direction=0
6362else
6363 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6364/* confdefs.h. */
6365_ACEOF
6366cat confdefs.h >>conftest.$ac_ext
6367cat >>conftest.$ac_ext <<_ACEOF
6368/* end confdefs.h. */
7a197a62 6369$ac_includes_default
ad6254c5
AK
6370int
6371find_stack_direction ()
6372{
6373 static char *addr = 0;
6374 auto char dummy;
6375 if (addr == 0)
6376 {
6377 addr = &dummy;
6378 return find_stack_direction ();
6379 }
6380 else
6381 return (&dummy > addr) ? 1 : -1;
6382}
6383
6384int
6385main ()
6386{
7a197a62 6387 return find_stack_direction () < 0;
ad6254c5
AK
6388}
6389_ACEOF
6390rm -f conftest$ac_exeext
7a197a62
AK
6391if { (ac_try="$ac_link"
6392case "(($ac_try" in
6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394 *) ac_try_echo=$ac_try;;
6395esac
68f2de6d 6396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6397 (eval "$ac_link") 2>&5
ad6254c5 6398 ac_status=$?
68f2de6d 6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6401 { (case "(($ac_try" in
6402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6403 *) ac_try_echo=$ac_try;;
6404esac
68f2de6d 6405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6406 (eval "$ac_try") 2>&5
ad6254c5 6407 ac_status=$?
68f2de6d 6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6409 (exit $ac_status); }; }; then
6410 ac_cv_c_stack_direction=1
6411else
68f2de6d
AK
6412 echo "$as_me: program exited with status $ac_status" >&5
6413echo "$as_me: failed program was:" >&5
ad6254c5
AK
6414sed 's/^/| /' conftest.$ac_ext >&5
6415
6416( exit $ac_status )
6417ac_cv_c_stack_direction=-1
6418fi
7a197a62 6419rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6420fi
7a197a62
AK
6421
6422
ad6254c5 6423fi
68f2de6d
AK
6424{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6425echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
6426
6427cat >>confdefs.h <<_ACEOF
6428#define STACK_DIRECTION $ac_cv_c_stack_direction
6429_ACEOF
6430
6431
6432fi
6433
68f2de6d
AK
6434{ echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6435echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
ad6254c5 6436if test "${ac_cv_func_closedir_void+set}" = set; then
68f2de6d 6437 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6438else
6439 if test "$cross_compiling" = yes; then
6440 ac_cv_func_closedir_void=yes
6441else
6442 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6443/* confdefs.h. */
6444_ACEOF
6445cat confdefs.h >>conftest.$ac_ext
6446cat >>conftest.$ac_ext <<_ACEOF
6447/* end confdefs.h. */
6448$ac_includes_default
6449#include <$ac_header_dirent>
6450#ifndef __cplusplus
6451int closedir ();
6452#endif
6453
6454int
6455main ()
6456{
7a197a62 6457return closedir (opendir (".")) != 0;
ad6254c5
AK
6458 ;
6459 return 0;
6460}
6461_ACEOF
6462rm -f conftest$ac_exeext
7a197a62
AK
6463if { (ac_try="$ac_link"
6464case "(($ac_try" in
6465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6466 *) ac_try_echo=$ac_try;;
6467esac
68f2de6d 6468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6469 (eval "$ac_link") 2>&5
ad6254c5 6470 ac_status=$?
68f2de6d 6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6473 { (case "(($ac_try" in
6474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6475 *) ac_try_echo=$ac_try;;
6476esac
68f2de6d 6477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6478 (eval "$ac_try") 2>&5
ad6254c5 6479 ac_status=$?
68f2de6d 6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6481 (exit $ac_status); }; }; then
6482 ac_cv_func_closedir_void=no
6483else
68f2de6d
AK
6484 echo "$as_me: program exited with status $ac_status" >&5
6485echo "$as_me: failed program was:" >&5
ad6254c5
AK
6486sed 's/^/| /' conftest.$ac_ext >&5
6487
6488( exit $ac_status )
6489ac_cv_func_closedir_void=yes
6490fi
7a197a62 6491rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6492fi
7a197a62
AK
6493
6494
ad6254c5 6495fi
68f2de6d
AK
6496{ echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6497echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
6498if test $ac_cv_func_closedir_void = yes; then
6499
6500cat >>confdefs.h <<\_ACEOF
6501#define CLOSEDIR_VOID 1
6502_ACEOF
6503
6504fi
6505
6506
7a197a62 6507for ac_header in vfork.h
ad6254c5 6508do
68f2de6d 6509as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 6510if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
6511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 6513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 6514 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 6515fi
68f2de6d
AK
6516ac_res=`eval echo '${'$as_ac_Header'}'`
6517 { echo "$as_me:$LINENO: result: $ac_res" >&5
6518echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
6519else
6520 # Is the header compilable?
68f2de6d
AK
6521{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6522echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 6523cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6524/* confdefs.h. */
6525_ACEOF
6526cat confdefs.h >>conftest.$ac_ext
6527cat >>conftest.$ac_ext <<_ACEOF
6528/* end confdefs.h. */
6529$ac_includes_default
6530#include <$ac_header>
6531_ACEOF
6532rm -f conftest.$ac_objext
7a197a62
AK
6533if { (ac_try="$ac_compile"
6534case "(($ac_try" in
6535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536 *) ac_try_echo=$ac_try;;
6537esac
68f2de6d 6538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6539 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6540 ac_status=$?
8a2fc586
AK
6541 grep -v '^ *+' conftest.er1 >conftest.err
6542 rm -f conftest.er1
6543 cat conftest.err >&5
68f2de6d 6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6545 (exit $ac_status); } && {
6546 test -z "$ac_c_werror_flag" ||
6547 test ! -s conftest.err
6548 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6549 ac_header_compiler=yes
6550else
68f2de6d 6551 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6552sed 's/^/| /' conftest.$ac_ext >&5
6553
7a197a62 6554 ac_header_compiler=no
ad6254c5 6555fi
7a197a62
AK
6556
6557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
6558{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6559echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
6560
6561# Is the header present?
68f2de6d
AK
6562{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6563echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 6564cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6565/* confdefs.h. */
6566_ACEOF
6567cat confdefs.h >>conftest.$ac_ext
6568cat >>conftest.$ac_ext <<_ACEOF
6569/* end confdefs.h. */
6570#include <$ac_header>
6571_ACEOF
7a197a62
AK
6572if { (ac_try="$ac_cpp conftest.$ac_ext"
6573case "(($ac_try" in
6574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6575 *) ac_try_echo=$ac_try;;
6576esac
68f2de6d 6577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
6579 ac_status=$?
6580 grep -v '^ *+' conftest.er1 >conftest.err
6581 rm -f conftest.er1
6582 cat conftest.err >&5
68f2de6d 6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6584 (exit $ac_status); } >/dev/null && {
6585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6586 test ! -s conftest.err
6587 }; then
ad6254c5
AK
6588 ac_header_preproc=yes
6589else
68f2de6d 6590 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6591sed 's/^/| /' conftest.$ac_ext >&5
6592
6593 ac_header_preproc=no
6594fi
7a197a62 6595
ad6254c5 6596rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
6597{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6598echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
6599
6600# So? What about this header?
8a2fc586
AK
6601case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6602 yes:no: )
68f2de6d
AK
6603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6604echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6606echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 6607 ac_header_preproc=yes
ad6254c5 6608 ;;
8a2fc586 6609 no:yes:* )
68f2de6d
AK
6610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6611echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6613echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6614 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6615echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6616 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6617echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6619echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6620 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6621echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 6622
ad6254c5
AK
6623 ;;
6624esac
68f2de6d
AK
6625{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6626echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 6627if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 6628 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 6629else
8a2fc586 6630 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 6631fi
68f2de6d
AK
6632ac_res=`eval echo '${'$as_ac_Header'}'`
6633 { echo "$as_me:$LINENO: result: $ac_res" >&5
6634echo "${ECHO_T}$ac_res" >&6; }
ad6254c5 6635
795ca3e5 6636fi
68f2de6d 6637if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 6638 cat >>confdefs.h <<_ACEOF
68f2de6d 6639#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
6640_ACEOF
6641
6642fi
6643
6644done
795ca3e5 6645
ad6254c5
AK
6646
6647
6648for ac_func in fork vfork
6649do
68f2de6d
AK
6650as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6651{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6652echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 6653if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 6654 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 6655else
ad6254c5 6656 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6657/* confdefs.h. */
6658_ACEOF
6659cat confdefs.h >>conftest.$ac_ext
6660cat >>conftest.$ac_ext <<_ACEOF
6661/* end confdefs.h. */
8a2fc586
AK
6662/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6664#define $ac_func innocuous_$ac_func
6665
ad6254c5
AK
6666/* System header to define __stub macros and hopefully few prototypes,
6667 which can conflict with char $ac_func (); below.
6668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6669 <limits.h> exists even on freestanding compilers. */
8a2fc586 6670
ad6254c5
AK
6671#ifdef __STDC__
6672# include <limits.h>
6673#else
6674# include <assert.h>
795ca3e5 6675#endif
8a2fc586
AK
6676
6677#undef $ac_func
6678
7a197a62
AK
6679/* Override any GCC internal prototype to avoid an error.
6680 Use char because int might match the return type of a GCC
6681 builtin and then its argument prototype would still apply. */
795ca3e5 6682#ifdef __cplusplus
ad6254c5 6683extern "C"
ad6254c5 6684#endif
ad6254c5
AK
6685char $ac_func ();
6686/* The GNU C library defines this for functions which it implements
6687 to always fail with ENOSYS. Some functions are actually named
6688 something starting with __ and the normal name is an alias. */
7a197a62 6689#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6690choke me
795ca3e5
AK
6691#endif
6692
ad6254c5
AK
6693int
6694main ()
6695{
7a197a62 6696return $ac_func ();
ad6254c5
AK
6697 ;
6698 return 0;
6699}
6700_ACEOF
6701rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6702if { (ac_try="$ac_link"
6703case "(($ac_try" in
6704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6705 *) ac_try_echo=$ac_try;;
6706esac
68f2de6d 6707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6708 (eval "$ac_link") 2>conftest.er1
ad6254c5 6709 ac_status=$?
8a2fc586
AK
6710 grep -v '^ *+' conftest.er1 >conftest.err
6711 rm -f conftest.er1
6712 cat conftest.err >&5
68f2de6d 6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6714 (exit $ac_status); } && {
6715 test -z "$ac_c_werror_flag" ||
6716 test ! -s conftest.err
68f2de6d
AK
6717 } && test -s conftest$ac_exeext &&
6718 $as_test_x conftest$ac_exeext; then
ad6254c5 6719 eval "$as_ac_var=yes"
795ca3e5 6720else
68f2de6d 6721 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6722sed 's/^/| /' conftest.$ac_ext >&5
6723
7a197a62 6724 eval "$as_ac_var=no"
795ca3e5 6725fi
7a197a62 6726
25fbec5b 6727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6728 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6729fi
68f2de6d
AK
6730ac_res=`eval echo '${'$as_ac_var'}'`
6731 { echo "$as_me:$LINENO: result: $ac_res" >&5
6732echo "${ECHO_T}$ac_res" >&6; }
6733if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 6734 cat >>confdefs.h <<_ACEOF
68f2de6d 6735#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6736_ACEOF
6737
6738fi
6739done
6740
6741if test "x$ac_cv_func_fork" = xyes; then
68f2de6d
AK
6742 { echo "$as_me:$LINENO: checking for working fork" >&5
6743echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
ad6254c5 6744if test "${ac_cv_func_fork_works+set}" = set; then
68f2de6d 6745 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6746else
6747 if test "$cross_compiling" = yes; then
6748 ac_cv_func_fork_works=cross
6749else
6750 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
6751/* confdefs.h. */
6752_ACEOF
6753cat confdefs.h >>conftest.$ac_ext
6754cat >>conftest.$ac_ext <<_ACEOF
6755/* end confdefs.h. */
6756$ac_includes_default
6757int
6758main ()
6759{
6760
6761 /* By Ruediger Kuhlmann. */
6762 return fork () < 0;
6763
6764 ;
6765 return 0;
6766}
ad6254c5
AK
6767_ACEOF
6768rm -f conftest$ac_exeext
7a197a62
AK
6769if { (ac_try="$ac_link"
6770case "(($ac_try" in
6771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6772 *) ac_try_echo=$ac_try;;
6773esac
68f2de6d 6774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6775 (eval "$ac_link") 2>&5
ad6254c5 6776 ac_status=$?
68f2de6d 6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6779 { (case "(($ac_try" in
6780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6781 *) ac_try_echo=$ac_try;;
6782esac
68f2de6d 6783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6784 (eval "$ac_try") 2>&5
ad6254c5 6785 ac_status=$?
68f2de6d 6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6787 (exit $ac_status); }; }; then
6788 ac_cv_func_fork_works=yes
6789else
68f2de6d
AK
6790 echo "$as_me: program exited with status $ac_status" >&5
6791echo "$as_me: failed program was:" >&5
ad6254c5
AK
6792sed 's/^/| /' conftest.$ac_ext >&5
6793
6794( exit $ac_status )
6795ac_cv_func_fork_works=no
6796fi
7a197a62 6797rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6798fi
7a197a62
AK
6799
6800
ad6254c5 6801fi
68f2de6d
AK
6802{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6803echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
6804
6805else
6806 ac_cv_func_fork_works=$ac_cv_func_fork
6807fi
6808if test "x$ac_cv_func_fork_works" = xcross; then
6809 case $host in
6810 *-*-amigaos* | *-*-msdosdjgpp*)
6811 # Override, as these systems have only a dummy fork() stub
6812 ac_cv_func_fork_works=no
6813 ;;
6814 *)
6815 ac_cv_func_fork_works=yes
6816 ;;
6817 esac
68f2de6d
AK
6818 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6819echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
6820fi
6821ac_cv_func_vfork_works=$ac_cv_func_vfork
6822if test "x$ac_cv_func_vfork" = xyes; then
68f2de6d
AK
6823 { echo "$as_me:$LINENO: checking for working vfork" >&5
6824echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
ad6254c5 6825if test "${ac_cv_func_vfork_works+set}" = set; then
68f2de6d 6826 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6827else
6828 if test "$cross_compiling" = yes; then
6829 ac_cv_func_vfork_works=cross
6830else
6831 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6832/* confdefs.h. */
6833_ACEOF
6834cat confdefs.h >>conftest.$ac_ext
6835cat >>conftest.$ac_ext <<_ACEOF
6836/* end confdefs.h. */
6837/* Thanks to Paul Eggert for this test. */
7a197a62 6838$ac_includes_default
ad6254c5 6839#include <sys/wait.h>
25fbec5b 6840#ifdef HAVE_VFORK_H
ad6254c5
AK
6841# include <vfork.h>
6842#endif
6843/* On some sparc systems, changes by the child to local and incoming
6844 argument registers are propagated back to the parent. The compiler
6845 is told about this with #include <vfork.h>, but some compilers
6846 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6847 static variable whose address is put into a register that is
6848 clobbered by the vfork. */
6849static void
6850#ifdef __cplusplus
6851sparc_address_test (int arg)
6852# else
6853sparc_address_test (arg) int arg;
6854#endif
6855{
6856 static pid_t child;
6857 if (!child) {
6858 child = vfork ();
6859 if (child < 0) {
6860 perror ("vfork");
6861 _exit(2);
6862 }
6863 if (!child) {
6864 arg = getpid();
6865 write(-1, "", 0);
6866 _exit (arg);
6867 }
6868 }
6869}
6870
6871int
6872main ()
6873{
6874 pid_t parent = getpid ();
6875 pid_t child;
6876
6877 sparc_address_test (0);
6878
6879 child = vfork ();
6880
6881 if (child == 0) {
6882 /* Here is another test for sparc vfork register problems. This
6883 test uses lots of local variables, at least as many local
6884 variables as main has allocated so far including compiler
6885 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6886 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6887 reuse the register of parent for one of the local variables,
6888 since it will think that parent can't possibly be used any more
6889 in this routine. Assigning to the local variable will thus
6890 munge parent in the parent process. */
6891 pid_t
6892 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6893 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6894 /* Convince the compiler that p..p7 are live; otherwise, it might
6895 use the same hardware register for all 8 local variables. */
6896 if (p != p1 || p != p2 || p != p3 || p != p4
6897 || p != p5 || p != p6 || p != p7)
6898 _exit(1);
6899
6900 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6901 from child file descriptors. If the child closes a descriptor
6902 before it execs or exits, this munges the parent's descriptor
6903 as well. Test for this by closing stdout in the child. */
6904 _exit(close(fileno(stdout)) != 0);
6905 } else {
6906 int status;
6907 struct stat st;
6908
6909 while (wait(&status) != child)
6910 ;
7a197a62 6911 return (
ad6254c5
AK
6912 /* Was there some problem with vforking? */
6913 child < 0
6914
6915 /* Did the child fail? (This shouldn't happen.) */
6916 || status
6917
6918 /* Did the vfork/compiler bug occur? */
6919 || parent != getpid()
6920
6921 /* Did the file descriptor bug occur? */
6922 || fstat(fileno(stdout), &st) != 0
6923 );
6924 }
6925}
6926_ACEOF
6927rm -f conftest$ac_exeext
7a197a62
AK
6928if { (ac_try="$ac_link"
6929case "(($ac_try" in
6930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6931 *) ac_try_echo=$ac_try;;
6932esac
68f2de6d 6933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6934 (eval "$ac_link") 2>&5
ad6254c5 6935 ac_status=$?
68f2de6d 6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6938 { (case "(($ac_try" in
6939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6940 *) ac_try_echo=$ac_try;;
6941esac
68f2de6d 6942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6943 (eval "$ac_try") 2>&5
ad6254c5 6944 ac_status=$?
68f2de6d 6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6946 (exit $ac_status); }; }; then
6947 ac_cv_func_vfork_works=yes
6948else
68f2de6d
AK
6949 echo "$as_me: program exited with status $ac_status" >&5
6950echo "$as_me: failed program was:" >&5
ad6254c5
AK
6951sed 's/^/| /' conftest.$ac_ext >&5
6952
6953( exit $ac_status )
6954ac_cv_func_vfork_works=no
6955fi
7a197a62 6956rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6957fi
7a197a62
AK
6958
6959
ad6254c5 6960fi
68f2de6d
AK
6961{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
6962echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
6963
6964fi;
6965if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 6966 ac_cv_func_vfork_works=$ac_cv_func_vfork
68f2de6d
AK
6967 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6968echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
6969fi
6970
6971if test "x$ac_cv_func_vfork_works" = xyes; then
6972
6973cat >>confdefs.h <<\_ACEOF
6974#define HAVE_WORKING_VFORK 1
6975_ACEOF
6976
6977else
6978
6979cat >>confdefs.h <<\_ACEOF
6980#define vfork fork
6981_ACEOF
6982
6983fi
6984if test "x$ac_cv_func_fork_works" = xyes; then
6985
6986cat >>confdefs.h <<\_ACEOF
6987#define HAVE_WORKING_FORK 1
6988_ACEOF
6989
6990fi
6991
68f2de6d
AK
6992{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
6993echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
ad6254c5 6994if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
68f2de6d 6995 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6996else
6997 rm -f conftest.sym conftest.file
6998echo >conftest.file
6999if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7000 if test "$cross_compiling" = yes; then
7001 ac_cv_func_lstat_dereferences_slashed_symlink=no
7002else
7003 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7004/* confdefs.h. */
7005_ACEOF
7006cat confdefs.h >>conftest.$ac_ext
7007cat >>conftest.$ac_ext <<_ACEOF
7008/* end confdefs.h. */
7009$ac_includes_default
7010int
7011main ()
7012{
7013struct stat sbuf;
7014 /* Linux will dereference the symlink and fail.
8a2fc586
AK
7015 That is better in the sense that it means we will not
7016 have to compile and use the lstat wrapper. */
7a197a62 7017 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
7018 ;
7019 return 0;
7020}
7021_ACEOF
7022rm -f conftest$ac_exeext
7a197a62
AK
7023if { (ac_try="$ac_link"
7024case "(($ac_try" in
7025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7026 *) ac_try_echo=$ac_try;;
7027esac
68f2de6d 7028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7029 (eval "$ac_link") 2>&5
ad6254c5 7030 ac_status=$?
68f2de6d 7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7033 { (case "(($ac_try" in
7034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7035 *) ac_try_echo=$ac_try;;
7036esac
68f2de6d 7037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7038 (eval "$ac_try") 2>&5
ad6254c5 7039 ac_status=$?
68f2de6d 7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7041 (exit $ac_status); }; }; then
7042 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7043else
68f2de6d
AK
7044 echo "$as_me: program exited with status $ac_status" >&5
7045echo "$as_me: failed program was:" >&5
ad6254c5
AK
7046sed 's/^/| /' conftest.$ac_ext >&5
7047
7048( exit $ac_status )
7049ac_cv_func_lstat_dereferences_slashed_symlink=no
7050fi
7a197a62 7051rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7052fi
7a197a62
AK
7053
7054
ad6254c5
AK
7055else
7056 # If the `ln -s' command failed, then we probably don't even
7057 # have an lstat function.
7058 ac_cv_func_lstat_dereferences_slashed_symlink=no
7059fi
7060rm -f conftest.sym conftest.file
7061
7062fi
68f2de6d
AK
7063{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7064echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
7065
7066test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7067
7068cat >>confdefs.h <<_ACEOF
7069#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7070_ACEOF
7071
7072
7073if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 7074 case " $LIBOBJS " in
8a2fc586 7075 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7076 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7077 ;;
8a2fc586
AK
7078esac
7079
ad6254c5
AK
7080fi
7081
68f2de6d
AK
7082{ echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7083echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
ad6254c5 7084if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
68f2de6d 7085 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7086else
7087 if test "$cross_compiling" = yes; then
7088 ac_cv_func_lstat_empty_string_bug=yes
7089else
7090 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7091/* confdefs.h. */
7092_ACEOF
7093cat confdefs.h >>conftest.$ac_ext
7094cat >>conftest.$ac_ext <<_ACEOF
7095/* end confdefs.h. */
7096$ac_includes_default
7097int
7098main ()
7099{
7100struct stat sbuf;
7a197a62 7101 return lstat ("", &sbuf) == 0;
ad6254c5
AK
7102 ;
7103 return 0;
7104}
7105_ACEOF
7106rm -f conftest$ac_exeext
7a197a62
AK
7107if { (ac_try="$ac_link"
7108case "(($ac_try" in
7109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7110 *) ac_try_echo=$ac_try;;
7111esac
68f2de6d 7112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7113 (eval "$ac_link") 2>&5
ad6254c5 7114 ac_status=$?
68f2de6d 7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7117 { (case "(($ac_try" in
7118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7119 *) ac_try_echo=$ac_try;;
7120esac
68f2de6d 7121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7122 (eval "$ac_try") 2>&5
ad6254c5 7123 ac_status=$?
68f2de6d 7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7125 (exit $ac_status); }; }; then
7a197a62 7126 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 7127else
68f2de6d
AK
7128 echo "$as_me: program exited with status $ac_status" >&5
7129echo "$as_me: failed program was:" >&5
ad6254c5
AK
7130sed 's/^/| /' conftest.$ac_ext >&5
7131
7132( exit $ac_status )
7a197a62 7133ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 7134fi
7a197a62 7135rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7136fi
7a197a62
AK
7137
7138
ad6254c5 7139fi
68f2de6d
AK
7140{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7141echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 7142if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 7143 case " $LIBOBJS " in
8a2fc586 7144 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7145 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7146 ;;
8a2fc586
AK
7147esac
7148
ad6254c5
AK
7149
7150cat >>confdefs.h <<_ACEOF
7151#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7152_ACEOF
7153
7154fi
7155
7156
7157for ac_header in stdlib.h
7158do
68f2de6d 7159as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7160if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
7161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7163if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 7164 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7165fi
68f2de6d
AK
7166ac_res=`eval echo '${'$as_ac_Header'}'`
7167 { echo "$as_me:$LINENO: result: $ac_res" >&5
7168echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7169else
7170 # Is the header compilable?
68f2de6d
AK
7171{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7172echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 7173cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7174/* confdefs.h. */
7175_ACEOF
7176cat confdefs.h >>conftest.$ac_ext
7177cat >>conftest.$ac_ext <<_ACEOF
7178/* end confdefs.h. */
7179$ac_includes_default
7180#include <$ac_header>
7181_ACEOF
7182rm -f conftest.$ac_objext
7a197a62
AK
7183if { (ac_try="$ac_compile"
7184case "(($ac_try" in
7185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7187esac
68f2de6d 7188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7189 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7190 ac_status=$?
8a2fc586
AK
7191 grep -v '^ *+' conftest.er1 >conftest.err
7192 rm -f conftest.er1
7193 cat conftest.err >&5
68f2de6d 7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7195 (exit $ac_status); } && {
7196 test -z "$ac_c_werror_flag" ||
7197 test ! -s conftest.err
7198 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7199 ac_header_compiler=yes
7200else
68f2de6d 7201 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7202sed 's/^/| /' conftest.$ac_ext >&5
7203
7a197a62 7204 ac_header_compiler=no
ad6254c5 7205fi
7a197a62
AK
7206
7207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
7208{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7209echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
7210
7211# Is the header present?
68f2de6d
AK
7212{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7213echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 7214cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7215/* confdefs.h. */
7216_ACEOF
7217cat confdefs.h >>conftest.$ac_ext
7218cat >>conftest.$ac_ext <<_ACEOF
7219/* end confdefs.h. */
7220#include <$ac_header>
7221_ACEOF
7a197a62
AK
7222if { (ac_try="$ac_cpp conftest.$ac_ext"
7223case "(($ac_try" in
7224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7225 *) ac_try_echo=$ac_try;;
7226esac
68f2de6d 7227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7229 ac_status=$?
7230 grep -v '^ *+' conftest.er1 >conftest.err
7231 rm -f conftest.er1
7232 cat conftest.err >&5
68f2de6d 7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7234 (exit $ac_status); } >/dev/null && {
7235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7236 test ! -s conftest.err
7237 }; then
ad6254c5
AK
7238 ac_header_preproc=yes
7239else
68f2de6d 7240 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7241sed 's/^/| /' conftest.$ac_ext >&5
7242
7243 ac_header_preproc=no
7244fi
7a197a62 7245
ad6254c5 7246rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
7247{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7248echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
7249
7250# So? What about this header?
8a2fc586
AK
7251case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7252 yes:no: )
68f2de6d
AK
7253 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7254echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7256echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7257 ac_header_preproc=yes
ad6254c5 7258 ;;
8a2fc586 7259 no:yes:* )
68f2de6d
AK
7260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7261echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7263echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7264 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7265echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7266 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7267echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7269echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7270 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7271echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7272
ad6254c5
AK
7273 ;;
7274esac
68f2de6d
AK
7275{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7276echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7277if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 7278 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7279else
8a2fc586 7280 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7281fi
68f2de6d
AK
7282ac_res=`eval echo '${'$as_ac_Header'}'`
7283 { echo "$as_me:$LINENO: result: $ac_res" >&5
7284echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7285
7286fi
68f2de6d 7287if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 7288 cat >>confdefs.h <<_ACEOF
68f2de6d 7289#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7290_ACEOF
7291
7292fi
7293
7294done
7295
68f2de6d
AK
7296{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7297echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
ad6254c5 7298if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
68f2de6d 7299 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7300else
7301 if test "$cross_compiling" = yes; then
7302 ac_cv_func_malloc_0_nonnull=no
7303else
7304 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7305/* confdefs.h. */
7306_ACEOF
7307cat confdefs.h >>conftest.$ac_ext
7308cat >>conftest.$ac_ext <<_ACEOF
7309/* end confdefs.h. */
25fbec5b 7310#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
7311# include <stdlib.h>
7312#else
7313char *malloc ();
7314#endif
7315
7316int
7317main ()
7318{
7a197a62 7319return ! malloc (0);
ad6254c5
AK
7320 ;
7321 return 0;
7322}
7323_ACEOF
7324rm -f conftest$ac_exeext
7a197a62
AK
7325if { (ac_try="$ac_link"
7326case "(($ac_try" in
7327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7328 *) ac_try_echo=$ac_try;;
7329esac
68f2de6d 7330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7331 (eval "$ac_link") 2>&5
ad6254c5 7332 ac_status=$?
68f2de6d 7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7335 { (case "(($ac_try" in
7336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7337 *) ac_try_echo=$ac_try;;
7338esac
68f2de6d 7339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7340 (eval "$ac_try") 2>&5
ad6254c5 7341 ac_status=$?
68f2de6d 7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7343 (exit $ac_status); }; }; then
7344 ac_cv_func_malloc_0_nonnull=yes
7345else
68f2de6d
AK
7346 echo "$as_me: program exited with status $ac_status" >&5
7347echo "$as_me: failed program was:" >&5
ad6254c5
AK
7348sed 's/^/| /' conftest.$ac_ext >&5
7349
7350( exit $ac_status )
7351ac_cv_func_malloc_0_nonnull=no
7352fi
7a197a62 7353rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7354fi
7a197a62
AK
7355
7356
ad6254c5 7357fi
68f2de6d
AK
7358{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7359echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
7360if test $ac_cv_func_malloc_0_nonnull = yes; then
7361
7362cat >>confdefs.h <<\_ACEOF
7363#define HAVE_MALLOC 1
7364_ACEOF
7365
7366else
7367 cat >>confdefs.h <<\_ACEOF
7368#define HAVE_MALLOC 0
7369_ACEOF
7370
7a197a62 7371 case " $LIBOBJS " in
8a2fc586 7372 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
7373 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7374 ;;
8a2fc586
AK
7375esac
7376
ad6254c5
AK
7377
7378cat >>confdefs.h <<\_ACEOF
7379#define malloc rpl_malloc
7380_ACEOF
7381
7382fi
7383
7384
7385
68f2de6d
AK
7386{ echo "$as_me:$LINENO: checking for working memcmp" >&5
7387echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
ad6254c5 7388if test "${ac_cv_func_memcmp_working+set}" = set; then
68f2de6d 7389 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7390else
7391 if test "$cross_compiling" = yes; then
7392 ac_cv_func_memcmp_working=no
7393else
7394 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7395/* confdefs.h. */
7396_ACEOF
7397cat confdefs.h >>conftest.$ac_ext
7398cat >>conftest.$ac_ext <<_ACEOF
7399/* end confdefs.h. */
8a2fc586 7400$ac_includes_default
ad6254c5
AK
7401int
7402main ()
7403{
7404
7405 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 7406 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 7407 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 7408 return 1;
ad6254c5
AK
7409
7410 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7411 or more and with at least one buffer not starting on a 4-byte boundary.
7412 William Lewis provided this test program. */
7413 {
7414 char foo[21];
7415 char bar[21];
7416 int i;
7417 for (i = 0; i < 4; i++)
7418 {
8a2fc586
AK
7419 char *a = foo + i;
7420 char *b = bar + i;
7421 strcpy (a, "--------01111111");
7422 strcpy (b, "--------10000000");
7423 if (memcmp (a, b, 16) >= 0)
7a197a62 7424 return 1;
ad6254c5 7425 }
7a197a62 7426 return 0;
ad6254c5
AK
7427 }
7428
7429 ;
7430 return 0;
7431}
7432_ACEOF
7433rm -f conftest$ac_exeext
7a197a62
AK
7434if { (ac_try="$ac_link"
7435case "(($ac_try" in
7436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7437 *) ac_try_echo=$ac_try;;
7438esac
68f2de6d 7439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7440 (eval "$ac_link") 2>&5
ad6254c5 7441 ac_status=$?
68f2de6d 7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7444 { (case "(($ac_try" in
7445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7446 *) ac_try_echo=$ac_try;;
7447esac
68f2de6d 7448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7449 (eval "$ac_try") 2>&5
ad6254c5 7450 ac_status=$?
68f2de6d 7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7452 (exit $ac_status); }; }; then
7453 ac_cv_func_memcmp_working=yes
7454else
68f2de6d
AK
7455 echo "$as_me: program exited with status $ac_status" >&5
7456echo "$as_me: failed program was:" >&5
ad6254c5
AK
7457sed 's/^/| /' conftest.$ac_ext >&5
7458
7459( exit $ac_status )
7460ac_cv_func_memcmp_working=no
7461fi
7a197a62 7462rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7463fi
7a197a62
AK
7464
7465
ad6254c5 7466fi
68f2de6d
AK
7467{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7468echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
7a197a62 7469test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 7470 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
7471 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7472 ;;
8a2fc586
AK
7473esac
7474
ad6254c5
AK
7475
7476
7477
7478for ac_header in stdlib.h unistd.h
7479do
68f2de6d 7480as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7481if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
7482 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7483echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7484if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 7485 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7486fi
68f2de6d
AK
7487ac_res=`eval echo '${'$as_ac_Header'}'`
7488 { echo "$as_me:$LINENO: result: $ac_res" >&5
7489echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7490else
7491 # Is the header compilable?
68f2de6d
AK
7492{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7493echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 7494cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7495/* confdefs.h. */
7496_ACEOF
7497cat confdefs.h >>conftest.$ac_ext
7498cat >>conftest.$ac_ext <<_ACEOF
7499/* end confdefs.h. */
7500$ac_includes_default
7501#include <$ac_header>
7502_ACEOF
7503rm -f conftest.$ac_objext
7a197a62
AK
7504if { (ac_try="$ac_compile"
7505case "(($ac_try" in
7506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7507 *) ac_try_echo=$ac_try;;
7508esac
68f2de6d 7509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7510 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7511 ac_status=$?
8a2fc586
AK
7512 grep -v '^ *+' conftest.er1 >conftest.err
7513 rm -f conftest.er1
7514 cat conftest.err >&5
68f2de6d 7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7516 (exit $ac_status); } && {
7517 test -z "$ac_c_werror_flag" ||
7518 test ! -s conftest.err
7519 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7520 ac_header_compiler=yes
7521else
68f2de6d 7522 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7523sed 's/^/| /' conftest.$ac_ext >&5
7524
7a197a62 7525 ac_header_compiler=no
ad6254c5 7526fi
7a197a62
AK
7527
7528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
7529{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7530echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
7531
7532# Is the header present?
68f2de6d
AK
7533{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7534echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 7535cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7536/* confdefs.h. */
7537_ACEOF
7538cat confdefs.h >>conftest.$ac_ext
7539cat >>conftest.$ac_ext <<_ACEOF
7540/* end confdefs.h. */
7541#include <$ac_header>
7542_ACEOF
7a197a62
AK
7543if { (ac_try="$ac_cpp conftest.$ac_ext"
7544case "(($ac_try" in
7545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7546 *) ac_try_echo=$ac_try;;
7547esac
68f2de6d 7548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7550 ac_status=$?
7551 grep -v '^ *+' conftest.er1 >conftest.err
7552 rm -f conftest.er1
7553 cat conftest.err >&5
68f2de6d 7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7555 (exit $ac_status); } >/dev/null && {
7556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7557 test ! -s conftest.err
7558 }; then
ad6254c5
AK
7559 ac_header_preproc=yes
7560else
68f2de6d 7561 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7562sed 's/^/| /' conftest.$ac_ext >&5
7563
7564 ac_header_preproc=no
7565fi
7a197a62 7566
ad6254c5 7567rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
7568{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7569echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
7570
7571# So? What about this header?
8a2fc586
AK
7572case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7573 yes:no: )
68f2de6d
AK
7574 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7575echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7577echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7578 ac_header_preproc=yes
ad6254c5 7579 ;;
8a2fc586 7580 no:yes:* )
68f2de6d
AK
7581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7582echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7584echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7585 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7586echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7587 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7588echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7590echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7591 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7592echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7593
ad6254c5
AK
7594 ;;
7595esac
68f2de6d
AK
7596{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7597echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7598if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 7599 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7600else
8a2fc586 7601 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7602fi
68f2de6d
AK
7603ac_res=`eval echo '${'$as_ac_Header'}'`
7604 { echo "$as_me:$LINENO: result: $ac_res" >&5
7605echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7606
7607fi
68f2de6d 7608if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 7609 cat >>confdefs.h <<_ACEOF
68f2de6d 7610#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7611_ACEOF
7612
7613fi
7614
7615done
7616
7617
7618for ac_func in getpagesize
7619do
68f2de6d
AK
7620as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7621{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7622echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 7623if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 7624 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7625else
7626 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7627/* confdefs.h. */
7628_ACEOF
7629cat confdefs.h >>conftest.$ac_ext
7630cat >>conftest.$ac_ext <<_ACEOF
7631/* end confdefs.h. */
8a2fc586
AK
7632/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7634#define $ac_func innocuous_$ac_func
7635
ad6254c5
AK
7636/* System header to define __stub macros and hopefully few prototypes,
7637 which can conflict with char $ac_func (); below.
7638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7639 <limits.h> exists even on freestanding compilers. */
8a2fc586 7640
ad6254c5
AK
7641#ifdef __STDC__
7642# include <limits.h>
7643#else
7644# include <assert.h>
7645#endif
8a2fc586
AK
7646
7647#undef $ac_func
7648
7a197a62
AK
7649/* Override any GCC internal prototype to avoid an error.
7650 Use char because int might match the return type of a GCC
7651 builtin and then its argument prototype would still apply. */
ad6254c5
AK
7652#ifdef __cplusplus
7653extern "C"
ad6254c5 7654#endif
ad6254c5
AK
7655char $ac_func ();
7656/* The GNU C library defines this for functions which it implements
7657 to always fail with ENOSYS. Some functions are actually named
7658 something starting with __ and the normal name is an alias. */
7a197a62 7659#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7660choke me
ad6254c5
AK
7661#endif
7662
7663int
7664main ()
7665{
7a197a62 7666return $ac_func ();
ad6254c5
AK
7667 ;
7668 return 0;
7669}
7670_ACEOF
7671rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7672if { (ac_try="$ac_link"
7673case "(($ac_try" in
7674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7675 *) ac_try_echo=$ac_try;;
7676esac
68f2de6d 7677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7678 (eval "$ac_link") 2>conftest.er1
ad6254c5 7679 ac_status=$?
8a2fc586
AK
7680 grep -v '^ *+' conftest.er1 >conftest.err
7681 rm -f conftest.er1
7682 cat conftest.err >&5
68f2de6d 7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7684 (exit $ac_status); } && {
7685 test -z "$ac_c_werror_flag" ||
7686 test ! -s conftest.err
68f2de6d
AK
7687 } && test -s conftest$ac_exeext &&
7688 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
7689 eval "$as_ac_var=yes"
7690else
68f2de6d 7691 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7692sed 's/^/| /' conftest.$ac_ext >&5
7693
7a197a62 7694 eval "$as_ac_var=no"
ad6254c5 7695fi
7a197a62 7696
25fbec5b 7697rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7698 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7699fi
68f2de6d
AK
7700ac_res=`eval echo '${'$as_ac_var'}'`
7701 { echo "$as_me:$LINENO: result: $ac_res" >&5
7702echo "${ECHO_T}$ac_res" >&6; }
7703if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 7704 cat >>confdefs.h <<_ACEOF
68f2de6d 7705#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7706_ACEOF
7707
7708fi
7709done
7710
68f2de6d
AK
7711{ echo "$as_me:$LINENO: checking for working mmap" >&5
7712echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
ad6254c5 7713if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
68f2de6d 7714 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7715else
7716 if test "$cross_compiling" = yes; then
7717 ac_cv_func_mmap_fixed_mapped=no
7718else
7719 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7720/* confdefs.h. */
7721_ACEOF
7722cat confdefs.h >>conftest.$ac_ext
7723cat >>conftest.$ac_ext <<_ACEOF
7724/* end confdefs.h. */
7725$ac_includes_default
7726/* malloc might have been renamed as rpl_malloc. */
7727#undef malloc
7728
7729/* Thanks to Mike Haertel and Jim Avera for this test.
7730 Here is a matrix of mmap possibilities:
7731 mmap private not fixed
7732 mmap private fixed at somewhere currently unmapped
7733 mmap private fixed at somewhere already mapped
7734 mmap shared not fixed
7735 mmap shared fixed at somewhere currently unmapped
7736 mmap shared fixed at somewhere already mapped
7737 For private mappings, we should verify that changes cannot be read()
7738 back from the file, nor mmap's back from the file at a different
7739 address. (There have been systems where private was not correctly
7740 implemented like the infamous i386 svr4.0, and systems where the
7741 VM page cache was not coherent with the file system buffer cache
7742 like early versions of FreeBSD and possibly contemporary NetBSD.)
7743 For shared mappings, we should conversely verify that changes get
7744 propagated back to all the places they're supposed to be.
7745
7746 Grep wants private fixed already mapped.
7747 The main things grep needs to know about mmap are:
7748 * does it exist and is it safe to write into the mmap'd area
7749 * how to use it (BSD variants) */
7750
7751#include <fcntl.h>
7752#include <sys/mman.h>
7753
25fbec5b 7754#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
7755char *malloc ();
7756#endif
7757
7758/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 7759#ifndef HAVE_GETPAGESIZE
ad6254c5 7760/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 7761# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
7762# define HAVE_SYS_PARAM_H 1
7763# endif
7764
7765# ifdef _SC_PAGESIZE
7766# define getpagesize() sysconf(_SC_PAGESIZE)
7767# else /* no _SC_PAGESIZE */
25fbec5b 7768# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
7769# include <sys/param.h>
7770# ifdef EXEC_PAGESIZE
7771# define getpagesize() EXEC_PAGESIZE
7772# else /* no EXEC_PAGESIZE */
7773# ifdef NBPG
7774# define getpagesize() NBPG * CLSIZE
7775# ifndef CLSIZE
7776# define CLSIZE 1
7777# endif /* no CLSIZE */
7778# else /* no NBPG */
7779# ifdef NBPC
7780# define getpagesize() NBPC
7781# else /* no NBPC */
7782# ifdef PAGESIZE
7783# define getpagesize() PAGESIZE
7784# endif /* PAGESIZE */
7785# endif /* no NBPC */
7786# endif /* no NBPG */
7787# endif /* no EXEC_PAGESIZE */
7788# else /* no HAVE_SYS_PARAM_H */
7789# define getpagesize() 8192 /* punt totally */
7790# endif /* no HAVE_SYS_PARAM_H */
7791# endif /* no _SC_PAGESIZE */
7792
7793#endif /* no HAVE_GETPAGESIZE */
7794
7795int
7796main ()
7797{
7798 char *data, *data2, *data3;
7799 int i, pagesize;
7800 int fd;
7801
7802 pagesize = getpagesize ();
7803
7804 /* First, make a file with some known garbage in it. */
7805 data = (char *) malloc (pagesize);
7806 if (!data)
7a197a62 7807 return 1;
ad6254c5
AK
7808 for (i = 0; i < pagesize; ++i)
7809 *(data + i) = rand ();
7810 umask (0);
7811 fd = creat ("conftest.mmap", 0600);
7812 if (fd < 0)
7a197a62 7813 return 1;
ad6254c5 7814 if (write (fd, data, pagesize) != pagesize)
7a197a62 7815 return 1;
ad6254c5
AK
7816 close (fd);
7817
7818 /* Next, try to mmap the file at a fixed address which already has
7819 something else allocated at it. If we can, also make sure that
7820 we see the same garbage. */
7821 fd = open ("conftest.mmap", O_RDWR);
7822 if (fd < 0)
7a197a62 7823 return 1;
ad6254c5
AK
7824 data2 = (char *) malloc (2 * pagesize);
7825 if (!data2)
7a197a62
AK
7826 return 1;
7827 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 7828 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 7829 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 7830 return 1;
ad6254c5
AK
7831 for (i = 0; i < pagesize; ++i)
7832 if (*(data + i) != *(data2 + i))
7a197a62 7833 return 1;
ad6254c5
AK
7834
7835 /* Finally, make sure that changes to the mapped area do not
7836 percolate back to the file as seen by read(). (This is a bug on
7837 some variants of i386 svr4.0.) */
7838 for (i = 0; i < pagesize; ++i)
7839 *(data2 + i) = *(data2 + i) + 1;
7840 data3 = (char *) malloc (pagesize);
7841 if (!data3)
7a197a62 7842 return 1;
ad6254c5 7843 if (read (fd, data3, pagesize) != pagesize)
7a197a62 7844 return 1;
ad6254c5
AK
7845 for (i = 0; i < pagesize; ++i)
7846 if (*(data + i) != *(data3 + i))
7a197a62 7847 return 1;
ad6254c5 7848 close (fd);
7a197a62 7849 return 0;
ad6254c5
AK
7850}
7851_ACEOF
7852rm -f conftest$ac_exeext
7a197a62
AK
7853if { (ac_try="$ac_link"
7854case "(($ac_try" in
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7857esac
68f2de6d 7858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7859 (eval "$ac_link") 2>&5
ad6254c5 7860 ac_status=$?
68f2de6d 7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7863 { (case "(($ac_try" in
7864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7865 *) ac_try_echo=$ac_try;;
7866esac
68f2de6d 7867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7868 (eval "$ac_try") 2>&5
ad6254c5 7869 ac_status=$?
68f2de6d 7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7871 (exit $ac_status); }; }; then
7872 ac_cv_func_mmap_fixed_mapped=yes
7873else
68f2de6d
AK
7874 echo "$as_me: program exited with status $ac_status" >&5
7875echo "$as_me: failed program was:" >&5
ad6254c5
AK
7876sed 's/^/| /' conftest.$ac_ext >&5
7877
7878( exit $ac_status )
7879ac_cv_func_mmap_fixed_mapped=no
7880fi
7a197a62 7881rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7882fi
7a197a62
AK
7883
7884
ad6254c5 7885fi
68f2de6d
AK
7886{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7887echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
7888if test $ac_cv_func_mmap_fixed_mapped = yes; then
7889
7890cat >>confdefs.h <<\_ACEOF
7891#define HAVE_MMAP 1
7892_ACEOF
7893
7894fi
7895rm -f conftest.mmap
7896
68f2de6d
AK
7897{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
7898echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
ad6254c5 7899if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
68f2de6d 7900 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7901else
7902 if test "$cross_compiling" = yes; then
7903 ac_cv_func_stat_empty_string_bug=yes
7904else
7905 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7906/* confdefs.h. */
7907_ACEOF
7908cat confdefs.h >>conftest.$ac_ext
7909cat >>conftest.$ac_ext <<_ACEOF
7910/* end confdefs.h. */
7911$ac_includes_default
7912int
7913main ()
7914{
7915struct stat sbuf;
7a197a62 7916 return stat ("", &sbuf) == 0;
ad6254c5
AK
7917 ;
7918 return 0;
7919}
7920_ACEOF
7921rm -f conftest$ac_exeext
7a197a62
AK
7922if { (ac_try="$ac_link"
7923case "(($ac_try" in
7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7926esac
68f2de6d 7927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7928 (eval "$ac_link") 2>&5
ad6254c5 7929 ac_status=$?
68f2de6d 7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7932 { (case "(($ac_try" in
7933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934 *) ac_try_echo=$ac_try;;
7935esac
68f2de6d 7936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7937 (eval "$ac_try") 2>&5
ad6254c5 7938 ac_status=$?
68f2de6d 7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7940 (exit $ac_status); }; }; then
7a197a62 7941 ac_cv_func_stat_empty_string_bug=no
ad6254c5 7942else
68f2de6d
AK
7943 echo "$as_me: program exited with status $ac_status" >&5
7944echo "$as_me: failed program was:" >&5
ad6254c5
AK
7945sed 's/^/| /' conftest.$ac_ext >&5
7946
7947( exit $ac_status )
7a197a62 7948ac_cv_func_stat_empty_string_bug=yes
ad6254c5 7949fi
7a197a62 7950rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7951fi
7a197a62
AK
7952
7953
ad6254c5 7954fi
68f2de6d
AK
7955{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
7956echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 7957if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 7958 case " $LIBOBJS " in
8a2fc586 7959 *" stat.$ac_objext "* ) ;;
7a197a62
AK
7960 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
7961 ;;
8a2fc586
AK
7962esac
7963
ad6254c5
AK
7964
7965cat >>confdefs.h <<_ACEOF
7966#define HAVE_STAT_EMPTY_STRING_BUG 1
7967_ACEOF
7968
7969fi
7970
68f2de6d
AK
7971{ echo "$as_me:$LINENO: checking for working strtod" >&5
7972echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
ad6254c5 7973if test "${ac_cv_func_strtod+set}" = set; then
68f2de6d 7974 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7975else
7976 if test "$cross_compiling" = yes; then
7977 ac_cv_func_strtod=no
7978else
7979 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7980/* confdefs.h. */
7981_ACEOF
7982cat confdefs.h >>conftest.$ac_ext
7983cat >>conftest.$ac_ext <<_ACEOF
7984/* end confdefs.h. */
7985
7a197a62
AK
7986$ac_includes_default
7987#ifndef strtod
ad6254c5 7988double strtod ();
7a197a62 7989#endif
ad6254c5
AK
7990int
7991main()
7992{
7993 {
7994 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
7995 char *string = " +69";
7996 char *term;
7997 double value;
7998 value = strtod (string, &term);
7999 if (value != 69 || term != (string + 4))
7a197a62 8000 return 1;
ad6254c5
AK
8001 }
8002
8003 {
8004 /* Under Solaris 2.4, strtod returns the wrong value for the
8005 terminating character under some conditions. */
8006 char *string = "NaN";
8007 char *term;
8008 strtod (string, &term);
8009 if (term != string && *(term - 1) == 0)
7a197a62 8010 return 1;
ad6254c5 8011 }
7a197a62 8012 return 0;
ad6254c5
AK
8013}
8014
8015_ACEOF
8016rm -f conftest$ac_exeext
7a197a62
AK
8017if { (ac_try="$ac_link"
8018case "(($ac_try" in
8019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020 *) ac_try_echo=$ac_try;;
8021esac
68f2de6d 8022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8023 (eval "$ac_link") 2>&5
ad6254c5 8024 ac_status=$?
68f2de6d 8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8027 { (case "(($ac_try" in
8028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029 *) ac_try_echo=$ac_try;;
8030esac
68f2de6d 8031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8032 (eval "$ac_try") 2>&5
ad6254c5 8033 ac_status=$?
68f2de6d 8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8035 (exit $ac_status); }; }; then
8036 ac_cv_func_strtod=yes
8037else
68f2de6d
AK
8038 echo "$as_me: program exited with status $ac_status" >&5
8039echo "$as_me: failed program was:" >&5
ad6254c5
AK
8040sed 's/^/| /' conftest.$ac_ext >&5
8041
8042( exit $ac_status )
8043ac_cv_func_strtod=no
8044fi
7a197a62 8045rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8046fi
7a197a62
AK
8047
8048
ad6254c5 8049fi
68f2de6d
AK
8050{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8051echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
ad6254c5 8052if test $ac_cv_func_strtod = no; then
7a197a62 8053 case " $LIBOBJS " in
8a2fc586 8054 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
8055 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8056 ;;
8a2fc586
AK
8057esac
8058
68f2de6d
AK
8059{ echo "$as_me:$LINENO: checking for pow" >&5
8060echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
ad6254c5 8061if test "${ac_cv_func_pow+set}" = set; then
68f2de6d 8062 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8063else
8064 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8065/* confdefs.h. */
8066_ACEOF
8067cat confdefs.h >>conftest.$ac_ext
8068cat >>conftest.$ac_ext <<_ACEOF
8069/* end confdefs.h. */
8a2fc586
AK
8070/* Define pow to an innocuous variant, in case <limits.h> declares pow.
8071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8072#define pow innocuous_pow
8073
ad6254c5
AK
8074/* System header to define __stub macros and hopefully few prototypes,
8075 which can conflict with char pow (); below.
8076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8077 <limits.h> exists even on freestanding compilers. */
8a2fc586 8078
ad6254c5
AK
8079#ifdef __STDC__
8080# include <limits.h>
8081#else
8082# include <assert.h>
8083#endif
8a2fc586
AK
8084
8085#undef pow
8086
7a197a62
AK
8087/* Override any GCC internal prototype to avoid an error.
8088 Use char because int might match the return type of a GCC
8089 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8090#ifdef __cplusplus
8091extern "C"
ad6254c5 8092#endif
ad6254c5
AK
8093char pow ();
8094/* The GNU C library defines this for functions which it implements
8095 to always fail with ENOSYS. Some functions are actually named
8096 something starting with __ and the normal name is an alias. */
7a197a62 8097#if defined __stub_pow || defined __stub___pow
ad6254c5 8098choke me
ad6254c5
AK
8099#endif
8100
8101int
8102main ()
8103{
7a197a62 8104return pow ();
ad6254c5
AK
8105 ;
8106 return 0;
8107}
8108_ACEOF
8109rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8110if { (ac_try="$ac_link"
8111case "(($ac_try" in
8112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8113 *) ac_try_echo=$ac_try;;
8114esac
68f2de6d 8115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8116 (eval "$ac_link") 2>conftest.er1
ad6254c5 8117 ac_status=$?
8a2fc586
AK
8118 grep -v '^ *+' conftest.er1 >conftest.err
8119 rm -f conftest.er1
8120 cat conftest.err >&5
68f2de6d 8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8122 (exit $ac_status); } && {
8123 test -z "$ac_c_werror_flag" ||
8124 test ! -s conftest.err
68f2de6d
AK
8125 } && test -s conftest$ac_exeext &&
8126 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8127 ac_cv_func_pow=yes
8128else
68f2de6d 8129 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8130sed 's/^/| /' conftest.$ac_ext >&5
8131
7a197a62 8132 ac_cv_func_pow=no
ad6254c5 8133fi
7a197a62 8134
25fbec5b 8135rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8136 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8137fi
68f2de6d
AK
8138{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8139echo "${ECHO_T}$ac_cv_func_pow" >&6; }
ad6254c5
AK
8140
8141if test $ac_cv_func_pow = no; then
68f2de6d
AK
8142 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
8143echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
ad6254c5 8144if test "${ac_cv_lib_m_pow+set}" = set; then
68f2de6d 8145 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8146else
8147 ac_check_lib_save_LIBS=$LIBS
8148LIBS="-lm $LIBS"
8149cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8150/* confdefs.h. */
8151_ACEOF
8152cat confdefs.h >>conftest.$ac_ext
8153cat >>conftest.$ac_ext <<_ACEOF
8154/* end confdefs.h. */
8155
7a197a62
AK
8156/* Override any GCC internal prototype to avoid an error.
8157 Use char because int might match the return type of a GCC
8158 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8159#ifdef __cplusplus
8160extern "C"
8161#endif
ad6254c5
AK
8162char pow ();
8163int
8164main ()
8165{
7a197a62 8166return pow ();
ad6254c5
AK
8167 ;
8168 return 0;
8169}
8170_ACEOF
8171rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8172if { (ac_try="$ac_link"
8173case "(($ac_try" in
8174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8175 *) ac_try_echo=$ac_try;;
8176esac
68f2de6d 8177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8178 (eval "$ac_link") 2>conftest.er1
ad6254c5 8179 ac_status=$?
8a2fc586
AK
8180 grep -v '^ *+' conftest.er1 >conftest.err
8181 rm -f conftest.er1
8182 cat conftest.err >&5
68f2de6d 8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8184 (exit $ac_status); } && {
8185 test -z "$ac_c_werror_flag" ||
8186 test ! -s conftest.err
68f2de6d
AK
8187 } && test -s conftest$ac_exeext &&
8188 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8189 ac_cv_lib_m_pow=yes
8190else
68f2de6d 8191 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8192sed 's/^/| /' conftest.$ac_ext >&5
8193
7a197a62 8194 ac_cv_lib_m_pow=no
ad6254c5 8195fi
7a197a62 8196
25fbec5b 8197rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8198 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8199LIBS=$ac_check_lib_save_LIBS
d0191583 8200fi
68f2de6d
AK
8201{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8202echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
d0191583
JM
8203if test $ac_cv_lib_m_pow = yes; then
8204 POW_LIB=-lm
8205else
68f2de6d
AK
8206 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8207echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 8208fi
72b2cb61 8209
d0191583 8210fi
72b2cb61 8211
ad6254c5
AK
8212fi
8213
ad6254c5 8214
d0191583
JM
8215for ac_func in vprintf
8216do
68f2de6d
AK
8217as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8218{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8219echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
d0191583 8220if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 8221 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 8222else
d0191583
JM
8223 cat >conftest.$ac_ext <<_ACEOF
8224/* confdefs.h. */
8225_ACEOF
8226cat confdefs.h >>conftest.$ac_ext
8227cat >>conftest.$ac_ext <<_ACEOF
8228/* end confdefs.h. */
8229/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8231#define $ac_func innocuous_$ac_func
7a197a62 8232
d0191583
JM
8233/* System header to define __stub macros and hopefully few prototypes,
8234 which can conflict with char $ac_func (); below.
8235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8236 <limits.h> exists even on freestanding compilers. */
ad6254c5 8237
d0191583
JM
8238#ifdef __STDC__
8239# include <limits.h>
8240#else
8241# include <assert.h>
8242#endif
ad6254c5 8243
d0191583 8244#undef $ac_func
72b2cb61 8245
d0191583
JM
8246/* Override any GCC internal prototype to avoid an error.
8247 Use char because int might match the return type of a GCC
8248 builtin and then its argument prototype would still apply. */
8249#ifdef __cplusplus
8250extern "C"
8251#endif
8252char $ac_func ();
8253/* The GNU C library defines this for functions which it implements
8254 to always fail with ENOSYS. Some functions are actually named
8255 something starting with __ and the normal name is an alias. */
8256#if defined __stub_$ac_func || defined __stub___$ac_func
8257choke me
8258#endif
8259
8260int
8261main ()
8262{
8263return $ac_func ();
8264 ;
8265 return 0;
8266}
72b2cb61 8267_ACEOF
d0191583
JM
8268rm -f conftest.$ac_objext conftest$ac_exeext
8269if { (ac_try="$ac_link"
8270case "(($ac_try" in
8271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272 *) ac_try_echo=$ac_try;;
8273esac
68f2de6d 8274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
8275 (eval "$ac_link") 2>conftest.er1
8276 ac_status=$?
8277 grep -v '^ *+' conftest.er1 >conftest.err
8278 rm -f conftest.er1
8279 cat conftest.err >&5
68f2de6d 8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8281 (exit $ac_status); } && {
8282 test -z "$ac_c_werror_flag" ||
8283 test ! -s conftest.err
68f2de6d
AK
8284 } && test -s conftest$ac_exeext &&
8285 $as_test_x conftest$ac_exeext; then
d0191583
JM
8286 eval "$as_ac_var=yes"
8287else
68f2de6d 8288 echo "$as_me: failed program was:" >&5
d0191583 8289sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8290
d0191583 8291 eval "$as_ac_var=no"
ad6254c5
AK
8292fi
8293
d0191583
JM
8294rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8295 conftest$ac_exeext conftest.$ac_ext
7a197a62 8296fi
68f2de6d
AK
8297ac_res=`eval echo '${'$as_ac_var'}'`
8298 { echo "$as_me:$LINENO: result: $ac_res" >&5
8299echo "${ECHO_T}$ac_res" >&6; }
8300if test `eval echo '${'$as_ac_var'}'` = yes; then
d0191583 8301 cat >>confdefs.h <<_ACEOF
68f2de6d 8302#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 8303_ACEOF
7a197a62 8304
68f2de6d
AK
8305{ echo "$as_me:$LINENO: checking for _doprnt" >&5
8306echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
d0191583 8307if test "${ac_cv_func__doprnt+set}" = set; then
68f2de6d 8308 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 8309else
d0191583
JM
8310 cat >conftest.$ac_ext <<_ACEOF
8311/* confdefs.h. */
8312_ACEOF
8313cat confdefs.h >>conftest.$ac_ext
8314cat >>conftest.$ac_ext <<_ACEOF
8315/* end confdefs.h. */
8316/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8318#define _doprnt innocuous__doprnt
7a197a62 8319
d0191583
JM
8320/* System header to define __stub macros and hopefully few prototypes,
8321 which can conflict with char _doprnt (); below.
8322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8323 <limits.h> exists even on freestanding compilers. */
ad6254c5 8324
d0191583
JM
8325#ifdef __STDC__
8326# include <limits.h>
8327#else
8328# include <assert.h>
8329#endif
72b2cb61 8330
d0191583
JM
8331#undef _doprnt
8332
8333/* Override any GCC internal prototype to avoid an error.
8334 Use char because int might match the return type of a GCC
8335 builtin and then its argument prototype would still apply. */
8336#ifdef __cplusplus
8337extern "C"
8338#endif
8339char _doprnt ();
8340/* The GNU C library defines this for functions which it implements
8341 to always fail with ENOSYS. Some functions are actually named
8342 something starting with __ and the normal name is an alias. */
8343#if defined __stub__doprnt || defined __stub____doprnt
8344choke me
8345#endif
8346
8347int
8348main ()
8349{
8350return _doprnt ();
8351 ;
8352 return 0;
8353}
72b2cb61 8354_ACEOF
d0191583
JM
8355rm -f conftest.$ac_objext conftest$ac_exeext
8356if { (ac_try="$ac_link"
8357case "(($ac_try" in
8358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8359 *) ac_try_echo=$ac_try;;
8360esac
68f2de6d 8361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
8362 (eval "$ac_link") 2>conftest.er1
8363 ac_status=$?
8364 grep -v '^ *+' conftest.er1 >conftest.err
8365 rm -f conftest.er1
8366 cat conftest.err >&5
68f2de6d 8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8368 (exit $ac_status); } && {
8369 test -z "$ac_c_werror_flag" ||
8370 test ! -s conftest.err
68f2de6d
AK
8371 } && test -s conftest$ac_exeext &&
8372 $as_test_x conftest$ac_exeext; then
d0191583
JM
8373 ac_cv_func__doprnt=yes
8374else
68f2de6d 8375 echo "$as_me: failed program was:" >&5
d0191583 8376sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8377
d0191583 8378 ac_cv_func__doprnt=no
ad6254c5
AK
8379fi
8380
d0191583
JM
8381rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8382 conftest$ac_exeext conftest.$ac_ext
7a197a62 8383fi
68f2de6d
AK
8384{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8385echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
d0191583 8386if test $ac_cv_func__doprnt = yes; then
7a197a62 8387
d0191583
JM
8388cat >>confdefs.h <<\_ACEOF
8389#define HAVE_DOPRNT 1
8390_ACEOF
ad6254c5 8391
7a197a62
AK
8392fi
8393
d0191583
JM
8394fi
8395done
8b1a3214 8396
ad6254c5 8397
7a197a62 8398
d0191583 8399################################################################################
ad6254c5 8400
ad6254c5
AK
8401
8402################################################################################
68f2de6d
AK
8403{ echo "$as_me:$LINENO: checking file owner" >&5
8404echo $ECHO_N "checking file owner... $ECHO_C" >&6; }
d0191583
JM
8405OWNER="root"
8406
8407
8408# Check whether --with-user was given.
8409if test "${with_user+set}" = set; then
8410 withval=$with_user; OWNER="$withval"
7a197a62
AK
8411fi
8412
68f2de6d
AK
8413{ echo "$as_me:$LINENO: result: $OWNER" >&5
8414echo "${ECHO_T}$OWNER" >&6; }
ad6254c5 8415
d0191583
JM
8416if test x$OWNER != x; then
8417 OWNER="-o $OWNER"
ad6254c5
AK
8418fi
8419
8420################################################################################
68f2de6d
AK
8421{ echo "$as_me:$LINENO: checking group owner" >&5
8422echo $ECHO_N "checking group owner... $ECHO_C" >&6; }
d0191583 8423GROUP="root"
ad6254c5 8424
d0191583
JM
8425# Check whether --with-group was given.
8426if test "${with_group+set}" = set; then
8427 withval=$with_group; GROUP="$withval"
7a197a62
AK
8428fi
8429
68f2de6d
AK
8430{ echo "$as_me:$LINENO: result: $GROUP" >&5
8431echo "${ECHO_T}$GROUP" >&6; }
d0191583
JM
8432
8433if test x$GROUP != x; then
8434 GROUP="-g $GROUP"
8435fi
ad6254c5 8436
93bd259b
AK
8437################################################################################
8438{ echo "$as_me:$LINENO: checking device node mode" >&5
8439echo $ECHO_N "checking device node mode... $ECHO_C" >&6; }
8440
8441
8442# Check whether --with-device-mode was given.
8443if test "${with_device_mode+set}" = set; then
8444 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
8445else
8446 DM_DEVICE_MODE="0600"
8447fi
8448
8449{ echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
8450echo "${ECHO_T}$DM_DEVICE_MODE" >&6; }
8451
ad6254c5 8452################################################################################
68f2de6d
AK
8453{ echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
8454echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6; }
d0191583
JM
8455# Check whether --enable-lvm1_fallback was given.
8456if test "${enable_lvm1_fallback+set}" = set; then
8457 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
8458else
8459 LVM1_FALLBACK=no
7a197a62
AK
8460fi
8461
68f2de6d
AK
8462{ echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
8463echo "${ECHO_T}$LVM1_FALLBACK" >&6; }
ad6254c5 8464
d0191583 8465if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
8466
8467cat >>confdefs.h <<\_ACEOF
d0191583 8468#define LVM1_FALLBACK 1
72b2cb61
AK
8469_ACEOF
8470
ad6254c5
AK
8471fi
8472
8473################################################################################
68f2de6d
AK
8474{ echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
8475echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6; }
d0191583
JM
8476
8477# Check whether --with-lvm1 was given.
8478if test "${with_lvm1+set}" = set; then
8479 withval=$with_lvm1; LVM1="$withval"
8480else
8481 LVM1="internal"
7a197a62
AK
8482fi
8483
68f2de6d
AK
8484{ echo "$as_me:$LINENO: result: $LVM1" >&5
8485echo "${ECHO_T}$LVM1" >&6; }
ad6254c5 8486
d0191583 8487if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
68f2de6d 8488 then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 8489" >&5
68f2de6d 8490echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
8491" >&2;}
8492 { (exit 1); exit 1; }; }
8493fi;
8494
8495if test x$LVM1 = xinternal; then
72b2cb61
AK
8496
8497cat >>confdefs.h <<\_ACEOF
d0191583 8498#define LVM1_INTERNAL 1
72b2cb61
AK
8499_ACEOF
8500
ad6254c5
AK
8501fi
8502
8503################################################################################
68f2de6d
AK
8504{ echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
8505echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6; }
d0191583
JM
8506
8507# Check whether --with-pool was given.
8508if test "${with_pool+set}" = set; then
8509 withval=$with_pool; POOL="$withval"
ad6254c5 8510else
d0191583 8511 POOL="internal"
7a197a62
AK
8512fi
8513
68f2de6d
AK
8514{ echo "$as_me:$LINENO: result: $POOL" >&5
8515echo "${ECHO_T}$POOL" >&6; }
ad6254c5 8516
d0191583 8517if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
68f2de6d 8518 then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 8519" >&5
68f2de6d 8520echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
8521" >&2;}
8522 { (exit 1); exit 1; }; }
8523fi;
7a197a62 8524
d0191583
JM
8525if test x$POOL = xinternal; then
8526
8527cat >>confdefs.h <<\_ACEOF
8528#define POOL_INTERNAL 1
8529_ACEOF
8530
8531fi
ad6254c5 8532
06f62ad1 8533################################################################################
68f2de6d
AK
8534{ echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
8535echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6; }
d0191583
JM
8536
8537# Check whether --with-cluster was given.
8538if test "${with_cluster+set}" = set; then
8539 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
8540fi
8541
68f2de6d
AK
8542{ echo "$as_me:$LINENO: result: $CLUSTER" >&5
8543echo "${ECHO_T}$CLUSTER" >&6; }
06f62ad1 8544
d0191583 8545if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
68f2de6d 8546 then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 8547" >&5
68f2de6d 8548echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
8549" >&2;}
8550 { (exit 1); exit 1; }; }
d0191583 8551fi;
06f62ad1 8552
d0191583 8553if test x$CLUSTER = xinternal; then
72b2cb61
AK
8554
8555cat >>confdefs.h <<\_ACEOF
d0191583 8556#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
8557_ACEOF
8558
15d91f5a 8559fi
ad6254c5
AK
8560
8561################################################################################
68f2de6d
AK
8562{ echo "$as_me:$LINENO: checking whether to include snapshots" >&5
8563echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6; }
ad6254c5 8564
d0191583
JM
8565# Check whether --with-snapshots was given.
8566if test "${with_snapshots+set}" = set; then
8567 withval=$with_snapshots; SNAPSHOTS="$withval"
8568else
8569 SNAPSHOTS="internal"
ad6254c5
AK
8570fi
8571
68f2de6d
AK
8572{ echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
8573echo "${ECHO_T}$SNAPSHOTS" >&6; }
ad6254c5 8574
d0191583 8575if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
68f2de6d 8576 then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 8577" >&5
68f2de6d 8578echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
8579" >&2;}
8580 { (exit 1); exit 1; }; }
8581fi;
8582
8583if test x$SNAPSHOTS = xinternal; then
8584
8585cat >>confdefs.h <<\_ACEOF
8586#define SNAPSHOT_INTERNAL 1
8587_ACEOF
ad6254c5 8588
ad6254c5 8589fi
7a197a62 8590
d0191583 8591################################################################################
68f2de6d
AK
8592{ echo "$as_me:$LINENO: checking whether to include mirrors" >&5
8593echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6; }
d0191583
JM
8594
8595# Check whether --with-mirrors was given.
8596if test "${with_mirrors+set}" = set; then
8597 withval=$with_mirrors; MIRRORS="$withval"
8598else
8599 MIRRORS="internal"
ad6254c5 8600fi
ad6254c5 8601
68f2de6d
AK
8602{ echo "$as_me:$LINENO: result: $MIRRORS" >&5
8603echo "${ECHO_T}$MIRRORS" >&6; }
ad6254c5 8604
d0191583 8605if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
68f2de6d 8606 then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 8607" >&5
68f2de6d 8608echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
8609" >&2;}
8610 { (exit 1); exit 1; }; }
8611fi;
ad6254c5 8612
d0191583 8613if test x$MIRRORS = xinternal; then
ad6254c5 8614
d0191583
JM
8615cat >>confdefs.h <<\_ACEOF
8616#define MIRRORED_INTERNAL 1
ad6254c5 8617_ACEOF
8a2fc586 8618
d0191583 8619fi
8a2fc586 8620
d0191583 8621################################################################################
68f2de6d
AK
8622{ echo "$as_me:$LINENO: checking whether to enable readline" >&5
8623echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6; }
d0191583
JM
8624# Check whether --enable-readline was given.
8625if test "${enable_readline+set}" = set; then
8626 enableval=$enable_readline; READLINE=$enableval
8627else
06e459df 8628 READLINE=maybe
d0191583 8629fi
8a2fc586 8630
68f2de6d
AK
8631{ echo "$as_me:$LINENO: result: $READLINE" >&5
8632echo "${ECHO_T}$READLINE" >&6; }
8a2fc586 8633
d0191583 8634################################################################################
68f2de6d
AK
8635{ echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
8636echo $ECHO_N "checking whether to enable realtime support... $ECHO_C" >&6; }
d0191583
JM
8637# Check whether --enable-realtime was given.
8638if test "${enable_realtime+set}" = set; then
8639 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 8640fi
ad6254c5 8641
68f2de6d
AK
8642{ echo "$as_me:$LINENO: result: $REALTIME" >&5
8643echo "${ECHO_T}$REALTIME" >&6; }
d0191583
JM
8644
8645################################################################################
68f2de6d
AK
8646{ echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
8647echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6; }
d0191583
JM
8648
8649# Check whether --with-clvmd was given.
8650if test "${with_clvmd+set}" = set; then
8651 withval=$with_clvmd; CLVMD="$withval"
ad6254c5 8652else
d0191583
JM
8653 CLVMD="none"
8654fi
8a2fc586 8655
d0191583
JM
8656if test x$CLVMD = xyes; then
8657 CLVMD=all
8658fi
68f2de6d
AK
8659{ echo "$as_me:$LINENO: result: $CLVMD" >&5
8660echo "${ECHO_T}$CLVMD" >&6; }
8a2fc586 8661
d0191583
JM
8662if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
8663 CLUSTER=internal
8664fi
8a2fc586 8665
d0191583 8666################################################################################
68f2de6d
AK
8667{ echo "$as_me:$LINENO: checking whether to enable debugging" >&5
8668echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; }
d0191583
JM
8669# Check whether --enable-debug was given.
8670if test "${enable_debug+set}" = set; then
8671 enableval=$enable_debug; DEBUG=$enableval
8672else
8673 DEBUG=no
8674fi
8a2fc586 8675
68f2de6d
AK
8676{ echo "$as_me:$LINENO: result: $DEBUG" >&5
8677echo "${ECHO_T}$DEBUG" >&6; }
ad6254c5 8678
d0191583
JM
8679if test x$DEBUG = xyes; then
8680 COPTIMISE_FLAG=
fc54be10 8681else
d0191583
JM
8682 CSCOPE_CMD=
8683fi
fc54be10 8684
d0191583 8685################################################################################
68f2de6d
AK
8686{ echo "$as_me:$LINENO: checking for C optimisation flag" >&5
8687echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6; }
d0191583
JM
8688
8689# Check whether --with-optimisation was given.
8690if test "${with_optimisation+set}" = set; then
8691 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
8692fi
8693
68f2de6d
AK
8694{ echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
8695echo "${ECHO_T}$COPTIMISE_FLAG" >&6; }
fddafd51
ZK
8696
8697################################################################################
68f2de6d
AK
8698{ echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
8699echo $ECHO_N "checking whether to gather gcov profiling data... $ECHO_C" >&6; }
fddafd51
ZK
8700# Check whether --enable-profiling was given.
8701if test "${enable_profiling+set}" = set; then
5556819a 8702 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 8703else
5556819a 8704 PROFILING=no
fddafd51
ZK
8705fi
8706
68f2de6d
AK
8707{ echo "$as_me:$LINENO: result: $PROFILING" >&5
8708echo "${ECHO_T}$PROFILING" >&6; }
5556819a
AK
8709
8710if test "x$PROFILING" = xyes; then
8711 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8712 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 8713set dummy lcov; ac_word=$2
68f2de6d
AK
8714{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fddafd51 8716if test "${ac_cv_path_LCOV+set}" = set; then
68f2de6d 8717 echo $ECHO_N "(cached) $ECHO_C" >&6
fddafd51
ZK
8718else
8719 case $LCOV in
8720 [\\/]* | ?:[\\/]*)
8721 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8722 ;;
8723 *)
8724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8725for as_dir in $PATH
8726do
8727 IFS=$as_save_IFS
8728 test -z "$as_dir" && as_dir=.
8729 for ac_exec_ext in '' $ac_executable_extensions; do
8730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8731 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 8732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
8733 break 2
8734 fi
8735done
8736done
8737IFS=$as_save_IFS
8738
b145d876 8739 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
fddafd51
ZK
8740 ;;
8741esac
8742fi
8743LCOV=$ac_cv_path_LCOV
8744if test -n "$LCOV"; then
68f2de6d
AK
8745 { echo "$as_me:$LINENO: result: $LCOV" >&5
8746echo "${ECHO_T}$LCOV" >&6; }
fddafd51 8747else
68f2de6d
AK
8748 { echo "$as_me:$LINENO: result: no" >&5
8749echo "${ECHO_T}no" >&6; }
fddafd51
ZK
8750fi
8751
8752
5556819a 8753 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 8754set dummy genhtml; ac_word=$2
68f2de6d
AK
8755{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fddafd51 8757if test "${ac_cv_path_GENHTML+set}" = set; then
68f2de6d 8758 echo $ECHO_N "(cached) $ECHO_C" >&6
fddafd51
ZK
8759else
8760 case $GENHTML in
8761 [\\/]* | ?:[\\/]*)
8762 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8763 ;;
8764 *)
8765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8766for as_dir in $PATH
8767do
8768 IFS=$as_save_IFS
8769 test -z "$as_dir" && as_dir=.
8770 for ac_exec_ext in '' $ac_executable_extensions; do
8771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8772 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 8773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
8774 break 2
8775 fi
8776done
8777done
8778IFS=$as_save_IFS
8779
b145d876 8780 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
fddafd51
ZK
8781 ;;
8782esac
8783fi
8784GENHTML=$ac_cv_path_GENHTML
8785if test -n "$GENHTML"; then
68f2de6d
AK
8786 { echo "$as_me:$LINENO: result: $GENHTML" >&5
8787echo "${ECHO_T}$GENHTML" >&6; }
fddafd51 8788else
68f2de6d
AK
8789 { echo "$as_me:$LINENO: result: no" >&5
8790echo "${ECHO_T}no" >&6; }
fddafd51
ZK
8791fi
8792
8793
b145d876 8794 if test "$LCOV" = no -o "$GENHTML" = no ; then
68f2de6d
AK
8795 { { echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
8796echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
8797 { (exit 1); exit 1; }; }
8798 fi
5556819a 8799fi
d0191583
JM
8800
8801################################################################################
68f2de6d
AK
8802{ echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
8803echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6; }
d0191583
JM
8804# Check whether --enable-devmapper was given.
8805if test "${enable_devmapper+set}" = set; then
8806 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
8807fi
8808
68f2de6d
AK
8809{ echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
8810echo "${ECHO_T}$DEVMAPPER" >&6; }
d0191583
JM
8811
8812if test x$DEVMAPPER = xyes; then
ad6254c5
AK
8813
8814cat >>confdefs.h <<\_ACEOF
d0191583 8815#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
8816_ACEOF
8817
8818fi
8819
93bd259b
AK
8820################################################################################
8821# Check whether --enable-compat was given.
8822if test "${enable_compat+set}" = set; then
8823 enableval=$enable_compat; DM_COMPAT=$enableval
8824else
8825 DM_COMPAT=no
8826fi
8827
8828
8829################################################################################
8830# Check whether --enable-ioctl was given.
8831if test "${enable_ioctl+set}" = set; then
8832 enableval=$enable_ioctl; DM_IOCTLS=$enableval
8833fi
8834
8835
d0191583 8836################################################################################
68f2de6d
AK
8837{ echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
8838echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6; }
d0191583
JM
8839# Check whether --enable-o_direct was given.
8840if test "${enable_o_direct+set}" = set; then
8841 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 8842fi
ad6254c5 8843
68f2de6d
AK
8844{ echo "$as_me:$LINENO: result: $ODIRECT" >&5
8845echo "${ECHO_T}$ODIRECT" >&6; }
ad6254c5 8846
d0191583 8847if test x$ODIRECT = xyes; then
ad6254c5 8848
d0191583
JM
8849cat >>confdefs.h <<\_ACEOF
8850#define O_DIRECT_SUPPORT 1
8851_ACEOF
ad6254c5 8852
d0191583 8853fi
ad6254c5 8854
d0191583 8855################################################################################
68f2de6d
AK
8856{ echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
8857echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6; }
d0191583
JM
8858# Check whether --enable-cmdlib was given.
8859if test "${enable_cmdlib+set}" = set; then
8860 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 8861else
d0191583
JM
8862 CMDLIB=no
8863fi
8a2fc586 8864
68f2de6d
AK
8865{ echo "$as_me:$LINENO: result: $CMDLIB" >&5
8866echo "${ECHO_T}$CMDLIB" >&6; }
8a2fc586 8867
2a9a80c9 8868test x$CMDLIB = xyes \
d179cc7a
JM
8869 && LVM2CMD_LIB=-llvm2cmd \
8870 || LVM2CMD_LIB=
8871
93bd259b
AK
8872################################################################################
8873# Check whether --enable-pkgconfig was given.
8874if test "${enable_pkgconfig+set}" = set; then
8875 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
8876else
8877 PKGCONFIG=no
8878fi
8879
2a9a80c9 8880
d0191583 8881################################################################################
68f2de6d
AK
8882{ echo "$as_me:$LINENO: checking whether to install fsadm" >&5
8883echo $ECHO_N "checking whether to install fsadm... $ECHO_C" >&6; }
d0191583
JM
8884# Check whether --enable-fsadm was given.
8885if test "${enable_fsadm+set}" = set; then
8886 enableval=$enable_fsadm; FSADM=$enableval
8887fi
8a2fc586 8888
68f2de6d
AK
8889{ echo "$as_me:$LINENO: result: $FSADM" >&5
8890echo "${ECHO_T}$FSADM" >&6; }
8a2fc586 8891
d0191583 8892################################################################################
68f2de6d
AK
8893{ echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
8894echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6; }
d0191583
JM
8895# Check whether --enable-dmeventd was given.
8896if test "${enable_dmeventd+set}" = set; then
8897 enableval=$enable_dmeventd; DMEVENTD=$enableval
8898fi
ad6254c5 8899
68f2de6d
AK
8900{ echo "$as_me:$LINENO: result: $DMEVENTD" >&5
8901echo "${ECHO_T}$DMEVENTD" >&6; }
ad6254c5 8902
93bd259b
AK
8903BUILD_DMEVENTD=$DMEVENTD
8904
2a9a80c9
PR
8905if test x$DMEVENTD = xyes; then
8906 if test x$MIRRORS != xinternal; then
68f2de6d 8907 { { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 8908 " >&5
68f2de6d 8909echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 8910 " >&2;}
d0191583 8911 { (exit 1); exit 1; }; }
2a9a80c9
PR
8912 fi
8913 if test x$CMDLIB = xno; then
68f2de6d 8914 { { echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 8915 " >&5
68f2de6d 8916echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
8917 " >&2;}
8918 { (exit 1); exit 1; }; }
8919 fi
ad6254c5 8920fi
7a197a62 8921
d0191583
JM
8922if test x$DMEVENTD = xyes; then
8923
8924cat >>confdefs.h <<\_ACEOF
8925#define DMEVENTD 1
ad6254c5
AK
8926_ACEOF
8927
ad6254c5 8928fi
93bd259b
AK
8929
8930################################################################################
8931
8932{ echo "$as_me:$LINENO: checking for getline in -lc" >&5
8933echo $ECHO_N "checking for getline in -lc... $ECHO_C" >&6; }
8934if test "${ac_cv_lib_c_getline+set}" = set; then
8935 echo $ECHO_N "(cached) $ECHO_C" >&6
8936else
8937 ac_check_lib_save_LIBS=$LIBS
8938LIBS="-lc $LIBS"
8939cat >conftest.$ac_ext <<_ACEOF
8940/* confdefs.h. */
8941_ACEOF
8942cat confdefs.h >>conftest.$ac_ext
8943cat >>conftest.$ac_ext <<_ACEOF
8944/* end confdefs.h. */
8945
8946/* Override any GCC internal prototype to avoid an error.
8947 Use char because int might match the return type of a GCC
8948 builtin and then its argument prototype would still apply. */
8949#ifdef __cplusplus
8950extern "C"
8951#endif
8952char getline ();
8953int
8954main ()
8955{
8956return getline ();
8957 ;
8958 return 0;
8959}
8960_ACEOF
8961rm -f conftest.$ac_objext conftest$ac_exeext
8962if { (ac_try="$ac_link"
8963case "(($ac_try" in
8964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8965 *) ac_try_echo=$ac_try;;
8966esac
8967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8968 (eval "$ac_link") 2>conftest.er1
8969 ac_status=$?
8970 grep -v '^ *+' conftest.er1 >conftest.err
8971 rm -f conftest.er1
8972 cat conftest.err >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } && {
8975 test -z "$ac_c_werror_flag" ||
8976 test ! -s conftest.err
8977 } && test -s conftest$ac_exeext &&
8978 $as_test_x conftest$ac_exeext; then
8979 ac_cv_lib_c_getline=yes
8980else
8981 echo "$as_me: failed program was:" >&5
8982sed 's/^/| /' conftest.$ac_ext >&5
8983
8984 ac_cv_lib_c_getline=no
8985fi
8986
8987rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8988 conftest$ac_exeext conftest.$ac_ext
8989LIBS=$ac_check_lib_save_LIBS
8990fi
8991{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
8992echo "${ECHO_T}$ac_cv_lib_c_getline" >&6; }
8993if test $ac_cv_lib_c_getline = yes; then
8994
8995cat >>confdefs.h <<\_ACEOF
8996#define HAVE_GETLINE 1
8997_ACEOF
8998
8999fi
9000
9001
9002################################################################################
9003
9004{ echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
9005echo $ECHO_N "checking for canonicalize_file_name in -lc... $ECHO_C" >&6; }
9006if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
9007 echo $ECHO_N "(cached) $ECHO_C" >&6
9008else
9009 ac_check_lib_save_LIBS=$LIBS
9010LIBS="-lc $LIBS"
9011cat >conftest.$ac_ext <<_ACEOF
9012/* confdefs.h. */
9013_ACEOF
9014cat confdefs.h >>conftest.$ac_ext
9015cat >>conftest.$ac_ext <<_ACEOF
9016/* end confdefs.h. */
9017
9018/* Override any GCC internal prototype to avoid an error.
9019 Use char because int might match the return type of a GCC
9020 builtin and then its argument prototype would still apply. */
9021#ifdef __cplusplus
9022extern "C"
9023#endif
9024char canonicalize_file_name ();
9025int
9026main ()
9027{
9028return canonicalize_file_name ();
9029 ;
9030 return 0;
9031}
9032_ACEOF
9033rm -f conftest.$ac_objext conftest$ac_exeext
9034if { (ac_try="$ac_link"
9035case "(($ac_try" in
9036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037 *) ac_try_echo=$ac_try;;
9038esac
9039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9040 (eval "$ac_link") 2>conftest.er1
9041 ac_status=$?
9042 grep -v '^ *+' conftest.er1 >conftest.err
9043 rm -f conftest.er1
9044 cat conftest.err >&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); } && {
9047 test -z "$ac_c_werror_flag" ||
9048 test ! -s conftest.err
9049 } && test -s conftest$ac_exeext &&
9050 $as_test_x conftest$ac_exeext; then
9051 ac_cv_lib_c_canonicalize_file_name=yes
9052else
9053 echo "$as_me: failed program was:" >&5
9054sed 's/^/| /' conftest.$ac_ext >&5
9055
9056 ac_cv_lib_c_canonicalize_file_name=no
9057fi
9058
9059rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9060 conftest$ac_exeext conftest.$ac_ext
9061LIBS=$ac_check_lib_save_LIBS
9062fi
9063{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9064echo "${ECHO_T}$ac_cv_lib_c_canonicalize_file_name" >&6; }
9065if test $ac_cv_lib_c_canonicalize_file_name = yes; then
9066
9067cat >>confdefs.h <<\_ACEOF
9068#define HAVE_CANONICALIZE_FILE_NAME 1
9069_ACEOF
9070
9071fi
9072
9073
d0191583
JM
9074################################################################################
9075if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9076 then exec_prefix="";
9077fi;
ad6254c5
AK
9078
9079################################################################################
06e459df 9080if test x$READLINE != xno; then
68f2de6d
AK
9081 { echo "$as_me:$LINENO: checking for library containing tgetent" >&5
9082echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
ad6254c5 9083if test "${ac_cv_search_tgetent+set}" = set; then
68f2de6d 9084 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9085else
9086 ac_func_search_save_LIBS=$LIBS
ad6254c5 9087cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9088/* confdefs.h. */
9089_ACEOF
9090cat confdefs.h >>conftest.$ac_ext
9091cat >>conftest.$ac_ext <<_ACEOF
9092/* end confdefs.h. */
9093
7a197a62
AK
9094/* Override any GCC internal prototype to avoid an error.
9095 Use char because int might match the return type of a GCC
9096 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9097#ifdef __cplusplus
9098extern "C"
9099#endif
ad6254c5
AK
9100char tgetent ();
9101int
9102main ()
9103{
7a197a62 9104return tgetent ();
ad6254c5
AK
9105 ;
9106 return 0;
9107}
9108_ACEOF
7a197a62
AK
9109for ac_lib in '' ncurses curses termcap termlib; do
9110 if test -z "$ac_lib"; then
9111 ac_res="none required"
9112 else
9113 ac_res=-l$ac_lib
9114 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9115 fi
9116 rm -f conftest.$ac_objext conftest$ac_exeext
9117if { (ac_try="$ac_link"
9118case "(($ac_try" in
9119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120 *) ac_try_echo=$ac_try;;
9121esac
68f2de6d 9122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9123 (eval "$ac_link") 2>conftest.er1
ad6254c5 9124 ac_status=$?
8a2fc586
AK
9125 grep -v '^ *+' conftest.er1 >conftest.err
9126 rm -f conftest.er1
9127 cat conftest.err >&5
68f2de6d 9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9129 (exit $ac_status); } && {
9130 test -z "$ac_c_werror_flag" ||
9131 test ! -s conftest.err
68f2de6d
AK
9132 } && test -s conftest$ac_exeext &&
9133 $as_test_x conftest$ac_exeext; then
7a197a62 9134 ac_cv_search_tgetent=$ac_res
ad6254c5 9135else
68f2de6d 9136 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9137sed 's/^/| /' conftest.$ac_ext >&5
9138
ad6254c5 9139
7a197a62 9140fi
ad6254c5 9141
25fbec5b 9142rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7a197a62
AK
9143 conftest$ac_exeext
9144 if test "${ac_cv_search_tgetent+set}" = set; then
9145 break
ad6254c5 9146fi
7a197a62
AK
9147done
9148if test "${ac_cv_search_tgetent+set}" = set; then
9149 :
9150else
9151 ac_cv_search_tgetent=no
ad6254c5 9152fi
7a197a62 9153rm conftest.$ac_ext
ad6254c5
AK
9154LIBS=$ac_func_search_save_LIBS
9155fi
68f2de6d
AK
9156{ echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
9157echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
7a197a62
AK
9158ac_res=$ac_cv_search_tgetent
9159if test "$ac_res" != no; then
9160 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
06e459df 9161 tg_found=yes
ad6254c5 9162else
06e459df
JM
9163 tg_found=no
9164fi
9165
9166 test x$READLINE:$tg_found = xyes:no &&
68f2de6d 9167 { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the
ad6254c5
AK
9168--enable-readline option (which is enabled by default). Either disable readline
9169support with --disable-readline or download and install termcap from:
9170 ftp.gnu.org/gnu/termcap
9171Note: if you are using precompiled packages you will also need the development
9172 package as well (which may be called termcap-devel or something similar).
9173Note: (n)curses also seems to work as a substitute for termcap. This was
9174 not found either - but you could try installing that as well.
9175" >&5
68f2de6d 9176echo "$as_me: error: termcap could not be found which is required for the
ad6254c5
AK
9177--enable-readline option (which is enabled by default). Either disable readline
9178support with --disable-readline or download and install termcap from:
9179 ftp.gnu.org/gnu/termcap
9180Note: if you are using precompiled packages you will also need the development
9181 package as well (which may be called termcap-devel or something similar).
9182Note: (n)curses also seems to work as a substitute for termcap. This was
9183 not found either - but you could try installing that as well.
9184" >&2;}
9185 { (exit 1); exit 1; }; }
ad6254c5
AK
9186fi
9187
9188################################################################################
68f2de6d
AK
9189{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9190echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
ad6254c5 9191if test "${ac_cv_lib_dl_dlopen+set}" = set; then
68f2de6d 9192 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9193else
9194 ac_check_lib_save_LIBS=$LIBS
9195LIBS="-ldl $LIBS"
9196cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9197/* confdefs.h. */
9198_ACEOF
9199cat confdefs.h >>conftest.$ac_ext
9200cat >>conftest.$ac_ext <<_ACEOF
9201/* end confdefs.h. */
9202
7a197a62
AK
9203/* Override any GCC internal prototype to avoid an error.
9204 Use char because int might match the return type of a GCC
9205 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9206#ifdef __cplusplus
9207extern "C"
9208#endif
ad6254c5
AK
9209char dlopen ();
9210int
9211main ()
9212{
7a197a62 9213return dlopen ();
ad6254c5
AK
9214 ;
9215 return 0;
9216}
9217_ACEOF
9218rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9219if { (ac_try="$ac_link"
9220case "(($ac_try" in
9221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9222 *) ac_try_echo=$ac_try;;
9223esac
68f2de6d 9224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9225 (eval "$ac_link") 2>conftest.er1
ad6254c5 9226 ac_status=$?
8a2fc586
AK
9227 grep -v '^ *+' conftest.er1 >conftest.err
9228 rm -f conftest.er1
9229 cat conftest.err >&5
68f2de6d 9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9231 (exit $ac_status); } && {
9232 test -z "$ac_c_werror_flag" ||
9233 test ! -s conftest.err
68f2de6d
AK
9234 } && test -s conftest$ac_exeext &&
9235 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
9236 ac_cv_lib_dl_dlopen=yes
9237else
68f2de6d 9238 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9239sed 's/^/| /' conftest.$ac_ext >&5
9240
7a197a62 9241 ac_cv_lib_dl_dlopen=no
ad6254c5 9242fi
7a197a62 9243
25fbec5b 9244rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9245 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9246LIBS=$ac_check_lib_save_LIBS
9247fi
68f2de6d
AK
9248{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9249echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
ad6254c5
AK
9250if test $ac_cv_lib_dl_dlopen = yes; then
9251 HAVE_LIBDL=yes
9252else
9253 HAVE_LIBDL=no
9254fi
9255
9256
7e9e9502 9257if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
9258
9259cat >>confdefs.h <<\_ACEOF
9260#define HAVE_LIBDL 1
9261_ACEOF
9262
ad6254c5
AK
9263 LIBS="-ldl $LIBS"
9264else
9265 HAVE_LIBDL=no
9266fi
9267
9268################################################################################
9269if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9270 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
9271 \) -a "x$STATIC_LINK" = xyes ];
68f2de6d 9272 then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 9273" >&5
68f2de6d 9274echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
9275" >&2;}
9276 { (exit 1); exit 1; }; }
9277fi
9278
d0191583 9279################################################################################
68f2de6d
AK
9280{ echo "$as_me:$LINENO: checking whether to use static linking" >&5
9281echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6; }
d0191583
JM
9282# Check whether --enable-static_link was given.
9283if test "${enable_static_link+set}" = set; then
9284 enableval=$enable_static_link; STATIC_LINK=$enableval
9285else
9286 STATIC_LINK=no
9287fi
9288
68f2de6d
AK
9289{ echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
9290echo "${ECHO_T}$STATIC_LINK" >&6; }
d0191583
JM
9291
9292################################################################################
68f2de6d
AK
9293{ echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
9294echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6; }
d0191583
JM
9295# Check whether --enable-selinux was given.
9296if test "${enable_selinux+set}" = set; then
9297 enableval=$enable_selinux; SELINUX=$enableval
9298fi
9299
68f2de6d
AK
9300{ echo "$as_me:$LINENO: result: $SELINUX" >&5
9301echo "${ECHO_T}$SELINUX" >&6; }
d0191583 9302
ad6254c5
AK
9303################################################################################
9304if test x$SELINUX = xyes; then
68f2de6d
AK
9305 { echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
9306echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6; }
8a2fc586 9307if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
68f2de6d 9308 echo $ECHO_N "(cached) $ECHO_C" >&6
8a2fc586
AK
9309else
9310 ac_check_lib_save_LIBS=$LIBS
9311LIBS="-lsepol $LIBS"
9312cat >conftest.$ac_ext <<_ACEOF
9313/* confdefs.h. */
9314_ACEOF
9315cat confdefs.h >>conftest.$ac_ext
9316cat >>conftest.$ac_ext <<_ACEOF
9317/* end confdefs.h. */
9318
7a197a62
AK
9319/* Override any GCC internal prototype to avoid an error.
9320 Use char because int might match the return type of a GCC
9321 builtin and then its argument prototype would still apply. */
8a2fc586
AK
9322#ifdef __cplusplus
9323extern "C"
9324#endif
8a2fc586
AK
9325char sepol_check_context ();
9326int
9327main ()
9328{
7a197a62 9329return sepol_check_context ();
8a2fc586
AK
9330 ;
9331 return 0;
9332}
9333_ACEOF
9334rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9335if { (ac_try="$ac_link"
9336case "(($ac_try" in
9337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338 *) ac_try_echo=$ac_try;;
9339esac
68f2de6d 9340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9341 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
9342 ac_status=$?
9343 grep -v '^ *+' conftest.er1 >conftest.err
9344 rm -f conftest.er1
9345 cat conftest.err >&5
68f2de6d 9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9347 (exit $ac_status); } && {
9348 test -z "$ac_c_werror_flag" ||
9349 test ! -s conftest.err
68f2de6d
AK
9350 } && test -s conftest$ac_exeext &&
9351 $as_test_x conftest$ac_exeext; then
8a2fc586
AK
9352 ac_cv_lib_sepol_sepol_check_context=yes
9353else
68f2de6d 9354 echo "$as_me: failed program was:" >&5
8a2fc586
AK
9355sed 's/^/| /' conftest.$ac_ext >&5
9356
7a197a62 9357 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 9358fi
7a197a62 9359
25fbec5b 9360rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
9361 conftest$ac_exeext conftest.$ac_ext
9362LIBS=$ac_check_lib_save_LIBS
9363fi
68f2de6d
AK
9364{ echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9365echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6; }
8a2fc586
AK
9366if test $ac_cv_lib_sepol_sepol_check_context = yes; then
9367 HAVE_SEPOL=yes
9368else
9369 HAVE_SEPOL=no
9370fi
9371
8a2fc586
AK
9372
9373 if test x$HAVE_SEPOL = xyes; then
d0191583
JM
9374
9375cat >>confdefs.h <<\_ACEOF
9376#define HAVE_SEPOL 1
9377_ACEOF
9378
8a2fc586
AK
9379 LIBS="-lsepol $LIBS"
9380 fi
9381
68f2de6d
AK
9382 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
9383echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
ad6254c5 9384if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
68f2de6d 9385 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9386else
9387 ac_check_lib_save_LIBS=$LIBS
9388LIBS="-lselinux $LIBS"
9389cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9390/* confdefs.h. */
9391_ACEOF
9392cat confdefs.h >>conftest.$ac_ext
9393cat >>conftest.$ac_ext <<_ACEOF
9394/* end confdefs.h. */
9395
7a197a62
AK
9396/* Override any GCC internal prototype to avoid an error.
9397 Use char because int might match the return type of a GCC
9398 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9399#ifdef __cplusplus
9400extern "C"
9401#endif
ad6254c5
AK
9402char is_selinux_enabled ();
9403int
9404main ()
9405{
7a197a62 9406return is_selinux_enabled ();
ad6254c5
AK
9407 ;
9408 return 0;
9409}
9410_ACEOF
9411rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9412if { (ac_try="$ac_link"
9413case "(($ac_try" in
9414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9415 *) ac_try_echo=$ac_try;;
9416esac
68f2de6d 9417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9418 (eval "$ac_link") 2>conftest.er1
ad6254c5 9419 ac_status=$?
8a2fc586
AK
9420 grep -v '^ *+' conftest.er1 >conftest.err
9421 rm -f conftest.er1
9422 cat conftest.err >&5
68f2de6d 9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9424 (exit $ac_status); } && {
9425 test -z "$ac_c_werror_flag" ||
9426 test ! -s conftest.err
68f2de6d
AK
9427 } && test -s conftest$ac_exeext &&
9428 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
9429 ac_cv_lib_selinux_is_selinux_enabled=yes
9430else
68f2de6d 9431 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9432sed 's/^/| /' conftest.$ac_ext >&5
9433
7a197a62 9434 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 9435fi
7a197a62 9436
25fbec5b 9437rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9438 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9439LIBS=$ac_check_lib_save_LIBS
9440fi
68f2de6d
AK
9441{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9442echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
ad6254c5
AK
9443if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
9444 HAVE_SELINUX=yes
9445else
9446 HAVE_SELINUX=no
9447fi
9448
ad6254c5
AK
9449
9450 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
9451
9452cat >>confdefs.h <<\_ACEOF
9453#define HAVE_SELINUX 1
9454_ACEOF
9455
ad6254c5
AK
9456 LIBS="-lselinux $LIBS"
9457 else
68f2de6d
AK
9458 { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
9459echo "$as_me: WARNING: Disabling selinux" >&2;}
66e941e8
JM
9460 fi
9461
d0191583 9462 # With --enable-static_link and selinux enabled, linking
66e941e8
JM
9463 # fails on at least Debian unstable due to unsatisfied references
9464 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
9465 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
9466 lvm_saved_libs=$LIBS
9467 LIBS="$LIBS -static"
68f2de6d
AK
9468 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9469echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
66e941e8 9470if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
68f2de6d 9471 echo $ECHO_N "(cached) $ECHO_C" >&6
66e941e8
JM
9472else
9473 ac_func_search_save_LIBS=$LIBS
9474cat >conftest.$ac_ext <<_ACEOF
9475/* confdefs.h. */
9476_ACEOF
9477cat confdefs.h >>conftest.$ac_ext
9478cat >>conftest.$ac_ext <<_ACEOF
9479/* end confdefs.h. */
9480
9481/* Override any GCC internal prototype to avoid an error.
9482 Use char because int might match the return type of a GCC
9483 builtin and then its argument prototype would still apply. */
9484#ifdef __cplusplus
9485extern "C"
9486#endif
9487char pthread_mutex_lock ();
9488int
9489main ()
9490{
9491return pthread_mutex_lock ();
9492 ;
9493 return 0;
9494}
9495_ACEOF
9496for ac_lib in '' pthread; do
9497 if test -z "$ac_lib"; then
9498 ac_res="none required"
9499 else
9500 ac_res=-l$ac_lib
9501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9502 fi
9503 rm -f conftest.$ac_objext conftest$ac_exeext
9504if { (ac_try="$ac_link"
9505case "(($ac_try" in
9506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9507 *) ac_try_echo=$ac_try;;
9508esac
68f2de6d 9509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66e941e8
JM
9510 (eval "$ac_link") 2>conftest.er1
9511 ac_status=$?
9512 grep -v '^ *+' conftest.er1 >conftest.err
9513 rm -f conftest.er1
9514 cat conftest.err >&5
68f2de6d 9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9516 (exit $ac_status); } && {
9517 test -z "$ac_c_werror_flag" ||
9518 test ! -s conftest.err
68f2de6d
AK
9519 } && test -s conftest$ac_exeext &&
9520 $as_test_x conftest$ac_exeext; then
66e941e8
JM
9521 ac_cv_search_pthread_mutex_lock=$ac_res
9522else
68f2de6d 9523 echo "$as_me: failed program was:" >&5
66e941e8
JM
9524sed 's/^/| /' conftest.$ac_ext >&5
9525
9526
9527fi
9528
25fbec5b 9529rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66e941e8
JM
9530 conftest$ac_exeext
9531 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9532 break
9533fi
9534done
9535if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9536 :
9537else
9538 ac_cv_search_pthread_mutex_lock=no
9539fi
9540rm conftest.$ac_ext
9541LIBS=$ac_func_search_save_LIBS
9542fi
68f2de6d
AK
9543{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9544echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
66e941e8
JM
9545ac_res=$ac_cv_search_pthread_mutex_lock
9546if test "$ac_res" != no; then
9547 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9548 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
9549 LIB_PTHREAD=-lpthread
9550fi
9551
9552 LIBS=$lvm_saved_libs
ad6254c5
AK
9553 fi
9554fi
9555
8b1a3214
AK
9556################################################################################
9557if test x$REALTIME = xyes; then
68f2de6d
AK
9558 { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
9559echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
8b1a3214 9560if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
68f2de6d 9561 echo $ECHO_N "(cached) $ECHO_C" >&6
8b1a3214
AK
9562else
9563 ac_check_lib_save_LIBS=$LIBS
9564LIBS="-lrt $LIBS"
9565cat >conftest.$ac_ext <<_ACEOF
9566/* confdefs.h. */
9567_ACEOF
9568cat confdefs.h >>conftest.$ac_ext
9569cat >>conftest.$ac_ext <<_ACEOF
9570/* end confdefs.h. */
9571
7a197a62
AK
9572/* Override any GCC internal prototype to avoid an error.
9573 Use char because int might match the return type of a GCC
9574 builtin and then its argument prototype would still apply. */
8b1a3214
AK
9575#ifdef __cplusplus
9576extern "C"
9577#endif
8b1a3214
AK
9578char clock_gettime ();
9579int
9580main ()
9581{
7a197a62 9582return clock_gettime ();
8b1a3214
AK
9583 ;
9584 return 0;
9585}
9586_ACEOF
9587rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9588if { (ac_try="$ac_link"
9589case "(($ac_try" in
9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591 *) ac_try_echo=$ac_try;;
9592esac
68f2de6d 9593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9594 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
9595 ac_status=$?
9596 grep -v '^ *+' conftest.er1 >conftest.err
9597 rm -f conftest.er1
9598 cat conftest.err >&5
68f2de6d 9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9600 (exit $ac_status); } && {
9601 test -z "$ac_c_werror_flag" ||
9602 test ! -s conftest.err
68f2de6d
AK
9603 } && test -s conftest$ac_exeext &&
9604 $as_test_x conftest$ac_exeext; then
8b1a3214
AK
9605 ac_cv_lib_rt_clock_gettime=yes
9606else
68f2de6d 9607 echo "$as_me: failed program was:" >&5
8b1a3214
AK
9608sed 's/^/| /' conftest.$ac_ext >&5
9609
7a197a62 9610 ac_cv_lib_rt_clock_gettime=no
8b1a3214 9611fi
7a197a62 9612
25fbec5b 9613rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
9614 conftest$ac_exeext conftest.$ac_ext
9615LIBS=$ac_check_lib_save_LIBS
9616fi
68f2de6d
AK
9617{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
9618echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
8b1a3214
AK
9619if test $ac_cv_lib_rt_clock_gettime = yes; then
9620 HAVE_REALTIME=yes
9621else
9622 HAVE_REALTIME=no
9623fi
9624
8b1a3214
AK
9625
9626 if test x$HAVE_REALTIME = xyes; then
9627
9628cat >>confdefs.h <<\_ACEOF
9629#define HAVE_REALTIME 1
9630_ACEOF
9631
9632 LIBS="-lrt $LIBS"
9633 else
68f2de6d
AK
9634 { echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
9635echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
9636 fi
9637fi
9638
ad6254c5
AK
9639################################################################################
9640
9641for ac_header in getopt.h
9642do
68f2de6d 9643as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9644if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
9645 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9647if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 9648 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9649fi
68f2de6d
AK
9650ac_res=`eval echo '${'$as_ac_Header'}'`
9651 { echo "$as_me:$LINENO: result: $ac_res" >&5
9652echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9653else
9654 # Is the header compilable?
68f2de6d
AK
9655{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9656echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 9657cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9658/* confdefs.h. */
9659_ACEOF
9660cat confdefs.h >>conftest.$ac_ext
9661cat >>conftest.$ac_ext <<_ACEOF
9662/* end confdefs.h. */
9663$ac_includes_default
9664#include <$ac_header>
9665_ACEOF
9666rm -f conftest.$ac_objext
7a197a62
AK
9667if { (ac_try="$ac_compile"
9668case "(($ac_try" in
9669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670 *) ac_try_echo=$ac_try;;
9671esac
68f2de6d 9672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9673 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9674 ac_status=$?
8a2fc586
AK
9675 grep -v '^ *+' conftest.er1 >conftest.err
9676 rm -f conftest.er1
9677 cat conftest.err >&5
68f2de6d 9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9679 (exit $ac_status); } && {
9680 test -z "$ac_c_werror_flag" ||
9681 test ! -s conftest.err
9682 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9683 ac_header_compiler=yes
9684else
68f2de6d 9685 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9686sed 's/^/| /' conftest.$ac_ext >&5
9687
7a197a62 9688 ac_header_compiler=no
ad6254c5 9689fi
7a197a62
AK
9690
9691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
9692{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9693echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
9694
9695# Is the header present?
68f2de6d
AK
9696{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9697echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 9698cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9699/* confdefs.h. */
9700_ACEOF
9701cat confdefs.h >>conftest.$ac_ext
9702cat >>conftest.$ac_ext <<_ACEOF
9703/* end confdefs.h. */
9704#include <$ac_header>
9705_ACEOF
7a197a62
AK
9706if { (ac_try="$ac_cpp conftest.$ac_ext"
9707case "(($ac_try" in
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9710esac
68f2de6d 9711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9713 ac_status=$?
9714 grep -v '^ *+' conftest.er1 >conftest.err
9715 rm -f conftest.er1
9716 cat conftest.err >&5
68f2de6d 9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9718 (exit $ac_status); } >/dev/null && {
9719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9720 test ! -s conftest.err
9721 }; then
ad6254c5
AK
9722 ac_header_preproc=yes
9723else
68f2de6d 9724 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9725sed 's/^/| /' conftest.$ac_ext >&5
9726
9727 ac_header_preproc=no
9728fi
7a197a62 9729
ad6254c5 9730rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
9731{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9732echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
9733
9734# So? What about this header?
8a2fc586
AK
9735case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9736 yes:no: )
68f2de6d
AK
9737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9738echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9740echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9741 ac_header_preproc=yes
ad6254c5 9742 ;;
8a2fc586 9743 no:yes:* )
68f2de6d
AK
9744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9745echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9747echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9749echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9751echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9753echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9755echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9756
ad6254c5
AK
9757 ;;
9758esac
68f2de6d
AK
9759{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9761if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 9762 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9763else
8a2fc586 9764 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9765fi
68f2de6d
AK
9766ac_res=`eval echo '${'$as_ac_Header'}'`
9767 { echo "$as_me:$LINENO: result: $ac_res" >&5
9768echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9769
9770fi
68f2de6d 9771if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 9772 cat >>confdefs.h <<_ACEOF
68f2de6d 9773#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9774_ACEOF
72b2cb61
AK
9775
9776cat >>confdefs.h <<\_ACEOF
9777#define HAVE_GETOPTLONG 1
9778_ACEOF
9779
ad6254c5
AK
9780fi
9781
9782done
9783
9784
9785################################################################################
06e459df 9786if test x$READLINE != xno; then
bc1024f8
JM
9787 rl_found=yes
9788
68f2de6d
AK
9789{ echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
9790echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
ad6254c5 9791if test "${ac_cv_lib_readline_readline+set}" = set; then
68f2de6d 9792 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9793else
9794 ac_check_lib_save_LIBS=$LIBS
9795LIBS="-lreadline $LIBS"
9796cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9797/* confdefs.h. */
9798_ACEOF
9799cat confdefs.h >>conftest.$ac_ext
9800cat >>conftest.$ac_ext <<_ACEOF
9801/* end confdefs.h. */
9802
7a197a62
AK
9803/* Override any GCC internal prototype to avoid an error.
9804 Use char because int might match the return type of a GCC
9805 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9806#ifdef __cplusplus
9807extern "C"
9808#endif
ad6254c5
AK
9809char readline ();
9810int
9811main ()
9812{
7a197a62 9813return readline ();
ad6254c5
AK
9814 ;
9815 return 0;
9816}
9817_ACEOF
9818rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9819if { (ac_try="$ac_link"
9820case "(($ac_try" in
9821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 *) ac_try_echo=$ac_try;;
9823esac
68f2de6d 9824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9825 (eval "$ac_link") 2>conftest.er1
ad6254c5 9826 ac_status=$?
8a2fc586
AK
9827 grep -v '^ *+' conftest.er1 >conftest.err
9828 rm -f conftest.er1
9829 cat conftest.err >&5
68f2de6d 9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9831 (exit $ac_status); } && {
9832 test -z "$ac_c_werror_flag" ||
9833 test ! -s conftest.err
68f2de6d
AK
9834 } && test -s conftest$ac_exeext &&
9835 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
9836 ac_cv_lib_readline_readline=yes
9837else
68f2de6d 9838 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9839sed 's/^/| /' conftest.$ac_ext >&5
9840
7a197a62 9841 ac_cv_lib_readline_readline=no
ad6254c5 9842fi
7a197a62 9843
25fbec5b 9844rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9845 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9846LIBS=$ac_check_lib_save_LIBS
9847fi
68f2de6d
AK
9848{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
9849echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
ad6254c5 9850if test $ac_cv_lib_readline_readline = yes; then
bc1024f8
JM
9851 cat >>confdefs.h <<_ACEOF
9852#define HAVE_LIBREADLINE 1
9853_ACEOF
9854
9855 LIBS="-lreadline $LIBS"
9856
ad6254c5 9857else
06e459df
JM
9858 rl_found=no
9859fi
9860
9861 test x$READLINE:$rl_found = xyes:no &&
68f2de6d 9862 { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
9863--enable-readline option (which is enabled by default). Either disable readline
9864support with --disable-readline or download and install readline from:
9865 ftp.gnu.org/gnu/readline
9866Note: if you are using precompiled packages you will also need the development
9867package as well (which may be called readline-devel or something similar).
9868" >&5
68f2de6d 9869echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
9870--enable-readline option (which is enabled by default). Either disable readline
9871support with --disable-readline or download and install readline from:
9872 ftp.gnu.org/gnu/readline
9873Note: if you are using precompiled packages you will also need the development
9874package as well (which may be called readline-devel or something similar).
9875" >&2;}
9876 { (exit 1); exit 1; }; }
06e459df 9877 if test $rl_found = yes; then
bc1024f8
JM
9878
9879for ac_func in rl_completion_matches
9880do
68f2de6d
AK
9881as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9882{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9883echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
bc1024f8 9884if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 9885 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9886else
9887 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9888/* confdefs.h. */
9889_ACEOF
9890cat confdefs.h >>conftest.$ac_ext
9891cat >>conftest.$ac_ext <<_ACEOF
9892/* end confdefs.h. */
bc1024f8 9893/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 9894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 9895#define $ac_func innocuous_$ac_func
8a2fc586 9896
ad6254c5 9897/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 9898 which can conflict with char $ac_func (); below.
ad6254c5
AK
9899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9900 <limits.h> exists even on freestanding compilers. */
8a2fc586 9901
ad6254c5
AK
9902#ifdef __STDC__
9903# include <limits.h>
9904#else
9905# include <assert.h>
9906#endif
8a2fc586 9907
bc1024f8 9908#undef $ac_func
8a2fc586 9909
7a197a62
AK
9910/* Override any GCC internal prototype to avoid an error.
9911 Use char because int might match the return type of a GCC
9912 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9913#ifdef __cplusplus
9914extern "C"
ad6254c5 9915#endif
bc1024f8 9916char $ac_func ();
ad6254c5
AK
9917/* The GNU C library defines this for functions which it implements
9918 to always fail with ENOSYS. Some functions are actually named
9919 something starting with __ and the normal name is an alias. */
bc1024f8 9920#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 9921choke me
ad6254c5
AK
9922#endif
9923
9924int
9925main ()
9926{
bc1024f8 9927return $ac_func ();
ad6254c5
AK
9928 ;
9929 return 0;
9930}
9931_ACEOF
9932rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9933if { (ac_try="$ac_link"
9934case "(($ac_try" in
9935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936 *) ac_try_echo=$ac_try;;
9937esac
68f2de6d 9938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9939 (eval "$ac_link") 2>conftest.er1
ad6254c5 9940 ac_status=$?
8a2fc586
AK
9941 grep -v '^ *+' conftest.er1 >conftest.err
9942 rm -f conftest.er1
9943 cat conftest.err >&5
68f2de6d 9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9945 (exit $ac_status); } && {
9946 test -z "$ac_c_werror_flag" ||
9947 test ! -s conftest.err
68f2de6d
AK
9948 } && test -s conftest$ac_exeext &&
9949 $as_test_x conftest$ac_exeext; then
bc1024f8 9950 eval "$as_ac_var=yes"
ad6254c5 9951else
68f2de6d 9952 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9953sed 's/^/| /' conftest.$ac_ext >&5
9954
bc1024f8 9955 eval "$as_ac_var=no"
ad6254c5 9956fi
7a197a62 9957
25fbec5b 9958rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9959 conftest$ac_exeext conftest.$ac_ext
ad6254c5 9960fi
68f2de6d
AK
9961ac_res=`eval echo '${'$as_ac_var'}'`
9962 { echo "$as_me:$LINENO: result: $ac_res" >&5
9963echo "${ECHO_T}$ac_res" >&6; }
9964if test `eval echo '${'$as_ac_var'}'` = yes; then
bc1024f8 9965 cat >>confdefs.h <<_ACEOF
68f2de6d 9966#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
9967_ACEOF
9968
9969fi
bc1024f8 9970done
ad6254c5 9971
d179cc7a
JM
9972
9973cat >>confdefs.h <<\_ACEOF
9974#define READLINE_SUPPORT 1
9975_ACEOF
9976
06e459df 9977 fi
ad6254c5
AK
9978fi
9979
9980################################################################################
68f2de6d
AK
9981{ echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
9982echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6; }
7a197a62 9983# Check whether --enable-nls was given.
ad6254c5 9984if test "${enable_nls+set}" = set; then
7a197a62 9985 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
9986else
9987 INTL=no
7a197a62
AK
9988fi
9989
68f2de6d
AK
9990{ echo "$as_me:$LINENO: result: $INTL" >&5
9991echo "${ECHO_T}$INTL" >&6; }
ad6254c5
AK
9992
9993if test x$INTL = xyes; then
93bd259b 9994# FIXME - Move this - can be device-mapper too
ad6254c5
AK
9995 INTL_PACKAGE="lvm2"
9996 # Extract the first word of "msgfmt", so it can be a program name with args.
9997set dummy msgfmt; ac_word=$2
68f2de6d
AK
9998{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 10000if test "${ac_cv_path_MSGFMT+set}" = set; then
68f2de6d 10001 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
10002else
10003 case $MSGFMT in
10004 [\\/]* | ?:[\\/]*)
10005 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10006 ;;
10007 *)
10008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10009for as_dir in $PATH
10010do
10011 IFS=$as_save_IFS
10012 test -z "$as_dir" && as_dir=.
10013 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 10014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 10015 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 10016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
10017 break 2
10018 fi
10019done
10020done
7a197a62 10021IFS=$as_save_IFS
ad6254c5
AK
10022
10023 ;;
10024esac
10025fi
10026MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 10027if test -n "$MSGFMT"; then
68f2de6d
AK
10028 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
10029echo "${ECHO_T}$MSGFMT" >&6; }
ad6254c5 10030else
68f2de6d
AK
10031 { echo "$as_me:$LINENO: result: no" >&5
10032echo "${ECHO_T}no" >&6; }
ad6254c5
AK
10033fi
10034
7a197a62 10035
ad6254c5 10036 if [ "x$MSGFMT" == x ];
68f2de6d 10037 then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 10038 " >&5
68f2de6d 10039echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
10040 " >&2;}
10041 { (exit 1); exit 1; }; }
10042 fi;
10043
10044
7a197a62 10045# Check whether --with-localedir was given.
ad6254c5 10046if test "${with_localedir+set}" = set; then
7a197a62 10047 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
10048else
10049 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
10050fi
10051
ad6254c5
AK
10052fi
10053
10054################################################################################
10055
7a197a62 10056# Check whether --with-confdir was given.
ad6254c5 10057if test "${with_confdir+set}" = set; then
7a197a62 10058 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
10059else
10060 CONFDIR='/etc'
7a197a62
AK
10061fi
10062
ad6254c5
AK
10063
10064
7a197a62 10065# Check whether --with-staticdir was given.
ad6254c5 10066if test "${with_staticdir+set}" = set; then
7a197a62 10067 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
10068else
10069 STATICDIR='${exec_prefix}/sbin'
7a197a62 10070fi
ad6254c5 10071
33f732c5 10072
7a197a62
AK
10073
10074# Check whether --with-dmdir was given.
33f732c5 10075if test "${with_dmdir+set}" = set; then
7a197a62 10076 withval=$with_dmdir; DMDIR="$withval" CPPFLAGS="$CPPFLAGS -I$DMDIR/include"
33f732c5
AK
10077else
10078 DMDIR=
7a197a62
AK
10079fi
10080
33f732c5 10081
09339e2b 10082# Convert a relative dir name to absolute.
25fbec5b
AK
10083case $DMDIR in
10084 /*) ;;
10085 *) DMDIR="`pwd`/$DMDIR" ;;
09339e2b
JM
10086esac
10087
68f2de6d
AK
10088
10089# Check whether --with-usrlibdir was given.
10090if test "${with_usrlibdir+set}" = set; then
10091 withval=$with_usrlibdir; usrlibdir="$withval"
10092else
10093 usrlibdir='${prefix}/lib'
10094fi
10095
10096
10097
10098# Check whether --with-usrsbindir was given.
10099if test "${with_usrsbindir+set}" = set; then
10100 withval=$with_usrsbindir; usrsbindir="$withval"
10101else
10102 usrsbindir='${prefix}/sbin'
10103fi
10104
10105
ad6254c5
AK
10106################################################################################
10107if test x$READLINE = xyes; then
10108
10109
10110for ac_header in readline/readline.h readline/history.h
10111do
68f2de6d 10112as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10113if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
10114 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10115echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10116if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10117 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10118fi
68f2de6d
AK
10119ac_res=`eval echo '${'$as_ac_Header'}'`
10120 { echo "$as_me:$LINENO: result: $ac_res" >&5
10121echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10122else
10123 # Is the header compilable?
68f2de6d
AK
10124{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10125echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10126cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10127/* confdefs.h. */
10128_ACEOF
10129cat confdefs.h >>conftest.$ac_ext
10130cat >>conftest.$ac_ext <<_ACEOF
10131/* end confdefs.h. */
10132$ac_includes_default
10133#include <$ac_header>
10134_ACEOF
10135rm -f conftest.$ac_objext
7a197a62
AK
10136if { (ac_try="$ac_compile"
10137case "(($ac_try" in
10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10140esac
68f2de6d 10141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10142 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10143 ac_status=$?
8a2fc586
AK
10144 grep -v '^ *+' conftest.er1 >conftest.err
10145 rm -f conftest.er1
10146 cat conftest.err >&5
68f2de6d 10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10148 (exit $ac_status); } && {
10149 test -z "$ac_c_werror_flag" ||
10150 test ! -s conftest.err
10151 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10152 ac_header_compiler=yes
10153else
68f2de6d 10154 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10155sed 's/^/| /' conftest.$ac_ext >&5
10156
7a197a62 10157 ac_header_compiler=no
ad6254c5 10158fi
7a197a62
AK
10159
10160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
10161{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10162echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10163
10164# Is the header present?
68f2de6d
AK
10165{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10166echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10167cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10168/* confdefs.h. */
10169_ACEOF
10170cat confdefs.h >>conftest.$ac_ext
10171cat >>conftest.$ac_ext <<_ACEOF
10172/* end confdefs.h. */
10173#include <$ac_header>
10174_ACEOF
7a197a62
AK
10175if { (ac_try="$ac_cpp conftest.$ac_ext"
10176case "(($ac_try" in
10177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10178 *) ac_try_echo=$ac_try;;
10179esac
68f2de6d 10180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10182 ac_status=$?
10183 grep -v '^ *+' conftest.er1 >conftest.err
10184 rm -f conftest.er1
10185 cat conftest.err >&5
68f2de6d 10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10187 (exit $ac_status); } >/dev/null && {
10188 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10189 test ! -s conftest.err
10190 }; then
ad6254c5
AK
10191 ac_header_preproc=yes
10192else
68f2de6d 10193 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10194sed 's/^/| /' conftest.$ac_ext >&5
10195
10196 ac_header_preproc=no
10197fi
7a197a62 10198
ad6254c5 10199rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
10200{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10201echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10202
10203# So? What about this header?
8a2fc586
AK
10204case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10205 yes:no: )
68f2de6d
AK
10206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10207echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10209echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10210 ac_header_preproc=yes
ad6254c5 10211 ;;
8a2fc586 10212 no:yes:* )
68f2de6d
AK
10213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10214echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10216echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10218echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10220echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10222echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10224echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10225
ad6254c5
AK
10226 ;;
10227esac
68f2de6d
AK
10228{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10229echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10230if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10231 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10232else
8a2fc586 10233 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10234fi
68f2de6d
AK
10235ac_res=`eval echo '${'$as_ac_Header'}'`
10236 { echo "$as_me:$LINENO: result: $ac_res" >&5
10237echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10238
10239fi
68f2de6d 10240if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10241 cat >>confdefs.h <<_ACEOF
68f2de6d 10242#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10243_ACEOF
10244
10245else
68f2de6d
AK
10246 { { echo "$as_me:$LINENO: error: bailing out" >&5
10247echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
10248 { (exit 1); exit 1; }; }
10249fi
10250
10251done
10252
10253fi
10254
5c7fc7c4 10255if test x$CLVMD != xnone; then
ad6254c5
AK
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266for 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
10267do
68f2de6d 10268as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
10270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10271echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10272if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10273 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10274fi
68f2de6d
AK
10275ac_res=`eval echo '${'$as_ac_Header'}'`
10276 { echo "$as_me:$LINENO: result: $ac_res" >&5
10277echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10278else
10279 # Is the header compilable?
68f2de6d
AK
10280{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10281echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10282cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10283/* confdefs.h. */
10284_ACEOF
10285cat confdefs.h >>conftest.$ac_ext
10286cat >>conftest.$ac_ext <<_ACEOF
10287/* end confdefs.h. */
10288$ac_includes_default
10289#include <$ac_header>
10290_ACEOF
10291rm -f conftest.$ac_objext
7a197a62
AK
10292if { (ac_try="$ac_compile"
10293case "(($ac_try" in
10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295 *) ac_try_echo=$ac_try;;
10296esac
68f2de6d 10297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10298 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10299 ac_status=$?
8a2fc586
AK
10300 grep -v '^ *+' conftest.er1 >conftest.err
10301 rm -f conftest.er1
10302 cat conftest.err >&5
68f2de6d 10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10304 (exit $ac_status); } && {
10305 test -z "$ac_c_werror_flag" ||
10306 test ! -s conftest.err
10307 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10308 ac_header_compiler=yes
10309else
68f2de6d 10310 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10311sed 's/^/| /' conftest.$ac_ext >&5
10312
7a197a62 10313 ac_header_compiler=no
ad6254c5 10314fi
7a197a62
AK
10315
10316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
10317{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10318echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10319
10320# Is the header present?
68f2de6d
AK
10321{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10322echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10323cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10324/* confdefs.h. */
10325_ACEOF
10326cat confdefs.h >>conftest.$ac_ext
10327cat >>conftest.$ac_ext <<_ACEOF
10328/* end confdefs.h. */
10329#include <$ac_header>
10330_ACEOF
7a197a62
AK
10331if { (ac_try="$ac_cpp conftest.$ac_ext"
10332case "(($ac_try" in
10333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10334 *) ac_try_echo=$ac_try;;
10335esac
68f2de6d 10336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10338 ac_status=$?
10339 grep -v '^ *+' conftest.er1 >conftest.err
10340 rm -f conftest.er1
10341 cat conftest.err >&5
68f2de6d 10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10343 (exit $ac_status); } >/dev/null && {
10344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10345 test ! -s conftest.err
10346 }; then
ad6254c5
AK
10347 ac_header_preproc=yes
10348else
68f2de6d 10349 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10350sed 's/^/| /' conftest.$ac_ext >&5
10351
10352 ac_header_preproc=no
10353fi
7a197a62 10354
ad6254c5 10355rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
10356{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10357echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10358
10359# So? What about this header?
8a2fc586
AK
10360case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10361 yes:no: )
68f2de6d
AK
10362 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10363echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10365echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10366 ac_header_preproc=yes
ad6254c5 10367 ;;
8a2fc586 10368 no:yes:* )
68f2de6d
AK
10369 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10370echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10371 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10372echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10373 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10374echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10375 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10376echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10378echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10379 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10380echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10381
ad6254c5
AK
10382 ;;
10383esac
68f2de6d
AK
10384{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10385echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10386if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10387 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10388else
8a2fc586 10389 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10390fi
68f2de6d
AK
10391ac_res=`eval echo '${'$as_ac_Header'}'`
10392 { echo "$as_me:$LINENO: result: $ac_res" >&5
10393echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10394
10395fi
68f2de6d 10396if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10397 cat >>confdefs.h <<_ACEOF
68f2de6d 10398#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10399_ACEOF
10400
10401else
68f2de6d
AK
10402 { { echo "$as_me:$LINENO: error: bailing out" >&5
10403echo "$as_me: error: bailing out" >&2;}
ad6254c5 10404 { (exit 1); exit 1; }; }
795ca3e5
AK
10405fi
10406
ad6254c5
AK
10407done
10408
10409
795ca3e5 10410
8106cdd5 10411
ad6254c5
AK
10412
10413
10414for ac_func in dup2 getmntent memmove select socket
10415do
68f2de6d
AK
10416as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10417{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10418echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 10419if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10420 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 10421else
ad6254c5 10422 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10423/* confdefs.h. */
10424_ACEOF
10425cat confdefs.h >>conftest.$ac_ext
10426cat >>conftest.$ac_ext <<_ACEOF
10427/* end confdefs.h. */
8a2fc586
AK
10428/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10430#define $ac_func innocuous_$ac_func
10431
795ca3e5 10432/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
10433 which can conflict with char $ac_func (); below.
10434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10435 <limits.h> exists even on freestanding compilers. */
8a2fc586 10436
ad6254c5
AK
10437#ifdef __STDC__
10438# include <limits.h>
10439#else
10440# include <assert.h>
10441#endif
8a2fc586
AK
10442
10443#undef $ac_func
10444
7a197a62
AK
10445/* Override any GCC internal prototype to avoid an error.
10446 Use char because int might match the return type of a GCC
10447 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10448#ifdef __cplusplus
10449extern "C"
ad6254c5 10450#endif
ad6254c5 10451char $ac_func ();
795ca3e5
AK
10452/* The GNU C library defines this for functions which it implements
10453 to always fail with ENOSYS. Some functions are actually named
10454 something starting with __ and the normal name is an alias. */
7a197a62 10455#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 10456choke me
795ca3e5
AK
10457#endif
10458
ad6254c5
AK
10459int
10460main ()
10461{
7a197a62 10462return $ac_func ();
ad6254c5
AK
10463 ;
10464 return 0;
10465}
10466_ACEOF
10467rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10468if { (ac_try="$ac_link"
10469case "(($ac_try" in
10470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10471 *) ac_try_echo=$ac_try;;
10472esac
68f2de6d 10473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10474 (eval "$ac_link") 2>conftest.er1
ad6254c5 10475 ac_status=$?
8a2fc586
AK
10476 grep -v '^ *+' conftest.er1 >conftest.err
10477 rm -f conftest.er1
10478 cat conftest.err >&5
68f2de6d 10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10480 (exit $ac_status); } && {
10481 test -z "$ac_c_werror_flag" ||
10482 test ! -s conftest.err
68f2de6d
AK
10483 } && test -s conftest$ac_exeext &&
10484 $as_test_x conftest$ac_exeext; then
ad6254c5 10485 eval "$as_ac_var=yes"
795ca3e5 10486else
68f2de6d 10487 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10488sed 's/^/| /' conftest.$ac_ext >&5
10489
7a197a62 10490 eval "$as_ac_var=no"
80992638 10491fi
7a197a62 10492
25fbec5b 10493rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10494 conftest$ac_exeext conftest.$ac_ext
795ca3e5 10495fi
68f2de6d
AK
10496ac_res=`eval echo '${'$as_ac_var'}'`
10497 { echo "$as_me:$LINENO: result: $ac_res" >&5
10498echo "${ECHO_T}$ac_res" >&6; }
10499if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 10500 cat >>confdefs.h <<_ACEOF
68f2de6d 10501#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 10502_ACEOF
80992638
AK
10503
10504else
68f2de6d
AK
10505 { { echo "$as_me:$LINENO: error: bailing out" >&5
10506echo "$as_me: error: bailing out" >&2;}
ad6254c5 10507 { (exit 1); exit 1; }; }
8106cdd5 10508fi
ad6254c5 10509done
795ca3e5 10510
25fbec5b
AK
10511 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
10512# -lseq on Dynix/PTX, -lgen on Unixware.
68f2de6d
AK
10513{ echo "$as_me:$LINENO: checking for library containing getmntent" >&5
10514echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
25fbec5b 10515if test "${ac_cv_search_getmntent+set}" = set; then
68f2de6d 10516 echo $ECHO_N "(cached) $ECHO_C" >&6
25fbec5b
AK
10517else
10518 ac_func_search_save_LIBS=$LIBS
10519cat >conftest.$ac_ext <<_ACEOF
10520/* confdefs.h. */
10521_ACEOF
10522cat confdefs.h >>conftest.$ac_ext
10523cat >>conftest.$ac_ext <<_ACEOF
10524/* end confdefs.h. */
80992638 10525
7a197a62
AK
10526/* Override any GCC internal prototype to avoid an error.
10527 Use char because int might match the return type of a GCC
ad6254c5 10528 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10529#ifdef __cplusplus
10530extern "C"
10531#endif
25fbec5b 10532char getmntent ();
ad6254c5
AK
10533int
10534main ()
10535{
25fbec5b 10536return getmntent ();
ad6254c5
AK
10537 ;
10538 return 0;
10539}
10540_ACEOF
25fbec5b
AK
10541for ac_lib in '' sun seq gen; do
10542 if test -z "$ac_lib"; then
10543 ac_res="none required"
10544 else
10545 ac_res=-l$ac_lib
10546 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10547 fi
10548 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10549if { (ac_try="$ac_link"
10550case "(($ac_try" in
10551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552 *) ac_try_echo=$ac_try;;
10553esac
68f2de6d 10554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10555 (eval "$ac_link") 2>conftest.er1
ad6254c5 10556 ac_status=$?
8a2fc586
AK
10557 grep -v '^ *+' conftest.er1 >conftest.err
10558 rm -f conftest.er1
10559 cat conftest.err >&5
68f2de6d 10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10561 (exit $ac_status); } && {
10562 test -z "$ac_c_werror_flag" ||
10563 test ! -s conftest.err
68f2de6d
AK
10564 } && test -s conftest$ac_exeext &&
10565 $as_test_x conftest$ac_exeext; then
25fbec5b 10566 ac_cv_search_getmntent=$ac_res
80992638 10567else
68f2de6d 10568 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10569sed 's/^/| /' conftest.$ac_ext >&5
10570
25fbec5b 10571
795ca3e5
AK
10572fi
10573
25fbec5b
AK
10574rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10575 conftest$ac_exeext
10576 if test "${ac_cv_search_getmntent+set}" = set; then
10577 break
795ca3e5 10578fi
25fbec5b
AK
10579done
10580if test "${ac_cv_search_getmntent+set}" = set; then
10581 :
10582else
10583 ac_cv_search_getmntent=no
10584fi
10585rm conftest.$ac_ext
10586LIBS=$ac_func_search_save_LIBS
10587fi
68f2de6d
AK
10588{ echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
10589echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
10590ac_res=$ac_cv_search_getmntent
10591if test "$ac_res" != no; then
10592 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10593 ac_cv_func_getmntent=yes
10594
10595cat >>confdefs.h <<\_ACEOF
68f2de6d 10596#define HAVE_GETMNTENT
ad6254c5 10597_ACEOF
795ca3e5 10598
25fbec5b
AK
10599else
10600 ac_cv_func_getmntent=no
795ca3e5 10601fi
795ca3e5
AK
10602
10603
ad6254c5
AK
10604# AC_FUNC_REALLOC
10605
10606
10607for ac_header in sys/select.h sys/socket.h
10608do
68f2de6d 10609as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10610if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
10611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10612echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10613if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10614 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10615fi
68f2de6d
AK
10616ac_res=`eval echo '${'$as_ac_Header'}'`
10617 { echo "$as_me:$LINENO: result: $ac_res" >&5
10618echo "${ECHO_T}$ac_res" >&6; }
795ca3e5 10619else
ad6254c5 10620 # Is the header compilable?
68f2de6d
AK
10621{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10622echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10623cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10624/* confdefs.h. */
10625_ACEOF
10626cat confdefs.h >>conftest.$ac_ext
10627cat >>conftest.$ac_ext <<_ACEOF
10628/* end confdefs.h. */
10629$ac_includes_default
10630#include <$ac_header>
10631_ACEOF
10632rm -f conftest.$ac_objext
7a197a62
AK
10633if { (ac_try="$ac_compile"
10634case "(($ac_try" in
10635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10636 *) ac_try_echo=$ac_try;;
10637esac
68f2de6d 10638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10639 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10640 ac_status=$?
8a2fc586
AK
10641 grep -v '^ *+' conftest.er1 >conftest.err
10642 rm -f conftest.er1
10643 cat conftest.err >&5
68f2de6d 10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10645 (exit $ac_status); } && {
10646 test -z "$ac_c_werror_flag" ||
10647 test ! -s conftest.err
10648 } && test -s conftest.$ac_objext; then
ad6254c5 10649 ac_header_compiler=yes
80992638 10650else
68f2de6d 10651 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10652sed 's/^/| /' conftest.$ac_ext >&5
10653
7a197a62 10654 ac_header_compiler=no
ad6254c5 10655fi
7a197a62
AK
10656
10657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
10658{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10659echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10660
10661# Is the header present?
68f2de6d
AK
10662{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10663echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10664cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10665/* confdefs.h. */
10666_ACEOF
10667cat confdefs.h >>conftest.$ac_ext
10668cat >>conftest.$ac_ext <<_ACEOF
10669/* end confdefs.h. */
10670#include <$ac_header>
10671_ACEOF
7a197a62
AK
10672if { (ac_try="$ac_cpp conftest.$ac_ext"
10673case "(($ac_try" in
10674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675 *) ac_try_echo=$ac_try;;
10676esac
68f2de6d 10677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10679 ac_status=$?
10680 grep -v '^ *+' conftest.er1 >conftest.err
10681 rm -f conftest.er1
10682 cat conftest.err >&5
68f2de6d 10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10684 (exit $ac_status); } >/dev/null && {
10685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10686 test ! -s conftest.err
10687 }; then
ad6254c5
AK
10688 ac_header_preproc=yes
10689else
68f2de6d 10690 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10691sed 's/^/| /' conftest.$ac_ext >&5
10692
10693 ac_header_preproc=no
10694fi
7a197a62 10695
ad6254c5 10696rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
10697{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10698echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10699
10700# So? What about this header?
8a2fc586
AK
10701case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10702 yes:no: )
68f2de6d
AK
10703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10704echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10706echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10707 ac_header_preproc=yes
ad6254c5 10708 ;;
8a2fc586 10709 no:yes:* )
68f2de6d
AK
10710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10711echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10713echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10715echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10717echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10719echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10721echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10722
ad6254c5
AK
10723 ;;
10724esac
68f2de6d
AK
10725{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10727if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10728 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10729else
8a2fc586 10730 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 10731fi
68f2de6d
AK
10732ac_res=`eval echo '${'$as_ac_Header'}'`
10733 { echo "$as_me:$LINENO: result: $ac_res" >&5
10734echo "${ECHO_T}$ac_res" >&6; }
8106cdd5 10735
795ca3e5 10736fi
68f2de6d 10737if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10738 cat >>confdefs.h <<_ACEOF
68f2de6d 10739#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10740_ACEOF
10741
795ca3e5
AK
10742fi
10743
ad6254c5
AK
10744done
10745
68f2de6d
AK
10746{ echo "$as_me:$LINENO: checking types of arguments for select" >&5
10747echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
ad6254c5 10748if test "${ac_cv_func_select_args+set}" = set; then
68f2de6d 10749 echo $ECHO_N "(cached) $ECHO_C" >&6
26e7f2e0 10750else
ad6254c5 10751 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 10752 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
10753 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10754 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10755/* confdefs.h. */
10756_ACEOF
10757cat confdefs.h >>conftest.$ac_ext
10758cat >>conftest.$ac_ext <<_ACEOF
10759/* end confdefs.h. */
10760$ac_includes_default
25fbec5b 10761#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
10762# include <sys/select.h>
10763#endif
25fbec5b 10764#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
10765# include <sys/socket.h>
10766#endif
10767
10768int
10769main ()
10770{
10771extern int select ($ac_arg1,
8a2fc586
AK
10772 $ac_arg234, $ac_arg234, $ac_arg234,
10773 $ac_arg5);
ad6254c5
AK
10774 ;
10775 return 0;
10776}
10777_ACEOF
10778rm -f conftest.$ac_objext
7a197a62
AK
10779if { (ac_try="$ac_compile"
10780case "(($ac_try" in
10781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10782 *) ac_try_echo=$ac_try;;
10783esac
68f2de6d 10784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10785 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10786 ac_status=$?
8a2fc586
AK
10787 grep -v '^ *+' conftest.er1 >conftest.err
10788 rm -f conftest.er1
10789 cat conftest.err >&5
68f2de6d 10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10791 (exit $ac_status); } && {
10792 test -z "$ac_c_werror_flag" ||
10793 test ! -s conftest.err
10794 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10795 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10796else
68f2de6d 10797 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10798sed 's/^/| /' conftest.$ac_ext >&5
10799
7a197a62 10800
ad6254c5 10801fi
7a197a62
AK
10802
10803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10804 done
10805 done
10806done
10807# Provide a safe default value.
10808: ${ac_cv_func_select_args='int,int *,struct timeval *'}
10809
26e7f2e0 10810fi
68f2de6d
AK
10811{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
10812echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
ad6254c5
AK
10813ac_save_IFS=$IFS; IFS=','
10814set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10815IFS=$ac_save_IFS
10816shift
10817
10818cat >>confdefs.h <<_ACEOF
10819#define SELECT_TYPE_ARG1 $1
10820_ACEOF
10821
10822
10823cat >>confdefs.h <<_ACEOF
10824#define SELECT_TYPE_ARG234 ($2)
10825_ACEOF
10826
10827
10828cat >>confdefs.h <<_ACEOF
10829#define SELECT_TYPE_ARG5 ($3)
10830_ACEOF
10831
80992638 10832rm -f conftest*
80992638 10833
8106cdd5 10834fi
ad6254c5 10835
ad6254c5
AK
10836if test x$CLUSTER != xnone; then
10837
10838
10839for ac_header in sys/socket.h sys/un.h
b896caa1 10840do
68f2de6d 10841as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10842if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
10843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10845if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10846 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10847fi
68f2de6d
AK
10848ac_res=`eval echo '${'$as_ac_Header'}'`
10849 { echo "$as_me:$LINENO: result: $ac_res" >&5
10850echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10851else
10852 # Is the header compilable?
68f2de6d
AK
10853{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10854echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10855cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10856/* confdefs.h. */
10857_ACEOF
10858cat confdefs.h >>conftest.$ac_ext
10859cat >>conftest.$ac_ext <<_ACEOF
10860/* end confdefs.h. */
10861$ac_includes_default
10862#include <$ac_header>
10863_ACEOF
10864rm -f conftest.$ac_objext
7a197a62
AK
10865if { (ac_try="$ac_compile"
10866case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10869esac
68f2de6d 10870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10871 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10872 ac_status=$?
8a2fc586
AK
10873 grep -v '^ *+' conftest.er1 >conftest.err
10874 rm -f conftest.er1
10875 cat conftest.err >&5
68f2de6d 10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10877 (exit $ac_status); } && {
10878 test -z "$ac_c_werror_flag" ||
10879 test ! -s conftest.err
10880 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10881 ac_header_compiler=yes
10882else
68f2de6d 10883 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10884sed 's/^/| /' conftest.$ac_ext >&5
10885
7a197a62 10886 ac_header_compiler=no
ad6254c5 10887fi
7a197a62
AK
10888
10889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
10890{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10891echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10892
10893# Is the header present?
68f2de6d
AK
10894{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10895echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10896cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10897/* confdefs.h. */
10898_ACEOF
10899cat confdefs.h >>conftest.$ac_ext
10900cat >>conftest.$ac_ext <<_ACEOF
10901/* end confdefs.h. */
10902#include <$ac_header>
10903_ACEOF
7a197a62
AK
10904if { (ac_try="$ac_cpp conftest.$ac_ext"
10905case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10908esac
68f2de6d 10909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10911 ac_status=$?
10912 grep -v '^ *+' conftest.er1 >conftest.err
10913 rm -f conftest.er1
10914 cat conftest.err >&5
68f2de6d 10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10916 (exit $ac_status); } >/dev/null && {
10917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10918 test ! -s conftest.err
10919 }; then
ad6254c5
AK
10920 ac_header_preproc=yes
10921else
68f2de6d 10922 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10923sed 's/^/| /' conftest.$ac_ext >&5
10924
10925 ac_header_preproc=no
10926fi
7a197a62 10927
ad6254c5 10928rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
10929{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10930echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10931
10932# So? What about this header?
8a2fc586
AK
10933case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10934 yes:no: )
68f2de6d
AK
10935 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10936echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10938echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10939 ac_header_preproc=yes
ad6254c5 10940 ;;
8a2fc586 10941 no:yes:* )
68f2de6d
AK
10942 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10943echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10944 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10945echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10946 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10947echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10948 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10949echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10951echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10952 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10953echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10954
ad6254c5
AK
10955 ;;
10956esac
68f2de6d
AK
10957{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10960 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10961else
8a2fc586 10962 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 10963fi
68f2de6d
AK
10964ac_res=`eval echo '${'$as_ac_Header'}'`
10965 { echo "$as_me:$LINENO: result: $ac_res" >&5
10966echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10967
10968fi
68f2de6d 10969if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10970 cat >>confdefs.h <<_ACEOF
68f2de6d 10971#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10972_ACEOF
10973
80992638 10974else
68f2de6d
AK
10975 { { echo "$as_me:$LINENO: error: bailing out" >&5
10976echo "$as_me: error: bailing out" >&2;}
ad6254c5 10977 { (exit 1); exit 1; }; }
b896caa1 10978fi
ad6254c5 10979
b896caa1
AK
10980done
10981
10982
ad6254c5
AK
10983for ac_func in socket
10984do
68f2de6d
AK
10985as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10986{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10987echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 10988if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10989 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 10990else
ad6254c5 10991 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10992/* confdefs.h. */
10993_ACEOF
10994cat confdefs.h >>conftest.$ac_ext
10995cat >>conftest.$ac_ext <<_ACEOF
10996/* end confdefs.h. */
8a2fc586
AK
10997/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10999#define $ac_func innocuous_$ac_func
11000
ad6254c5
AK
11001/* System header to define __stub macros and hopefully few prototypes,
11002 which can conflict with char $ac_func (); below.
11003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11004 <limits.h> exists even on freestanding compilers. */
8a2fc586 11005
ad6254c5
AK
11006#ifdef __STDC__
11007# include <limits.h>
11008#else
11009# include <assert.h>
11010#endif
8a2fc586
AK
11011
11012#undef $ac_func
11013
7a197a62
AK
11014/* Override any GCC internal prototype to avoid an error.
11015 Use char because int might match the return type of a GCC
11016 builtin and then its argument prototype would still apply. */
ad6254c5
AK
11017#ifdef __cplusplus
11018extern "C"
ad6254c5 11019#endif
ad6254c5
AK
11020char $ac_func ();
11021/* The GNU C library defines this for functions which it implements
11022 to always fail with ENOSYS. Some functions are actually named
11023 something starting with __ and the normal name is an alias. */
7a197a62 11024#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 11025choke me
ad6254c5
AK
11026#endif
11027
11028int
11029main ()
11030{
7a197a62 11031return $ac_func ();
ad6254c5
AK
11032 ;
11033 return 0;
11034}
11035_ACEOF
11036rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
11037if { (ac_try="$ac_link"
11038case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11041esac
68f2de6d 11042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11043 (eval "$ac_link") 2>conftest.er1
ad6254c5 11044 ac_status=$?
8a2fc586
AK
11045 grep -v '^ *+' conftest.er1 >conftest.err
11046 rm -f conftest.er1
11047 cat conftest.err >&5
68f2de6d 11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11049 (exit $ac_status); } && {
11050 test -z "$ac_c_werror_flag" ||
11051 test ! -s conftest.err
68f2de6d
AK
11052 } && test -s conftest$ac_exeext &&
11053 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
11054 eval "$as_ac_var=yes"
11055else
68f2de6d 11056 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11057sed 's/^/| /' conftest.$ac_ext >&5
11058
7a197a62 11059 eval "$as_ac_var=no"
ad6254c5 11060fi
7a197a62 11061
25fbec5b 11062rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 11063 conftest$ac_exeext conftest.$ac_ext
ad6254c5 11064fi
68f2de6d
AK
11065ac_res=`eval echo '${'$as_ac_var'}'`
11066 { echo "$as_me:$LINENO: result: $ac_res" >&5
11067echo "${ECHO_T}$ac_res" >&6; }
11068if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 11069 cat >>confdefs.h <<_ACEOF
68f2de6d 11070#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
11071_ACEOF
11072
11073else
68f2de6d
AK
11074 { { echo "$as_me:$LINENO: error: bailing out" >&5
11075echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
11076 { (exit 1); exit 1; }; }
11077fi
11078done
11079
11080fi
11081
11082if test x$HAVE_LIBDL = xyes; then
11083
11084for ac_header in dlfcn.h
11085do
68f2de6d 11086as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11087if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
11088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11089echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11090if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11091 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11092fi
68f2de6d
AK
11093ac_res=`eval echo '${'$as_ac_Header'}'`
11094 { echo "$as_me:$LINENO: result: $ac_res" >&5
11095echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
11096else
11097 # Is the header compilable?
68f2de6d
AK
11098{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11099echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11100cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11101/* confdefs.h. */
11102_ACEOF
11103cat confdefs.h >>conftest.$ac_ext
11104cat >>conftest.$ac_ext <<_ACEOF
11105/* end confdefs.h. */
11106$ac_includes_default
11107#include <$ac_header>
11108_ACEOF
11109rm -f conftest.$ac_objext
7a197a62
AK
11110if { (ac_try="$ac_compile"
11111case "(($ac_try" in
11112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11113 *) ac_try_echo=$ac_try;;
11114esac
68f2de6d 11115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11116 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11117 ac_status=$?
8a2fc586
AK
11118 grep -v '^ *+' conftest.er1 >conftest.err
11119 rm -f conftest.er1
11120 cat conftest.err >&5
68f2de6d 11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11122 (exit $ac_status); } && {
11123 test -z "$ac_c_werror_flag" ||
11124 test ! -s conftest.err
11125 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11126 ac_header_compiler=yes
11127else
68f2de6d 11128 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11129sed 's/^/| /' conftest.$ac_ext >&5
11130
7a197a62 11131 ac_header_compiler=no
ad6254c5 11132fi
7a197a62
AK
11133
11134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
11135{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11136echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11137
11138# Is the header present?
68f2de6d
AK
11139{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11140echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11141cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11142/* confdefs.h. */
11143_ACEOF
11144cat confdefs.h >>conftest.$ac_ext
11145cat >>conftest.$ac_ext <<_ACEOF
11146/* end confdefs.h. */
11147#include <$ac_header>
11148_ACEOF
7a197a62
AK
11149if { (ac_try="$ac_cpp conftest.$ac_ext"
11150case "(($ac_try" in
11151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152 *) ac_try_echo=$ac_try;;
11153esac
68f2de6d 11154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11156 ac_status=$?
11157 grep -v '^ *+' conftest.er1 >conftest.err
11158 rm -f conftest.er1
11159 cat conftest.err >&5
68f2de6d 11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11161 (exit $ac_status); } >/dev/null && {
11162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11163 test ! -s conftest.err
11164 }; then
ad6254c5
AK
11165 ac_header_preproc=yes
11166else
68f2de6d 11167 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11168sed 's/^/| /' conftest.$ac_ext >&5
11169
11170 ac_header_preproc=no
11171fi
7a197a62 11172
ad6254c5 11173rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
11174{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11175echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11176
11177# So? What about this header?
8a2fc586
AK
11178case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11179 yes:no: )
68f2de6d
AK
11180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11181echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11183echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11184 ac_header_preproc=yes
ad6254c5 11185 ;;
8a2fc586 11186 no:yes:* )
68f2de6d
AK
11187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11188echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11190echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11192echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11194echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11196echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11198echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11199
ad6254c5
AK
11200 ;;
11201esac
68f2de6d
AK
11202{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11204if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11205 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11206else
8a2fc586 11207 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 11208fi
68f2de6d
AK
11209ac_res=`eval echo '${'$as_ac_Header'}'`
11210 { echo "$as_me:$LINENO: result: $ac_res" >&5
11211echo "${ECHO_T}$ac_res" >&6; }
80992638 11212
8106cdd5 11213fi
68f2de6d 11214if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11215 cat >>confdefs.h <<_ACEOF
68f2de6d 11216#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11217_ACEOF
795ca3e5
AK
11218
11219else
68f2de6d
AK
11220 { { echo "$as_me:$LINENO: error: bailing out" >&5
11221echo "$as_me: error: bailing out" >&2;}
ad6254c5 11222 { (exit 1); exit 1; }; }
795ca3e5
AK
11223fi
11224
ad6254c5 11225done
80992638 11226
ad6254c5 11227fi
80992638 11228
ad6254c5 11229if test x$INTL = xyes; then
83912faa 11230
ad6254c5
AK
11231for ac_header in libintl.h
11232do
68f2de6d 11233as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11234if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
11235 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11236echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11237if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11238 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11239fi
68f2de6d
AK
11240ac_res=`eval echo '${'$as_ac_Header'}'`
11241 { echo "$as_me:$LINENO: result: $ac_res" >&5
11242echo "${ECHO_T}$ac_res" >&6; }
83912faa 11243else
ad6254c5 11244 # Is the header compilable?
68f2de6d
AK
11245{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11246echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11247cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11248/* confdefs.h. */
11249_ACEOF
11250cat confdefs.h >>conftest.$ac_ext
11251cat >>conftest.$ac_ext <<_ACEOF
11252/* end confdefs.h. */
11253$ac_includes_default
11254#include <$ac_header>
11255_ACEOF
11256rm -f conftest.$ac_objext
7a197a62
AK
11257if { (ac_try="$ac_compile"
11258case "(($ac_try" in
11259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11260 *) ac_try_echo=$ac_try;;
11261esac
68f2de6d 11262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11263 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11264 ac_status=$?
8a2fc586
AK
11265 grep -v '^ *+' conftest.er1 >conftest.err
11266 rm -f conftest.er1
11267 cat conftest.err >&5
68f2de6d 11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11269 (exit $ac_status); } && {
11270 test -z "$ac_c_werror_flag" ||
11271 test ! -s conftest.err
11272 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11273 ac_header_compiler=yes
11274else
68f2de6d 11275 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11276sed 's/^/| /' conftest.$ac_ext >&5
11277
7a197a62 11278 ac_header_compiler=no
ad6254c5 11279fi
7a197a62
AK
11280
11281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
11282{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11283echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11284
11285# Is the header present?
68f2de6d
AK
11286{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11287echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11288cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11289/* confdefs.h. */
11290_ACEOF
11291cat confdefs.h >>conftest.$ac_ext
11292cat >>conftest.$ac_ext <<_ACEOF
11293/* end confdefs.h. */
11294#include <$ac_header>
11295_ACEOF
7a197a62
AK
11296if { (ac_try="$ac_cpp conftest.$ac_ext"
11297case "(($ac_try" in
11298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11299 *) ac_try_echo=$ac_try;;
11300esac
68f2de6d 11301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11303 ac_status=$?
11304 grep -v '^ *+' conftest.er1 >conftest.err
11305 rm -f conftest.er1
11306 cat conftest.err >&5
68f2de6d 11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11308 (exit $ac_status); } >/dev/null && {
11309 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11310 test ! -s conftest.err
11311 }; then
ad6254c5
AK
11312 ac_header_preproc=yes
11313else
68f2de6d 11314 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11315sed 's/^/| /' conftest.$ac_ext >&5
11316
11317 ac_header_preproc=no
11318fi
7a197a62 11319
ad6254c5 11320rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
11321{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11322echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11323
11324# So? What about this header?
8a2fc586
AK
11325case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11326 yes:no: )
68f2de6d
AK
11327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11328echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11330echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11331 ac_header_preproc=yes
ad6254c5 11332 ;;
8a2fc586 11333 no:yes:* )
68f2de6d
AK
11334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11335echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11337echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11339echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11341echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11343echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11345echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11346
ad6254c5
AK
11347 ;;
11348esac
68f2de6d
AK
11349{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11352 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 11353else
8a2fc586 11354 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 11355fi
68f2de6d
AK
11356ac_res=`eval echo '${'$as_ac_Header'}'`
11357 { echo "$as_me:$LINENO: result: $ac_res" >&5
11358echo "${ECHO_T}$ac_res" >&6; }
83912faa 11359
69792976 11360fi
68f2de6d 11361if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11362 cat >>confdefs.h <<_ACEOF
68f2de6d 11363#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11364_ACEOF
69792976 11365
69792976 11366else
68f2de6d
AK
11367 { { echo "$as_me:$LINENO: error: bailing out" >&5
11368echo "$as_me: error: bailing out" >&2;}
ad6254c5 11369 { (exit 1); exit 1; }; }
80992638
AK
11370fi
11371
ad6254c5 11372done
69792976 11373
ad6254c5
AK
11374fi
11375
ad6254c5
AK
11376
11377for ac_header in libdevmapper.h
11378do
68f2de6d 11379as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11380if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
11381 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11383if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11384 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11385fi
68f2de6d
AK
11386ac_res=`eval echo '${'$as_ac_Header'}'`
11387 { echo "$as_me:$LINENO: result: $ac_res" >&5
11388echo "${ECHO_T}$ac_res" >&6; }
69792976 11389else
ad6254c5 11390 # Is the header compilable?
68f2de6d
AK
11391{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11392echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11393cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11394/* confdefs.h. */
11395_ACEOF
11396cat confdefs.h >>conftest.$ac_ext
11397cat >>conftest.$ac_ext <<_ACEOF
11398/* end confdefs.h. */
11399$ac_includes_default
11400#include <$ac_header>
11401_ACEOF
11402rm -f conftest.$ac_objext
7a197a62
AK
11403if { (ac_try="$ac_compile"
11404case "(($ac_try" in
11405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11406 *) ac_try_echo=$ac_try;;
11407esac
68f2de6d 11408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11409 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11410 ac_status=$?
8a2fc586
AK
11411 grep -v '^ *+' conftest.er1 >conftest.err
11412 rm -f conftest.er1
11413 cat conftest.err >&5
68f2de6d 11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11415 (exit $ac_status); } && {
11416 test -z "$ac_c_werror_flag" ||
11417 test ! -s conftest.err
11418 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11419 ac_header_compiler=yes
11420else
68f2de6d 11421 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11422sed 's/^/| /' conftest.$ac_ext >&5
11423
7a197a62 11424 ac_header_compiler=no
ad6254c5 11425fi
7a197a62
AK
11426
11427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
11428{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11429echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11430
11431# Is the header present?
68f2de6d
AK
11432{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11433echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11434cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11435/* confdefs.h. */
11436_ACEOF
11437cat confdefs.h >>conftest.$ac_ext
11438cat >>conftest.$ac_ext <<_ACEOF
11439/* end confdefs.h. */
11440#include <$ac_header>
11441_ACEOF
7a197a62
AK
11442if { (ac_try="$ac_cpp conftest.$ac_ext"
11443case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11446esac
68f2de6d 11447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11449 ac_status=$?
11450 grep -v '^ *+' conftest.er1 >conftest.err
11451 rm -f conftest.er1
11452 cat conftest.err >&5
68f2de6d 11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11454 (exit $ac_status); } >/dev/null && {
11455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11456 test ! -s conftest.err
11457 }; then
ad6254c5
AK
11458 ac_header_preproc=yes
11459else
68f2de6d 11460 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11461sed 's/^/| /' conftest.$ac_ext >&5
11462
11463 ac_header_preproc=no
11464fi
7a197a62 11465
ad6254c5 11466rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
11467{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11468echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11469
11470# So? What about this header?
8a2fc586
AK
11471case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11472 yes:no: )
68f2de6d
AK
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11474echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11476echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11477 ac_header_preproc=yes
ad6254c5 11478 ;;
8a2fc586 11479 no:yes:* )
68f2de6d
AK
11480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11481echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11483echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11484 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11485echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11486 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11487echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11489echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11490 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11491echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11492
ad6254c5
AK
11493 ;;
11494esac
68f2de6d
AK
11495{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11497if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11498 echo $ECHO_N "(cached) $ECHO_C" >&6
69792976 11499else
8a2fc586 11500 eval "$as_ac_Header=\$ac_header_preproc"
69792976 11501fi
68f2de6d
AK
11502ac_res=`eval echo '${'$as_ac_Header'}'`
11503 { echo "$as_me:$LINENO: result: $ac_res" >&5
11504echo "${ECHO_T}$ac_res" >&6; }
69792976 11505
ad6254c5 11506fi
68f2de6d 11507if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11508 cat >>confdefs.h <<_ACEOF
68f2de6d 11509#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11510_ACEOF
69792976 11511
69792976 11512else
68f2de6d
AK
11513 { { echo "$as_me:$LINENO: error: bailing out" >&5
11514echo "$as_me: error: bailing out" >&2;}
ad6254c5 11515 { (exit 1); exit 1; }; }
83912faa
AK
11516fi
11517
ad6254c5
AK
11518done
11519
4a7f3eb2 11520
ad6254c5
AK
11521if test x$HAVE_SELINUX = xyes; then
11522
11523for ac_header in selinux/selinux.h
11524do
68f2de6d 11525as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11526if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
11527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11529if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11530 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11531fi
68f2de6d
AK
11532ac_res=`eval echo '${'$as_ac_Header'}'`
11533 { echo "$as_me:$LINENO: result: $ac_res" >&5
11534echo "${ECHO_T}$ac_res" >&6; }
4a7f3eb2 11535else
ad6254c5 11536 # Is the header compilable?
68f2de6d
AK
11537{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11538echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11539cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11540/* confdefs.h. */
11541_ACEOF
11542cat confdefs.h >>conftest.$ac_ext
11543cat >>conftest.$ac_ext <<_ACEOF
11544/* end confdefs.h. */
11545$ac_includes_default
11546#include <$ac_header>
11547_ACEOF
11548rm -f conftest.$ac_objext
7a197a62
AK
11549if { (ac_try="$ac_compile"
11550case "(($ac_try" in
11551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11552 *) ac_try_echo=$ac_try;;
11553esac
68f2de6d 11554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11555 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11556 ac_status=$?
8a2fc586
AK
11557 grep -v '^ *+' conftest.er1 >conftest.err
11558 rm -f conftest.er1
11559 cat conftest.err >&5
68f2de6d 11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11561 (exit $ac_status); } && {
11562 test -z "$ac_c_werror_flag" ||
11563 test ! -s conftest.err
11564 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11565 ac_header_compiler=yes
11566else
68f2de6d 11567 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11568sed 's/^/| /' conftest.$ac_ext >&5
11569
7a197a62 11570 ac_header_compiler=no
ad6254c5 11571fi
7a197a62
AK
11572
11573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
11574{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11575echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11576
11577# Is the header present?
68f2de6d
AK
11578{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11579echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11580cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11581/* confdefs.h. */
11582_ACEOF
11583cat confdefs.h >>conftest.$ac_ext
11584cat >>conftest.$ac_ext <<_ACEOF
11585/* end confdefs.h. */
11586#include <$ac_header>
11587_ACEOF
7a197a62
AK
11588if { (ac_try="$ac_cpp conftest.$ac_ext"
11589case "(($ac_try" in
11590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11591 *) ac_try_echo=$ac_try;;
11592esac
68f2de6d 11593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11595 ac_status=$?
11596 grep -v '^ *+' conftest.er1 >conftest.err
11597 rm -f conftest.er1
11598 cat conftest.err >&5
68f2de6d 11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11600 (exit $ac_status); } >/dev/null && {
11601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11602 test ! -s conftest.err
11603 }; then
ad6254c5
AK
11604 ac_header_preproc=yes
11605else
68f2de6d 11606 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11607sed 's/^/| /' conftest.$ac_ext >&5
11608
11609 ac_header_preproc=no
11610fi
7a197a62 11611
ad6254c5 11612rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
11613{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11614echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11615
11616# So? What about this header?
8a2fc586
AK
11617case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11618 yes:no: )
68f2de6d
AK
11619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11620echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11622echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11623 ac_header_preproc=yes
ad6254c5 11624 ;;
8a2fc586 11625 no:yes:* )
68f2de6d
AK
11626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11627echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11629echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11631echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11633echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11635echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11637echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11638
ad6254c5
AK
11639 ;;
11640esac
68f2de6d
AK
11641{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11644 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11645else
8a2fc586 11646 eval "$as_ac_Header=\$ac_header_preproc"
80992638 11647fi
68f2de6d
AK
11648ac_res=`eval echo '${'$as_ac_Header'}'`
11649 { echo "$as_me:$LINENO: result: $ac_res" >&5
11650echo "${ECHO_T}$ac_res" >&6; }
4a7f3eb2 11651
ad6254c5 11652fi
68f2de6d 11653if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11654 cat >>confdefs.h <<_ACEOF
68f2de6d 11655#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11656_ACEOF
0a62c911 11657
0a62c911 11658else
68f2de6d
AK
11659 { { echo "$as_me:$LINENO: error: bailing out" >&5
11660echo "$as_me: error: bailing out" >&2;}
ad6254c5 11661 { (exit 1); exit 1; }; }
80992638
AK
11662fi
11663
ad6254c5 11664done
0a62c911 11665
ad6254c5 11666fi
0a62c911 11667
a653923f
AK
11668################################################################################
11669# Extract the first word of "modprobe", so it can be a program name with args.
11670set dummy modprobe; ac_word=$2
68f2de6d
AK
11671{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
72b2cb61 11673if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
68f2de6d 11674 echo $ECHO_N "(cached) $ECHO_C" >&6
72b2cb61
AK
11675else
11676 case $MODPROBE_CMD in
11677 [\\/]* | ?:[\\/]*)
11678 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
11679 ;;
11680 *)
11681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682for as_dir in $PATH
11683do
11684 IFS=$as_save_IFS
11685 test -z "$as_dir" && as_dir=.
11686 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 11687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 11688 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 11689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
11690 break 2
11691 fi
11692done
11693done
7a197a62 11694IFS=$as_save_IFS
72b2cb61
AK
11695
11696 ;;
11697esac
11698fi
11699MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 11700if test -n "$MODPROBE_CMD"; then
68f2de6d
AK
11701 { echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
11702echo "${ECHO_T}$MODPROBE_CMD" >&6; }
72b2cb61 11703else
68f2de6d
AK
11704 { echo "$as_me:$LINENO: result: no" >&5
11705echo "${ECHO_T}no" >&6; }
72b2cb61
AK
11706fi
11707
a653923f 11708
7a197a62 11709
a653923f 11710if test x$MODPROBE_CMD != x; then
72b2cb61
AK
11711
11712cat >>confdefs.h <<_ACEOF
11713#define MODPROBE_CMD "$MODPROBE_CMD"
11714_ACEOF
11715
a653923f
AK
11716fi
11717
80992638 11718################################################################################
93bd259b
AK
11719
11720
11721if test "$BUILD_DMEVENTD" = yes; then
11722
11723# Check whether --with-dmeventd-pidfile was given.
11724if test "${with_dmeventd_pidfile+set}" = set; then
11725 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
11726#define DMEVENTD_PIDFILE "$withval"
11727_ACEOF
11728
11729else
11730 cat >>confdefs.h <<_ACEOF
11731#define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
11732_ACEOF
11733
11734fi
11735
11736fi
11737
11738
11739
11740if test "$BUILD_DMEVENTD" = yes; then
11741 dmeventd_prefix="$exec_prefix"
11742 if test "x$dmeventd_prefix" = "xNONE"; then
11743 dmeventd_prefix="$prefix"
11744 fi
11745 if test "x$dmeventd_prefix" = "xNONE"; then
11746 dmeventd_prefix=""
11747 fi
11748
11749# Check whether --with-dmeventd-path was given.
11750if test "${with_dmeventd_path+set}" = set; then
11751 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
11752#define DMEVENTD_PATH "$withval"
11753_ACEOF
11754
11755else
11756 cat >>confdefs.h <<_ACEOF
11757#define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
11758_ACEOF
11759
11760fi
11761
11762fi
11763
11764################################################################################
11765{ echo "$as_me:$LINENO: checking for kernel interface choice" >&5
11766echo $ECHO_N "checking for kernel interface choice... $ECHO_C" >&6; }
11767
11768# Check whether --with-interface was given.
11769if test "${with_interface+set}" = set; then
11770 withval=$with_interface; interface="$withval"
11771else
11772 interface=ioctl
11773fi
11774
11775if [ "x$interface" != xioctl ];
11776then
11777 { { echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
11778echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
11779 { (exit 1); exit 1; }; }
11780fi
11781{ echo "$as_me:$LINENO: result: $interface" >&5
11782echo "${ECHO_T}$interface" >&6; }
11783
11784################################################################################
11785DM_LIB_VERSION="\"`cat VERSION_LIB 2>/dev/null || echo Unknown`\""
d0191583 11786LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
fae0c576 11787
80992638 11788################################################################################
fae0c576 11789
83912faa 11790
795ca3e5
AK
11791
11792
11793
11794
11795
11796
5a52dca9 11797
8ef2b021 11798
199e490e 11799
69792976
AK
11800
11801
11802
d0191583 11803
69792976 11804
8106cdd5
AK
11805
11806
11807
11808
11809
d68a82ec 11810
036f273a 11811
7d1552c9 11812
8106cdd5 11813
0a62c911 11814
8106cdd5 11815
4a7f3eb2 11816
4922197a
AK
11817
11818
d8ac0fbc 11819
1a9ea74d 11820
8a2fc586
AK
11821
11822
d0191583 11823
93bd259b
AK
11824
11825
11826
11827
11828
d0191583
JM
11829
11830
11831
11832
11833
8a2fc586 11834
8ce0cbda 11835
8b1a3214 11836
33f732c5 11837
66e941e8 11838
d3c8211f
AK
11839
11840
68f2de6d
AK
11841
11842
80992638 11843################################################################################
93bd259b 11844ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc 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 11845
ad6254c5 11846cat >confcache <<\_ACEOF
795ca3e5
AK
11847# This file is a shell script that caches the results of configure
11848# tests run on this system so they can be shared between configure
ad6254c5
AK
11849# scripts and configure runs, see configure's option --config-cache.
11850# It is not useful on other systems. If it contains results you don't
11851# want to keep, you may remove or edit it.
795ca3e5 11852#
ad6254c5
AK
11853# config.status only pays attention to the cache file if you give it
11854# the --recheck option to rerun configure.
795ca3e5 11855#
ad6254c5
AK
11856# `ac_cv_env_foo' variables (set or unset) will be overridden when
11857# loading this file, other *unset* `ac_cv_foo' will be assigned the
11858# following values.
11859
11860_ACEOF
11861
795ca3e5
AK
11862# The following way of writing the cache mishandles newlines in values,
11863# but we know of no workaround that is simple, portable, and efficient.
7a197a62 11864# So, we kill variables containing newlines.
795ca3e5
AK
11865# Ultrix sh set writes to stderr and can't be redirected directly,
11866# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
11867(
11868 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11869 eval ac_val=\$$ac_var
11870 case $ac_val in #(
11871 *${as_nl}*)
11872 case $ac_var in #(
68f2de6d
AK
11873 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11874echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7a197a62
AK
11875 esac
11876 case $ac_var in #(
11877 _ | IFS | as_nl) ;; #(
11878 *) $as_unset $ac_var ;;
11879 esac ;;
11880 esac
11881 done
11882
ad6254c5 11883 (set) 2>&1 |
7a197a62
AK
11884 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11885 *${as_nl}ac_space=\ *)
ad6254c5
AK
11886 # `set' does not quote correctly, so add quotes (double-quote
11887 # substitution turns \\\\ into \\, and sed turns \\ into \).
11888 sed -n \
8a2fc586
AK
11889 "s/'/'\\\\''/g;
11890 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 11891 ;; #(
ad6254c5
AK
11892 *)
11893 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 11894 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 11895 ;;
7a197a62
AK
11896 esac |
11897 sort
11898) |
ad6254c5 11899 sed '
7a197a62 11900 /^ac_cv_env_/b end
ad6254c5 11901 t clear
7a197a62 11902 :clear
ad6254c5
AK
11903 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11904 t end
7a197a62
AK
11905 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11906 :end' >>confcache
11907if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11908 if test -w "$cache_file"; then
11909 test "x$cache_file" != "x/dev/null" &&
68f2de6d
AK
11910 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11911echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 11912 cat confcache >$cache_file
795ca3e5 11913 else
68f2de6d
AK
11914 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11915echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
11916 fi
11917fi
11918rm -f confcache
11919
795ca3e5
AK
11920test "x$prefix" = xNONE && prefix=$ac_default_prefix
11921# Let make expand exec_prefix.
11922test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11923
72b2cb61 11924DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
11925
11926ac_libobjs=
11927ac_ltlibobjs=
11928for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11929 # 1. Remove the extension, and $U if already installed.
7a197a62 11930 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
68f2de6d 11931 ac_i=`echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
11932 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11933 # will be set to the directory where LIBOBJS objects are built.
11934 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11935 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
11936done
11937LIBOBJS=$ac_libobjs
80992638 11938
ad6254c5
AK
11939LTLIBOBJS=$ac_ltlibobjs
11940
11941
11942
11943: ${CONFIG_STATUS=./config.status}
11944ac_clean_files_save=$ac_clean_files
11945ac_clean_files="$ac_clean_files $CONFIG_STATUS"
68f2de6d
AK
11946{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11947echo "$as_me: creating $CONFIG_STATUS" >&6;}
11948cat >$CONFIG_STATUS <<_ACEOF
ad6254c5
AK
11949#! $SHELL
11950# Generated by $as_me.
795ca3e5 11951# Run this file to recreate the current configuration.
795ca3e5 11952# Compiler output produced by configure, useful for debugging
ad6254c5
AK
11953# configure, is in config.log if it exists.
11954
11955debug=false
11956ac_cs_recheck=false
11957ac_cs_silent=false
11958SHELL=\${CONFIG_SHELL-$SHELL}
11959_ACEOF
11960
68f2de6d 11961cat >>$CONFIG_STATUS <<\_ACEOF
ad6254c5
AK
11962## --------------------- ##
11963## M4sh Initialization. ##
11964## --------------------- ##
11965
25fbec5b
AK
11966# Be more Bourne compatible
11967DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
11968if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11969 emulate sh
11970 NULLCMD=:
68f2de6d 11971 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
ad6254c5
AK
11972 # is contrary to our usage. Disable this feature.
11973 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
11974 setopt NO_GLOB_SUBST
11975else
25fbec5b
AK
11976 case `(set -o) 2>/dev/null` in
11977 *posix*) set -o posix ;;
11978esac
11979
7a197a62 11980fi
25fbec5b
AK
11981
11982
7a197a62
AK
11983
11984
11985# PATH needs CR
11986# Avoid depending upon Character Ranges.
11987as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11988as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11989as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11990as_cr_digits='0123456789'
11991as_cr_alnum=$as_cr_Letters$as_cr_digits
11992
b145d876
ZK
11993# The user is always right.
11994if test "${PATH_SEPARATOR+set}" != set; then
68f2de6d
AK
11995 echo "#! /bin/sh" >conf$$.sh
11996 echo "exit 0" >>conf$$.sh
11997 chmod +x conf$$.sh
11998 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11999 PATH_SEPARATOR=';'
12000 else
12001 PATH_SEPARATOR=:
12002 fi
12003 rm -f conf$$.sh
ad6254c5
AK
12004fi
12005
12006# Support unset when possible.
8a2fc586 12007if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
12008 as_unset=unset
12009else
12010 as_unset=false
12011fi
8106cdd5 12012
ad6254c5 12013
7a197a62
AK
12014# IFS
12015# We need space, tab and new line, in precisely that order. Quoting is
12016# there to prevent editors from complaining about space-tab.
12017# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12018# splitting by setting IFS to empty value.)
68f2de6d
AK
12019as_nl='
12020'
7a197a62
AK
12021IFS=" "" $as_nl"
12022
12023# Find who we are. Look in the path if we contain no directory separator.
12024case $0 in
12025 *[\\/]* ) as_myself=$0 ;;
12026 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12027for as_dir in $PATH
12028do
12029 IFS=$as_save_IFS
12030 test -z "$as_dir" && as_dir=.
12031 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12032done
12033IFS=$as_save_IFS
12034
12035 ;;
12036esac
12037# We did not find ourselves, most probably we were run as `sh COMMAND'
12038# in which case we are not to be found in the path.
12039if test "x$as_myself" = x; then
12040 as_myself=$0
12041fi
12042if test ! -f "$as_myself"; then
68f2de6d 12043 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
12044 { (exit 1); exit 1; }
12045fi
12046
ad6254c5 12047# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
12048for as_var in ENV MAIL MAILPATH
12049do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12050done
ad6254c5
AK
12051PS1='$ '
12052PS2='> '
12053PS4='+ '
12054
12055# NLS nuisances.
68f2de6d
AK
12056for as_var in \
12057 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12058 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12059 LC_TELEPHONE LC_TIME
12060do
12061 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12062 eval $as_var=C; export $as_var
12063 else
12064 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12065 fi
12066done
8106cdd5 12067
ad6254c5 12068# Required to use basename.
7a197a62
AK
12069if expr a : '\(a\)' >/dev/null 2>&1 &&
12070 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
12071 as_expr=expr
12072else
12073 as_expr=false
12074fi
8106cdd5 12075
7a197a62 12076if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
12077 as_basename=basename
12078else
12079 as_basename=false
12080fi
12081
12082
12083# Name of the executable.
7a197a62 12084as_me=`$as_basename -- "$0" ||
ad6254c5
AK
12085$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12086 X"$0" : 'X\(//\)$' \| \
7a197a62 12087 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
68f2de6d 12088echo X/"$0" |
7a197a62
AK
12089 sed '/^.*\/\([^/][^/]*\)\/*$/{
12090 s//\1/
12091 q
12092 }
12093 /^X\/\(\/\/\)$/{
12094 s//\1/
12095 q
12096 }
12097 /^X\/\(\/\).*/{
12098 s//\1/
12099 q
12100 }
12101 s/.*/./; q'`
ad6254c5 12102
7a197a62
AK
12103# CDPATH.
12104$as_unset CDPATH
ad6254c5
AK
12105
12106
ad6254c5 12107
ad6254c5
AK
12108 as_lineno_1=$LINENO
12109 as_lineno_2=$LINENO
ad6254c5 12110 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 12111 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 12112
ad6254c5
AK
12113 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12114 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
12115 # line-number line after each line using $LINENO; the second 'sed'
12116 # does the real work. The second script uses 'N' to pair each
12117 # line-number line with the line containing $LINENO, and appends
12118 # trailing '-' during substitution so that $LINENO is not a special
12119 # case at line end.
ad6254c5 12120 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
12121 # scripts with optimization help from Paolo Bonzini. Blame Lee
12122 # E. McMahon (1931-1989) for sed's syntax. :-)
12123 sed -n '
12124 p
12125 /[$]LINENO/=
12126 ' <$as_myself |
ad6254c5 12127 sed '
7a197a62
AK
12128 s/[$]LINENO.*/&-/
12129 t lineno
12130 b
12131 :lineno
ad6254c5 12132 N
7a197a62
AK
12133 :loop
12134 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 12135 t loop
7a197a62 12136 s/-\n.*//
ad6254c5 12137 ' >$as_me.lineno &&
7a197a62 12138 chmod +x "$as_me.lineno" ||
68f2de6d 12139 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
12140 { (exit 1); exit 1; }; }
12141
12142 # Don't try to exec as it changes $[0], causing all sort of problems
12143 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
12144 # original and so on. Autoconf is especially sensitive to this).
12145 . "./$as_me.lineno"
ad6254c5
AK
12146 # Exit status is that of the last command.
12147 exit
12148}
12149
12150
7a197a62
AK
12151if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12152 as_dirname=dirname
12153else
12154 as_dirname=false
12155fi
12156
12157ECHO_C= ECHO_N= ECHO_T=
12158case `echo -n x` in
12159-n*)
12160 case `echo 'x\c'` in
12161 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12162 *) ECHO_C='\c';;
12163 esac;;
12164*)
12165 ECHO_N='-n';;
ad6254c5 12166esac
68f2de6d 12167
7a197a62
AK
12168if expr a : '\(a\)' >/dev/null 2>&1 &&
12169 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
12170 as_expr=expr
12171else
12172 as_expr=false
12173fi
80992638 12174
ad6254c5 12175rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
12176if test -d conf$$.dir; then
12177 rm -f conf$$.dir/conf$$.file
12178else
12179 rm -f conf$$.dir
68f2de6d
AK
12180 mkdir conf$$.dir
12181fi
12182echo >conf$$.file
12183if ln -s conf$$.file conf$$ 2>/dev/null; then
12184 as_ln_s='ln -s'
12185 # ... but there are two gotchas:
12186 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12187 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12188 # In both cases, we have to default to `cp -p'.
12189 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
ad6254c5 12190 as_ln_s='cp -p'
68f2de6d
AK
12191elif ln conf$$.file conf$$ 2>/dev/null; then
12192 as_ln_s=ln
ad6254c5
AK
12193else
12194 as_ln_s='cp -p'
12195fi
7a197a62
AK
12196rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12197rmdir conf$$.dir 2>/dev/null
8106cdd5 12198
ad6254c5
AK
12199if mkdir -p . 2>/dev/null; then
12200 as_mkdir_p=:
12201else
8a2fc586 12202 test -d ./-p && rmdir ./-p
ad6254c5
AK
12203 as_mkdir_p=false
12204fi
12205
25fbec5b
AK
12206if test -x / >/dev/null 2>&1; then
12207 as_test_x='test -x'
7a197a62 12208else
25fbec5b
AK
12209 if ls -dL / >/dev/null 2>&1; then
12210 as_ls_L_option=L
12211 else
12212 as_ls_L_option=
12213 fi
12214 as_test_x='
12215 eval sh -c '\''
12216 if test -d "$1"; then
68f2de6d 12217 test -d "$1/.";
25fbec5b
AK
12218 else
12219 case $1 in
68f2de6d 12220 -*)set "./$1";;
25fbec5b
AK
12221 esac;
12222 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12223 ???[sx]*):;;*)false;;esac;fi
12224 '\'' sh
12225 '
7a197a62 12226fi
25fbec5b 12227as_executable_p=$as_test_x
ad6254c5
AK
12228
12229# Sed expression to map a string onto a valid CPP name.
8a2fc586 12230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
12231
12232# Sed expression to map a string onto a valid variable name.
8a2fc586 12233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
12234
12235
ad6254c5
AK
12236exec 6>&1
12237
7a197a62 12238# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 12239# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
12240# values after options handling.
12241ac_log="
ad6254c5 12242This file was extended by $as_me, which was
68f2de6d 12243generated by GNU Autoconf 2.61. Invocation command line was
ad6254c5
AK
12244
12245 CONFIG_FILES = $CONFIG_FILES
12246 CONFIG_HEADERS = $CONFIG_HEADERS
12247 CONFIG_LINKS = $CONFIG_LINKS
12248 CONFIG_COMMANDS = $CONFIG_COMMANDS
12249 $ $0 $@
12250
7a197a62
AK
12251on `(hostname || uname -n) 2>/dev/null | sed 1q`
12252"
12253
ad6254c5
AK
12254_ACEOF
12255
68f2de6d 12256cat >>$CONFIG_STATUS <<_ACEOF
ad6254c5 12257# Files that config.status was made for.
68f2de6d
AK
12258config_files="$ac_config_files"
12259config_headers="$ac_config_headers"
ad6254c5 12260
7a197a62 12261_ACEOF
ad6254c5 12262
68f2de6d 12263cat >>$CONFIG_STATUS <<\_ACEOF
ad6254c5
AK
12264ac_cs_usage="\
12265\`$as_me' instantiates files from templates according to the
12266current configuration.
12267
12268Usage: $0 [OPTIONS] [FILE]...
12269
12270 -h, --help print this help, then exit
25fbec5b 12271 -V, --version print version number and configuration settings, then exit
ad6254c5
AK
12272 -q, --quiet do not print progress messages
12273 -d, --debug don't remove temporary files
12274 --recheck update $as_me by reconfiguring in the same conditions
12275 --file=FILE[:TEMPLATE]
68f2de6d 12276 instantiate the configuration file FILE
72b2cb61 12277 --header=FILE[:TEMPLATE]
68f2de6d 12278 instantiate the configuration header FILE
ad6254c5
AK
12279
12280Configuration files:
12281$config_files
12282
72b2cb61
AK
12283Configuration headers:
12284$config_headers
12285
ad6254c5 12286Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 12287
7a197a62 12288_ACEOF
68f2de6d 12289cat >>$CONFIG_STATUS <<_ACEOF
ad6254c5
AK
12290ac_cs_version="\\
12291config.status
68f2de6d
AK
12292configured by $0, generated by GNU Autoconf 2.61,
12293 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 12294
68f2de6d 12295Copyright (C) 2006 Free Software Foundation, Inc.
ad6254c5
AK
12296This config.status script is free software; the Free Software Foundation
12297gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
12298
12299ac_pwd='$ac_pwd'
12300srcdir='$srcdir'
12301INSTALL='$INSTALL'
fddafd51 12302MKDIR_P='$MKDIR_P'
ad6254c5
AK
12303_ACEOF
12304
68f2de6d
AK
12305cat >>$CONFIG_STATUS <<\_ACEOF
12306# If no file are specified by the user, then we need to provide default
12307# value. By we need to know if files were specified by the user.
ad6254c5
AK
12308ac_need_defaults=:
12309while test $# != 0
12310do
12311 case $1 in
12312 --*=*)
7a197a62
AK
12313 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12314 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
12315 ac_shift=:
12316 ;;
7a197a62 12317 *)
ad6254c5
AK
12318 ac_option=$1
12319 ac_optarg=$2
12320 ac_shift=shift
12321 ;;
ad6254c5
AK
12322 esac
12323
12324 case $ac_option in
12325 # Handling of the options.
ad6254c5
AK
12326 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12327 ac_cs_recheck=: ;;
7a197a62 12328 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
68f2de6d 12329 echo "$ac_cs_version"; exit ;;
7a197a62 12330 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
12331 debug=: ;;
12332 --file | --fil | --fi | --f )
12333 $ac_shift
68f2de6d 12334 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
ad6254c5
AK
12335 ac_need_defaults=false;;
12336 --header | --heade | --head | --hea )
12337 $ac_shift
68f2de6d 12338 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
ad6254c5 12339 ac_need_defaults=false;;
7a197a62
AK
12340 --he | --h)
12341 # Conflict between --help and --header
68f2de6d 12342 { echo "$as_me: error: ambiguous option: $1
7a197a62
AK
12343Try \`$0 --help' for more information." >&2
12344 { (exit 1); exit 1; }; };;
12345 --help | --hel | -h )
68f2de6d 12346 echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
12347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12348 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12349 ac_cs_silent=: ;;
12350
12351 # This is an error.
68f2de6d 12352 -*) { echo "$as_me: error: unrecognized option: $1
7a197a62 12353Try \`$0 --help' for more information." >&2
ad6254c5
AK
12354 { (exit 1); exit 1; }; } ;;
12355
7a197a62
AK
12356 *) ac_config_targets="$ac_config_targets $1"
12357 ac_need_defaults=false ;;
ad6254c5
AK
12358
12359 esac
12360 shift
12361done
12362
12363ac_configure_extra_args=
12364
12365if $ac_cs_silent; then
12366 exec 6>/dev/null
12367 ac_configure_extra_args="$ac_configure_extra_args --silent"
12368fi
12369
12370_ACEOF
68f2de6d 12371cat >>$CONFIG_STATUS <<_ACEOF
ad6254c5 12372if \$ac_cs_recheck; then
68f2de6d
AK
12373 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12374 CONFIG_SHELL=$SHELL
7a197a62 12375 export CONFIG_SHELL
68f2de6d 12376 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
ad6254c5
AK
12377fi
12378
12379_ACEOF
68f2de6d 12380cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12381exec 5>>config.log
12382{
12383 echo
12384 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12385## Running $as_me. ##
12386_ASBOX
68f2de6d 12387 echo "$ac_log"
7a197a62 12388} >&5
ad6254c5 12389
7a197a62 12390_ACEOF
68f2de6d 12391cat >>$CONFIG_STATUS <<_ACEOF
7a197a62 12392_ACEOF
ad6254c5 12393
68f2de6d 12394cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12395
12396# Handling of arguments.
ad6254c5
AK
12397for ac_config_target in $ac_config_targets
12398do
7a197a62
AK
12399 case $ac_config_target in
12400 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
12401 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12402 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
12403 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
12404 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
93bd259b
AK
12405 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
12406 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
12407 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
12408 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 12409 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
93bd259b
AK
12410 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12411 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
12412 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
12413 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
12414 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
12415 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
12416 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
12417 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
12418 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
12419 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12420 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
7a197a62 12421 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 12422 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
7a197a62
AK
12423 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
12424 "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
7a197a62 12425
68f2de6d
AK
12426 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12427echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 12428 { (exit 1); exit 1; }; };;
80992638 12429 esac
ad6254c5
AK
12430done
12431
7a197a62 12432
ad6254c5
AK
12433# If the user did not use the arguments to specify the items to instantiate,
12434# then the envvar interface is used. Set only those that are not.
12435# We use the long form for the default assignment because of an extremely
12436# bizarre bug on SunOS 4.1.3.
12437if $ac_need_defaults; then
12438 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 12439 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
12440fi
12441
12442# Have a temporary directory for convenience. Make it in the build tree
7a197a62 12443# simply because there is no reason against having it here, and in addition,
ad6254c5 12444# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
12445# Hook for its removal unless debugging.
12446# Note that there is a small window in which the directory will not be cleaned:
12447# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
12448$debug ||
12449{
7a197a62
AK
12450 tmp=
12451 trap 'exit_status=$?
12452 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12453' 0
ad6254c5
AK
12454 trap '{ (exit 1); exit 1; }' 1 2 13 15
12455}
ad6254c5
AK
12456# Create a (secure) tmp directory for tmp files.
12457
12458{
7a197a62 12459 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
12460 test -n "$tmp" && test -d "$tmp"
12461} ||
12462{
7a197a62
AK
12463 tmp=./conf$$-$RANDOM
12464 (umask 077 && mkdir "$tmp")
ad6254c5
AK
12465} ||
12466{
68f2de6d 12467 echo "$me: cannot create a temporary directory in ." >&2
ad6254c5
AK
12468 { (exit 1); exit 1; }
12469}
12470
68f2de6d
AK
12471#
12472# Set up the sed scripts for CONFIG_FILES section.
12473#
12474
12475# No need to generate the scripts if there are no CONFIG_FILES.
12476# This happens for instance when ./config.status config.h
1995c9ff 12477if test -n "$CONFIG_FILES"; then
7a197a62 12478
68f2de6d 12479_ACEOF
5556819a 12480
68f2de6d
AK
12481
12482
12483ac_delim='%!_!# '
12484for ac_last_try in false false false false false :; do
12485 cat >conf$$subs.sed <<_ACEOF
12486SHELL!$SHELL$ac_delim
12487PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12488PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12489PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12490PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12491PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12492PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12493exec_prefix!$exec_prefix$ac_delim
12494prefix!$prefix$ac_delim
12495program_transform_name!$program_transform_name$ac_delim
12496bindir!$bindir$ac_delim
12497sbindir!$sbindir$ac_delim
12498libexecdir!$libexecdir$ac_delim
12499datarootdir!$datarootdir$ac_delim
12500datadir!$datadir$ac_delim
12501sysconfdir!$sysconfdir$ac_delim
12502sharedstatedir!$sharedstatedir$ac_delim
12503localstatedir!$localstatedir$ac_delim
12504includedir!$includedir$ac_delim
12505oldincludedir!$oldincludedir$ac_delim
12506docdir!$docdir$ac_delim
12507infodir!$infodir$ac_delim
12508htmldir!$htmldir$ac_delim
12509dvidir!$dvidir$ac_delim
12510pdfdir!$pdfdir$ac_delim
12511psdir!$psdir$ac_delim
12512libdir!$libdir$ac_delim
12513localedir!$localedir$ac_delim
12514mandir!$mandir$ac_delim
12515DEFS!$DEFS$ac_delim
12516ECHO_C!$ECHO_C$ac_delim
12517ECHO_N!$ECHO_N$ac_delim
12518ECHO_T!$ECHO_T$ac_delim
12519LIBS!$LIBS$ac_delim
12520build_alias!$build_alias$ac_delim
12521host_alias!$host_alias$ac_delim
12522target_alias!$target_alias$ac_delim
12523build!$build$ac_delim
12524build_cpu!$build_cpu$ac_delim
12525build_vendor!$build_vendor$ac_delim
12526build_os!$build_os$ac_delim
12527host!$host$ac_delim
12528host_cpu!$host_cpu$ac_delim
12529host_vendor!$host_vendor$ac_delim
12530host_os!$host_os$ac_delim
12531target!$target$ac_delim
12532target_cpu!$target_cpu$ac_delim
12533target_vendor!$target_vendor$ac_delim
12534target_os!$target_os$ac_delim
5951ef33 12535SED!$SED$ac_delim
68f2de6d
AK
12536AWK!$AWK$ac_delim
12537CC!$CC$ac_delim
12538CFLAGS!$CFLAGS$ac_delim
12539LDFLAGS!$LDFLAGS$ac_delim
12540CPPFLAGS!$CPPFLAGS$ac_delim
12541ac_ct_CC!$ac_ct_CC$ac_delim
12542EXEEXT!$EXEEXT$ac_delim
12543OBJEXT!$OBJEXT$ac_delim
12544CPP!$CPP$ac_delim
12545GREP!$GREP$ac_delim
12546EGREP!$EGREP$ac_delim
12547INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12548INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12549INSTALL_DATA!$INSTALL_DATA$ac_delim
12550LN_S!$LN_S$ac_delim
12551SET_MAKE!$SET_MAKE$ac_delim
12552RANLIB!$RANLIB$ac_delim
12553CFLOW_CMD!$CFLOW_CMD$ac_delim
12554CSCOPE_CMD!$CSCOPE_CMD$ac_delim
12555ALLOCA!$ALLOCA$ac_delim
12556LIBOBJS!$LIBOBJS$ac_delim
12557POW_LIB!$POW_LIB$ac_delim
12558LCOV!$LCOV$ac_delim
12559GENHTML!$GENHTML$ac_delim
12560LVM2CMD_LIB!$LVM2CMD_LIB$ac_delim
12561MSGFMT!$MSGFMT$ac_delim
12562MODPROBE_CMD!$MODPROBE_CMD$ac_delim
12563BUILD_DMEVENTD!$BUILD_DMEVENTD$ac_delim
12564CLDFLAGS!$CLDFLAGS$ac_delim
12565CLDNOWHOLEARCHIVE!$CLDNOWHOLEARCHIVE$ac_delim
12566CLDWHOLEARCHIVE!$CLDWHOLEARCHIVE$ac_delim
12567CLUSTER!$CLUSTER$ac_delim
12568CLVMD!$CLVMD$ac_delim
12569CMDLIB!$CMDLIB$ac_delim
12570COPTIMISE_FLAG!$COPTIMISE_FLAG$ac_delim
12571DEBUG!$DEBUG$ac_delim
12572DEVMAPPER!$DEVMAPPER$ac_delim
12573DMDIR!$DMDIR$ac_delim
12574DMEVENTD!$DMEVENTD$ac_delim
12575DM_COMPAT!$DM_COMPAT$ac_delim
12576DM_DEVICE_GID!$DM_DEVICE_GID$ac_delim
12577DM_DEVICE_MODE!$DM_DEVICE_MODE$ac_delim
12578DM_DEVICE_UID!$DM_DEVICE_UID$ac_delim
12579DM_IOCTLS!$DM_IOCTLS$ac_delim
12580DM_LIB_VERSION!$DM_LIB_VERSION$ac_delim
12581FSADM!$FSADM$ac_delim
12582GROUP!$GROUP$ac_delim
68f2de6d
AK
12583_ACEOF
12584
12585 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12586 break
12587 elif $ac_last_try; then
12588 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12589echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12590 { (exit 1); exit 1; }; }
12591 else
12592 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12593 fi
12594done
12595
12596ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12597if test -n "$ac_eof"; then
12598 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12599 ac_eof=`expr $ac_eof + 1`
1995c9ff 12600fi
7a197a62 12601
68f2de6d
AK
12602cat >>$CONFIG_STATUS <<_ACEOF
12603cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12604/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12605_ACEOF
12606sed '
12607s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12608s/^/s,@/; s/!/@,|#_!!_#|/
12609:n
12610t n
12611s/'"$ac_delim"'$/,g/; t
12612s/$/\\/; p
12613N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12614' >>$CONFIG_STATUS <conf$$subs.sed
12615rm -f conf$$subs.sed
12616cat >>$CONFIG_STATUS <<_ACEOF
12617CEOF$ac_eof
1995c9ff 12618_ACEOF
7a197a62 12619
8106cdd5 12620
1995c9ff
AK
12621ac_delim='%!_!# '
12622for ac_last_try in false false false false false :; do
68f2de6d 12623 cat >conf$$subs.sed <<_ACEOF
5951ef33 12624HAVE_LIBDL!$HAVE_LIBDL$ac_delim
68f2de6d
AK
12625HAVE_REALTIME!$HAVE_REALTIME$ac_delim
12626HAVE_SELINUX!$HAVE_SELINUX$ac_delim
12627INTL!$INTL$ac_delim
12628INTL_PACKAGE!$INTL_PACKAGE$ac_delim
12629JOBS!$JOBS$ac_delim
12630LDDEPS!$LDDEPS$ac_delim
12631LIB_SUFFIX!$LIB_SUFFIX$ac_delim
12632LOCALEDIR!$LOCALEDIR$ac_delim
12633LVM1!$LVM1$ac_delim
12634LVM1_FALLBACK!$LVM1_FALLBACK$ac_delim
12635CONFDIR!$CONFDIR$ac_delim
12636LVM_VERSION!$LVM_VERSION$ac_delim
12637MIRRORS!$MIRRORS$ac_delim
12638OWNER!$OWNER$ac_delim
12639PKGCONFIG!$PKGCONFIG$ac_delim
12640POOL!$POOL$ac_delim
12641SNAPSHOTS!$SNAPSHOTS$ac_delim
12642STATICDIR!$STATICDIR$ac_delim
12643STATIC_LINK!$STATIC_LINK$ac_delim
12644LIB_PTHREAD!$LIB_PTHREAD$ac_delim
93bd259b
AK
12645interface!$interface$ac_delim
12646kerneldir!$kerneldir$ac_delim
12647missingkernel!$missingkernel$ac_delim
12648kernelvsn!$kernelvsn$ac_delim
12649tmpdir!$tmpdir$ac_delim
68f2de6d
AK
12650usrlibdir!$usrlibdir$ac_delim
12651usrsbindir!$usrsbindir$ac_delim
12652LTLIBOBJS!$LTLIBOBJS$ac_delim
12653_ACEOF
12654
93bd259b 12655 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 29; then
1995c9ff
AK
12656 break
12657 elif $ac_last_try; then
68f2de6d
AK
12658 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12659echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
12660 { (exit 1); exit 1; }; }
12661 else
12662 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12663 fi
12664done
7a197a62 12665
68f2de6d
AK
12666ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12667if test -n "$ac_eof"; then
12668 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12669 ac_eof=`expr $ac_eof + 1`
12670fi
fddafd51 12671
68f2de6d
AK
12672cat >>$CONFIG_STATUS <<_ACEOF
12673cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12674/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
1995c9ff 12675_ACEOF
68f2de6d
AK
12676sed '
12677s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12678s/^/s,@/; s/!/@,|#_!!_#|/
12679:n
12680t n
12681s/'"$ac_delim"'$/,g/; t
12682s/$/\\/; p
12683N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12684' >>$CONFIG_STATUS <conf$$subs.sed
12685rm -f conf$$subs.sed
12686cat >>$CONFIG_STATUS <<_ACEOF
12687:end
12688s/|#_!!_#|//g
12689CEOF$ac_eof
7a197a62
AK
12690_ACEOF
12691
68f2de6d 12692
7a197a62
AK
12693# VPATH may cause trouble with some makes, so we remove $(srcdir),
12694# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12695# trailing colons and then remove the whole line if VPATH becomes empty
12696# (actually we leave an empty line to preserve line numbers).
12697if test "x$srcdir" = x.; then
12698 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12699s/:*\$(srcdir):*/:/
12700s/:*\${srcdir}:*/:/
12701s/:*@srcdir@:*/:/
12702s/^\([^=]*=[ ]*\):*/\1/
12703s/:*$//
12704s/^[^=]*=[ ]*$//
12705}'
12706fi
12707
68f2de6d 12708cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12709fi # test -n "$CONFIG_FILES"
12710
12711
68f2de6d 12712for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
7a197a62
AK
12713do
12714 case $ac_tag in
12715 :[FHLC]) ac_mode=$ac_tag; continue;;
12716 esac
12717 case $ac_mode$ac_tag in
12718 :[FHL]*:*);;
68f2de6d
AK
12719 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12720echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7a197a62
AK
12721 { (exit 1); exit 1; }; };;
12722 :[FH]-) ac_tag=-:-;;
12723 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12724 esac
12725 ac_save_IFS=$IFS
12726 IFS=:
12727 set x $ac_tag
12728 IFS=$ac_save_IFS
12729 shift
12730 ac_file=$1
12731 shift
12732
12733 case $ac_mode in
12734 :L) ac_source=$1;;
12735 :[FH])
12736 ac_file_inputs=
12737 for ac_f
12738 do
12739 case $ac_f in
12740 -) ac_f="$tmp/stdin";;
12741 *) # Look for the file first in the build tree, then in the source tree
12742 # (if the path is not absolute). The absolute path cannot be DOS-style,
12743 # because $ac_f cannot contain `:'.
12744 test -f "$ac_f" ||
12745 case $ac_f in
12746 [\\/$]*) false;;
12747 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12748 esac ||
68f2de6d
AK
12749 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12750echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
12751 { (exit 1); exit 1; }; };;
12752 esac
68f2de6d 12753 ac_file_inputs="$ac_file_inputs $ac_f"
7a197a62
AK
12754 done
12755
12756 # Let's still pretend it is `configure' which instantiates (i.e., don't
12757 # use $as_me), people would be surprised to read:
12758 # /* config.h. Generated by config.status. */
68f2de6d
AK
12759 configure_input="Generated from "`IFS=:
12760 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7a197a62
AK
12761 if test x"$ac_file" != x-; then
12762 configure_input="$ac_file. $configure_input"
68f2de6d
AK
12763 { echo "$as_me:$LINENO: creating $ac_file" >&5
12764echo "$as_me: creating $ac_file" >&6;}
7a197a62
AK
12765 fi
12766
12767 case $ac_tag in
68f2de6d 12768 *:-:* | *:-) cat >"$tmp/stdin";;
7a197a62
AK
12769 esac
12770 ;;
80992638 12771 esac
8106cdd5 12772
7a197a62 12773 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 12774$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
12775 X"$ac_file" : 'X\(//\)[^/]' \| \
12776 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 12777 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
68f2de6d 12778echo X"$ac_file" |
7a197a62
AK
12779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12780 s//\1/
12781 q
12782 }
12783 /^X\(\/\/\)[^/].*/{
12784 s//\1/
12785 q
12786 }
12787 /^X\(\/\/\)$/{
12788 s//\1/
12789 q
12790 }
12791 /^X\(\/\).*/{
12792 s//\1/
12793 q
12794 }
12795 s/.*/./; q'`
12796 { as_dir="$ac_dir"
12797 case $as_dir in #(
12798 -*) as_dir=./$as_dir;;
12799 esac
12800 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 12801 as_dirs=
7a197a62
AK
12802 while :; do
12803 case $as_dir in #(
68f2de6d 12804 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7a197a62
AK
12805 *) as_qdir=$as_dir;;
12806 esac
12807 as_dirs="'$as_qdir' $as_dirs"
12808 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 12809$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
12810 X"$as_dir" : 'X\(//\)[^/]' \| \
12811 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 12812 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
68f2de6d 12813echo X"$as_dir" |
7a197a62
AK
12814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12815 s//\1/
12816 q
12817 }
12818 /^X\(\/\/\)[^/].*/{
12819 s//\1/
12820 q
12821 }
12822 /^X\(\/\/\)$/{
12823 s//\1/
12824 q
12825 }
12826 /^X\(\/\).*/{
12827 s//\1/
12828 q
12829 }
12830 s/.*/./; q'`
12831 test -d "$as_dir" && break
ad6254c5 12832 done
7a197a62 12833 test -z "$as_dirs" || eval "mkdir $as_dirs"
68f2de6d
AK
12834 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12835echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 12836 { (exit 1); exit 1; }; }; }
ad6254c5
AK
12837 ac_builddir=.
12838
7a197a62
AK
12839case "$ac_dir" in
12840.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12841*)
68f2de6d 12842 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7a197a62 12843 # A ".." for each directory in $ac_dir_suffix.
68f2de6d 12844 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7a197a62
AK
12845 case $ac_top_builddir_sub in
12846 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12847 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12848 esac ;;
12849esac
12850ac_abs_top_builddir=$ac_pwd
12851ac_abs_builddir=$ac_pwd$ac_dir_suffix
12852# for backward compatibility:
12853ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
12854
12855case $srcdir in
7a197a62 12856 .) # We are building in place.
ad6254c5 12857 ac_srcdir=.
7a197a62
AK
12858 ac_top_srcdir=$ac_top_builddir_sub
12859 ac_abs_top_srcdir=$ac_pwd ;;
12860 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 12861 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
12862 ac_top_srcdir=$srcdir
12863 ac_abs_top_srcdir=$srcdir ;;
12864 *) # Relative name.
12865 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12866 ac_top_srcdir=$ac_top_build_prefix$srcdir
12867 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 12868esac
7a197a62 12869ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 12870
ad6254c5 12871
7a197a62
AK
12872 case $ac_mode in
12873 :F)
12874 #
12875 # CONFIG_FILE
12876 #
ad6254c5
AK
12877
12878 case $INSTALL in
12879 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 12880 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 12881 esac
fddafd51
ZK
12882 ac_MKDIR_P=$MKDIR_P
12883 case $MKDIR_P in
12884 [\\/$]* | ?:[\\/]* ) ;;
12885 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12886 esac
7a197a62 12887_ACEOF
795ca3e5 12888
68f2de6d 12889cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12890# If the template does not know about datarootdir, expand it.
12891# FIXME: This hack should be removed a few years after 2.60.
12892ac_datarootdir_hack=; ac_datarootdir_seen=
12893
68f2de6d 12894case `sed -n '/datarootdir/ {
7a197a62
AK
12895 p
12896 q
12897}
12898/@datadir@/p
12899/@docdir@/p
12900/@infodir@/p
12901/@localedir@/p
12902/@mandir@/p
68f2de6d 12903' $ac_file_inputs` in
7a197a62
AK
12904*datarootdir*) ac_datarootdir_seen=yes;;
12905*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
68f2de6d
AK
12906 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12907echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 12908_ACEOF
68f2de6d 12909cat >>$CONFIG_STATUS <<_ACEOF
7a197a62
AK
12910 ac_datarootdir_hack='
12911 s&@datadir@&$datadir&g
12912 s&@docdir@&$docdir&g
12913 s&@infodir@&$infodir&g
12914 s&@localedir@&$localedir&g
12915 s&@mandir@&$mandir&g
12916 s&\\\${datarootdir}&$datarootdir&g' ;;
12917esac
12918_ACEOF
12919
12920# Neutralize VPATH when `$srcdir' = `.'.
12921# Shell code in configure.ac might set extrasub.
12922# FIXME: do we really want to maintain this feature?
68f2de6d
AK
12923cat >>$CONFIG_STATUS <<_ACEOF
12924 sed "$ac_vpsub
ad6254c5
AK
12925$extrasub
12926_ACEOF
68f2de6d 12927cat >>$CONFIG_STATUS <<\_ACEOF
ad6254c5
AK
12928:t
12929/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
68f2de6d 12930s&@configure_input@&$configure_input&;t t
7a197a62
AK
12931s&@top_builddir@&$ac_top_builddir_sub&;t t
12932s&@srcdir@&$ac_srcdir&;t t
12933s&@abs_srcdir@&$ac_abs_srcdir&;t t
12934s&@top_srcdir@&$ac_top_srcdir&;t t
12935s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12936s&@builddir@&$ac_builddir&;t t
12937s&@abs_builddir@&$ac_abs_builddir&;t t
12938s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12939s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 12940s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 12941$ac_datarootdir_hack
68f2de6d 12942" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
7a197a62
AK
12943
12944test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12945 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12946 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
68f2de6d 12947 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 12948which seems to be undefined. Please make sure it is defined." >&5
68f2de6d 12949echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
12950which seems to be undefined. Please make sure it is defined." >&2;}
12951
12952 rm -f "$tmp/stdin"
72b2cb61 12953 case $ac_file in
68f2de6d
AK
12954 -) cat "$tmp/out"; rm -f "$tmp/out";;
12955 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12956 esac
7a197a62
AK
12957 ;;
12958 :H)
12959 #
12960 # CONFIG_HEADER
12961 #
68f2de6d
AK
12962_ACEOF
12963
12964# Transform confdefs.h into a sed script `conftest.defines', that
12965# substitutes the proper values into config.h.in to produce config.h.
12966rm -f conftest.defines conftest.tail
12967# First, append a space to every undef/define line, to ease matching.
12968echo 's/$/ /' >conftest.defines
12969# Then, protect against being on the right side of a sed subst, or in
12970# an unquoted here document, in config.status. If some macros were
12971# called several times there might be several #defines for the same
12972# symbol, which is useless. But do not sort them, since the last
12973# AC_DEFINE must be honored.
12974ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12975# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12976# NAME is the cpp macro being defined, VALUE is the value it is being given.
12977# PARAMS is the parameter list in the macro definition--in most cases, it's
12978# just an empty string.
12979ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12980ac_dB='\\)[ (].*,\\1define\\2'
12981ac_dC=' '
12982ac_dD=' ,'
12983
12984uniq confdefs.h |
12985 sed -n '
12986 t rset
12987 :rset
12988 s/^[ ]*#[ ]*define[ ][ ]*//
12989 t ok
12990 d
12991 :ok
12992 s/[\\&,]/\\&/g
12993 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12994 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12995 ' >>conftest.defines
12996
12997# Remove the space that was appended to ease matching.
12998# Then replace #undef with comments. This is necessary, for
12999# example, in the case of _POSIX_SOURCE, which is predefined and required
13000# on some systems where configure will not decide to define it.
13001# (The regexp can be short, since the line contains either #define or #undef.)
13002echo 's/ $//
13003s,^[ #]*u.*,/* & */,' >>conftest.defines
13004
13005# Break up conftest.defines:
13006ac_max_sed_lines=50
13007
13008# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13009# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13010# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13011# et cetera.
13012ac_in='$ac_file_inputs'
13013ac_out='"$tmp/out1"'
13014ac_nxt='"$tmp/out2"'
13015
13016while :
13017do
13018 # Write a here document:
13019 cat >>$CONFIG_STATUS <<_ACEOF
13020 # First, check the format of the line:
13021 cat >"\$tmp/defines.sed" <<\\CEOF
13022/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13023/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13024b
13025:def
13026_ACEOF
13027 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13028 echo 'CEOF
13029 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13030 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13031 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13032 grep . conftest.tail >/dev/null || break
13033 rm -f conftest.defines
13034 mv conftest.tail conftest.defines
13035done
13036rm -f conftest.defines conftest.tail
13037
13038echo "ac_result=$ac_in" >>$CONFIG_STATUS
13039cat >>$CONFIG_STATUS <<\_ACEOF
72b2cb61 13040 if test x"$ac_file" != x-; then
68f2de6d
AK
13041 echo "/* $configure_input */" >"$tmp/config.h"
13042 cat "$ac_result" >>"$tmp/config.h"
13043 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13044 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13045echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 13046 else
68f2de6d
AK
13047 rm -f $ac_file
13048 mv "$tmp/config.h" $ac_file
72b2cb61
AK
13049 fi
13050 else
68f2de6d
AK
13051 echo "/* $configure_input */"
13052 cat "$ac_result"
72b2cb61 13053 fi
68f2de6d 13054 rm -f "$tmp/out12"
7a197a62
AK
13055 ;;
13056
13057
13058 esac
13059
13060done # for ac_tag
795ca3e5 13061
795ca3e5 13062
ad6254c5
AK
13063{ (exit 0); exit 0; }
13064_ACEOF
795ca3e5 13065chmod +x $CONFIG_STATUS
ad6254c5
AK
13066ac_clean_files=$ac_clean_files_save
13067
13068
13069# configure is writing to config.log, and then calls config.status.
13070# config.status does its own redirection, appending to config.log.
13071# Unfortunately, on DOS this fails, as config.log is still kept open
13072# by configure, so config.status won't be able to write to it; its
13073# output is simply discarded. So we exec the FD to /dev/null,
13074# effectively closing config.log, so it can be properly (re)opened and
13075# appended to by config.status. When coming back to configure, we
13076# need to make the FD available again.
13077if test "$no_create" != yes; then
13078 ac_cs_success=:
13079 ac_config_status_args=
13080 test "$silent" = yes &&
13081 ac_config_status_args="$ac_config_status_args --quiet"
13082 exec 5>/dev/null
13083 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13084 exec 5>>config.log
13085 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13086 # would make configure fail if this is the last instruction.
13087 $ac_cs_success || { (exit 1); exit 1; }
13088fi
795ca3e5 13089
2dc95e1c
AK
13090
13091if test x$ODIRECT != xyes; then
68f2de6d
AK
13092 { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
13093echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 13094fi
This page took 1.625155 seconds and 5 git commands to generate.