]> sourceware.org Git - lvm2.git/blame - configure
Generate clvmd init script at configuration time for Red Hat-based distros.
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
68f2de6d 3# Generated by GNU Autoconf 2.61.
795ca3e5 4#
7a197a62 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
68f2de6d 6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
795ca3e5
AK
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
ad6254c5
AK
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
25fbec5b
AK
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
68f2de6d 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
ad6254c5
AK
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
21 setopt NO_GLOB_SUBST
22else
25fbec5b
AK
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
7a197a62 27fi
25fbec5b
AK
28
29
7a197a62
AK
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
b145d876
ZK
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
68f2de6d
AK
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
ad6254c5
AK
51fi
52
53# Support unset when possible.
8a2fc586 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
55 as_unset=unset
56else
57 as_unset=false
58fi
59
60
7a197a62
AK
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
68f2de6d
AK
66as_nl='
67'
7a197a62
AK
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
68f2de6d 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
91 { (exit 1); exit 1; }
92fi
93
ad6254c5 94# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
ad6254c5
AK
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
68f2de6d
AK
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113done
ad6254c5
AK
114
115# Required to use basename.
7a197a62
AK
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
118 as_expr=expr
119else
120 as_expr=false
121fi
122
7a197a62 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
7a197a62 131as_me=`$as_basename -- "$0" ||
ad6254c5
AK
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
7a197a62 134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
68f2de6d 135echo X/"$0" |
7a197a62
AK
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
ad6254c5 149
7a197a62
AK
150# CDPATH.
151$as_unset CDPATH
ad6254c5 152
ad6254c5 153
7a197a62
AK
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
ad6254c5
AK
159fi
160
68f2de6d 161 if test $as_have_required = yes && (eval ":
7a197a62
AK
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
ad6254c5 177
7a197a62
AK
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
ad6254c5 185
7a197a62
AK
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
ad6254c5 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25fbec5b 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
ad6254c5
AK
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
7a197a62 226 case $as_dir in
ad6254c5 227 /*)
7a197a62
AK
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
68f2de6d 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7a197a62
AK
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
25fbec5b
AK
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
7a197a62 252fi
25fbec5b 253
7a197a62
AK
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
68f2de6d 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7a197a62
AK
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
25fbec5b
AK
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
7a197a62 273fi
25fbec5b 274
7a197a62
AK
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
ad6254c5
AK
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
ad6254c5 330 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62
AK
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
68f2de6d
AK
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
7a197a62
AK
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
68f2de6d
AK
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
7a197a62
AK
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
ad6254c5
AK
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
ad6254c5 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
ad6254c5 442 sed '
7a197a62
AK
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
ad6254c5 447 N
7a197a62
AK
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 450 t loop
7a197a62 451 s/-\n.*//
ad6254c5 452 ' >$as_me.lineno &&
7a197a62 453 chmod +x "$as_me.lineno" ||
68f2de6d 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
ad6254c5
AK
461 # Exit status is that of the last command.
462 exit
463}
795ca3e5 464
ad6254c5 465
7a197a62
AK
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
ad6254c5 481esac
68f2de6d 482
7a197a62
AK
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
68f2de6d
AK
495 mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
ad6254c5 505 as_ln_s='cp -p'
68f2de6d
AK
506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
ad6254c5
AK
508else
509 as_ln_s='cp -p'
510fi
7a197a62
AK
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
ad6254c5
AK
513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
8a2fc586 517 test -d ./-p && rmdir ./-p
ad6254c5
AK
518 as_mkdir_p=false
519fi
520
25fbec5b
AK
521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
7a197a62 523else
25fbec5b
AK
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
68f2de6d 532 test -d "$1/.";
25fbec5b
AK
533 else
534 case $1 in
68f2de6d 535 -*)set "./$1";;
25fbec5b
AK
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
7a197a62 541fi
25fbec5b 542as_executable_p=$as_test_x
ad6254c5
AK
543
544# Sed expression to map a string onto a valid CPP name.
8a2fc586 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
546
547# Sed expression to map a string onto a valid variable name.
8a2fc586 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
549
550
ad6254c5 551
7a197a62 552exec 7<&0 </dev/null 6>&1
ad6254c5
AK
553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
ad6254c5
AK
559#
560# Initializations.
561#
795ca3e5 562ac_default_prefix=/usr/local
7a197a62 563ac_clean_files=
ad6254c5 564ac_config_libobj_dir=.
7a197a62 565LIBOBJS=
ad6254c5
AK
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
ad6254c5
AK
572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="lib/device/dev-cache.h"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
25fbec5b 583#ifdef HAVE_SYS_TYPES_H
ad6254c5
AK
584# include <sys/types.h>
585#endif
25fbec5b 586#ifdef HAVE_SYS_STAT_H
ad6254c5
AK
587# include <sys/stat.h>
588#endif
25fbec5b 589#ifdef STDC_HEADERS
ad6254c5
AK
590# include <stdlib.h>
591# include <stddef.h>
592#else
25fbec5b 593# ifdef HAVE_STDLIB_H
ad6254c5
AK
594# include <stdlib.h>
595# endif
596#endif
25fbec5b
AK
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ad6254c5
AK
599# include <memory.h>
600# endif
601# include <string.h>
602#endif
25fbec5b 603#ifdef HAVE_STRINGS_H
ad6254c5
AK
604# include <strings.h>
605#endif
25fbec5b 606#ifdef HAVE_INTTYPES_H
ad6254c5 607# include <inttypes.h>
ad6254c5 608#endif
25fbec5b 609#ifdef HAVE_STDINT_H
7a197a62
AK
610# include <stdint.h>
611#endif
25fbec5b 612#ifdef HAVE_UNISTD_H
ad6254c5
AK
613# include <unistd.h>
614#endif"
615
795ca3e5 616ac_default_prefix=/usr
7a197a62
AK
617ac_subst_vars='SHELL
618PATH_SEPARATOR
619PACKAGE_NAME
620PACKAGE_TARNAME
621PACKAGE_VERSION
622PACKAGE_STRING
623PACKAGE_BUGREPORT
624exec_prefix
625prefix
626program_transform_name
627bindir
628sbindir
629libexecdir
630datarootdir
631datadir
632sysconfdir
633sharedstatedir
634localstatedir
635includedir
636oldincludedir
637docdir
638infodir
639htmldir
640dvidir
641pdfdir
642psdir
643libdir
644localedir
645mandir
646DEFS
647ECHO_C
648ECHO_N
649ECHO_T
650LIBS
651build_alias
652host_alias
653target_alias
654build
655build_cpu
656build_vendor
657build_os
658host
659host_cpu
660host_vendor
661host_os
662target
663target_cpu
664target_vendor
665target_os
5951ef33 666SED
7a197a62
AK
667AWK
668CC
669CFLAGS
670LDFLAGS
671CPPFLAGS
672ac_ct_CC
673EXEEXT
674OBJEXT
d0191583
JM
675CPP
676GREP
677EGREP
7a197a62
AK
678INSTALL_PROGRAM
679INSTALL_SCRIPT
680INSTALL_DATA
681LN_S
682SET_MAKE
683RANLIB
684CFLOW_CMD
685CSCOPE_CMD
7a197a62
AK
686ALLOCA
687LIBOBJS
688POW_LIB
fddafd51
ZK
689LCOV
690GENHTML
d179cc7a 691LVM2CMD_LIB
7a197a62
AK
692MSGFMT
693MODPROBE_CMD
d0191583 694BUILD_DMEVENTD
7a197a62 695CLDFLAGS
7a197a62 696CLDNOWHOLEARCHIVE
d0191583
JM
697CLDWHOLEARCHIVE
698CLUSTER
699CLVMD
700CMDLIB
701COPTIMISE_FLAG
7a197a62
AK
702DEBUG
703DEVMAPPER
d0191583
JM
704DMEVENTD
705DM_COMPAT
706DM_DEVICE_GID
707DM_DEVICE_MODE
708DM_DEVICE_UID
709DM_IOCTLS
710DM_LIB_VERSION
7e3fe830 711DM_LIB_PATCHLEVEL
d0191583
JM
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]
24bbc4d7
AK
1350 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1351 --with-device-gid=UID Set the group used for new device nodes [GID=0]
93bd259b 1352 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
ad6254c5
AK
1353 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1354 TYPE=internal
1355 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1356 TYPE=internal
1357 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1358 TYPE=internal
1359 --with-snapshots=TYPE Snapshot support: internal/shared/none
1360 TYPE=internal
1361 --with-mirrors=TYPE Mirror support: internal/shared/none
1362 TYPE=internal
5c7fc7c4 1363 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all
a266258f 1364 TYPE=none
d0191583
JM
1365 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1366 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
ad6254c5
AK
1367 --with-confdir=DIR Configuration files in DIR /etc
1368 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
68f2de6d
AK
1369 --with-usrlibdir=DIR
1370 --with-usrsbindir=DIR
93bd259b
AK
1371 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
1372 --with-dmeventd-path=PATH dmeventd path [${exec_prefix}/sbin/dmeventd]
1373 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1374
1375Some influential environment variables:
1376 CC C compiler command
1377 CFLAGS C compiler flags
1378 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1379 nonstandard directory <lib dir>
25fbec5b 1380 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1381 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1382 you have headers in a nonstandard directory <include dir>
ad6254c5
AK
1383 CPP C preprocessor
1384
1385Use these variables to override the choices made by `configure' or to help
1386it to find libraries and programs with nonstandard names/locations.
1387
1388_ACEOF
7a197a62 1389ac_status=$?
ad6254c5
AK
1390fi
1391
1392if test "$ac_init_help" = "recursive"; then
1393 # If there are subdirs, report their specific --help.
ad6254c5 1394 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
68f2de6d 1395 test -d "$ac_dir" || continue
ad6254c5
AK
1396 ac_builddir=.
1397
7a197a62
AK
1398case "$ac_dir" in
1399.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1400*)
68f2de6d 1401 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7a197a62 1402 # A ".." for each directory in $ac_dir_suffix.
68f2de6d 1403 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7a197a62
AK
1404 case $ac_top_builddir_sub in
1405 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1407 esac ;;
1408esac
1409ac_abs_top_builddir=$ac_pwd
1410ac_abs_builddir=$ac_pwd$ac_dir_suffix
1411# for backward compatibility:
1412ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1413
1414case $srcdir in
7a197a62 1415 .) # We are building in place.
ad6254c5 1416 ac_srcdir=.
7a197a62
AK
1417 ac_top_srcdir=$ac_top_builddir_sub
1418 ac_abs_top_srcdir=$ac_pwd ;;
1419 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1420 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1421 ac_top_srcdir=$srcdir
1422 ac_abs_top_srcdir=$srcdir ;;
1423 *) # Relative name.
1424 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1425 ac_top_srcdir=$ac_top_build_prefix$srcdir
1426 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1427esac
7a197a62
AK
1428ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1429
1430 cd "$ac_dir" || { ac_status=$?; continue; }
1431 # Check for guested configure.
1432 if test -f "$ac_srcdir/configure.gnu"; then
1433 echo &&
1434 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1435 elif test -f "$ac_srcdir/configure"; then
1436 echo &&
1437 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1438 else
68f2de6d 1439 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1440 fi || ac_status=$?
1441 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1442 done
1443fi
1444
7a197a62 1445test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1446if $ac_init_version; then
1447 cat <<\_ACEOF
7a197a62 1448configure
68f2de6d 1449generated by GNU Autoconf 2.61
ad6254c5 1450
7a197a62 1451Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
68f2de6d 14522002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
ad6254c5
AK
1453This configure script is free software; the Free Software Foundation
1454gives unlimited permission to copy, distribute and modify it.
1455_ACEOF
7a197a62 1456 exit
ad6254c5 1457fi
7a197a62 1458cat >config.log <<_ACEOF
ad6254c5
AK
1459This file contains any messages produced by compilers while
1460running configure, to aid debugging if configure makes a mistake.
1461
1462It was created by $as_me, which was
68f2de6d 1463generated by GNU Autoconf 2.61. Invocation command line was
ad6254c5
AK
1464
1465 $ $0 $@
1466
1467_ACEOF
7a197a62 1468exec 5>>config.log
ad6254c5
AK
1469{
1470cat <<_ASUNAME
1471## --------- ##
1472## Platform. ##
1473## --------- ##
1474
1475hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1476uname -m = `(uname -m) 2>/dev/null || echo unknown`
1477uname -r = `(uname -r) 2>/dev/null || echo unknown`
1478uname -s = `(uname -s) 2>/dev/null || echo unknown`
1479uname -v = `(uname -v) 2>/dev/null || echo unknown`
1480
1481/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1482/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1483
1484/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1485/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1486/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1487/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1488/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1489/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1490/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1491
1492_ASUNAME
1493
1494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495for as_dir in $PATH
1496do
1497 IFS=$as_save_IFS
1498 test -z "$as_dir" && as_dir=.
68f2de6d 1499 echo "PATH: $as_dir"
ad6254c5 1500done
7a197a62 1501IFS=$as_save_IFS
ad6254c5
AK
1502
1503} >&5
1504
1505cat >&5 <<_ACEOF
1506
1507
1508## ----------- ##
1509## Core tests. ##
1510## ----------- ##
1511
1512_ACEOF
1513
1514
1515# Keep a trace of the command line.
1516# Strip out --no-create and --no-recursion so they do not pile up.
1517# Strip out --silent because we don't want to record it for future runs.
1518# Also quote any args containing shell meta-characters.
1519# Make two passes to allow for proper duplicate-argument suppression.
1520ac_configure_args=
1521ac_configure_args0=
1522ac_configure_args1=
ad6254c5
AK
1523ac_must_keep_next=false
1524for ac_pass in 1 2
1525do
1526 for ac_arg
1527 do
1528 case $ac_arg in
1529 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1531 | -silent | --silent | --silen | --sile | --sil)
1532 continue ;;
7a197a62 1533 *\'*)
68f2de6d 1534 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1535 esac
1536 case $ac_pass in
1537 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1538 2)
1539 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1540 if test $ac_must_keep_next = true; then
8a2fc586 1541 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1542 else
8a2fc586
AK
1543 case $ac_arg in
1544 *=* | --config-cache | -C | -disable-* | --disable-* \
1545 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1546 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1547 | -with-* | --with-* | -without-* | --without-* | --x)
1548 case "$ac_configure_args0 " in
1549 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1550 esac
1551 ;;
1552 -* ) ac_must_keep_next=true ;;
1553 esac
ad6254c5 1554 fi
7a197a62 1555 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1556 ;;
1557 esac
1558 done
1559done
1560$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1561$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1562
1563# When interrupted or exit'd, cleanup temporary files, and complete
1564# config.log. We remove comments because anyway the quotes in there
1565# would cause problems or look ugly.
7a197a62
AK
1566# WARNING: Use '\'' to represent an apostrophe within the trap.
1567# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1568trap 'exit_status=$?
1569 # Save into config.log some information that might help in debugging.
1570 {
1571 echo
1572
1573 cat <<\_ASBOX
1574## ---------------- ##
1575## Cache variables. ##
1576## ---------------- ##
1577_ASBOX
1578 echo
1579 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1580(
1581 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1582 eval ac_val=\$$ac_var
1583 case $ac_val in #(
1584 *${as_nl}*)
1585 case $ac_var in #(
68f2de6d
AK
1586 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1587echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7a197a62
AK
1588 esac
1589 case $ac_var in #(
1590 _ | IFS | as_nl) ;; #(
1591 *) $as_unset $ac_var ;;
1592 esac ;;
1593 esac
1594 done
ad6254c5 1595 (set) 2>&1 |
7a197a62
AK
1596 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1597 *${as_nl}ac_space=\ *)
ad6254c5 1598 sed -n \
7a197a62
AK
1599 "s/'\''/'\''\\\\'\'''\''/g;
1600 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1601 ;; #(
ad6254c5 1602 *)
7a197a62 1603 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1604 ;;
7a197a62
AK
1605 esac |
1606 sort
1607)
ad6254c5
AK
1608 echo
1609
1610 cat <<\_ASBOX
1611## ----------------- ##
1612## Output variables. ##
1613## ----------------- ##
1614_ASBOX
1615 echo
1616 for ac_var in $ac_subst_vars
1617 do
7a197a62
AK
1618 eval ac_val=\$$ac_var
1619 case $ac_val in
68f2de6d 1620 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1621 esac
68f2de6d 1622 echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1623 done | sort
1624 echo
1625
1626 if test -n "$ac_subst_files"; then
1627 cat <<\_ASBOX
7a197a62
AK
1628## ------------------- ##
1629## File substitutions. ##
1630## ------------------- ##
ad6254c5
AK
1631_ASBOX
1632 echo
1633 for ac_var in $ac_subst_files
1634 do
7a197a62
AK
1635 eval ac_val=\$$ac_var
1636 case $ac_val in
68f2de6d 1637 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1638 esac
68f2de6d 1639 echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1640 done | sort
1641 echo
1642 fi
1643
1644 if test -s confdefs.h; then
1645 cat <<\_ASBOX
1646## ----------- ##
1647## confdefs.h. ##
1648## ----------- ##
1649_ASBOX
1650 echo
7a197a62 1651 cat confdefs.h
ad6254c5
AK
1652 echo
1653 fi
1654 test "$ac_signal" != 0 &&
68f2de6d
AK
1655 echo "$as_me: caught signal $ac_signal"
1656 echo "$as_me: exit $exit_status"
ad6254c5 1657 } >&5
7a197a62
AK
1658 rm -f core *.core core.conftest.* &&
1659 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1660 exit $exit_status
7a197a62 1661' 0
ad6254c5
AK
1662for ac_signal in 1 2 13 15; do
1663 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1664done
1665ac_signal=0
1666
1667# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1668rm -f -r conftest* confdefs.h
ad6254c5
AK
1669
1670# Predefined preprocessor variables.
1671
1672cat >>confdefs.h <<_ACEOF
1673#define PACKAGE_NAME "$PACKAGE_NAME"
1674_ACEOF
1675
1676
1677cat >>confdefs.h <<_ACEOF
1678#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1679_ACEOF
1680
1681
1682cat >>confdefs.h <<_ACEOF
1683#define PACKAGE_VERSION "$PACKAGE_VERSION"
1684_ACEOF
8106cdd5 1685
ad6254c5
AK
1686
1687cat >>confdefs.h <<_ACEOF
1688#define PACKAGE_STRING "$PACKAGE_STRING"
1689_ACEOF
1690
1691
1692cat >>confdefs.h <<_ACEOF
1693#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1694_ACEOF
1695
1696
1697# Let the site file select an alternate cache file if it wants to.
68f2de6d 1698# Prefer explicitly selected file to automatically selected ones.
7a197a62 1699if test -n "$CONFIG_SITE"; then
68f2de6d 1700 set x "$CONFIG_SITE"
7a197a62 1701elif test "x$prefix" != xNONE; then
68f2de6d 1702 set x "$prefix/share/config.site" "$prefix/etc/config.site"
7a197a62 1703else
68f2de6d
AK
1704 set x "$ac_default_prefix/share/config.site" \
1705 "$ac_default_prefix/etc/config.site"
795ca3e5 1706fi
68f2de6d
AK
1707shift
1708for ac_site_file
7a197a62 1709do
795ca3e5 1710 if test -r "$ac_site_file"; then
68f2de6d
AK
1711 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1712echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1713 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1714 . "$ac_site_file"
1715 fi
1716done
1717
1718if test -r "$cache_file"; then
ad6254c5
AK
1719 # Some versions of bash will fail to source /dev/null (special
1720 # files actually), so we avoid doing that.
1721 if test -f "$cache_file"; then
68f2de6d
AK
1722 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1723echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1724 case $cache_file in
7a197a62
AK
1725 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1726 *) . "./$cache_file";;
ad6254c5
AK
1727 esac
1728 fi
795ca3e5 1729else
68f2de6d
AK
1730 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1731echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1732 >$cache_file
1733fi
1734
1735# Check that the precious variables saved in the cache have kept the same
1736# value.
1737ac_cache_corrupted=false
7a197a62 1738for ac_var in $ac_precious_vars; do
ad6254c5
AK
1739 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1740 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1741 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1742 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1743 case $ac_old_set,$ac_new_set in
1744 set,)
68f2de6d
AK
1745 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1746echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
1747 ac_cache_corrupted=: ;;
1748 ,set)
68f2de6d
AK
1749 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1750echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
1751 ac_cache_corrupted=: ;;
1752 ,);;
1753 *)
1754 if test "x$ac_old_val" != "x$ac_new_val"; then
68f2de6d
AK
1755 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1756echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1757 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1758echo "$as_me: former value: $ac_old_val" >&2;}
1759 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1760echo "$as_me: current value: $ac_new_val" >&2;}
1761 ac_cache_corrupted=:
ad6254c5
AK
1762 fi;;
1763 esac
1764 # Pass precious variables to config.status.
1765 if test "$ac_new_set" = set; then
1766 case $ac_new_val in
68f2de6d 1767 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1768 *) ac_arg=$ac_var=$ac_new_val ;;
1769 esac
1770 case " $ac_configure_args " in
1771 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1772 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1773 esac
1774 fi
1775done
1776if $ac_cache_corrupted; then
68f2de6d
AK
1777 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1778echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1779 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1780echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 1781 { (exit 1); exit 1; }; }
795ca3e5
AK
1782fi
1783
ad6254c5
AK
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
7a197a62
AK
1800ac_ext=c
1801ac_cpp='$CPP $CPPFLAGS'
1802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1804ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 1805
795ca3e5
AK
1806
1807
7a197a62 1808ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
1809
1810
80992638 1811################################################################################
795ca3e5 1812ac_aux_dir=
7a197a62
AK
1813for ac_dir in autoconf "$srcdir"/autoconf; do
1814 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
1815 ac_aux_dir=$ac_dir
1816 ac_install_sh="$ac_aux_dir/install-sh -c"
1817 break
7a197a62 1818 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
1819 ac_aux_dir=$ac_dir
1820 ac_install_sh="$ac_aux_dir/install.sh -c"
1821 break
7a197a62 1822 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
1823 ac_aux_dir=$ac_dir
1824 ac_install_sh="$ac_aux_dir/shtool install -c"
1825 break
795ca3e5
AK
1826 fi
1827done
1828if test -z "$ac_aux_dir"; then
68f2de6d
AK
1829 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1830echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 1831 { (exit 1); exit 1; }; }
795ca3e5 1832fi
7a197a62
AK
1833
1834# These three variables are undocumented and unsupported,
1835# and are intended to be withdrawn in a future Autoconf release.
1836# They can cause serious problems if a builder's source tree is in a directory
1837# whose full name contains unusual characters.
1838ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1839ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1840ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1841
8ce0cbda
AK
1842
1843
ad6254c5 1844################################################################################
8ce0cbda 1845# Make sure we can run config.sub.
7a197a62 1846$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
68f2de6d
AK
1847 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1848echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
1849 { (exit 1); exit 1; }; }
1850
68f2de6d
AK
1851{ echo "$as_me:$LINENO: checking build system type" >&5
1852echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
ad6254c5 1853if test "${ac_cv_build+set}" = set; then
68f2de6d 1854 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 1855else
7a197a62
AK
1856 ac_build_alias=$build_alias
1857test "x$ac_build_alias" = x &&
1858 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1859test "x$ac_build_alias" = x &&
68f2de6d
AK
1860 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1861echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 1862 { (exit 1); exit 1; }; }
7a197a62 1863ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
68f2de6d
AK
1864 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1865echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
1866 { (exit 1); exit 1; }; }
1867
1868fi
68f2de6d
AK
1869{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1870echo "${ECHO_T}$ac_cv_build" >&6; }
7a197a62
AK
1871case $ac_cv_build in
1872*-*-*) ;;
68f2de6d
AK
1873*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1874echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
1875 { (exit 1); exit 1; }; };;
1876esac
ad6254c5 1877build=$ac_cv_build
7a197a62
AK
1878ac_save_IFS=$IFS; IFS='-'
1879set x $ac_cv_build
1880shift
1881build_cpu=$1
1882build_vendor=$2
1883shift; shift
1884# Remember, the first character of IFS is used to create $*,
1885# except with old shells:
1886build_os=$*
1887IFS=$ac_save_IFS
1888case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
1889
1890
68f2de6d
AK
1891{ echo "$as_me:$LINENO: checking host system type" >&5
1892echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
ad6254c5 1893if test "${ac_cv_host+set}" = set; then
68f2de6d 1894 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 1895else
7a197a62
AK
1896 if test "x$host_alias" = x; then
1897 ac_cv_host=$ac_cv_build
1898else
1899 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
68f2de6d
AK
1900 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1901echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 1902 { (exit 1); exit 1; }; }
7a197a62 1903fi
ad6254c5
AK
1904
1905fi
68f2de6d
AK
1906{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1907echo "${ECHO_T}$ac_cv_host" >&6; }
7a197a62
AK
1908case $ac_cv_host in
1909*-*-*) ;;
68f2de6d
AK
1910*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1911echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
1912 { (exit 1); exit 1; }; };;
1913esac
ad6254c5 1914host=$ac_cv_host
7a197a62
AK
1915ac_save_IFS=$IFS; IFS='-'
1916set x $ac_cv_host
1917shift
1918host_cpu=$1
1919host_vendor=$2
1920shift; shift
1921# Remember, the first character of IFS is used to create $*,
1922# except with old shells:
1923host_os=$*
1924IFS=$ac_save_IFS
1925case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
1926
1927
68f2de6d
AK
1928{ echo "$as_me:$LINENO: checking target system type" >&5
1929echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
ad6254c5 1930if test "${ac_cv_target+set}" = set; then
68f2de6d 1931 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 1932else
7a197a62
AK
1933 if test "x$target_alias" = x; then
1934 ac_cv_target=$ac_cv_host
1935else
1936 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
68f2de6d
AK
1937 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1938echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 1939 { (exit 1); exit 1; }; }
7a197a62 1940fi
8ce0cbda 1941
ad6254c5 1942fi
68f2de6d
AK
1943{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1944echo "${ECHO_T}$ac_cv_target" >&6; }
7a197a62
AK
1945case $ac_cv_target in
1946*-*-*) ;;
68f2de6d
AK
1947*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1948echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
1949 { (exit 1); exit 1; }; };;
1950esac
ad6254c5 1951target=$ac_cv_target
7a197a62
AK
1952ac_save_IFS=$IFS; IFS='-'
1953set x $ac_cv_target
1954shift
1955target_cpu=$1
1956target_vendor=$2
1957shift; shift
1958# Remember, the first character of IFS is used to create $*,
1959# except with old shells:
1960target_os=$*
1961IFS=$ac_save_IFS
1962case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 1963
8ce0cbda 1964
ad6254c5
AK
1965# The aliases save the names the user supplied, while $host etc.
1966# will get canonicalized.
1967test -n "$target_alias" &&
8ce0cbda
AK
1968 test "$program_prefix$program_suffix$program_transform_name" = \
1969 NONENONEs,x,x, &&
1970 program_prefix=${target_alias}-
1971
8ce0cbda
AK
1972case "$host_os" in
1973 linux*)
8ce0cbda
AK
1974 COPTIMISE_FLAG="-O2"
1975 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
1976 CLDWHOLEARCHIVE="-Wl,-whole-archive"
1977 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
1978 LDDEPS="$LDDEPS .export.sym"
1979 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 1980 LIB_SUFFIX=so
8ce0cbda
AK
1981 DEVMAPPER=yes
1982 ODIRECT=yes
d0191583 1983 DM_IOCTLS=yes
8ce0cbda 1984 SELINUX=yes
8b1a3214 1985 REALTIME=yes
8ce0cbda 1986 CLUSTER=internal
93bd259b 1987 FSADM=yes
d0191583 1988 ;;
8ce0cbda
AK
1989 darwin*)
1990 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
1991 COPTIMISE_FLAG="-O2"
1992 CLDFLAGS="$CLDFLAGS"
1993 CLDWHOLEARCHIVE="-all_load"
1994 CLDNOWHOLEARCHIVE=
d0191583 1995 LIB_SUFFIX=dylib
a653923f 1996 DEVMAPPER=yes
8ce0cbda 1997 ODIRECT=no
d0191583 1998 DM_IOCTLS=no
8ce0cbda 1999 SELINUX=no
8b1a3214 2000 REALTIME=no
8ce0cbda 2001 CLUSTER=none
d0191583
JM
2002 FSADM=no
2003 ;;
8ce0cbda
AK
2004esac
2005
80992638 2006################################################################################
5951ef33
AK
2007{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2008echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
2009if test "${ac_cv_path_SED+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2011else
2012 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2013 for ac_i in 1 2 3 4 5 6 7; do
2014 ac_script="$ac_script$as_nl$ac_script"
2015 done
2016 echo "$ac_script" | sed 99q >conftest.sed
2017 $as_unset ac_script || ac_script=
2018 # Extract the first word of "sed gsed" to use in msg output
2019if test -z "$SED"; then
2020set dummy sed gsed; ac_prog_name=$2
2021if test "${ac_cv_path_SED+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2023else
2024 ac_path_SED_found=false
2025# Loop through the user's path and test for each of PROGNAME-LIST
2026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027for as_dir in $PATH
2028do
2029 IFS=$as_save_IFS
2030 test -z "$as_dir" && as_dir=.
2031 for ac_prog in sed gsed; do
2032 for ac_exec_ext in '' $ac_executable_extensions; do
2033 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2034 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2035 # Check for GNU ac_path_SED and select it if it is found.
2036 # Check for GNU $ac_path_SED
2037case `"$ac_path_SED" --version 2>&1` in
2038*GNU*)
2039 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2040*)
2041 ac_count=0
2042 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2043 while :
2044 do
2045 cat "conftest.in" "conftest.in" >"conftest.tmp"
2046 mv "conftest.tmp" "conftest.in"
2047 cp "conftest.in" "conftest.nl"
2048 echo '' >> "conftest.nl"
2049 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2050 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2051 ac_count=`expr $ac_count + 1`
2052 if test $ac_count -gt ${ac_path_SED_max-0}; then
2053 # Best one so far, save it but keep looking for a better one
2054 ac_cv_path_SED="$ac_path_SED"
2055 ac_path_SED_max=$ac_count
2056 fi
2057 # 10*(2^10) chars as input seems more than enough
2058 test $ac_count -gt 10 && break
2059 done
2060 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2061esac
2062
2063
2064 $ac_path_SED_found && break 3
2065 done
2066done
2067
2068done
2069IFS=$as_save_IFS
2070
2071
2072fi
2073
2074SED="$ac_cv_path_SED"
2075if test -z "$SED"; then
2076 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
2077echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
2078 { (exit 1); exit 1; }; }
2079fi
2080
2081else
2082 ac_cv_path_SED=$SED
2083fi
2084
2085fi
2086{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2087echo "${ECHO_T}$ac_cv_path_SED" >&6; }
2088 SED="$ac_cv_path_SED"
2089 rm -f conftest.sed
2090
ad6254c5 2091for ac_prog in gawk mawk nawk awk
795ca3e5 2092do
ad6254c5 2093 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2094set dummy $ac_prog; ac_word=$2
68f2de6d
AK
2095{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2097if test "${ac_cv_prog_AWK+set}" = set; then
68f2de6d 2098 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2099else
2100 if test -n "$AWK"; then
2101 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2102else
ad6254c5
AK
2103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104for as_dir in $PATH
2105do
2106 IFS=$as_save_IFS
2107 test -z "$as_dir" && as_dir=.
2108 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2110 ac_cv_prog_AWK="$ac_prog"
68f2de6d 2111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2112 break 2
2113 fi
2114done
2115done
7a197a62 2116IFS=$as_save_IFS
ad6254c5 2117
795ca3e5
AK
2118fi
2119fi
ad6254c5 2120AWK=$ac_cv_prog_AWK
795ca3e5 2121if test -n "$AWK"; then
68f2de6d
AK
2122 { echo "$as_me:$LINENO: result: $AWK" >&5
2123echo "${ECHO_T}$AWK" >&6; }
795ca3e5 2124else
68f2de6d
AK
2125 { echo "$as_me:$LINENO: result: no" >&5
2126echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2127fi
2128
7a197a62 2129
ad6254c5
AK
2130 test -n "$AWK" && break
2131done
2132
2133ac_ext=c
2134ac_cpp='$CPP $CPPFLAGS'
2135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2137ac_compiler_gnu=$ac_cv_c_compiler_gnu
2138if test -n "$ac_tool_prefix"; then
2139 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2140set dummy ${ac_tool_prefix}gcc; ac_word=$2
68f2de6d
AK
2141{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2143if test "${ac_cv_prog_CC+set}" = set; then
68f2de6d 2144 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2145else
2146 if test -n "$CC"; then
2147 ac_cv_prog_CC="$CC" # Let the user override the test.
2148else
2149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150for as_dir in $PATH
2151do
2152 IFS=$as_save_IFS
2153 test -z "$as_dir" && as_dir=.
2154 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2156 ac_cv_prog_CC="${ac_tool_prefix}gcc"
68f2de6d 2157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2158 break 2
2159 fi
2160done
8106cdd5 2161done
7a197a62 2162IFS=$as_save_IFS
8106cdd5 2163
ad6254c5
AK
2164fi
2165fi
2166CC=$ac_cv_prog_CC
2167if test -n "$CC"; then
68f2de6d
AK
2168 { echo "$as_me:$LINENO: result: $CC" >&5
2169echo "${ECHO_T}$CC" >&6; }
ad6254c5 2170else
68f2de6d
AK
2171 { echo "$as_me:$LINENO: result: no" >&5
2172echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2173fi
2174
7a197a62 2175
ad6254c5
AK
2176fi
2177if test -z "$ac_cv_prog_CC"; then
2178 ac_ct_CC=$CC
2179 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2180set dummy gcc; ac_word=$2
68f2de6d
AK
2181{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2183if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
68f2de6d 2184 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2185else
2186 if test -n "$ac_ct_CC"; then
2187 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2188else
2189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190for as_dir in $PATH
2191do
2192 IFS=$as_save_IFS
2193 test -z "$as_dir" && as_dir=.
2194 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2196 ac_cv_prog_ac_ct_CC="gcc"
68f2de6d 2197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2198 break 2
2199 fi
2200done
2201done
7a197a62 2202IFS=$as_save_IFS
ad6254c5
AK
2203
2204fi
2205fi
2206ac_ct_CC=$ac_cv_prog_ac_ct_CC
2207if test -n "$ac_ct_CC"; then
68f2de6d
AK
2208 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2209echo "${ECHO_T}$ac_ct_CC" >&6; }
ad6254c5 2210else
68f2de6d
AK
2211 { echo "$as_me:$LINENO: result: no" >&5
2212echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2213fi
2214
7a197a62
AK
2215 if test "x$ac_ct_CC" = x; then
2216 CC=""
2217 else
2218 case $cross_compiling:$ac_tool_warned in
2219yes:)
68f2de6d 2220{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2221whose name does not start with the host triplet. If you think this
2222configuration is useful to you, please write to autoconf@gnu.org." >&5
68f2de6d 2223echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2224whose name does not start with the host triplet. If you think this
2225configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2226ac_tool_warned=yes ;;
2227esac
2228 CC=$ac_ct_CC
2229 fi
ad6254c5
AK
2230else
2231 CC="$ac_cv_prog_CC"
2232fi
2233
2234if test -z "$CC"; then
7a197a62
AK
2235 if test -n "$ac_tool_prefix"; then
2236 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2237set dummy ${ac_tool_prefix}cc; ac_word=$2
68f2de6d
AK
2238{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2240if test "${ac_cv_prog_CC+set}" = set; then
68f2de6d 2241 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5
AK
2242else
2243 if test -n "$CC"; then
2244 ac_cv_prog_CC="$CC" # Let the user override the test.
2245else
ad6254c5
AK
2246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247for as_dir in $PATH
2248do
2249 IFS=$as_save_IFS
2250 test -z "$as_dir" && as_dir=.
2251 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2253 ac_cv_prog_CC="${ac_tool_prefix}cc"
68f2de6d 2254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2255 break 2
2256 fi
2257done
2258done
7a197a62 2259IFS=$as_save_IFS
ad6254c5 2260
8106cdd5
AK
2261fi
2262fi
ad6254c5 2263CC=$ac_cv_prog_CC
8106cdd5 2264if test -n "$CC"; then
68f2de6d
AK
2265 { echo "$as_me:$LINENO: result: $CC" >&5
2266echo "${ECHO_T}$CC" >&6; }
ad6254c5 2267else
68f2de6d
AK
2268 { echo "$as_me:$LINENO: result: no" >&5
2269echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2270fi
2271
8106cdd5 2272
7a197a62 2273 fi
ad6254c5 2274fi
795ca3e5
AK
2275if test -z "$CC"; then
2276 # Extract the first word of "cc", so it can be a program name with args.
2277set dummy cc; ac_word=$2
68f2de6d
AK
2278{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2280if test "${ac_cv_prog_CC+set}" = set; then
68f2de6d 2281 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2282else
2283 if test -n "$CC"; then
2284 ac_cv_prog_CC="$CC" # Let the user override the test.
2285else
795ca3e5 2286 ac_prog_rejected=no
ad6254c5
AK
2287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288for as_dir in $PATH
2289do
2290 IFS=$as_save_IFS
2291 test -z "$as_dir" && as_dir=.
2292 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2294 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2295 ac_prog_rejected=yes
2296 continue
2297 fi
2298 ac_cv_prog_CC="cc"
68f2de6d 2299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2300 break 2
2301 fi
2302done
2303done
7a197a62 2304IFS=$as_save_IFS
ad6254c5 2305
795ca3e5
AK
2306if test $ac_prog_rejected = yes; then
2307 # We found a bogon in the path, so make sure we never use it.
2308 set dummy $ac_cv_prog_CC
2309 shift
ad6254c5 2310 if test $# != 0; then
795ca3e5
AK
2311 # We chose a different compiler from the bogus one.
2312 # However, it has the same basename, so the bogon will be chosen
2313 # first if we set CC to just the basename; use the full file name.
2314 shift
ad6254c5 2315 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2316 fi
2317fi
2318fi
2319fi
ad6254c5 2320CC=$ac_cv_prog_CC
795ca3e5 2321if test -n "$CC"; then
68f2de6d
AK
2322 { echo "$as_me:$LINENO: result: $CC" >&5
2323echo "${ECHO_T}$CC" >&6; }
795ca3e5 2324else
68f2de6d
AK
2325 { echo "$as_me:$LINENO: result: no" >&5
2326echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2327fi
2328
7a197a62 2329
ad6254c5
AK
2330fi
2331if test -z "$CC"; then
2332 if test -n "$ac_tool_prefix"; then
7a197a62 2333 for ac_prog in cl.exe
ad6254c5
AK
2334 do
2335 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2336set dummy $ac_tool_prefix$ac_prog; ac_word=$2
68f2de6d
AK
2337{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2339if test "${ac_cv_prog_CC+set}" = set; then
68f2de6d 2340 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2341else
2342 if test -n "$CC"; then
2343 ac_cv_prog_CC="$CC" # Let the user override the test.
2344else
ad6254c5
AK
2345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346for as_dir in $PATH
2347do
2348 IFS=$as_save_IFS
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2352 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
68f2de6d 2353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2354 break 2
2355 fi
2356done
2357done
7a197a62 2358IFS=$as_save_IFS
ad6254c5 2359
795ca3e5
AK
2360fi
2361fi
ad6254c5 2362CC=$ac_cv_prog_CC
795ca3e5 2363if test -n "$CC"; then
68f2de6d
AK
2364 { echo "$as_me:$LINENO: result: $CC" >&5
2365echo "${ECHO_T}$CC" >&6; }
795ca3e5 2366else
68f2de6d
AK
2367 { echo "$as_me:$LINENO: result: no" >&5
2368echo "${ECHO_T}no" >&6; }
795ca3e5 2369fi
ad6254c5 2370
7a197a62 2371
ad6254c5
AK
2372 test -n "$CC" && break
2373 done
2374fi
2375if test -z "$CC"; then
2376 ac_ct_CC=$CC
7a197a62 2377 for ac_prog in cl.exe
ad6254c5
AK
2378do
2379 # Extract the first word of "$ac_prog", so it can be a program name with args.
2380set dummy $ac_prog; ac_word=$2
68f2de6d
AK
2381{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2383if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
68f2de6d 2384 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2385else
2386 if test -n "$ac_ct_CC"; then
2387 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2388else
2389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390for as_dir in $PATH
2391do
2392 IFS=$as_save_IFS
2393 test -z "$as_dir" && as_dir=.
2394 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2396 ac_cv_prog_ac_ct_CC="$ac_prog"
68f2de6d 2397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2398 break 2
795ca3e5 2399 fi
ad6254c5
AK
2400done
2401done
7a197a62 2402IFS=$as_save_IFS
ad6254c5
AK
2403
2404fi
2405fi
2406ac_ct_CC=$ac_cv_prog_ac_ct_CC
2407if test -n "$ac_ct_CC"; then
68f2de6d
AK
2408 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2409echo "${ECHO_T}$ac_ct_CC" >&6; }
ad6254c5 2410else
68f2de6d
AK
2411 { echo "$as_me:$LINENO: result: no" >&5
2412echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2413fi
2414
7a197a62 2415
ad6254c5
AK
2416 test -n "$ac_ct_CC" && break
2417done
795ca3e5 2418
7a197a62
AK
2419 if test "x$ac_ct_CC" = x; then
2420 CC=""
2421 else
2422 case $cross_compiling:$ac_tool_warned in
2423yes:)
68f2de6d 2424{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2425whose name does not start with the host triplet. If you think this
2426configuration is useful to you, please write to autoconf@gnu.org." >&5
68f2de6d 2427echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2428whose name does not start with the host triplet. If you think this
2429configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2430ac_tool_warned=yes ;;
2431esac
2432 CC=$ac_ct_CC
2433 fi
ad6254c5
AK
2434fi
2435
2436fi
2437
2438
68f2de6d 2439test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2440See \`config.log' for more details." >&5
68f2de6d 2441echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5
AK
2442See \`config.log' for more details." >&2;}
2443 { (exit 1); exit 1; }; }
2444
2445# Provide some information about the compiler.
68f2de6d
AK
2446echo "$as_me:$LINENO: checking for C compiler version" >&5
2447ac_compiler=`set X $ac_compile; echo $2`
7a197a62
AK
2448{ (ac_try="$ac_compiler --version >&5"
2449case "(($ac_try" in
2450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451 *) ac_try_echo=$ac_try;;
2452esac
68f2de6d 2453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2454 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2455 ac_status=$?
68f2de6d 2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2457 (exit $ac_status); }
7a197a62
AK
2458{ (ac_try="$ac_compiler -v >&5"
2459case "(($ac_try" in
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2462esac
68f2de6d 2463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2464 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2465 ac_status=$?
68f2de6d 2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2467 (exit $ac_status); }
7a197a62
AK
2468{ (ac_try="$ac_compiler -V >&5"
2469case "(($ac_try" in
2470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2471 *) ac_try_echo=$ac_try;;
2472esac
68f2de6d 2473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2474 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2475 ac_status=$?
68f2de6d 2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2477 (exit $ac_status); }
2478
2479cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2480/* confdefs.h. */
2481_ACEOF
2482cat confdefs.h >>conftest.$ac_ext
2483cat >>conftest.$ac_ext <<_ACEOF
2484/* end confdefs.h. */
2485
2486int
2487main ()
2488{
2489
2490 ;
2491 return 0;
2492}
2493_ACEOF
2494ac_clean_files_save=$ac_clean_files
68f2de6d 2495ac_clean_files="$ac_clean_files a.out a.exe b.out"
ad6254c5
AK
2496# Try to create an executable without -o first, disregard a.out.
2497# It will help us diagnose broken compilers, and finding out an intuition
2498# of exeext.
68f2de6d
AK
2499{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2500echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2501ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2502#
2503# List of possible output files, starting from the most likely.
2504# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2505# only as a last resort. b.out is created by i960 compilers.
2506ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2507#
2508# The IRIX 6 linker writes into existing files which may not be
2509# executable, retaining their permissions. Remove them first so a
2510# subsequent execution test works.
7a197a62
AK
2511ac_rmfiles=
2512for ac_file in $ac_files
2513do
2514 case $ac_file in
68f2de6d 2515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
7a197a62
AK
2516 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2517 esac
2518done
2519rm -f $ac_rmfiles
2520
2521if { (ac_try="$ac_link_default"
2522case "(($ac_try" in
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2525esac
68f2de6d 2526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2527 (eval "$ac_link_default") 2>&5
ad6254c5 2528 ac_status=$?
68f2de6d 2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2530 (exit $ac_status); }; then
7a197a62
AK
2531 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2532# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2533# in a Makefile. We should not override ac_cv_exeext if it was cached,
2534# so that the user can short-circuit this test for compilers unknown to
2535# Autoconf.
25fbec5b 2536for ac_file in $ac_files ''
ad6254c5
AK
2537do
2538 test -f "$ac_file" || continue
2539 case $ac_file in
68f2de6d 2540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
8a2fc586 2541 ;;
ad6254c5 2542 [ab].out )
8a2fc586
AK
2543 # We found the default executable, but exeext='' is most
2544 # certainly right.
2545 break;;
ad6254c5 2546 *.* )
7a197a62
AK
2547 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2548 then :; else
2549 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2550 fi
2551 # We set ac_cv_exeext here because the later test for it is not
2552 # safe: cross compilers may not add the suffix if given an `-o'
2553 # argument, so we may need to know it at that point already.
2554 # Even if this section looks crufty: it has the advantage of
2555 # actually working.
8a2fc586 2556 break;;
ad6254c5 2557 * )
8a2fc586 2558 break;;
ad6254c5
AK
2559 esac
2560done
7a197a62
AK
2561test "$ac_cv_exeext" = no && ac_cv_exeext=
2562
ad6254c5 2563else
25fbec5b
AK
2564 ac_file=''
2565fi
2566
68f2de6d
AK
2567{ echo "$as_me:$LINENO: result: $ac_file" >&5
2568echo "${ECHO_T}$ac_file" >&6; }
25fbec5b 2569if test -z "$ac_file"; then
68f2de6d 2570 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2571sed 's/^/| /' conftest.$ac_ext >&5
2572
68f2de6d 2573{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2574See \`config.log' for more details." >&5
68f2de6d 2575echo "$as_me: error: C compiler cannot create executables
ad6254c5
AK
2576See \`config.log' for more details." >&2;}
2577 { (exit 77); exit 77; }; }
2578fi
2579
2580ac_exeext=$ac_cv_exeext
ad6254c5 2581
7a197a62 2582# Check that the compiler produces executables we can run. If not, either
ad6254c5 2583# the compiler is broken, or we cross compile.
68f2de6d
AK
2584{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2585echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
ad6254c5
AK
2586# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2587# If not cross compiling, check that we can run a simple program.
2588if test "$cross_compiling" != yes; then
2589 if { ac_try='./$ac_file'
7a197a62
AK
2590 { (case "(($ac_try" in
2591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2592 *) ac_try_echo=$ac_try;;
2593esac
68f2de6d 2594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2595 (eval "$ac_try") 2>&5
ad6254c5 2596 ac_status=$?
68f2de6d 2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2598 (exit $ac_status); }; }; then
2599 cross_compiling=no
795ca3e5 2600 else
ad6254c5
AK
2601 if test "$cross_compiling" = maybe; then
2602 cross_compiling=yes
2603 else
68f2de6d 2604 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2605If you meant to cross compile, use \`--host'.
2606See \`config.log' for more details." >&5
68f2de6d 2607echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2608If you meant to cross compile, use \`--host'.
2609See \`config.log' for more details." >&2;}
2610 { (exit 1); exit 1; }; }
2611 fi
795ca3e5 2612 fi
80992638 2613fi
68f2de6d
AK
2614{ echo "$as_me:$LINENO: result: yes" >&5
2615echo "${ECHO_T}yes" >&6; }
ad6254c5 2616
68f2de6d 2617rm -f a.out a.exe conftest$ac_cv_exeext b.out
ad6254c5 2618ac_clean_files=$ac_clean_files_save
7a197a62 2619# Check that the compiler produces executables we can run. If not, either
ad6254c5 2620# the compiler is broken, or we cross compile.
68f2de6d
AK
2621{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2622echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2623{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2624echo "${ECHO_T}$cross_compiling" >&6; }
7a197a62 2625
68f2de6d
AK
2626{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2627echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
7a197a62
AK
2628if { (ac_try="$ac_link"
2629case "(($ac_try" in
2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631 *) ac_try_echo=$ac_try;;
2632esac
68f2de6d 2633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2634 (eval "$ac_link") 2>&5
ad6254c5 2635 ac_status=$?
68f2de6d 2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2637 (exit $ac_status); }; then
2638 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2639# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2640# work properly (i.e., refer to `conftest.exe'), while it won't with
2641# `rm'.
2642for ac_file in conftest.exe conftest conftest.*; do
2643 test -f "$ac_file" || continue
2644 case $ac_file in
68f2de6d 2645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
ad6254c5 2646 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2647 break;;
ad6254c5
AK
2648 * ) break;;
2649 esac
2650done
80992638 2651else
68f2de6d 2652 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2653See \`config.log' for more details." >&5
68f2de6d 2654echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5
AK
2655See \`config.log' for more details." >&2;}
2656 { (exit 1); exit 1; }; }
2657fi
2658
2659rm -f conftest$ac_cv_exeext
68f2de6d
AK
2660{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2661echo "${ECHO_T}$ac_cv_exeext" >&6; }
ad6254c5
AK
2662
2663rm -f conftest.$ac_ext
2664EXEEXT=$ac_cv_exeext
2665ac_exeext=$EXEEXT
68f2de6d
AK
2666{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2667echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
ad6254c5 2668if test "${ac_cv_objext+set}" = set; then
68f2de6d 2669 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2670else
ad6254c5 2671 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2672/* confdefs.h. */
2673_ACEOF
2674cat confdefs.h >>conftest.$ac_ext
2675cat >>conftest.$ac_ext <<_ACEOF
2676/* end confdefs.h. */
2677
2678int
2679main ()
2680{
2681
2682 ;
2683 return 0;
2684}
2685_ACEOF
2686rm -f conftest.o conftest.obj
7a197a62
AK
2687if { (ac_try="$ac_compile"
2688case "(($ac_try" in
2689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690 *) ac_try_echo=$ac_try;;
2691esac
68f2de6d 2692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2693 (eval "$ac_compile") 2>&5
ad6254c5 2694 ac_status=$?
68f2de6d 2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2696 (exit $ac_status); }; then
7a197a62
AK
2697 for ac_file in conftest.o conftest.obj conftest.*; do
2698 test -f "$ac_file" || continue;
ad6254c5 2699 case $ac_file in
68f2de6d 2700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
ad6254c5
AK
2701 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2702 break;;
2703 esac
2704done
2705else
68f2de6d 2706 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2707sed 's/^/| /' conftest.$ac_ext >&5
2708
68f2de6d 2709{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2710See \`config.log' for more details." >&5
68f2de6d 2711echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5
AK
2712See \`config.log' for more details." >&2;}
2713 { (exit 1); exit 1; }; }
2714fi
2715
2716rm -f conftest.$ac_cv_objext conftest.$ac_ext
2717fi
68f2de6d
AK
2718{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2719echo "${ECHO_T}$ac_cv_objext" >&6; }
ad6254c5
AK
2720OBJEXT=$ac_cv_objext
2721ac_objext=$OBJEXT
68f2de6d
AK
2722{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2723echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
ad6254c5 2724if test "${ac_cv_c_compiler_gnu+set}" = set; then
68f2de6d 2725 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2726else
2727 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2728/* confdefs.h. */
2729_ACEOF
2730cat confdefs.h >>conftest.$ac_ext
2731cat >>conftest.$ac_ext <<_ACEOF
2732/* end confdefs.h. */
2733
2734int
2735main ()
2736{
2737#ifndef __GNUC__
2738 choke me
2739#endif
80992638 2740
ad6254c5
AK
2741 ;
2742 return 0;
2743}
2744_ACEOF
2745rm -f conftest.$ac_objext
7a197a62
AK
2746if { (ac_try="$ac_compile"
2747case "(($ac_try" in
2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2750esac
68f2de6d 2751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2752 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2753 ac_status=$?
8a2fc586
AK
2754 grep -v '^ *+' conftest.er1 >conftest.err
2755 rm -f conftest.er1
2756 cat conftest.err >&5
68f2de6d 2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2758 (exit $ac_status); } && {
2759 test -z "$ac_c_werror_flag" ||
2760 test ! -s conftest.err
2761 } && test -s conftest.$ac_objext; then
ad6254c5 2762 ac_compiler_gnu=yes
80992638 2763else
68f2de6d 2764 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2765sed 's/^/| /' conftest.$ac_ext >&5
2766
7a197a62 2767 ac_compiler_gnu=no
8106cdd5 2768fi
7a197a62
AK
2769
2770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2771ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 2772
ad6254c5 2773fi
68f2de6d
AK
2774{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2775echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2776GCC=`test $ac_compiler_gnu = yes && echo yes`
ad6254c5
AK
2777ac_test_CFLAGS=${CFLAGS+set}
2778ac_save_CFLAGS=$CFLAGS
68f2de6d
AK
2779{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2780echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
ad6254c5 2781if test "${ac_cv_prog_cc_g+set}" = set; then
68f2de6d 2782 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2783else
7a197a62
AK
2784 ac_save_c_werror_flag=$ac_c_werror_flag
2785 ac_c_werror_flag=yes
2786 ac_cv_prog_cc_g=no
2787 CFLAGS="-g"
2788 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2789/* confdefs.h. */
2790_ACEOF
2791cat confdefs.h >>conftest.$ac_ext
2792cat >>conftest.$ac_ext <<_ACEOF
2793/* end confdefs.h. */
2794
2795int
2796main ()
2797{
2798
2799 ;
2800 return 0;
2801}
2802_ACEOF
2803rm -f conftest.$ac_objext
7a197a62
AK
2804if { (ac_try="$ac_compile"
2805case "(($ac_try" in
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2808esac
68f2de6d 2809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2810 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2811 ac_status=$?
8a2fc586
AK
2812 grep -v '^ *+' conftest.er1 >conftest.err
2813 rm -f conftest.er1
2814 cat conftest.err >&5
68f2de6d 2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2816 (exit $ac_status); } && {
2817 test -z "$ac_c_werror_flag" ||
2818 test ! -s conftest.err
2819 } && test -s conftest.$ac_objext; then
7a197a62
AK
2820 ac_cv_prog_cc_g=yes
2821else
68f2de6d 2822 echo "$as_me: failed program was:" >&5
7a197a62
AK
2823sed 's/^/| /' conftest.$ac_ext >&5
2824
2825 CFLAGS=""
2826 cat >conftest.$ac_ext <<_ACEOF
2827/* confdefs.h. */
2828_ACEOF
2829cat confdefs.h >>conftest.$ac_ext
2830cat >>conftest.$ac_ext <<_ACEOF
2831/* end confdefs.h. */
2832
2833int
2834main ()
2835{
2836
2837 ;
2838 return 0;
2839}
2840_ACEOF
2841rm -f conftest.$ac_objext
2842if { (ac_try="$ac_compile"
2843case "(($ac_try" in
2844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845 *) ac_try_echo=$ac_try;;
2846esac
68f2de6d 2847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2848 (eval "$ac_compile") 2>conftest.er1
8a2fc586 2849 ac_status=$?
7a197a62
AK
2850 grep -v '^ *+' conftest.er1 >conftest.err
2851 rm -f conftest.er1
2852 cat conftest.err >&5
68f2de6d 2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2854 (exit $ac_status); } && {
2855 test -z "$ac_c_werror_flag" ||
2856 test ! -s conftest.err
2857 } && test -s conftest.$ac_objext; then
7a197a62
AK
2858 :
2859else
68f2de6d 2860 echo "$as_me: failed program was:" >&5
7a197a62
AK
2861sed 's/^/| /' conftest.$ac_ext >&5
2862
2863 ac_c_werror_flag=$ac_save_c_werror_flag
2864 CFLAGS="-g"
2865 cat >conftest.$ac_ext <<_ACEOF
2866/* confdefs.h. */
2867_ACEOF
2868cat confdefs.h >>conftest.$ac_ext
2869cat >>conftest.$ac_ext <<_ACEOF
2870/* end confdefs.h. */
2871
2872int
2873main ()
2874{
2875
2876 ;
2877 return 0;
2878}
2879_ACEOF
2880rm -f conftest.$ac_objext
2881if { (ac_try="$ac_compile"
2882case "(($ac_try" in
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2885esac
68f2de6d 2886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2887 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2888 ac_status=$?
7a197a62
AK
2889 grep -v '^ *+' conftest.er1 >conftest.err
2890 rm -f conftest.er1
2891 cat conftest.err >&5
68f2de6d 2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2893 (exit $ac_status); } && {
2894 test -z "$ac_c_werror_flag" ||
2895 test ! -s conftest.err
2896 } && test -s conftest.$ac_objext; then
795ca3e5
AK
2897 ac_cv_prog_cc_g=yes
2898else
68f2de6d 2899 echo "$as_me: failed program was:" >&5
ad6254c5 2900sed 's/^/| /' conftest.$ac_ext >&5
80992638 2901
7a197a62
AK
2902
2903fi
2904
2905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2906fi
2907
2908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 2909fi
7a197a62
AK
2910
2911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 2913fi
68f2de6d
AK
2914{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2915echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
795ca3e5 2916if test "$ac_test_CFLAGS" = set; then
ad6254c5 2917 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
2918elif test $ac_cv_prog_cc_g = yes; then
2919 if test "$GCC" = yes; then
2920 CFLAGS="-g -O2"
2921 else
2922 CFLAGS="-g"
2923 fi
2924else
2925 if test "$GCC" = yes; then
2926 CFLAGS="-O2"
2927 else
2928 CFLAGS=
2929 fi
2930fi
68f2de6d
AK
2931{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2932echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
7a197a62 2933if test "${ac_cv_prog_cc_c89+set}" = set; then
68f2de6d 2934 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 2935else
7a197a62 2936 ac_cv_prog_cc_c89=no
ad6254c5
AK
2937ac_save_CC=$CC
2938cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2939/* confdefs.h. */
2940_ACEOF
2941cat confdefs.h >>conftest.$ac_ext
2942cat >>conftest.$ac_ext <<_ACEOF
2943/* end confdefs.h. */
2944#include <stdarg.h>
2945#include <stdio.h>
2946#include <sys/types.h>
2947#include <sys/stat.h>
2948/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2949struct buf { int x; };
2950FILE * (*rcsopen) (struct buf *, struct stat *, int);
2951static char *e (p, i)
2952 char **p;
2953 int i;
2954{
2955 return p[i];
2956}
2957static char *f (char * (*g) (char **, int), char **p, ...)
2958{
2959 char *s;
2960 va_list v;
2961 va_start (v,p);
2962 s = g (p, va_arg (v,int));
2963 va_end (v);
2964 return s;
2965}
8a2fc586
AK
2966
2967/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2968 function prototypes and stuff, but not '\xHH' hex character constants.
2969 These don't provoke an error unfortunately, instead are silently treated
7a197a62 2970 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
2971 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2972 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 2973 that's true only with -std. */
8a2fc586
AK
2974int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2975
7a197a62
AK
2976/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2977 inside strings and character constants. */
2978#define FOO(x) 'x'
2979int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2980
ad6254c5
AK
2981int test (int i, double x);
2982struct s1 {int (*f) (int a);};
2983struct s2 {int (*f) (double a);};
2984int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2985int argc;
2986char **argv;
2987int
2988main ()
2989{
2990return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2991 ;
2992 return 0;
2993}
2994_ACEOF
7a197a62
AK
2995for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2996 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
2997do
2998 CC="$ac_save_CC $ac_arg"
2999 rm -f conftest.$ac_objext
7a197a62
AK
3000if { (ac_try="$ac_compile"
3001case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004esac
68f2de6d 3005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 3006 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3007 ac_status=$?
8a2fc586
AK
3008 grep -v '^ *+' conftest.er1 >conftest.err
3009 rm -f conftest.er1
3010 cat conftest.err >&5
68f2de6d 3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3012 (exit $ac_status); } && {
3013 test -z "$ac_c_werror_flag" ||
3014 test ! -s conftest.err
3015 } && test -s conftest.$ac_objext; then
7a197a62 3016 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3017else
68f2de6d 3018 echo "$as_me: failed program was:" >&5
ad6254c5
AK
3019sed 's/^/| /' conftest.$ac_ext >&5
3020
7a197a62 3021
ad6254c5 3022fi
7a197a62
AK
3023
3024rm -f core conftest.err conftest.$ac_objext
3025 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3026done
7a197a62 3027rm -f conftest.$ac_ext
ad6254c5
AK
3028CC=$ac_save_CC
3029
3030fi
7a197a62
AK
3031# AC_CACHE_VAL
3032case "x$ac_cv_prog_cc_c89" in
3033 x)
68f2de6d
AK
3034 { echo "$as_me:$LINENO: result: none needed" >&5
3035echo "${ECHO_T}none needed" >&6; } ;;
7a197a62 3036 xno)
68f2de6d
AK
3037 { echo "$as_me:$LINENO: result: unsupported" >&5
3038echo "${ECHO_T}unsupported" >&6; } ;;
ad6254c5 3039 *)
7a197a62 3040 CC="$CC $ac_cv_prog_cc_c89"
68f2de6d
AK
3041 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3042echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3043esac
3044
ad6254c5 3045
ad6254c5
AK
3046ac_ext=c
3047ac_cpp='$CPP $CPPFLAGS'
3048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3050ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3051
d0191583
JM
3052
3053
3054ac_ext=c
3055ac_cpp='$CPP $CPPFLAGS'
3056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3058ac_compiler_gnu=$ac_cv_c_compiler_gnu
68f2de6d
AK
3059{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3060echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
d0191583
JM
3061# On Suns, sometimes $CPP names a directory.
3062if test -n "$CPP" && test -d "$CPP"; then
3063 CPP=
3064fi
3065if test -z "$CPP"; then
3066 if test "${ac_cv_prog_CPP+set}" = set; then
68f2de6d 3067 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3068else
d0191583
JM
3069 # Double quotes because CPP needs to be expanded
3070 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3071 do
3072 ac_preproc_ok=false
3073for ac_c_preproc_warn_flag in '' yes
ad6254c5 3074do
d0191583
JM
3075 # Use a header file that comes with gcc, so configuring glibc
3076 # with a fresh cross-compiler works.
3077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3078 # <limits.h> exists even on freestanding compilers.
3079 # On the NeXT, cc -E runs the code through the compiler's parser,
3080 # not just through cpp. "Syntax error" is here to catch this case.
3081 cat >conftest.$ac_ext <<_ACEOF
3082/* confdefs.h. */
3083_ACEOF
3084cat confdefs.h >>conftest.$ac_ext
3085cat >>conftest.$ac_ext <<_ACEOF
3086/* end confdefs.h. */
3087#ifdef __STDC__
3088# include <limits.h>
3089#else
3090# include <assert.h>
3091#endif
3092 Syntax error
3093_ACEOF
3094if { (ac_try="$ac_cpp conftest.$ac_ext"
3095case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
ad6254c5 3098esac
68f2de6d 3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3101 ac_status=$?
3102 grep -v '^ *+' conftest.er1 >conftest.err
3103 rm -f conftest.er1
3104 cat conftest.err >&5
68f2de6d 3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3106 (exit $ac_status); } >/dev/null && {
3107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3108 test ! -s conftest.err
3109 }; then
3110 :
3111else
68f2de6d 3112 echo "$as_me: failed program was:" >&5
d0191583 3113sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3114
d0191583
JM
3115 # Broken: fails on valid input.
3116continue
795ca3e5 3117fi
795ca3e5 3118
d0191583 3119rm -f conftest.err conftest.$ac_ext
795ca3e5 3120
d0191583
JM
3121 # OK, works on sane cases. Now check whether nonexistent headers
3122 # can be detected and how.
3123 cat >conftest.$ac_ext <<_ACEOF
3124/* confdefs.h. */
3125_ACEOF
3126cat confdefs.h >>conftest.$ac_ext
3127cat >>conftest.$ac_ext <<_ACEOF
3128/* end confdefs.h. */
3129#include <ac_nonexistent.h>
3130_ACEOF
3131if { (ac_try="$ac_cpp conftest.$ac_ext"
3132case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135esac
68f2de6d 3136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3138 ac_status=$?
3139 grep -v '^ *+' conftest.er1 >conftest.err
3140 rm -f conftest.er1
3141 cat conftest.err >&5
68f2de6d 3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3143 (exit $ac_status); } >/dev/null && {
3144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3145 test ! -s conftest.err
3146 }; then
3147 # Broken: success on invalid input.
3148continue
3149else
68f2de6d 3150 echo "$as_me: failed program was:" >&5
d0191583 3151sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3152
d0191583
JM
3153 # Passes both tests.
3154ac_preproc_ok=:
3155break
3156fi
795ca3e5 3157
d0191583
JM
3158rm -f conftest.err conftest.$ac_ext
3159
3160done
3161# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3162rm -f conftest.err conftest.$ac_ext
3163if $ac_preproc_ok; then
3164 break
795ca3e5
AK
3165fi
3166
d0191583
JM
3167 done
3168 ac_cv_prog_CPP=$CPP
3169
3170fi
3171 CPP=$ac_cv_prog_CPP
795ca3e5 3172else
d0191583
JM
3173 ac_cv_prog_CPP=$CPP
3174fi
68f2de6d
AK
3175{ echo "$as_me:$LINENO: result: $CPP" >&5
3176echo "${ECHO_T}$CPP" >&6; }
d0191583
JM
3177ac_preproc_ok=false
3178for ac_c_preproc_warn_flag in '' yes
3179do
3180 # Use a header file that comes with gcc, so configuring glibc
3181 # with a fresh cross-compiler works.
3182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3183 # <limits.h> exists even on freestanding compilers.
3184 # On the NeXT, cc -E runs the code through the compiler's parser,
3185 # not just through cpp. "Syntax error" is here to catch this case.
3186 cat >conftest.$ac_ext <<_ACEOF
3187/* confdefs.h. */
ad6254c5 3188_ACEOF
d0191583
JM
3189cat confdefs.h >>conftest.$ac_ext
3190cat >>conftest.$ac_ext <<_ACEOF
3191/* end confdefs.h. */
3192#ifdef __STDC__
3193# include <limits.h>
3194#else
3195# include <assert.h>
3196#endif
3197 Syntax error
3198_ACEOF
3199if { (ac_try="$ac_cpp conftest.$ac_ext"
3200case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
7a197a62 3203esac
68f2de6d 3204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3206 ac_status=$?
3207 grep -v '^ *+' conftest.er1 >conftest.err
3208 rm -f conftest.er1
3209 cat conftest.err >&5
68f2de6d 3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3211 (exit $ac_status); } >/dev/null && {
3212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3213 test ! -s conftest.err
3214 }; then
3215 :
795ca3e5 3216else
68f2de6d 3217 echo "$as_me: failed program was:" >&5
d0191583
JM
3218sed 's/^/| /' conftest.$ac_ext >&5
3219
3220 # Broken: fails on valid input.
3221continue
795ca3e5
AK
3222fi
3223
d0191583
JM
3224rm -f conftest.err conftest.$ac_ext
3225
3226 # OK, works on sane cases. Now check whether nonexistent headers
3227 # can be detected and how.
3228 cat >conftest.$ac_ext <<_ACEOF
3229/* confdefs.h. */
3230_ACEOF
3231cat confdefs.h >>conftest.$ac_ext
3232cat >>conftest.$ac_ext <<_ACEOF
3233/* end confdefs.h. */
3234#include <ac_nonexistent.h>
3235_ACEOF
3236if { (ac_try="$ac_cpp conftest.$ac_ext"
3237case "(($ac_try" in
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3240esac
68f2de6d 3241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3243 ac_status=$?
3244 grep -v '^ *+' conftest.er1 >conftest.err
3245 rm -f conftest.er1
3246 cat conftest.err >&5
68f2de6d 3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3248 (exit $ac_status); } >/dev/null && {
3249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3250 test ! -s conftest.err
3251 }; then
3252 # Broken: success on invalid input.
3253continue
795ca3e5 3254else
68f2de6d 3255 echo "$as_me: failed program was:" >&5
d0191583 3256sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3257
d0191583
JM
3258 # Passes both tests.
3259ac_preproc_ok=:
3260break
795ca3e5 3261fi
d0191583
JM
3262
3263rm -f conftest.err conftest.$ac_ext
3264
3265done
3266# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3267rm -f conftest.err conftest.$ac_ext
3268if $ac_preproc_ok; then
3269 :
8106cdd5 3270else
68f2de6d 3271 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3272See \`config.log' for more details." >&5
68f2de6d 3273echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583
JM
3274See \`config.log' for more details." >&2;}
3275 { (exit 1); exit 1; }; }
8106cdd5
AK
3276fi
3277
d0191583
JM
3278ac_ext=c
3279ac_cpp='$CPP $CPPFLAGS'
3280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282ac_compiler_gnu=$ac_cv_c_compiler_gnu
3283
7a197a62 3284
68f2de6d
AK
3285{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3286echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3287if test "${ac_cv_path_GREP+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3289else
3290 # Extract the first word of "grep ggrep" to use in msg output
3291if test -z "$GREP"; then
3292set dummy grep ggrep; ac_prog_name=$2
5556819a 3293if test "${ac_cv_path_GREP+set}" = set; then
68f2de6d 3294 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3295else
d0191583 3296 ac_path_GREP_found=false
68f2de6d
AK
3297# Loop through the user's path and test for each of PROGNAME-LIST
3298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3299for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3300do
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
d0191583 3303 for ac_prog in grep ggrep; do
68f2de6d
AK
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3306 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3307 # Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3308 # Check for GNU $ac_path_GREP
3309case `"$ac_path_GREP" --version 2>&1` in
3310*GNU*)
3311 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3312*)
3313 ac_count=0
68f2de6d 3314 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
d0191583
JM
3315 while :
3316 do
3317 cat "conftest.in" "conftest.in" >"conftest.tmp"
3318 mv "conftest.tmp" "conftest.in"
3319 cp "conftest.in" "conftest.nl"
68f2de6d 3320 echo 'GREP' >> "conftest.nl"
d0191583
JM
3321 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3323 ac_count=`expr $ac_count + 1`
3324 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3325 # Best one so far, save it but keep looking for a better one
3326 ac_cv_path_GREP="$ac_path_GREP"
3327 ac_path_GREP_max=$ac_count
3328 fi
3329 # 10*(2^10) chars as input seems more than enough
3330 test $ac_count -gt 10 && break
3331 done
3332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3333esac
3334
68f2de6d
AK
3335
3336 $ac_path_GREP_found && break 3
d0191583 3337 done
ad6254c5 3338done
68f2de6d
AK
3339
3340done
7a197a62 3341IFS=$as_save_IFS
68f2de6d
AK
3342
3343
3344fi
3345
3346GREP="$ac_cv_path_GREP"
3347if test -z "$GREP"; then
3348 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3349echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3350 { (exit 1); exit 1; }; }
68f2de6d
AK
3351fi
3352
80992638 3353else
d0191583 3354 ac_cv_path_GREP=$GREP
8106cdd5 3355fi
8106cdd5 3356
68f2de6d 3357
80992638 3358fi
68f2de6d
AK
3359{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3360echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
d0191583 3361 GREP="$ac_cv_path_GREP"
795ca3e5 3362
d0191583 3363
68f2de6d
AK
3364{ echo "$as_me:$LINENO: checking for egrep" >&5
3365echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
d0191583 3366if test "${ac_cv_path_EGREP+set}" = set; then
68f2de6d 3367 echo $ECHO_N "(cached) $ECHO_C" >&6
8a2fc586 3368else
d0191583
JM
3369 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3370 then ac_cv_path_EGREP="$GREP -E"
3371 else
68f2de6d
AK
3372 # Extract the first word of "egrep" to use in msg output
3373if test -z "$EGREP"; then
3374set dummy egrep; ac_prog_name=$2
3375if test "${ac_cv_path_EGREP+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3377else
d0191583 3378 ac_path_EGREP_found=false
68f2de6d
AK
3379# Loop through the user's path and test for each of PROGNAME-LIST
3380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3381for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3382do
3383 IFS=$as_save_IFS
3384 test -z "$as_dir" && as_dir=.
d0191583 3385 for ac_prog in egrep; do
68f2de6d
AK
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3388 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3389 # Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3390 # Check for GNU $ac_path_EGREP
3391case `"$ac_path_EGREP" --version 2>&1` in
3392*GNU*)
3393 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3394*)
3395 ac_count=0
68f2de6d 3396 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
d0191583
JM
3397 while :
3398 do
3399 cat "conftest.in" "conftest.in" >"conftest.tmp"
3400 mv "conftest.tmp" "conftest.in"
3401 cp "conftest.in" "conftest.nl"
68f2de6d 3402 echo 'EGREP' >> "conftest.nl"
d0191583
JM
3403 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3404 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3405 ac_count=`expr $ac_count + 1`
3406 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3407 # Best one so far, save it but keep looking for a better one
3408 ac_cv_path_EGREP="$ac_path_EGREP"
3409 ac_path_EGREP_max=$ac_count
3410 fi
3411 # 10*(2^10) chars as input seems more than enough
3412 test $ac_count -gt 10 && break
3413 done
3414 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3415esac
8a2fc586 3416
68f2de6d
AK
3417
3418 $ac_path_EGREP_found && break 3
d0191583 3419 done
8a2fc586 3420done
68f2de6d
AK
3421
3422done
7a197a62 3423IFS=$as_save_IFS
68f2de6d
AK
3424
3425
3426fi
3427
3428EGREP="$ac_cv_path_EGREP"
3429if test -z "$EGREP"; then
3430 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3431echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3432 { (exit 1); exit 1; }; }
68f2de6d
AK
3433fi
3434
d0191583
JM
3435else
3436 ac_cv_path_EGREP=$EGREP
3437fi
ad6254c5 3438
68f2de6d 3439
d0191583
JM
3440 fi
3441fi
68f2de6d
AK
3442{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3443echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
d0191583 3444 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3445
3446
d0191583 3447if test $ac_cv_c_compiler_gnu = yes; then
68f2de6d
AK
3448 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3449echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
d0191583 3450if test "${ac_cv_prog_gcc_traditional+set}" = set; then
68f2de6d 3451 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 3452else
d0191583 3453 ac_pattern="Autoconf.*'x'"
ad6254c5 3454 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3455/* confdefs.h. */
3456_ACEOF
3457cat confdefs.h >>conftest.$ac_ext
3458cat >>conftest.$ac_ext <<_ACEOF
3459/* end confdefs.h. */
d0191583
JM
3460#include <sgtty.h>
3461Autoconf TIOCGETP
ad6254c5 3462_ACEOF
d0191583
JM
3463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3464 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3465 ac_cv_prog_gcc_traditional=yes
8106cdd5 3466else
d0191583 3467 ac_cv_prog_gcc_traditional=no
80992638 3468fi
d0191583 3469rm -f conftest*
ad6254c5 3470
8106cdd5 3471
d0191583
JM
3472 if test $ac_cv_prog_gcc_traditional = no; then
3473 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3474/* confdefs.h. */
3475_ACEOF
3476cat confdefs.h >>conftest.$ac_ext
3477cat >>conftest.$ac_ext <<_ACEOF
3478/* end confdefs.h. */
d0191583
JM
3479#include <termio.h>
3480Autoconf TCGETA
ad6254c5 3481_ACEOF
d0191583
JM
3482if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3483 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3484 ac_cv_prog_gcc_traditional=yes
7a197a62 3485fi
d0191583 3486rm -f conftest*
795ca3e5 3487
d0191583 3488 fi
795ca3e5 3489fi
68f2de6d
AK
3490{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3491echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3492 if test $ac_cv_prog_gcc_traditional = yes; then
3493 CC="$CC -traditional"
3494 fi
795ca3e5
AK
3495fi
3496
d0191583
JM
3497# Find a good install program. We prefer a C program (faster),
3498# so one script is as good as another. But avoid the broken or
3499# incompatible versions:
3500# SysV /etc/install, /usr/sbin/install
3501# SunOS /usr/etc/install
3502# IRIX /sbin/install
3503# AIX /bin/install
3504# AmigaOS /C/install, which installs bootblocks on floppy discs
3505# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3506# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3507# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3508# OS/2's system install, which has a completely different semantic
3509# ./install, which can be erroneously created by make from ./install.sh.
68f2de6d
AK
3510{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3511echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d0191583
JM
3512if test -z "$INSTALL"; then
3513if test "${ac_cv_path_install+set}" = set; then
68f2de6d 3514 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3515else
d0191583
JM
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517for as_dir in $PATH
3518do
3519 IFS=$as_save_IFS
3520 test -z "$as_dir" && as_dir=.
3521 # Account for people who put trailing slashes in PATH elements.
3522case $as_dir/ in
3523 ./ | .// | /cC/* | \
3524 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3525 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3526 /usr/ucb/* ) ;;
3527 *)
3528 # OSF1 and SCO ODT 3.0 have their own names for install.
3529 # Don't use installbsd from OSF since it installs stuff as root
3530 # by default.
3531 for ac_prog in ginstall scoinst install; do
3532 for ac_exec_ext in '' $ac_executable_extensions; do
3533 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3534 if test $ac_prog = install &&
3535 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3536 # AIX install. It has an incompatible calling convention.
3537 :
3538 elif test $ac_prog = install &&
3539 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3540 # program-specific install script used by HP pwplus--don't use.
3541 :
3542 else
68f2de6d
AK
3543 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3544 break 3
d0191583
JM
3545 fi
3546 fi
3547 done
3548 done
3549 ;;
3550esac
3551done
3552IFS=$as_save_IFS
80992638 3553
d0191583
JM
3554
3555fi
3556 if test "${ac_cv_path_install+set}" = set; then
3557 INSTALL=$ac_cv_path_install
7a197a62 3558 else
d0191583
JM
3559 # As a last resort, use the slow shell script. Don't cache a
3560 # value for INSTALL within a source directory, because that will
3561 # break other packages using the cache if that directory is
3562 # removed, or if the value is a relative name.
3563 INSTALL=$ac_install_sh
7a197a62 3564 fi
d0191583 3565fi
68f2de6d
AK
3566{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3567echo "${ECHO_T}$INSTALL" >&6; }
ad6254c5 3568
d0191583
JM
3569# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3570# It thinks the first close brace ends the variable substitution.
3571test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3572
d0191583 3573test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3574
d0191583
JM
3575test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3576
68f2de6d
AK
3577{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3578echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
d0191583
JM
3579LN_S=$as_ln_s
3580if test "$LN_S" = "ln -s"; then
68f2de6d
AK
3581 { echo "$as_me:$LINENO: result: yes" >&5
3582echo "${ECHO_T}yes" >&6; }
d0191583 3583else
68f2de6d
AK
3584 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3585echo "${ECHO_T}no, using $LN_S" >&6; }
795ca3e5 3586fi
d0191583 3587
68f2de6d
AK
3588{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3589echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3590set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3591if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 3592 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62 3593else
d0191583
JM
3594 cat >conftest.make <<\_ACEOF
3595SHELL = /bin/sh
3596all:
3597 @echo '@@@%%%=$(MAKE)=@@@%%%'
3598_ACEOF
3599# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3600case `${MAKE-make} -f conftest.make 2>/dev/null` in
3601 *@@@%%%=?*=@@@%%%*)
3602 eval ac_cv_prog_make_${ac_make}_set=yes;;
3603 *)
3604 eval ac_cv_prog_make_${ac_make}_set=no;;
3605esac
3606rm -f conftest.make
ad6254c5 3607fi
d0191583 3608if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
68f2de6d
AK
3609 { echo "$as_me:$LINENO: result: yes" >&5
3610echo "${ECHO_T}yes" >&6; }
d0191583
JM
3611 SET_MAKE=
3612else
68f2de6d
AK
3613 { echo "$as_me:$LINENO: result: no" >&5
3614echo "${ECHO_T}no" >&6; }
d0191583 3615 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3616fi
8106cdd5 3617
68f2de6d
AK
3618{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3619echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
5556819a
AK
3620if test -z "$MKDIR_P"; then
3621 if test "${ac_cv_path_mkdir+set}" = set; then
68f2de6d 3622 echo $ECHO_N "(cached) $ECHO_C" >&6
5556819a
AK
3623else
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3626do
3627 IFS=$as_save_IFS
3628 test -z "$as_dir" && as_dir=.
3629 for ac_prog in mkdir gmkdir; do
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3632 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3633 'mkdir (GNU coreutils) '* | \
3634 'mkdir (coreutils) '* | \
3635 'mkdir (fileutils) '4.1*)
3636 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3637 break 3;;
3638 esac
3639 done
3640 done
3641done
3642IFS=$as_save_IFS
3643
3644fi
3645
3646 if test "${ac_cv_path_mkdir+set}" = set; then
3647 MKDIR_P="$ac_cv_path_mkdir -p"
3648 else
3649 # As a last resort, use the slow shell script. Don't cache a
3650 # value for MKDIR_P within a source directory, because that will
3651 # break other packages using the cache if that directory is
3652 # removed, or if the value is a relative name.
3653 test -d ./--version && rmdir ./--version
3654 MKDIR_P="$ac_install_sh -d"
3655 fi
3656fi
68f2de6d
AK
3657{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3658echo "${ECHO_T}$MKDIR_P" >&6; }
5556819a 3659
d0191583
JM
3660if test -n "$ac_tool_prefix"; then
3661 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3662set dummy ${ac_tool_prefix}ranlib; ac_word=$2
68f2de6d
AK
3663{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d0191583 3665if test "${ac_cv_prog_RANLIB+set}" = set; then
68f2de6d 3666 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
3667else
3668 if test -n "$RANLIB"; then
3669 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3670else
3671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672for as_dir in $PATH
3673do
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3678 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
68f2de6d 3679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3680 break 2
3681 fi
3682done
3683done
3684IFS=$as_save_IFS
8106cdd5 3685
795ca3e5 3686fi
d0191583
JM
3687fi
3688RANLIB=$ac_cv_prog_RANLIB
3689if test -n "$RANLIB"; then
68f2de6d
AK
3690 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3691echo "${ECHO_T}$RANLIB" >&6; }
d0191583 3692else
68f2de6d
AK
3693 { echo "$as_me:$LINENO: result: no" >&5
3694echo "${ECHO_T}no" >&6; }
d0191583
JM
3695fi
3696
8106cdd5 3697
ad6254c5 3698fi
d0191583
JM
3699if test -z "$ac_cv_prog_RANLIB"; then
3700 ac_ct_RANLIB=$RANLIB
3701 # Extract the first word of "ranlib", so it can be a program name with args.
3702set dummy ranlib; ac_word=$2
68f2de6d
AK
3703{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d0191583 3705if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
68f2de6d 3706 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3707else
d0191583
JM
3708 if test -n "$ac_ct_RANLIB"; then
3709 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3710else
3711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712for as_dir in $PATH
8106cdd5 3713do
d0191583
JM
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3718 ac_cv_prog_ac_ct_RANLIB="ranlib"
68f2de6d 3719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3720 break 2
3721 fi
3722done
3723done
3724IFS=$as_save_IFS
3725
3726fi
3727fi
3728ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3729if test -n "$ac_ct_RANLIB"; then
68f2de6d
AK
3730 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3731echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
ad6254c5 3732else
68f2de6d
AK
3733 { echo "$as_me:$LINENO: result: no" >&5
3734echo "${ECHO_T}no" >&6; }
d0191583 3735fi
ad6254c5 3736
d0191583
JM
3737 if test "x$ac_ct_RANLIB" = x; then
3738 RANLIB=":"
3739 else
3740 case $cross_compiling:$ac_tool_warned in
3741yes:)
68f2de6d 3742{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
d0191583
JM
3743whose name does not start with the host triplet. If you think this
3744configuration is useful to you, please write to autoconf@gnu.org." >&5
68f2de6d 3745echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
d0191583
JM
3746whose name does not start with the host triplet. If you think this
3747configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3748ac_tool_warned=yes ;;
3749esac
3750 RANLIB=$ac_ct_RANLIB
3751 fi
3752else
3753 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 3754fi
7a197a62 3755
d0191583
JM
3756# Extract the first word of "cflow", so it can be a program name with args.
3757set dummy cflow; ac_word=$2
68f2de6d
AK
3758{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d0191583 3760if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
68f2de6d 3761 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
3762else
3763 case $CFLOW_CMD in
3764 [\\/]* | ?:[\\/]*)
3765 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3766 ;;
3767 *)
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769for as_dir in $PATH
3770do
3771 IFS=$as_save_IFS
3772 test -z "$as_dir" && as_dir=.
3773 for ac_exec_ext in '' $ac_executable_extensions; do
3774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3775 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 3776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3777 break 2
3778 fi
3779done
3780done
3781IFS=$as_save_IFS
ad6254c5 3782
d0191583 3783 ;;
7a197a62 3784esac
d0191583
JM
3785fi
3786CFLOW_CMD=$ac_cv_path_CFLOW_CMD
3787if test -n "$CFLOW_CMD"; then
68f2de6d
AK
3788 { echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3789echo "${ECHO_T}$CFLOW_CMD" >&6; }
80992638 3790else
68f2de6d
AK
3791 { echo "$as_me:$LINENO: result: no" >&5
3792echo "${ECHO_T}no" >&6; }
795ca3e5 3793fi
7a197a62 3794
ad6254c5 3795
d0191583
JM
3796# Extract the first word of "cscope", so it can be a program name with args.
3797set dummy cscope; ac_word=$2
68f2de6d
AK
3798{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d0191583 3800if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
68f2de6d 3801 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
3802else
3803 case $CSCOPE_CMD in
3804 [\\/]* | ?:[\\/]*)
3805 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
3806 ;;
3807 *)
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809for as_dir in $PATH
3810do
3811 IFS=$as_save_IFS
3812 test -z "$as_dir" && as_dir=.
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3815 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 3816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3817 break 2
3818 fi
795ca3e5 3819done
d0191583
JM
3820done
3821IFS=$as_save_IFS
795ca3e5 3822
d0191583
JM
3823 ;;
3824esac
ad6254c5 3825fi
d0191583
JM
3826CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
3827if test -n "$CSCOPE_CMD"; then
68f2de6d
AK
3828 { echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3829echo "${ECHO_T}$CSCOPE_CMD" >&6; }
795ca3e5 3830else
68f2de6d
AK
3831 { echo "$as_me:$LINENO: result: no" >&5
3832echo "${ECHO_T}no" >&6; }
795ca3e5 3833fi
ad6254c5 3834
7a197a62 3835
ad6254c5 3836
d0191583
JM
3837################################################################################
3838
3839
3840
3841
3842
3843ac_header_dirent=no
3844for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
68f2de6d
AK
3845 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3846{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3847echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
d0191583 3848if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 3849 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583 3850else
ad6254c5 3851 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3852/* confdefs.h. */
3853_ACEOF
3854cat confdefs.h >>conftest.$ac_ext
3855cat >>conftest.$ac_ext <<_ACEOF
3856/* end confdefs.h. */
d0191583
JM
3857#include <sys/types.h>
3858#include <$ac_hdr>
3859
3860int
3861main ()
3862{
3863if ((DIR *) 0)
3864return 0;
3865 ;
3866 return 0;
3867}
ad6254c5 3868_ACEOF
d0191583
JM
3869rm -f conftest.$ac_objext
3870if { (ac_try="$ac_compile"
7a197a62
AK
3871case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3874esac
68f2de6d 3875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583 3876 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
3877 ac_status=$?
3878 grep -v '^ *+' conftest.er1 >conftest.err
3879 rm -f conftest.er1
3880 cat conftest.err >&5
68f2de6d 3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3882 (exit $ac_status); } && {
3883 test -z "$ac_c_werror_flag" ||
25fbec5b 3884 test ! -s conftest.err
d0191583
JM
3885 } && test -s conftest.$ac_objext; then
3886 eval "$as_ac_Header=yes"
ad6254c5 3887else
68f2de6d 3888 echo "$as_me: failed program was:" >&5
ad6254c5 3889sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 3890
d0191583 3891 eval "$as_ac_Header=no"
795ca3e5 3892fi
7a197a62 3893
d0191583 3894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 3895fi
68f2de6d
AK
3896ac_res=`eval echo '${'$as_ac_Header'}'`
3897 { echo "$as_me:$LINENO: result: $ac_res" >&5
3898echo "${ECHO_T}$ac_res" >&6; }
3899if test `eval echo '${'$as_ac_Header'}'` = yes; then
d0191583 3900 cat >>confdefs.h <<_ACEOF
68f2de6d 3901#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 3902_ACEOF
795ca3e5 3903
d0191583
JM
3904ac_header_dirent=$ac_hdr; break
3905fi
ad6254c5 3906
d0191583
JM
3907done
3908# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3909if test $ac_header_dirent = dirent.h; then
68f2de6d
AK
3910 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3911echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
d0191583 3912if test "${ac_cv_search_opendir+set}" = set; then
68f2de6d 3913 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3914else
d0191583
JM
3915 ac_func_search_save_LIBS=$LIBS
3916cat >conftest.$ac_ext <<_ACEOF
3917/* confdefs.h. */
3918_ACEOF
3919cat confdefs.h >>conftest.$ac_ext
3920cat >>conftest.$ac_ext <<_ACEOF
3921/* end confdefs.h. */
ad6254c5 3922
d0191583
JM
3923/* Override any GCC internal prototype to avoid an error.
3924 Use char because int might match the return type of a GCC
3925 builtin and then its argument prototype would still apply. */
3926#ifdef __cplusplus
3927extern "C"
3928#endif
3929char opendir ();
3930int
3931main ()
3932{
3933return opendir ();
3934 ;
3935 return 0;
3936}
3937_ACEOF
3938for ac_lib in '' dir; do
3939 if test -z "$ac_lib"; then
3940 ac_res="none required"
3941 else
3942 ac_res=-l$ac_lib
3943 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3944 fi
3945 rm -f conftest.$ac_objext conftest$ac_exeext
3946if { (ac_try="$ac_link"
3947case "(($ac_try" in
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3950esac
68f2de6d 3951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3952 (eval "$ac_link") 2>conftest.er1
3953 ac_status=$?
3954 grep -v '^ *+' conftest.er1 >conftest.err
3955 rm -f conftest.er1
3956 cat conftest.err >&5
68f2de6d 3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3958 (exit $ac_status); } && {
3959 test -z "$ac_c_werror_flag" ||
3960 test ! -s conftest.err
68f2de6d
AK
3961 } && test -s conftest$ac_exeext &&
3962 $as_test_x conftest$ac_exeext; then
d0191583
JM
3963 ac_cv_search_opendir=$ac_res
3964else
68f2de6d 3965 echo "$as_me: failed program was:" >&5
d0191583 3966sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3967
ad6254c5 3968
795ca3e5 3969fi
ad6254c5 3970
d0191583
JM
3971rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3972 conftest$ac_exeext
3973 if test "${ac_cv_search_opendir+set}" = set; then
3974 break
7a197a62 3975fi
d0191583
JM
3976done
3977if test "${ac_cv_search_opendir+set}" = set; then
3978 :
7a197a62 3979else
d0191583 3980 ac_cv_search_opendir=no
7a197a62 3981fi
d0191583
JM
3982rm conftest.$ac_ext
3983LIBS=$ac_func_search_save_LIBS
7a197a62 3984fi
68f2de6d
AK
3985{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3986echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
d0191583
JM
3987ac_res=$ac_cv_search_opendir
3988if test "$ac_res" != no; then
3989 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 3990
d0191583 3991fi
7a197a62 3992
7a197a62 3993else
68f2de6d
AK
3994 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3995echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
d0191583 3996if test "${ac_cv_search_opendir+set}" = set; then
68f2de6d 3997 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62 3998else
d0191583
JM
3999 ac_func_search_save_LIBS=$LIBS
4000cat >conftest.$ac_ext <<_ACEOF
4001/* confdefs.h. */
4002_ACEOF
4003cat confdefs.h >>conftest.$ac_ext
4004cat >>conftest.$ac_ext <<_ACEOF
4005/* end confdefs.h. */
7a197a62 4006
d0191583
JM
4007/* Override any GCC internal prototype to avoid an error.
4008 Use char because int might match the return type of a GCC
4009 builtin and then its argument prototype would still apply. */
4010#ifdef __cplusplus
4011extern "C"
4012#endif
4013char opendir ();
4014int
4015main ()
4016{
4017return opendir ();
4018 ;
4019 return 0;
4020}
4021_ACEOF
4022for ac_lib in '' x; do
4023 if test -z "$ac_lib"; then
4024 ac_res="none required"
4025 else
4026 ac_res=-l$ac_lib
4027 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4028 fi
4029 rm -f conftest.$ac_objext conftest$ac_exeext
4030if { (ac_try="$ac_link"
4031case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034esac
68f2de6d 4035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
4036 (eval "$ac_link") 2>conftest.er1
4037 ac_status=$?
4038 grep -v '^ *+' conftest.er1 >conftest.err
4039 rm -f conftest.er1
4040 cat conftest.err >&5
68f2de6d 4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4042 (exit $ac_status); } && {
4043 test -z "$ac_c_werror_flag" ||
4044 test ! -s conftest.err
68f2de6d
AK
4045 } && test -s conftest$ac_exeext &&
4046 $as_test_x conftest$ac_exeext; then
d0191583
JM
4047 ac_cv_search_opendir=$ac_res
4048else
68f2de6d 4049 echo "$as_me: failed program was:" >&5
d0191583 4050sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4051
4052
4053fi
4054
d0191583
JM
4055rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4056 conftest$ac_exeext
4057 if test "${ac_cv_search_opendir+set}" = set; then
4058 break
7a197a62 4059fi
d0191583
JM
4060done
4061if test "${ac_cv_search_opendir+set}" = set; then
4062 :
7a197a62 4063else
d0191583 4064 ac_cv_search_opendir=no
7a197a62 4065fi
d0191583
JM
4066rm conftest.$ac_ext
4067LIBS=$ac_func_search_save_LIBS
4068fi
68f2de6d
AK
4069{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4070echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
d0191583
JM
4071ac_res=$ac_cv_search_opendir
4072if test "$ac_res" != no; then
4073 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4074
7a197a62 4075fi
7a197a62 4076
d0191583 4077fi
7a197a62 4078
68f2de6d
AK
4079{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4080echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7a197a62 4081if test "${ac_cv_header_stdc+set}" = set; then
68f2de6d 4082 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62
AK
4083else
4084 cat >conftest.$ac_ext <<_ACEOF
4085/* confdefs.h. */
4086_ACEOF
4087cat confdefs.h >>conftest.$ac_ext
4088cat >>conftest.$ac_ext <<_ACEOF
4089/* end confdefs.h. */
4090#include <stdlib.h>
4091#include <stdarg.h>
4092#include <string.h>
4093#include <float.h>
4094
4095int
4096main ()
4097{
4098
4099 ;
4100 return 0;
4101}
4102_ACEOF
4103rm -f conftest.$ac_objext
4104if { (ac_try="$ac_compile"
4105case "(($ac_try" in
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4108esac
68f2de6d 4109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62
AK
4110 (eval "$ac_compile") 2>conftest.er1
4111 ac_status=$?
4112 grep -v '^ *+' conftest.er1 >conftest.err
4113 rm -f conftest.er1
4114 cat conftest.err >&5
68f2de6d 4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4116 (exit $ac_status); } && {
4117 test -z "$ac_c_werror_flag" ||
4118 test ! -s conftest.err
4119 } && test -s conftest.$ac_objext; then
7a197a62
AK
4120 ac_cv_header_stdc=yes
4121else
68f2de6d 4122 echo "$as_me: failed program was:" >&5
7a197a62
AK
4123sed 's/^/| /' conftest.$ac_ext >&5
4124
4125 ac_cv_header_stdc=no
4126fi
4127
4128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4129
4130if test $ac_cv_header_stdc = yes; then
4131 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4132 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4133/* confdefs.h. */
4134_ACEOF
4135cat confdefs.h >>conftest.$ac_ext
4136cat >>conftest.$ac_ext <<_ACEOF
4137/* end confdefs.h. */
4138#include <string.h>
8106cdd5 4139
ad6254c5
AK
4140_ACEOF
4141if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4142 $EGREP "memchr" >/dev/null 2>&1; then
4143 :
4144else
4145 ac_cv_header_stdc=no
80992638 4146fi
ad6254c5 4147rm -f conftest*
795ca3e5
AK
4148
4149fi
4150
ad6254c5
AK
4151if test $ac_cv_header_stdc = yes; then
4152 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4153 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4154/* confdefs.h. */
4155_ACEOF
4156cat confdefs.h >>conftest.$ac_ext
4157cat >>conftest.$ac_ext <<_ACEOF
4158/* end confdefs.h. */
80992638 4159#include <stdlib.h>
ad6254c5
AK
4160
4161_ACEOF
80992638 4162if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4163 $EGREP "free" >/dev/null 2>&1; then
4164 :
795ca3e5 4165else
ad6254c5 4166 ac_cv_header_stdc=no
795ca3e5 4167fi
80992638 4168rm -f conftest*
8106cdd5 4169
795ca3e5
AK
4170fi
4171
ad6254c5
AK
4172if test $ac_cv_header_stdc = yes; then
4173 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4174 if test "$cross_compiling" = yes; then
4175 :
795ca3e5 4176else
ad6254c5 4177 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4178/* confdefs.h. */
4179_ACEOF
4180cat confdefs.h >>conftest.$ac_ext
4181cat >>conftest.$ac_ext <<_ACEOF
4182/* end confdefs.h. */
4183#include <ctype.h>
7a197a62 4184#include <stdlib.h>
ad6254c5
AK
4185#if ((' ' & 0x0FF) == 0x020)
4186# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4187# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4188#else
4189# define ISLOWER(c) \
8a2fc586
AK
4190 (('a' <= (c) && (c) <= 'i') \
4191 || ('j' <= (c) && (c) <= 'r') \
4192 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4193# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4194#endif
ad6254c5
AK
4195
4196#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4197int
4198main ()
4199{
4200 int i;
4201 for (i = 0; i < 256; i++)
4202 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4203 || toupper (i) != TOUPPER (i))
7a197a62
AK
4204 return 2;
4205 return 0;
ad6254c5
AK
4206}
4207_ACEOF
4208rm -f conftest$ac_exeext
7a197a62
AK
4209if { (ac_try="$ac_link"
4210case "(($ac_try" in
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4213esac
68f2de6d 4214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4215 (eval "$ac_link") 2>&5
ad6254c5 4216 ac_status=$?
68f2de6d 4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4219 { (case "(($ac_try" in
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4222esac
68f2de6d 4223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4224 (eval "$ac_try") 2>&5
ad6254c5 4225 ac_status=$?
68f2de6d 4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4227 (exit $ac_status); }; }; then
4228 :
795ca3e5 4229else
68f2de6d
AK
4230 echo "$as_me: program exited with status $ac_status" >&5
4231echo "$as_me: failed program was:" >&5
ad6254c5 4232sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4233
ad6254c5
AK
4234( exit $ac_status )
4235ac_cv_header_stdc=no
80992638 4236fi
7a197a62 4237rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4238fi
7a197a62
AK
4239
4240
ad6254c5
AK
4241fi
4242fi
68f2de6d
AK
4243{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4244echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4245if test $ac_cv_header_stdc = yes; then
4246
4247cat >>confdefs.h <<\_ACEOF
4248#define STDC_HEADERS 1
4249_ACEOF
795ca3e5
AK
4250
4251fi
4252
68f2de6d
AK
4253{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4254echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
ad6254c5 4255if test "${ac_cv_header_sys_wait_h+set}" = set; then
68f2de6d 4256 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 4257else
ad6254c5 4258 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4259/* confdefs.h. */
4260_ACEOF
4261cat confdefs.h >>conftest.$ac_ext
4262cat >>conftest.$ac_ext <<_ACEOF
4263/* end confdefs.h. */
80992638 4264#include <sys/types.h>
ad6254c5
AK
4265#include <sys/wait.h>
4266#ifndef WEXITSTATUS
7a197a62 4267# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4268#endif
4269#ifndef WIFEXITED
4270# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4271#endif
4272
4273int
4274main ()
4275{
4276 int s;
4277 wait (&s);
4278 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4279 ;
4280 return 0;
4281}
4282_ACEOF
4283rm -f conftest.$ac_objext
7a197a62
AK
4284if { (ac_try="$ac_compile"
4285case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4288esac
68f2de6d 4289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4290 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4291 ac_status=$?
8a2fc586
AK
4292 grep -v '^ *+' conftest.er1 >conftest.err
4293 rm -f conftest.er1
4294 cat conftest.err >&5
68f2de6d 4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4296 (exit $ac_status); } && {
4297 test -z "$ac_c_werror_flag" ||
4298 test ! -s conftest.err
4299 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4300 ac_cv_header_sys_wait_h=yes
4301else
68f2de6d 4302 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4303sed 's/^/| /' conftest.$ac_ext >&5
4304
7a197a62 4305 ac_cv_header_sys_wait_h=no
8106cdd5 4306fi
7a197a62
AK
4307
4308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4309fi
68f2de6d
AK
4310{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4311echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4312if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4313
ad6254c5
AK
4314cat >>confdefs.h <<\_ACEOF
4315#define HAVE_SYS_WAIT_H 1
4316_ACEOF
795ca3e5
AK
4317
4318fi
4319
68f2de6d
AK
4320{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4321echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
ad6254c5 4322if test "${ac_cv_header_time+set}" = set; then
68f2de6d 4323 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 4324else
ad6254c5 4325 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4326/* confdefs.h. */
4327_ACEOF
4328cat confdefs.h >>conftest.$ac_ext
4329cat >>conftest.$ac_ext <<_ACEOF
4330/* end confdefs.h. */
795ca3e5
AK
4331#include <sys/types.h>
4332#include <sys/time.h>
4333#include <time.h>
ad6254c5
AK
4334
4335int
4336main ()
4337{
4338if ((struct tm *) 0)
4339return 0;
4340 ;
4341 return 0;
4342}
4343_ACEOF
4344rm -f conftest.$ac_objext
7a197a62
AK
4345if { (ac_try="$ac_compile"
4346case "(($ac_try" in
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4349esac
68f2de6d 4350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4351 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4352 ac_status=$?
8a2fc586
AK
4353 grep -v '^ *+' conftest.er1 >conftest.err
4354 rm -f conftest.er1
4355 cat conftest.err >&5
68f2de6d 4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4357 (exit $ac_status); } && {
4358 test -z "$ac_c_werror_flag" ||
4359 test ! -s conftest.err
4360 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4361 ac_cv_header_time=yes
4362else
68f2de6d 4363 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4364sed 's/^/| /' conftest.$ac_ext >&5
4365
7a197a62 4366 ac_cv_header_time=no
795ca3e5 4367fi
7a197a62
AK
4368
4369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4370fi
68f2de6d
AK
4371{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4372echo "${ECHO_T}$ac_cv_header_time" >&6; }
80992638 4373if test $ac_cv_header_time = yes; then
ad6254c5
AK
4374
4375cat >>confdefs.h <<\_ACEOF
795ca3e5 4376#define TIME_WITH_SYS_TIME 1
ad6254c5 4377_ACEOF
b896caa1 4378
8106cdd5 4379fi
b896caa1 4380
b896caa1 4381
d0191583
JM
4382# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4393 inttypes.h stdint.h unistd.h
4394do
68f2de6d
AK
4395as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4396{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
d0191583 4398if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4399 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
4400else
4401 cat >conftest.$ac_ext <<_ACEOF
4402/* confdefs.h. */
4403_ACEOF
4404cat confdefs.h >>conftest.$ac_ext
4405cat >>conftest.$ac_ext <<_ACEOF
4406/* end confdefs.h. */
4407$ac_includes_default
4408
4409#include <$ac_header>
4410_ACEOF
4411rm -f conftest.$ac_objext
4412if { (ac_try="$ac_compile"
4413case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4416esac
68f2de6d 4417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
4418 (eval "$ac_compile") 2>conftest.er1
4419 ac_status=$?
4420 grep -v '^ *+' conftest.er1 >conftest.err
4421 rm -f conftest.er1
4422 cat conftest.err >&5
68f2de6d 4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4424 (exit $ac_status); } && {
4425 test -z "$ac_c_werror_flag" ||
4426 test ! -s conftest.err
4427 } && test -s conftest.$ac_objext; then
4428 eval "$as_ac_Header=yes"
4429else
68f2de6d 4430 echo "$as_me: failed program was:" >&5
d0191583
JM
4431sed 's/^/| /' conftest.$ac_ext >&5
4432
4433 eval "$as_ac_Header=no"
4434fi
4435
4436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437fi
68f2de6d
AK
4438ac_res=`eval echo '${'$as_ac_Header'}'`
4439 { echo "$as_me:$LINENO: result: $ac_res" >&5
4440echo "${ECHO_T}$ac_res" >&6; }
4441if test `eval echo '${'$as_ac_Header'}'` = yes; then
d0191583 4442 cat >>confdefs.h <<_ACEOF
68f2de6d 4443#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d0191583
JM
4444_ACEOF
4445
4446fi
4447
4448done
4449
b896caa1 4450
b896caa1
AK
4451
4452
795ca3e5 4453
8106cdd5 4454
80992638 4455
795ca3e5 4456
a38df97f 4457
80992638 4458
d0191583
JM
4459
4460
4461
4462
4463
4464for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4465 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
ad6254c5 4466do
68f2de6d 4467as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0191583 4468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
4469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4471if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4472 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583 4473fi
68f2de6d
AK
4474ac_res=`eval echo '${'$as_ac_Header'}'`
4475 { echo "$as_me:$LINENO: result: $ac_res" >&5
4476echo "${ECHO_T}$ac_res" >&6; }
ad6254c5 4477else
d0191583 4478 # Is the header compilable?
68f2de6d
AK
4479{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4480echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d0191583 4481cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4482/* confdefs.h. */
4483_ACEOF
4484cat confdefs.h >>conftest.$ac_ext
4485cat >>conftest.$ac_ext <<_ACEOF
4486/* end confdefs.h. */
4487$ac_includes_default
ad6254c5
AK
4488#include <$ac_header>
4489_ACEOF
4490rm -f conftest.$ac_objext
7a197a62
AK
4491if { (ac_try="$ac_compile"
4492case "(($ac_try" in
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4495esac
68f2de6d 4496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4497 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4498 ac_status=$?
8a2fc586
AK
4499 grep -v '^ *+' conftest.er1 >conftest.err
4500 rm -f conftest.er1
4501 cat conftest.err >&5
68f2de6d 4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4503 (exit $ac_status); } && {
4504 test -z "$ac_c_werror_flag" ||
4505 test ! -s conftest.err
4506 } && test -s conftest.$ac_objext; then
d0191583 4507 ac_header_compiler=yes
ad6254c5 4508else
68f2de6d 4509 echo "$as_me: failed program was:" >&5
ad6254c5 4510sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4511
d0191583 4512 ac_header_compiler=no
ad6254c5 4513fi
7a197a62
AK
4514
4515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
4516{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4517echo "${ECHO_T}$ac_header_compiler" >&6; }
d0191583
JM
4518
4519# Is the header present?
68f2de6d
AK
4520{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4521echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d0191583
JM
4522cat >conftest.$ac_ext <<_ACEOF
4523/* confdefs.h. */
4524_ACEOF
4525cat confdefs.h >>conftest.$ac_ext
4526cat >>conftest.$ac_ext <<_ACEOF
4527/* end confdefs.h. */
4528#include <$ac_header>
4529_ACEOF
4530if { (ac_try="$ac_cpp conftest.$ac_ext"
4531case "(($ac_try" in
4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533 *) ac_try_echo=$ac_try;;
4534esac
68f2de6d 4535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
4536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4537 ac_status=$?
4538 grep -v '^ *+' conftest.er1 >conftest.err
4539 rm -f conftest.er1
4540 cat conftest.err >&5
68f2de6d 4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4542 (exit $ac_status); } >/dev/null && {
4543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4544 test ! -s conftest.err
4545 }; then
4546 ac_header_preproc=yes
4547else
68f2de6d 4548 echo "$as_me: failed program was:" >&5
d0191583
JM
4549sed 's/^/| /' conftest.$ac_ext >&5
4550
4551 ac_header_preproc=no
4552fi
4553
4554rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
4555{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4556echo "${ECHO_T}$ac_header_preproc" >&6; }
d0191583
JM
4557
4558# So? What about this header?
4559case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4560 yes:no: )
68f2de6d
AK
4561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4562echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4564echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d0191583
JM
4565 ac_header_preproc=yes
4566 ;;
4567 no:yes:* )
68f2de6d
AK
4568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4569echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4571echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4573echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4575echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4577echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4579echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4580
4581 ;;
4582esac
68f2de6d
AK
4583{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
d0191583 4585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4586 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
4587else
4588 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4589fi
68f2de6d
AK
4590ac_res=`eval echo '${'$as_ac_Header'}'`
4591 { echo "$as_me:$LINENO: result: $ac_res" >&5
4592echo "${ECHO_T}$ac_res" >&6; }
d0191583
JM
4593
4594fi
68f2de6d 4595if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4596 cat >>confdefs.h <<_ACEOF
68f2de6d 4597#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4598_ACEOF
a38df97f 4599
d0191583 4600else
68f2de6d
AK
4601 { { echo "$as_me:$LINENO: error: bailing out" >&5
4602echo "$as_me: error: bailing out" >&2;}
d0191583 4603 { (exit 1); exit 1; }; }
80992638
AK
4604fi
4605
ad6254c5
AK
4606done
4607
7d1552c9 4608
d0191583
JM
4609case "$host_os" in
4610 linux*)
7d1552c9 4611
80992638 4612
5a52dca9 4613
d0191583 4614for ac_header in asm/byteorder.h linux/fs.h malloc.h
ad6254c5 4615do
68f2de6d 4616as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4617if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
4618 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4620if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4621 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4622fi
68f2de6d
AK
4623ac_res=`eval echo '${'$as_ac_Header'}'`
4624 { echo "$as_me:$LINENO: result: $ac_res" >&5
4625echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4626else
4627 # Is the header compilable?
68f2de6d
AK
4628{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4629echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4630cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4631/* confdefs.h. */
4632_ACEOF
4633cat confdefs.h >>conftest.$ac_ext
4634cat >>conftest.$ac_ext <<_ACEOF
4635/* end confdefs.h. */
4636$ac_includes_default
4637#include <$ac_header>
4638_ACEOF
4639rm -f conftest.$ac_objext
7a197a62
AK
4640if { (ac_try="$ac_compile"
4641case "(($ac_try" in
4642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643 *) ac_try_echo=$ac_try;;
4644esac
68f2de6d 4645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4646 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4647 ac_status=$?
8a2fc586
AK
4648 grep -v '^ *+' conftest.er1 >conftest.err
4649 rm -f conftest.er1
4650 cat conftest.err >&5
68f2de6d 4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4652 (exit $ac_status); } && {
4653 test -z "$ac_c_werror_flag" ||
4654 test ! -s conftest.err
4655 } && test -s conftest.$ac_objext; then
fc54be10
AK
4656 ac_header_compiler=yes
4657else
68f2de6d 4658 echo "$as_me: failed program was:" >&5
fc54be10
AK
4659sed 's/^/| /' conftest.$ac_ext >&5
4660
4661 ac_header_compiler=no
4662fi
4663
4664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
4665{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4666echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4667
4668# Is the header present?
68f2de6d
AK
4669{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4670echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4671cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4672/* confdefs.h. */
4673_ACEOF
4674cat confdefs.h >>conftest.$ac_ext
4675cat >>conftest.$ac_ext <<_ACEOF
4676/* end confdefs.h. */
4677#include <$ac_header>
4678_ACEOF
7a197a62
AK
4679if { (ac_try="$ac_cpp conftest.$ac_ext"
4680case "(($ac_try" in
4681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682 *) ac_try_echo=$ac_try;;
4683esac
68f2de6d 4684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4686 ac_status=$?
4687 grep -v '^ *+' conftest.er1 >conftest.err
4688 rm -f conftest.er1
4689 cat conftest.err >&5
68f2de6d 4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4691 (exit $ac_status); } >/dev/null && {
4692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4693 test ! -s conftest.err
4694 }; then
ad6254c5
AK
4695 ac_header_preproc=yes
4696else
68f2de6d 4697 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4698sed 's/^/| /' conftest.$ac_ext >&5
4699
4700 ac_header_preproc=no
4701fi
7a197a62 4702
ad6254c5 4703rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
4704{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4705echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
4706
4707# So? What about this header?
8a2fc586
AK
4708case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4709 yes:no: )
68f2de6d
AK
4710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4711echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4713echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4714 ac_header_preproc=yes
ad6254c5 4715 ;;
8a2fc586 4716 no:yes:* )
68f2de6d
AK
4717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4718echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4720echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4721 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4722echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4723 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4724echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4726echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4727 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4728echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4729
ad6254c5
AK
4730 ;;
4731esac
68f2de6d
AK
4732{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4734if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4735 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4736else
8a2fc586 4737 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4738fi
68f2de6d
AK
4739ac_res=`eval echo '${'$as_ac_Header'}'`
4740 { echo "$as_me:$LINENO: result: $ac_res" >&5
4741echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4742
4743fi
68f2de6d 4744if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4745 cat >>confdefs.h <<_ACEOF
68f2de6d 4746#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4747_ACEOF
b896caa1 4748
d8ac0fbc 4749else
68f2de6d
AK
4750 { { echo "$as_me:$LINENO: error: bailing out" >&5
4751echo "$as_me: error: bailing out" >&2;}
ad6254c5 4752 { (exit 1); exit 1; }; }
80992638
AK
4753fi
4754
ad6254c5 4755done
d0191583
JM
4756 ;;
4757 darwin*)
d8ac0fbc 4758
d8ac0fbc 4759
d0191583 4760for ac_header in machine/endian.h sys/disk.h
ad6254c5 4761do
68f2de6d 4762as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
4764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4767 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4768fi
68f2de6d
AK
4769ac_res=`eval echo '${'$as_ac_Header'}'`
4770 { echo "$as_me:$LINENO: result: $ac_res" >&5
4771echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4772else
4773 # Is the header compilable?
68f2de6d
AK
4774{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4775echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4776cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4777/* confdefs.h. */
4778_ACEOF
4779cat confdefs.h >>conftest.$ac_ext
4780cat >>conftest.$ac_ext <<_ACEOF
4781/* end confdefs.h. */
4782$ac_includes_default
4783#include <$ac_header>
4784_ACEOF
4785rm -f conftest.$ac_objext
7a197a62
AK
4786if { (ac_try="$ac_compile"
4787case "(($ac_try" in
4788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4789 *) ac_try_echo=$ac_try;;
4790esac
68f2de6d 4791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4792 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4793 ac_status=$?
8a2fc586
AK
4794 grep -v '^ *+' conftest.er1 >conftest.err
4795 rm -f conftest.er1
4796 cat conftest.err >&5
68f2de6d 4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4798 (exit $ac_status); } && {
4799 test -z "$ac_c_werror_flag" ||
4800 test ! -s conftest.err
4801 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4802 ac_header_compiler=yes
4803else
68f2de6d 4804 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4805sed 's/^/| /' conftest.$ac_ext >&5
4806
7a197a62 4807 ac_header_compiler=no
ad6254c5 4808fi
7a197a62
AK
4809
4810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
4811{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4812echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4813
4814# Is the header present?
68f2de6d
AK
4815{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4816echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4817cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4818/* confdefs.h. */
4819_ACEOF
4820cat confdefs.h >>conftest.$ac_ext
4821cat >>conftest.$ac_ext <<_ACEOF
4822/* end confdefs.h. */
4823#include <$ac_header>
4824_ACEOF
7a197a62
AK
4825if { (ac_try="$ac_cpp conftest.$ac_ext"
4826case "(($ac_try" in
4827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4828 *) ac_try_echo=$ac_try;;
4829esac
68f2de6d 4830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4832 ac_status=$?
4833 grep -v '^ *+' conftest.er1 >conftest.err
4834 rm -f conftest.er1
4835 cat conftest.err >&5
68f2de6d 4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4837 (exit $ac_status); } >/dev/null && {
4838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4839 test ! -s conftest.err
4840 }; then
ad6254c5
AK
4841 ac_header_preproc=yes
4842else
68f2de6d 4843 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4844sed 's/^/| /' conftest.$ac_ext >&5
4845
4846 ac_header_preproc=no
4847fi
7a197a62 4848
ad6254c5 4849rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
4850{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4851echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
4852
4853# So? What about this header?
8a2fc586
AK
4854case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4855 yes:no: )
68f2de6d
AK
4856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4857echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4859echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4860 ac_header_preproc=yes
ad6254c5 4861 ;;
8a2fc586 4862 no:yes:* )
68f2de6d
AK
4863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4864echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4866echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4868echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4870echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4872echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4874echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4875
ad6254c5
AK
4876 ;;
4877esac
68f2de6d
AK
4878{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4880if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4881 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4882else
8a2fc586 4883 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 4884fi
68f2de6d
AK
4885ac_res=`eval echo '${'$as_ac_Header'}'`
4886 { echo "$as_me:$LINENO: result: $ac_res" >&5
4887echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4888
4889fi
68f2de6d 4890if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4891 cat >>confdefs.h <<_ACEOF
68f2de6d 4892#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4893_ACEOF
4922197a 4894
4922197a 4895else
68f2de6d
AK
4896 { { echo "$as_me:$LINENO: error: bailing out" >&5
4897echo "$as_me: error: bailing out" >&2;}
ad6254c5 4898 { (exit 1); exit 1; }; }
80992638
AK
4899fi
4900
ad6254c5 4901done
d0191583
JM
4902 ;;
4903esac
4922197a 4904
4922197a 4905
4922197a 4906
ad6254c5
AK
4907
4908
d0191583
JM
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4922 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4923 sys/types.h unistd.h
ad6254c5 4924do
68f2de6d 4925as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4926if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
4927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4928echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4929if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4930 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4931fi
68f2de6d
AK
4932ac_res=`eval echo '${'$as_ac_Header'}'`
4933 { echo "$as_me:$LINENO: result: $ac_res" >&5
4934echo "${ECHO_T}$ac_res" >&6; }
795ca3e5 4935else
ad6254c5 4936 # Is the header compilable?
68f2de6d
AK
4937{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4938echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4939cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4940/* confdefs.h. */
4941_ACEOF
4942cat confdefs.h >>conftest.$ac_ext
4943cat >>conftest.$ac_ext <<_ACEOF
4944/* end confdefs.h. */
4945$ac_includes_default
4946#include <$ac_header>
4947_ACEOF
4948rm -f conftest.$ac_objext
7a197a62
AK
4949if { (ac_try="$ac_compile"
4950case "(($ac_try" in
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4953esac
68f2de6d 4954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4955 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4956 ac_status=$?
8a2fc586
AK
4957 grep -v '^ *+' conftest.er1 >conftest.err
4958 rm -f conftest.er1
4959 cat conftest.err >&5
68f2de6d 4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4961 (exit $ac_status); } && {
4962 test -z "$ac_c_werror_flag" ||
4963 test ! -s conftest.err
4964 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4965 ac_header_compiler=yes
4966else
68f2de6d 4967 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4968sed 's/^/| /' conftest.$ac_ext >&5
4969
7a197a62 4970 ac_header_compiler=no
ad6254c5 4971fi
7a197a62
AK
4972
4973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
4974{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4975echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4976
4977# Is the header present?
68f2de6d
AK
4978{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4979echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4980cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4981/* confdefs.h. */
4982_ACEOF
4983cat confdefs.h >>conftest.$ac_ext
4984cat >>conftest.$ac_ext <<_ACEOF
4985/* end confdefs.h. */
4986#include <$ac_header>
4987_ACEOF
7a197a62
AK
4988if { (ac_try="$ac_cpp conftest.$ac_ext"
4989case "(($ac_try" in
4990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991 *) ac_try_echo=$ac_try;;
4992esac
68f2de6d 4993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4995 ac_status=$?
4996 grep -v '^ *+' conftest.er1 >conftest.err
4997 rm -f conftest.er1
4998 cat conftest.err >&5
68f2de6d 4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5000 (exit $ac_status); } >/dev/null && {
5001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5002 test ! -s conftest.err
5003 }; then
ad6254c5
AK
5004 ac_header_preproc=yes
5005else
68f2de6d 5006 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5007sed 's/^/| /' conftest.$ac_ext >&5
5008
5009 ac_header_preproc=no
5010fi
7a197a62 5011
ad6254c5 5012rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
5013{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5014echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
5015
5016# So? What about this header?
8a2fc586
AK
5017case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5018 yes:no: )
68f2de6d
AK
5019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5020echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5022echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5023 ac_header_preproc=yes
ad6254c5 5024 ;;
8a2fc586 5025 no:yes:* )
68f2de6d
AK
5026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5027echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5029echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5031echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5033echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5035echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5037echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5038
ad6254c5
AK
5039 ;;
5040esac
68f2de6d
AK
5041{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 5043if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 5044 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5045else
8a2fc586 5046 eval "$as_ac_Header=\$ac_header_preproc"
80992638 5047fi
68f2de6d
AK
5048ac_res=`eval echo '${'$as_ac_Header'}'`
5049 { echo "$as_me:$LINENO: result: $ac_res" >&5
5050echo "${ECHO_T}$ac_res" >&6; }
80992638 5051
ad6254c5 5052fi
68f2de6d 5053if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 5054 cat >>confdefs.h <<_ACEOF
68f2de6d 5055#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5056_ACEOF
795ca3e5 5057
795ca3e5 5058else
68f2de6d
AK
5059 { { echo "$as_me:$LINENO: error: bailing out" >&5
5060echo "$as_me: error: bailing out" >&2;}
ad6254c5 5061 { (exit 1); exit 1; }; }
80992638
AK
5062fi
5063
ad6254c5 5064done
ad6254c5 5065
795ca3e5 5066
d0191583
JM
5067
5068for ac_header in termios.h sys/statvfs.h
ad6254c5 5069do
68f2de6d 5070as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5071if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
5072 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 5074if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 5075 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5076fi
68f2de6d
AK
5077ac_res=`eval echo '${'$as_ac_Header'}'`
5078 { echo "$as_me:$LINENO: result: $ac_res" >&5
5079echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
5080else
5081 # Is the header compilable?
68f2de6d
AK
5082{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5083echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 5084cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5085/* confdefs.h. */
5086_ACEOF
5087cat confdefs.h >>conftest.$ac_ext
5088cat >>conftest.$ac_ext <<_ACEOF
5089/* end confdefs.h. */
5090$ac_includes_default
5091#include <$ac_header>
5092_ACEOF
5093rm -f conftest.$ac_objext
7a197a62
AK
5094if { (ac_try="$ac_compile"
5095case "(($ac_try" in
5096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5097 *) ac_try_echo=$ac_try;;
5098esac
68f2de6d 5099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5100 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5101 ac_status=$?
8a2fc586
AK
5102 grep -v '^ *+' conftest.er1 >conftest.err
5103 rm -f conftest.er1
5104 cat conftest.err >&5
68f2de6d 5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5106 (exit $ac_status); } && {
5107 test -z "$ac_c_werror_flag" ||
5108 test ! -s conftest.err
5109 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5110 ac_header_compiler=yes
5111else
68f2de6d 5112 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5113sed 's/^/| /' conftest.$ac_ext >&5
5114
7a197a62 5115 ac_header_compiler=no
ad6254c5 5116fi
7a197a62
AK
5117
5118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
5119{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5120echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
5121
5122# Is the header present?
68f2de6d
AK
5123{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5124echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 5125cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5126/* confdefs.h. */
5127_ACEOF
5128cat confdefs.h >>conftest.$ac_ext
5129cat >>conftest.$ac_ext <<_ACEOF
5130/* end confdefs.h. */
5131#include <$ac_header>
5132_ACEOF
7a197a62
AK
5133if { (ac_try="$ac_cpp conftest.$ac_ext"
5134case "(($ac_try" in
5135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136 *) ac_try_echo=$ac_try;;
5137esac
68f2de6d 5138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5140 ac_status=$?
5141 grep -v '^ *+' conftest.er1 >conftest.err
5142 rm -f conftest.er1
5143 cat conftest.err >&5
68f2de6d 5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5145 (exit $ac_status); } >/dev/null && {
5146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5147 test ! -s conftest.err
5148 }; then
ad6254c5
AK
5149 ac_header_preproc=yes
5150else
68f2de6d 5151 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5152sed 's/^/| /' conftest.$ac_ext >&5
5153
5154 ac_header_preproc=no
5155fi
7a197a62 5156
ad6254c5 5157rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
5158{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5159echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
5160
5161# So? What about this header?
8a2fc586
AK
5162case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5163 yes:no: )
68f2de6d
AK
5164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5165echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5167echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5168 ac_header_preproc=yes
ad6254c5 5169 ;;
8a2fc586 5170 no:yes:* )
68f2de6d
AK
5171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5172echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5174echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5176echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5178echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5180echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5182echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5183
ad6254c5
AK
5184 ;;
5185esac
68f2de6d
AK
5186{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 5188if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 5189 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5190else
8a2fc586 5191 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5192fi
68f2de6d
AK
5193ac_res=`eval echo '${'$as_ac_Header'}'`
5194 { echo "$as_me:$LINENO: result: $ac_res" >&5
5195echo "${ECHO_T}$ac_res" >&6; }
b896caa1 5196
ad6254c5 5197fi
68f2de6d 5198if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 5199 cat >>confdefs.h <<_ACEOF
68f2de6d 5200#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5201_ACEOF
5202
80992638
AK
5203fi
5204
ad6254c5 5205done
d0191583 5206
d3c8211f 5207
80992638 5208################################################################################
68f2de6d
AK
5209{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5210echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
ad6254c5 5211if test "${ac_cv_c_const+set}" = set; then
68f2de6d 5212 echo $ECHO_N "(cached) $ECHO_C" >&6
d3c8211f 5213else
ad6254c5 5214 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5215/* confdefs.h. */
5216_ACEOF
5217cat confdefs.h >>conftest.$ac_ext
5218cat >>conftest.$ac_ext <<_ACEOF
5219/* end confdefs.h. */
5220
5221int
5222main ()
5223{
5224/* FIXME: Include the comments suggested by Paul. */
5225#ifndef __cplusplus
5226 /* Ultrix mips cc rejects this. */
5227 typedef int charset[2];
25fbec5b 5228 const charset cs;
ad6254c5 5229 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
5230 char const *const *pcpcc;
5231 char **ppc;
ad6254c5
AK
5232 /* NEC SVR4.0.2 mips cc rejects this. */
5233 struct point {int x, y;};
5234 static struct point const zero = {0,0};
5235 /* AIX XL C 1.02.0.0 rejects this.
5236 It does not let you subtract one const X* pointer from another in
5237 an arm of an if-expression whose if-part is not a constant
5238 expression */
5239 const char *g = "string";
25fbec5b 5240 pcpcc = &g + (g ? g-g : 0);
ad6254c5 5241 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
5242 ++pcpcc;
5243 ppc = (char**) pcpcc;
5244 pcpcc = (char const *const *) ppc;
ad6254c5
AK
5245 { /* SCO 3.2v4 cc rejects this. */
5246 char *t;
5247 char const *s = 0 ? (char *) 0 : (char const *) 0;
5248
5249 *t++ = 0;
7a197a62 5250 if (s) return 0;
ad6254c5
AK
5251 }
5252 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5253 int x[] = {25, 17};
5254 const int *foo = &x[0];
5255 ++foo;
5256 }
5257 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5258 typedef const int *iptr;
5259 iptr p = 0;
5260 ++p;
5261 }
5262 { /* AIX XL C 1.02.0.0 rejects this saying
5263 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5264 struct s { int j; const int *ap[3]; };
5265 struct s *b; b->j = 5;
5266 }
5267 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5268 const int foo = 10;
7a197a62 5269 if (!foo) return 0;
ad6254c5 5270 }
25fbec5b 5271 return !cs[0] && !zero.x;
ad6254c5
AK
5272#endif
5273
5274 ;
5275 return 0;
5276}
5277_ACEOF
5278rm -f conftest.$ac_objext
7a197a62
AK
5279if { (ac_try="$ac_compile"
5280case "(($ac_try" in
5281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282 *) ac_try_echo=$ac_try;;
5283esac
68f2de6d 5284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5285 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5286 ac_status=$?
8a2fc586
AK
5287 grep -v '^ *+' conftest.er1 >conftest.err
5288 rm -f conftest.er1
5289 cat conftest.err >&5
68f2de6d 5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5291 (exit $ac_status); } && {
5292 test -z "$ac_c_werror_flag" ||
5293 test ! -s conftest.err
5294 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5295 ac_cv_c_const=yes
5296else
68f2de6d 5297 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5298sed 's/^/| /' conftest.$ac_ext >&5
5299
7a197a62 5300 ac_cv_c_const=no
ad6254c5 5301fi
7a197a62
AK
5302
5303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5304fi
68f2de6d
AK
5305{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5306echo "${ECHO_T}$ac_cv_c_const" >&6; }
ad6254c5 5307if test $ac_cv_c_const = no; then
80992638 5308
ad6254c5 5309cat >>confdefs.h <<\_ACEOF
68f2de6d 5310#define const
ad6254c5 5311_ACEOF
80992638 5312
d3c8211f 5313fi
d3c8211f 5314
68f2de6d
AK
5315{ echo "$as_me:$LINENO: checking for inline" >&5
5316echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
ad6254c5 5317if test "${ac_cv_c_inline+set}" = set; then
68f2de6d 5318 echo $ECHO_N "(cached) $ECHO_C" >&6
8ef2b021 5319else
ad6254c5
AK
5320 ac_cv_c_inline=no
5321for ac_kw in inline __inline__ __inline; do
5322 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5323/* confdefs.h. */
5324_ACEOF
5325cat confdefs.h >>conftest.$ac_ext
5326cat >>conftest.$ac_ext <<_ACEOF
5327/* end confdefs.h. */
5328#ifndef __cplusplus
5329typedef int foo_t;
5330static $ac_kw foo_t static_foo () {return 0; }
5331$ac_kw foo_t foo () {return 0; }
5332#endif
80992638 5333
ad6254c5
AK
5334_ACEOF
5335rm -f conftest.$ac_objext
7a197a62
AK
5336if { (ac_try="$ac_compile"
5337case "(($ac_try" in
5338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339 *) ac_try_echo=$ac_try;;
5340esac
68f2de6d 5341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5342 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5343 ac_status=$?
8a2fc586
AK
5344 grep -v '^ *+' conftest.er1 >conftest.err
5345 rm -f conftest.er1
5346 cat conftest.err >&5
68f2de6d 5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5348 (exit $ac_status); } && {
5349 test -z "$ac_c_werror_flag" ||
5350 test ! -s conftest.err
5351 } && test -s conftest.$ac_objext; then
7a197a62 5352 ac_cv_c_inline=$ac_kw
ad6254c5 5353else
68f2de6d 5354 echo "$as_me: failed program was:" >&5
ad6254c5 5355sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5356
7a197a62 5357
8ce0cbda 5358fi
7a197a62
AK
5359
5360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5361 test "$ac_cv_c_inline" != no && break
ad6254c5 5362done
8ce0cbda 5363
8ce0cbda 5364fi
68f2de6d
AK
5365{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5366echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8a2fc586
AK
5367
5368
ad6254c5
AK
5369case $ac_cv_c_inline in
5370 inline | yes) ;;
8a2fc586
AK
5371 *)
5372 case $ac_cv_c_inline in
5373 no) ac_val=;;
5374 *) ac_val=$ac_cv_c_inline;;
5375 esac
5376 cat >>confdefs.h <<_ACEOF
5377#ifndef __cplusplus
5378#define inline $ac_val
5379#endif
c1c065a3 5380_ACEOF
d0191583
JM
5381 ;;
5382esac
5383
68f2de6d
AK
5384{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5385echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
d0191583 5386if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
68f2de6d 5387 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
5388else
5389 cat >conftest.$ac_ext <<_ACEOF
5390/* confdefs.h. */
5391_ACEOF
5392cat confdefs.h >>conftest.$ac_ext
5393cat >>conftest.$ac_ext <<_ACEOF
5394/* end confdefs.h. */
5395$ac_includes_default
5396int
5397main ()
5398{
5399static struct stat ac_aggr;
5400if (ac_aggr.st_rdev)
5401return 0;
5402 ;
5403 return 0;
5404}
5405_ACEOF
5406rm -f conftest.$ac_objext
5407if { (ac_try="$ac_compile"
5408case "(($ac_try" in
5409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5410 *) ac_try_echo=$ac_try;;
5411esac
68f2de6d 5412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
5413 (eval "$ac_compile") 2>conftest.er1
5414 ac_status=$?
5415 grep -v '^ *+' conftest.er1 >conftest.err
5416 rm -f conftest.er1
5417 cat conftest.err >&5
68f2de6d 5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5419 (exit $ac_status); } && {
5420 test -z "$ac_c_werror_flag" ||
5421 test ! -s conftest.err
5422 } && test -s conftest.$ac_objext; then
5423 ac_cv_member_struct_stat_st_rdev=yes
5424else
68f2de6d 5425 echo "$as_me: failed program was:" >&5
d0191583
JM
5426sed 's/^/| /' conftest.$ac_ext >&5
5427
5428 cat >conftest.$ac_ext <<_ACEOF
5429/* confdefs.h. */
5430_ACEOF
5431cat confdefs.h >>conftest.$ac_ext
5432cat >>conftest.$ac_ext <<_ACEOF
5433/* end confdefs.h. */
5434$ac_includes_default
5435int
5436main ()
5437{
5438static struct stat ac_aggr;
5439if (sizeof ac_aggr.st_rdev)
5440return 0;
5441 ;
5442 return 0;
5443}
5444_ACEOF
5445rm -f conftest.$ac_objext
5446if { (ac_try="$ac_compile"
5447case "(($ac_try" in
5448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449 *) ac_try_echo=$ac_try;;
5450esac
68f2de6d 5451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
5452 (eval "$ac_compile") 2>conftest.er1
5453 ac_status=$?
5454 grep -v '^ *+' conftest.er1 >conftest.err
5455 rm -f conftest.er1
5456 cat conftest.err >&5
68f2de6d 5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5458 (exit $ac_status); } && {
5459 test -z "$ac_c_werror_flag" ||
5460 test ! -s conftest.err
5461 } && test -s conftest.$ac_objext; then
5462 ac_cv_member_struct_stat_st_rdev=yes
5463else
68f2de6d 5464 echo "$as_me: failed program was:" >&5
d0191583
JM
5465sed 's/^/| /' conftest.$ac_ext >&5
5466
5467 ac_cv_member_struct_stat_st_rdev=no
5468fi
5469
5470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471fi
5472
5473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5474fi
68f2de6d
AK
5475{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5476echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
d0191583
JM
5477if test $ac_cv_member_struct_stat_st_rdev = yes; then
5478
5479cat >>confdefs.h <<_ACEOF
5480#define HAVE_STRUCT_STAT_ST_RDEV 1
5481_ACEOF
5482
5483
5484fi
8ce0cbda 5485
68f2de6d
AK
5486{ echo "$as_me:$LINENO: checking for off_t" >&5
5487echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
ad6254c5 5488if test "${ac_cv_type_off_t+set}" = set; then
68f2de6d 5489 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5490else
b145d876
ZK
5491 cat >conftest.$ac_ext <<_ACEOF
5492/* confdefs.h. */
5493_ACEOF
5494cat confdefs.h >>conftest.$ac_ext
5495cat >>conftest.$ac_ext <<_ACEOF
5496/* end confdefs.h. */
5497$ac_includes_default
68f2de6d 5498typedef off_t ac__type_new_;
b145d876
ZK
5499int
5500main ()
5501{
68f2de6d
AK
5502if ((ac__type_new_ *) 0)
5503 return 0;
5504if (sizeof (ac__type_new_))
5505 return 0;
ad6254c5
AK
5506 ;
5507 return 0;
5508}
5509_ACEOF
5510rm -f conftest.$ac_objext
7a197a62
AK
5511if { (ac_try="$ac_compile"
5512case "(($ac_try" in
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5515esac
68f2de6d 5516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5517 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5518 ac_status=$?
8a2fc586
AK
5519 grep -v '^ *+' conftest.er1 >conftest.err
5520 rm -f conftest.er1
5521 cat conftest.err >&5
68f2de6d 5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5523 (exit $ac_status); } && {
5524 test -z "$ac_c_werror_flag" ||
5525 test ! -s conftest.err
5526 } && test -s conftest.$ac_objext; then
68f2de6d 5527 ac_cv_type_off_t=yes
b145d876 5528else
68f2de6d 5529 echo "$as_me: failed program was:" >&5
b145d876
ZK
5530sed 's/^/| /' conftest.$ac_ext >&5
5531
68f2de6d 5532 ac_cv_type_off_t=no
ad6254c5 5533fi
b145d876
ZK
5534
5535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536fi
68f2de6d
AK
5537{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5538echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
ad6254c5
AK
5539if test $ac_cv_type_off_t = yes; then
5540 :
5541else
80992638 5542
ad6254c5 5543cat >>confdefs.h <<_ACEOF
7a197a62 5544#define off_t long int
ad6254c5 5545_ACEOF
199e490e 5546
b896caa1
AK
5547fi
5548
68f2de6d
AK
5549{ echo "$as_me:$LINENO: checking for pid_t" >&5
5550echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
ad6254c5 5551if test "${ac_cv_type_pid_t+set}" = set; then
68f2de6d 5552 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5553else
b145d876
ZK
5554 cat >conftest.$ac_ext <<_ACEOF
5555/* confdefs.h. */
5556_ACEOF
5557cat confdefs.h >>conftest.$ac_ext
5558cat >>conftest.$ac_ext <<_ACEOF
5559/* end confdefs.h. */
5560$ac_includes_default
68f2de6d 5561typedef pid_t ac__type_new_;
b145d876
ZK
5562int
5563main ()
5564{
68f2de6d
AK
5565if ((ac__type_new_ *) 0)
5566 return 0;
5567if (sizeof (ac__type_new_))
5568 return 0;
ad6254c5
AK
5569 ;
5570 return 0;
5571}
5572_ACEOF
5573rm -f conftest.$ac_objext
7a197a62
AK
5574if { (ac_try="$ac_compile"
5575case "(($ac_try" in
5576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5577 *) ac_try_echo=$ac_try;;
5578esac
68f2de6d 5579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5580 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5581 ac_status=$?
8a2fc586
AK
5582 grep -v '^ *+' conftest.er1 >conftest.err
5583 rm -f conftest.er1
5584 cat conftest.err >&5
68f2de6d 5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5586 (exit $ac_status); } && {
5587 test -z "$ac_c_werror_flag" ||
5588 test ! -s conftest.err
5589 } && test -s conftest.$ac_objext; then
68f2de6d 5590 ac_cv_type_pid_t=yes
ad6254c5 5591else
68f2de6d 5592 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5593sed 's/^/| /' conftest.$ac_ext >&5
5594
68f2de6d 5595 ac_cv_type_pid_t=no
ad6254c5 5596fi
7a197a62
AK
5597
5598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5599fi
68f2de6d
AK
5600{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5601echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
ad6254c5
AK
5602if test $ac_cv_type_pid_t = yes; then
5603 :
5604else
80992638 5605
ad6254c5
AK
5606cat >>confdefs.h <<_ACEOF
5607#define pid_t int
5608_ACEOF
2dc95e1c 5609
2dc95e1c
AK
5610fi
5611
68f2de6d
AK
5612{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5613echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
d0191583 5614if test "${ac_cv_type_signal+set}" = set; then
68f2de6d 5615 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
5616else
5617 cat >conftest.$ac_ext <<_ACEOF
5618/* confdefs.h. */
5619_ACEOF
5620cat confdefs.h >>conftest.$ac_ext
5621cat >>conftest.$ac_ext <<_ACEOF
5622/* end confdefs.h. */
5623#include <sys/types.h>
5624#include <signal.h>
5625
5626int
5627main ()
5628{
5629return *(signal (0, 0)) (0) == 1;
5630 ;
5631 return 0;
5632}
5633_ACEOF
5634rm -f conftest.$ac_objext
5635if { (ac_try="$ac_compile"
5636case "(($ac_try" in
5637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638 *) ac_try_echo=$ac_try;;
5639esac
68f2de6d 5640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
5641 (eval "$ac_compile") 2>conftest.er1
5642 ac_status=$?
5643 grep -v '^ *+' conftest.er1 >conftest.err
5644 rm -f conftest.er1
5645 cat conftest.err >&5
68f2de6d 5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5647 (exit $ac_status); } && {
5648 test -z "$ac_c_werror_flag" ||
5649 test ! -s conftest.err
5650 } && test -s conftest.$ac_objext; then
5651 ac_cv_type_signal=int
5652else
68f2de6d 5653 echo "$as_me: failed program was:" >&5
d0191583
JM
5654sed 's/^/| /' conftest.$ac_ext >&5
5655
5656 ac_cv_type_signal=void
5657fi
5658
5659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5660fi
68f2de6d
AK
5661{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5662echo "${ECHO_T}$ac_cv_type_signal" >&6; }
d0191583
JM
5663
5664cat >>confdefs.h <<_ACEOF
5665#define RETSIGTYPE $ac_cv_type_signal
5666_ACEOF
5667
5668
68f2de6d
AK
5669{ echo "$as_me:$LINENO: checking for size_t" >&5
5670echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
ad6254c5 5671if test "${ac_cv_type_size_t+set}" = set; then
68f2de6d 5672 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 5673else
b145d876
ZK
5674 cat >conftest.$ac_ext <<_ACEOF
5675/* confdefs.h. */
5676_ACEOF
5677cat confdefs.h >>conftest.$ac_ext
5678cat >>conftest.$ac_ext <<_ACEOF
5679/* end confdefs.h. */
5680$ac_includes_default
68f2de6d 5681typedef size_t ac__type_new_;
b145d876
ZK
5682int
5683main ()
5684{
68f2de6d
AK
5685if ((ac__type_new_ *) 0)
5686 return 0;
5687if (sizeof (ac__type_new_))
5688 return 0;
ad6254c5
AK
5689 ;
5690 return 0;
5691}
5692_ACEOF
5693rm -f conftest.$ac_objext
7a197a62
AK
5694if { (ac_try="$ac_compile"
5695case "(($ac_try" in
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5698esac
68f2de6d 5699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5700 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5701 ac_status=$?
8a2fc586
AK
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
68f2de6d 5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5706 (exit $ac_status); } && {
5707 test -z "$ac_c_werror_flag" ||
5708 test ! -s conftest.err
5709 } && test -s conftest.$ac_objext; then
68f2de6d 5710 ac_cv_type_size_t=yes
b145d876 5711else
68f2de6d 5712 echo "$as_me: failed program was:" >&5
b145d876
ZK
5713sed 's/^/| /' conftest.$ac_ext >&5
5714
68f2de6d 5715 ac_cv_type_size_t=no
ad6254c5 5716fi
b145d876
ZK
5717
5718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5719fi
68f2de6d
AK
5720{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5721echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
ad6254c5
AK
5722if test $ac_cv_type_size_t = yes; then
5723 :
5724else
80992638 5725
ad6254c5 5726cat >>confdefs.h <<_ACEOF
7a197a62 5727#define size_t unsigned int
ad6254c5 5728_ACEOF
8106cdd5 5729
8106cdd5
AK
5730fi
5731
68f2de6d
AK
5732{ echo "$as_me:$LINENO: checking for mode_t" >&5
5733echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
ad6254c5 5734if test "${ac_cv_type_mode_t+set}" = set; then
68f2de6d 5735 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5736else
b145d876
ZK
5737 cat >conftest.$ac_ext <<_ACEOF
5738/* confdefs.h. */
5739_ACEOF
5740cat confdefs.h >>conftest.$ac_ext
5741cat >>conftest.$ac_ext <<_ACEOF
5742/* end confdefs.h. */
5743$ac_includes_default
68f2de6d 5744typedef mode_t ac__type_new_;
b145d876
ZK
5745int
5746main ()
5747{
68f2de6d
AK
5748if ((ac__type_new_ *) 0)
5749 return 0;
5750if (sizeof (ac__type_new_))
5751 return 0;
ad6254c5
AK
5752 ;
5753 return 0;
5754}
5755_ACEOF
5756rm -f conftest.$ac_objext
7a197a62
AK
5757if { (ac_try="$ac_compile"
5758case "(($ac_try" in
5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760 *) ac_try_echo=$ac_try;;
5761esac
68f2de6d 5762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5763 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5764 ac_status=$?
8a2fc586
AK
5765 grep -v '^ *+' conftest.er1 >conftest.err
5766 rm -f conftest.er1
5767 cat conftest.err >&5
68f2de6d 5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5769 (exit $ac_status); } && {
5770 test -z "$ac_c_werror_flag" ||
5771 test ! -s conftest.err
5772 } && test -s conftest.$ac_objext; then
68f2de6d 5773 ac_cv_type_mode_t=yes
fddafd51 5774else
68f2de6d 5775 echo "$as_me: failed program was:" >&5
fddafd51
ZK
5776sed 's/^/| /' conftest.$ac_ext >&5
5777
68f2de6d 5778 ac_cv_type_mode_t=no
80992638 5779fi
7a197a62
AK
5780
5781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5782fi
68f2de6d
AK
5783{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5784echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
ad6254c5
AK
5785if test $ac_cv_type_mode_t = yes; then
5786 :
5787else
80992638 5788
ad6254c5
AK
5789cat >>confdefs.h <<_ACEOF
5790#define mode_t int
5791_ACEOF
5792
5793fi
5794
68f2de6d
AK
5795{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5796echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
ad6254c5 5797if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
68f2de6d 5798 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5799else
5800 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5801/* confdefs.h. */
5802_ACEOF
5803cat confdefs.h >>conftest.$ac_ext
5804cat >>conftest.$ac_ext <<_ACEOF
5805/* end confdefs.h. */
5806$ac_includes_default
5807int
5808main ()
5809{
5810static struct stat ac_aggr;
5811if (ac_aggr.st_rdev)
5812return 0;
5813 ;
5814 return 0;
5815}
5816_ACEOF
5817rm -f conftest.$ac_objext
7a197a62
AK
5818if { (ac_try="$ac_compile"
5819case "(($ac_try" in
5820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5821 *) ac_try_echo=$ac_try;;
5822esac
68f2de6d 5823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5824 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5825 ac_status=$?
8a2fc586
AK
5826 grep -v '^ *+' conftest.er1 >conftest.err
5827 rm -f conftest.er1
5828 cat conftest.err >&5
68f2de6d 5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5830 (exit $ac_status); } && {
5831 test -z "$ac_c_werror_flag" ||
5832 test ! -s conftest.err
5833 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5834 ac_cv_member_struct_stat_st_rdev=yes
5835else
68f2de6d 5836 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5837sed 's/^/| /' conftest.$ac_ext >&5
5838
7a197a62 5839 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5840/* confdefs.h. */
5841_ACEOF
5842cat confdefs.h >>conftest.$ac_ext
5843cat >>conftest.$ac_ext <<_ACEOF
5844/* end confdefs.h. */
5845$ac_includes_default
5846int
5847main ()
5848{
5849static struct stat ac_aggr;
5850if (sizeof ac_aggr.st_rdev)
5851return 0;
5852 ;
5853 return 0;
5854}
5855_ACEOF
5856rm -f conftest.$ac_objext
7a197a62
AK
5857if { (ac_try="$ac_compile"
5858case "(($ac_try" in
5859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5860 *) ac_try_echo=$ac_try;;
5861esac
68f2de6d 5862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5863 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5864 ac_status=$?
8a2fc586
AK
5865 grep -v '^ *+' conftest.er1 >conftest.err
5866 rm -f conftest.er1
5867 cat conftest.err >&5
68f2de6d 5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5869 (exit $ac_status); } && {
5870 test -z "$ac_c_werror_flag" ||
5871 test ! -s conftest.err
5872 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5873 ac_cv_member_struct_stat_st_rdev=yes
5874else
68f2de6d 5875 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5876sed 's/^/| /' conftest.$ac_ext >&5
5877
7a197a62 5878 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 5879fi
7a197a62
AK
5880
5881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5882fi
7a197a62
AK
5883
5884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5885fi
68f2de6d
AK
5886{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5887echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
ad6254c5
AK
5888if test $ac_cv_member_struct_stat_st_rdev = yes; then
5889
5890cat >>confdefs.h <<_ACEOF
5891#define HAVE_STRUCT_STAT_ST_RDEV 1
5892_ACEOF
5893
5894
ad6254c5
AK
5895fi
5896
68f2de6d
AK
5897{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5898echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
ad6254c5 5899if test "${ac_cv_struct_tm+set}" = set; then
68f2de6d 5900 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5901else
5902 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5903/* confdefs.h. */
5904_ACEOF
5905cat confdefs.h >>conftest.$ac_ext
5906cat >>conftest.$ac_ext <<_ACEOF
5907/* end confdefs.h. */
5908#include <sys/types.h>
5909#include <time.h>
5910
5911int
5912main ()
5913{
25fbec5b
AK
5914struct tm tm;
5915 int *p = &tm.tm_sec;
68f2de6d 5916 return !p;
ad6254c5
AK
5917 ;
5918 return 0;
5919}
5920_ACEOF
5921rm -f conftest.$ac_objext
7a197a62
AK
5922if { (ac_try="$ac_compile"
5923case "(($ac_try" in
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5926esac
68f2de6d 5927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5928 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5929 ac_status=$?
8a2fc586
AK
5930 grep -v '^ *+' conftest.er1 >conftest.err
5931 rm -f conftest.er1
5932 cat conftest.err >&5
68f2de6d 5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5934 (exit $ac_status); } && {
5935 test -z "$ac_c_werror_flag" ||
5936 test ! -s conftest.err
5937 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5938 ac_cv_struct_tm=time.h
5939else
68f2de6d 5940 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5941sed 's/^/| /' conftest.$ac_ext >&5
5942
7a197a62 5943 ac_cv_struct_tm=sys/time.h
ad6254c5 5944fi
7a197a62
AK
5945
5946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5947fi
68f2de6d
AK
5948{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5949echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
ad6254c5
AK
5950if test $ac_cv_struct_tm = sys/time.h; then
5951
5952cat >>confdefs.h <<\_ACEOF
5953#define TM_IN_SYS_TIME 1
5954_ACEOF
5955
5956fi
809fae91 5957
795ca3e5 5958
80992638 5959################################################################################
ad6254c5
AK
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
d0191583
JM
5974
5975
5976
5977for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
5978 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
5979 uname
ad6254c5 5980do
68f2de6d
AK
5981as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5982{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5983echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 5984if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 5985 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 5986else
ad6254c5 5987 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5988/* confdefs.h. */
5989_ACEOF
5990cat confdefs.h >>conftest.$ac_ext
5991cat >>conftest.$ac_ext <<_ACEOF
5992/* end confdefs.h. */
8a2fc586
AK
5993/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5995#define $ac_func innocuous_$ac_func
5996
ad6254c5
AK
5997/* System header to define __stub macros and hopefully few prototypes,
5998 which can conflict with char $ac_func (); below.
5999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6000 <limits.h> exists even on freestanding compilers. */
8a2fc586 6001
ad6254c5
AK
6002#ifdef __STDC__
6003# include <limits.h>
6004#else
6005# include <assert.h>
6006#endif
8a2fc586
AK
6007
6008#undef $ac_func
6009
7a197a62
AK
6010/* Override any GCC internal prototype to avoid an error.
6011 Use char because int might match the return type of a GCC
6012 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6013#ifdef __cplusplus
6014extern "C"
ad6254c5 6015#endif
ad6254c5
AK
6016char $ac_func ();
6017/* The GNU C library defines this for functions which it implements
6018 to always fail with ENOSYS. Some functions are actually named
6019 something starting with __ and the normal name is an alias. */
7a197a62 6020#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6021choke me
ad6254c5
AK
6022#endif
6023
6024int
6025main ()
6026{
7a197a62 6027return $ac_func ();
ad6254c5
AK
6028 ;
6029 return 0;
6030}
6031_ACEOF
6032rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6033if { (ac_try="$ac_link"
6034case "(($ac_try" in
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6037esac
68f2de6d 6038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6039 (eval "$ac_link") 2>conftest.er1
ad6254c5 6040 ac_status=$?
8a2fc586
AK
6041 grep -v '^ *+' conftest.er1 >conftest.err
6042 rm -f conftest.er1
6043 cat conftest.err >&5
68f2de6d 6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6045 (exit $ac_status); } && {
6046 test -z "$ac_c_werror_flag" ||
6047 test ! -s conftest.err
68f2de6d
AK
6048 } && test -s conftest$ac_exeext &&
6049 $as_test_x conftest$ac_exeext; then
fc54be10
AK
6050 eval "$as_ac_var=yes"
6051else
68f2de6d 6052 echo "$as_me: failed program was:" >&5
fc54be10
AK
6053sed 's/^/| /' conftest.$ac_ext >&5
6054
6055 eval "$as_ac_var=no"
6056fi
6057
25fbec5b 6058rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
6059 conftest$ac_exeext conftest.$ac_ext
6060fi
68f2de6d
AK
6061ac_res=`eval echo '${'$as_ac_var'}'`
6062 { echo "$as_me:$LINENO: result: $ac_res" >&5
6063echo "${ECHO_T}$ac_res" >&6; }
6064if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 6065 cat >>confdefs.h <<_ACEOF
68f2de6d 6066#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6067_ACEOF
6068
6069else
68f2de6d
AK
6070 { { echo "$as_me:$LINENO: error: bailing out" >&5
6071echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
6072 { (exit 1); exit 1; }; }
6073fi
6074done
795ca3e5 6075
ad6254c5
AK
6076# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6077# for constant arguments. Useless!
68f2de6d
AK
6078{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
6079echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
ad6254c5 6080if test "${ac_cv_working_alloca_h+set}" = set; then
68f2de6d 6081 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6082else
6083 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6084/* confdefs.h. */
6085_ACEOF
6086cat confdefs.h >>conftest.$ac_ext
6087cat >>conftest.$ac_ext <<_ACEOF
6088/* end confdefs.h. */
6089#include <alloca.h>
6090int
6091main ()
6092{
6093char *p = (char *) alloca (2 * sizeof (int));
7a197a62 6094 if (p) return 0;
ad6254c5
AK
6095 ;
6096 return 0;
6097}
6098_ACEOF
6099rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6100if { (ac_try="$ac_link"
6101case "(($ac_try" in
6102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103 *) ac_try_echo=$ac_try;;
6104esac
68f2de6d 6105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6106 (eval "$ac_link") 2>conftest.er1
ad6254c5 6107 ac_status=$?
8a2fc586
AK
6108 grep -v '^ *+' conftest.er1 >conftest.err
6109 rm -f conftest.er1
6110 cat conftest.err >&5
68f2de6d 6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6112 (exit $ac_status); } && {
6113 test -z "$ac_c_werror_flag" ||
6114 test ! -s conftest.err
68f2de6d
AK
6115 } && test -s conftest$ac_exeext &&
6116 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
6117 ac_cv_working_alloca_h=yes
6118else
68f2de6d 6119 echo "$as_me: failed program was:" >&5
ad6254c5 6120sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 6121
7a197a62 6122 ac_cv_working_alloca_h=no
ad6254c5 6123fi
7a197a62 6124
25fbec5b 6125rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6126 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6127fi
68f2de6d
AK
6128{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6129echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
6130if test $ac_cv_working_alloca_h = yes; then
6131
6132cat >>confdefs.h <<\_ACEOF
6133#define HAVE_ALLOCA_H 1
6134_ACEOF
6135
6136fi
6137
68f2de6d
AK
6138{ echo "$as_me:$LINENO: checking for alloca" >&5
6139echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
ad6254c5 6140if test "${ac_cv_func_alloca_works+set}" = set; then
68f2de6d 6141 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6142else
6143 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6144/* confdefs.h. */
6145_ACEOF
6146cat confdefs.h >>conftest.$ac_ext
6147cat >>conftest.$ac_ext <<_ACEOF
6148/* end confdefs.h. */
6149#ifdef __GNUC__
6150# define alloca __builtin_alloca
6151#else
6152# ifdef _MSC_VER
6153# include <malloc.h>
6154# define alloca _alloca
6155# else
25fbec5b 6156# ifdef HAVE_ALLOCA_H
ad6254c5
AK
6157# include <alloca.h>
6158# else
6159# ifdef _AIX
6160 #pragma alloca
6161# else
6162# ifndef alloca /* predefined by HP cc +Olibcalls */
6163char *alloca ();
6164# endif
6165# endif
6166# endif
6167# endif
6168#endif
6169
6170int
6171main ()
6172{
6173char *p = (char *) alloca (1);
7a197a62 6174 if (p) return 0;
ad6254c5
AK
6175 ;
6176 return 0;
6177}
6178_ACEOF
6179rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6180if { (ac_try="$ac_link"
6181case "(($ac_try" in
6182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6183 *) ac_try_echo=$ac_try;;
6184esac
68f2de6d 6185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6186 (eval "$ac_link") 2>conftest.er1
ad6254c5 6187 ac_status=$?
8a2fc586
AK
6188 grep -v '^ *+' conftest.er1 >conftest.err
6189 rm -f conftest.er1
6190 cat conftest.err >&5
68f2de6d 6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6192 (exit $ac_status); } && {
6193 test -z "$ac_c_werror_flag" ||
6194 test ! -s conftest.err
68f2de6d
AK
6195 } && test -s conftest$ac_exeext &&
6196 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
6197 ac_cv_func_alloca_works=yes
6198else
68f2de6d 6199 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6200sed 's/^/| /' conftest.$ac_ext >&5
6201
7a197a62 6202 ac_cv_func_alloca_works=no
ad6254c5 6203fi
7a197a62 6204
25fbec5b 6205rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6206 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6207fi
68f2de6d
AK
6208{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6209echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6210
6211if test $ac_cv_func_alloca_works = yes; then
6212
6213cat >>confdefs.h <<\_ACEOF
6214#define HAVE_ALLOCA 1
6215_ACEOF
6216
6217else
6218 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6219# that cause trouble. Some versions do not even contain alloca or
6220# contain a buggy version. If you still want to use their alloca,
6221# use ar to extract alloca.o from them instead of compiling alloca.c.
6222
7a197a62 6223ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6224
6225cat >>confdefs.h <<\_ACEOF
6226#define C_ALLOCA 1
6227_ACEOF
6228
6229
68f2de6d
AK
6230{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6231echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
ad6254c5 6232if test "${ac_cv_os_cray+set}" = set; then
68f2de6d 6233 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6234else
6235 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6236/* confdefs.h. */
6237_ACEOF
6238cat confdefs.h >>conftest.$ac_ext
6239cat >>conftest.$ac_ext <<_ACEOF
6240/* end confdefs.h. */
7a197a62 6241#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6242webecray
6243#else
6244wenotbecray
6245#endif
6246
6247_ACEOF
795ca3e5 6248if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6249 $EGREP "webecray" >/dev/null 2>&1; then
6250 ac_cv_os_cray=yes
6251else
6252 ac_cv_os_cray=no
795ca3e5
AK
6253fi
6254rm -f conftest*
6255
795ca3e5 6256fi
68f2de6d
AK
6257{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6258echo "${ECHO_T}$ac_cv_os_cray" >&6; }
ad6254c5
AK
6259if test $ac_cv_os_cray = yes; then
6260 for ac_func in _getb67 GETB67 getb67; do
68f2de6d
AK
6261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6262{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6263echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 6264if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 6265 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6266else
6267 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6268/* confdefs.h. */
6269_ACEOF
6270cat confdefs.h >>conftest.$ac_ext
6271cat >>conftest.$ac_ext <<_ACEOF
6272/* end confdefs.h. */
8a2fc586
AK
6273/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6275#define $ac_func innocuous_$ac_func
6276
ad6254c5
AK
6277/* System header to define __stub macros and hopefully few prototypes,
6278 which can conflict with char $ac_func (); below.
6279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6280 <limits.h> exists even on freestanding compilers. */
8a2fc586 6281
ad6254c5
AK
6282#ifdef __STDC__
6283# include <limits.h>
6284#else
6285# include <assert.h>
6286#endif
8a2fc586
AK
6287
6288#undef $ac_func
6289
7a197a62
AK
6290/* Override any GCC internal prototype to avoid an error.
6291 Use char because int might match the return type of a GCC
6292 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6293#ifdef __cplusplus
6294extern "C"
ad6254c5 6295#endif
ad6254c5
AK
6296char $ac_func ();
6297/* The GNU C library defines this for functions which it implements
6298 to always fail with ENOSYS. Some functions are actually named
6299 something starting with __ and the normal name is an alias. */
7a197a62 6300#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6301choke me
ad6254c5
AK
6302#endif
6303
6304int
6305main ()
6306{
7a197a62 6307return $ac_func ();
ad6254c5
AK
6308 ;
6309 return 0;
6310}
6311_ACEOF
6312rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6313if { (ac_try="$ac_link"
6314case "(($ac_try" in
6315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6316 *) ac_try_echo=$ac_try;;
6317esac
68f2de6d 6318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6319 (eval "$ac_link") 2>conftest.er1
ad6254c5 6320 ac_status=$?
8a2fc586
AK
6321 grep -v '^ *+' conftest.er1 >conftest.err
6322 rm -f conftest.er1
6323 cat conftest.err >&5
68f2de6d 6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6325 (exit $ac_status); } && {
6326 test -z "$ac_c_werror_flag" ||
6327 test ! -s conftest.err
68f2de6d
AK
6328 } && test -s conftest$ac_exeext &&
6329 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
6330 eval "$as_ac_var=yes"
6331else
68f2de6d 6332 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6333sed 's/^/| /' conftest.$ac_ext >&5
6334
7a197a62 6335 eval "$as_ac_var=no"
ad6254c5 6336fi
7a197a62 6337
25fbec5b 6338rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6339 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6340fi
68f2de6d
AK
6341ac_res=`eval echo '${'$as_ac_var'}'`
6342 { echo "$as_me:$LINENO: result: $ac_res" >&5
6343echo "${ECHO_T}$ac_res" >&6; }
6344if test `eval echo '${'$as_ac_var'}'` = yes; then
80992638 6345
ad6254c5
AK
6346cat >>confdefs.h <<_ACEOF
6347#define CRAY_STACKSEG_END $ac_func
6348_ACEOF
6349
6350 break
6351fi
6352
6353 done
6354fi
6355
68f2de6d
AK
6356{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6357echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
ad6254c5 6358if test "${ac_cv_c_stack_direction+set}" = set; then
68f2de6d 6359 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6360else
6361 if test "$cross_compiling" = yes; then
6362 ac_cv_c_stack_direction=0
6363else
6364 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6365/* confdefs.h. */
6366_ACEOF
6367cat confdefs.h >>conftest.$ac_ext
6368cat >>conftest.$ac_ext <<_ACEOF
6369/* end confdefs.h. */
7a197a62 6370$ac_includes_default
ad6254c5
AK
6371int
6372find_stack_direction ()
6373{
6374 static char *addr = 0;
6375 auto char dummy;
6376 if (addr == 0)
6377 {
6378 addr = &dummy;
6379 return find_stack_direction ();
6380 }
6381 else
6382 return (&dummy > addr) ? 1 : -1;
6383}
6384
6385int
6386main ()
6387{
7a197a62 6388 return find_stack_direction () < 0;
ad6254c5
AK
6389}
6390_ACEOF
6391rm -f conftest$ac_exeext
7a197a62
AK
6392if { (ac_try="$ac_link"
6393case "(($ac_try" in
6394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395 *) ac_try_echo=$ac_try;;
6396esac
68f2de6d 6397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6398 (eval "$ac_link") 2>&5
ad6254c5 6399 ac_status=$?
68f2de6d 6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6402 { (case "(($ac_try" in
6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 *) ac_try_echo=$ac_try;;
6405esac
68f2de6d 6406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6407 (eval "$ac_try") 2>&5
ad6254c5 6408 ac_status=$?
68f2de6d 6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6410 (exit $ac_status); }; }; then
6411 ac_cv_c_stack_direction=1
6412else
68f2de6d
AK
6413 echo "$as_me: program exited with status $ac_status" >&5
6414echo "$as_me: failed program was:" >&5
ad6254c5
AK
6415sed 's/^/| /' conftest.$ac_ext >&5
6416
6417( exit $ac_status )
6418ac_cv_c_stack_direction=-1
6419fi
7a197a62 6420rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6421fi
7a197a62
AK
6422
6423
ad6254c5 6424fi
68f2de6d
AK
6425{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6426echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
6427
6428cat >>confdefs.h <<_ACEOF
6429#define STACK_DIRECTION $ac_cv_c_stack_direction
6430_ACEOF
6431
6432
6433fi
6434
68f2de6d
AK
6435{ echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6436echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
ad6254c5 6437if test "${ac_cv_func_closedir_void+set}" = set; then
68f2de6d 6438 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6439else
6440 if test "$cross_compiling" = yes; then
6441 ac_cv_func_closedir_void=yes
6442else
6443 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6444/* confdefs.h. */
6445_ACEOF
6446cat confdefs.h >>conftest.$ac_ext
6447cat >>conftest.$ac_ext <<_ACEOF
6448/* end confdefs.h. */
6449$ac_includes_default
6450#include <$ac_header_dirent>
6451#ifndef __cplusplus
6452int closedir ();
6453#endif
6454
6455int
6456main ()
6457{
7a197a62 6458return closedir (opendir (".")) != 0;
ad6254c5
AK
6459 ;
6460 return 0;
6461}
6462_ACEOF
6463rm -f conftest$ac_exeext
7a197a62
AK
6464if { (ac_try="$ac_link"
6465case "(($ac_try" in
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6468esac
68f2de6d 6469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6470 (eval "$ac_link") 2>&5
ad6254c5 6471 ac_status=$?
68f2de6d 6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6474 { (case "(($ac_try" in
6475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476 *) ac_try_echo=$ac_try;;
6477esac
68f2de6d 6478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6479 (eval "$ac_try") 2>&5
ad6254c5 6480 ac_status=$?
68f2de6d 6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6482 (exit $ac_status); }; }; then
6483 ac_cv_func_closedir_void=no
6484else
68f2de6d
AK
6485 echo "$as_me: program exited with status $ac_status" >&5
6486echo "$as_me: failed program was:" >&5
ad6254c5
AK
6487sed 's/^/| /' conftest.$ac_ext >&5
6488
6489( exit $ac_status )
6490ac_cv_func_closedir_void=yes
6491fi
7a197a62 6492rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6493fi
7a197a62
AK
6494
6495
ad6254c5 6496fi
68f2de6d
AK
6497{ echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6498echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
6499if test $ac_cv_func_closedir_void = yes; then
6500
6501cat >>confdefs.h <<\_ACEOF
6502#define CLOSEDIR_VOID 1
6503_ACEOF
6504
6505fi
6506
6507
7a197a62 6508for ac_header in vfork.h
ad6254c5 6509do
68f2de6d 6510as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 6511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
6512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6513echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 6514if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 6515 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 6516fi
68f2de6d
AK
6517ac_res=`eval echo '${'$as_ac_Header'}'`
6518 { echo "$as_me:$LINENO: result: $ac_res" >&5
6519echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
6520else
6521 # Is the header compilable?
68f2de6d
AK
6522{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6523echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 6524cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6525/* confdefs.h. */
6526_ACEOF
6527cat confdefs.h >>conftest.$ac_ext
6528cat >>conftest.$ac_ext <<_ACEOF
6529/* end confdefs.h. */
6530$ac_includes_default
6531#include <$ac_header>
6532_ACEOF
6533rm -f conftest.$ac_objext
7a197a62
AK
6534if { (ac_try="$ac_compile"
6535case "(($ac_try" in
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6538esac
68f2de6d 6539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6540 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6541 ac_status=$?
8a2fc586
AK
6542 grep -v '^ *+' conftest.er1 >conftest.err
6543 rm -f conftest.er1
6544 cat conftest.err >&5
68f2de6d 6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6546 (exit $ac_status); } && {
6547 test -z "$ac_c_werror_flag" ||
6548 test ! -s conftest.err
6549 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6550 ac_header_compiler=yes
6551else
68f2de6d 6552 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6553sed 's/^/| /' conftest.$ac_ext >&5
6554
7a197a62 6555 ac_header_compiler=no
ad6254c5 6556fi
7a197a62
AK
6557
6558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
6559{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6560echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
6561
6562# Is the header present?
68f2de6d
AK
6563{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6564echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 6565cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6566/* confdefs.h. */
6567_ACEOF
6568cat confdefs.h >>conftest.$ac_ext
6569cat >>conftest.$ac_ext <<_ACEOF
6570/* end confdefs.h. */
6571#include <$ac_header>
6572_ACEOF
7a197a62
AK
6573if { (ac_try="$ac_cpp conftest.$ac_ext"
6574case "(($ac_try" in
6575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576 *) ac_try_echo=$ac_try;;
6577esac
68f2de6d 6578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
6580 ac_status=$?
6581 grep -v '^ *+' conftest.er1 >conftest.err
6582 rm -f conftest.er1
6583 cat conftest.err >&5
68f2de6d 6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6585 (exit $ac_status); } >/dev/null && {
6586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6587 test ! -s conftest.err
6588 }; then
ad6254c5
AK
6589 ac_header_preproc=yes
6590else
68f2de6d 6591 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6592sed 's/^/| /' conftest.$ac_ext >&5
6593
6594 ac_header_preproc=no
6595fi
7a197a62 6596
ad6254c5 6597rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
6598{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6599echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
6600
6601# So? What about this header?
8a2fc586
AK
6602case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6603 yes:no: )
68f2de6d
AK
6604 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6605echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6607echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 6608 ac_header_preproc=yes
ad6254c5 6609 ;;
8a2fc586 6610 no:yes:* )
68f2de6d
AK
6611 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6612echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6613 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6614echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6615 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6616echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6617 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6618echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6620echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6621 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6622echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 6623
ad6254c5
AK
6624 ;;
6625esac
68f2de6d
AK
6626{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6627echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 6628if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 6629 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 6630else
8a2fc586 6631 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 6632fi
68f2de6d
AK
6633ac_res=`eval echo '${'$as_ac_Header'}'`
6634 { echo "$as_me:$LINENO: result: $ac_res" >&5
6635echo "${ECHO_T}$ac_res" >&6; }
ad6254c5 6636
795ca3e5 6637fi
68f2de6d 6638if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 6639 cat >>confdefs.h <<_ACEOF
68f2de6d 6640#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
6641_ACEOF
6642
6643fi
6644
6645done
795ca3e5 6646
ad6254c5
AK
6647
6648
6649for ac_func in fork vfork
6650do
68f2de6d
AK
6651as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6652{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6653echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 6654if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 6655 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 6656else
ad6254c5 6657 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6658/* confdefs.h. */
6659_ACEOF
6660cat confdefs.h >>conftest.$ac_ext
6661cat >>conftest.$ac_ext <<_ACEOF
6662/* end confdefs.h. */
8a2fc586
AK
6663/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6665#define $ac_func innocuous_$ac_func
6666
ad6254c5
AK
6667/* System header to define __stub macros and hopefully few prototypes,
6668 which can conflict with char $ac_func (); below.
6669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6670 <limits.h> exists even on freestanding compilers. */
8a2fc586 6671
ad6254c5
AK
6672#ifdef __STDC__
6673# include <limits.h>
6674#else
6675# include <assert.h>
795ca3e5 6676#endif
8a2fc586
AK
6677
6678#undef $ac_func
6679
7a197a62
AK
6680/* Override any GCC internal prototype to avoid an error.
6681 Use char because int might match the return type of a GCC
6682 builtin and then its argument prototype would still apply. */
795ca3e5 6683#ifdef __cplusplus
ad6254c5 6684extern "C"
ad6254c5 6685#endif
ad6254c5
AK
6686char $ac_func ();
6687/* The GNU C library defines this for functions which it implements
6688 to always fail with ENOSYS. Some functions are actually named
6689 something starting with __ and the normal name is an alias. */
7a197a62 6690#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6691choke me
795ca3e5
AK
6692#endif
6693
ad6254c5
AK
6694int
6695main ()
6696{
7a197a62 6697return $ac_func ();
ad6254c5
AK
6698 ;
6699 return 0;
6700}
6701_ACEOF
6702rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6703if { (ac_try="$ac_link"
6704case "(($ac_try" in
6705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6706 *) ac_try_echo=$ac_try;;
6707esac
68f2de6d 6708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6709 (eval "$ac_link") 2>conftest.er1
ad6254c5 6710 ac_status=$?
8a2fc586
AK
6711 grep -v '^ *+' conftest.er1 >conftest.err
6712 rm -f conftest.er1
6713 cat conftest.err >&5
68f2de6d 6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6715 (exit $ac_status); } && {
6716 test -z "$ac_c_werror_flag" ||
6717 test ! -s conftest.err
68f2de6d
AK
6718 } && test -s conftest$ac_exeext &&
6719 $as_test_x conftest$ac_exeext; then
ad6254c5 6720 eval "$as_ac_var=yes"
795ca3e5 6721else
68f2de6d 6722 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6723sed 's/^/| /' conftest.$ac_ext >&5
6724
7a197a62 6725 eval "$as_ac_var=no"
795ca3e5 6726fi
7a197a62 6727
25fbec5b 6728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6729 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6730fi
68f2de6d
AK
6731ac_res=`eval echo '${'$as_ac_var'}'`
6732 { echo "$as_me:$LINENO: result: $ac_res" >&5
6733echo "${ECHO_T}$ac_res" >&6; }
6734if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 6735 cat >>confdefs.h <<_ACEOF
68f2de6d 6736#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6737_ACEOF
6738
6739fi
6740done
6741
6742if test "x$ac_cv_func_fork" = xyes; then
68f2de6d
AK
6743 { echo "$as_me:$LINENO: checking for working fork" >&5
6744echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
ad6254c5 6745if test "${ac_cv_func_fork_works+set}" = set; then
68f2de6d 6746 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6747else
6748 if test "$cross_compiling" = yes; then
6749 ac_cv_func_fork_works=cross
6750else
6751 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
6752/* confdefs.h. */
6753_ACEOF
6754cat confdefs.h >>conftest.$ac_ext
6755cat >>conftest.$ac_ext <<_ACEOF
6756/* end confdefs.h. */
6757$ac_includes_default
6758int
6759main ()
6760{
6761
6762 /* By Ruediger Kuhlmann. */
6763 return fork () < 0;
6764
6765 ;
6766 return 0;
6767}
ad6254c5
AK
6768_ACEOF
6769rm -f conftest$ac_exeext
7a197a62
AK
6770if { (ac_try="$ac_link"
6771case "(($ac_try" in
6772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6773 *) ac_try_echo=$ac_try;;
6774esac
68f2de6d 6775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6776 (eval "$ac_link") 2>&5
ad6254c5 6777 ac_status=$?
68f2de6d 6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6780 { (case "(($ac_try" in
6781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6782 *) ac_try_echo=$ac_try;;
6783esac
68f2de6d 6784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6785 (eval "$ac_try") 2>&5
ad6254c5 6786 ac_status=$?
68f2de6d 6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6788 (exit $ac_status); }; }; then
6789 ac_cv_func_fork_works=yes
6790else
68f2de6d
AK
6791 echo "$as_me: program exited with status $ac_status" >&5
6792echo "$as_me: failed program was:" >&5
ad6254c5
AK
6793sed 's/^/| /' conftest.$ac_ext >&5
6794
6795( exit $ac_status )
6796ac_cv_func_fork_works=no
6797fi
7a197a62 6798rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6799fi
7a197a62
AK
6800
6801
ad6254c5 6802fi
68f2de6d
AK
6803{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6804echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
6805
6806else
6807 ac_cv_func_fork_works=$ac_cv_func_fork
6808fi
6809if test "x$ac_cv_func_fork_works" = xcross; then
6810 case $host in
6811 *-*-amigaos* | *-*-msdosdjgpp*)
6812 # Override, as these systems have only a dummy fork() stub
6813 ac_cv_func_fork_works=no
6814 ;;
6815 *)
6816 ac_cv_func_fork_works=yes
6817 ;;
6818 esac
68f2de6d
AK
6819 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6820echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
6821fi
6822ac_cv_func_vfork_works=$ac_cv_func_vfork
6823if test "x$ac_cv_func_vfork" = xyes; then
68f2de6d
AK
6824 { echo "$as_me:$LINENO: checking for working vfork" >&5
6825echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
ad6254c5 6826if test "${ac_cv_func_vfork_works+set}" = set; then
68f2de6d 6827 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6828else
6829 if test "$cross_compiling" = yes; then
6830 ac_cv_func_vfork_works=cross
6831else
6832 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6833/* confdefs.h. */
6834_ACEOF
6835cat confdefs.h >>conftest.$ac_ext
6836cat >>conftest.$ac_ext <<_ACEOF
6837/* end confdefs.h. */
6838/* Thanks to Paul Eggert for this test. */
7a197a62 6839$ac_includes_default
ad6254c5 6840#include <sys/wait.h>
25fbec5b 6841#ifdef HAVE_VFORK_H
ad6254c5
AK
6842# include <vfork.h>
6843#endif
6844/* On some sparc systems, changes by the child to local and incoming
6845 argument registers are propagated back to the parent. The compiler
6846 is told about this with #include <vfork.h>, but some compilers
6847 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6848 static variable whose address is put into a register that is
6849 clobbered by the vfork. */
6850static void
6851#ifdef __cplusplus
6852sparc_address_test (int arg)
6853# else
6854sparc_address_test (arg) int arg;
6855#endif
6856{
6857 static pid_t child;
6858 if (!child) {
6859 child = vfork ();
6860 if (child < 0) {
6861 perror ("vfork");
6862 _exit(2);
6863 }
6864 if (!child) {
6865 arg = getpid();
6866 write(-1, "", 0);
6867 _exit (arg);
6868 }
6869 }
6870}
6871
6872int
6873main ()
6874{
6875 pid_t parent = getpid ();
6876 pid_t child;
6877
6878 sparc_address_test (0);
6879
6880 child = vfork ();
6881
6882 if (child == 0) {
6883 /* Here is another test for sparc vfork register problems. This
6884 test uses lots of local variables, at least as many local
6885 variables as main has allocated so far including compiler
6886 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6887 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6888 reuse the register of parent for one of the local variables,
6889 since it will think that parent can't possibly be used any more
6890 in this routine. Assigning to the local variable will thus
6891 munge parent in the parent process. */
6892 pid_t
6893 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6894 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6895 /* Convince the compiler that p..p7 are live; otherwise, it might
6896 use the same hardware register for all 8 local variables. */
6897 if (p != p1 || p != p2 || p != p3 || p != p4
6898 || p != p5 || p != p6 || p != p7)
6899 _exit(1);
6900
6901 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6902 from child file descriptors. If the child closes a descriptor
6903 before it execs or exits, this munges the parent's descriptor
6904 as well. Test for this by closing stdout in the child. */
6905 _exit(close(fileno(stdout)) != 0);
6906 } else {
6907 int status;
6908 struct stat st;
6909
6910 while (wait(&status) != child)
6911 ;
7a197a62 6912 return (
ad6254c5
AK
6913 /* Was there some problem with vforking? */
6914 child < 0
6915
6916 /* Did the child fail? (This shouldn't happen.) */
6917 || status
6918
6919 /* Did the vfork/compiler bug occur? */
6920 || parent != getpid()
6921
6922 /* Did the file descriptor bug occur? */
6923 || fstat(fileno(stdout), &st) != 0
6924 );
6925 }
6926}
6927_ACEOF
6928rm -f conftest$ac_exeext
7a197a62
AK
6929if { (ac_try="$ac_link"
6930case "(($ac_try" in
6931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6932 *) ac_try_echo=$ac_try;;
6933esac
68f2de6d 6934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6935 (eval "$ac_link") 2>&5
ad6254c5 6936 ac_status=$?
68f2de6d 6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6939 { (case "(($ac_try" in
6940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941 *) ac_try_echo=$ac_try;;
6942esac
68f2de6d 6943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6944 (eval "$ac_try") 2>&5
ad6254c5 6945 ac_status=$?
68f2de6d 6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6947 (exit $ac_status); }; }; then
6948 ac_cv_func_vfork_works=yes
6949else
68f2de6d
AK
6950 echo "$as_me: program exited with status $ac_status" >&5
6951echo "$as_me: failed program was:" >&5
ad6254c5
AK
6952sed 's/^/| /' conftest.$ac_ext >&5
6953
6954( exit $ac_status )
6955ac_cv_func_vfork_works=no
6956fi
7a197a62 6957rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6958fi
7a197a62
AK
6959
6960
ad6254c5 6961fi
68f2de6d
AK
6962{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
6963echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
6964
6965fi;
6966if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 6967 ac_cv_func_vfork_works=$ac_cv_func_vfork
68f2de6d
AK
6968 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6969echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
6970fi
6971
6972if test "x$ac_cv_func_vfork_works" = xyes; then
6973
6974cat >>confdefs.h <<\_ACEOF
6975#define HAVE_WORKING_VFORK 1
6976_ACEOF
6977
6978else
6979
6980cat >>confdefs.h <<\_ACEOF
6981#define vfork fork
6982_ACEOF
6983
6984fi
6985if test "x$ac_cv_func_fork_works" = xyes; then
6986
6987cat >>confdefs.h <<\_ACEOF
6988#define HAVE_WORKING_FORK 1
6989_ACEOF
6990
6991fi
6992
68f2de6d
AK
6993{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
6994echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
ad6254c5 6995if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
68f2de6d 6996 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6997else
6998 rm -f conftest.sym conftest.file
6999echo >conftest.file
7000if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7001 if test "$cross_compiling" = yes; then
7002 ac_cv_func_lstat_dereferences_slashed_symlink=no
7003else
7004 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7005/* confdefs.h. */
7006_ACEOF
7007cat confdefs.h >>conftest.$ac_ext
7008cat >>conftest.$ac_ext <<_ACEOF
7009/* end confdefs.h. */
7010$ac_includes_default
7011int
7012main ()
7013{
7014struct stat sbuf;
7015 /* Linux will dereference the symlink and fail.
8a2fc586
AK
7016 That is better in the sense that it means we will not
7017 have to compile and use the lstat wrapper. */
7a197a62 7018 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
7019 ;
7020 return 0;
7021}
7022_ACEOF
7023rm -f conftest$ac_exeext
7a197a62
AK
7024if { (ac_try="$ac_link"
7025case "(($ac_try" in
7026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7027 *) ac_try_echo=$ac_try;;
7028esac
68f2de6d 7029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7030 (eval "$ac_link") 2>&5
ad6254c5 7031 ac_status=$?
68f2de6d 7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7034 { (case "(($ac_try" in
7035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7036 *) ac_try_echo=$ac_try;;
7037esac
68f2de6d 7038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7039 (eval "$ac_try") 2>&5
ad6254c5 7040 ac_status=$?
68f2de6d 7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7042 (exit $ac_status); }; }; then
7043 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7044else
68f2de6d
AK
7045 echo "$as_me: program exited with status $ac_status" >&5
7046echo "$as_me: failed program was:" >&5
ad6254c5
AK
7047sed 's/^/| /' conftest.$ac_ext >&5
7048
7049( exit $ac_status )
7050ac_cv_func_lstat_dereferences_slashed_symlink=no
7051fi
7a197a62 7052rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7053fi
7a197a62
AK
7054
7055
ad6254c5
AK
7056else
7057 # If the `ln -s' command failed, then we probably don't even
7058 # have an lstat function.
7059 ac_cv_func_lstat_dereferences_slashed_symlink=no
7060fi
7061rm -f conftest.sym conftest.file
7062
7063fi
68f2de6d
AK
7064{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7065echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
7066
7067test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7068
7069cat >>confdefs.h <<_ACEOF
7070#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7071_ACEOF
7072
7073
7074if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 7075 case " $LIBOBJS " in
8a2fc586 7076 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7077 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7078 ;;
8a2fc586
AK
7079esac
7080
ad6254c5
AK
7081fi
7082
68f2de6d
AK
7083{ echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7084echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
ad6254c5 7085if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
68f2de6d 7086 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7087else
7088 if test "$cross_compiling" = yes; then
7089 ac_cv_func_lstat_empty_string_bug=yes
7090else
7091 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7092/* confdefs.h. */
7093_ACEOF
7094cat confdefs.h >>conftest.$ac_ext
7095cat >>conftest.$ac_ext <<_ACEOF
7096/* end confdefs.h. */
7097$ac_includes_default
7098int
7099main ()
7100{
7101struct stat sbuf;
7a197a62 7102 return lstat ("", &sbuf) == 0;
ad6254c5
AK
7103 ;
7104 return 0;
7105}
7106_ACEOF
7107rm -f conftest$ac_exeext
7a197a62
AK
7108if { (ac_try="$ac_link"
7109case "(($ac_try" in
7110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7111 *) ac_try_echo=$ac_try;;
7112esac
68f2de6d 7113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7114 (eval "$ac_link") 2>&5
ad6254c5 7115 ac_status=$?
68f2de6d 7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7118 { (case "(($ac_try" in
7119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7120 *) ac_try_echo=$ac_try;;
7121esac
68f2de6d 7122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7123 (eval "$ac_try") 2>&5
ad6254c5 7124 ac_status=$?
68f2de6d 7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7126 (exit $ac_status); }; }; then
7a197a62 7127 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 7128else
68f2de6d
AK
7129 echo "$as_me: program exited with status $ac_status" >&5
7130echo "$as_me: failed program was:" >&5
ad6254c5
AK
7131sed 's/^/| /' conftest.$ac_ext >&5
7132
7133( exit $ac_status )
7a197a62 7134ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 7135fi
7a197a62 7136rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7137fi
7a197a62
AK
7138
7139
ad6254c5 7140fi
68f2de6d
AK
7141{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7142echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 7143if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 7144 case " $LIBOBJS " in
8a2fc586 7145 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7146 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7147 ;;
8a2fc586
AK
7148esac
7149
ad6254c5
AK
7150
7151cat >>confdefs.h <<_ACEOF
7152#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7153_ACEOF
7154
7155fi
7156
7157
7158for ac_header in stdlib.h
7159do
68f2de6d 7160as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
7162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7164if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 7165 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7166fi
68f2de6d
AK
7167ac_res=`eval echo '${'$as_ac_Header'}'`
7168 { echo "$as_me:$LINENO: result: $ac_res" >&5
7169echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7170else
7171 # Is the header compilable?
68f2de6d
AK
7172{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7173echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 7174cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7175/* confdefs.h. */
7176_ACEOF
7177cat confdefs.h >>conftest.$ac_ext
7178cat >>conftest.$ac_ext <<_ACEOF
7179/* end confdefs.h. */
7180$ac_includes_default
7181#include <$ac_header>
7182_ACEOF
7183rm -f conftest.$ac_objext
7a197a62
AK
7184if { (ac_try="$ac_compile"
7185case "(($ac_try" in
7186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7187 *) ac_try_echo=$ac_try;;
7188esac
68f2de6d 7189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7190 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7191 ac_status=$?
8a2fc586
AK
7192 grep -v '^ *+' conftest.er1 >conftest.err
7193 rm -f conftest.er1
7194 cat conftest.err >&5
68f2de6d 7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7196 (exit $ac_status); } && {
7197 test -z "$ac_c_werror_flag" ||
7198 test ! -s conftest.err
7199 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7200 ac_header_compiler=yes
7201else
68f2de6d 7202 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7203sed 's/^/| /' conftest.$ac_ext >&5
7204
7a197a62 7205 ac_header_compiler=no
ad6254c5 7206fi
7a197a62
AK
7207
7208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
7209{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7210echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
7211
7212# Is the header present?
68f2de6d
AK
7213{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7214echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 7215cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7216/* confdefs.h. */
7217_ACEOF
7218cat confdefs.h >>conftest.$ac_ext
7219cat >>conftest.$ac_ext <<_ACEOF
7220/* end confdefs.h. */
7221#include <$ac_header>
7222_ACEOF
7a197a62
AK
7223if { (ac_try="$ac_cpp conftest.$ac_ext"
7224case "(($ac_try" in
7225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7226 *) ac_try_echo=$ac_try;;
7227esac
68f2de6d 7228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7230 ac_status=$?
7231 grep -v '^ *+' conftest.er1 >conftest.err
7232 rm -f conftest.er1
7233 cat conftest.err >&5
68f2de6d 7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7235 (exit $ac_status); } >/dev/null && {
7236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7237 test ! -s conftest.err
7238 }; then
ad6254c5
AK
7239 ac_header_preproc=yes
7240else
68f2de6d 7241 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7242sed 's/^/| /' conftest.$ac_ext >&5
7243
7244 ac_header_preproc=no
7245fi
7a197a62 7246
ad6254c5 7247rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
7248{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7249echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
7250
7251# So? What about this header?
8a2fc586
AK
7252case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7253 yes:no: )
68f2de6d
AK
7254 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7255echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7257echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7258 ac_header_preproc=yes
ad6254c5 7259 ;;
8a2fc586 7260 no:yes:* )
68f2de6d
AK
7261 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7262echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7263 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7264echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7265 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7266echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7267 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7268echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7270echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7271 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7272echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7273
ad6254c5
AK
7274 ;;
7275esac
68f2de6d
AK
7276{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7277echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 7279 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7280else
8a2fc586 7281 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7282fi
68f2de6d
AK
7283ac_res=`eval echo '${'$as_ac_Header'}'`
7284 { echo "$as_me:$LINENO: result: $ac_res" >&5
7285echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7286
7287fi
68f2de6d 7288if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 7289 cat >>confdefs.h <<_ACEOF
68f2de6d 7290#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7291_ACEOF
7292
7293fi
7294
7295done
7296
68f2de6d
AK
7297{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7298echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
ad6254c5 7299if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
68f2de6d 7300 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7301else
7302 if test "$cross_compiling" = yes; then
7303 ac_cv_func_malloc_0_nonnull=no
7304else
7305 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7306/* confdefs.h. */
7307_ACEOF
7308cat confdefs.h >>conftest.$ac_ext
7309cat >>conftest.$ac_ext <<_ACEOF
7310/* end confdefs.h. */
25fbec5b 7311#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
7312# include <stdlib.h>
7313#else
7314char *malloc ();
7315#endif
7316
7317int
7318main ()
7319{
7a197a62 7320return ! malloc (0);
ad6254c5
AK
7321 ;
7322 return 0;
7323}
7324_ACEOF
7325rm -f conftest$ac_exeext
7a197a62
AK
7326if { (ac_try="$ac_link"
7327case "(($ac_try" in
7328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7329 *) ac_try_echo=$ac_try;;
7330esac
68f2de6d 7331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7332 (eval "$ac_link") 2>&5
ad6254c5 7333 ac_status=$?
68f2de6d 7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7336 { (case "(($ac_try" in
7337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7338 *) ac_try_echo=$ac_try;;
7339esac
68f2de6d 7340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7341 (eval "$ac_try") 2>&5
ad6254c5 7342 ac_status=$?
68f2de6d 7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7344 (exit $ac_status); }; }; then
7345 ac_cv_func_malloc_0_nonnull=yes
7346else
68f2de6d
AK
7347 echo "$as_me: program exited with status $ac_status" >&5
7348echo "$as_me: failed program was:" >&5
ad6254c5
AK
7349sed 's/^/| /' conftest.$ac_ext >&5
7350
7351( exit $ac_status )
7352ac_cv_func_malloc_0_nonnull=no
7353fi
7a197a62 7354rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7355fi
7a197a62
AK
7356
7357
ad6254c5 7358fi
68f2de6d
AK
7359{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7360echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
7361if test $ac_cv_func_malloc_0_nonnull = yes; then
7362
7363cat >>confdefs.h <<\_ACEOF
7364#define HAVE_MALLOC 1
7365_ACEOF
7366
7367else
7368 cat >>confdefs.h <<\_ACEOF
7369#define HAVE_MALLOC 0
7370_ACEOF
7371
7a197a62 7372 case " $LIBOBJS " in
8a2fc586 7373 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
7374 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7375 ;;
8a2fc586
AK
7376esac
7377
ad6254c5
AK
7378
7379cat >>confdefs.h <<\_ACEOF
7380#define malloc rpl_malloc
7381_ACEOF
7382
7383fi
7384
7385
7386
68f2de6d
AK
7387{ echo "$as_me:$LINENO: checking for working memcmp" >&5
7388echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
ad6254c5 7389if test "${ac_cv_func_memcmp_working+set}" = set; then
68f2de6d 7390 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7391else
7392 if test "$cross_compiling" = yes; then
7393 ac_cv_func_memcmp_working=no
7394else
7395 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7396/* confdefs.h. */
7397_ACEOF
7398cat confdefs.h >>conftest.$ac_ext
7399cat >>conftest.$ac_ext <<_ACEOF
7400/* end confdefs.h. */
8a2fc586 7401$ac_includes_default
ad6254c5
AK
7402int
7403main ()
7404{
7405
7406 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 7407 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 7408 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 7409 return 1;
ad6254c5
AK
7410
7411 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7412 or more and with at least one buffer not starting on a 4-byte boundary.
7413 William Lewis provided this test program. */
7414 {
7415 char foo[21];
7416 char bar[21];
7417 int i;
7418 for (i = 0; i < 4; i++)
7419 {
8a2fc586
AK
7420 char *a = foo + i;
7421 char *b = bar + i;
7422 strcpy (a, "--------01111111");
7423 strcpy (b, "--------10000000");
7424 if (memcmp (a, b, 16) >= 0)
7a197a62 7425 return 1;
ad6254c5 7426 }
7a197a62 7427 return 0;
ad6254c5
AK
7428 }
7429
7430 ;
7431 return 0;
7432}
7433_ACEOF
7434rm -f conftest$ac_exeext
7a197a62
AK
7435if { (ac_try="$ac_link"
7436case "(($ac_try" in
7437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7438 *) ac_try_echo=$ac_try;;
7439esac
68f2de6d 7440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7441 (eval "$ac_link") 2>&5
ad6254c5 7442 ac_status=$?
68f2de6d 7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7445 { (case "(($ac_try" in
7446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7447 *) ac_try_echo=$ac_try;;
7448esac
68f2de6d 7449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7450 (eval "$ac_try") 2>&5
ad6254c5 7451 ac_status=$?
68f2de6d 7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7453 (exit $ac_status); }; }; then
7454 ac_cv_func_memcmp_working=yes
7455else
68f2de6d
AK
7456 echo "$as_me: program exited with status $ac_status" >&5
7457echo "$as_me: failed program was:" >&5
ad6254c5
AK
7458sed 's/^/| /' conftest.$ac_ext >&5
7459
7460( exit $ac_status )
7461ac_cv_func_memcmp_working=no
7462fi
7a197a62 7463rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7464fi
7a197a62
AK
7465
7466
ad6254c5 7467fi
68f2de6d
AK
7468{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7469echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
7a197a62 7470test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 7471 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
7472 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7473 ;;
8a2fc586
AK
7474esac
7475
ad6254c5
AK
7476
7477
7478
7479for ac_header in stdlib.h unistd.h
7480do
68f2de6d 7481as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7482if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
7483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7485if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 7486 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7487fi
68f2de6d
AK
7488ac_res=`eval echo '${'$as_ac_Header'}'`
7489 { echo "$as_me:$LINENO: result: $ac_res" >&5
7490echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7491else
7492 # Is the header compilable?
68f2de6d
AK
7493{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7494echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 7495cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7496/* confdefs.h. */
7497_ACEOF
7498cat confdefs.h >>conftest.$ac_ext
7499cat >>conftest.$ac_ext <<_ACEOF
7500/* end confdefs.h. */
7501$ac_includes_default
7502#include <$ac_header>
7503_ACEOF
7504rm -f conftest.$ac_objext
7a197a62
AK
7505if { (ac_try="$ac_compile"
7506case "(($ac_try" in
7507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7508 *) ac_try_echo=$ac_try;;
7509esac
68f2de6d 7510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7511 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7512 ac_status=$?
8a2fc586
AK
7513 grep -v '^ *+' conftest.er1 >conftest.err
7514 rm -f conftest.er1
7515 cat conftest.err >&5
68f2de6d 7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7517 (exit $ac_status); } && {
7518 test -z "$ac_c_werror_flag" ||
7519 test ! -s conftest.err
7520 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7521 ac_header_compiler=yes
7522else
68f2de6d 7523 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7524sed 's/^/| /' conftest.$ac_ext >&5
7525
7a197a62 7526 ac_header_compiler=no
ad6254c5 7527fi
7a197a62
AK
7528
7529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
7530{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7531echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
7532
7533# Is the header present?
68f2de6d
AK
7534{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7535echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 7536cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7537/* confdefs.h. */
7538_ACEOF
7539cat confdefs.h >>conftest.$ac_ext
7540cat >>conftest.$ac_ext <<_ACEOF
7541/* end confdefs.h. */
7542#include <$ac_header>
7543_ACEOF
7a197a62
AK
7544if { (ac_try="$ac_cpp conftest.$ac_ext"
7545case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7548esac
68f2de6d 7549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7551 ac_status=$?
7552 grep -v '^ *+' conftest.er1 >conftest.err
7553 rm -f conftest.er1
7554 cat conftest.err >&5
68f2de6d 7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7556 (exit $ac_status); } >/dev/null && {
7557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7558 test ! -s conftest.err
7559 }; then
ad6254c5
AK
7560 ac_header_preproc=yes
7561else
68f2de6d 7562 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7563sed 's/^/| /' conftest.$ac_ext >&5
7564
7565 ac_header_preproc=no
7566fi
7a197a62 7567
ad6254c5 7568rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
7569{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7570echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
7571
7572# So? What about this header?
8a2fc586
AK
7573case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7574 yes:no: )
68f2de6d
AK
7575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7576echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7578echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7579 ac_header_preproc=yes
ad6254c5 7580 ;;
8a2fc586 7581 no:yes:* )
68f2de6d
AK
7582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7583echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7585echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7587echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7589echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7591echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7593echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7594
ad6254c5
AK
7595 ;;
7596esac
68f2de6d
AK
7597{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7599if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 7600 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7601else
8a2fc586 7602 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7603fi
68f2de6d
AK
7604ac_res=`eval echo '${'$as_ac_Header'}'`
7605 { echo "$as_me:$LINENO: result: $ac_res" >&5
7606echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7607
7608fi
68f2de6d 7609if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 7610 cat >>confdefs.h <<_ACEOF
68f2de6d 7611#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7612_ACEOF
7613
7614fi
7615
7616done
7617
7618
7619for ac_func in getpagesize
7620do
68f2de6d
AK
7621as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7622{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7623echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 7624if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 7625 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7626else
7627 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7628/* confdefs.h. */
7629_ACEOF
7630cat confdefs.h >>conftest.$ac_ext
7631cat >>conftest.$ac_ext <<_ACEOF
7632/* end confdefs.h. */
8a2fc586
AK
7633/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7635#define $ac_func innocuous_$ac_func
7636
ad6254c5
AK
7637/* System header to define __stub macros and hopefully few prototypes,
7638 which can conflict with char $ac_func (); below.
7639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7640 <limits.h> exists even on freestanding compilers. */
8a2fc586 7641
ad6254c5
AK
7642#ifdef __STDC__
7643# include <limits.h>
7644#else
7645# include <assert.h>
7646#endif
8a2fc586
AK
7647
7648#undef $ac_func
7649
7a197a62
AK
7650/* Override any GCC internal prototype to avoid an error.
7651 Use char because int might match the return type of a GCC
7652 builtin and then its argument prototype would still apply. */
ad6254c5
AK
7653#ifdef __cplusplus
7654extern "C"
ad6254c5 7655#endif
ad6254c5
AK
7656char $ac_func ();
7657/* The GNU C library defines this for functions which it implements
7658 to always fail with ENOSYS. Some functions are actually named
7659 something starting with __ and the normal name is an alias. */
7a197a62 7660#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7661choke me
ad6254c5
AK
7662#endif
7663
7664int
7665main ()
7666{
7a197a62 7667return $ac_func ();
ad6254c5
AK
7668 ;
7669 return 0;
7670}
7671_ACEOF
7672rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7673if { (ac_try="$ac_link"
7674case "(($ac_try" in
7675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7676 *) ac_try_echo=$ac_try;;
7677esac
68f2de6d 7678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7679 (eval "$ac_link") 2>conftest.er1
ad6254c5 7680 ac_status=$?
8a2fc586
AK
7681 grep -v '^ *+' conftest.er1 >conftest.err
7682 rm -f conftest.er1
7683 cat conftest.err >&5
68f2de6d 7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7685 (exit $ac_status); } && {
7686 test -z "$ac_c_werror_flag" ||
7687 test ! -s conftest.err
68f2de6d
AK
7688 } && test -s conftest$ac_exeext &&
7689 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
7690 eval "$as_ac_var=yes"
7691else
68f2de6d 7692 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7693sed 's/^/| /' conftest.$ac_ext >&5
7694
7a197a62 7695 eval "$as_ac_var=no"
ad6254c5 7696fi
7a197a62 7697
25fbec5b 7698rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7699 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7700fi
68f2de6d
AK
7701ac_res=`eval echo '${'$as_ac_var'}'`
7702 { echo "$as_me:$LINENO: result: $ac_res" >&5
7703echo "${ECHO_T}$ac_res" >&6; }
7704if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 7705 cat >>confdefs.h <<_ACEOF
68f2de6d 7706#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7707_ACEOF
7708
7709fi
7710done
7711
68f2de6d
AK
7712{ echo "$as_me:$LINENO: checking for working mmap" >&5
7713echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
ad6254c5 7714if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
68f2de6d 7715 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7716else
7717 if test "$cross_compiling" = yes; then
7718 ac_cv_func_mmap_fixed_mapped=no
7719else
7720 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7721/* confdefs.h. */
7722_ACEOF
7723cat confdefs.h >>conftest.$ac_ext
7724cat >>conftest.$ac_ext <<_ACEOF
7725/* end confdefs.h. */
7726$ac_includes_default
7727/* malloc might have been renamed as rpl_malloc. */
7728#undef malloc
7729
7730/* Thanks to Mike Haertel and Jim Avera for this test.
7731 Here is a matrix of mmap possibilities:
7732 mmap private not fixed
7733 mmap private fixed at somewhere currently unmapped
7734 mmap private fixed at somewhere already mapped
7735 mmap shared not fixed
7736 mmap shared fixed at somewhere currently unmapped
7737 mmap shared fixed at somewhere already mapped
7738 For private mappings, we should verify that changes cannot be read()
7739 back from the file, nor mmap's back from the file at a different
7740 address. (There have been systems where private was not correctly
7741 implemented like the infamous i386 svr4.0, and systems where the
7742 VM page cache was not coherent with the file system buffer cache
7743 like early versions of FreeBSD and possibly contemporary NetBSD.)
7744 For shared mappings, we should conversely verify that changes get
7745 propagated back to all the places they're supposed to be.
7746
7747 Grep wants private fixed already mapped.
7748 The main things grep needs to know about mmap are:
7749 * does it exist and is it safe to write into the mmap'd area
7750 * how to use it (BSD variants) */
7751
7752#include <fcntl.h>
7753#include <sys/mman.h>
7754
25fbec5b 7755#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
7756char *malloc ();
7757#endif
7758
7759/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 7760#ifndef HAVE_GETPAGESIZE
ad6254c5 7761/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 7762# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
7763# define HAVE_SYS_PARAM_H 1
7764# endif
7765
7766# ifdef _SC_PAGESIZE
7767# define getpagesize() sysconf(_SC_PAGESIZE)
7768# else /* no _SC_PAGESIZE */
25fbec5b 7769# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
7770# include <sys/param.h>
7771# ifdef EXEC_PAGESIZE
7772# define getpagesize() EXEC_PAGESIZE
7773# else /* no EXEC_PAGESIZE */
7774# ifdef NBPG
7775# define getpagesize() NBPG * CLSIZE
7776# ifndef CLSIZE
7777# define CLSIZE 1
7778# endif /* no CLSIZE */
7779# else /* no NBPG */
7780# ifdef NBPC
7781# define getpagesize() NBPC
7782# else /* no NBPC */
7783# ifdef PAGESIZE
7784# define getpagesize() PAGESIZE
7785# endif /* PAGESIZE */
7786# endif /* no NBPC */
7787# endif /* no NBPG */
7788# endif /* no EXEC_PAGESIZE */
7789# else /* no HAVE_SYS_PARAM_H */
7790# define getpagesize() 8192 /* punt totally */
7791# endif /* no HAVE_SYS_PARAM_H */
7792# endif /* no _SC_PAGESIZE */
7793
7794#endif /* no HAVE_GETPAGESIZE */
7795
7796int
7797main ()
7798{
7799 char *data, *data2, *data3;
7800 int i, pagesize;
7801 int fd;
7802
7803 pagesize = getpagesize ();
7804
7805 /* First, make a file with some known garbage in it. */
7806 data = (char *) malloc (pagesize);
7807 if (!data)
7a197a62 7808 return 1;
ad6254c5
AK
7809 for (i = 0; i < pagesize; ++i)
7810 *(data + i) = rand ();
7811 umask (0);
7812 fd = creat ("conftest.mmap", 0600);
7813 if (fd < 0)
7a197a62 7814 return 1;
ad6254c5 7815 if (write (fd, data, pagesize) != pagesize)
7a197a62 7816 return 1;
ad6254c5
AK
7817 close (fd);
7818
7819 /* Next, try to mmap the file at a fixed address which already has
7820 something else allocated at it. If we can, also make sure that
7821 we see the same garbage. */
7822 fd = open ("conftest.mmap", O_RDWR);
7823 if (fd < 0)
7a197a62 7824 return 1;
ad6254c5
AK
7825 data2 = (char *) malloc (2 * pagesize);
7826 if (!data2)
7a197a62
AK
7827 return 1;
7828 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 7829 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 7830 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 7831 return 1;
ad6254c5
AK
7832 for (i = 0; i < pagesize; ++i)
7833 if (*(data + i) != *(data2 + i))
7a197a62 7834 return 1;
ad6254c5
AK
7835
7836 /* Finally, make sure that changes to the mapped area do not
7837 percolate back to the file as seen by read(). (This is a bug on
7838 some variants of i386 svr4.0.) */
7839 for (i = 0; i < pagesize; ++i)
7840 *(data2 + i) = *(data2 + i) + 1;
7841 data3 = (char *) malloc (pagesize);
7842 if (!data3)
7a197a62 7843 return 1;
ad6254c5 7844 if (read (fd, data3, pagesize) != pagesize)
7a197a62 7845 return 1;
ad6254c5
AK
7846 for (i = 0; i < pagesize; ++i)
7847 if (*(data + i) != *(data3 + i))
7a197a62 7848 return 1;
ad6254c5 7849 close (fd);
7a197a62 7850 return 0;
ad6254c5
AK
7851}
7852_ACEOF
7853rm -f conftest$ac_exeext
7a197a62
AK
7854if { (ac_try="$ac_link"
7855case "(($ac_try" in
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7858esac
68f2de6d 7859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7860 (eval "$ac_link") 2>&5
ad6254c5 7861 ac_status=$?
68f2de6d 7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7864 { (case "(($ac_try" in
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7867esac
68f2de6d 7868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7869 (eval "$ac_try") 2>&5
ad6254c5 7870 ac_status=$?
68f2de6d 7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7872 (exit $ac_status); }; }; then
7873 ac_cv_func_mmap_fixed_mapped=yes
7874else
68f2de6d
AK
7875 echo "$as_me: program exited with status $ac_status" >&5
7876echo "$as_me: failed program was:" >&5
ad6254c5
AK
7877sed 's/^/| /' conftest.$ac_ext >&5
7878
7879( exit $ac_status )
7880ac_cv_func_mmap_fixed_mapped=no
7881fi
7a197a62 7882rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7883fi
7a197a62
AK
7884
7885
ad6254c5 7886fi
68f2de6d
AK
7887{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7888echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
7889if test $ac_cv_func_mmap_fixed_mapped = yes; then
7890
7891cat >>confdefs.h <<\_ACEOF
7892#define HAVE_MMAP 1
7893_ACEOF
7894
7895fi
7896rm -f conftest.mmap
7897
68f2de6d
AK
7898{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
7899echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
ad6254c5 7900if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
68f2de6d 7901 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7902else
7903 if test "$cross_compiling" = yes; then
7904 ac_cv_func_stat_empty_string_bug=yes
7905else
7906 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7907/* confdefs.h. */
7908_ACEOF
7909cat confdefs.h >>conftest.$ac_ext
7910cat >>conftest.$ac_ext <<_ACEOF
7911/* end confdefs.h. */
7912$ac_includes_default
7913int
7914main ()
7915{
7916struct stat sbuf;
7a197a62 7917 return stat ("", &sbuf) == 0;
ad6254c5
AK
7918 ;
7919 return 0;
7920}
7921_ACEOF
7922rm -f conftest$ac_exeext
7a197a62
AK
7923if { (ac_try="$ac_link"
7924case "(($ac_try" in
7925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926 *) ac_try_echo=$ac_try;;
7927esac
68f2de6d 7928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7929 (eval "$ac_link") 2>&5
ad6254c5 7930 ac_status=$?
68f2de6d 7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7933 { (case "(($ac_try" in
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7936esac
68f2de6d 7937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7938 (eval "$ac_try") 2>&5
ad6254c5 7939 ac_status=$?
68f2de6d 7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7941 (exit $ac_status); }; }; then
7a197a62 7942 ac_cv_func_stat_empty_string_bug=no
ad6254c5 7943else
68f2de6d
AK
7944 echo "$as_me: program exited with status $ac_status" >&5
7945echo "$as_me: failed program was:" >&5
ad6254c5
AK
7946sed 's/^/| /' conftest.$ac_ext >&5
7947
7948( exit $ac_status )
7a197a62 7949ac_cv_func_stat_empty_string_bug=yes
ad6254c5 7950fi
7a197a62 7951rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7952fi
7a197a62
AK
7953
7954
ad6254c5 7955fi
68f2de6d
AK
7956{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
7957echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 7958if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 7959 case " $LIBOBJS " in
8a2fc586 7960 *" stat.$ac_objext "* ) ;;
7a197a62
AK
7961 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
7962 ;;
8a2fc586
AK
7963esac
7964
ad6254c5
AK
7965
7966cat >>confdefs.h <<_ACEOF
7967#define HAVE_STAT_EMPTY_STRING_BUG 1
7968_ACEOF
7969
7970fi
7971
68f2de6d
AK
7972{ echo "$as_me:$LINENO: checking for working strtod" >&5
7973echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
ad6254c5 7974if test "${ac_cv_func_strtod+set}" = set; then
68f2de6d 7975 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7976else
7977 if test "$cross_compiling" = yes; then
7978 ac_cv_func_strtod=no
7979else
7980 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7981/* confdefs.h. */
7982_ACEOF
7983cat confdefs.h >>conftest.$ac_ext
7984cat >>conftest.$ac_ext <<_ACEOF
7985/* end confdefs.h. */
7986
7a197a62
AK
7987$ac_includes_default
7988#ifndef strtod
ad6254c5 7989double strtod ();
7a197a62 7990#endif
ad6254c5
AK
7991int
7992main()
7993{
7994 {
7995 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
7996 char *string = " +69";
7997 char *term;
7998 double value;
7999 value = strtod (string, &term);
8000 if (value != 69 || term != (string + 4))
7a197a62 8001 return 1;
ad6254c5
AK
8002 }
8003
8004 {
8005 /* Under Solaris 2.4, strtod returns the wrong value for the
8006 terminating character under some conditions. */
8007 char *string = "NaN";
8008 char *term;
8009 strtod (string, &term);
8010 if (term != string && *(term - 1) == 0)
7a197a62 8011 return 1;
ad6254c5 8012 }
7a197a62 8013 return 0;
ad6254c5
AK
8014}
8015
8016_ACEOF
8017rm -f conftest$ac_exeext
7a197a62
AK
8018if { (ac_try="$ac_link"
8019case "(($ac_try" in
8020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8021 *) ac_try_echo=$ac_try;;
8022esac
68f2de6d 8023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8024 (eval "$ac_link") 2>&5
ad6254c5 8025 ac_status=$?
68f2de6d 8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8028 { (case "(($ac_try" in
8029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8030 *) ac_try_echo=$ac_try;;
8031esac
68f2de6d 8032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8033 (eval "$ac_try") 2>&5
ad6254c5 8034 ac_status=$?
68f2de6d 8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8036 (exit $ac_status); }; }; then
8037 ac_cv_func_strtod=yes
8038else
68f2de6d
AK
8039 echo "$as_me: program exited with status $ac_status" >&5
8040echo "$as_me: failed program was:" >&5
ad6254c5
AK
8041sed 's/^/| /' conftest.$ac_ext >&5
8042
8043( exit $ac_status )
8044ac_cv_func_strtod=no
8045fi
7a197a62 8046rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8047fi
7a197a62
AK
8048
8049
ad6254c5 8050fi
68f2de6d
AK
8051{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8052echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
ad6254c5 8053if test $ac_cv_func_strtod = no; then
7a197a62 8054 case " $LIBOBJS " in
8a2fc586 8055 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
8056 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8057 ;;
8a2fc586
AK
8058esac
8059
68f2de6d
AK
8060{ echo "$as_me:$LINENO: checking for pow" >&5
8061echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
ad6254c5 8062if test "${ac_cv_func_pow+set}" = set; then
68f2de6d 8063 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8064else
8065 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8066/* confdefs.h. */
8067_ACEOF
8068cat confdefs.h >>conftest.$ac_ext
8069cat >>conftest.$ac_ext <<_ACEOF
8070/* end confdefs.h. */
8a2fc586
AK
8071/* Define pow to an innocuous variant, in case <limits.h> declares pow.
8072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8073#define pow innocuous_pow
8074
ad6254c5
AK
8075/* System header to define __stub macros and hopefully few prototypes,
8076 which can conflict with char pow (); below.
8077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8078 <limits.h> exists even on freestanding compilers. */
8a2fc586 8079
ad6254c5
AK
8080#ifdef __STDC__
8081# include <limits.h>
8082#else
8083# include <assert.h>
8084#endif
8a2fc586
AK
8085
8086#undef pow
8087
7a197a62
AK
8088/* Override any GCC internal prototype to avoid an error.
8089 Use char because int might match the return type of a GCC
8090 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8091#ifdef __cplusplus
8092extern "C"
ad6254c5 8093#endif
ad6254c5
AK
8094char pow ();
8095/* The GNU C library defines this for functions which it implements
8096 to always fail with ENOSYS. Some functions are actually named
8097 something starting with __ and the normal name is an alias. */
7a197a62 8098#if defined __stub_pow || defined __stub___pow
ad6254c5 8099choke me
ad6254c5
AK
8100#endif
8101
8102int
8103main ()
8104{
7a197a62 8105return pow ();
ad6254c5
AK
8106 ;
8107 return 0;
8108}
8109_ACEOF
8110rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8111if { (ac_try="$ac_link"
8112case "(($ac_try" in
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8115esac
68f2de6d 8116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8117 (eval "$ac_link") 2>conftest.er1
ad6254c5 8118 ac_status=$?
8a2fc586
AK
8119 grep -v '^ *+' conftest.er1 >conftest.err
8120 rm -f conftest.er1
8121 cat conftest.err >&5
68f2de6d 8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8123 (exit $ac_status); } && {
8124 test -z "$ac_c_werror_flag" ||
8125 test ! -s conftest.err
68f2de6d
AK
8126 } && test -s conftest$ac_exeext &&
8127 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8128 ac_cv_func_pow=yes
8129else
68f2de6d 8130 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8131sed 's/^/| /' conftest.$ac_ext >&5
8132
7a197a62 8133 ac_cv_func_pow=no
ad6254c5 8134fi
7a197a62 8135
25fbec5b 8136rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8137 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8138fi
68f2de6d
AK
8139{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8140echo "${ECHO_T}$ac_cv_func_pow" >&6; }
ad6254c5
AK
8141
8142if test $ac_cv_func_pow = no; then
68f2de6d
AK
8143 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
8144echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
ad6254c5 8145if test "${ac_cv_lib_m_pow+set}" = set; then
68f2de6d 8146 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8147else
8148 ac_check_lib_save_LIBS=$LIBS
8149LIBS="-lm $LIBS"
8150cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8151/* confdefs.h. */
8152_ACEOF
8153cat confdefs.h >>conftest.$ac_ext
8154cat >>conftest.$ac_ext <<_ACEOF
8155/* end confdefs.h. */
8156
7a197a62
AK
8157/* Override any GCC internal prototype to avoid an error.
8158 Use char because int might match the return type of a GCC
8159 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8160#ifdef __cplusplus
8161extern "C"
8162#endif
ad6254c5
AK
8163char pow ();
8164int
8165main ()
8166{
7a197a62 8167return pow ();
ad6254c5
AK
8168 ;
8169 return 0;
8170}
8171_ACEOF
8172rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8173if { (ac_try="$ac_link"
8174case "(($ac_try" in
8175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176 *) ac_try_echo=$ac_try;;
8177esac
68f2de6d 8178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8179 (eval "$ac_link") 2>conftest.er1
ad6254c5 8180 ac_status=$?
8a2fc586
AK
8181 grep -v '^ *+' conftest.er1 >conftest.err
8182 rm -f conftest.er1
8183 cat conftest.err >&5
68f2de6d 8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8185 (exit $ac_status); } && {
8186 test -z "$ac_c_werror_flag" ||
8187 test ! -s conftest.err
68f2de6d
AK
8188 } && test -s conftest$ac_exeext &&
8189 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8190 ac_cv_lib_m_pow=yes
8191else
68f2de6d 8192 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8193sed 's/^/| /' conftest.$ac_ext >&5
8194
7a197a62 8195 ac_cv_lib_m_pow=no
ad6254c5 8196fi
7a197a62 8197
25fbec5b 8198rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8199 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8200LIBS=$ac_check_lib_save_LIBS
d0191583 8201fi
68f2de6d
AK
8202{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8203echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
d0191583
JM
8204if test $ac_cv_lib_m_pow = yes; then
8205 POW_LIB=-lm
8206else
68f2de6d
AK
8207 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8208echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 8209fi
72b2cb61 8210
d0191583 8211fi
72b2cb61 8212
ad6254c5
AK
8213fi
8214
ad6254c5 8215
d0191583
JM
8216for ac_func in vprintf
8217do
68f2de6d
AK
8218as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8219{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8220echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
d0191583 8221if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 8222 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 8223else
d0191583
JM
8224 cat >conftest.$ac_ext <<_ACEOF
8225/* confdefs.h. */
8226_ACEOF
8227cat confdefs.h >>conftest.$ac_ext
8228cat >>conftest.$ac_ext <<_ACEOF
8229/* end confdefs.h. */
8230/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8232#define $ac_func innocuous_$ac_func
7a197a62 8233
d0191583
JM
8234/* System header to define __stub macros and hopefully few prototypes,
8235 which can conflict with char $ac_func (); below.
8236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8237 <limits.h> exists even on freestanding compilers. */
ad6254c5 8238
d0191583
JM
8239#ifdef __STDC__
8240# include <limits.h>
8241#else
8242# include <assert.h>
8243#endif
ad6254c5 8244
d0191583 8245#undef $ac_func
72b2cb61 8246
d0191583
JM
8247/* Override any GCC internal prototype to avoid an error.
8248 Use char because int might match the return type of a GCC
8249 builtin and then its argument prototype would still apply. */
8250#ifdef __cplusplus
8251extern "C"
8252#endif
8253char $ac_func ();
8254/* The GNU C library defines this for functions which it implements
8255 to always fail with ENOSYS. Some functions are actually named
8256 something starting with __ and the normal name is an alias. */
8257#if defined __stub_$ac_func || defined __stub___$ac_func
8258choke me
8259#endif
8260
8261int
8262main ()
8263{
8264return $ac_func ();
8265 ;
8266 return 0;
8267}
72b2cb61 8268_ACEOF
d0191583
JM
8269rm -f conftest.$ac_objext conftest$ac_exeext
8270if { (ac_try="$ac_link"
8271case "(($ac_try" in
8272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8273 *) ac_try_echo=$ac_try;;
8274esac
68f2de6d 8275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
8276 (eval "$ac_link") 2>conftest.er1
8277 ac_status=$?
8278 grep -v '^ *+' conftest.er1 >conftest.err
8279 rm -f conftest.er1
8280 cat conftest.err >&5
68f2de6d 8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8282 (exit $ac_status); } && {
8283 test -z "$ac_c_werror_flag" ||
8284 test ! -s conftest.err
68f2de6d
AK
8285 } && test -s conftest$ac_exeext &&
8286 $as_test_x conftest$ac_exeext; then
d0191583
JM
8287 eval "$as_ac_var=yes"
8288else
68f2de6d 8289 echo "$as_me: failed program was:" >&5
d0191583 8290sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8291
d0191583 8292 eval "$as_ac_var=no"
ad6254c5
AK
8293fi
8294
d0191583
JM
8295rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8296 conftest$ac_exeext conftest.$ac_ext
7a197a62 8297fi
68f2de6d
AK
8298ac_res=`eval echo '${'$as_ac_var'}'`
8299 { echo "$as_me:$LINENO: result: $ac_res" >&5
8300echo "${ECHO_T}$ac_res" >&6; }
8301if test `eval echo '${'$as_ac_var'}'` = yes; then
d0191583 8302 cat >>confdefs.h <<_ACEOF
68f2de6d 8303#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 8304_ACEOF
7a197a62 8305
68f2de6d
AK
8306{ echo "$as_me:$LINENO: checking for _doprnt" >&5
8307echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
d0191583 8308if test "${ac_cv_func__doprnt+set}" = set; then
68f2de6d 8309 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 8310else
d0191583
JM
8311 cat >conftest.$ac_ext <<_ACEOF
8312/* confdefs.h. */
8313_ACEOF
8314cat confdefs.h >>conftest.$ac_ext
8315cat >>conftest.$ac_ext <<_ACEOF
8316/* end confdefs.h. */
8317/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8319#define _doprnt innocuous__doprnt
7a197a62 8320
d0191583
JM
8321/* System header to define __stub macros and hopefully few prototypes,
8322 which can conflict with char _doprnt (); below.
8323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8324 <limits.h> exists even on freestanding compilers. */
ad6254c5 8325
d0191583
JM
8326#ifdef __STDC__
8327# include <limits.h>
8328#else
8329# include <assert.h>
8330#endif
72b2cb61 8331
d0191583
JM
8332#undef _doprnt
8333
8334/* Override any GCC internal prototype to avoid an error.
8335 Use char because int might match the return type of a GCC
8336 builtin and then its argument prototype would still apply. */
8337#ifdef __cplusplus
8338extern "C"
8339#endif
8340char _doprnt ();
8341/* The GNU C library defines this for functions which it implements
8342 to always fail with ENOSYS. Some functions are actually named
8343 something starting with __ and the normal name is an alias. */
8344#if defined __stub__doprnt || defined __stub____doprnt
8345choke me
8346#endif
8347
8348int
8349main ()
8350{
8351return _doprnt ();
8352 ;
8353 return 0;
8354}
72b2cb61 8355_ACEOF
d0191583
JM
8356rm -f conftest.$ac_objext conftest$ac_exeext
8357if { (ac_try="$ac_link"
8358case "(($ac_try" in
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8361esac
68f2de6d 8362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
8363 (eval "$ac_link") 2>conftest.er1
8364 ac_status=$?
8365 grep -v '^ *+' conftest.er1 >conftest.err
8366 rm -f conftest.er1
8367 cat conftest.err >&5
68f2de6d 8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8369 (exit $ac_status); } && {
8370 test -z "$ac_c_werror_flag" ||
8371 test ! -s conftest.err
68f2de6d
AK
8372 } && test -s conftest$ac_exeext &&
8373 $as_test_x conftest$ac_exeext; then
d0191583
JM
8374 ac_cv_func__doprnt=yes
8375else
68f2de6d 8376 echo "$as_me: failed program was:" >&5
d0191583 8377sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8378
d0191583 8379 ac_cv_func__doprnt=no
ad6254c5
AK
8380fi
8381
d0191583
JM
8382rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8383 conftest$ac_exeext conftest.$ac_ext
7a197a62 8384fi
68f2de6d
AK
8385{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8386echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
d0191583 8387if test $ac_cv_func__doprnt = yes; then
7a197a62 8388
d0191583
JM
8389cat >>confdefs.h <<\_ACEOF
8390#define HAVE_DOPRNT 1
8391_ACEOF
ad6254c5 8392
7a197a62
AK
8393fi
8394
d0191583
JM
8395fi
8396done
8b1a3214 8397
ad6254c5 8398
7a197a62 8399
d0191583 8400################################################################################
ad6254c5 8401
ad6254c5
AK
8402
8403################################################################################
68f2de6d
AK
8404{ echo "$as_me:$LINENO: checking file owner" >&5
8405echo $ECHO_N "checking file owner... $ECHO_C" >&6; }
d0191583
JM
8406OWNER="root"
8407
8408
8409# Check whether --with-user was given.
8410if test "${with_user+set}" = set; then
8411 withval=$with_user; OWNER="$withval"
7a197a62
AK
8412fi
8413
68f2de6d
AK
8414{ echo "$as_me:$LINENO: result: $OWNER" >&5
8415echo "${ECHO_T}$OWNER" >&6; }
ad6254c5 8416
d0191583
JM
8417if test x$OWNER != x; then
8418 OWNER="-o $OWNER"
ad6254c5
AK
8419fi
8420
8421################################################################################
68f2de6d
AK
8422{ echo "$as_me:$LINENO: checking group owner" >&5
8423echo $ECHO_N "checking group owner... $ECHO_C" >&6; }
d0191583 8424GROUP="root"
ad6254c5 8425
d0191583
JM
8426# Check whether --with-group was given.
8427if test "${with_group+set}" = set; then
8428 withval=$with_group; GROUP="$withval"
7a197a62
AK
8429fi
8430
68f2de6d
AK
8431{ echo "$as_me:$LINENO: result: $GROUP" >&5
8432echo "${ECHO_T}$GROUP" >&6; }
d0191583
JM
8433
8434if test x$GROUP != x; then
8435 GROUP="-g $GROUP"
8436fi
ad6254c5 8437
24bbc4d7
AK
8438################################################################################
8439{ echo "$as_me:$LINENO: checking device node uid" >&5
8440echo $ECHO_N "checking device node uid... $ECHO_C" >&6; }
8441
8442
8443# Check whether --with-device-uid was given.
8444if test "${with_device_uid+set}" = set; then
8445 withval=$with_device_uid; DM_DEVICE_UID="$withval"
8446else
8447 DM_DEVICE_UID="0"
8448fi
8449
8450{ echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
8451echo "${ECHO_T}$DM_DEVICE_UID" >&6; }
8452
8453################################################################################
8454{ echo "$as_me:$LINENO: checking device node gid" >&5
8455echo $ECHO_N "checking device node gid... $ECHO_C" >&6; }
8456
8457
8458# Check whether --with-device-gid was given.
8459if test "${with_device_gid+set}" = set; then
8460 withval=$with_device_gid; DM_DEVICE_GID="$withval"
8461else
8462 DM_DEVICE_GID="0"
8463fi
8464
8465{ echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
8466echo "${ECHO_T}$DM_DEVICE_GID" >&6; }
8467
93bd259b
AK
8468################################################################################
8469{ echo "$as_me:$LINENO: checking device node mode" >&5
8470echo $ECHO_N "checking device node mode... $ECHO_C" >&6; }
8471
8472
8473# Check whether --with-device-mode was given.
8474if test "${with_device_mode+set}" = set; then
8475 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
8476else
8477 DM_DEVICE_MODE="0600"
8478fi
8479
8480{ echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
8481echo "${ECHO_T}$DM_DEVICE_MODE" >&6; }
8482
ad6254c5 8483################################################################################
68f2de6d
AK
8484{ echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
8485echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6; }
d0191583
JM
8486# Check whether --enable-lvm1_fallback was given.
8487if test "${enable_lvm1_fallback+set}" = set; then
8488 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
8489else
8490 LVM1_FALLBACK=no
7a197a62
AK
8491fi
8492
68f2de6d
AK
8493{ echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
8494echo "${ECHO_T}$LVM1_FALLBACK" >&6; }
ad6254c5 8495
d0191583 8496if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
8497
8498cat >>confdefs.h <<\_ACEOF
d0191583 8499#define LVM1_FALLBACK 1
72b2cb61
AK
8500_ACEOF
8501
ad6254c5
AK
8502fi
8503
8504################################################################################
68f2de6d
AK
8505{ echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
8506echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6; }
d0191583
JM
8507
8508# Check whether --with-lvm1 was given.
8509if test "${with_lvm1+set}" = set; then
8510 withval=$with_lvm1; LVM1="$withval"
8511else
8512 LVM1="internal"
7a197a62
AK
8513fi
8514
68f2de6d
AK
8515{ echo "$as_me:$LINENO: result: $LVM1" >&5
8516echo "${ECHO_T}$LVM1" >&6; }
ad6254c5 8517
d0191583 8518if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
68f2de6d 8519 then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 8520" >&5
68f2de6d 8521echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
8522" >&2;}
8523 { (exit 1); exit 1; }; }
8524fi;
8525
8526if test x$LVM1 = xinternal; then
72b2cb61
AK
8527
8528cat >>confdefs.h <<\_ACEOF
d0191583 8529#define LVM1_INTERNAL 1
72b2cb61
AK
8530_ACEOF
8531
ad6254c5
AK
8532fi
8533
8534################################################################################
68f2de6d
AK
8535{ echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
8536echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6; }
d0191583
JM
8537
8538# Check whether --with-pool was given.
8539if test "${with_pool+set}" = set; then
8540 withval=$with_pool; POOL="$withval"
ad6254c5 8541else
d0191583 8542 POOL="internal"
7a197a62
AK
8543fi
8544
68f2de6d
AK
8545{ echo "$as_me:$LINENO: result: $POOL" >&5
8546echo "${ECHO_T}$POOL" >&6; }
ad6254c5 8547
d0191583 8548if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
68f2de6d 8549 then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 8550" >&5
68f2de6d 8551echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
8552" >&2;}
8553 { (exit 1); exit 1; }; }
8554fi;
7a197a62 8555
d0191583
JM
8556if test x$POOL = xinternal; then
8557
8558cat >>confdefs.h <<\_ACEOF
8559#define POOL_INTERNAL 1
8560_ACEOF
8561
8562fi
ad6254c5 8563
06f62ad1 8564################################################################################
68f2de6d
AK
8565{ echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
8566echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6; }
d0191583
JM
8567
8568# Check whether --with-cluster was given.
8569if test "${with_cluster+set}" = set; then
8570 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
8571fi
8572
68f2de6d
AK
8573{ echo "$as_me:$LINENO: result: $CLUSTER" >&5
8574echo "${ECHO_T}$CLUSTER" >&6; }
06f62ad1 8575
d0191583 8576if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
68f2de6d 8577 then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 8578" >&5
68f2de6d 8579echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
8580" >&2;}
8581 { (exit 1); exit 1; }; }
d0191583 8582fi;
06f62ad1 8583
d0191583 8584if test x$CLUSTER = xinternal; then
72b2cb61
AK
8585
8586cat >>confdefs.h <<\_ACEOF
d0191583 8587#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
8588_ACEOF
8589
15d91f5a 8590fi
ad6254c5
AK
8591
8592################################################################################
68f2de6d
AK
8593{ echo "$as_me:$LINENO: checking whether to include snapshots" >&5
8594echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6; }
ad6254c5 8595
d0191583
JM
8596# Check whether --with-snapshots was given.
8597if test "${with_snapshots+set}" = set; then
8598 withval=$with_snapshots; SNAPSHOTS="$withval"
8599else
8600 SNAPSHOTS="internal"
ad6254c5
AK
8601fi
8602
68f2de6d
AK
8603{ echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
8604echo "${ECHO_T}$SNAPSHOTS" >&6; }
ad6254c5 8605
d0191583 8606if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
68f2de6d 8607 then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 8608" >&5
68f2de6d 8609echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
8610" >&2;}
8611 { (exit 1); exit 1; }; }
8612fi;
8613
8614if test x$SNAPSHOTS = xinternal; then
8615
8616cat >>confdefs.h <<\_ACEOF
8617#define SNAPSHOT_INTERNAL 1
8618_ACEOF
ad6254c5 8619
ad6254c5 8620fi
7a197a62 8621
d0191583 8622################################################################################
68f2de6d
AK
8623{ echo "$as_me:$LINENO: checking whether to include mirrors" >&5
8624echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6; }
d0191583
JM
8625
8626# Check whether --with-mirrors was given.
8627if test "${with_mirrors+set}" = set; then
8628 withval=$with_mirrors; MIRRORS="$withval"
8629else
8630 MIRRORS="internal"
ad6254c5 8631fi
ad6254c5 8632
68f2de6d
AK
8633{ echo "$as_me:$LINENO: result: $MIRRORS" >&5
8634echo "${ECHO_T}$MIRRORS" >&6; }
ad6254c5 8635
d0191583 8636if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
68f2de6d 8637 then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 8638" >&5
68f2de6d 8639echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
8640" >&2;}
8641 { (exit 1); exit 1; }; }
8642fi;
ad6254c5 8643
d0191583 8644if test x$MIRRORS = xinternal; then
ad6254c5 8645
d0191583
JM
8646cat >>confdefs.h <<\_ACEOF
8647#define MIRRORED_INTERNAL 1
ad6254c5 8648_ACEOF
8a2fc586 8649
d0191583 8650fi
8a2fc586 8651
d0191583 8652################################################################################
68f2de6d
AK
8653{ echo "$as_me:$LINENO: checking whether to enable readline" >&5
8654echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6; }
d0191583
JM
8655# Check whether --enable-readline was given.
8656if test "${enable_readline+set}" = set; then
8657 enableval=$enable_readline; READLINE=$enableval
8658else
06e459df 8659 READLINE=maybe
d0191583 8660fi
8a2fc586 8661
68f2de6d
AK
8662{ echo "$as_me:$LINENO: result: $READLINE" >&5
8663echo "${ECHO_T}$READLINE" >&6; }
8a2fc586 8664
d0191583 8665################################################################################
68f2de6d
AK
8666{ echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
8667echo $ECHO_N "checking whether to enable realtime support... $ECHO_C" >&6; }
d0191583
JM
8668# Check whether --enable-realtime was given.
8669if test "${enable_realtime+set}" = set; then
8670 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 8671fi
ad6254c5 8672
68f2de6d
AK
8673{ echo "$as_me:$LINENO: result: $REALTIME" >&5
8674echo "${ECHO_T}$REALTIME" >&6; }
d0191583
JM
8675
8676################################################################################
68f2de6d
AK
8677{ echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
8678echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6; }
d0191583
JM
8679
8680# Check whether --with-clvmd was given.
8681if test "${with_clvmd+set}" = set; then
8682 withval=$with_clvmd; CLVMD="$withval"
ad6254c5 8683else
d0191583
JM
8684 CLVMD="none"
8685fi
8a2fc586 8686
d0191583
JM
8687if test x$CLVMD = xyes; then
8688 CLVMD=all
8689fi
68f2de6d
AK
8690{ echo "$as_me:$LINENO: result: $CLVMD" >&5
8691echo "${ECHO_T}$CLVMD" >&6; }
8a2fc586 8692
d0191583
JM
8693if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
8694 CLUSTER=internal
8695fi
8a2fc586 8696
d0191583 8697################################################################################
68f2de6d
AK
8698{ echo "$as_me:$LINENO: checking whether to enable debugging" >&5
8699echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; }
d0191583
JM
8700# Check whether --enable-debug was given.
8701if test "${enable_debug+set}" = set; then
8702 enableval=$enable_debug; DEBUG=$enableval
8703else
8704 DEBUG=no
8705fi
8a2fc586 8706
68f2de6d
AK
8707{ echo "$as_me:$LINENO: result: $DEBUG" >&5
8708echo "${ECHO_T}$DEBUG" >&6; }
ad6254c5 8709
d0191583
JM
8710if test x$DEBUG = xyes; then
8711 COPTIMISE_FLAG=
fc54be10 8712else
d0191583
JM
8713 CSCOPE_CMD=
8714fi
fc54be10 8715
d0191583 8716################################################################################
68f2de6d
AK
8717{ echo "$as_me:$LINENO: checking for C optimisation flag" >&5
8718echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6; }
d0191583
JM
8719
8720# Check whether --with-optimisation was given.
8721if test "${with_optimisation+set}" = set; then
8722 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
8723fi
8724
68f2de6d
AK
8725{ echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
8726echo "${ECHO_T}$COPTIMISE_FLAG" >&6; }
fddafd51
ZK
8727
8728################################################################################
68f2de6d
AK
8729{ echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
8730echo $ECHO_N "checking whether to gather gcov profiling data... $ECHO_C" >&6; }
fddafd51
ZK
8731# Check whether --enable-profiling was given.
8732if test "${enable_profiling+set}" = set; then
5556819a 8733 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 8734else
5556819a 8735 PROFILING=no
fddafd51
ZK
8736fi
8737
68f2de6d
AK
8738{ echo "$as_me:$LINENO: result: $PROFILING" >&5
8739echo "${ECHO_T}$PROFILING" >&6; }
5556819a
AK
8740
8741if test "x$PROFILING" = xyes; then
8742 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8743 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 8744set dummy lcov; ac_word=$2
68f2de6d
AK
8745{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fddafd51 8747if test "${ac_cv_path_LCOV+set}" = set; then
68f2de6d 8748 echo $ECHO_N "(cached) $ECHO_C" >&6
fddafd51
ZK
8749else
8750 case $LCOV in
8751 [\\/]* | ?:[\\/]*)
8752 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8753 ;;
8754 *)
8755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8756for as_dir in $PATH
8757do
8758 IFS=$as_save_IFS
8759 test -z "$as_dir" && as_dir=.
8760 for ac_exec_ext in '' $ac_executable_extensions; do
8761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8762 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 8763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
8764 break 2
8765 fi
8766done
8767done
8768IFS=$as_save_IFS
8769
b145d876 8770 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
fddafd51
ZK
8771 ;;
8772esac
8773fi
8774LCOV=$ac_cv_path_LCOV
8775if test -n "$LCOV"; then
68f2de6d
AK
8776 { echo "$as_me:$LINENO: result: $LCOV" >&5
8777echo "${ECHO_T}$LCOV" >&6; }
fddafd51 8778else
68f2de6d
AK
8779 { echo "$as_me:$LINENO: result: no" >&5
8780echo "${ECHO_T}no" >&6; }
fddafd51
ZK
8781fi
8782
8783
5556819a 8784 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 8785set dummy genhtml; ac_word=$2
68f2de6d
AK
8786{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fddafd51 8788if test "${ac_cv_path_GENHTML+set}" = set; then
68f2de6d 8789 echo $ECHO_N "(cached) $ECHO_C" >&6
fddafd51
ZK
8790else
8791 case $GENHTML in
8792 [\\/]* | ?:[\\/]*)
8793 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8794 ;;
8795 *)
8796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797for as_dir in $PATH
8798do
8799 IFS=$as_save_IFS
8800 test -z "$as_dir" && as_dir=.
8801 for ac_exec_ext in '' $ac_executable_extensions; do
8802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8803 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 8804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
8805 break 2
8806 fi
8807done
8808done
8809IFS=$as_save_IFS
8810
b145d876 8811 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
fddafd51
ZK
8812 ;;
8813esac
8814fi
8815GENHTML=$ac_cv_path_GENHTML
8816if test -n "$GENHTML"; then
68f2de6d
AK
8817 { echo "$as_me:$LINENO: result: $GENHTML" >&5
8818echo "${ECHO_T}$GENHTML" >&6; }
fddafd51 8819else
68f2de6d
AK
8820 { echo "$as_me:$LINENO: result: no" >&5
8821echo "${ECHO_T}no" >&6; }
fddafd51
ZK
8822fi
8823
8824
b145d876 8825 if test "$LCOV" = no -o "$GENHTML" = no ; then
68f2de6d
AK
8826 { { echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
8827echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
8828 { (exit 1); exit 1; }; }
8829 fi
5556819a 8830fi
d0191583
JM
8831
8832################################################################################
68f2de6d
AK
8833{ echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
8834echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6; }
d0191583
JM
8835# Check whether --enable-devmapper was given.
8836if test "${enable_devmapper+set}" = set; then
8837 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
8838fi
8839
68f2de6d
AK
8840{ echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
8841echo "${ECHO_T}$DEVMAPPER" >&6; }
d0191583
JM
8842
8843if test x$DEVMAPPER = xyes; then
ad6254c5
AK
8844
8845cat >>confdefs.h <<\_ACEOF
d0191583 8846#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
8847_ACEOF
8848
8849fi
8850
93bd259b
AK
8851################################################################################
8852# Check whether --enable-compat was given.
8853if test "${enable_compat+set}" = set; then
8854 enableval=$enable_compat; DM_COMPAT=$enableval
8855else
8856 DM_COMPAT=no
8857fi
8858
8859
8860################################################################################
8861# Check whether --enable-ioctl was given.
8862if test "${enable_ioctl+set}" = set; then
8863 enableval=$enable_ioctl; DM_IOCTLS=$enableval
8864fi
8865
8866
d0191583 8867################################################################################
68f2de6d
AK
8868{ echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
8869echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6; }
d0191583
JM
8870# Check whether --enable-o_direct was given.
8871if test "${enable_o_direct+set}" = set; then
8872 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 8873fi
ad6254c5 8874
68f2de6d
AK
8875{ echo "$as_me:$LINENO: result: $ODIRECT" >&5
8876echo "${ECHO_T}$ODIRECT" >&6; }
ad6254c5 8877
d0191583 8878if test x$ODIRECT = xyes; then
ad6254c5 8879
d0191583
JM
8880cat >>confdefs.h <<\_ACEOF
8881#define O_DIRECT_SUPPORT 1
8882_ACEOF
ad6254c5 8883
d0191583 8884fi
ad6254c5 8885
d0191583 8886################################################################################
68f2de6d
AK
8887{ echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
8888echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6; }
d0191583
JM
8889# Check whether --enable-cmdlib was given.
8890if test "${enable_cmdlib+set}" = set; then
8891 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 8892else
d0191583
JM
8893 CMDLIB=no
8894fi
8a2fc586 8895
68f2de6d
AK
8896{ echo "$as_me:$LINENO: result: $CMDLIB" >&5
8897echo "${ECHO_T}$CMDLIB" >&6; }
8a2fc586 8898
2a9a80c9 8899test x$CMDLIB = xyes \
d179cc7a
JM
8900 && LVM2CMD_LIB=-llvm2cmd \
8901 || LVM2CMD_LIB=
8902
93bd259b
AK
8903################################################################################
8904# Check whether --enable-pkgconfig was given.
8905if test "${enable_pkgconfig+set}" = set; then
8906 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
8907else
8908 PKGCONFIG=no
8909fi
8910
2a9a80c9 8911
d0191583 8912################################################################################
68f2de6d
AK
8913{ echo "$as_me:$LINENO: checking whether to install fsadm" >&5
8914echo $ECHO_N "checking whether to install fsadm... $ECHO_C" >&6; }
d0191583
JM
8915# Check whether --enable-fsadm was given.
8916if test "${enable_fsadm+set}" = set; then
8917 enableval=$enable_fsadm; FSADM=$enableval
8918fi
8a2fc586 8919
68f2de6d
AK
8920{ echo "$as_me:$LINENO: result: $FSADM" >&5
8921echo "${ECHO_T}$FSADM" >&6; }
8a2fc586 8922
d0191583 8923################################################################################
68f2de6d
AK
8924{ echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
8925echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6; }
d0191583
JM
8926# Check whether --enable-dmeventd was given.
8927if test "${enable_dmeventd+set}" = set; then
8928 enableval=$enable_dmeventd; DMEVENTD=$enableval
8929fi
ad6254c5 8930
68f2de6d
AK
8931{ echo "$as_me:$LINENO: result: $DMEVENTD" >&5
8932echo "${ECHO_T}$DMEVENTD" >&6; }
ad6254c5 8933
93bd259b
AK
8934BUILD_DMEVENTD=$DMEVENTD
8935
2a9a80c9
PR
8936if test x$DMEVENTD = xyes; then
8937 if test x$MIRRORS != xinternal; then
68f2de6d 8938 { { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 8939 " >&5
68f2de6d 8940echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 8941 " >&2;}
d0191583 8942 { (exit 1); exit 1; }; }
2a9a80c9
PR
8943 fi
8944 if test x$CMDLIB = xno; then
68f2de6d 8945 { { echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 8946 " >&5
68f2de6d 8947echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
8948 " >&2;}
8949 { (exit 1); exit 1; }; }
8950 fi
ad6254c5 8951fi
7a197a62 8952
d0191583
JM
8953if test x$DMEVENTD = xyes; then
8954
8955cat >>confdefs.h <<\_ACEOF
8956#define DMEVENTD 1
ad6254c5
AK
8957_ACEOF
8958
ad6254c5 8959fi
93bd259b
AK
8960
8961################################################################################
8962
8963{ echo "$as_me:$LINENO: checking for getline in -lc" >&5
8964echo $ECHO_N "checking for getline in -lc... $ECHO_C" >&6; }
8965if test "${ac_cv_lib_c_getline+set}" = set; then
8966 echo $ECHO_N "(cached) $ECHO_C" >&6
8967else
8968 ac_check_lib_save_LIBS=$LIBS
8969LIBS="-lc $LIBS"
8970cat >conftest.$ac_ext <<_ACEOF
8971/* confdefs.h. */
8972_ACEOF
8973cat confdefs.h >>conftest.$ac_ext
8974cat >>conftest.$ac_ext <<_ACEOF
8975/* end confdefs.h. */
8976
8977/* Override any GCC internal prototype to avoid an error.
8978 Use char because int might match the return type of a GCC
8979 builtin and then its argument prototype would still apply. */
8980#ifdef __cplusplus
8981extern "C"
8982#endif
8983char getline ();
8984int
8985main ()
8986{
8987return getline ();
8988 ;
8989 return 0;
8990}
8991_ACEOF
8992rm -f conftest.$ac_objext conftest$ac_exeext
8993if { (ac_try="$ac_link"
8994case "(($ac_try" in
8995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8996 *) ac_try_echo=$ac_try;;
8997esac
8998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8999 (eval "$ac_link") 2>conftest.er1
9000 ac_status=$?
9001 grep -v '^ *+' conftest.er1 >conftest.err
9002 rm -f conftest.er1
9003 cat conftest.err >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } && {
9006 test -z "$ac_c_werror_flag" ||
9007 test ! -s conftest.err
9008 } && test -s conftest$ac_exeext &&
9009 $as_test_x conftest$ac_exeext; then
9010 ac_cv_lib_c_getline=yes
9011else
9012 echo "$as_me: failed program was:" >&5
9013sed 's/^/| /' conftest.$ac_ext >&5
9014
9015 ac_cv_lib_c_getline=no
9016fi
9017
9018rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9019 conftest$ac_exeext conftest.$ac_ext
9020LIBS=$ac_check_lib_save_LIBS
9021fi
9022{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
9023echo "${ECHO_T}$ac_cv_lib_c_getline" >&6; }
9024if test $ac_cv_lib_c_getline = yes; then
9025
9026cat >>confdefs.h <<\_ACEOF
9027#define HAVE_GETLINE 1
9028_ACEOF
9029
9030fi
9031
9032
9033################################################################################
9034
9035{ echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
9036echo $ECHO_N "checking for canonicalize_file_name in -lc... $ECHO_C" >&6; }
9037if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9039else
9040 ac_check_lib_save_LIBS=$LIBS
9041LIBS="-lc $LIBS"
9042cat >conftest.$ac_ext <<_ACEOF
9043/* confdefs.h. */
9044_ACEOF
9045cat confdefs.h >>conftest.$ac_ext
9046cat >>conftest.$ac_ext <<_ACEOF
9047/* end confdefs.h. */
9048
9049/* Override any GCC internal prototype to avoid an error.
9050 Use char because int might match the return type of a GCC
9051 builtin and then its argument prototype would still apply. */
9052#ifdef __cplusplus
9053extern "C"
9054#endif
9055char canonicalize_file_name ();
9056int
9057main ()
9058{
9059return canonicalize_file_name ();
9060 ;
9061 return 0;
9062}
9063_ACEOF
9064rm -f conftest.$ac_objext conftest$ac_exeext
9065if { (ac_try="$ac_link"
9066case "(($ac_try" in
9067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9068 *) ac_try_echo=$ac_try;;
9069esac
9070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9071 (eval "$ac_link") 2>conftest.er1
9072 ac_status=$?
9073 grep -v '^ *+' conftest.er1 >conftest.err
9074 rm -f conftest.er1
9075 cat conftest.err >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } && {
9078 test -z "$ac_c_werror_flag" ||
9079 test ! -s conftest.err
9080 } && test -s conftest$ac_exeext &&
9081 $as_test_x conftest$ac_exeext; then
9082 ac_cv_lib_c_canonicalize_file_name=yes
9083else
9084 echo "$as_me: failed program was:" >&5
9085sed 's/^/| /' conftest.$ac_ext >&5
9086
9087 ac_cv_lib_c_canonicalize_file_name=no
9088fi
9089
9090rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9091 conftest$ac_exeext conftest.$ac_ext
9092LIBS=$ac_check_lib_save_LIBS
9093fi
9094{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9095echo "${ECHO_T}$ac_cv_lib_c_canonicalize_file_name" >&6; }
9096if test $ac_cv_lib_c_canonicalize_file_name = yes; then
9097
9098cat >>confdefs.h <<\_ACEOF
9099#define HAVE_CANONICALIZE_FILE_NAME 1
9100_ACEOF
9101
9102fi
9103
9104
d0191583
JM
9105################################################################################
9106if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9107 then exec_prefix="";
9108fi;
ad6254c5
AK
9109
9110################################################################################
06e459df 9111if test x$READLINE != xno; then
68f2de6d
AK
9112 { echo "$as_me:$LINENO: checking for library containing tgetent" >&5
9113echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
ad6254c5 9114if test "${ac_cv_search_tgetent+set}" = set; then
68f2de6d 9115 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9116else
9117 ac_func_search_save_LIBS=$LIBS
ad6254c5 9118cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9119/* confdefs.h. */
9120_ACEOF
9121cat confdefs.h >>conftest.$ac_ext
9122cat >>conftest.$ac_ext <<_ACEOF
9123/* end confdefs.h. */
9124
7a197a62
AK
9125/* Override any GCC internal prototype to avoid an error.
9126 Use char because int might match the return type of a GCC
9127 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9128#ifdef __cplusplus
9129extern "C"
9130#endif
ad6254c5
AK
9131char tgetent ();
9132int
9133main ()
9134{
7a197a62 9135return tgetent ();
ad6254c5
AK
9136 ;
9137 return 0;
9138}
9139_ACEOF
7a197a62
AK
9140for ac_lib in '' ncurses curses termcap termlib; do
9141 if test -z "$ac_lib"; then
9142 ac_res="none required"
9143 else
9144 ac_res=-l$ac_lib
9145 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9146 fi
9147 rm -f conftest.$ac_objext conftest$ac_exeext
9148if { (ac_try="$ac_link"
9149case "(($ac_try" in
9150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9151 *) ac_try_echo=$ac_try;;
9152esac
68f2de6d 9153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9154 (eval "$ac_link") 2>conftest.er1
ad6254c5 9155 ac_status=$?
8a2fc586
AK
9156 grep -v '^ *+' conftest.er1 >conftest.err
9157 rm -f conftest.er1
9158 cat conftest.err >&5
68f2de6d 9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9160 (exit $ac_status); } && {
9161 test -z "$ac_c_werror_flag" ||
9162 test ! -s conftest.err
68f2de6d
AK
9163 } && test -s conftest$ac_exeext &&
9164 $as_test_x conftest$ac_exeext; then
7a197a62 9165 ac_cv_search_tgetent=$ac_res
ad6254c5 9166else
68f2de6d 9167 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9168sed 's/^/| /' conftest.$ac_ext >&5
9169
ad6254c5 9170
7a197a62 9171fi
ad6254c5 9172
25fbec5b 9173rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7a197a62
AK
9174 conftest$ac_exeext
9175 if test "${ac_cv_search_tgetent+set}" = set; then
9176 break
ad6254c5 9177fi
7a197a62
AK
9178done
9179if test "${ac_cv_search_tgetent+set}" = set; then
9180 :
9181else
9182 ac_cv_search_tgetent=no
ad6254c5 9183fi
7a197a62 9184rm conftest.$ac_ext
ad6254c5
AK
9185LIBS=$ac_func_search_save_LIBS
9186fi
68f2de6d
AK
9187{ echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
9188echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
7a197a62
AK
9189ac_res=$ac_cv_search_tgetent
9190if test "$ac_res" != no; then
9191 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
06e459df 9192 tg_found=yes
ad6254c5 9193else
06e459df
JM
9194 tg_found=no
9195fi
9196
9197 test x$READLINE:$tg_found = xyes:no &&
68f2de6d 9198 { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the
ad6254c5
AK
9199--enable-readline option (which is enabled by default). Either disable readline
9200support with --disable-readline or download and install termcap from:
9201 ftp.gnu.org/gnu/termcap
9202Note: if you are using precompiled packages you will also need the development
9203 package as well (which may be called termcap-devel or something similar).
9204Note: (n)curses also seems to work as a substitute for termcap. This was
9205 not found either - but you could try installing that as well.
9206" >&5
68f2de6d 9207echo "$as_me: error: termcap could not be found which is required for the
ad6254c5
AK
9208--enable-readline option (which is enabled by default). Either disable readline
9209support with --disable-readline or download and install termcap from:
9210 ftp.gnu.org/gnu/termcap
9211Note: if you are using precompiled packages you will also need the development
9212 package as well (which may be called termcap-devel or something similar).
9213Note: (n)curses also seems to work as a substitute for termcap. This was
9214 not found either - but you could try installing that as well.
9215" >&2;}
9216 { (exit 1); exit 1; }; }
ad6254c5
AK
9217fi
9218
9219################################################################################
68f2de6d
AK
9220{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9221echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
ad6254c5 9222if test "${ac_cv_lib_dl_dlopen+set}" = set; then
68f2de6d 9223 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9224else
9225 ac_check_lib_save_LIBS=$LIBS
9226LIBS="-ldl $LIBS"
9227cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9228/* confdefs.h. */
9229_ACEOF
9230cat confdefs.h >>conftest.$ac_ext
9231cat >>conftest.$ac_ext <<_ACEOF
9232/* end confdefs.h. */
9233
7a197a62
AK
9234/* Override any GCC internal prototype to avoid an error.
9235 Use char because int might match the return type of a GCC
9236 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9237#ifdef __cplusplus
9238extern "C"
9239#endif
ad6254c5
AK
9240char dlopen ();
9241int
9242main ()
9243{
7a197a62 9244return dlopen ();
ad6254c5
AK
9245 ;
9246 return 0;
9247}
9248_ACEOF
9249rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9250if { (ac_try="$ac_link"
9251case "(($ac_try" in
9252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253 *) ac_try_echo=$ac_try;;
9254esac
68f2de6d 9255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9256 (eval "$ac_link") 2>conftest.er1
ad6254c5 9257 ac_status=$?
8a2fc586
AK
9258 grep -v '^ *+' conftest.er1 >conftest.err
9259 rm -f conftest.er1
9260 cat conftest.err >&5
68f2de6d 9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9262 (exit $ac_status); } && {
9263 test -z "$ac_c_werror_flag" ||
9264 test ! -s conftest.err
68f2de6d
AK
9265 } && test -s conftest$ac_exeext &&
9266 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
9267 ac_cv_lib_dl_dlopen=yes
9268else
68f2de6d 9269 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9270sed 's/^/| /' conftest.$ac_ext >&5
9271
7a197a62 9272 ac_cv_lib_dl_dlopen=no
ad6254c5 9273fi
7a197a62 9274
25fbec5b 9275rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9276 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9277LIBS=$ac_check_lib_save_LIBS
9278fi
68f2de6d
AK
9279{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9280echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
ad6254c5
AK
9281if test $ac_cv_lib_dl_dlopen = yes; then
9282 HAVE_LIBDL=yes
9283else
9284 HAVE_LIBDL=no
9285fi
9286
9287
7e9e9502 9288if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
9289
9290cat >>confdefs.h <<\_ACEOF
9291#define HAVE_LIBDL 1
9292_ACEOF
9293
ad6254c5
AK
9294 LIBS="-ldl $LIBS"
9295else
9296 HAVE_LIBDL=no
9297fi
9298
9299################################################################################
9300if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9301 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
9302 \) -a "x$STATIC_LINK" = xyes ];
68f2de6d 9303 then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 9304" >&5
68f2de6d 9305echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
9306" >&2;}
9307 { (exit 1); exit 1; }; }
9308fi
9309
d0191583 9310################################################################################
68f2de6d
AK
9311{ echo "$as_me:$LINENO: checking whether to use static linking" >&5
9312echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6; }
d0191583
JM
9313# Check whether --enable-static_link was given.
9314if test "${enable_static_link+set}" = set; then
9315 enableval=$enable_static_link; STATIC_LINK=$enableval
9316else
9317 STATIC_LINK=no
9318fi
9319
68f2de6d
AK
9320{ echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
9321echo "${ECHO_T}$STATIC_LINK" >&6; }
d0191583
JM
9322
9323################################################################################
68f2de6d
AK
9324{ echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
9325echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6; }
d0191583
JM
9326# Check whether --enable-selinux was given.
9327if test "${enable_selinux+set}" = set; then
9328 enableval=$enable_selinux; SELINUX=$enableval
9329fi
9330
68f2de6d
AK
9331{ echo "$as_me:$LINENO: result: $SELINUX" >&5
9332echo "${ECHO_T}$SELINUX" >&6; }
d0191583 9333
ad6254c5
AK
9334################################################################################
9335if test x$SELINUX = xyes; then
68f2de6d
AK
9336 { echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
9337echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6; }
8a2fc586 9338if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
68f2de6d 9339 echo $ECHO_N "(cached) $ECHO_C" >&6
8a2fc586
AK
9340else
9341 ac_check_lib_save_LIBS=$LIBS
9342LIBS="-lsepol $LIBS"
9343cat >conftest.$ac_ext <<_ACEOF
9344/* confdefs.h. */
9345_ACEOF
9346cat confdefs.h >>conftest.$ac_ext
9347cat >>conftest.$ac_ext <<_ACEOF
9348/* end confdefs.h. */
9349
7a197a62
AK
9350/* Override any GCC internal prototype to avoid an error.
9351 Use char because int might match the return type of a GCC
9352 builtin and then its argument prototype would still apply. */
8a2fc586
AK
9353#ifdef __cplusplus
9354extern "C"
9355#endif
8a2fc586
AK
9356char sepol_check_context ();
9357int
9358main ()
9359{
7a197a62 9360return sepol_check_context ();
8a2fc586
AK
9361 ;
9362 return 0;
9363}
9364_ACEOF
9365rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9366if { (ac_try="$ac_link"
9367case "(($ac_try" in
9368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9369 *) ac_try_echo=$ac_try;;
9370esac
68f2de6d 9371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9372 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
9373 ac_status=$?
9374 grep -v '^ *+' conftest.er1 >conftest.err
9375 rm -f conftest.er1
9376 cat conftest.err >&5
68f2de6d 9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9378 (exit $ac_status); } && {
9379 test -z "$ac_c_werror_flag" ||
9380 test ! -s conftest.err
68f2de6d
AK
9381 } && test -s conftest$ac_exeext &&
9382 $as_test_x conftest$ac_exeext; then
8a2fc586
AK
9383 ac_cv_lib_sepol_sepol_check_context=yes
9384else
68f2de6d 9385 echo "$as_me: failed program was:" >&5
8a2fc586
AK
9386sed 's/^/| /' conftest.$ac_ext >&5
9387
7a197a62 9388 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 9389fi
7a197a62 9390
25fbec5b 9391rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
9392 conftest$ac_exeext conftest.$ac_ext
9393LIBS=$ac_check_lib_save_LIBS
9394fi
68f2de6d
AK
9395{ echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9396echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6; }
8a2fc586
AK
9397if test $ac_cv_lib_sepol_sepol_check_context = yes; then
9398 HAVE_SEPOL=yes
9399else
9400 HAVE_SEPOL=no
9401fi
9402
8a2fc586
AK
9403
9404 if test x$HAVE_SEPOL = xyes; then
d0191583
JM
9405
9406cat >>confdefs.h <<\_ACEOF
9407#define HAVE_SEPOL 1
9408_ACEOF
9409
8a2fc586
AK
9410 LIBS="-lsepol $LIBS"
9411 fi
9412
68f2de6d
AK
9413 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
9414echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
ad6254c5 9415if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
68f2de6d 9416 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9417else
9418 ac_check_lib_save_LIBS=$LIBS
9419LIBS="-lselinux $LIBS"
9420cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9421/* confdefs.h. */
9422_ACEOF
9423cat confdefs.h >>conftest.$ac_ext
9424cat >>conftest.$ac_ext <<_ACEOF
9425/* end confdefs.h. */
9426
7a197a62
AK
9427/* Override any GCC internal prototype to avoid an error.
9428 Use char because int might match the return type of a GCC
9429 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9430#ifdef __cplusplus
9431extern "C"
9432#endif
ad6254c5
AK
9433char is_selinux_enabled ();
9434int
9435main ()
9436{
7a197a62 9437return is_selinux_enabled ();
ad6254c5
AK
9438 ;
9439 return 0;
9440}
9441_ACEOF
9442rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9443if { (ac_try="$ac_link"
9444case "(($ac_try" in
9445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9446 *) ac_try_echo=$ac_try;;
9447esac
68f2de6d 9448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9449 (eval "$ac_link") 2>conftest.er1
ad6254c5 9450 ac_status=$?
8a2fc586
AK
9451 grep -v '^ *+' conftest.er1 >conftest.err
9452 rm -f conftest.er1
9453 cat conftest.err >&5
68f2de6d 9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9455 (exit $ac_status); } && {
9456 test -z "$ac_c_werror_flag" ||
9457 test ! -s conftest.err
68f2de6d
AK
9458 } && test -s conftest$ac_exeext &&
9459 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
9460 ac_cv_lib_selinux_is_selinux_enabled=yes
9461else
68f2de6d 9462 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9463sed 's/^/| /' conftest.$ac_ext >&5
9464
7a197a62 9465 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 9466fi
7a197a62 9467
25fbec5b 9468rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9469 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9470LIBS=$ac_check_lib_save_LIBS
9471fi
68f2de6d
AK
9472{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9473echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
ad6254c5
AK
9474if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
9475 HAVE_SELINUX=yes
9476else
9477 HAVE_SELINUX=no
9478fi
9479
ad6254c5
AK
9480
9481 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
9482
9483cat >>confdefs.h <<\_ACEOF
9484#define HAVE_SELINUX 1
9485_ACEOF
9486
ad6254c5
AK
9487 LIBS="-lselinux $LIBS"
9488 else
68f2de6d
AK
9489 { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
9490echo "$as_me: WARNING: Disabling selinux" >&2;}
66e941e8
JM
9491 fi
9492
d0191583 9493 # With --enable-static_link and selinux enabled, linking
66e941e8
JM
9494 # fails on at least Debian unstable due to unsatisfied references
9495 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
9496 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
9497 lvm_saved_libs=$LIBS
9498 LIBS="$LIBS -static"
68f2de6d
AK
9499 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9500echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
66e941e8 9501if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
68f2de6d 9502 echo $ECHO_N "(cached) $ECHO_C" >&6
66e941e8
JM
9503else
9504 ac_func_search_save_LIBS=$LIBS
9505cat >conftest.$ac_ext <<_ACEOF
9506/* confdefs.h. */
9507_ACEOF
9508cat confdefs.h >>conftest.$ac_ext
9509cat >>conftest.$ac_ext <<_ACEOF
9510/* end confdefs.h. */
9511
9512/* Override any GCC internal prototype to avoid an error.
9513 Use char because int might match the return type of a GCC
9514 builtin and then its argument prototype would still apply. */
9515#ifdef __cplusplus
9516extern "C"
9517#endif
9518char pthread_mutex_lock ();
9519int
9520main ()
9521{
9522return pthread_mutex_lock ();
9523 ;
9524 return 0;
9525}
9526_ACEOF
9527for ac_lib in '' pthread; do
9528 if test -z "$ac_lib"; then
9529 ac_res="none required"
9530 else
9531 ac_res=-l$ac_lib
9532 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9533 fi
9534 rm -f conftest.$ac_objext conftest$ac_exeext
9535if { (ac_try="$ac_link"
9536case "(($ac_try" in
9537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9538 *) ac_try_echo=$ac_try;;
9539esac
68f2de6d 9540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66e941e8
JM
9541 (eval "$ac_link") 2>conftest.er1
9542 ac_status=$?
9543 grep -v '^ *+' conftest.er1 >conftest.err
9544 rm -f conftest.er1
9545 cat conftest.err >&5
68f2de6d 9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9547 (exit $ac_status); } && {
9548 test -z "$ac_c_werror_flag" ||
9549 test ! -s conftest.err
68f2de6d
AK
9550 } && test -s conftest$ac_exeext &&
9551 $as_test_x conftest$ac_exeext; then
66e941e8
JM
9552 ac_cv_search_pthread_mutex_lock=$ac_res
9553else
68f2de6d 9554 echo "$as_me: failed program was:" >&5
66e941e8
JM
9555sed 's/^/| /' conftest.$ac_ext >&5
9556
9557
9558fi
9559
25fbec5b 9560rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66e941e8
JM
9561 conftest$ac_exeext
9562 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9563 break
9564fi
9565done
9566if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9567 :
9568else
9569 ac_cv_search_pthread_mutex_lock=no
9570fi
9571rm conftest.$ac_ext
9572LIBS=$ac_func_search_save_LIBS
9573fi
68f2de6d
AK
9574{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9575echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
66e941e8
JM
9576ac_res=$ac_cv_search_pthread_mutex_lock
9577if test "$ac_res" != no; then
9578 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9579 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
9580 LIB_PTHREAD=-lpthread
9581fi
9582
9583 LIBS=$lvm_saved_libs
ad6254c5
AK
9584 fi
9585fi
9586
8b1a3214
AK
9587################################################################################
9588if test x$REALTIME = xyes; then
68f2de6d
AK
9589 { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
9590echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
8b1a3214 9591if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
68f2de6d 9592 echo $ECHO_N "(cached) $ECHO_C" >&6
8b1a3214
AK
9593else
9594 ac_check_lib_save_LIBS=$LIBS
9595LIBS="-lrt $LIBS"
9596cat >conftest.$ac_ext <<_ACEOF
9597/* confdefs.h. */
9598_ACEOF
9599cat confdefs.h >>conftest.$ac_ext
9600cat >>conftest.$ac_ext <<_ACEOF
9601/* end confdefs.h. */
9602
7a197a62
AK
9603/* Override any GCC internal prototype to avoid an error.
9604 Use char because int might match the return type of a GCC
9605 builtin and then its argument prototype would still apply. */
8b1a3214
AK
9606#ifdef __cplusplus
9607extern "C"
9608#endif
8b1a3214
AK
9609char clock_gettime ();
9610int
9611main ()
9612{
7a197a62 9613return clock_gettime ();
8b1a3214
AK
9614 ;
9615 return 0;
9616}
9617_ACEOF
9618rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9619if { (ac_try="$ac_link"
9620case "(($ac_try" in
9621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622 *) ac_try_echo=$ac_try;;
9623esac
68f2de6d 9624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9625 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
9626 ac_status=$?
9627 grep -v '^ *+' conftest.er1 >conftest.err
9628 rm -f conftest.er1
9629 cat conftest.err >&5
68f2de6d 9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9631 (exit $ac_status); } && {
9632 test -z "$ac_c_werror_flag" ||
9633 test ! -s conftest.err
68f2de6d
AK
9634 } && test -s conftest$ac_exeext &&
9635 $as_test_x conftest$ac_exeext; then
8b1a3214
AK
9636 ac_cv_lib_rt_clock_gettime=yes
9637else
68f2de6d 9638 echo "$as_me: failed program was:" >&5
8b1a3214
AK
9639sed 's/^/| /' conftest.$ac_ext >&5
9640
7a197a62 9641 ac_cv_lib_rt_clock_gettime=no
8b1a3214 9642fi
7a197a62 9643
25fbec5b 9644rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
9645 conftest$ac_exeext conftest.$ac_ext
9646LIBS=$ac_check_lib_save_LIBS
9647fi
68f2de6d
AK
9648{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
9649echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
8b1a3214
AK
9650if test $ac_cv_lib_rt_clock_gettime = yes; then
9651 HAVE_REALTIME=yes
9652else
9653 HAVE_REALTIME=no
9654fi
9655
8b1a3214
AK
9656
9657 if test x$HAVE_REALTIME = xyes; then
9658
9659cat >>confdefs.h <<\_ACEOF
9660#define HAVE_REALTIME 1
9661_ACEOF
9662
9663 LIBS="-lrt $LIBS"
9664 else
68f2de6d
AK
9665 { echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
9666echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
9667 fi
9668fi
9669
ad6254c5
AK
9670################################################################################
9671
9672for ac_header in getopt.h
9673do
68f2de6d 9674as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9675if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
9676 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9677echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9678if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 9679 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9680fi
68f2de6d
AK
9681ac_res=`eval echo '${'$as_ac_Header'}'`
9682 { echo "$as_me:$LINENO: result: $ac_res" >&5
9683echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9684else
9685 # Is the header compilable?
68f2de6d
AK
9686{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9687echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 9688cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9689/* confdefs.h. */
9690_ACEOF
9691cat confdefs.h >>conftest.$ac_ext
9692cat >>conftest.$ac_ext <<_ACEOF
9693/* end confdefs.h. */
9694$ac_includes_default
9695#include <$ac_header>
9696_ACEOF
9697rm -f conftest.$ac_objext
7a197a62
AK
9698if { (ac_try="$ac_compile"
9699case "(($ac_try" in
9700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9701 *) ac_try_echo=$ac_try;;
9702esac
68f2de6d 9703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9704 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9705 ac_status=$?
8a2fc586
AK
9706 grep -v '^ *+' conftest.er1 >conftest.err
9707 rm -f conftest.er1
9708 cat conftest.err >&5
68f2de6d 9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9710 (exit $ac_status); } && {
9711 test -z "$ac_c_werror_flag" ||
9712 test ! -s conftest.err
9713 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9714 ac_header_compiler=yes
9715else
68f2de6d 9716 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9717sed 's/^/| /' conftest.$ac_ext >&5
9718
7a197a62 9719 ac_header_compiler=no
ad6254c5 9720fi
7a197a62
AK
9721
9722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
9723{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9724echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
9725
9726# Is the header present?
68f2de6d
AK
9727{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9728echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 9729cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9730/* confdefs.h. */
9731_ACEOF
9732cat confdefs.h >>conftest.$ac_ext
9733cat >>conftest.$ac_ext <<_ACEOF
9734/* end confdefs.h. */
9735#include <$ac_header>
9736_ACEOF
7a197a62
AK
9737if { (ac_try="$ac_cpp conftest.$ac_ext"
9738case "(($ac_try" in
9739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9740 *) ac_try_echo=$ac_try;;
9741esac
68f2de6d 9742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9744 ac_status=$?
9745 grep -v '^ *+' conftest.er1 >conftest.err
9746 rm -f conftest.er1
9747 cat conftest.err >&5
68f2de6d 9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9749 (exit $ac_status); } >/dev/null && {
9750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9751 test ! -s conftest.err
9752 }; then
ad6254c5
AK
9753 ac_header_preproc=yes
9754else
68f2de6d 9755 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9756sed 's/^/| /' conftest.$ac_ext >&5
9757
9758 ac_header_preproc=no
9759fi
7a197a62 9760
ad6254c5 9761rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
9762{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9763echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
9764
9765# So? What about this header?
8a2fc586
AK
9766case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9767 yes:no: )
68f2de6d
AK
9768 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9769echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9771echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9772 ac_header_preproc=yes
ad6254c5 9773 ;;
8a2fc586 9774 no:yes:* )
68f2de6d
AK
9775 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9776echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9777 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9778echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9779 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9780echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9781 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9782echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9784echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9785 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9786echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9787
ad6254c5
AK
9788 ;;
9789esac
68f2de6d
AK
9790{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 9793 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9794else
8a2fc586 9795 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9796fi
68f2de6d
AK
9797ac_res=`eval echo '${'$as_ac_Header'}'`
9798 { echo "$as_me:$LINENO: result: $ac_res" >&5
9799echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9800
9801fi
68f2de6d 9802if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 9803 cat >>confdefs.h <<_ACEOF
68f2de6d 9804#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9805_ACEOF
72b2cb61
AK
9806
9807cat >>confdefs.h <<\_ACEOF
9808#define HAVE_GETOPTLONG 1
9809_ACEOF
9810
ad6254c5
AK
9811fi
9812
9813done
9814
9815
9816################################################################################
06e459df 9817if test x$READLINE != xno; then
bc1024f8
JM
9818 rl_found=yes
9819
68f2de6d
AK
9820{ echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
9821echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
ad6254c5 9822if test "${ac_cv_lib_readline_readline+set}" = set; then
68f2de6d 9823 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9824else
9825 ac_check_lib_save_LIBS=$LIBS
9826LIBS="-lreadline $LIBS"
9827cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9828/* confdefs.h. */
9829_ACEOF
9830cat confdefs.h >>conftest.$ac_ext
9831cat >>conftest.$ac_ext <<_ACEOF
9832/* end confdefs.h. */
9833
7a197a62
AK
9834/* Override any GCC internal prototype to avoid an error.
9835 Use char because int might match the return type of a GCC
9836 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9837#ifdef __cplusplus
9838extern "C"
9839#endif
ad6254c5
AK
9840char readline ();
9841int
9842main ()
9843{
7a197a62 9844return readline ();
ad6254c5
AK
9845 ;
9846 return 0;
9847}
9848_ACEOF
9849rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9850if { (ac_try="$ac_link"
9851case "(($ac_try" in
9852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9853 *) ac_try_echo=$ac_try;;
9854esac
68f2de6d 9855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9856 (eval "$ac_link") 2>conftest.er1
ad6254c5 9857 ac_status=$?
8a2fc586
AK
9858 grep -v '^ *+' conftest.er1 >conftest.err
9859 rm -f conftest.er1
9860 cat conftest.err >&5
68f2de6d 9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9862 (exit $ac_status); } && {
9863 test -z "$ac_c_werror_flag" ||
9864 test ! -s conftest.err
68f2de6d
AK
9865 } && test -s conftest$ac_exeext &&
9866 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
9867 ac_cv_lib_readline_readline=yes
9868else
68f2de6d 9869 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9870sed 's/^/| /' conftest.$ac_ext >&5
9871
7a197a62 9872 ac_cv_lib_readline_readline=no
ad6254c5 9873fi
7a197a62 9874
25fbec5b 9875rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9876 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9877LIBS=$ac_check_lib_save_LIBS
9878fi
68f2de6d
AK
9879{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
9880echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
ad6254c5 9881if test $ac_cv_lib_readline_readline = yes; then
bc1024f8
JM
9882 cat >>confdefs.h <<_ACEOF
9883#define HAVE_LIBREADLINE 1
9884_ACEOF
9885
9886 LIBS="-lreadline $LIBS"
9887
ad6254c5 9888else
06e459df
JM
9889 rl_found=no
9890fi
9891
9892 test x$READLINE:$rl_found = xyes:no &&
68f2de6d 9893 { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
9894--enable-readline option (which is enabled by default). Either disable readline
9895support with --disable-readline or download and install readline from:
9896 ftp.gnu.org/gnu/readline
9897Note: if you are using precompiled packages you will also need the development
9898package as well (which may be called readline-devel or something similar).
9899" >&5
68f2de6d 9900echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
9901--enable-readline option (which is enabled by default). Either disable readline
9902support with --disable-readline or download and install readline from:
9903 ftp.gnu.org/gnu/readline
9904Note: if you are using precompiled packages you will also need the development
9905package as well (which may be called readline-devel or something similar).
9906" >&2;}
9907 { (exit 1); exit 1; }; }
06e459df 9908 if test $rl_found = yes; then
bc1024f8
JM
9909
9910for ac_func in rl_completion_matches
9911do
68f2de6d
AK
9912as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9913{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9914echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
bc1024f8 9915if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 9916 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9917else
9918 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9919/* confdefs.h. */
9920_ACEOF
9921cat confdefs.h >>conftest.$ac_ext
9922cat >>conftest.$ac_ext <<_ACEOF
9923/* end confdefs.h. */
bc1024f8 9924/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 9925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 9926#define $ac_func innocuous_$ac_func
8a2fc586 9927
ad6254c5 9928/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 9929 which can conflict with char $ac_func (); below.
ad6254c5
AK
9930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9931 <limits.h> exists even on freestanding compilers. */
8a2fc586 9932
ad6254c5
AK
9933#ifdef __STDC__
9934# include <limits.h>
9935#else
9936# include <assert.h>
9937#endif
8a2fc586 9938
bc1024f8 9939#undef $ac_func
8a2fc586 9940
7a197a62
AK
9941/* Override any GCC internal prototype to avoid an error.
9942 Use char because int might match the return type of a GCC
9943 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9944#ifdef __cplusplus
9945extern "C"
ad6254c5 9946#endif
bc1024f8 9947char $ac_func ();
ad6254c5
AK
9948/* The GNU C library defines this for functions which it implements
9949 to always fail with ENOSYS. Some functions are actually named
9950 something starting with __ and the normal name is an alias. */
bc1024f8 9951#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 9952choke me
ad6254c5
AK
9953#endif
9954
9955int
9956main ()
9957{
bc1024f8 9958return $ac_func ();
ad6254c5
AK
9959 ;
9960 return 0;
9961}
9962_ACEOF
9963rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9964if { (ac_try="$ac_link"
9965case "(($ac_try" in
9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967 *) ac_try_echo=$ac_try;;
9968esac
68f2de6d 9969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9970 (eval "$ac_link") 2>conftest.er1
ad6254c5 9971 ac_status=$?
8a2fc586
AK
9972 grep -v '^ *+' conftest.er1 >conftest.err
9973 rm -f conftest.er1
9974 cat conftest.err >&5
68f2de6d 9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9976 (exit $ac_status); } && {
9977 test -z "$ac_c_werror_flag" ||
9978 test ! -s conftest.err
68f2de6d
AK
9979 } && test -s conftest$ac_exeext &&
9980 $as_test_x conftest$ac_exeext; then
bc1024f8 9981 eval "$as_ac_var=yes"
ad6254c5 9982else
68f2de6d 9983 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9984sed 's/^/| /' conftest.$ac_ext >&5
9985
bc1024f8 9986 eval "$as_ac_var=no"
ad6254c5 9987fi
7a197a62 9988
25fbec5b 9989rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9990 conftest$ac_exeext conftest.$ac_ext
ad6254c5 9991fi
68f2de6d
AK
9992ac_res=`eval echo '${'$as_ac_var'}'`
9993 { echo "$as_me:$LINENO: result: $ac_res" >&5
9994echo "${ECHO_T}$ac_res" >&6; }
9995if test `eval echo '${'$as_ac_var'}'` = yes; then
bc1024f8 9996 cat >>confdefs.h <<_ACEOF
68f2de6d 9997#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
9998_ACEOF
9999
10000fi
bc1024f8 10001done
ad6254c5 10002
d179cc7a
JM
10003
10004cat >>confdefs.h <<\_ACEOF
10005#define READLINE_SUPPORT 1
10006_ACEOF
10007
06e459df 10008 fi
ad6254c5
AK
10009fi
10010
10011################################################################################
68f2de6d
AK
10012{ echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
10013echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6; }
7a197a62 10014# Check whether --enable-nls was given.
ad6254c5 10015if test "${enable_nls+set}" = set; then
7a197a62 10016 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
10017else
10018 INTL=no
7a197a62
AK
10019fi
10020
68f2de6d
AK
10021{ echo "$as_me:$LINENO: result: $INTL" >&5
10022echo "${ECHO_T}$INTL" >&6; }
ad6254c5
AK
10023
10024if test x$INTL = xyes; then
93bd259b 10025# FIXME - Move this - can be device-mapper too
ad6254c5
AK
10026 INTL_PACKAGE="lvm2"
10027 # Extract the first word of "msgfmt", so it can be a program name with args.
10028set dummy msgfmt; ac_word=$2
68f2de6d
AK
10029{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 10031if test "${ac_cv_path_MSGFMT+set}" = set; then
68f2de6d 10032 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
10033else
10034 case $MSGFMT in
10035 [\\/]* | ?:[\\/]*)
10036 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10037 ;;
10038 *)
10039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10040for as_dir in $PATH
10041do
10042 IFS=$as_save_IFS
10043 test -z "$as_dir" && as_dir=.
10044 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 10045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 10046 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 10047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
10048 break 2
10049 fi
10050done
10051done
7a197a62 10052IFS=$as_save_IFS
ad6254c5
AK
10053
10054 ;;
10055esac
10056fi
10057MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 10058if test -n "$MSGFMT"; then
68f2de6d
AK
10059 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
10060echo "${ECHO_T}$MSGFMT" >&6; }
ad6254c5 10061else
68f2de6d
AK
10062 { echo "$as_me:$LINENO: result: no" >&5
10063echo "${ECHO_T}no" >&6; }
ad6254c5
AK
10064fi
10065
7a197a62 10066
ad6254c5 10067 if [ "x$MSGFMT" == x ];
68f2de6d 10068 then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 10069 " >&5
68f2de6d 10070echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
10071 " >&2;}
10072 { (exit 1); exit 1; }; }
10073 fi;
10074
10075
7a197a62 10076# Check whether --with-localedir was given.
ad6254c5 10077if test "${with_localedir+set}" = set; then
7a197a62 10078 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
10079else
10080 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
10081fi
10082
ad6254c5
AK
10083fi
10084
10085################################################################################
10086
7a197a62 10087# Check whether --with-confdir was given.
ad6254c5 10088if test "${with_confdir+set}" = set; then
7a197a62 10089 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
10090else
10091 CONFDIR='/etc'
7a197a62
AK
10092fi
10093
ad6254c5
AK
10094
10095
7a197a62 10096# Check whether --with-staticdir was given.
ad6254c5 10097if test "${with_staticdir+set}" = set; then
7a197a62 10098 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
10099else
10100 STATICDIR='${exec_prefix}/sbin'
7a197a62 10101fi
ad6254c5 10102
33f732c5 10103
7a197a62 10104
68f2de6d
AK
10105# Check whether --with-usrlibdir was given.
10106if test "${with_usrlibdir+set}" = set; then
10107 withval=$with_usrlibdir; usrlibdir="$withval"
10108else
10109 usrlibdir='${prefix}/lib'
10110fi
10111
10112
10113
10114# Check whether --with-usrsbindir was given.
10115if test "${with_usrsbindir+set}" = set; then
10116 withval=$with_usrsbindir; usrsbindir="$withval"
10117else
10118 usrsbindir='${prefix}/sbin'
10119fi
10120
10121
ad6254c5
AK
10122################################################################################
10123if test x$READLINE = xyes; then
10124
10125
10126for ac_header in readline/readline.h readline/history.h
10127do
68f2de6d 10128as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
10130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10132if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10133 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10134fi
68f2de6d
AK
10135ac_res=`eval echo '${'$as_ac_Header'}'`
10136 { echo "$as_me:$LINENO: result: $ac_res" >&5
10137echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10138else
10139 # Is the header compilable?
68f2de6d
AK
10140{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10141echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10142cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10143/* confdefs.h. */
10144_ACEOF
10145cat confdefs.h >>conftest.$ac_ext
10146cat >>conftest.$ac_ext <<_ACEOF
10147/* end confdefs.h. */
10148$ac_includes_default
10149#include <$ac_header>
10150_ACEOF
10151rm -f conftest.$ac_objext
7a197a62
AK
10152if { (ac_try="$ac_compile"
10153case "(($ac_try" in
10154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10155 *) ac_try_echo=$ac_try;;
10156esac
68f2de6d 10157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10158 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10159 ac_status=$?
8a2fc586
AK
10160 grep -v '^ *+' conftest.er1 >conftest.err
10161 rm -f conftest.er1
10162 cat conftest.err >&5
68f2de6d 10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10164 (exit $ac_status); } && {
10165 test -z "$ac_c_werror_flag" ||
10166 test ! -s conftest.err
10167 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10168 ac_header_compiler=yes
10169else
68f2de6d 10170 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10171sed 's/^/| /' conftest.$ac_ext >&5
10172
7a197a62 10173 ac_header_compiler=no
ad6254c5 10174fi
7a197a62
AK
10175
10176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
10177{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10178echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10179
10180# Is the header present?
68f2de6d
AK
10181{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10182echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10183cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10184/* confdefs.h. */
10185_ACEOF
10186cat confdefs.h >>conftest.$ac_ext
10187cat >>conftest.$ac_ext <<_ACEOF
10188/* end confdefs.h. */
10189#include <$ac_header>
10190_ACEOF
7a197a62
AK
10191if { (ac_try="$ac_cpp conftest.$ac_ext"
10192case "(($ac_try" in
10193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194 *) ac_try_echo=$ac_try;;
10195esac
68f2de6d 10196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10198 ac_status=$?
10199 grep -v '^ *+' conftest.er1 >conftest.err
10200 rm -f conftest.er1
10201 cat conftest.err >&5
68f2de6d 10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10203 (exit $ac_status); } >/dev/null && {
10204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10205 test ! -s conftest.err
10206 }; then
ad6254c5
AK
10207 ac_header_preproc=yes
10208else
68f2de6d 10209 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10210sed 's/^/| /' conftest.$ac_ext >&5
10211
10212 ac_header_preproc=no
10213fi
7a197a62 10214
ad6254c5 10215rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
10216{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10217echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10218
10219# So? What about this header?
8a2fc586
AK
10220case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10221 yes:no: )
68f2de6d
AK
10222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10223echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10225echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10226 ac_header_preproc=yes
ad6254c5 10227 ;;
8a2fc586 10228 no:yes:* )
68f2de6d
AK
10229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10230echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10232echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10234echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10236echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10238echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10240echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10241
ad6254c5
AK
10242 ;;
10243esac
68f2de6d
AK
10244{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10246if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10247 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10248else
8a2fc586 10249 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10250fi
68f2de6d
AK
10251ac_res=`eval echo '${'$as_ac_Header'}'`
10252 { echo "$as_me:$LINENO: result: $ac_res" >&5
10253echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10254
10255fi
68f2de6d 10256if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10257 cat >>confdefs.h <<_ACEOF
68f2de6d 10258#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10259_ACEOF
10260
10261else
68f2de6d
AK
10262 { { echo "$as_me:$LINENO: error: bailing out" >&5
10263echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
10264 { (exit 1); exit 1; }; }
10265fi
10266
10267done
10268
10269fi
10270
5c7fc7c4 10271if test x$CLVMD != xnone; then
ad6254c5
AK
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282for 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
10283do
68f2de6d 10284as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
10286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10287echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10288if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10289 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10290fi
68f2de6d
AK
10291ac_res=`eval echo '${'$as_ac_Header'}'`
10292 { echo "$as_me:$LINENO: result: $ac_res" >&5
10293echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10294else
10295 # Is the header compilable?
68f2de6d
AK
10296{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10297echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10298cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10299/* confdefs.h. */
10300_ACEOF
10301cat confdefs.h >>conftest.$ac_ext
10302cat >>conftest.$ac_ext <<_ACEOF
10303/* end confdefs.h. */
10304$ac_includes_default
10305#include <$ac_header>
10306_ACEOF
10307rm -f conftest.$ac_objext
7a197a62
AK
10308if { (ac_try="$ac_compile"
10309case "(($ac_try" in
10310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10311 *) ac_try_echo=$ac_try;;
10312esac
68f2de6d 10313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10314 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10315 ac_status=$?
8a2fc586
AK
10316 grep -v '^ *+' conftest.er1 >conftest.err
10317 rm -f conftest.er1
10318 cat conftest.err >&5
68f2de6d 10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10320 (exit $ac_status); } && {
10321 test -z "$ac_c_werror_flag" ||
10322 test ! -s conftest.err
10323 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10324 ac_header_compiler=yes
10325else
68f2de6d 10326 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10327sed 's/^/| /' conftest.$ac_ext >&5
10328
7a197a62 10329 ac_header_compiler=no
ad6254c5 10330fi
7a197a62
AK
10331
10332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
10333{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10334echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10335
10336# Is the header present?
68f2de6d
AK
10337{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10338echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10339cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10340/* confdefs.h. */
10341_ACEOF
10342cat confdefs.h >>conftest.$ac_ext
10343cat >>conftest.$ac_ext <<_ACEOF
10344/* end confdefs.h. */
10345#include <$ac_header>
10346_ACEOF
7a197a62
AK
10347if { (ac_try="$ac_cpp conftest.$ac_ext"
10348case "(($ac_try" in
10349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10350 *) ac_try_echo=$ac_try;;
10351esac
68f2de6d 10352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10354 ac_status=$?
10355 grep -v '^ *+' conftest.er1 >conftest.err
10356 rm -f conftest.er1
10357 cat conftest.err >&5
68f2de6d 10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10359 (exit $ac_status); } >/dev/null && {
10360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10361 test ! -s conftest.err
10362 }; then
ad6254c5
AK
10363 ac_header_preproc=yes
10364else
68f2de6d 10365 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10366sed 's/^/| /' conftest.$ac_ext >&5
10367
10368 ac_header_preproc=no
10369fi
7a197a62 10370
ad6254c5 10371rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
10372{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10373echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10374
10375# So? What about this header?
8a2fc586
AK
10376case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10377 yes:no: )
68f2de6d
AK
10378 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10379echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10381echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10382 ac_header_preproc=yes
ad6254c5 10383 ;;
8a2fc586 10384 no:yes:* )
68f2de6d
AK
10385 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10386echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10387 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10388echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10389 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10390echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10391 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10392echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10394echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10395 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10396echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10397
ad6254c5
AK
10398 ;;
10399esac
68f2de6d
AK
10400{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10402if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10403 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10404else
8a2fc586 10405 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10406fi
68f2de6d
AK
10407ac_res=`eval echo '${'$as_ac_Header'}'`
10408 { echo "$as_me:$LINENO: result: $ac_res" >&5
10409echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10410
10411fi
68f2de6d 10412if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10413 cat >>confdefs.h <<_ACEOF
68f2de6d 10414#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10415_ACEOF
10416
10417else
68f2de6d
AK
10418 { { echo "$as_me:$LINENO: error: bailing out" >&5
10419echo "$as_me: error: bailing out" >&2;}
ad6254c5 10420 { (exit 1); exit 1; }; }
795ca3e5
AK
10421fi
10422
ad6254c5
AK
10423done
10424
10425
795ca3e5 10426
8106cdd5 10427
ad6254c5
AK
10428
10429
10430for ac_func in dup2 getmntent memmove select socket
10431do
68f2de6d
AK
10432as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10433{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10434echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 10435if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10436 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 10437else
ad6254c5 10438 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10439/* confdefs.h. */
10440_ACEOF
10441cat confdefs.h >>conftest.$ac_ext
10442cat >>conftest.$ac_ext <<_ACEOF
10443/* end confdefs.h. */
8a2fc586
AK
10444/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10446#define $ac_func innocuous_$ac_func
10447
795ca3e5 10448/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
10449 which can conflict with char $ac_func (); below.
10450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10451 <limits.h> exists even on freestanding compilers. */
8a2fc586 10452
ad6254c5
AK
10453#ifdef __STDC__
10454# include <limits.h>
10455#else
10456# include <assert.h>
10457#endif
8a2fc586
AK
10458
10459#undef $ac_func
10460
7a197a62
AK
10461/* Override any GCC internal prototype to avoid an error.
10462 Use char because int might match the return type of a GCC
10463 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10464#ifdef __cplusplus
10465extern "C"
ad6254c5 10466#endif
ad6254c5 10467char $ac_func ();
795ca3e5
AK
10468/* The GNU C library defines this for functions which it implements
10469 to always fail with ENOSYS. Some functions are actually named
10470 something starting with __ and the normal name is an alias. */
7a197a62 10471#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 10472choke me
795ca3e5
AK
10473#endif
10474
ad6254c5
AK
10475int
10476main ()
10477{
7a197a62 10478return $ac_func ();
ad6254c5
AK
10479 ;
10480 return 0;
10481}
10482_ACEOF
10483rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10484if { (ac_try="$ac_link"
10485case "(($ac_try" in
10486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10487 *) ac_try_echo=$ac_try;;
10488esac
68f2de6d 10489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10490 (eval "$ac_link") 2>conftest.er1
ad6254c5 10491 ac_status=$?
8a2fc586
AK
10492 grep -v '^ *+' conftest.er1 >conftest.err
10493 rm -f conftest.er1
10494 cat conftest.err >&5
68f2de6d 10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10496 (exit $ac_status); } && {
10497 test -z "$ac_c_werror_flag" ||
10498 test ! -s conftest.err
68f2de6d
AK
10499 } && test -s conftest$ac_exeext &&
10500 $as_test_x conftest$ac_exeext; then
ad6254c5 10501 eval "$as_ac_var=yes"
795ca3e5 10502else
68f2de6d 10503 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10504sed 's/^/| /' conftest.$ac_ext >&5
10505
7a197a62 10506 eval "$as_ac_var=no"
80992638 10507fi
7a197a62 10508
25fbec5b 10509rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10510 conftest$ac_exeext conftest.$ac_ext
795ca3e5 10511fi
68f2de6d
AK
10512ac_res=`eval echo '${'$as_ac_var'}'`
10513 { echo "$as_me:$LINENO: result: $ac_res" >&5
10514echo "${ECHO_T}$ac_res" >&6; }
10515if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 10516 cat >>confdefs.h <<_ACEOF
68f2de6d 10517#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 10518_ACEOF
80992638
AK
10519
10520else
68f2de6d
AK
10521 { { echo "$as_me:$LINENO: error: bailing out" >&5
10522echo "$as_me: error: bailing out" >&2;}
ad6254c5 10523 { (exit 1); exit 1; }; }
8106cdd5 10524fi
ad6254c5 10525done
795ca3e5 10526
25fbec5b
AK
10527 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
10528# -lseq on Dynix/PTX, -lgen on Unixware.
68f2de6d
AK
10529{ echo "$as_me:$LINENO: checking for library containing getmntent" >&5
10530echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
25fbec5b 10531if test "${ac_cv_search_getmntent+set}" = set; then
68f2de6d 10532 echo $ECHO_N "(cached) $ECHO_C" >&6
25fbec5b
AK
10533else
10534 ac_func_search_save_LIBS=$LIBS
10535cat >conftest.$ac_ext <<_ACEOF
10536/* confdefs.h. */
10537_ACEOF
10538cat confdefs.h >>conftest.$ac_ext
10539cat >>conftest.$ac_ext <<_ACEOF
10540/* end confdefs.h. */
80992638 10541
7a197a62
AK
10542/* Override any GCC internal prototype to avoid an error.
10543 Use char because int might match the return type of a GCC
ad6254c5 10544 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10545#ifdef __cplusplus
10546extern "C"
10547#endif
25fbec5b 10548char getmntent ();
ad6254c5
AK
10549int
10550main ()
10551{
25fbec5b 10552return getmntent ();
ad6254c5
AK
10553 ;
10554 return 0;
10555}
10556_ACEOF
25fbec5b
AK
10557for ac_lib in '' sun seq gen; do
10558 if test -z "$ac_lib"; then
10559 ac_res="none required"
10560 else
10561 ac_res=-l$ac_lib
10562 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10563 fi
10564 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10565if { (ac_try="$ac_link"
10566case "(($ac_try" in
10567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10568 *) ac_try_echo=$ac_try;;
10569esac
68f2de6d 10570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10571 (eval "$ac_link") 2>conftest.er1
ad6254c5 10572 ac_status=$?
8a2fc586
AK
10573 grep -v '^ *+' conftest.er1 >conftest.err
10574 rm -f conftest.er1
10575 cat conftest.err >&5
68f2de6d 10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10577 (exit $ac_status); } && {
10578 test -z "$ac_c_werror_flag" ||
10579 test ! -s conftest.err
68f2de6d
AK
10580 } && test -s conftest$ac_exeext &&
10581 $as_test_x conftest$ac_exeext; then
25fbec5b 10582 ac_cv_search_getmntent=$ac_res
80992638 10583else
68f2de6d 10584 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10585sed 's/^/| /' conftest.$ac_ext >&5
10586
25fbec5b 10587
795ca3e5
AK
10588fi
10589
25fbec5b
AK
10590rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10591 conftest$ac_exeext
10592 if test "${ac_cv_search_getmntent+set}" = set; then
10593 break
795ca3e5 10594fi
25fbec5b
AK
10595done
10596if test "${ac_cv_search_getmntent+set}" = set; then
10597 :
10598else
10599 ac_cv_search_getmntent=no
10600fi
10601rm conftest.$ac_ext
10602LIBS=$ac_func_search_save_LIBS
10603fi
68f2de6d
AK
10604{ echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
10605echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
10606ac_res=$ac_cv_search_getmntent
10607if test "$ac_res" != no; then
10608 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10609 ac_cv_func_getmntent=yes
10610
10611cat >>confdefs.h <<\_ACEOF
68f2de6d 10612#define HAVE_GETMNTENT
ad6254c5 10613_ACEOF
795ca3e5 10614
25fbec5b
AK
10615else
10616 ac_cv_func_getmntent=no
795ca3e5 10617fi
795ca3e5
AK
10618
10619
ad6254c5
AK
10620# AC_FUNC_REALLOC
10621
10622
10623for ac_header in sys/select.h sys/socket.h
10624do
68f2de6d 10625as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10626if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
10627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10628echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10629if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10630 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10631fi
68f2de6d
AK
10632ac_res=`eval echo '${'$as_ac_Header'}'`
10633 { echo "$as_me:$LINENO: result: $ac_res" >&5
10634echo "${ECHO_T}$ac_res" >&6; }
795ca3e5 10635else
ad6254c5 10636 # Is the header compilable?
68f2de6d
AK
10637{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10638echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10639cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10640/* confdefs.h. */
10641_ACEOF
10642cat confdefs.h >>conftest.$ac_ext
10643cat >>conftest.$ac_ext <<_ACEOF
10644/* end confdefs.h. */
10645$ac_includes_default
10646#include <$ac_header>
10647_ACEOF
10648rm -f conftest.$ac_objext
7a197a62
AK
10649if { (ac_try="$ac_compile"
10650case "(($ac_try" in
10651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652 *) ac_try_echo=$ac_try;;
10653esac
68f2de6d 10654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10655 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10656 ac_status=$?
8a2fc586
AK
10657 grep -v '^ *+' conftest.er1 >conftest.err
10658 rm -f conftest.er1
10659 cat conftest.err >&5
68f2de6d 10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10661 (exit $ac_status); } && {
10662 test -z "$ac_c_werror_flag" ||
10663 test ! -s conftest.err
10664 } && test -s conftest.$ac_objext; then
ad6254c5 10665 ac_header_compiler=yes
80992638 10666else
68f2de6d 10667 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10668sed 's/^/| /' conftest.$ac_ext >&5
10669
7a197a62 10670 ac_header_compiler=no
ad6254c5 10671fi
7a197a62
AK
10672
10673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
10674{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10675echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10676
10677# Is the header present?
68f2de6d
AK
10678{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10679echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10680cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10681/* confdefs.h. */
10682_ACEOF
10683cat confdefs.h >>conftest.$ac_ext
10684cat >>conftest.$ac_ext <<_ACEOF
10685/* end confdefs.h. */
10686#include <$ac_header>
10687_ACEOF
7a197a62
AK
10688if { (ac_try="$ac_cpp conftest.$ac_ext"
10689case "(($ac_try" in
10690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10691 *) ac_try_echo=$ac_try;;
10692esac
68f2de6d 10693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10695 ac_status=$?
10696 grep -v '^ *+' conftest.er1 >conftest.err
10697 rm -f conftest.er1
10698 cat conftest.err >&5
68f2de6d 10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10700 (exit $ac_status); } >/dev/null && {
10701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10702 test ! -s conftest.err
10703 }; then
ad6254c5
AK
10704 ac_header_preproc=yes
10705else
68f2de6d 10706 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10707sed 's/^/| /' conftest.$ac_ext >&5
10708
10709 ac_header_preproc=no
10710fi
7a197a62 10711
ad6254c5 10712rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
10713{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10714echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10715
10716# So? What about this header?
8a2fc586
AK
10717case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10718 yes:no: )
68f2de6d
AK
10719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10720echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10722echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10723 ac_header_preproc=yes
ad6254c5 10724 ;;
8a2fc586 10725 no:yes:* )
68f2de6d
AK
10726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10727echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10729echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10731echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10733echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10735echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10737echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10738
ad6254c5
AK
10739 ;;
10740esac
68f2de6d
AK
10741{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10743if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10744 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10745else
8a2fc586 10746 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 10747fi
68f2de6d
AK
10748ac_res=`eval echo '${'$as_ac_Header'}'`
10749 { echo "$as_me:$LINENO: result: $ac_res" >&5
10750echo "${ECHO_T}$ac_res" >&6; }
8106cdd5 10751
795ca3e5 10752fi
68f2de6d 10753if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10754 cat >>confdefs.h <<_ACEOF
68f2de6d 10755#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10756_ACEOF
10757
795ca3e5
AK
10758fi
10759
ad6254c5
AK
10760done
10761
68f2de6d
AK
10762{ echo "$as_me:$LINENO: checking types of arguments for select" >&5
10763echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
ad6254c5 10764if test "${ac_cv_func_select_args+set}" = set; then
68f2de6d 10765 echo $ECHO_N "(cached) $ECHO_C" >&6
26e7f2e0 10766else
ad6254c5 10767 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 10768 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
10769 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10770 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10771/* confdefs.h. */
10772_ACEOF
10773cat confdefs.h >>conftest.$ac_ext
10774cat >>conftest.$ac_ext <<_ACEOF
10775/* end confdefs.h. */
10776$ac_includes_default
25fbec5b 10777#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
10778# include <sys/select.h>
10779#endif
25fbec5b 10780#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
10781# include <sys/socket.h>
10782#endif
10783
10784int
10785main ()
10786{
10787extern int select ($ac_arg1,
8a2fc586
AK
10788 $ac_arg234, $ac_arg234, $ac_arg234,
10789 $ac_arg5);
ad6254c5
AK
10790 ;
10791 return 0;
10792}
10793_ACEOF
10794rm -f conftest.$ac_objext
7a197a62
AK
10795if { (ac_try="$ac_compile"
10796case "(($ac_try" in
10797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798 *) ac_try_echo=$ac_try;;
10799esac
68f2de6d 10800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10801 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10802 ac_status=$?
8a2fc586
AK
10803 grep -v '^ *+' conftest.er1 >conftest.err
10804 rm -f conftest.er1
10805 cat conftest.err >&5
68f2de6d 10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10807 (exit $ac_status); } && {
10808 test -z "$ac_c_werror_flag" ||
10809 test ! -s conftest.err
10810 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10811 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10812else
68f2de6d 10813 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10814sed 's/^/| /' conftest.$ac_ext >&5
10815
7a197a62 10816
ad6254c5 10817fi
7a197a62
AK
10818
10819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10820 done
10821 done
10822done
10823# Provide a safe default value.
10824: ${ac_cv_func_select_args='int,int *,struct timeval *'}
10825
26e7f2e0 10826fi
68f2de6d
AK
10827{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
10828echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
ad6254c5
AK
10829ac_save_IFS=$IFS; IFS=','
10830set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10831IFS=$ac_save_IFS
10832shift
10833
10834cat >>confdefs.h <<_ACEOF
10835#define SELECT_TYPE_ARG1 $1
10836_ACEOF
10837
10838
10839cat >>confdefs.h <<_ACEOF
10840#define SELECT_TYPE_ARG234 ($2)
10841_ACEOF
10842
10843
10844cat >>confdefs.h <<_ACEOF
10845#define SELECT_TYPE_ARG5 ($3)
10846_ACEOF
10847
80992638 10848rm -f conftest*
80992638 10849
8106cdd5 10850fi
ad6254c5 10851
ad6254c5
AK
10852if test x$CLUSTER != xnone; then
10853
10854
10855for ac_header in sys/socket.h sys/un.h
b896caa1 10856do
68f2de6d 10857as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10858if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
10859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10861if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10862 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10863fi
68f2de6d
AK
10864ac_res=`eval echo '${'$as_ac_Header'}'`
10865 { echo "$as_me:$LINENO: result: $ac_res" >&5
10866echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10867else
10868 # Is the header compilable?
68f2de6d
AK
10869{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10870echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10871cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10872/* confdefs.h. */
10873_ACEOF
10874cat confdefs.h >>conftest.$ac_ext
10875cat >>conftest.$ac_ext <<_ACEOF
10876/* end confdefs.h. */
10877$ac_includes_default
10878#include <$ac_header>
10879_ACEOF
10880rm -f conftest.$ac_objext
7a197a62
AK
10881if { (ac_try="$ac_compile"
10882case "(($ac_try" in
10883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10884 *) ac_try_echo=$ac_try;;
10885esac
68f2de6d 10886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10887 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10888 ac_status=$?
8a2fc586
AK
10889 grep -v '^ *+' conftest.er1 >conftest.err
10890 rm -f conftest.er1
10891 cat conftest.err >&5
68f2de6d 10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10893 (exit $ac_status); } && {
10894 test -z "$ac_c_werror_flag" ||
10895 test ! -s conftest.err
10896 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10897 ac_header_compiler=yes
10898else
68f2de6d 10899 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10900sed 's/^/| /' conftest.$ac_ext >&5
10901
7a197a62 10902 ac_header_compiler=no
ad6254c5 10903fi
7a197a62
AK
10904
10905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
10906{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10907echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10908
10909# Is the header present?
68f2de6d
AK
10910{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10911echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10912cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10913/* confdefs.h. */
10914_ACEOF
10915cat confdefs.h >>conftest.$ac_ext
10916cat >>conftest.$ac_ext <<_ACEOF
10917/* end confdefs.h. */
10918#include <$ac_header>
10919_ACEOF
7a197a62
AK
10920if { (ac_try="$ac_cpp conftest.$ac_ext"
10921case "(($ac_try" in
10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10924esac
68f2de6d 10925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10927 ac_status=$?
10928 grep -v '^ *+' conftest.er1 >conftest.err
10929 rm -f conftest.er1
10930 cat conftest.err >&5
68f2de6d 10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10932 (exit $ac_status); } >/dev/null && {
10933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10934 test ! -s conftest.err
10935 }; then
ad6254c5
AK
10936 ac_header_preproc=yes
10937else
68f2de6d 10938 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10939sed 's/^/| /' conftest.$ac_ext >&5
10940
10941 ac_header_preproc=no
10942fi
7a197a62 10943
ad6254c5 10944rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
10945{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10946echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10947
10948# So? What about this header?
8a2fc586
AK
10949case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10950 yes:no: )
68f2de6d
AK
10951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10952echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10954echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10955 ac_header_preproc=yes
ad6254c5 10956 ;;
8a2fc586 10957 no:yes:* )
68f2de6d
AK
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10959echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10961echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10963echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10965echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10967echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10969echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10970
ad6254c5
AK
10971 ;;
10972esac
68f2de6d
AK
10973{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10974echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10975if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10976 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10977else
8a2fc586 10978 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 10979fi
68f2de6d
AK
10980ac_res=`eval echo '${'$as_ac_Header'}'`
10981 { echo "$as_me:$LINENO: result: $ac_res" >&5
10982echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10983
10984fi
68f2de6d 10985if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10986 cat >>confdefs.h <<_ACEOF
68f2de6d 10987#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10988_ACEOF
10989
80992638 10990else
68f2de6d
AK
10991 { { echo "$as_me:$LINENO: error: bailing out" >&5
10992echo "$as_me: error: bailing out" >&2;}
ad6254c5 10993 { (exit 1); exit 1; }; }
b896caa1 10994fi
ad6254c5 10995
b896caa1
AK
10996done
10997
10998
ad6254c5
AK
10999for ac_func in socket
11000do
68f2de6d
AK
11001as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11002{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11003echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 11004if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11005 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 11006else
ad6254c5 11007 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11008/* confdefs.h. */
11009_ACEOF
11010cat confdefs.h >>conftest.$ac_ext
11011cat >>conftest.$ac_ext <<_ACEOF
11012/* end confdefs.h. */
8a2fc586
AK
11013/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11015#define $ac_func innocuous_$ac_func
11016
ad6254c5
AK
11017/* System header to define __stub macros and hopefully few prototypes,
11018 which can conflict with char $ac_func (); below.
11019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11020 <limits.h> exists even on freestanding compilers. */
8a2fc586 11021
ad6254c5
AK
11022#ifdef __STDC__
11023# include <limits.h>
11024#else
11025# include <assert.h>
11026#endif
8a2fc586
AK
11027
11028#undef $ac_func
11029
7a197a62
AK
11030/* Override any GCC internal prototype to avoid an error.
11031 Use char because int might match the return type of a GCC
11032 builtin and then its argument prototype would still apply. */
ad6254c5
AK
11033#ifdef __cplusplus
11034extern "C"
ad6254c5 11035#endif
ad6254c5
AK
11036char $ac_func ();
11037/* The GNU C library defines this for functions which it implements
11038 to always fail with ENOSYS. Some functions are actually named
11039 something starting with __ and the normal name is an alias. */
7a197a62 11040#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 11041choke me
ad6254c5
AK
11042#endif
11043
11044int
11045main ()
11046{
7a197a62 11047return $ac_func ();
ad6254c5
AK
11048 ;
11049 return 0;
11050}
11051_ACEOF
11052rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
11053if { (ac_try="$ac_link"
11054case "(($ac_try" in
11055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056 *) ac_try_echo=$ac_try;;
11057esac
68f2de6d 11058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11059 (eval "$ac_link") 2>conftest.er1
ad6254c5 11060 ac_status=$?
8a2fc586
AK
11061 grep -v '^ *+' conftest.er1 >conftest.err
11062 rm -f conftest.er1
11063 cat conftest.err >&5
68f2de6d 11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11065 (exit $ac_status); } && {
11066 test -z "$ac_c_werror_flag" ||
11067 test ! -s conftest.err
68f2de6d
AK
11068 } && test -s conftest$ac_exeext &&
11069 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
11070 eval "$as_ac_var=yes"
11071else
68f2de6d 11072 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11073sed 's/^/| /' conftest.$ac_ext >&5
11074
7a197a62 11075 eval "$as_ac_var=no"
ad6254c5 11076fi
7a197a62 11077
25fbec5b 11078rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 11079 conftest$ac_exeext conftest.$ac_ext
ad6254c5 11080fi
68f2de6d
AK
11081ac_res=`eval echo '${'$as_ac_var'}'`
11082 { echo "$as_me:$LINENO: result: $ac_res" >&5
11083echo "${ECHO_T}$ac_res" >&6; }
11084if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 11085 cat >>confdefs.h <<_ACEOF
68f2de6d 11086#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
11087_ACEOF
11088
11089else
68f2de6d
AK
11090 { { echo "$as_me:$LINENO: error: bailing out" >&5
11091echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
11092 { (exit 1); exit 1; }; }
11093fi
11094done
11095
11096fi
11097
11098if test x$HAVE_LIBDL = xyes; then
11099
11100for ac_header in dlfcn.h
11101do
68f2de6d 11102as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11103if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
11104 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11105echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11106if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11107 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11108fi
68f2de6d
AK
11109ac_res=`eval echo '${'$as_ac_Header'}'`
11110 { echo "$as_me:$LINENO: result: $ac_res" >&5
11111echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
11112else
11113 # Is the header compilable?
68f2de6d
AK
11114{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11115echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11116cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11117/* confdefs.h. */
11118_ACEOF
11119cat confdefs.h >>conftest.$ac_ext
11120cat >>conftest.$ac_ext <<_ACEOF
11121/* end confdefs.h. */
11122$ac_includes_default
11123#include <$ac_header>
11124_ACEOF
11125rm -f conftest.$ac_objext
7a197a62
AK
11126if { (ac_try="$ac_compile"
11127case "(($ac_try" in
11128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11129 *) ac_try_echo=$ac_try;;
11130esac
68f2de6d 11131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11132 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11133 ac_status=$?
8a2fc586
AK
11134 grep -v '^ *+' conftest.er1 >conftest.err
11135 rm -f conftest.er1
11136 cat conftest.err >&5
68f2de6d 11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11138 (exit $ac_status); } && {
11139 test -z "$ac_c_werror_flag" ||
11140 test ! -s conftest.err
11141 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11142 ac_header_compiler=yes
11143else
68f2de6d 11144 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11145sed 's/^/| /' conftest.$ac_ext >&5
11146
7a197a62 11147 ac_header_compiler=no
ad6254c5 11148fi
7a197a62
AK
11149
11150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
11151{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11152echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11153
11154# Is the header present?
68f2de6d
AK
11155{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11156echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11157cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11158/* confdefs.h. */
11159_ACEOF
11160cat confdefs.h >>conftest.$ac_ext
11161cat >>conftest.$ac_ext <<_ACEOF
11162/* end confdefs.h. */
11163#include <$ac_header>
11164_ACEOF
7a197a62
AK
11165if { (ac_try="$ac_cpp conftest.$ac_ext"
11166case "(($ac_try" in
11167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168 *) ac_try_echo=$ac_try;;
11169esac
68f2de6d 11170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11172 ac_status=$?
11173 grep -v '^ *+' conftest.er1 >conftest.err
11174 rm -f conftest.er1
11175 cat conftest.err >&5
68f2de6d 11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11177 (exit $ac_status); } >/dev/null && {
11178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11179 test ! -s conftest.err
11180 }; then
ad6254c5
AK
11181 ac_header_preproc=yes
11182else
68f2de6d 11183 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11184sed 's/^/| /' conftest.$ac_ext >&5
11185
11186 ac_header_preproc=no
11187fi
7a197a62 11188
ad6254c5 11189rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
11190{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11191echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11192
11193# So? What about this header?
8a2fc586
AK
11194case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11195 yes:no: )
68f2de6d
AK
11196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11197echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11199echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11200 ac_header_preproc=yes
ad6254c5 11201 ;;
8a2fc586 11202 no:yes:* )
68f2de6d
AK
11203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11204echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11206echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11208echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11210echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11212echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11214echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11215
ad6254c5
AK
11216 ;;
11217esac
68f2de6d
AK
11218{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11221 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11222else
8a2fc586 11223 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 11224fi
68f2de6d
AK
11225ac_res=`eval echo '${'$as_ac_Header'}'`
11226 { echo "$as_me:$LINENO: result: $ac_res" >&5
11227echo "${ECHO_T}$ac_res" >&6; }
80992638 11228
8106cdd5 11229fi
68f2de6d 11230if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11231 cat >>confdefs.h <<_ACEOF
68f2de6d 11232#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11233_ACEOF
795ca3e5
AK
11234
11235else
68f2de6d
AK
11236 { { echo "$as_me:$LINENO: error: bailing out" >&5
11237echo "$as_me: error: bailing out" >&2;}
ad6254c5 11238 { (exit 1); exit 1; }; }
795ca3e5
AK
11239fi
11240
ad6254c5 11241done
80992638 11242
ad6254c5 11243fi
80992638 11244
ad6254c5 11245if test x$INTL = xyes; then
83912faa 11246
ad6254c5
AK
11247for ac_header in libintl.h
11248do
68f2de6d 11249as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11250if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
11251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11253if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11254 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11255fi
68f2de6d
AK
11256ac_res=`eval echo '${'$as_ac_Header'}'`
11257 { echo "$as_me:$LINENO: result: $ac_res" >&5
11258echo "${ECHO_T}$ac_res" >&6; }
83912faa 11259else
ad6254c5 11260 # Is the header compilable?
68f2de6d
AK
11261{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11262echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11263cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11264/* confdefs.h. */
11265_ACEOF
11266cat confdefs.h >>conftest.$ac_ext
11267cat >>conftest.$ac_ext <<_ACEOF
11268/* end confdefs.h. */
11269$ac_includes_default
11270#include <$ac_header>
11271_ACEOF
11272rm -f conftest.$ac_objext
7a197a62
AK
11273if { (ac_try="$ac_compile"
11274case "(($ac_try" in
11275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11276 *) ac_try_echo=$ac_try;;
11277esac
68f2de6d 11278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11279 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11280 ac_status=$?
8a2fc586
AK
11281 grep -v '^ *+' conftest.er1 >conftest.err
11282 rm -f conftest.er1
11283 cat conftest.err >&5
68f2de6d 11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11285 (exit $ac_status); } && {
11286 test -z "$ac_c_werror_flag" ||
11287 test ! -s conftest.err
11288 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11289 ac_header_compiler=yes
11290else
68f2de6d 11291 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11292sed 's/^/| /' conftest.$ac_ext >&5
11293
7a197a62 11294 ac_header_compiler=no
ad6254c5 11295fi
7a197a62
AK
11296
11297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
11298{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11299echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11300
11301# Is the header present?
68f2de6d
AK
11302{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11303echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11304cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11305/* confdefs.h. */
11306_ACEOF
11307cat confdefs.h >>conftest.$ac_ext
11308cat >>conftest.$ac_ext <<_ACEOF
11309/* end confdefs.h. */
11310#include <$ac_header>
11311_ACEOF
7a197a62
AK
11312if { (ac_try="$ac_cpp conftest.$ac_ext"
11313case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11316esac
68f2de6d 11317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11319 ac_status=$?
11320 grep -v '^ *+' conftest.er1 >conftest.err
11321 rm -f conftest.er1
11322 cat conftest.err >&5
68f2de6d 11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11324 (exit $ac_status); } >/dev/null && {
11325 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11326 test ! -s conftest.err
11327 }; then
ad6254c5
AK
11328 ac_header_preproc=yes
11329else
68f2de6d 11330 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11331sed 's/^/| /' conftest.$ac_ext >&5
11332
11333 ac_header_preproc=no
11334fi
7a197a62 11335
ad6254c5 11336rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
11337{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11338echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11339
11340# So? What about this header?
8a2fc586
AK
11341case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11342 yes:no: )
68f2de6d
AK
11343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11344echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11346echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11347 ac_header_preproc=yes
ad6254c5 11348 ;;
8a2fc586 11349 no:yes:* )
68f2de6d
AK
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11351echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11353echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11355echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11357echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11359echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11361echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11362
ad6254c5
AK
11363 ;;
11364esac
68f2de6d
AK
11365{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11367if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11368 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 11369else
8a2fc586 11370 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 11371fi
68f2de6d
AK
11372ac_res=`eval echo '${'$as_ac_Header'}'`
11373 { echo "$as_me:$LINENO: result: $ac_res" >&5
11374echo "${ECHO_T}$ac_res" >&6; }
83912faa 11375
69792976 11376fi
68f2de6d 11377if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11378 cat >>confdefs.h <<_ACEOF
68f2de6d 11379#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11380_ACEOF
69792976 11381
69792976 11382else
68f2de6d
AK
11383 { { echo "$as_me:$LINENO: error: bailing out" >&5
11384echo "$as_me: error: bailing out" >&2;}
ad6254c5 11385 { (exit 1); exit 1; }; }
80992638
AK
11386fi
11387
ad6254c5 11388done
69792976 11389
ad6254c5
AK
11390fi
11391
ad6254c5
AK
11392if test x$HAVE_SELINUX = xyes; then
11393
11394for ac_header in selinux/selinux.h
11395do
68f2de6d 11396as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11397if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
11398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11400if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11401 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11402fi
68f2de6d
AK
11403ac_res=`eval echo '${'$as_ac_Header'}'`
11404 { echo "$as_me:$LINENO: result: $ac_res" >&5
11405echo "${ECHO_T}$ac_res" >&6; }
4a7f3eb2 11406else
ad6254c5 11407 # Is the header compilable?
68f2de6d
AK
11408{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11409echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11410cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11411/* confdefs.h. */
11412_ACEOF
11413cat confdefs.h >>conftest.$ac_ext
11414cat >>conftest.$ac_ext <<_ACEOF
11415/* end confdefs.h. */
11416$ac_includes_default
11417#include <$ac_header>
11418_ACEOF
11419rm -f conftest.$ac_objext
7a197a62
AK
11420if { (ac_try="$ac_compile"
11421case "(($ac_try" in
11422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423 *) ac_try_echo=$ac_try;;
11424esac
68f2de6d 11425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11426 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11427 ac_status=$?
8a2fc586
AK
11428 grep -v '^ *+' conftest.er1 >conftest.err
11429 rm -f conftest.er1
11430 cat conftest.err >&5
68f2de6d 11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11432 (exit $ac_status); } && {
11433 test -z "$ac_c_werror_flag" ||
11434 test ! -s conftest.err
11435 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11436 ac_header_compiler=yes
11437else
68f2de6d 11438 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11439sed 's/^/| /' conftest.$ac_ext >&5
11440
7a197a62 11441 ac_header_compiler=no
ad6254c5 11442fi
7a197a62
AK
11443
11444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
11445{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11446echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11447
11448# Is the header present?
68f2de6d
AK
11449{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11450echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11451cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11452/* confdefs.h. */
11453_ACEOF
11454cat confdefs.h >>conftest.$ac_ext
11455cat >>conftest.$ac_ext <<_ACEOF
11456/* end confdefs.h. */
11457#include <$ac_header>
11458_ACEOF
7a197a62
AK
11459if { (ac_try="$ac_cpp conftest.$ac_ext"
11460case "(($ac_try" in
11461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462 *) ac_try_echo=$ac_try;;
11463esac
68f2de6d 11464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11466 ac_status=$?
11467 grep -v '^ *+' conftest.er1 >conftest.err
11468 rm -f conftest.er1
11469 cat conftest.err >&5
68f2de6d 11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11471 (exit $ac_status); } >/dev/null && {
11472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11473 test ! -s conftest.err
11474 }; then
ad6254c5
AK
11475 ac_header_preproc=yes
11476else
68f2de6d 11477 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11478sed 's/^/| /' conftest.$ac_ext >&5
11479
11480 ac_header_preproc=no
11481fi
7a197a62 11482
ad6254c5 11483rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
11484{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11485echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11486
11487# So? What about this header?
8a2fc586
AK
11488case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11489 yes:no: )
68f2de6d
AK
11490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11491echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11493echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11494 ac_header_preproc=yes
ad6254c5 11495 ;;
8a2fc586 11496 no:yes:* )
68f2de6d
AK
11497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11498echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11500echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11502echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11504echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11506echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11508echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11509
ad6254c5
AK
11510 ;;
11511esac
68f2de6d
AK
11512{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11513echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11514if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11515 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11516else
8a2fc586 11517 eval "$as_ac_Header=\$ac_header_preproc"
80992638 11518fi
68f2de6d
AK
11519ac_res=`eval echo '${'$as_ac_Header'}'`
11520 { echo "$as_me:$LINENO: result: $ac_res" >&5
11521echo "${ECHO_T}$ac_res" >&6; }
4a7f3eb2 11522
ad6254c5 11523fi
68f2de6d 11524if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11525 cat >>confdefs.h <<_ACEOF
68f2de6d 11526#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11527_ACEOF
0a62c911 11528
0a62c911 11529else
68f2de6d
AK
11530 { { echo "$as_me:$LINENO: error: bailing out" >&5
11531echo "$as_me: error: bailing out" >&2;}
ad6254c5 11532 { (exit 1); exit 1; }; }
80992638
AK
11533fi
11534
ad6254c5 11535done
0a62c911 11536
ad6254c5 11537fi
0a62c911 11538
a653923f
AK
11539################################################################################
11540# Extract the first word of "modprobe", so it can be a program name with args.
11541set dummy modprobe; ac_word=$2
68f2de6d
AK
11542{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
72b2cb61 11544if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
68f2de6d 11545 echo $ECHO_N "(cached) $ECHO_C" >&6
72b2cb61
AK
11546else
11547 case $MODPROBE_CMD in
11548 [\\/]* | ?:[\\/]*)
11549 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
11550 ;;
11551 *)
11552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11553for as_dir in $PATH
11554do
11555 IFS=$as_save_IFS
11556 test -z "$as_dir" && as_dir=.
11557 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 11558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 11559 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 11560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
11561 break 2
11562 fi
11563done
11564done
7a197a62 11565IFS=$as_save_IFS
72b2cb61
AK
11566
11567 ;;
11568esac
11569fi
11570MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 11571if test -n "$MODPROBE_CMD"; then
68f2de6d
AK
11572 { echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
11573echo "${ECHO_T}$MODPROBE_CMD" >&6; }
72b2cb61 11574else
68f2de6d
AK
11575 { echo "$as_me:$LINENO: result: no" >&5
11576echo "${ECHO_T}no" >&6; }
72b2cb61
AK
11577fi
11578
a653923f 11579
7a197a62 11580
a653923f 11581if test x$MODPROBE_CMD != x; then
72b2cb61
AK
11582
11583cat >>confdefs.h <<_ACEOF
11584#define MODPROBE_CMD "$MODPROBE_CMD"
11585_ACEOF
11586
a653923f
AK
11587fi
11588
80992638 11589################################################################################
93bd259b
AK
11590
11591
11592if test "$BUILD_DMEVENTD" = yes; then
11593
11594# Check whether --with-dmeventd-pidfile was given.
11595if test "${with_dmeventd_pidfile+set}" = set; then
11596 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
11597#define DMEVENTD_PIDFILE "$withval"
11598_ACEOF
11599
11600else
11601 cat >>confdefs.h <<_ACEOF
11602#define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
11603_ACEOF
11604
11605fi
11606
11607fi
11608
11609
11610
11611if test "$BUILD_DMEVENTD" = yes; then
11612 dmeventd_prefix="$exec_prefix"
11613 if test "x$dmeventd_prefix" = "xNONE"; then
11614 dmeventd_prefix="$prefix"
11615 fi
11616 if test "x$dmeventd_prefix" = "xNONE"; then
11617 dmeventd_prefix=""
11618 fi
11619
11620# Check whether --with-dmeventd-path was given.
11621if test "${with_dmeventd_path+set}" = set; then
11622 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
11623#define DMEVENTD_PATH "$withval"
11624_ACEOF
11625
11626else
11627 cat >>confdefs.h <<_ACEOF
11628#define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
11629_ACEOF
11630
11631fi
11632
11633fi
11634
11635################################################################################
11636{ echo "$as_me:$LINENO: checking for kernel interface choice" >&5
11637echo $ECHO_N "checking for kernel interface choice... $ECHO_C" >&6; }
11638
11639# Check whether --with-interface was given.
11640if test "${with_interface+set}" = set; then
11641 withval=$with_interface; interface="$withval"
11642else
11643 interface=ioctl
11644fi
11645
11646if [ "x$interface" != xioctl ];
11647then
11648 { { echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
11649echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
11650 { (exit 1); exit 1; }; }
11651fi
11652{ echo "$as_me:$LINENO: result: $interface" >&5
11653echo "${ECHO_T}$interface" >&6; }
11654
11655################################################################################
2c44337b 11656DM_LIB_VERSION="\"`cat VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
11657
11658cat >>confdefs.h <<_ACEOF
11659#define DM_LIB_VERSION $DM_LIB_VERSION
11660_ACEOF
11661
11662
2c44337b 11663DM_LIB_PATCHLEVEL=`cat VERSION_DM | awk -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 11664
d0191583 11665LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
fae0c576 11666
80992638 11667################################################################################
fae0c576 11668
83912faa 11669
795ca3e5
AK
11670
11671
11672
11673
11674
11675
5a52dca9 11676
8ef2b021 11677
199e490e 11678
69792976
AK
11679
11680
11681
d0191583 11682
69792976 11683
8106cdd5
AK
11684
11685
11686
11687
11688
d68a82ec 11689
036f273a 11690
7d1552c9 11691
8106cdd5 11692
0a62c911 11693
8106cdd5 11694
4a7f3eb2 11695
4922197a
AK
11696
11697
d8ac0fbc 11698
1a9ea74d 11699
8a2fc586
AK
11700
11701
d0191583 11702
93bd259b
AK
11703
11704
11705
11706
11707
d0191583
JM
11708
11709
11710
11711
11712
8a2fc586 11713
8ce0cbda 11714
8b1a3214 11715
33f732c5 11716
66e941e8 11717
d3c8211f 11718
7e3fe830 11719
68f2de6d
AK
11720
11721
80992638 11722################################################################################
04f06bc9 11723ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc man/Makefile po/Makefile scripts/Makefile test/Makefile tools/Makefile tools/version.h"
7a197a62 11724
ad6254c5 11725cat >confcache <<\_ACEOF
795ca3e5
AK
11726# This file is a shell script that caches the results of configure
11727# tests run on this system so they can be shared between configure
ad6254c5
AK
11728# scripts and configure runs, see configure's option --config-cache.
11729# It is not useful on other systems. If it contains results you don't
11730# want to keep, you may remove or edit it.
795ca3e5 11731#
ad6254c5
AK
11732# config.status only pays attention to the cache file if you give it
11733# the --recheck option to rerun configure.
795ca3e5 11734#
ad6254c5
AK
11735# `ac_cv_env_foo' variables (set or unset) will be overridden when
11736# loading this file, other *unset* `ac_cv_foo' will be assigned the
11737# following values.
11738
11739_ACEOF
11740
795ca3e5
AK
11741# The following way of writing the cache mishandles newlines in values,
11742# but we know of no workaround that is simple, portable, and efficient.
7a197a62 11743# So, we kill variables containing newlines.
795ca3e5
AK
11744# Ultrix sh set writes to stderr and can't be redirected directly,
11745# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
11746(
11747 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11748 eval ac_val=\$$ac_var
11749 case $ac_val in #(
11750 *${as_nl}*)
11751 case $ac_var in #(
68f2de6d
AK
11752 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11753echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7a197a62
AK
11754 esac
11755 case $ac_var in #(
11756 _ | IFS | as_nl) ;; #(
11757 *) $as_unset $ac_var ;;
11758 esac ;;
11759 esac
11760 done
11761
ad6254c5 11762 (set) 2>&1 |
7a197a62
AK
11763 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11764 *${as_nl}ac_space=\ *)
ad6254c5
AK
11765 # `set' does not quote correctly, so add quotes (double-quote
11766 # substitution turns \\\\ into \\, and sed turns \\ into \).
11767 sed -n \
8a2fc586
AK
11768 "s/'/'\\\\''/g;
11769 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 11770 ;; #(
ad6254c5
AK
11771 *)
11772 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 11773 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 11774 ;;
7a197a62
AK
11775 esac |
11776 sort
11777) |
ad6254c5 11778 sed '
7a197a62 11779 /^ac_cv_env_/b end
ad6254c5 11780 t clear
7a197a62 11781 :clear
ad6254c5
AK
11782 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11783 t end
7a197a62
AK
11784 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11785 :end' >>confcache
11786if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11787 if test -w "$cache_file"; then
11788 test "x$cache_file" != "x/dev/null" &&
68f2de6d
AK
11789 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11790echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 11791 cat confcache >$cache_file
795ca3e5 11792 else
68f2de6d
AK
11793 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11794echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
11795 fi
11796fi
11797rm -f confcache
11798
795ca3e5
AK
11799test "x$prefix" = xNONE && prefix=$ac_default_prefix
11800# Let make expand exec_prefix.
11801test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11802
72b2cb61 11803DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
11804
11805ac_libobjs=
11806ac_ltlibobjs=
11807for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11808 # 1. Remove the extension, and $U if already installed.
7a197a62 11809 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
68f2de6d 11810 ac_i=`echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
11811 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11812 # will be set to the directory where LIBOBJS objects are built.
11813 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11814 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
11815done
11816LIBOBJS=$ac_libobjs
80992638 11817
ad6254c5
AK
11818LTLIBOBJS=$ac_ltlibobjs
11819
11820
11821
11822: ${CONFIG_STATUS=./config.status}
11823ac_clean_files_save=$ac_clean_files
11824ac_clean_files="$ac_clean_files $CONFIG_STATUS"
68f2de6d
AK
11825{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11826echo "$as_me: creating $CONFIG_STATUS" >&6;}
11827cat >$CONFIG_STATUS <<_ACEOF
ad6254c5
AK
11828#! $SHELL
11829# Generated by $as_me.
795ca3e5 11830# Run this file to recreate the current configuration.
795ca3e5 11831# Compiler output produced by configure, useful for debugging
ad6254c5
AK
11832# configure, is in config.log if it exists.
11833
11834debug=false
11835ac_cs_recheck=false
11836ac_cs_silent=false
11837SHELL=\${CONFIG_SHELL-$SHELL}
11838_ACEOF
11839
68f2de6d 11840cat >>$CONFIG_STATUS <<\_ACEOF
ad6254c5
AK
11841## --------------------- ##
11842## M4sh Initialization. ##
11843## --------------------- ##
11844
25fbec5b
AK
11845# Be more Bourne compatible
11846DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
11847if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11848 emulate sh
11849 NULLCMD=:
68f2de6d 11850 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
ad6254c5
AK
11851 # is contrary to our usage. Disable this feature.
11852 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
11853 setopt NO_GLOB_SUBST
11854else
25fbec5b
AK
11855 case `(set -o) 2>/dev/null` in
11856 *posix*) set -o posix ;;
11857esac
11858
7a197a62 11859fi
25fbec5b
AK
11860
11861
7a197a62
AK
11862
11863
11864# PATH needs CR
11865# Avoid depending upon Character Ranges.
11866as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11867as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11868as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11869as_cr_digits='0123456789'
11870as_cr_alnum=$as_cr_Letters$as_cr_digits
11871
b145d876
ZK
11872# The user is always right.
11873if test "${PATH_SEPARATOR+set}" != set; then
68f2de6d
AK
11874 echo "#! /bin/sh" >conf$$.sh
11875 echo "exit 0" >>conf$$.sh
11876 chmod +x conf$$.sh
11877 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11878 PATH_SEPARATOR=';'
11879 else
11880 PATH_SEPARATOR=:
11881 fi
11882 rm -f conf$$.sh
ad6254c5
AK
11883fi
11884
11885# Support unset when possible.
8a2fc586 11886if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
11887 as_unset=unset
11888else
11889 as_unset=false
11890fi
8106cdd5 11891
ad6254c5 11892
7a197a62
AK
11893# IFS
11894# We need space, tab and new line, in precisely that order. Quoting is
11895# there to prevent editors from complaining about space-tab.
11896# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11897# splitting by setting IFS to empty value.)
68f2de6d
AK
11898as_nl='
11899'
7a197a62
AK
11900IFS=" "" $as_nl"
11901
11902# Find who we are. Look in the path if we contain no directory separator.
11903case $0 in
11904 *[\\/]* ) as_myself=$0 ;;
11905 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906for as_dir in $PATH
11907do
11908 IFS=$as_save_IFS
11909 test -z "$as_dir" && as_dir=.
11910 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11911done
11912IFS=$as_save_IFS
11913
11914 ;;
11915esac
11916# We did not find ourselves, most probably we were run as `sh COMMAND'
11917# in which case we are not to be found in the path.
11918if test "x$as_myself" = x; then
11919 as_myself=$0
11920fi
11921if test ! -f "$as_myself"; then
68f2de6d 11922 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
11923 { (exit 1); exit 1; }
11924fi
11925
ad6254c5 11926# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
11927for as_var in ENV MAIL MAILPATH
11928do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11929done
ad6254c5
AK
11930PS1='$ '
11931PS2='> '
11932PS4='+ '
11933
11934# NLS nuisances.
68f2de6d
AK
11935for as_var in \
11936 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11937 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11938 LC_TELEPHONE LC_TIME
11939do
11940 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11941 eval $as_var=C; export $as_var
11942 else
11943 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11944 fi
11945done
8106cdd5 11946
ad6254c5 11947# Required to use basename.
7a197a62
AK
11948if expr a : '\(a\)' >/dev/null 2>&1 &&
11949 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
11950 as_expr=expr
11951else
11952 as_expr=false
11953fi
8106cdd5 11954
7a197a62 11955if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
11956 as_basename=basename
11957else
11958 as_basename=false
11959fi
11960
11961
11962# Name of the executable.
7a197a62 11963as_me=`$as_basename -- "$0" ||
ad6254c5
AK
11964$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11965 X"$0" : 'X\(//\)$' \| \
7a197a62 11966 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
68f2de6d 11967echo X/"$0" |
7a197a62
AK
11968 sed '/^.*\/\([^/][^/]*\)\/*$/{
11969 s//\1/
11970 q
11971 }
11972 /^X\/\(\/\/\)$/{
11973 s//\1/
11974 q
11975 }
11976 /^X\/\(\/\).*/{
11977 s//\1/
11978 q
11979 }
11980 s/.*/./; q'`
ad6254c5 11981
7a197a62
AK
11982# CDPATH.
11983$as_unset CDPATH
ad6254c5
AK
11984
11985
ad6254c5 11986
ad6254c5
AK
11987 as_lineno_1=$LINENO
11988 as_lineno_2=$LINENO
ad6254c5 11989 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 11990 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 11991
ad6254c5
AK
11992 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11993 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
11994 # line-number line after each line using $LINENO; the second 'sed'
11995 # does the real work. The second script uses 'N' to pair each
11996 # line-number line with the line containing $LINENO, and appends
11997 # trailing '-' during substitution so that $LINENO is not a special
11998 # case at line end.
ad6254c5 11999 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
12000 # scripts with optimization help from Paolo Bonzini. Blame Lee
12001 # E. McMahon (1931-1989) for sed's syntax. :-)
12002 sed -n '
12003 p
12004 /[$]LINENO/=
12005 ' <$as_myself |
ad6254c5 12006 sed '
7a197a62
AK
12007 s/[$]LINENO.*/&-/
12008 t lineno
12009 b
12010 :lineno
ad6254c5 12011 N
7a197a62
AK
12012 :loop
12013 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 12014 t loop
7a197a62 12015 s/-\n.*//
ad6254c5 12016 ' >$as_me.lineno &&
7a197a62 12017 chmod +x "$as_me.lineno" ||
68f2de6d 12018 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
12019 { (exit 1); exit 1; }; }
12020
12021 # Don't try to exec as it changes $[0], causing all sort of problems
12022 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
12023 # original and so on. Autoconf is especially sensitive to this).
12024 . "./$as_me.lineno"
ad6254c5
AK
12025 # Exit status is that of the last command.
12026 exit
12027}
12028
12029
7a197a62
AK
12030if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12031 as_dirname=dirname
12032else
12033 as_dirname=false
12034fi
12035
12036ECHO_C= ECHO_N= ECHO_T=
12037case `echo -n x` in
12038-n*)
12039 case `echo 'x\c'` in
12040 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12041 *) ECHO_C='\c';;
12042 esac;;
12043*)
12044 ECHO_N='-n';;
ad6254c5 12045esac
68f2de6d 12046
7a197a62
AK
12047if expr a : '\(a\)' >/dev/null 2>&1 &&
12048 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
12049 as_expr=expr
12050else
12051 as_expr=false
12052fi
80992638 12053
ad6254c5 12054rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
12055if test -d conf$$.dir; then
12056 rm -f conf$$.dir/conf$$.file
12057else
12058 rm -f conf$$.dir
68f2de6d
AK
12059 mkdir conf$$.dir
12060fi
12061echo >conf$$.file
12062if ln -s conf$$.file conf$$ 2>/dev/null; then
12063 as_ln_s='ln -s'
12064 # ... but there are two gotchas:
12065 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12066 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12067 # In both cases, we have to default to `cp -p'.
12068 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
ad6254c5 12069 as_ln_s='cp -p'
68f2de6d
AK
12070elif ln conf$$.file conf$$ 2>/dev/null; then
12071 as_ln_s=ln
ad6254c5
AK
12072else
12073 as_ln_s='cp -p'
12074fi
7a197a62
AK
12075rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12076rmdir conf$$.dir 2>/dev/null
8106cdd5 12077
ad6254c5
AK
12078if mkdir -p . 2>/dev/null; then
12079 as_mkdir_p=:
12080else
8a2fc586 12081 test -d ./-p && rmdir ./-p
ad6254c5
AK
12082 as_mkdir_p=false
12083fi
12084
25fbec5b
AK
12085if test -x / >/dev/null 2>&1; then
12086 as_test_x='test -x'
7a197a62 12087else
25fbec5b
AK
12088 if ls -dL / >/dev/null 2>&1; then
12089 as_ls_L_option=L
12090 else
12091 as_ls_L_option=
12092 fi
12093 as_test_x='
12094 eval sh -c '\''
12095 if test -d "$1"; then
68f2de6d 12096 test -d "$1/.";
25fbec5b
AK
12097 else
12098 case $1 in
68f2de6d 12099 -*)set "./$1";;
25fbec5b
AK
12100 esac;
12101 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12102 ???[sx]*):;;*)false;;esac;fi
12103 '\'' sh
12104 '
7a197a62 12105fi
25fbec5b 12106as_executable_p=$as_test_x
ad6254c5
AK
12107
12108# Sed expression to map a string onto a valid CPP name.
8a2fc586 12109as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
12110
12111# Sed expression to map a string onto a valid variable name.
8a2fc586 12112as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
12113
12114
ad6254c5
AK
12115exec 6>&1
12116
7a197a62 12117# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 12118# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
12119# values after options handling.
12120ac_log="
ad6254c5 12121This file was extended by $as_me, which was
68f2de6d 12122generated by GNU Autoconf 2.61. Invocation command line was
ad6254c5
AK
12123
12124 CONFIG_FILES = $CONFIG_FILES
12125 CONFIG_HEADERS = $CONFIG_HEADERS
12126 CONFIG_LINKS = $CONFIG_LINKS
12127 CONFIG_COMMANDS = $CONFIG_COMMANDS
12128 $ $0 $@
12129
7a197a62
AK
12130on `(hostname || uname -n) 2>/dev/null | sed 1q`
12131"
12132
ad6254c5
AK
12133_ACEOF
12134
68f2de6d 12135cat >>$CONFIG_STATUS <<_ACEOF
ad6254c5 12136# Files that config.status was made for.
68f2de6d
AK
12137config_files="$ac_config_files"
12138config_headers="$ac_config_headers"
ad6254c5 12139
7a197a62 12140_ACEOF
ad6254c5 12141
68f2de6d 12142cat >>$CONFIG_STATUS <<\_ACEOF
ad6254c5
AK
12143ac_cs_usage="\
12144\`$as_me' instantiates files from templates according to the
12145current configuration.
12146
12147Usage: $0 [OPTIONS] [FILE]...
12148
12149 -h, --help print this help, then exit
25fbec5b 12150 -V, --version print version number and configuration settings, then exit
ad6254c5
AK
12151 -q, --quiet do not print progress messages
12152 -d, --debug don't remove temporary files
12153 --recheck update $as_me by reconfiguring in the same conditions
12154 --file=FILE[:TEMPLATE]
68f2de6d 12155 instantiate the configuration file FILE
72b2cb61 12156 --header=FILE[:TEMPLATE]
68f2de6d 12157 instantiate the configuration header FILE
ad6254c5
AK
12158
12159Configuration files:
12160$config_files
12161
72b2cb61
AK
12162Configuration headers:
12163$config_headers
12164
ad6254c5 12165Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 12166
7a197a62 12167_ACEOF
68f2de6d 12168cat >>$CONFIG_STATUS <<_ACEOF
ad6254c5
AK
12169ac_cs_version="\\
12170config.status
68f2de6d
AK
12171configured by $0, generated by GNU Autoconf 2.61,
12172 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 12173
68f2de6d 12174Copyright (C) 2006 Free Software Foundation, Inc.
ad6254c5
AK
12175This config.status script is free software; the Free Software Foundation
12176gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
12177
12178ac_pwd='$ac_pwd'
12179srcdir='$srcdir'
12180INSTALL='$INSTALL'
fddafd51 12181MKDIR_P='$MKDIR_P'
ad6254c5
AK
12182_ACEOF
12183
68f2de6d
AK
12184cat >>$CONFIG_STATUS <<\_ACEOF
12185# If no file are specified by the user, then we need to provide default
12186# value. By we need to know if files were specified by the user.
ad6254c5
AK
12187ac_need_defaults=:
12188while test $# != 0
12189do
12190 case $1 in
12191 --*=*)
7a197a62
AK
12192 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12193 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
12194 ac_shift=:
12195 ;;
7a197a62 12196 *)
ad6254c5
AK
12197 ac_option=$1
12198 ac_optarg=$2
12199 ac_shift=shift
12200 ;;
ad6254c5
AK
12201 esac
12202
12203 case $ac_option in
12204 # Handling of the options.
ad6254c5
AK
12205 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12206 ac_cs_recheck=: ;;
7a197a62 12207 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
68f2de6d 12208 echo "$ac_cs_version"; exit ;;
7a197a62 12209 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
12210 debug=: ;;
12211 --file | --fil | --fi | --f )
12212 $ac_shift
68f2de6d 12213 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
ad6254c5
AK
12214 ac_need_defaults=false;;
12215 --header | --heade | --head | --hea )
12216 $ac_shift
68f2de6d 12217 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
ad6254c5 12218 ac_need_defaults=false;;
7a197a62
AK
12219 --he | --h)
12220 # Conflict between --help and --header
68f2de6d 12221 { echo "$as_me: error: ambiguous option: $1
7a197a62
AK
12222Try \`$0 --help' for more information." >&2
12223 { (exit 1); exit 1; }; };;
12224 --help | --hel | -h )
68f2de6d 12225 echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
12226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12227 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12228 ac_cs_silent=: ;;
12229
12230 # This is an error.
68f2de6d 12231 -*) { echo "$as_me: error: unrecognized option: $1
7a197a62 12232Try \`$0 --help' for more information." >&2
ad6254c5
AK
12233 { (exit 1); exit 1; }; } ;;
12234
7a197a62
AK
12235 *) ac_config_targets="$ac_config_targets $1"
12236 ac_need_defaults=false ;;
ad6254c5
AK
12237
12238 esac
12239 shift
12240done
12241
12242ac_configure_extra_args=
12243
12244if $ac_cs_silent; then
12245 exec 6>/dev/null
12246 ac_configure_extra_args="$ac_configure_extra_args --silent"
12247fi
12248
12249_ACEOF
68f2de6d 12250cat >>$CONFIG_STATUS <<_ACEOF
ad6254c5 12251if \$ac_cs_recheck; then
68f2de6d
AK
12252 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12253 CONFIG_SHELL=$SHELL
7a197a62 12254 export CONFIG_SHELL
68f2de6d 12255 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
ad6254c5
AK
12256fi
12257
12258_ACEOF
68f2de6d 12259cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12260exec 5>>config.log
12261{
12262 echo
12263 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12264## Running $as_me. ##
12265_ASBOX
68f2de6d 12266 echo "$ac_log"
7a197a62 12267} >&5
ad6254c5 12268
7a197a62 12269_ACEOF
68f2de6d 12270cat >>$CONFIG_STATUS <<_ACEOF
7a197a62 12271_ACEOF
ad6254c5 12272
68f2de6d 12273cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12274
12275# Handling of arguments.
ad6254c5
AK
12276for ac_config_target in $ac_config_targets
12277do
7a197a62
AK
12278 case $ac_config_target in
12279 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
12280 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12281 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
12282 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
12283 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
93bd259b
AK
12284 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
12285 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 12286 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
93bd259b
AK
12287 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
12288 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 12289 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
93bd259b
AK
12290 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12291 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
12292 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
12293 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
12294 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
12295 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
12296 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
12297 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
12298 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
12299 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12300 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
7a197a62 12301 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 12302 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
7a197a62
AK
12303 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
12304 "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
7a197a62 12305
68f2de6d
AK
12306 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12307echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 12308 { (exit 1); exit 1; }; };;
80992638 12309 esac
ad6254c5
AK
12310done
12311
7a197a62 12312
ad6254c5
AK
12313# If the user did not use the arguments to specify the items to instantiate,
12314# then the envvar interface is used. Set only those that are not.
12315# We use the long form for the default assignment because of an extremely
12316# bizarre bug on SunOS 4.1.3.
12317if $ac_need_defaults; then
12318 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 12319 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
12320fi
12321
12322# Have a temporary directory for convenience. Make it in the build tree
7a197a62 12323# simply because there is no reason against having it here, and in addition,
ad6254c5 12324# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
12325# Hook for its removal unless debugging.
12326# Note that there is a small window in which the directory will not be cleaned:
12327# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
12328$debug ||
12329{
7a197a62
AK
12330 tmp=
12331 trap 'exit_status=$?
12332 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12333' 0
ad6254c5
AK
12334 trap '{ (exit 1); exit 1; }' 1 2 13 15
12335}
ad6254c5
AK
12336# Create a (secure) tmp directory for tmp files.
12337
12338{
7a197a62 12339 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
12340 test -n "$tmp" && test -d "$tmp"
12341} ||
12342{
7a197a62
AK
12343 tmp=./conf$$-$RANDOM
12344 (umask 077 && mkdir "$tmp")
ad6254c5
AK
12345} ||
12346{
68f2de6d 12347 echo "$me: cannot create a temporary directory in ." >&2
ad6254c5
AK
12348 { (exit 1); exit 1; }
12349}
12350
68f2de6d
AK
12351#
12352# Set up the sed scripts for CONFIG_FILES section.
12353#
12354
12355# No need to generate the scripts if there are no CONFIG_FILES.
12356# This happens for instance when ./config.status config.h
1995c9ff 12357if test -n "$CONFIG_FILES"; then
7a197a62 12358
68f2de6d 12359_ACEOF
5556819a 12360
68f2de6d
AK
12361
12362
12363ac_delim='%!_!# '
12364for ac_last_try in false false false false false :; do
12365 cat >conf$$subs.sed <<_ACEOF
12366SHELL!$SHELL$ac_delim
12367PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12368PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12369PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12370PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12371PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12372PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12373exec_prefix!$exec_prefix$ac_delim
12374prefix!$prefix$ac_delim
12375program_transform_name!$program_transform_name$ac_delim
12376bindir!$bindir$ac_delim
12377sbindir!$sbindir$ac_delim
12378libexecdir!$libexecdir$ac_delim
12379datarootdir!$datarootdir$ac_delim
12380datadir!$datadir$ac_delim
12381sysconfdir!$sysconfdir$ac_delim
12382sharedstatedir!$sharedstatedir$ac_delim
12383localstatedir!$localstatedir$ac_delim
12384includedir!$includedir$ac_delim
12385oldincludedir!$oldincludedir$ac_delim
12386docdir!$docdir$ac_delim
12387infodir!$infodir$ac_delim
12388htmldir!$htmldir$ac_delim
12389dvidir!$dvidir$ac_delim
12390pdfdir!$pdfdir$ac_delim
12391psdir!$psdir$ac_delim
12392libdir!$libdir$ac_delim
12393localedir!$localedir$ac_delim
12394mandir!$mandir$ac_delim
12395DEFS!$DEFS$ac_delim
12396ECHO_C!$ECHO_C$ac_delim
12397ECHO_N!$ECHO_N$ac_delim
12398ECHO_T!$ECHO_T$ac_delim
12399LIBS!$LIBS$ac_delim
12400build_alias!$build_alias$ac_delim
12401host_alias!$host_alias$ac_delim
12402target_alias!$target_alias$ac_delim
12403build!$build$ac_delim
12404build_cpu!$build_cpu$ac_delim
12405build_vendor!$build_vendor$ac_delim
12406build_os!$build_os$ac_delim
12407host!$host$ac_delim
12408host_cpu!$host_cpu$ac_delim
12409host_vendor!$host_vendor$ac_delim
12410host_os!$host_os$ac_delim
12411target!$target$ac_delim
12412target_cpu!$target_cpu$ac_delim
12413target_vendor!$target_vendor$ac_delim
12414target_os!$target_os$ac_delim
5951ef33 12415SED!$SED$ac_delim
68f2de6d
AK
12416AWK!$AWK$ac_delim
12417CC!$CC$ac_delim
12418CFLAGS!$CFLAGS$ac_delim
12419LDFLAGS!$LDFLAGS$ac_delim
12420CPPFLAGS!$CPPFLAGS$ac_delim
12421ac_ct_CC!$ac_ct_CC$ac_delim
12422EXEEXT!$EXEEXT$ac_delim
12423OBJEXT!$OBJEXT$ac_delim
12424CPP!$CPP$ac_delim
12425GREP!$GREP$ac_delim
12426EGREP!$EGREP$ac_delim
12427INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12428INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12429INSTALL_DATA!$INSTALL_DATA$ac_delim
12430LN_S!$LN_S$ac_delim
12431SET_MAKE!$SET_MAKE$ac_delim
12432RANLIB!$RANLIB$ac_delim
12433CFLOW_CMD!$CFLOW_CMD$ac_delim
12434CSCOPE_CMD!$CSCOPE_CMD$ac_delim
12435ALLOCA!$ALLOCA$ac_delim
12436LIBOBJS!$LIBOBJS$ac_delim
12437POW_LIB!$POW_LIB$ac_delim
12438LCOV!$LCOV$ac_delim
12439GENHTML!$GENHTML$ac_delim
12440LVM2CMD_LIB!$LVM2CMD_LIB$ac_delim
12441MSGFMT!$MSGFMT$ac_delim
12442MODPROBE_CMD!$MODPROBE_CMD$ac_delim
12443BUILD_DMEVENTD!$BUILD_DMEVENTD$ac_delim
12444CLDFLAGS!$CLDFLAGS$ac_delim
12445CLDNOWHOLEARCHIVE!$CLDNOWHOLEARCHIVE$ac_delim
12446CLDWHOLEARCHIVE!$CLDWHOLEARCHIVE$ac_delim
12447CLUSTER!$CLUSTER$ac_delim
12448CLVMD!$CLVMD$ac_delim
12449CMDLIB!$CMDLIB$ac_delim
12450COPTIMISE_FLAG!$COPTIMISE_FLAG$ac_delim
12451DEBUG!$DEBUG$ac_delim
12452DEVMAPPER!$DEVMAPPER$ac_delim
68f2de6d
AK
12453DMEVENTD!$DMEVENTD$ac_delim
12454DM_COMPAT!$DM_COMPAT$ac_delim
12455DM_DEVICE_GID!$DM_DEVICE_GID$ac_delim
12456DM_DEVICE_MODE!$DM_DEVICE_MODE$ac_delim
12457DM_DEVICE_UID!$DM_DEVICE_UID$ac_delim
12458DM_IOCTLS!$DM_IOCTLS$ac_delim
12459DM_LIB_VERSION!$DM_LIB_VERSION$ac_delim
7e3fe830 12460DM_LIB_PATCHLEVEL!$DM_LIB_PATCHLEVEL$ac_delim
68f2de6d
AK
12461FSADM!$FSADM$ac_delim
12462GROUP!$GROUP$ac_delim
68f2de6d
AK
12463_ACEOF
12464
12465 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12466 break
12467 elif $ac_last_try; then
12468 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12469echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12470 { (exit 1); exit 1; }; }
12471 else
12472 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12473 fi
12474done
12475
12476ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12477if test -n "$ac_eof"; then
12478 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12479 ac_eof=`expr $ac_eof + 1`
1995c9ff 12480fi
7a197a62 12481
68f2de6d
AK
12482cat >>$CONFIG_STATUS <<_ACEOF
12483cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12484/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12485_ACEOF
12486sed '
12487s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12488s/^/s,@/; s/!/@,|#_!!_#|/
12489:n
12490t n
12491s/'"$ac_delim"'$/,g/; t
12492s/$/\\/; p
12493N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12494' >>$CONFIG_STATUS <conf$$subs.sed
12495rm -f conf$$subs.sed
12496cat >>$CONFIG_STATUS <<_ACEOF
12497CEOF$ac_eof
1995c9ff 12498_ACEOF
7a197a62 12499
8106cdd5 12500
1995c9ff
AK
12501ac_delim='%!_!# '
12502for ac_last_try in false false false false false :; do
68f2de6d 12503 cat >conf$$subs.sed <<_ACEOF
7e3fe830 12504HAVE_LIBDL!$HAVE_LIBDL$ac_delim
68f2de6d
AK
12505HAVE_REALTIME!$HAVE_REALTIME$ac_delim
12506HAVE_SELINUX!$HAVE_SELINUX$ac_delim
12507INTL!$INTL$ac_delim
12508INTL_PACKAGE!$INTL_PACKAGE$ac_delim
12509JOBS!$JOBS$ac_delim
12510LDDEPS!$LDDEPS$ac_delim
12511LIB_SUFFIX!$LIB_SUFFIX$ac_delim
12512LOCALEDIR!$LOCALEDIR$ac_delim
12513LVM1!$LVM1$ac_delim
12514LVM1_FALLBACK!$LVM1_FALLBACK$ac_delim
12515CONFDIR!$CONFDIR$ac_delim
12516LVM_VERSION!$LVM_VERSION$ac_delim
12517MIRRORS!$MIRRORS$ac_delim
12518OWNER!$OWNER$ac_delim
12519PKGCONFIG!$PKGCONFIG$ac_delim
12520POOL!$POOL$ac_delim
12521SNAPSHOTS!$SNAPSHOTS$ac_delim
12522STATICDIR!$STATICDIR$ac_delim
12523STATIC_LINK!$STATIC_LINK$ac_delim
12524LIB_PTHREAD!$LIB_PTHREAD$ac_delim
93bd259b
AK
12525interface!$interface$ac_delim
12526kerneldir!$kerneldir$ac_delim
12527missingkernel!$missingkernel$ac_delim
12528kernelvsn!$kernelvsn$ac_delim
12529tmpdir!$tmpdir$ac_delim
68f2de6d
AK
12530usrlibdir!$usrlibdir$ac_delim
12531usrsbindir!$usrsbindir$ac_delim
12532LTLIBOBJS!$LTLIBOBJS$ac_delim
12533_ACEOF
12534
7e3fe830 12535 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 29; then
1995c9ff
AK
12536 break
12537 elif $ac_last_try; then
68f2de6d
AK
12538 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12539echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
12540 { (exit 1); exit 1; }; }
12541 else
12542 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12543 fi
12544done
7a197a62 12545
68f2de6d
AK
12546ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12547if test -n "$ac_eof"; then
12548 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12549 ac_eof=`expr $ac_eof + 1`
12550fi
fddafd51 12551
68f2de6d
AK
12552cat >>$CONFIG_STATUS <<_ACEOF
12553cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12554/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
1995c9ff 12555_ACEOF
68f2de6d
AK
12556sed '
12557s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12558s/^/s,@/; s/!/@,|#_!!_#|/
12559:n
12560t n
12561s/'"$ac_delim"'$/,g/; t
12562s/$/\\/; p
12563N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12564' >>$CONFIG_STATUS <conf$$subs.sed
12565rm -f conf$$subs.sed
12566cat >>$CONFIG_STATUS <<_ACEOF
12567:end
12568s/|#_!!_#|//g
12569CEOF$ac_eof
7a197a62
AK
12570_ACEOF
12571
68f2de6d 12572
7a197a62
AK
12573# VPATH may cause trouble with some makes, so we remove $(srcdir),
12574# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12575# trailing colons and then remove the whole line if VPATH becomes empty
12576# (actually we leave an empty line to preserve line numbers).
12577if test "x$srcdir" = x.; then
12578 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12579s/:*\$(srcdir):*/:/
12580s/:*\${srcdir}:*/:/
12581s/:*@srcdir@:*/:/
12582s/^\([^=]*=[ ]*\):*/\1/
12583s/:*$//
12584s/^[^=]*=[ ]*$//
12585}'
12586fi
12587
68f2de6d 12588cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12589fi # test -n "$CONFIG_FILES"
12590
12591
68f2de6d 12592for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
7a197a62
AK
12593do
12594 case $ac_tag in
12595 :[FHLC]) ac_mode=$ac_tag; continue;;
12596 esac
12597 case $ac_mode$ac_tag in
12598 :[FHL]*:*);;
68f2de6d
AK
12599 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12600echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7a197a62
AK
12601 { (exit 1); exit 1; }; };;
12602 :[FH]-) ac_tag=-:-;;
12603 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12604 esac
12605 ac_save_IFS=$IFS
12606 IFS=:
12607 set x $ac_tag
12608 IFS=$ac_save_IFS
12609 shift
12610 ac_file=$1
12611 shift
12612
12613 case $ac_mode in
12614 :L) ac_source=$1;;
12615 :[FH])
12616 ac_file_inputs=
12617 for ac_f
12618 do
12619 case $ac_f in
12620 -) ac_f="$tmp/stdin";;
12621 *) # Look for the file first in the build tree, then in the source tree
12622 # (if the path is not absolute). The absolute path cannot be DOS-style,
12623 # because $ac_f cannot contain `:'.
12624 test -f "$ac_f" ||
12625 case $ac_f in
12626 [\\/$]*) false;;
12627 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12628 esac ||
68f2de6d
AK
12629 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12630echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
12631 { (exit 1); exit 1; }; };;
12632 esac
68f2de6d 12633 ac_file_inputs="$ac_file_inputs $ac_f"
7a197a62
AK
12634 done
12635
12636 # Let's still pretend it is `configure' which instantiates (i.e., don't
12637 # use $as_me), people would be surprised to read:
12638 # /* config.h. Generated by config.status. */
68f2de6d
AK
12639 configure_input="Generated from "`IFS=:
12640 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7a197a62
AK
12641 if test x"$ac_file" != x-; then
12642 configure_input="$ac_file. $configure_input"
68f2de6d
AK
12643 { echo "$as_me:$LINENO: creating $ac_file" >&5
12644echo "$as_me: creating $ac_file" >&6;}
7a197a62
AK
12645 fi
12646
12647 case $ac_tag in
68f2de6d 12648 *:-:* | *:-) cat >"$tmp/stdin";;
7a197a62
AK
12649 esac
12650 ;;
80992638 12651 esac
8106cdd5 12652
7a197a62 12653 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 12654$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
12655 X"$ac_file" : 'X\(//\)[^/]' \| \
12656 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 12657 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
68f2de6d 12658echo X"$ac_file" |
7a197a62
AK
12659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12660 s//\1/
12661 q
12662 }
12663 /^X\(\/\/\)[^/].*/{
12664 s//\1/
12665 q
12666 }
12667 /^X\(\/\/\)$/{
12668 s//\1/
12669 q
12670 }
12671 /^X\(\/\).*/{
12672 s//\1/
12673 q
12674 }
12675 s/.*/./; q'`
12676 { as_dir="$ac_dir"
12677 case $as_dir in #(
12678 -*) as_dir=./$as_dir;;
12679 esac
12680 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 12681 as_dirs=
7a197a62
AK
12682 while :; do
12683 case $as_dir in #(
68f2de6d 12684 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7a197a62
AK
12685 *) as_qdir=$as_dir;;
12686 esac
12687 as_dirs="'$as_qdir' $as_dirs"
12688 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 12689$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
12690 X"$as_dir" : 'X\(//\)[^/]' \| \
12691 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 12692 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
68f2de6d 12693echo X"$as_dir" |
7a197a62
AK
12694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12695 s//\1/
12696 q
12697 }
12698 /^X\(\/\/\)[^/].*/{
12699 s//\1/
12700 q
12701 }
12702 /^X\(\/\/\)$/{
12703 s//\1/
12704 q
12705 }
12706 /^X\(\/\).*/{
12707 s//\1/
12708 q
12709 }
12710 s/.*/./; q'`
12711 test -d "$as_dir" && break
ad6254c5 12712 done
7a197a62 12713 test -z "$as_dirs" || eval "mkdir $as_dirs"
68f2de6d
AK
12714 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12715echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 12716 { (exit 1); exit 1; }; }; }
ad6254c5
AK
12717 ac_builddir=.
12718
7a197a62
AK
12719case "$ac_dir" in
12720.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12721*)
68f2de6d 12722 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7a197a62 12723 # A ".." for each directory in $ac_dir_suffix.
68f2de6d 12724 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7a197a62
AK
12725 case $ac_top_builddir_sub in
12726 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12727 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12728 esac ;;
12729esac
12730ac_abs_top_builddir=$ac_pwd
12731ac_abs_builddir=$ac_pwd$ac_dir_suffix
12732# for backward compatibility:
12733ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
12734
12735case $srcdir in
7a197a62 12736 .) # We are building in place.
ad6254c5 12737 ac_srcdir=.
7a197a62
AK
12738 ac_top_srcdir=$ac_top_builddir_sub
12739 ac_abs_top_srcdir=$ac_pwd ;;
12740 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 12741 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
12742 ac_top_srcdir=$srcdir
12743 ac_abs_top_srcdir=$srcdir ;;
12744 *) # Relative name.
12745 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12746 ac_top_srcdir=$ac_top_build_prefix$srcdir
12747 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 12748esac
7a197a62 12749ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 12750
ad6254c5 12751
7a197a62
AK
12752 case $ac_mode in
12753 :F)
12754 #
12755 # CONFIG_FILE
12756 #
ad6254c5
AK
12757
12758 case $INSTALL in
12759 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 12760 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 12761 esac
fddafd51
ZK
12762 ac_MKDIR_P=$MKDIR_P
12763 case $MKDIR_P in
12764 [\\/$]* | ?:[\\/]* ) ;;
12765 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12766 esac
7a197a62 12767_ACEOF
795ca3e5 12768
68f2de6d 12769cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12770# If the template does not know about datarootdir, expand it.
12771# FIXME: This hack should be removed a few years after 2.60.
12772ac_datarootdir_hack=; ac_datarootdir_seen=
12773
68f2de6d 12774case `sed -n '/datarootdir/ {
7a197a62
AK
12775 p
12776 q
12777}
12778/@datadir@/p
12779/@docdir@/p
12780/@infodir@/p
12781/@localedir@/p
12782/@mandir@/p
68f2de6d 12783' $ac_file_inputs` in
7a197a62
AK
12784*datarootdir*) ac_datarootdir_seen=yes;;
12785*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
68f2de6d
AK
12786 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12787echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 12788_ACEOF
68f2de6d 12789cat >>$CONFIG_STATUS <<_ACEOF
7a197a62
AK
12790 ac_datarootdir_hack='
12791 s&@datadir@&$datadir&g
12792 s&@docdir@&$docdir&g
12793 s&@infodir@&$infodir&g
12794 s&@localedir@&$localedir&g
12795 s&@mandir@&$mandir&g
12796 s&\\\${datarootdir}&$datarootdir&g' ;;
12797esac
12798_ACEOF
12799
12800# Neutralize VPATH when `$srcdir' = `.'.
12801# Shell code in configure.ac might set extrasub.
12802# FIXME: do we really want to maintain this feature?
68f2de6d
AK
12803cat >>$CONFIG_STATUS <<_ACEOF
12804 sed "$ac_vpsub
ad6254c5
AK
12805$extrasub
12806_ACEOF
68f2de6d 12807cat >>$CONFIG_STATUS <<\_ACEOF
ad6254c5
AK
12808:t
12809/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
68f2de6d 12810s&@configure_input@&$configure_input&;t t
7a197a62
AK
12811s&@top_builddir@&$ac_top_builddir_sub&;t t
12812s&@srcdir@&$ac_srcdir&;t t
12813s&@abs_srcdir@&$ac_abs_srcdir&;t t
12814s&@top_srcdir@&$ac_top_srcdir&;t t
12815s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12816s&@builddir@&$ac_builddir&;t t
12817s&@abs_builddir@&$ac_abs_builddir&;t t
12818s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12819s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 12820s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 12821$ac_datarootdir_hack
68f2de6d 12822" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
7a197a62
AK
12823
12824test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12825 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12826 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
68f2de6d 12827 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 12828which seems to be undefined. Please make sure it is defined." >&5
68f2de6d 12829echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
12830which seems to be undefined. Please make sure it is defined." >&2;}
12831
12832 rm -f "$tmp/stdin"
72b2cb61 12833 case $ac_file in
68f2de6d
AK
12834 -) cat "$tmp/out"; rm -f "$tmp/out";;
12835 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12836 esac
7a197a62
AK
12837 ;;
12838 :H)
12839 #
12840 # CONFIG_HEADER
12841 #
68f2de6d
AK
12842_ACEOF
12843
12844# Transform confdefs.h into a sed script `conftest.defines', that
12845# substitutes the proper values into config.h.in to produce config.h.
12846rm -f conftest.defines conftest.tail
12847# First, append a space to every undef/define line, to ease matching.
12848echo 's/$/ /' >conftest.defines
12849# Then, protect against being on the right side of a sed subst, or in
12850# an unquoted here document, in config.status. If some macros were
12851# called several times there might be several #defines for the same
12852# symbol, which is useless. But do not sort them, since the last
12853# AC_DEFINE must be honored.
12854ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12855# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12856# NAME is the cpp macro being defined, VALUE is the value it is being given.
12857# PARAMS is the parameter list in the macro definition--in most cases, it's
12858# just an empty string.
12859ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12860ac_dB='\\)[ (].*,\\1define\\2'
12861ac_dC=' '
12862ac_dD=' ,'
12863
12864uniq confdefs.h |
12865 sed -n '
12866 t rset
12867 :rset
12868 s/^[ ]*#[ ]*define[ ][ ]*//
12869 t ok
12870 d
12871 :ok
12872 s/[\\&,]/\\&/g
12873 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12874 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12875 ' >>conftest.defines
12876
12877# Remove the space that was appended to ease matching.
12878# Then replace #undef with comments. This is necessary, for
12879# example, in the case of _POSIX_SOURCE, which is predefined and required
12880# on some systems where configure will not decide to define it.
12881# (The regexp can be short, since the line contains either #define or #undef.)
12882echo 's/ $//
12883s,^[ #]*u.*,/* & */,' >>conftest.defines
12884
12885# Break up conftest.defines:
12886ac_max_sed_lines=50
12887
12888# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12889# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12890# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12891# et cetera.
12892ac_in='$ac_file_inputs'
12893ac_out='"$tmp/out1"'
12894ac_nxt='"$tmp/out2"'
12895
12896while :
12897do
12898 # Write a here document:
12899 cat >>$CONFIG_STATUS <<_ACEOF
12900 # First, check the format of the line:
12901 cat >"\$tmp/defines.sed" <<\\CEOF
12902/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12903/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12904b
12905:def
12906_ACEOF
12907 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12908 echo 'CEOF
12909 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12910 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12911 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12912 grep . conftest.tail >/dev/null || break
12913 rm -f conftest.defines
12914 mv conftest.tail conftest.defines
12915done
12916rm -f conftest.defines conftest.tail
12917
12918echo "ac_result=$ac_in" >>$CONFIG_STATUS
12919cat >>$CONFIG_STATUS <<\_ACEOF
72b2cb61 12920 if test x"$ac_file" != x-; then
68f2de6d
AK
12921 echo "/* $configure_input */" >"$tmp/config.h"
12922 cat "$ac_result" >>"$tmp/config.h"
12923 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12924 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12925echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 12926 else
68f2de6d
AK
12927 rm -f $ac_file
12928 mv "$tmp/config.h" $ac_file
72b2cb61
AK
12929 fi
12930 else
68f2de6d
AK
12931 echo "/* $configure_input */"
12932 cat "$ac_result"
72b2cb61 12933 fi
68f2de6d 12934 rm -f "$tmp/out12"
7a197a62
AK
12935 ;;
12936
12937
12938 esac
12939
12940done # for ac_tag
795ca3e5 12941
795ca3e5 12942
ad6254c5
AK
12943{ (exit 0); exit 0; }
12944_ACEOF
795ca3e5 12945chmod +x $CONFIG_STATUS
ad6254c5
AK
12946ac_clean_files=$ac_clean_files_save
12947
12948
12949# configure is writing to config.log, and then calls config.status.
12950# config.status does its own redirection, appending to config.log.
12951# Unfortunately, on DOS this fails, as config.log is still kept open
12952# by configure, so config.status won't be able to write to it; its
12953# output is simply discarded. So we exec the FD to /dev/null,
12954# effectively closing config.log, so it can be properly (re)opened and
12955# appended to by config.status. When coming back to configure, we
12956# need to make the FD available again.
12957if test "$no_create" != yes; then
12958 ac_cs_success=:
12959 ac_config_status_args=
12960 test "$silent" = yes &&
12961 ac_config_status_args="$ac_config_status_args --quiet"
12962 exec 5>/dev/null
12963 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12964 exec 5>>config.log
12965 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12966 # would make configure fail if this is the last instruction.
12967 $ac_cs_success || { (exit 1); exit 1; }
12968fi
795ca3e5 12969
2dc95e1c
AK
12970
12971if test x$ODIRECT != xyes; then
68f2de6d
AK
12972 { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
12973echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 12974fi
This page took 1.553705 seconds and 5 git commands to generate.