]> sourceware.org Git - lvm2.git/blame - configure
Add mirror dmeventd library
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
5c7fc7c4 3# Generated by GNU Autoconf 2.59.
795ca3e5 4#
5c7fc7c4 5# Copyright (C) 2003 Free Software Foundation, Inc.
795ca3e5
AK
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
ad6254c5
AK
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
5c7fc7c4 22DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
23
24# Support unset when possible.
5c7fc7c4 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
5c7fc7c4 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
ad6254c5
AK
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
795ca3e5 185
ad6254c5
AK
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
5c7fc7c4 221 test -d ./-p && rmdir ./-p
ad6254c5
AK
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
5c7fc7c4 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
229
230# Sed expression to map a string onto a valid variable name.
5c7fc7c4 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
795ca3e5 254ac_default_prefix=/usr/local
ad6254c5
AK
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="lib/device/dev-cache.h"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
795ca3e5 312ac_default_prefix=/usr
06f62ad1 313ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os AWK CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP ALLOCA LIBOBJS POW_LIB MSGFMT MODPROBE_CMD JOBS STATIC_LINK LVM1 POOL SNAPSHOTS MIRRORS OWNER GROUP COPTIMISE_FLAG CLDFLAGS CLDWHOLEARCHIVE CLDNOWHOLEARCHIVE LDDEPS SOFLAG LVM_VERSION LVM1_FALLBACK DEBUG DEVMAPPER HAVE_LIBDL HAVE_SELINUX CMDLIB LOCALEDIR CONFDIR STATICDIR INTL_PACKAGE INTL CLVMD CLUSTER FSADM DMEVENTD LTLIBOBJS'
ad6254c5 314ac_subst_files=''
795ca3e5
AK
315
316# Initialize some variables set by options.
ad6254c5
AK
317ac_init_help=
318ac_init_version=false
795ca3e5
AK
319# The variables have the same names as the options, with
320# dashes changed to underlines.
ad6254c5 321cache_file=/dev/null
795ca3e5 322exec_prefix=NONE
795ca3e5 323no_create=
795ca3e5
AK
324no_recursion=
325prefix=NONE
326program_prefix=NONE
327program_suffix=NONE
328program_transform_name=s,x,x,
329silent=
330site=
331srcdir=
795ca3e5
AK
332verbose=
333x_includes=NONE
334x_libraries=NONE
ad6254c5
AK
335
336# Installation directory options.
337# These are left unexpanded so users can "make install exec_prefix=/foo"
338# and all the variables that are supposed to be based on exec_prefix
339# by default will actually change.
340# Use braces instead of parens because sh, perl, etc. also accept them.
795ca3e5
AK
341bindir='${exec_prefix}/bin'
342sbindir='${exec_prefix}/sbin'
343libexecdir='${exec_prefix}/libexec'
344datadir='${prefix}/share'
345sysconfdir='${prefix}/etc'
346sharedstatedir='${prefix}/com'
347localstatedir='${prefix}/var'
348libdir='${exec_prefix}/lib'
349includedir='${prefix}/include'
350oldincludedir='/usr/include'
351infodir='${prefix}/info'
352mandir='${prefix}/man'
353
795ca3e5
AK
354ac_prev=
355for ac_option
356do
795ca3e5
AK
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
ad6254c5 364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
795ca3e5
AK
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
ad6254c5 368 case $ac_option in
795ca3e5
AK
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 373 bindir=$ac_optarg ;;
795ca3e5
AK
374
375 -build | --build | --buil | --bui | --bu)
ad6254c5 376 ac_prev=build_alias ;;
795ca3e5 377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 378 build_alias=$ac_optarg ;;
795ca3e5
AK
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
795ca3e5
AK
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
ad6254c5 394 datadir=$ac_optarg ;;
795ca3e5
AK
395
396 -disable-* | --disable-*)
ad6254c5 397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 398 # Reject names that are not valid shell variable names.
ad6254c5
AK
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
795ca3e5
AK
404
405 -enable-* | --enable-*)
ad6254c5 406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 407 # Reject names that are not valid shell variable names.
ad6254c5
AK
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
795ca3e5
AK
414 *) ac_optarg=yes ;;
415 esac
ad6254c5 416 eval "enable_$ac_feature='$ac_optarg'" ;;
795ca3e5
AK
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
ad6254c5 425 exec_prefix=$ac_optarg ;;
795ca3e5
AK
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
ad6254c5
AK
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
795ca3e5
AK
437
438 -host | --host | --hos | --ho)
ad6254c5 439 ac_prev=host_alias ;;
795ca3e5 440 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 441 host_alias=$ac_optarg ;;
795ca3e5
AK
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 448 includedir=$ac_optarg ;;
795ca3e5
AK
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 453 infodir=$ac_optarg ;;
795ca3e5
AK
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 458 libdir=$ac_optarg ;;
795ca3e5
AK
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
ad6254c5 465 libexecdir=$ac_optarg ;;
795ca3e5
AK
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
ad6254c5 474 localstatedir=$ac_optarg ;;
795ca3e5
AK
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 479 mandir=$ac_optarg ;;
795ca3e5
AK
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 486 | --no-cr | --no-c | -n)
795ca3e5
AK
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 500 oldincludedir=$ac_optarg ;;
795ca3e5
AK
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 505 prefix=$ac_optarg ;;
795ca3e5
AK
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 512 program_prefix=$ac_optarg ;;
795ca3e5
AK
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 519 program_suffix=$ac_optarg ;;
795ca3e5
AK
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 536 program_transform_name=$ac_optarg ;;
795ca3e5
AK
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
ad6254c5 546 sbindir=$ac_optarg ;;
795ca3e5
AK
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
ad6254c5 557 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
ad6254c5 562 site=$ac_optarg ;;
795ca3e5
AK
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 567 srcdir=$ac_optarg ;;
795ca3e5
AK
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 574 sysconfdir=$ac_optarg ;;
795ca3e5
AK
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 577 ac_prev=target_alias ;;
795ca3e5 578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 579 target_alias=$ac_optarg ;;
795ca3e5
AK
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
ad6254c5
AK
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
795ca3e5
AK
586
587 -with-* | --with-*)
ad6254c5 588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 589 # Reject names that are not valid shell variable names.
ad6254c5
AK
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
795ca3e5 593 ac_package=`echo $ac_package| sed 's/-/_/g'`
ad6254c5
AK
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
795ca3e5
AK
596 *) ac_optarg=yes ;;
597 esac
ad6254c5 598 eval "with_$ac_package='$ac_optarg'" ;;
795ca3e5
AK
599
600 -without-* | --without-*)
ad6254c5 601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 602 # Reject names that are not valid shell variable names.
ad6254c5
AK
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
795ca3e5
AK
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 618 x_includes=$ac_optarg ;;
795ca3e5
AK
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 625 x_libraries=$ac_optarg ;;
795ca3e5 626
ad6254c5
AK
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
795ca3e5
AK
630 ;;
631
ad6254c5
AK
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
795ca3e5 642 *)
ad6254c5
AK
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
648 ;;
649
650 esac
651done
652
653if test -n "$ac_prev"; then
ad6254c5
AK
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
795ca3e5 657fi
795ca3e5 658
ad6254c5
AK
659# Be sure to have absolute paths.
660for ac_var in exec_prefix prefix
661do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668done
795ca3e5 669
ad6254c5
AK
670# Be sure to have absolute paths.
671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
5c7fc7c4 672 localstatedir libdir includedir oldincludedir infodir mandir
795ca3e5 673do
ad6254c5
AK
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
795ca3e5
AK
679 esac
680done
681
ad6254c5
AK
682# There might be people who depend on the old broken behavior: `$host'
683# used to hold the argument of --host etc.
684# FIXME: To remove some day.
685build=$build_alias
686host=$host_alias
687target=$target_alias
688
689# FIXME: To remove some day.
690if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698fi
8106cdd5 699
ad6254c5
AK
700ac_tool_prefix=
701test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703test "$silent" = yes && exec 6>/dev/null
795ca3e5 704
795ca3e5
AK
705
706# Find the source files, if location was not specified.
707if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
ad6254c5
AK
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5c7fc7c4
PC
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
ad6254c5
AK
716echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
795ca3e5
AK
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726else
727 ac_srcdir_defaulted=no
728fi
729if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
ad6254c5
AK
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
795ca3e5 733 else
ad6254c5
AK
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
795ca3e5
AK
736 fi
737fi
ad6254c5
AK
738(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742ac_env_build_alias_set=${build_alias+set}
743ac_env_build_alias_value=$build_alias
744ac_cv_env_build_alias_set=${build_alias+set}
745ac_cv_env_build_alias_value=$build_alias
746ac_env_host_alias_set=${host_alias+set}
747ac_env_host_alias_value=$host_alias
748ac_cv_env_host_alias_set=${host_alias+set}
749ac_cv_env_host_alias_value=$host_alias
750ac_env_target_alias_set=${target_alias+set}
751ac_env_target_alias_value=$target_alias
752ac_cv_env_target_alias_set=${target_alias+set}
753ac_cv_env_target_alias_value=$target_alias
754ac_env_CC_set=${CC+set}
755ac_env_CC_value=$CC
756ac_cv_env_CC_set=${CC+set}
757ac_cv_env_CC_value=$CC
758ac_env_CFLAGS_set=${CFLAGS+set}
759ac_env_CFLAGS_value=$CFLAGS
760ac_cv_env_CFLAGS_set=${CFLAGS+set}
761ac_cv_env_CFLAGS_value=$CFLAGS
762ac_env_LDFLAGS_set=${LDFLAGS+set}
763ac_env_LDFLAGS_value=$LDFLAGS
764ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765ac_cv_env_LDFLAGS_value=$LDFLAGS
766ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_env_CPPFLAGS_value=$CPPFLAGS
768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770ac_env_CPP_set=${CPP+set}
771ac_env_CPP_value=$CPP
772ac_cv_env_CPP_set=${CPP+set}
773ac_cv_env_CPP_value=$CPP
774
775#
776# Report the --help message.
777#
778if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782\`configure' configures this package to adapt to many kinds of systems.
783
784Usage: $0 [OPTION]... [VAR=VALUE]...
785
786To assign environment variables (e.g., CC, CFLAGS...), specify them as
787VAR=VALUE. See below for descriptions of some of the useful variables.
788
789Defaults for the options are specified in brackets.
790
791Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802_ACEOF
803
804 cat <<_ACEOF
805Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
5c7fc7c4 807 [$ac_default_prefix]
ad6254c5 808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5c7fc7c4 809 [PREFIX]
ad6254c5
AK
810
811By default, \`make install' will install all the files in
812\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814for instance \`--prefix=\$HOME'.
815
816For better control, use the options below.
817
818Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831_ACEOF
832
833 cat <<\_ACEOF
834
835System types:
836 --build=BUILD configure for building on BUILD [guessed]
837 --host=HOST cross-compile to build programs to run on HOST [BUILD]
838 --target=TARGET configure for building compilers for TARGET [HOST]
839_ACEOF
840fi
841
842if test -n "$ac_init_help"; then
843
844 cat <<\_ACEOF
845
846Optional Features:
847 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
848 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
849 --enable-jobs=NUM Number of jobs to run simultaneously
850 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
851 device-mapper is missing from the kernel
852 --enable-static_link Use this to link the tools to their libraries
853 statically. Default is dynamic linking
854 --enable-readline Enable readline support
855 --disable-selinux Disable selinux support
856 --enable-debug Enable debugging
857 --disable-devmapper Disable device-mapper interaction
858 --disable-o_direct Disable O_DIRECT
859 --enable-cmdlib Build shared command library
860 --enable-fsadm Enable fsadm
06f62ad1 861 --enable-dmeventd Enable dmeventd
ad6254c5
AK
862 --enable-nls Enable Native Language Support
863
864Optional Packages:
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --with-user=USER Set the owner of installed files
868 --with-group=GROUP Set the group owner of installed files
869 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
870 TYPE=internal
871 --with-pool=TYPE GFS pool read-only support: internal/shared/none
872 TYPE=internal
873 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
874 TYPE=internal
875 --with-snapshots=TYPE Snapshot support: internal/shared/none
876 TYPE=internal
877 --with-mirrors=TYPE Mirror support: internal/shared/none
878 TYPE=internal
5c7fc7c4 879 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all
a266258f 880 TYPE=none
ad6254c5
AK
881 --with-optimisation=OPT C optimisation flag OPT=-O2
882 --with-localedir=DIR Translation files in DIR PREFIX/share/locale
883 --with-confdir=DIR Configuration files in DIR /etc
884 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
885
886Some influential environment variables:
887 CC C compiler command
888 CFLAGS C compiler flags
889 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
890 nonstandard directory <lib dir>
891 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
892 headers in a nonstandard directory <include dir>
893 CPP C preprocessor
894
895Use these variables to override the choices made by `configure' or to help
896it to find libraries and programs with nonstandard names/locations.
897
898_ACEOF
899fi
900
901if test "$ac_init_help" = "recursive"; then
902 # If there are subdirs, report their specific --help.
903 ac_popdir=`pwd`
904 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
905 test -d $ac_dir || continue
906 ac_builddir=.
907
908if test "$ac_dir" != .; then
909 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
910 # A "../" for each directory in $ac_dir_suffix.
911 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
912else
913 ac_dir_suffix= ac_top_builddir=
914fi
915
916case $srcdir in
917 .) # No --srcdir option. We are building in place.
918 ac_srcdir=.
919 if test -z "$ac_top_builddir"; then
920 ac_top_srcdir=.
921 else
922 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
923 fi ;;
924 [\\/]* | ?:[\\/]* ) # Absolute path.
925 ac_srcdir=$srcdir$ac_dir_suffix;
926 ac_top_srcdir=$srcdir ;;
927 *) # Relative path.
928 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
929 ac_top_srcdir=$ac_top_builddir$srcdir ;;
930esac
5c7fc7c4
PC
931
932# Do not use `cd foo && pwd` to compute absolute paths, because
933# the directories may not exist.
934case `pwd` in
935.) ac_abs_builddir="$ac_dir";;
936*)
937 case "$ac_dir" in
938 .) ac_abs_builddir=`pwd`;;
939 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
940 *) ac_abs_builddir=`pwd`/"$ac_dir";;
941 esac;;
942esac
943case $ac_abs_builddir in
944.) ac_abs_top_builddir=${ac_top_builddir}.;;
945*)
946 case ${ac_top_builddir}. in
947 .) ac_abs_top_builddir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
949 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
950 esac;;
951esac
952case $ac_abs_builddir in
953.) ac_abs_srcdir=$ac_srcdir;;
954*)
955 case $ac_srcdir in
956 .) ac_abs_srcdir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
958 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
959 esac;;
960esac
961case $ac_abs_builddir in
962.) ac_abs_top_srcdir=$ac_top_srcdir;;
963*)
964 case $ac_top_srcdir in
965 .) ac_abs_top_srcdir=$ac_abs_builddir;;
966 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
967 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
968 esac;;
969esac
ad6254c5
AK
970
971 cd $ac_dir
972 # Check for guested configure; otherwise get Cygnus style configure.
973 if test -f $ac_srcdir/configure.gnu; then
974 echo
975 $SHELL $ac_srcdir/configure.gnu --help=recursive
976 elif test -f $ac_srcdir/configure; then
977 echo
978 $SHELL $ac_srcdir/configure --help=recursive
979 elif test -f $ac_srcdir/configure.ac ||
5c7fc7c4 980 test -f $ac_srcdir/configure.in; then
ad6254c5
AK
981 echo
982 $ac_configure --help
983 else
984 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
985 fi
986 cd $ac_popdir
987 done
988fi
989
990test -n "$ac_init_help" && exit 0
991if $ac_init_version; then
992 cat <<\_ACEOF
993
5c7fc7c4 994Copyright (C) 2003 Free Software Foundation, Inc.
ad6254c5
AK
995This configure script is free software; the Free Software Foundation
996gives unlimited permission to copy, distribute and modify it.
997_ACEOF
998 exit 0
999fi
1000exec 5>config.log
1001cat >&5 <<_ACEOF
1002This file contains any messages produced by compilers while
1003running configure, to aid debugging if configure makes a mistake.
1004
1005It was created by $as_me, which was
5c7fc7c4 1006generated by GNU Autoconf 2.59. Invocation command line was
ad6254c5
AK
1007
1008 $ $0 $@
1009
1010_ACEOF
1011{
1012cat <<_ASUNAME
1013## --------- ##
1014## Platform. ##
1015## --------- ##
1016
1017hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1018uname -m = `(uname -m) 2>/dev/null || echo unknown`
1019uname -r = `(uname -r) 2>/dev/null || echo unknown`
1020uname -s = `(uname -s) 2>/dev/null || echo unknown`
1021uname -v = `(uname -v) 2>/dev/null || echo unknown`
1022
1023/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1024/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1025
1026/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1027/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1028/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1029hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1030/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1031/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1032/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1033
1034_ASUNAME
1035
1036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1037for as_dir in $PATH
1038do
1039 IFS=$as_save_IFS
1040 test -z "$as_dir" && as_dir=.
1041 echo "PATH: $as_dir"
1042done
1043
1044} >&5
1045
1046cat >&5 <<_ACEOF
1047
1048
1049## ----------- ##
1050## Core tests. ##
1051## ----------- ##
1052
1053_ACEOF
1054
1055
1056# Keep a trace of the command line.
1057# Strip out --no-create and --no-recursion so they do not pile up.
1058# Strip out --silent because we don't want to record it for future runs.
1059# Also quote any args containing shell meta-characters.
1060# Make two passes to allow for proper duplicate-argument suppression.
1061ac_configure_args=
1062ac_configure_args0=
1063ac_configure_args1=
1064ac_sep=
1065ac_must_keep_next=false
1066for ac_pass in 1 2
1067do
1068 for ac_arg
1069 do
1070 case $ac_arg in
1071 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1074 continue ;;
1075 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1076 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1077 esac
1078 case $ac_pass in
1079 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1080 2)
1081 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1082 if test $ac_must_keep_next = true; then
5c7fc7c4 1083 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1084 else
5c7fc7c4
PC
1085 case $ac_arg in
1086 *=* | --config-cache | -C | -disable-* | --disable-* \
1087 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1088 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1089 | -with-* | --with-* | -without-* | --without-* | --x)
1090 case "$ac_configure_args0 " in
1091 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1092 esac
1093 ;;
1094 -* ) ac_must_keep_next=true ;;
1095 esac
ad6254c5
AK
1096 fi
1097 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1098 # Get rid of the leading space.
1099 ac_sep=" "
1100 ;;
1101 esac
1102 done
1103done
1104$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1105$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1106
1107# When interrupted or exit'd, cleanup temporary files, and complete
1108# config.log. We remove comments because anyway the quotes in there
1109# would cause problems or look ugly.
1110# WARNING: Be sure not to use single quotes in there, as some shells,
1111# such as our DU 5.0 friend, will then `close' the trap.
1112trap 'exit_status=$?
1113 # Save into config.log some information that might help in debugging.
1114 {
1115 echo
1116
1117 cat <<\_ASBOX
1118## ---------------- ##
1119## Cache variables. ##
1120## ---------------- ##
1121_ASBOX
1122 echo
1123 # The following way of writing the cache mishandles newlines in values,
1124{
1125 (set) 2>&1 |
1126 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1127 *ac_space=\ *)
1128 sed -n \
5c7fc7c4
PC
1129 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
ad6254c5
AK
1131 ;;
1132 *)
1133 sed -n \
5c7fc7c4 1134 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
ad6254c5
AK
1135 ;;
1136 esac;
1137}
1138 echo
1139
1140 cat <<\_ASBOX
1141## ----------------- ##
1142## Output variables. ##
1143## ----------------- ##
1144_ASBOX
1145 echo
1146 for ac_var in $ac_subst_vars
1147 do
1148 eval ac_val=$`echo $ac_var`
1149 echo "$ac_var='"'"'$ac_val'"'"'"
1150 done | sort
1151 echo
1152
1153 if test -n "$ac_subst_files"; then
1154 cat <<\_ASBOX
1155## ------------- ##
1156## Output files. ##
1157## ------------- ##
1158_ASBOX
1159 echo
1160 for ac_var in $ac_subst_files
1161 do
1162 eval ac_val=$`echo $ac_var`
5c7fc7c4 1163 echo "$ac_var='"'"'$ac_val'"'"'"
ad6254c5
AK
1164 done | sort
1165 echo
1166 fi
1167
1168 if test -s confdefs.h; then
1169 cat <<\_ASBOX
1170## ----------- ##
1171## confdefs.h. ##
1172## ----------- ##
1173_ASBOX
1174 echo
1175 sed "/^$/d" confdefs.h | sort
1176 echo
1177 fi
1178 test "$ac_signal" != 0 &&
1179 echo "$as_me: caught signal $ac_signal"
1180 echo "$as_me: exit $exit_status"
1181 } >&5
5c7fc7c4 1182 rm -f core *.core &&
ad6254c5
AK
1183 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1184 exit $exit_status
1185 ' 0
1186for ac_signal in 1 2 13 15; do
1187 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1188done
1189ac_signal=0
1190
1191# confdefs.h avoids OS command line length limits that DEFS can exceed.
1192rm -rf conftest* confdefs.h
1193# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1194echo >confdefs.h
1195
1196# Predefined preprocessor variables.
1197
1198cat >>confdefs.h <<_ACEOF
1199#define PACKAGE_NAME "$PACKAGE_NAME"
1200_ACEOF
1201
1202
1203cat >>confdefs.h <<_ACEOF
1204#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1205_ACEOF
1206
1207
1208cat >>confdefs.h <<_ACEOF
1209#define PACKAGE_VERSION "$PACKAGE_VERSION"
1210_ACEOF
8106cdd5 1211
ad6254c5
AK
1212
1213cat >>confdefs.h <<_ACEOF
1214#define PACKAGE_STRING "$PACKAGE_STRING"
1215_ACEOF
1216
1217
1218cat >>confdefs.h <<_ACEOF
1219#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1220_ACEOF
1221
1222
1223# Let the site file select an alternate cache file if it wants to.
795ca3e5
AK
1224# Prefer explicitly selected file to automatically selected ones.
1225if test -z "$CONFIG_SITE"; then
1226 if test "x$prefix" != xNONE; then
1227 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1228 else
1229 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230 fi
1231fi
1232for ac_site_file in $CONFIG_SITE; do
1233 if test -r "$ac_site_file"; then
ad6254c5
AK
1234 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1235echo "$as_me: loading site script $ac_site_file" >&6;}
1236 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1237 . "$ac_site_file"
1238 fi
1239done
1240
1241if test -r "$cache_file"; then
ad6254c5
AK
1242 # Some versions of bash will fail to source /dev/null (special
1243 # files actually), so we avoid doing that.
1244 if test -f "$cache_file"; then
1245 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1246echo "$as_me: loading cache $cache_file" >&6;}
1247 case $cache_file in
1248 [\\/]* | ?:[\\/]* ) . $cache_file;;
1249 *) . ./$cache_file;;
1250 esac
1251 fi
795ca3e5 1252else
ad6254c5
AK
1253 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1254echo "$as_me: creating cache $cache_file" >&6;}
1255 >$cache_file
1256fi
1257
1258# Check that the precious variables saved in the cache have kept the same
1259# value.
1260ac_cache_corrupted=false
1261for ac_var in `(set) 2>&1 |
5c7fc7c4 1262 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
ad6254c5
AK
1263 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1264 eval ac_new_set=\$ac_env_${ac_var}_set
1265 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1266 eval ac_new_val="\$ac_env_${ac_var}_value"
1267 case $ac_old_set,$ac_new_set in
1268 set,)
1269 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1270echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1271 ac_cache_corrupted=: ;;
1272 ,set)
1273 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1274echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1275 ac_cache_corrupted=: ;;
1276 ,);;
1277 *)
1278 if test "x$ac_old_val" != "x$ac_new_val"; then
5c7fc7c4 1279 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
ad6254c5 1280echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
5c7fc7c4 1281 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
ad6254c5 1282echo "$as_me: former value: $ac_old_val" >&2;}
5c7fc7c4 1283 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
ad6254c5 1284echo "$as_me: current value: $ac_new_val" >&2;}
5c7fc7c4 1285 ac_cache_corrupted=:
ad6254c5
AK
1286 fi;;
1287 esac
1288 # Pass precious variables to config.status.
1289 if test "$ac_new_set" = set; then
1290 case $ac_new_val in
1291 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1293 *) ac_arg=$ac_var=$ac_new_val ;;
1294 esac
1295 case " $ac_configure_args " in
1296 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1297 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1298 esac
1299 fi
1300done
1301if $ac_cache_corrupted; then
1302 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1303echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1304 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1305echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1306 { (exit 1); exit 1; }; }
795ca3e5
AK
1307fi
1308
1309ac_ext=c
795ca3e5 1310ac_cpp='$CPP $CPPFLAGS'
ad6254c5
AK
1311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313ac_compiler_gnu=$ac_cv_c_compiler_gnu
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
795ca3e5
AK
1331
1332
1333
80992638 1334################################################################################
795ca3e5
AK
1335ac_aux_dir=
1336for ac_dir in autoconf $srcdir/autoconf; do
1337 if test -f $ac_dir/install-sh; then
1338 ac_aux_dir=$ac_dir
1339 ac_install_sh="$ac_aux_dir/install-sh -c"
1340 break
1341 elif test -f $ac_dir/install.sh; then
1342 ac_aux_dir=$ac_dir
1343 ac_install_sh="$ac_aux_dir/install.sh -c"
1344 break
ad6254c5
AK
1345 elif test -f $ac_dir/shtool; then
1346 ac_aux_dir=$ac_dir
1347 ac_install_sh="$ac_aux_dir/shtool install -c"
1348 break
795ca3e5
AK
1349 fi
1350done
1351if test -z "$ac_aux_dir"; then
ad6254c5
AK
1352 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1353echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1354 { (exit 1); exit 1; }; }
795ca3e5 1355fi
ad6254c5
AK
1356ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1357ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1358ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
8ce0cbda
AK
1359
1360
ad6254c5 1361################################################################################
8ce0cbda 1362# Make sure we can run config.sub.
ad6254c5
AK
1363$ac_config_sub sun4 >/dev/null 2>&1 ||
1364 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1365echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1366 { (exit 1); exit 1; }; }
1367
1368echo "$as_me:$LINENO: checking build system type" >&5
1369echo $ECHO_N "checking build system type... $ECHO_C" >&6
1370if test "${ac_cv_build+set}" = set; then
1371 echo $ECHO_N "(cached) $ECHO_C" >&6
1372else
1373 ac_cv_build_alias=$build_alias
1374test -z "$ac_cv_build_alias" &&
1375 ac_cv_build_alias=`$ac_config_guess`
1376test -z "$ac_cv_build_alias" &&
1377 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1378echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1379 { (exit 1); exit 1; }; }
1380ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1381 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1382echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1383 { (exit 1); exit 1; }; }
1384
1385fi
1386echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1387echo "${ECHO_T}$ac_cv_build" >&6
1388build=$ac_cv_build
1389build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1390build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1391build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1392
1393
1394echo "$as_me:$LINENO: checking host system type" >&5
1395echo $ECHO_N "checking host system type... $ECHO_C" >&6
1396if test "${ac_cv_host+set}" = set; then
1397 echo $ECHO_N "(cached) $ECHO_C" >&6
1398else
1399 ac_cv_host_alias=$host_alias
1400test -z "$ac_cv_host_alias" &&
1401 ac_cv_host_alias=$ac_cv_build_alias
1402ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1403 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1404echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1405 { (exit 1); exit 1; }; }
1406
1407fi
1408echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1409echo "${ECHO_T}$ac_cv_host" >&6
1410host=$ac_cv_host
1411host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1412host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1413host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1414
1415
1416echo "$as_me:$LINENO: checking target system type" >&5
1417echo $ECHO_N "checking target system type... $ECHO_C" >&6
1418if test "${ac_cv_target+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1420else
1421 ac_cv_target_alias=$target_alias
1422test "x$ac_cv_target_alias" = "x" &&
1423 ac_cv_target_alias=$ac_cv_host_alias
1424ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1425 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1426echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1427 { (exit 1); exit 1; }; }
8ce0cbda 1428
ad6254c5
AK
1429fi
1430echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1431echo "${ECHO_T}$ac_cv_target" >&6
1432target=$ac_cv_target
1433target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1434target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1435target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8ce0cbda 1436
8ce0cbda 1437
ad6254c5
AK
1438# The aliases save the names the user supplied, while $host etc.
1439# will get canonicalized.
1440test -n "$target_alias" &&
8ce0cbda
AK
1441 test "$program_prefix$program_suffix$program_transform_name" = \
1442 NONENONEs,x,x, &&
1443 program_prefix=${target_alias}-
1444
8ce0cbda
AK
1445case "$host_os" in
1446 linux*)
1447 CFLAGS="$CFLAGS"
1448 COPTIMISE_FLAG="-O2"
1449 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
1450 CLDWHOLEARCHIVE="-Wl,-whole-archive"
1451 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
1452 LDDEPS="$LDDEPS .export.sym"
1453 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
1454 SOFLAG="-shared"
1455 DEVMAPPER=yes
1456 ODIRECT=yes
1457 SELINUX=yes
1458 CLUSTER=internal
1459 FSADM=no ;;
1460 darwin*)
1461 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
1462 COPTIMISE_FLAG="-O2"
1463 CLDFLAGS="$CLDFLAGS"
1464 CLDWHOLEARCHIVE="-all_load"
1465 CLDNOWHOLEARCHIVE=
1466 LDDEPS="$LDDEPS"
1467 LDFLAGS="$LDFLAGS"
1468 SOFLAG="-dynamiclib"
a653923f 1469 DEVMAPPER=yes
8ce0cbda
AK
1470 ODIRECT=no
1471 SELINUX=no
1472 CLUSTER=none
1473 FSADM=no ;;
1474esac
1475
80992638 1476################################################################################
ad6254c5 1477for ac_prog in gawk mawk nawk awk
795ca3e5 1478do
ad6254c5 1479 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 1480set dummy $ac_prog; ac_word=$2
ad6254c5
AK
1481echo "$as_me:$LINENO: checking for $ac_word" >&5
1482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483if test "${ac_cv_prog_AWK+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1485else
1486 if test -n "$AWK"; then
1487 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1488else
ad6254c5
AK
1489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490for as_dir in $PATH
1491do
1492 IFS=$as_save_IFS
1493 test -z "$as_dir" && as_dir=.
1494 for ac_exec_ext in '' $ac_executable_extensions; do
1495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496 ac_cv_prog_AWK="$ac_prog"
1497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 break 2
1499 fi
1500done
1501done
1502
795ca3e5
AK
1503fi
1504fi
ad6254c5 1505AWK=$ac_cv_prog_AWK
795ca3e5 1506if test -n "$AWK"; then
ad6254c5
AK
1507 echo "$as_me:$LINENO: result: $AWK" >&5
1508echo "${ECHO_T}$AWK" >&6
795ca3e5 1509else
ad6254c5
AK
1510 echo "$as_me:$LINENO: result: no" >&5
1511echo "${ECHO_T}no" >&6
795ca3e5
AK
1512fi
1513
ad6254c5
AK
1514 test -n "$AWK" && break
1515done
1516
1517ac_ext=c
1518ac_cpp='$CPP $CPPFLAGS'
1519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1521ac_compiler_gnu=$ac_cv_c_compiler_gnu
1522if test -n "$ac_tool_prefix"; then
1523 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1524set dummy ${ac_tool_prefix}gcc; ac_word=$2
1525echo "$as_me:$LINENO: checking for $ac_word" >&5
1526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1527if test "${ac_cv_prog_CC+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1529else
1530 if test -n "$CC"; then
1531 ac_cv_prog_CC="$CC" # Let the user override the test.
1532else
1533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1534for as_dir in $PATH
1535do
1536 IFS=$as_save_IFS
1537 test -z "$as_dir" && as_dir=.
1538 for ac_exec_ext in '' $ac_executable_extensions; do
1539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1540 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1542 break 2
1543 fi
1544done
8106cdd5
AK
1545done
1546
ad6254c5
AK
1547fi
1548fi
1549CC=$ac_cv_prog_CC
1550if test -n "$CC"; then
1551 echo "$as_me:$LINENO: result: $CC" >&5
1552echo "${ECHO_T}$CC" >&6
1553else
1554 echo "$as_me:$LINENO: result: no" >&5
1555echo "${ECHO_T}no" >&6
1556fi
1557
1558fi
1559if test -z "$ac_cv_prog_CC"; then
1560 ac_ct_CC=$CC
1561 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 1562set dummy gcc; ac_word=$2
ad6254c5
AK
1563echo "$as_me:$LINENO: checking for $ac_word" >&5
1564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1565if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1567else
1568 if test -n "$ac_ct_CC"; then
1569 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1570else
1571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1572for as_dir in $PATH
1573do
1574 IFS=$as_save_IFS
1575 test -z "$as_dir" && as_dir=.
1576 for ac_exec_ext in '' $ac_executable_extensions; do
1577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1578 ac_cv_prog_ac_ct_CC="gcc"
1579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1580 break 2
1581 fi
1582done
1583done
1584
1585fi
1586fi
1587ac_ct_CC=$ac_cv_prog_ac_ct_CC
1588if test -n "$ac_ct_CC"; then
1589 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1590echo "${ECHO_T}$ac_ct_CC" >&6
1591else
1592 echo "$as_me:$LINENO: result: no" >&5
1593echo "${ECHO_T}no" >&6
1594fi
1595
1596 CC=$ac_ct_CC
1597else
1598 CC="$ac_cv_prog_CC"
1599fi
1600
1601if test -z "$CC"; then
1602 if test -n "$ac_tool_prefix"; then
1603 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1604set dummy ${ac_tool_prefix}cc; ac_word=$2
1605echo "$as_me:$LINENO: checking for $ac_word" >&5
1606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1607if test "${ac_cv_prog_CC+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5
AK
1609else
1610 if test -n "$CC"; then
1611 ac_cv_prog_CC="$CC" # Let the user override the test.
1612else
ad6254c5
AK
1613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614for as_dir in $PATH
1615do
1616 IFS=$as_save_IFS
1617 test -z "$as_dir" && as_dir=.
1618 for ac_exec_ext in '' $ac_executable_extensions; do
1619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1620 ac_cv_prog_CC="${ac_tool_prefix}cc"
1621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 break 2
1623 fi
1624done
1625done
1626
8106cdd5
AK
1627fi
1628fi
ad6254c5 1629CC=$ac_cv_prog_CC
8106cdd5 1630if test -n "$CC"; then
ad6254c5
AK
1631 echo "$as_me:$LINENO: result: $CC" >&5
1632echo "${ECHO_T}$CC" >&6
1633else
1634 echo "$as_me:$LINENO: result: no" >&5
1635echo "${ECHO_T}no" >&6
1636fi
1637
1638fi
1639if test -z "$ac_cv_prog_CC"; then
1640 ac_ct_CC=$CC
1641 # Extract the first word of "cc", so it can be a program name with args.
1642set dummy cc; ac_word=$2
1643echo "$as_me:$LINENO: checking for $ac_word" >&5
1644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1646 echo $ECHO_N "(cached) $ECHO_C" >&6
1647else
1648 if test -n "$ac_ct_CC"; then
1649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1650else
1651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652for as_dir in $PATH
1653do
1654 IFS=$as_save_IFS
1655 test -z "$as_dir" && as_dir=.
1656 for ac_exec_ext in '' $ac_executable_extensions; do
1657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658 ac_cv_prog_ac_ct_CC="cc"
1659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660 break 2
1661 fi
1662done
1663done
1664
1665fi
1666fi
1667ac_ct_CC=$ac_cv_prog_ac_ct_CC
1668if test -n "$ac_ct_CC"; then
1669 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1670echo "${ECHO_T}$ac_ct_CC" >&6
1671else
1672 echo "$as_me:$LINENO: result: no" >&5
1673echo "${ECHO_T}no" >&6
1674fi
1675
1676 CC=$ac_ct_CC
8106cdd5 1677else
ad6254c5 1678 CC="$ac_cv_prog_CC"
8106cdd5
AK
1679fi
1680
ad6254c5 1681fi
795ca3e5
AK
1682if test -z "$CC"; then
1683 # Extract the first word of "cc", so it can be a program name with args.
1684set dummy cc; ac_word=$2
ad6254c5
AK
1685echo "$as_me:$LINENO: checking for $ac_word" >&5
1686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687if test "${ac_cv_prog_CC+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1689else
1690 if test -n "$CC"; then
1691 ac_cv_prog_CC="$CC" # Let the user override the test.
1692else
795ca3e5 1693 ac_prog_rejected=no
ad6254c5
AK
1694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695for as_dir in $PATH
1696do
1697 IFS=$as_save_IFS
1698 test -z "$as_dir" && as_dir=.
1699 for ac_exec_ext in '' $ac_executable_extensions; do
1700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1701 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1702 ac_prog_rejected=yes
1703 continue
1704 fi
1705 ac_cv_prog_CC="cc"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707 break 2
1708 fi
1709done
1710done
1711
795ca3e5
AK
1712if test $ac_prog_rejected = yes; then
1713 # We found a bogon in the path, so make sure we never use it.
1714 set dummy $ac_cv_prog_CC
1715 shift
ad6254c5 1716 if test $# != 0; then
795ca3e5
AK
1717 # We chose a different compiler from the bogus one.
1718 # However, it has the same basename, so the bogon will be chosen
1719 # first if we set CC to just the basename; use the full file name.
1720 shift
ad6254c5 1721 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
1722 fi
1723fi
1724fi
1725fi
ad6254c5 1726CC=$ac_cv_prog_CC
795ca3e5 1727if test -n "$CC"; then
ad6254c5
AK
1728 echo "$as_me:$LINENO: result: $CC" >&5
1729echo "${ECHO_T}$CC" >&6
795ca3e5 1730else
ad6254c5
AK
1731 echo "$as_me:$LINENO: result: no" >&5
1732echo "${ECHO_T}no" >&6
795ca3e5
AK
1733fi
1734
ad6254c5
AK
1735fi
1736if test -z "$CC"; then
1737 if test -n "$ac_tool_prefix"; then
1738 for ac_prog in cl
1739 do
1740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1741set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1742echo "$as_me:$LINENO: checking for $ac_word" >&5
1743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1744if test "${ac_cv_prog_CC+set}" = set; then
1745 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1746else
1747 if test -n "$CC"; then
1748 ac_cv_prog_CC="$CC" # Let the user override the test.
1749else
ad6254c5
AK
1750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751for as_dir in $PATH
1752do
1753 IFS=$as_save_IFS
1754 test -z "$as_dir" && as_dir=.
1755 for ac_exec_ext in '' $ac_executable_extensions; do
1756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1757 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1759 break 2
1760 fi
1761done
1762done
1763
795ca3e5
AK
1764fi
1765fi
ad6254c5 1766CC=$ac_cv_prog_CC
795ca3e5 1767if test -n "$CC"; then
ad6254c5
AK
1768 echo "$as_me:$LINENO: result: $CC" >&5
1769echo "${ECHO_T}$CC" >&6
795ca3e5 1770else
ad6254c5
AK
1771 echo "$as_me:$LINENO: result: no" >&5
1772echo "${ECHO_T}no" >&6
795ca3e5 1773fi
ad6254c5
AK
1774
1775 test -n "$CC" && break
1776 done
1777fi
1778if test -z "$CC"; then
1779 ac_ct_CC=$CC
1780 for ac_prog in cl
1781do
1782 # Extract the first word of "$ac_prog", so it can be a program name with args.
1783set dummy $ac_prog; ac_word=$2
1784echo "$as_me:$LINENO: checking for $ac_word" >&5
1785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1786if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
1788else
1789 if test -n "$ac_ct_CC"; then
1790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1791else
1792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1793for as_dir in $PATH
1794do
1795 IFS=$as_save_IFS
1796 test -z "$as_dir" && as_dir=.
1797 for ac_exec_ext in '' $ac_executable_extensions; do
1798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1799 ac_cv_prog_ac_ct_CC="$ac_prog"
1800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801 break 2
795ca3e5 1802 fi
ad6254c5
AK
1803done
1804done
1805
1806fi
1807fi
1808ac_ct_CC=$ac_cv_prog_ac_ct_CC
1809if test -n "$ac_ct_CC"; then
1810 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1811echo "${ECHO_T}$ac_ct_CC" >&6
1812else
1813 echo "$as_me:$LINENO: result: no" >&5
1814echo "${ECHO_T}no" >&6
795ca3e5
AK
1815fi
1816
ad6254c5
AK
1817 test -n "$ac_ct_CC" && break
1818done
795ca3e5 1819
ad6254c5
AK
1820 CC=$ac_ct_CC
1821fi
1822
1823fi
1824
1825
1826test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1827See \`config.log' for more details." >&5
1828echo "$as_me: error: no acceptable C compiler found in \$PATH
1829See \`config.log' for more details." >&2;}
1830 { (exit 1); exit 1; }; }
1831
1832# Provide some information about the compiler.
1833echo "$as_me:$LINENO:" \
1834 "checking for C compiler version" >&5
1835ac_compiler=`set X $ac_compile; echo $2`
1836{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1837 (eval $ac_compiler --version </dev/null >&5) 2>&5
1838 ac_status=$?
1839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1840 (exit $ac_status); }
1841{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1842 (eval $ac_compiler -v </dev/null >&5) 2>&5
1843 ac_status=$?
1844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845 (exit $ac_status); }
1846{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1847 (eval $ac_compiler -V </dev/null >&5) 2>&5
1848 ac_status=$?
1849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850 (exit $ac_status); }
1851
1852cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
1853/* confdefs.h. */
1854_ACEOF
1855cat confdefs.h >>conftest.$ac_ext
1856cat >>conftest.$ac_ext <<_ACEOF
1857/* end confdefs.h. */
1858
1859int
1860main ()
1861{
1862
1863 ;
1864 return 0;
1865}
1866_ACEOF
1867ac_clean_files_save=$ac_clean_files
1868ac_clean_files="$ac_clean_files a.out a.exe b.out"
1869# Try to create an executable without -o first, disregard a.out.
1870# It will help us diagnose broken compilers, and finding out an intuition
1871# of exeext.
5c7fc7c4
PC
1872echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1873echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
ad6254c5
AK
1874ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1875if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1876 (eval $ac_link_default) 2>&5
1877 ac_status=$?
1878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1879 (exit $ac_status); }; then
1880 # Find the output, starting from the most likely. This scheme is
1881# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1882# resort.
1883
1884# Be careful to initialize this variable, since it used to be cached.
1885# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1886ac_cv_exeext=
1887# b.out is created by i960 compilers.
1888for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1889do
1890 test -f "$ac_file" || continue
1891 case $ac_file in
1892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
5c7fc7c4 1893 ;;
ad6254c5 1894 conftest.$ac_ext )
5c7fc7c4
PC
1895 # This is the source file.
1896 ;;
ad6254c5 1897 [ab].out )
5c7fc7c4
PC
1898 # We found the default executable, but exeext='' is most
1899 # certainly right.
1900 break;;
ad6254c5 1901 *.* )
5c7fc7c4
PC
1902 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1903 # FIXME: I believe we export ac_cv_exeext for Libtool,
1904 # but it would be cool to find out if it's true. Does anybody
1905 # maintain Libtool? --akim.
1906 export ac_cv_exeext
1907 break;;
ad6254c5 1908 * )
5c7fc7c4 1909 break;;
ad6254c5
AK
1910 esac
1911done
1912else
1913 echo "$as_me: failed program was:" >&5
1914sed 's/^/| /' conftest.$ac_ext >&5
1915
1916{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1917See \`config.log' for more details." >&5
1918echo "$as_me: error: C compiler cannot create executables
1919See \`config.log' for more details." >&2;}
1920 { (exit 77); exit 77; }; }
1921fi
1922
1923ac_exeext=$ac_cv_exeext
1924echo "$as_me:$LINENO: result: $ac_file" >&5
1925echo "${ECHO_T}$ac_file" >&6
1926
1927# Check the compiler produces executables we can run. If not, either
1928# the compiler is broken, or we cross compile.
1929echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1930echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1931# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1932# If not cross compiling, check that we can run a simple program.
1933if test "$cross_compiling" != yes; then
1934 if { ac_try='./$ac_file'
1935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1936 (eval $ac_try) 2>&5
1937 ac_status=$?
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }; }; then
1940 cross_compiling=no
795ca3e5 1941 else
ad6254c5
AK
1942 if test "$cross_compiling" = maybe; then
1943 cross_compiling=yes
1944 else
1945 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1946If you meant to cross compile, use \`--host'.
1947See \`config.log' for more details." >&5
1948echo "$as_me: error: cannot run C compiled programs.
1949If you meant to cross compile, use \`--host'.
1950See \`config.log' for more details." >&2;}
1951 { (exit 1); exit 1; }; }
1952 fi
795ca3e5 1953 fi
80992638 1954fi
ad6254c5
AK
1955echo "$as_me:$LINENO: result: yes" >&5
1956echo "${ECHO_T}yes" >&6
1957
1958rm -f a.out a.exe conftest$ac_cv_exeext b.out
1959ac_clean_files=$ac_clean_files_save
1960# Check the compiler produces executables we can run. If not, either
1961# the compiler is broken, or we cross compile.
1962echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1963echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1964echo "$as_me:$LINENO: result: $cross_compiling" >&5
1965echo "${ECHO_T}$cross_compiling" >&6
1966
1967echo "$as_me:$LINENO: checking for suffix of executables" >&5
1968echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1970 (eval $ac_link) 2>&5
1971 ac_status=$?
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }; then
1974 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1975# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1976# work properly (i.e., refer to `conftest.exe'), while it won't with
1977# `rm'.
1978for ac_file in conftest.exe conftest conftest.*; do
1979 test -f "$ac_file" || continue
1980 case $ac_file in
1981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1982 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5c7fc7c4
PC
1983 export ac_cv_exeext
1984 break;;
ad6254c5
AK
1985 * ) break;;
1986 esac
1987done
80992638 1988else
ad6254c5
AK
1989 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1990See \`config.log' for more details." >&5
1991echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1992See \`config.log' for more details." >&2;}
1993 { (exit 1); exit 1; }; }
1994fi
1995
1996rm -f conftest$ac_cv_exeext
1997echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1998echo "${ECHO_T}$ac_cv_exeext" >&6
1999
2000rm -f conftest.$ac_ext
2001EXEEXT=$ac_cv_exeext
2002ac_exeext=$EXEEXT
2003echo "$as_me:$LINENO: checking for suffix of object files" >&5
2004echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2005if test "${ac_cv_objext+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2007else
ad6254c5 2008 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2009/* confdefs.h. */
2010_ACEOF
2011cat confdefs.h >>conftest.$ac_ext
2012cat >>conftest.$ac_ext <<_ACEOF
2013/* end confdefs.h. */
2014
2015int
2016main ()
2017{
2018
2019 ;
2020 return 0;
2021}
2022_ACEOF
2023rm -f conftest.o conftest.obj
2024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2025 (eval $ac_compile) 2>&5
2026 ac_status=$?
2027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028 (exit $ac_status); }; then
2029 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2030 case $ac_file in
2031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2032 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2033 break;;
2034 esac
2035done
2036else
2037 echo "$as_me: failed program was:" >&5
2038sed 's/^/| /' conftest.$ac_ext >&5
2039
2040{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2041See \`config.log' for more details." >&5
2042echo "$as_me: error: cannot compute suffix of object files: cannot compile
2043See \`config.log' for more details." >&2;}
2044 { (exit 1); exit 1; }; }
2045fi
2046
2047rm -f conftest.$ac_cv_objext conftest.$ac_ext
2048fi
2049echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2050echo "${ECHO_T}$ac_cv_objext" >&6
2051OBJEXT=$ac_cv_objext
2052ac_objext=$OBJEXT
2053echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2054echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2055if test "${ac_cv_c_compiler_gnu+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2057else
2058 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2059/* confdefs.h. */
2060_ACEOF
2061cat confdefs.h >>conftest.$ac_ext
2062cat >>conftest.$ac_ext <<_ACEOF
2063/* end confdefs.h. */
2064
2065int
2066main ()
2067{
2068#ifndef __GNUC__
2069 choke me
2070#endif
80992638 2071
ad6254c5
AK
2072 ;
2073 return 0;
2074}
2075_ACEOF
2076rm -f conftest.$ac_objext
2077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 2078 (eval $ac_compile) 2>conftest.er1
ad6254c5 2079 ac_status=$?
5c7fc7c4
PC
2080 grep -v '^ *+' conftest.er1 >conftest.err
2081 rm -f conftest.er1
2082 cat conftest.err >&5
ad6254c5
AK
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); } &&
5c7fc7c4
PC
2085 { ac_try='test -z "$ac_c_werror_flag"
2086 || test ! -s conftest.err'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088 (eval $ac_try) 2>&5
2089 ac_status=$?
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; } &&
2092 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094 (eval $ac_try) 2>&5
2095 ac_status=$?
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; }; then
2098 ac_compiler_gnu=yes
80992638 2099else
ad6254c5
AK
2100 echo "$as_me: failed program was:" >&5
2101sed 's/^/| /' conftest.$ac_ext >&5
2102
2103ac_compiler_gnu=no
8106cdd5 2104fi
5c7fc7c4 2105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2106ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 2107
ad6254c5
AK
2108fi
2109echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2110echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2111GCC=`test $ac_compiler_gnu = yes && echo yes`
2112ac_test_CFLAGS=${CFLAGS+set}
2113ac_save_CFLAGS=$CFLAGS
2114CFLAGS="-g"
2115echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2116echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2117if test "${ac_cv_prog_cc_g+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2119else
ad6254c5 2120 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2121/* confdefs.h. */
2122_ACEOF
2123cat confdefs.h >>conftest.$ac_ext
2124cat >>conftest.$ac_ext <<_ACEOF
2125/* end confdefs.h. */
2126
2127int
2128main ()
2129{
2130
2131 ;
2132 return 0;
2133}
2134_ACEOF
2135rm -f conftest.$ac_objext
2136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 2137 (eval $ac_compile) 2>conftest.er1
ad6254c5 2138 ac_status=$?
5c7fc7c4
PC
2139 grep -v '^ *+' conftest.er1 >conftest.err
2140 rm -f conftest.er1
2141 cat conftest.err >&5
ad6254c5
AK
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); } &&
5c7fc7c4
PC
2144 { ac_try='test -z "$ac_c_werror_flag"
2145 || test ! -s conftest.err'
2146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2147 (eval $ac_try) 2>&5
2148 ac_status=$?
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }; } &&
2151 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153 (eval $ac_try) 2>&5
2154 ac_status=$?
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; }; then
795ca3e5
AK
2157 ac_cv_prog_cc_g=yes
2158else
ad6254c5
AK
2159 echo "$as_me: failed program was:" >&5
2160sed 's/^/| /' conftest.$ac_ext >&5
80992638 2161
ad6254c5 2162ac_cv_prog_cc_g=no
8106cdd5 2163fi
5c7fc7c4 2164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
2165fi
2166echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2167echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
795ca3e5 2168if test "$ac_test_CFLAGS" = set; then
ad6254c5 2169 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
2170elif test $ac_cv_prog_cc_g = yes; then
2171 if test "$GCC" = yes; then
2172 CFLAGS="-g -O2"
2173 else
2174 CFLAGS="-g"
2175 fi
2176else
2177 if test "$GCC" = yes; then
2178 CFLAGS="-O2"
2179 else
2180 CFLAGS=
2181 fi
2182fi
ad6254c5
AK
2183echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2184echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2185if test "${ac_cv_prog_cc_stdc+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2187else
2188 ac_cv_prog_cc_stdc=no
2189ac_save_CC=$CC
2190cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2191/* confdefs.h. */
2192_ACEOF
2193cat confdefs.h >>conftest.$ac_ext
2194cat >>conftest.$ac_ext <<_ACEOF
2195/* end confdefs.h. */
2196#include <stdarg.h>
2197#include <stdio.h>
2198#include <sys/types.h>
2199#include <sys/stat.h>
2200/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2201struct buf { int x; };
2202FILE * (*rcsopen) (struct buf *, struct stat *, int);
2203static char *e (p, i)
2204 char **p;
2205 int i;
2206{
2207 return p[i];
2208}
2209static char *f (char * (*g) (char **, int), char **p, ...)
2210{
2211 char *s;
2212 va_list v;
2213 va_start (v,p);
2214 s = g (p, va_arg (v,int));
2215 va_end (v);
2216 return s;
2217}
5c7fc7c4
PC
2218
2219/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2220 function prototypes and stuff, but not '\xHH' hex character constants.
2221 These don't provoke an error unfortunately, instead are silently treated
2222 as 'x'. The following induces an error, until -std1 is added to get
2223 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2224 array size at least. It's necessary to write '\x00'==0 to get something
2225 that's true only with -std1. */
2226int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2227
ad6254c5
AK
2228int test (int i, double x);
2229struct s1 {int (*f) (int a);};
2230struct s2 {int (*f) (double a);};
2231int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2232int argc;
2233char **argv;
2234int
2235main ()
2236{
2237return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2238 ;
2239 return 0;
2240}
2241_ACEOF
2242# Don't try gcc -ansi; that turns off useful extensions and
2243# breaks some systems' header files.
2244# AIX -qlanglvl=ansi
2245# Ultrix and OSF/1 -std1
2246# HP-UX 10.20 and later -Ae
2247# HP-UX older versions -Aa -D_HPUX_SOURCE
2248# SVR4 -Xc -D__EXTENSIONS__
2249for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2250do
2251 CC="$ac_save_CC $ac_arg"
2252 rm -f conftest.$ac_objext
2253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 2254 (eval $ac_compile) 2>conftest.er1
ad6254c5 2255 ac_status=$?
5c7fc7c4
PC
2256 grep -v '^ *+' conftest.er1 >conftest.err
2257 rm -f conftest.er1
2258 cat conftest.err >&5
ad6254c5
AK
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); } &&
5c7fc7c4
PC
2261 { ac_try='test -z "$ac_c_werror_flag"
2262 || test ! -s conftest.err'
2263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264 (eval $ac_try) 2>&5
2265 ac_status=$?
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; } &&
2268 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270 (eval $ac_try) 2>&5
2271 ac_status=$?
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; }; then
2274 ac_cv_prog_cc_stdc=$ac_arg
2275break
2276else
2277 echo "$as_me: failed program was:" >&5
2278sed 's/^/| /' conftest.$ac_ext >&5
2279
2280fi
5c7fc7c4 2281rm -f conftest.err conftest.$ac_objext
ad6254c5
AK
2282done
2283rm -f conftest.$ac_ext conftest.$ac_objext
2284CC=$ac_save_CC
2285
2286fi
2287
2288case "x$ac_cv_prog_cc_stdc" in
2289 x|xno)
2290 echo "$as_me:$LINENO: result: none needed" >&5
2291echo "${ECHO_T}none needed" >&6 ;;
2292 *)
2293 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2294echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2295 CC="$CC $ac_cv_prog_cc_stdc" ;;
2296esac
2297
2298# Some people use a C++ compiler to compile C. Since we use `exit',
2299# in C++ we need to declare it. In case someone uses the same compiler
2300# for both compiling C and C++ we need to have the C++ compiler decide
2301# the declaration of exit, since it's the most demanding environment.
2302cat >conftest.$ac_ext <<_ACEOF
2303#ifndef __cplusplus
2304 choke me
2305#endif
2306_ACEOF
2307rm -f conftest.$ac_objext
2308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 2309 (eval $ac_compile) 2>conftest.er1
ad6254c5 2310 ac_status=$?
5c7fc7c4
PC
2311 grep -v '^ *+' conftest.er1 >conftest.err
2312 rm -f conftest.er1
2313 cat conftest.err >&5
ad6254c5
AK
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); } &&
5c7fc7c4
PC
2316 { ac_try='test -z "$ac_c_werror_flag"
2317 || test ! -s conftest.err'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 (eval $ac_try) 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; } &&
2323 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 (eval $ac_try) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; }; then
2329 for ac_declaration in \
5c7fc7c4 2330 '' \
ad6254c5
AK
2331 'extern "C" void std::exit (int) throw (); using std::exit;' \
2332 'extern "C" void std::exit (int); using std::exit;' \
2333 'extern "C" void exit (int) throw ();' \
2334 'extern "C" void exit (int);' \
2335 'void exit (int);'
2336do
2337 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2338/* confdefs.h. */
2339_ACEOF
2340cat confdefs.h >>conftest.$ac_ext
2341cat >>conftest.$ac_ext <<_ACEOF
2342/* end confdefs.h. */
a266258f 2343$ac_declaration
5c7fc7c4 2344#include <stdlib.h>
ad6254c5
AK
2345int
2346main ()
2347{
2348exit (42);
2349 ;
2350 return 0;
2351}
2352_ACEOF
2353rm -f conftest.$ac_objext
2354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 2355 (eval $ac_compile) 2>conftest.er1
ad6254c5 2356 ac_status=$?
5c7fc7c4
PC
2357 grep -v '^ *+' conftest.er1 >conftest.err
2358 rm -f conftest.er1
2359 cat conftest.err >&5
ad6254c5
AK
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); } &&
5c7fc7c4
PC
2362 { ac_try='test -z "$ac_c_werror_flag"
2363 || test ! -s conftest.err'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 (eval $ac_try) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; } &&
2369 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 (eval $ac_try) 2>&5
2372 ac_status=$?
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; }; then
2375 :
2376else
2377 echo "$as_me: failed program was:" >&5
2378sed 's/^/| /' conftest.$ac_ext >&5
2379
2380continue
2381fi
5c7fc7c4 2382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2383 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2384/* confdefs.h. */
2385_ACEOF
2386cat confdefs.h >>conftest.$ac_ext
2387cat >>conftest.$ac_ext <<_ACEOF
2388/* end confdefs.h. */
2389$ac_declaration
2390int
2391main ()
2392{
2393exit (42);
2394 ;
2395 return 0;
2396}
2397_ACEOF
2398rm -f conftest.$ac_objext
2399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 2400 (eval $ac_compile) 2>conftest.er1
ad6254c5 2401 ac_status=$?
5c7fc7c4
PC
2402 grep -v '^ *+' conftest.er1 >conftest.err
2403 rm -f conftest.er1
2404 cat conftest.err >&5
ad6254c5
AK
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } &&
5c7fc7c4
PC
2407 { ac_try='test -z "$ac_c_werror_flag"
2408 || test ! -s conftest.err'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 (eval $ac_try) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; } &&
2414 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 (eval $ac_try) 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2420 break
2421else
2422 echo "$as_me: failed program was:" >&5
2423sed 's/^/| /' conftest.$ac_ext >&5
2424
2425fi
5c7fc7c4 2426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
2427done
2428rm -f conftest*
2429if test -n "$ac_declaration"; then
2430 echo '#ifdef __cplusplus' >>confdefs.h
2431 echo $ac_declaration >>confdefs.h
2432 echo '#endif' >>confdefs.h
2433fi
2434
2435else
2436 echo "$as_me: failed program was:" >&5
2437sed 's/^/| /' conftest.$ac_ext >&5
2438
2439fi
5c7fc7c4 2440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
2441ac_ext=c
2442ac_cpp='$CPP $CPPFLAGS'
2443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2445ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5
AK
2446
2447# Find a good install program. We prefer a C program (faster),
2448# so one script is as good as another. But avoid the broken or
2449# incompatible versions:
2450# SysV /etc/install, /usr/sbin/install
2451# SunOS /usr/etc/install
2452# IRIX /sbin/install
2453# AIX /bin/install
ad6254c5 2454# AmigaOS /C/install, which installs bootblocks on floppy discs
795ca3e5
AK
2455# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2456# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2457# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5c7fc7c4 2458# OS/2's system install, which has a completely different semantic
795ca3e5 2459# ./install, which can be erroneously created by make from ./install.sh.
ad6254c5
AK
2460echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2461echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
795ca3e5 2462if test -z "$INSTALL"; then
ad6254c5
AK
2463if test "${ac_cv_path_install+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2465else
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467for as_dir in $PATH
2468do
2469 IFS=$as_save_IFS
2470 test -z "$as_dir" && as_dir=.
2471 # Account for people who put trailing slashes in PATH elements.
2472case $as_dir/ in
2473 ./ | .// | /cC/* | \
2474 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5c7fc7c4 2475 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
ad6254c5
AK
2476 /usr/ucb/* ) ;;
2477 *)
2478 # OSF1 and SCO ODT 3.0 have their own names for install.
2479 # Don't use installbsd from OSF since it installs stuff as root
2480 # by default.
2481 for ac_prog in ginstall scoinst install; do
2482 for ac_exec_ext in '' $ac_executable_extensions; do
5c7fc7c4
PC
2483 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2484 if test $ac_prog = install &&
2485 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2486 # AIX install. It has an incompatible calling convention.
2487 :
2488 elif test $ac_prog = install &&
2489 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2490 # program-specific install script used by HP pwplus--don't use.
2491 :
2492 else
2493 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2494 break 3
2495 fi
2496 fi
795ca3e5 2497 done
ad6254c5
AK
2498 done
2499 ;;
2500esac
2501done
2502
795ca3e5
AK
2503
2504fi
2505 if test "${ac_cv_path_install+set}" = set; then
ad6254c5 2506 INSTALL=$ac_cv_path_install
795ca3e5
AK
2507 else
2508 # As a last resort, use the slow shell script. We don't cache a
2509 # path for INSTALL within a source directory, because that will
2510 # break other packages using the cache if that directory is
2511 # removed, or if the path is relative.
ad6254c5 2512 INSTALL=$ac_install_sh
795ca3e5
AK
2513 fi
2514fi
ad6254c5
AK
2515echo "$as_me:$LINENO: result: $INSTALL" >&5
2516echo "${ECHO_T}$INSTALL" >&6
795ca3e5
AK
2517
2518# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2519# It thinks the first close brace ends the variable substitution.
2520test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2521
ad6254c5 2522test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
795ca3e5
AK
2523
2524test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2525
ad6254c5
AK
2526echo "$as_me:$LINENO: checking whether ln -s works" >&5
2527echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2528LN_S=$as_ln_s
2529if test "$LN_S" = "ln -s"; then
2530 echo "$as_me:$LINENO: result: yes" >&5
2531echo "${ECHO_T}yes" >&6
80992638 2532else
ad6254c5
AK
2533 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2534echo "${ECHO_T}no, using $LN_S" >&6
795ca3e5
AK
2535fi
2536
ad6254c5
AK
2537echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2538echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5c7fc7c4 2539set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
ad6254c5
AK
2540if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2542else
ad6254c5 2543 cat >conftest.make <<\_ACEOF
795ca3e5 2544all:
ad6254c5
AK
2545 @echo 'ac_maketemp="$(MAKE)"'
2546_ACEOF
795ca3e5 2547# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
ad6254c5 2548eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
795ca3e5
AK
2549if test -n "$ac_maketemp"; then
2550 eval ac_cv_prog_make_${ac_make}_set=yes
2551else
2552 eval ac_cv_prog_make_${ac_make}_set=no
2553fi
ad6254c5 2554rm -f conftest.make
795ca3e5
AK
2555fi
2556if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
ad6254c5
AK
2557 echo "$as_me:$LINENO: result: yes" >&5
2558echo "${ECHO_T}yes" >&6
795ca3e5
AK
2559 SET_MAKE=
2560else
ad6254c5
AK
2561 echo "$as_me:$LINENO: result: no" >&5
2562echo "${ECHO_T}no" >&6
795ca3e5
AK
2563 SET_MAKE="MAKE=${MAKE-make}"
2564fi
2565
ad6254c5
AK
2566if test -n "$ac_tool_prefix"; then
2567 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2568set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2569echo "$as_me:$LINENO: checking for $ac_word" >&5
2570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2571if test "${ac_cv_prog_RANLIB+set}" = set; then
2572 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2573else
2574 if test -n "$RANLIB"; then
2575 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2576else
ad6254c5
AK
2577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578for as_dir in $PATH
2579do
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2584 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 break 2
2587 fi
2588done
2589done
2590
795ca3e5
AK
2591fi
2592fi
ad6254c5 2593RANLIB=$ac_cv_prog_RANLIB
795ca3e5 2594if test -n "$RANLIB"; then
ad6254c5
AK
2595 echo "$as_me:$LINENO: result: $RANLIB" >&5
2596echo "${ECHO_T}$RANLIB" >&6
8106cdd5 2597else
ad6254c5
AK
2598 echo "$as_me:$LINENO: result: no" >&5
2599echo "${ECHO_T}no" >&6
8106cdd5
AK
2600fi
2601
795ca3e5 2602fi
ad6254c5
AK
2603if test -z "$ac_cv_prog_RANLIB"; then
2604 ac_ct_RANLIB=$RANLIB
2605 # Extract the first word of "ranlib", so it can be a program name with args.
2606set dummy ranlib; ac_word=$2
2607echo "$as_me:$LINENO: checking for $ac_word" >&5
2608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2609if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 2611else
ad6254c5
AK
2612 if test -n "$ac_ct_RANLIB"; then
2613 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2614else
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2622 ac_cv_prog_ac_ct_RANLIB="ranlib"
2623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 break 2
2625 fi
2626done
795ca3e5 2627done
8106cdd5 2628
ad6254c5 2629 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
795ca3e5 2630fi
80992638 2631fi
ad6254c5
AK
2632ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2633if test -n "$ac_ct_RANLIB"; then
2634 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2635echo "${ECHO_T}$ac_ct_RANLIB" >&6
80992638 2636else
ad6254c5
AK
2637 echo "$as_me:$LINENO: result: no" >&5
2638echo "${ECHO_T}no" >&6
8106cdd5 2639fi
8106cdd5 2640
ad6254c5 2641 RANLIB=$ac_ct_RANLIB
80992638 2642else
ad6254c5 2643 RANLIB="$ac_cv_prog_RANLIB"
80992638 2644fi
795ca3e5 2645
795ca3e5 2646
ad6254c5
AK
2647################################################################################
2648
2649
2650
2651
2652
2653
2654ac_header_dirent=no
2655for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2656 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2657echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
2658echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2659if eval "test \"\${$as_ac_Header+set}\" = set"; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 2661else
ad6254c5 2662 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2663/* confdefs.h. */
2664_ACEOF
2665cat confdefs.h >>conftest.$ac_ext
2666cat >>conftest.$ac_ext <<_ACEOF
2667/* end confdefs.h. */
2668#include <sys/types.h>
2669#include <$ac_hdr>
2670
2671int
2672main ()
2673{
2674if ((DIR *) 0)
2675return 0;
2676 ;
2677 return 0;
2678}
2679_ACEOF
2680rm -f conftest.$ac_objext
2681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 2682 (eval $ac_compile) 2>conftest.er1
ad6254c5 2683 ac_status=$?
5c7fc7c4
PC
2684 grep -v '^ *+' conftest.er1 >conftest.err
2685 rm -f conftest.er1
2686 cat conftest.err >&5
ad6254c5
AK
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); } &&
5c7fc7c4
PC
2689 { ac_try='test -z "$ac_c_werror_flag"
2690 || test ! -s conftest.err'
2691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 (eval $ac_try) 2>&5
2693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; } &&
2696 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698 (eval $ac_try) 2>&5
2699 ac_status=$?
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; }; then
2702 eval "$as_ac_Header=yes"
8106cdd5 2703else
ad6254c5
AK
2704 echo "$as_me: failed program was:" >&5
2705sed 's/^/| /' conftest.$ac_ext >&5
2706
2707eval "$as_ac_Header=no"
795ca3e5 2708fi
5c7fc7c4 2709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 2710fi
ad6254c5
AK
2711echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2712echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2713if test `eval echo '${'$as_ac_Header'}'` = yes; then
2714 cat >>confdefs.h <<_ACEOF
2715#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
2716_ACEOF
2717
2718ac_header_dirent=$ac_hdr; break
795ca3e5 2719fi
8106cdd5 2720
ad6254c5
AK
2721done
2722# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2723if test $ac_header_dirent = dirent.h; then
2724 echo "$as_me:$LINENO: checking for library containing opendir" >&5
2725echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2726if test "${ac_cv_search_opendir+set}" = set; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2728else
ad6254c5
AK
2729 ac_func_search_save_LIBS=$LIBS
2730ac_cv_search_opendir=no
2731cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2732/* confdefs.h. */
2733_ACEOF
2734cat confdefs.h >>conftest.$ac_ext
2735cat >>conftest.$ac_ext <<_ACEOF
2736/* end confdefs.h. */
2737
2738/* Override any gcc2 internal prototype to avoid an error. */
2739#ifdef __cplusplus
2740extern "C"
2741#endif
2742/* We use char because int might match the return type of a gcc2
2743 builtin and then its argument prototype would still apply. */
2744char opendir ();
2745int
2746main ()
2747{
2748opendir ();
2749 ;
2750 return 0;
2751}
2752_ACEOF
2753rm -f conftest.$ac_objext conftest$ac_exeext
2754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 2755 (eval $ac_link) 2>conftest.er1
ad6254c5 2756 ac_status=$?
5c7fc7c4
PC
2757 grep -v '^ *+' conftest.er1 >conftest.err
2758 rm -f conftest.er1
2759 cat conftest.err >&5
ad6254c5
AK
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); } &&
5c7fc7c4
PC
2762 { ac_try='test -z "$ac_c_werror_flag"
2763 || test ! -s conftest.err'
2764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765 (eval $ac_try) 2>&5
2766 ac_status=$?
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }; } &&
2769 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
2770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771 (eval $ac_try) 2>&5
2772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }; }; then
2775 ac_cv_search_opendir="none required"
795ca3e5 2776else
ad6254c5
AK
2777 echo "$as_me: failed program was:" >&5
2778sed 's/^/| /' conftest.$ac_ext >&5
2779
2780fi
5c7fc7c4
PC
2781rm -f conftest.err conftest.$ac_objext \
2782 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
2783if test "$ac_cv_search_opendir" = no; then
2784 for ac_lib in dir; do
2785 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2786 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2787/* confdefs.h. */
2788_ACEOF
2789cat confdefs.h >>conftest.$ac_ext
2790cat >>conftest.$ac_ext <<_ACEOF
2791/* end confdefs.h. */
795ca3e5 2792
ad6254c5
AK
2793/* Override any gcc2 internal prototype to avoid an error. */
2794#ifdef __cplusplus
2795extern "C"
2796#endif
2797/* We use char because int might match the return type of a gcc2
2798 builtin and then its argument prototype would still apply. */
2799char opendir ();
2800int
2801main ()
2802{
2803opendir ();
2804 ;
2805 return 0;
2806}
2807_ACEOF
2808rm -f conftest.$ac_objext conftest$ac_exeext
2809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 2810 (eval $ac_link) 2>conftest.er1
ad6254c5 2811 ac_status=$?
5c7fc7c4
PC
2812 grep -v '^ *+' conftest.er1 >conftest.err
2813 rm -f conftest.er1
2814 cat conftest.err >&5
ad6254c5
AK
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); } &&
5c7fc7c4
PC
2817 { ac_try='test -z "$ac_c_werror_flag"
2818 || test ! -s conftest.err'
2819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820 (eval $ac_try) 2>&5
2821 ac_status=$?
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; } &&
2824 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
2825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826 (eval $ac_try) 2>&5
2827 ac_status=$?
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; }; then
2830 ac_cv_search_opendir="-l$ac_lib"
2831break
795ca3e5 2832else
ad6254c5
AK
2833 echo "$as_me: failed program was:" >&5
2834sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5
AK
2835
2836fi
5c7fc7c4
PC
2837rm -f conftest.err conftest.$ac_objext \
2838 conftest$ac_exeext conftest.$ac_ext
ad6254c5 2839 done
795ca3e5 2840fi
ad6254c5
AK
2841LIBS=$ac_func_search_save_LIBS
2842fi
2843echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
2844echo "${ECHO_T}$ac_cv_search_opendir" >&6
2845if test "$ac_cv_search_opendir" != no; then
2846 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
795ca3e5
AK
2847
2848fi
2849
795ca3e5 2850else
ad6254c5
AK
2851 echo "$as_me:$LINENO: checking for library containing opendir" >&5
2852echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2853if test "${ac_cv_search_opendir+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2855else
2856 ac_func_search_save_LIBS=$LIBS
2857ac_cv_search_opendir=no
2858cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2859/* confdefs.h. */
2860_ACEOF
2861cat confdefs.h >>conftest.$ac_ext
2862cat >>conftest.$ac_ext <<_ACEOF
2863/* end confdefs.h. */
80992638 2864
ad6254c5
AK
2865/* Override any gcc2 internal prototype to avoid an error. */
2866#ifdef __cplusplus
2867extern "C"
2868#endif
2869/* We use char because int might match the return type of a gcc2
2870 builtin and then its argument prototype would still apply. */
2871char opendir ();
2872int
2873main ()
2874{
2875opendir ();
2876 ;
2877 return 0;
2878}
2879_ACEOF
2880rm -f conftest.$ac_objext conftest$ac_exeext
2881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 2882 (eval $ac_link) 2>conftest.er1
ad6254c5 2883 ac_status=$?
5c7fc7c4
PC
2884 grep -v '^ *+' conftest.er1 >conftest.err
2885 rm -f conftest.er1
2886 cat conftest.err >&5
ad6254c5
AK
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); } &&
5c7fc7c4
PC
2889 { ac_try='test -z "$ac_c_werror_flag"
2890 || test ! -s conftest.err'
2891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 (eval $ac_try) 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; } &&
2896 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
2897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 (eval $ac_try) 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; }; then
2902 ac_cv_search_opendir="none required"
795ca3e5 2903else
ad6254c5
AK
2904 echo "$as_me: failed program was:" >&5
2905sed 's/^/| /' conftest.$ac_ext >&5
2906
2907fi
5c7fc7c4
PC
2908rm -f conftest.err conftest.$ac_objext \
2909 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
2910if test "$ac_cv_search_opendir" = no; then
2911 for ac_lib in x; do
2912 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2913 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2914/* confdefs.h. */
2915_ACEOF
2916cat confdefs.h >>conftest.$ac_ext
2917cat >>conftest.$ac_ext <<_ACEOF
2918/* end confdefs.h. */
2919
2920/* Override any gcc2 internal prototype to avoid an error. */
2921#ifdef __cplusplus
2922extern "C"
2923#endif
2924/* We use char because int might match the return type of a gcc2
2925 builtin and then its argument prototype would still apply. */
2926char opendir ();
2927int
2928main ()
2929{
2930opendir ();
2931 ;
2932 return 0;
2933}
2934_ACEOF
2935rm -f conftest.$ac_objext conftest$ac_exeext
2936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 2937 (eval $ac_link) 2>conftest.er1
ad6254c5 2938 ac_status=$?
5c7fc7c4
PC
2939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
ad6254c5
AK
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } &&
5c7fc7c4
PC
2944 { ac_try='test -z "$ac_c_werror_flag"
2945 || test ! -s conftest.err'
2946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947 (eval $ac_try) 2>&5
2948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; } &&
2951 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
2952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 (eval $ac_try) 2>&5
2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; }; then
2957 ac_cv_search_opendir="-l$ac_lib"
2958break
2959else
2960 echo "$as_me: failed program was:" >&5
2961sed 's/^/| /' conftest.$ac_ext >&5
80992638 2962
795ca3e5 2963fi
5c7fc7c4
PC
2964rm -f conftest.err conftest.$ac_objext \
2965 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
2966 done
2967fi
2968LIBS=$ac_func_search_save_LIBS
795ca3e5 2969fi
ad6254c5
AK
2970echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
2971echo "${ECHO_T}$ac_cv_search_opendir" >&6
2972if test "$ac_cv_search_opendir" != no; then
2973 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8106cdd5 2974
ad6254c5 2975fi
8106cdd5 2976
795ca3e5 2977fi
8106cdd5 2978
ad6254c5
AK
2979ac_ext=c
2980ac_cpp='$CPP $CPPFLAGS'
2981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2985echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2986# On Suns, sometimes $CPP names a directory.
2987if test -n "$CPP" && test -d "$CPP"; then
2988 CPP=
2989fi
2990if test -z "$CPP"; then
2991 if test "${ac_cv_prog_CPP+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2993else
2994 # Double quotes because CPP needs to be expanded
2995 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2996 do
2997 ac_preproc_ok=false
2998for ac_c_preproc_warn_flag in '' yes
8106cdd5 2999do
ad6254c5
AK
3000 # Use a header file that comes with gcc, so configuring glibc
3001 # with a fresh cross-compiler works.
3002 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3003 # <limits.h> exists even on freestanding compilers.
3004 # On the NeXT, cc -E runs the code through the compiler's parser,
3005 # not just through cpp. "Syntax error" is here to catch this case.
3006 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3007/* confdefs.h. */
3008_ACEOF
3009cat confdefs.h >>conftest.$ac_ext
3010cat >>conftest.$ac_ext <<_ACEOF
3011/* end confdefs.h. */
3012#ifdef __STDC__
3013# include <limits.h>
3014#else
3015# include <assert.h>
3016#endif
5c7fc7c4 3017 Syntax error
ad6254c5
AK
3018_ACEOF
3019if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3021 ac_status=$?
3022 grep -v '^ *+' conftest.er1 >conftest.err
3023 rm -f conftest.er1
3024 cat conftest.err >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } >/dev/null; then
3027 if test -s conftest.err; then
3028 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 3029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3030 else
3031 ac_cpp_err=
3032 fi
3033else
3034 ac_cpp_err=yes
8106cdd5 3035fi
ad6254c5
AK
3036if test -z "$ac_cpp_err"; then
3037 :
3038else
3039 echo "$as_me: failed program was:" >&5
3040sed 's/^/| /' conftest.$ac_ext >&5
3041
3042 # Broken: fails on valid input.
3043continue
3044fi
3045rm -f conftest.err conftest.$ac_ext
3046
3047 # OK, works on sane cases. Now check whether non-existent headers
3048 # can be detected and how.
3049 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3050/* confdefs.h. */
3051_ACEOF
3052cat confdefs.h >>conftest.$ac_ext
3053cat >>conftest.$ac_ext <<_ACEOF
3054/* end confdefs.h. */
3055#include <ac_nonexistent.h>
3056_ACEOF
3057if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3059 ac_status=$?
3060 grep -v '^ *+' conftest.er1 >conftest.err
3061 rm -f conftest.er1
3062 cat conftest.err >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); } >/dev/null; then
3065 if test -s conftest.err; then
3066 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 3067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3068 else
3069 ac_cpp_err=
3070 fi
3071else
3072 ac_cpp_err=yes
8106cdd5 3073fi
ad6254c5
AK
3074if test -z "$ac_cpp_err"; then
3075 # Broken: success on invalid input.
3076continue
80992638 3077else
ad6254c5
AK
3078 echo "$as_me: failed program was:" >&5
3079sed 's/^/| /' conftest.$ac_ext >&5
3080
3081 # Passes both tests.
3082ac_preproc_ok=:
3083break
795ca3e5 3084fi
ad6254c5
AK
3085rm -f conftest.err conftest.$ac_ext
3086
795ca3e5 3087done
ad6254c5
AK
3088# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3089rm -f conftest.err conftest.$ac_ext
3090if $ac_preproc_ok; then
3091 break
3092fi
795ca3e5 3093
ad6254c5
AK
3094 done
3095 ac_cv_prog_CPP=$CPP
795ca3e5 3096
ad6254c5
AK
3097fi
3098 CPP=$ac_cv_prog_CPP
795ca3e5 3099else
ad6254c5 3100 ac_cv_prog_CPP=$CPP
795ca3e5 3101fi
ad6254c5
AK
3102echo "$as_me:$LINENO: result: $CPP" >&5
3103echo "${ECHO_T}$CPP" >&6
3104ac_preproc_ok=false
3105for ac_c_preproc_warn_flag in '' yes
3106do
3107 # Use a header file that comes with gcc, so configuring glibc
3108 # with a fresh cross-compiler works.
3109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3110 # <limits.h> exists even on freestanding compilers.
3111 # On the NeXT, cc -E runs the code through the compiler's parser,
3112 # not just through cpp. "Syntax error" is here to catch this case.
3113 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3114/* confdefs.h. */
3115_ACEOF
3116cat confdefs.h >>conftest.$ac_ext
3117cat >>conftest.$ac_ext <<_ACEOF
3118/* end confdefs.h. */
3119#ifdef __STDC__
3120# include <limits.h>
3121#else
3122# include <assert.h>
3123#endif
5c7fc7c4 3124 Syntax error
ad6254c5
AK
3125_ACEOF
3126if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3128 ac_status=$?
3129 grep -v '^ *+' conftest.er1 >conftest.err
3130 rm -f conftest.er1
3131 cat conftest.err >&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); } >/dev/null; then
3134 if test -s conftest.err; then
3135 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 3136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3137 else
3138 ac_cpp_err=
3139 fi
3140else
3141 ac_cpp_err=yes
795ca3e5 3142fi
ad6254c5
AK
3143if test -z "$ac_cpp_err"; then
3144 :
3145else
3146 echo "$as_me: failed program was:" >&5
3147sed 's/^/| /' conftest.$ac_ext >&5
3148
3149 # Broken: fails on valid input.
3150continue
3151fi
3152rm -f conftest.err conftest.$ac_ext
3153
3154 # OK, works on sane cases. Now check whether non-existent headers
3155 # can be detected and how.
3156 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3157/* confdefs.h. */
3158_ACEOF
3159cat confdefs.h >>conftest.$ac_ext
3160cat >>conftest.$ac_ext <<_ACEOF
3161/* end confdefs.h. */
3162#include <ac_nonexistent.h>
3163_ACEOF
3164if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3166 ac_status=$?
3167 grep -v '^ *+' conftest.er1 >conftest.err
3168 rm -f conftest.er1
3169 cat conftest.err >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); } >/dev/null; then
3172 if test -s conftest.err; then
3173 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 3174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3175 else
3176 ac_cpp_err=
3177 fi
3178else
3179 ac_cpp_err=yes
3180fi
3181if test -z "$ac_cpp_err"; then
3182 # Broken: success on invalid input.
3183continue
3184else
3185 echo "$as_me: failed program was:" >&5
3186sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 3187
ad6254c5
AK
3188 # Passes both tests.
3189ac_preproc_ok=:
3190break
795ca3e5 3191fi
ad6254c5 3192rm -f conftest.err conftest.$ac_ext
795ca3e5 3193
ad6254c5
AK
3194done
3195# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3196rm -f conftest.err conftest.$ac_ext
3197if $ac_preproc_ok; then
3198 :
795ca3e5 3199else
ad6254c5
AK
3200 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3201See \`config.log' for more details." >&5
3202echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3203See \`config.log' for more details." >&2;}
3204 { (exit 1); exit 1; }; }
795ca3e5 3205fi
795ca3e5 3206
ad6254c5
AK
3207ac_ext=c
3208ac_cpp='$CPP $CPPFLAGS'
3209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211ac_compiler_gnu=$ac_cv_c_compiler_gnu
3212
3213
3214echo "$as_me:$LINENO: checking for egrep" >&5
3215echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3216if test "${ac_cv_prog_egrep+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3218else
3219 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3220 then ac_cv_prog_egrep='grep -E'
3221 else ac_cv_prog_egrep='egrep'
3222 fi
795ca3e5 3223fi
ad6254c5
AK
3224echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3225echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3226 EGREP=$ac_cv_prog_egrep
80992638 3227
795ca3e5 3228
ad6254c5
AK
3229echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3230echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3231if test "${ac_cv_header_stdc+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3233else
ad6254c5 3234 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3235/* confdefs.h. */
3236_ACEOF
3237cat confdefs.h >>conftest.$ac_ext
3238cat >>conftest.$ac_ext <<_ACEOF
3239/* end confdefs.h. */
80992638 3240#include <stdlib.h>
ad6254c5
AK
3241#include <stdarg.h>
3242#include <string.h>
3243#include <float.h>
3244
3245int
3246main ()
3247{
3248
3249 ;
3250 return 0;
3251}
3252_ACEOF
3253rm -f conftest.$ac_objext
3254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 3255 (eval $ac_compile) 2>conftest.er1
ad6254c5 3256 ac_status=$?
5c7fc7c4
PC
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
ad6254c5
AK
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } &&
5c7fc7c4
PC
3262 { ac_try='test -z "$ac_c_werror_flag"
3263 || test ! -s conftest.err'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 (eval $ac_try) 2>&5
3266 ac_status=$?
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; } &&
3269 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271 (eval $ac_try) 2>&5
3272 ac_status=$?
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3275 ac_cv_header_stdc=yes
795ca3e5 3276else
ad6254c5
AK
3277 echo "$as_me: failed program was:" >&5
3278sed 's/^/| /' conftest.$ac_ext >&5
3279
3280ac_cv_header_stdc=no
795ca3e5 3281fi
5c7fc7c4 3282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3283
3284if test $ac_cv_header_stdc = yes; then
3285 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3286 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3287/* confdefs.h. */
3288_ACEOF
3289cat confdefs.h >>conftest.$ac_ext
3290cat >>conftest.$ac_ext <<_ACEOF
3291/* end confdefs.h. */
3292#include <string.h>
8106cdd5 3293
ad6254c5
AK
3294_ACEOF
3295if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3296 $EGREP "memchr" >/dev/null 2>&1; then
3297 :
3298else
3299 ac_cv_header_stdc=no
80992638 3300fi
ad6254c5 3301rm -f conftest*
795ca3e5
AK
3302
3303fi
3304
ad6254c5
AK
3305if test $ac_cv_header_stdc = yes; then
3306 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3307 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3308/* confdefs.h. */
3309_ACEOF
3310cat confdefs.h >>conftest.$ac_ext
3311cat >>conftest.$ac_ext <<_ACEOF
3312/* end confdefs.h. */
80992638 3313#include <stdlib.h>
ad6254c5
AK
3314
3315_ACEOF
80992638 3316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
3317 $EGREP "free" >/dev/null 2>&1; then
3318 :
795ca3e5 3319else
ad6254c5 3320 ac_cv_header_stdc=no
795ca3e5 3321fi
80992638 3322rm -f conftest*
8106cdd5 3323
795ca3e5
AK
3324fi
3325
ad6254c5
AK
3326if test $ac_cv_header_stdc = yes; then
3327 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3328 if test "$cross_compiling" = yes; then
3329 :
795ca3e5 3330else
ad6254c5 3331 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3332/* confdefs.h. */
3333_ACEOF
3334cat confdefs.h >>conftest.$ac_ext
3335cat >>conftest.$ac_ext <<_ACEOF
3336/* end confdefs.h. */
3337#include <ctype.h>
3338#if ((' ' & 0x0FF) == 0x020)
3339# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3340# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3341#else
3342# define ISLOWER(c) \
5c7fc7c4
PC
3343 (('a' <= (c) && (c) <= 'i') \
3344 || ('j' <= (c) && (c) <= 'r') \
3345 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 3346# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 3347#endif
ad6254c5
AK
3348
3349#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3350int
3351main ()
3352{
3353 int i;
3354 for (i = 0; i < 256; i++)
3355 if (XOR (islower (i), ISLOWER (i))
5c7fc7c4 3356 || toupper (i) != TOUPPER (i))
ad6254c5
AK
3357 exit(2);
3358 exit (0);
3359}
3360_ACEOF
3361rm -f conftest$ac_exeext
3362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3363 (eval $ac_link) 2>&5
3364 ac_status=$?
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368 (eval $ac_try) 2>&5
3369 ac_status=$?
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3372 :
795ca3e5 3373else
ad6254c5
AK
3374 echo "$as_me: program exited with status $ac_status" >&5
3375echo "$as_me: failed program was:" >&5
3376sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 3377
ad6254c5
AK
3378( exit $ac_status )
3379ac_cv_header_stdc=no
80992638 3380fi
5c7fc7c4 3381rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3382fi
3383fi
3384fi
3385echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3386echo "${ECHO_T}$ac_cv_header_stdc" >&6
3387if test $ac_cv_header_stdc = yes; then
3388
3389cat >>confdefs.h <<\_ACEOF
3390#define STDC_HEADERS 1
3391_ACEOF
795ca3e5
AK
3392
3393fi
3394
ad6254c5
AK
3395echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3396echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3397if test "${ac_cv_header_sys_wait_h+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 3399else
ad6254c5 3400 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3401/* confdefs.h. */
3402_ACEOF
3403cat confdefs.h >>conftest.$ac_ext
3404cat >>conftest.$ac_ext <<_ACEOF
3405/* end confdefs.h. */
80992638 3406#include <sys/types.h>
ad6254c5
AK
3407#include <sys/wait.h>
3408#ifndef WEXITSTATUS
3409# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3410#endif
3411#ifndef WIFEXITED
3412# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3413#endif
3414
3415int
3416main ()
3417{
3418 int s;
3419 wait (&s);
3420 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3421 ;
3422 return 0;
3423}
3424_ACEOF
3425rm -f conftest.$ac_objext
3426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 3427 (eval $ac_compile) 2>conftest.er1
ad6254c5 3428 ac_status=$?
5c7fc7c4
PC
3429 grep -v '^ *+' conftest.er1 >conftest.err
3430 rm -f conftest.er1
3431 cat conftest.err >&5
ad6254c5
AK
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } &&
5c7fc7c4
PC
3434 { ac_try='test -z "$ac_c_werror_flag"
3435 || test ! -s conftest.err'
3436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437 (eval $ac_try) 2>&5
3438 ac_status=$?
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); }; } &&
3441 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443 (eval $ac_try) 2>&5
3444 ac_status=$?
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; }; then
3447 ac_cv_header_sys_wait_h=yes
3448else
3449 echo "$as_me: failed program was:" >&5
3450sed 's/^/| /' conftest.$ac_ext >&5
3451
3452ac_cv_header_sys_wait_h=no
8106cdd5 3453fi
5c7fc7c4 3454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 3455fi
ad6254c5
AK
3456echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3457echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3458if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 3459
ad6254c5
AK
3460cat >>confdefs.h <<\_ACEOF
3461#define HAVE_SYS_WAIT_H 1
3462_ACEOF
795ca3e5
AK
3463
3464fi
3465
ad6254c5
AK
3466echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3467echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3468if test "${ac_cv_header_time+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3470else
ad6254c5 3471 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3472/* confdefs.h. */
3473_ACEOF
3474cat confdefs.h >>conftest.$ac_ext
3475cat >>conftest.$ac_ext <<_ACEOF
3476/* end confdefs.h. */
795ca3e5
AK
3477#include <sys/types.h>
3478#include <sys/time.h>
3479#include <time.h>
ad6254c5
AK
3480
3481int
3482main ()
3483{
3484if ((struct tm *) 0)
3485return 0;
3486 ;
3487 return 0;
3488}
3489_ACEOF
3490rm -f conftest.$ac_objext
3491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 3492 (eval $ac_compile) 2>conftest.er1
ad6254c5 3493 ac_status=$?
5c7fc7c4
PC
3494 grep -v '^ *+' conftest.er1 >conftest.err
3495 rm -f conftest.er1
3496 cat conftest.err >&5
ad6254c5
AK
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } &&
5c7fc7c4
PC
3499 { ac_try='test -z "$ac_c_werror_flag"
3500 || test ! -s conftest.err'
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502 (eval $ac_try) 2>&5
3503 ac_status=$?
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; } &&
3506 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508 (eval $ac_try) 2>&5
3509 ac_status=$?
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }; }; then
795ca3e5
AK
3512 ac_cv_header_time=yes
3513else
ad6254c5
AK
3514 echo "$as_me: failed program was:" >&5
3515sed 's/^/| /' conftest.$ac_ext >&5
3516
3517ac_cv_header_time=no
795ca3e5 3518fi
5c7fc7c4 3519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 3520fi
ad6254c5
AK
3521echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3522echo "${ECHO_T}$ac_cv_header_time" >&6
80992638 3523if test $ac_cv_header_time = yes; then
ad6254c5
AK
3524
3525cat >>confdefs.h <<\_ACEOF
795ca3e5 3526#define TIME_WITH_SYS_TIME 1
ad6254c5 3527_ACEOF
b896caa1 3528
8106cdd5 3529fi
b896caa1 3530
b896caa1 3531
ad6254c5 3532# On IRIX 5.3, sys/types and inttypes.h are conflicting.
b896caa1 3533
b896caa1
AK
3534
3535
795ca3e5 3536
8106cdd5 3537
80992638 3538
795ca3e5 3539
a38df97f 3540
80992638 3541
ad6254c5 3542for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5c7fc7c4 3543 inttypes.h stdint.h unistd.h
ad6254c5
AK
3544do
3545as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3546echo "$as_me:$LINENO: checking for $ac_header" >&5
3547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3548if eval "test \"\${$as_ac_Header+set}\" = set"; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3550else
3551 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3552/* confdefs.h. */
3553_ACEOF
3554cat confdefs.h >>conftest.$ac_ext
3555cat >>conftest.$ac_ext <<_ACEOF
3556/* end confdefs.h. */
3557$ac_includes_default
3558
3559#include <$ac_header>
3560_ACEOF
3561rm -f conftest.$ac_objext
3562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 3563 (eval $ac_compile) 2>conftest.er1
ad6254c5 3564 ac_status=$?
5c7fc7c4
PC
3565 grep -v '^ *+' conftest.er1 >conftest.err
3566 rm -f conftest.er1
3567 cat conftest.err >&5
ad6254c5
AK
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } &&
5c7fc7c4
PC
3570 { ac_try='test -z "$ac_c_werror_flag"
3571 || test ! -s conftest.err'
3572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573 (eval $ac_try) 2>&5
3574 ac_status=$?
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); }; } &&
3577 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 (eval $ac_try) 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; }; then
3583 eval "$as_ac_Header=yes"
3584else
3585 echo "$as_me: failed program was:" >&5
3586sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3587
ad6254c5
AK
3588eval "$as_ac_Header=no"
3589fi
5c7fc7c4 3590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a38df97f 3591fi
ad6254c5
AK
3592echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3593echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3594if test `eval echo '${'$as_ac_Header'}'` = yes; then
3595 cat >>confdefs.h <<_ACEOF
3596#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3597_ACEOF
a38df97f 3598
80992638
AK
3599fi
3600
ad6254c5
AK
3601done
3602
7d1552c9 3603
7d1552c9 3604
80992638 3605
5a52dca9 3606
5a52dca9 3607
ad6254c5
AK
3608
3609
3610
3611
3612
3613for ac_header in fcntl.h limits.h locale.h stddef.h syslog.h sys/file.h sys/ioctl.h sys/param.h sys/time.h
3614do
3615as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3616if eval "test \"\${$as_ac_Header+set}\" = set"; then
3617 echo "$as_me:$LINENO: checking for $ac_header" >&5
3618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3619if eval "test \"\${$as_ac_Header+set}\" = set"; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3621fi
3622echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3623echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3624else
3625 # Is the header compilable?
3626echo "$as_me:$LINENO: checking $ac_header usability" >&5
3627echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3628cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3629/* confdefs.h. */
3630_ACEOF
3631cat confdefs.h >>conftest.$ac_ext
3632cat >>conftest.$ac_ext <<_ACEOF
3633/* end confdefs.h. */
3634$ac_includes_default
3635#include <$ac_header>
3636_ACEOF
3637rm -f conftest.$ac_objext
3638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 3639 (eval $ac_compile) 2>conftest.er1
ad6254c5 3640 ac_status=$?
5c7fc7c4
PC
3641 grep -v '^ *+' conftest.er1 >conftest.err
3642 rm -f conftest.er1
3643 cat conftest.err >&5
ad6254c5
AK
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } &&
5c7fc7c4
PC
3646 { ac_try='test -z "$ac_c_werror_flag"
3647 || test ! -s conftest.err'
3648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649 (eval $ac_try) 2>&5
3650 ac_status=$?
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }; } &&
3653 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 (eval $ac_try) 2>&5
3656 ac_status=$?
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; }; then
3659 ac_header_compiler=yes
3660else
3661 echo "$as_me: failed program was:" >&5
3662sed 's/^/| /' conftest.$ac_ext >&5
3663
3664ac_header_compiler=no
3665fi
5c7fc7c4 3666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3667echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3668echo "${ECHO_T}$ac_header_compiler" >&6
3669
3670# Is the header present?
3671echo "$as_me:$LINENO: checking $ac_header presence" >&5
3672echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3673cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3674/* confdefs.h. */
3675_ACEOF
3676cat confdefs.h >>conftest.$ac_ext
3677cat >>conftest.$ac_ext <<_ACEOF
3678/* end confdefs.h. */
3679#include <$ac_header>
3680_ACEOF
3681if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3683 ac_status=$?
3684 grep -v '^ *+' conftest.er1 >conftest.err
3685 rm -f conftest.er1
3686 cat conftest.err >&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); } >/dev/null; then
3689 if test -s conftest.err; then
3690 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 3691 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3692 else
3693 ac_cpp_err=
3694 fi
3695else
3696 ac_cpp_err=yes
3697fi
3698if test -z "$ac_cpp_err"; then
3699 ac_header_preproc=yes
3700else
3701 echo "$as_me: failed program was:" >&5
3702sed 's/^/| /' conftest.$ac_ext >&5
3703
3704 ac_header_preproc=no
3705fi
3706rm -f conftest.err conftest.$ac_ext
3707echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3708echo "${ECHO_T}$ac_header_preproc" >&6
3709
3710# So? What about this header?
5c7fc7c4
PC
3711case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3712 yes:no: )
ad6254c5
AK
3713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3714echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
3715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3716echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3717 ac_header_preproc=yes
ad6254c5 3718 ;;
5c7fc7c4 3719 no:yes:* )
ad6254c5
AK
3720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3721echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
3722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3723echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3725echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3727echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
3728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3729echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
3730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3731echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
3732 (
3733 cat <<\_ASBOX
5c7fc7c4
PC
3734## ------------------------------------------ ##
3735## Report this to the AC_PACKAGE_NAME lists. ##
3736## ------------------------------------------ ##
ad6254c5
AK
3737_ASBOX
3738 ) |
3739 sed "s/^/$as_me: WARNING: /" >&2
3740 ;;
3741esac
3742echo "$as_me:$LINENO: checking for $ac_header" >&5
3743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3744if eval "test \"\${$as_ac_Header+set}\" = set"; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3746else
5c7fc7c4 3747 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 3748fi
ad6254c5
AK
3749echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3750echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3751
3752fi
3753if test `eval echo '${'$as_ac_Header'}'` = yes; then
3754 cat >>confdefs.h <<_ACEOF
3755#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3756_ACEOF
b896caa1 3757
d8ac0fbc 3758else
ad6254c5
AK
3759 { { echo "$as_me:$LINENO: error: bailing out" >&5
3760echo "$as_me: error: bailing out" >&2;}
3761 { (exit 1); exit 1; }; }
80992638
AK
3762fi
3763
ad6254c5 3764done
d8ac0fbc 3765
d8ac0fbc 3766
d8ac0fbc 3767
80992638 3768
d3c8211f 3769
d3c8211f 3770
d3c8211f 3771
80992638 3772
4922197a 3773
4922197a 3774
ad6254c5
AK
3775
3776
3777
3778for ac_header in assert.h ctype.h libgen.h signal.h stdio.h sys/mman.h sys/resource.h sys/stat.h sys/types.h sys/utsname.h sys/wait.h time.h
3779do
3780as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3781if eval "test \"\${$as_ac_Header+set}\" = set"; then
3782 echo "$as_me:$LINENO: checking for $ac_header" >&5
3783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3784if eval "test \"\${$as_ac_Header+set}\" = set"; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3786fi
3787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3788echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3789else
3790 # Is the header compilable?
3791echo "$as_me:$LINENO: checking $ac_header usability" >&5
3792echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3793cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3794/* confdefs.h. */
3795_ACEOF
3796cat confdefs.h >>conftest.$ac_ext
3797cat >>conftest.$ac_ext <<_ACEOF
3798/* end confdefs.h. */
3799$ac_includes_default
3800#include <$ac_header>
3801_ACEOF
3802rm -f conftest.$ac_objext
3803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 3804 (eval $ac_compile) 2>conftest.er1
ad6254c5 3805 ac_status=$?
5c7fc7c4
PC
3806 grep -v '^ *+' conftest.er1 >conftest.err
3807 rm -f conftest.er1
3808 cat conftest.err >&5
ad6254c5
AK
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } &&
5c7fc7c4
PC
3811 { ac_try='test -z "$ac_c_werror_flag"
3812 || test ! -s conftest.err'
3813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814 (eval $ac_try) 2>&5
3815 ac_status=$?
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); }; } &&
3818 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 (eval $ac_try) 2>&5
3821 ac_status=$?
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; }; then
3824 ac_header_compiler=yes
3825else
3826 echo "$as_me: failed program was:" >&5
3827sed 's/^/| /' conftest.$ac_ext >&5
3828
3829ac_header_compiler=no
3830fi
5c7fc7c4 3831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3832echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3833echo "${ECHO_T}$ac_header_compiler" >&6
3834
3835# Is the header present?
3836echo "$as_me:$LINENO: checking $ac_header presence" >&5
3837echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3838cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3839/* confdefs.h. */
3840_ACEOF
3841cat confdefs.h >>conftest.$ac_ext
3842cat >>conftest.$ac_ext <<_ACEOF
3843/* end confdefs.h. */
3844#include <$ac_header>
3845_ACEOF
3846if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } >/dev/null; then
3854 if test -s conftest.err; then
3855 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 3856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3857 else
3858 ac_cpp_err=
3859 fi
3860else
3861 ac_cpp_err=yes
4922197a 3862fi
ad6254c5
AK
3863if test -z "$ac_cpp_err"; then
3864 ac_header_preproc=yes
3865else
3866 echo "$as_me: failed program was:" >&5
3867sed 's/^/| /' conftest.$ac_ext >&5
3868
3869 ac_header_preproc=no
3870fi
3871rm -f conftest.err conftest.$ac_ext
3872echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3873echo "${ECHO_T}$ac_header_preproc" >&6
3874
3875# So? What about this header?
5c7fc7c4
PC
3876case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3877 yes:no: )
ad6254c5
AK
3878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3879echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
3880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3881echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3882 ac_header_preproc=yes
ad6254c5 3883 ;;
5c7fc7c4 3884 no:yes:* )
ad6254c5
AK
3885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3886echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
3887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3888echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3890echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3892echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
3893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3894echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
3895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3896echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
3897 (
3898 cat <<\_ASBOX
5c7fc7c4
PC
3899## ------------------------------------------ ##
3900## Report this to the AC_PACKAGE_NAME lists. ##
3901## ------------------------------------------ ##
ad6254c5
AK
3902_ASBOX
3903 ) |
3904 sed "s/^/$as_me: WARNING: /" >&2
3905 ;;
3906esac
3907echo "$as_me:$LINENO: checking for $ac_header" >&5
3908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3909if eval "test \"\${$as_ac_Header+set}\" = set"; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
3911else
5c7fc7c4 3912 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
3913fi
3914echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3915echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3916
3917fi
3918if test `eval echo '${'$as_ac_Header'}'` = yes; then
3919 cat >>confdefs.h <<_ACEOF
3920#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3921_ACEOF
4922197a 3922
4922197a 3923else
ad6254c5
AK
3924 { { echo "$as_me:$LINENO: error: bailing out" >&5
3925echo "$as_me: error: bailing out" >&2;}
3926 { (exit 1); exit 1; }; }
80992638
AK
3927fi
3928
ad6254c5 3929done
4922197a 3930
4922197a 3931
ad6254c5
AK
3932case "$host_os" in
3933 linux*)
4922197a 3934
ad6254c5
AK
3935
3936
3937for ac_header in asm/byteorder.h linux/fs.h malloc.h
3938do
3939as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3940if eval "test \"\${$as_ac_Header+set}\" = set"; then
3941 echo "$as_me:$LINENO: checking for $ac_header" >&5
3942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3943if eval "test \"\${$as_ac_Header+set}\" = set"; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945fi
3946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
795ca3e5 3948else
ad6254c5
AK
3949 # Is the header compilable?
3950echo "$as_me:$LINENO: checking $ac_header usability" >&5
3951echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3952cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3953/* confdefs.h. */
3954_ACEOF
3955cat confdefs.h >>conftest.$ac_ext
3956cat >>conftest.$ac_ext <<_ACEOF
3957/* end confdefs.h. */
3958$ac_includes_default
3959#include <$ac_header>
3960_ACEOF
3961rm -f conftest.$ac_objext
3962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 3963 (eval $ac_compile) 2>conftest.er1
ad6254c5 3964 ac_status=$?
5c7fc7c4
PC
3965 grep -v '^ *+' conftest.er1 >conftest.err
3966 rm -f conftest.er1
3967 cat conftest.err >&5
ad6254c5
AK
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } &&
5c7fc7c4
PC
3970 { ac_try='test -z "$ac_c_werror_flag"
3971 || test ! -s conftest.err'
3972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973 (eval $ac_try) 2>&5
3974 ac_status=$?
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; } &&
3977 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3979 (eval $ac_try) 2>&5
3980 ac_status=$?
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); }; }; then
3983 ac_header_compiler=yes
3984else
3985 echo "$as_me: failed program was:" >&5
3986sed 's/^/| /' conftest.$ac_ext >&5
3987
3988ac_header_compiler=no
3989fi
5c7fc7c4 3990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3991echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3992echo "${ECHO_T}$ac_header_compiler" >&6
3993
3994# Is the header present?
3995echo "$as_me:$LINENO: checking $ac_header presence" >&5
3996echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3997cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3998/* confdefs.h. */
3999_ACEOF
4000cat confdefs.h >>conftest.$ac_ext
4001cat >>conftest.$ac_ext <<_ACEOF
4002/* end confdefs.h. */
4003#include <$ac_header>
4004_ACEOF
4005if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4007 ac_status=$?
4008 grep -v '^ *+' conftest.er1 >conftest.err
4009 rm -f conftest.er1
4010 cat conftest.err >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } >/dev/null; then
4013 if test -s conftest.err; then
4014 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 4015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
4016 else
4017 ac_cpp_err=
4018 fi
4019else
4020 ac_cpp_err=yes
4021fi
4022if test -z "$ac_cpp_err"; then
4023 ac_header_preproc=yes
4024else
4025 echo "$as_me: failed program was:" >&5
4026sed 's/^/| /' conftest.$ac_ext >&5
4027
4028 ac_header_preproc=no
4029fi
4030rm -f conftest.err conftest.$ac_ext
4031echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4032echo "${ECHO_T}$ac_header_preproc" >&6
4033
4034# So? What about this header?
5c7fc7c4
PC
4035case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4036 yes:no: )
ad6254c5
AK
4037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4038echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
4039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4040echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4041 ac_header_preproc=yes
ad6254c5 4042 ;;
5c7fc7c4 4043 no:yes:* )
ad6254c5
AK
4044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4045echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
4046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4047echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4049echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4051echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
4052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4053echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
4054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4055echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
4056 (
4057 cat <<\_ASBOX
5c7fc7c4
PC
4058## ------------------------------------------ ##
4059## Report this to the AC_PACKAGE_NAME lists. ##
4060## ------------------------------------------ ##
ad6254c5
AK
4061_ASBOX
4062 ) |
4063 sed "s/^/$as_me: WARNING: /" >&2
4064 ;;
4065esac
4066echo "$as_me:$LINENO: checking for $ac_header" >&5
4067echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4068if eval "test \"\${$as_ac_Header+set}\" = set"; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070else
5c7fc7c4 4071 eval "$as_ac_Header=\$ac_header_preproc"
80992638 4072fi
ad6254c5
AK
4073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4074echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
80992638 4075
ad6254c5
AK
4076fi
4077if test `eval echo '${'$as_ac_Header'}'` = yes; then
4078 cat >>confdefs.h <<_ACEOF
4079#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4080_ACEOF
795ca3e5 4081
795ca3e5 4082else
ad6254c5
AK
4083 { { echo "$as_me:$LINENO: error: bailing out" >&5
4084echo "$as_me: error: bailing out" >&2;}
4085 { (exit 1); exit 1; }; }
80992638
AK
4086fi
4087
ad6254c5
AK
4088done
4089 ;;
4090 darwin*)
4091
795ca3e5 4092
ad6254c5
AK
4093for ac_header in machine/endian.h sys/disk.h
4094do
4095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4096if eval "test \"\${$as_ac_Header+set}\" = set"; then
4097 echo "$as_me:$LINENO: checking for $ac_header" >&5
4098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4099if eval "test \"\${$as_ac_Header+set}\" = set"; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4101fi
4102echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4103echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4104else
4105 # Is the header compilable?
4106echo "$as_me:$LINENO: checking $ac_header usability" >&5
4107echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4108cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4109/* confdefs.h. */
4110_ACEOF
4111cat confdefs.h >>conftest.$ac_ext
4112cat >>conftest.$ac_ext <<_ACEOF
4113/* end confdefs.h. */
4114$ac_includes_default
4115#include <$ac_header>
4116_ACEOF
4117rm -f conftest.$ac_objext
4118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 4119 (eval $ac_compile) 2>conftest.er1
ad6254c5 4120 ac_status=$?
5c7fc7c4
PC
4121 grep -v '^ *+' conftest.er1 >conftest.err
4122 rm -f conftest.er1
4123 cat conftest.err >&5
ad6254c5
AK
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } &&
5c7fc7c4
PC
4126 { ac_try='test -z "$ac_c_werror_flag"
4127 || test ! -s conftest.err'
4128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129 (eval $ac_try) 2>&5
4130 ac_status=$?
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; } &&
4133 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4135 (eval $ac_try) 2>&5
4136 ac_status=$?
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); }; }; then
4139 ac_header_compiler=yes
4140else
4141 echo "$as_me: failed program was:" >&5
4142sed 's/^/| /' conftest.$ac_ext >&5
4143
4144ac_header_compiler=no
4145fi
5c7fc7c4 4146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4147echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4148echo "${ECHO_T}$ac_header_compiler" >&6
4149
4150# Is the header present?
4151echo "$as_me:$LINENO: checking $ac_header presence" >&5
4152echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4153cat >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. */
4159#include <$ac_header>
4160_ACEOF
4161if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4163 ac_status=$?
4164 grep -v '^ *+' conftest.er1 >conftest.err
4165 rm -f conftest.er1
4166 cat conftest.err >&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); } >/dev/null; then
4169 if test -s conftest.err; then
4170 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 4171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
4172 else
4173 ac_cpp_err=
4174 fi
4175else
4176 ac_cpp_err=yes
4177fi
4178if test -z "$ac_cpp_err"; then
4179 ac_header_preproc=yes
4180else
4181 echo "$as_me: failed program was:" >&5
4182sed 's/^/| /' conftest.$ac_ext >&5
4183
4184 ac_header_preproc=no
4185fi
4186rm -f conftest.err conftest.$ac_ext
4187echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4188echo "${ECHO_T}$ac_header_preproc" >&6
4189
4190# So? What about this header?
5c7fc7c4
PC
4191case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4192 yes:no: )
ad6254c5
AK
4193 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4194echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
4195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4196echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4197 ac_header_preproc=yes
ad6254c5 4198 ;;
5c7fc7c4 4199 no:yes:* )
ad6254c5
AK
4200 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4201echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
4202 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4203echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4204 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4205echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4206 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4207echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
4208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4209echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
4210 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4211echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
4212 (
4213 cat <<\_ASBOX
5c7fc7c4
PC
4214## ------------------------------------------ ##
4215## Report this to the AC_PACKAGE_NAME lists. ##
4216## ------------------------------------------ ##
ad6254c5
AK
4217_ASBOX
4218 ) |
4219 sed "s/^/$as_me: WARNING: /" >&2
4220 ;;
4221esac
4222echo "$as_me:$LINENO: checking for $ac_header" >&5
4223echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4224if eval "test \"\${$as_ac_Header+set}\" = set"; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4226else
5c7fc7c4 4227 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4228fi
ad6254c5
AK
4229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4230echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
b896caa1 4231
ad6254c5
AK
4232fi
4233if test `eval echo '${'$as_ac_Header'}'` = yes; then
4234 cat >>confdefs.h <<_ACEOF
4235#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4236_ACEOF
4237
4238else
4239 { { echo "$as_me:$LINENO: error: bailing out" >&5
4240echo "$as_me: error: bailing out" >&2;}
4241 { (exit 1); exit 1; }; }
80992638
AK
4242fi
4243
ad6254c5
AK
4244done
4245 ;;
4246esac
d3c8211f 4247
80992638 4248################################################################################
ad6254c5
AK
4249echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4250echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4251if test "${ac_cv_c_const+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
d3c8211f 4253else
ad6254c5 4254 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4255/* confdefs.h. */
4256_ACEOF
4257cat confdefs.h >>conftest.$ac_ext
4258cat >>conftest.$ac_ext <<_ACEOF
4259/* end confdefs.h. */
4260
4261int
4262main ()
4263{
4264/* FIXME: Include the comments suggested by Paul. */
4265#ifndef __cplusplus
4266 /* Ultrix mips cc rejects this. */
4267 typedef int charset[2];
4268 const charset x;
4269 /* SunOS 4.1.1 cc rejects this. */
4270 char const *const *ccp;
4271 char **p;
4272 /* NEC SVR4.0.2 mips cc rejects this. */
4273 struct point {int x, y;};
4274 static struct point const zero = {0,0};
4275 /* AIX XL C 1.02.0.0 rejects this.
4276 It does not let you subtract one const X* pointer from another in
4277 an arm of an if-expression whose if-part is not a constant
4278 expression */
4279 const char *g = "string";
4280 ccp = &g + (g ? g-g : 0);
4281 /* HPUX 7.0 cc rejects these. */
4282 ++ccp;
4283 p = (char**) ccp;
4284 ccp = (char const *const *) p;
4285 { /* SCO 3.2v4 cc rejects this. */
4286 char *t;
4287 char const *s = 0 ? (char *) 0 : (char const *) 0;
4288
4289 *t++ = 0;
4290 }
4291 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4292 int x[] = {25, 17};
4293 const int *foo = &x[0];
4294 ++foo;
4295 }
4296 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4297 typedef const int *iptr;
4298 iptr p = 0;
4299 ++p;
4300 }
4301 { /* AIX XL C 1.02.0.0 rejects this saying
4302 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4303 struct s { int j; const int *ap[3]; };
4304 struct s *b; b->j = 5;
4305 }
4306 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4307 const int foo = 10;
4308 }
4309#endif
4310
4311 ;
4312 return 0;
4313}
4314_ACEOF
4315rm -f conftest.$ac_objext
4316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 4317 (eval $ac_compile) 2>conftest.er1
ad6254c5 4318 ac_status=$?
5c7fc7c4
PC
4319 grep -v '^ *+' conftest.er1 >conftest.err
4320 rm -f conftest.er1
4321 cat conftest.err >&5
ad6254c5
AK
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); } &&
5c7fc7c4
PC
4324 { ac_try='test -z "$ac_c_werror_flag"
4325 || test ! -s conftest.err'
4326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327 (eval $ac_try) 2>&5
4328 ac_status=$?
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); }; } &&
4331 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333 (eval $ac_try) 2>&5
4334 ac_status=$?
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; }; then
4337 ac_cv_c_const=yes
4338else
4339 echo "$as_me: failed program was:" >&5
4340sed 's/^/| /' conftest.$ac_ext >&5
4341
4342ac_cv_c_const=no
4343fi
5c7fc7c4 4344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 4345fi
ad6254c5
AK
4346echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4347echo "${ECHO_T}$ac_cv_c_const" >&6
4348if test $ac_cv_c_const = no; then
80992638 4349
ad6254c5
AK
4350cat >>confdefs.h <<\_ACEOF
4351#define const
4352_ACEOF
80992638 4353
d3c8211f 4354fi
d3c8211f 4355
ad6254c5
AK
4356echo "$as_me:$LINENO: checking for inline" >&5
4357echo $ECHO_N "checking for inline... $ECHO_C" >&6
4358if test "${ac_cv_c_inline+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
8ef2b021 4360else
ad6254c5
AK
4361 ac_cv_c_inline=no
4362for ac_kw in inline __inline__ __inline; do
4363 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4364/* confdefs.h. */
4365_ACEOF
4366cat confdefs.h >>conftest.$ac_ext
4367cat >>conftest.$ac_ext <<_ACEOF
4368/* end confdefs.h. */
4369#ifndef __cplusplus
4370typedef int foo_t;
4371static $ac_kw foo_t static_foo () {return 0; }
4372$ac_kw foo_t foo () {return 0; }
4373#endif
80992638 4374
ad6254c5
AK
4375_ACEOF
4376rm -f conftest.$ac_objext
4377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 4378 (eval $ac_compile) 2>conftest.er1
ad6254c5 4379 ac_status=$?
5c7fc7c4
PC
4380 grep -v '^ *+' conftest.er1 >conftest.err
4381 rm -f conftest.er1
4382 cat conftest.err >&5
ad6254c5
AK
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } &&
5c7fc7c4
PC
4385 { ac_try='test -z "$ac_c_werror_flag"
4386 || test ! -s conftest.err'
4387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388 (eval $ac_try) 2>&5
4389 ac_status=$?
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); }; } &&
4392 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394 (eval $ac_try) 2>&5
4395 ac_status=$?
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; }; then
4398 ac_cv_c_inline=$ac_kw; break
4399else
4400 echo "$as_me: failed program was:" >&5
4401sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 4402
8ce0cbda 4403fi
5c7fc7c4 4404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 4405done
8ce0cbda 4406
8ce0cbda 4407fi
ad6254c5
AK
4408echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4409echo "${ECHO_T}$ac_cv_c_inline" >&6
5c7fc7c4
PC
4410
4411
ad6254c5
AK
4412case $ac_cv_c_inline in
4413 inline | yes) ;;
5c7fc7c4
PC
4414 *)
4415 case $ac_cv_c_inline in
4416 no) ac_val=;;
4417 *) ac_val=$ac_cv_c_inline;;
4418 esac
4419 cat >>confdefs.h <<_ACEOF
4420#ifndef __cplusplus
4421#define inline $ac_val
4422#endif
a266258f 4423_ACEOF
5c7fc7c4 4424 ;;
ad6254c5 4425esac
8ce0cbda 4426
ad6254c5
AK
4427echo "$as_me:$LINENO: checking for off_t" >&5
4428echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4429if test "${ac_cv_type_off_t+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4431else
4432 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4433/* confdefs.h. */
4434_ACEOF
4435cat confdefs.h >>conftest.$ac_ext
4436cat >>conftest.$ac_ext <<_ACEOF
4437/* end confdefs.h. */
4438$ac_includes_default
4439int
4440main ()
4441{
4442if ((off_t *) 0)
4443 return 0;
4444if (sizeof (off_t))
4445 return 0;
4446 ;
4447 return 0;
4448}
4449_ACEOF
4450rm -f conftest.$ac_objext
4451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 4452 (eval $ac_compile) 2>conftest.er1
ad6254c5 4453 ac_status=$?
5c7fc7c4
PC
4454 grep -v '^ *+' conftest.er1 >conftest.err
4455 rm -f conftest.er1
4456 cat conftest.err >&5
ad6254c5
AK
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } &&
5c7fc7c4
PC
4459 { ac_try='test -z "$ac_c_werror_flag"
4460 || test ! -s conftest.err'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462 (eval $ac_try) 2>&5
4463 ac_status=$?
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; } &&
4466 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468 (eval $ac_try) 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; }; then
4472 ac_cv_type_off_t=yes
4473else
4474 echo "$as_me: failed program was:" >&5
4475sed 's/^/| /' conftest.$ac_ext >&5
8ce0cbda 4476
ad6254c5 4477ac_cv_type_off_t=no
80992638 4478fi
5c7fc7c4 4479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4480fi
4481echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4482echo "${ECHO_T}$ac_cv_type_off_t" >&6
4483if test $ac_cv_type_off_t = yes; then
4484 :
4485else
80992638 4486
ad6254c5
AK
4487cat >>confdefs.h <<_ACEOF
4488#define off_t long
4489_ACEOF
199e490e 4490
b896caa1
AK
4491fi
4492
ad6254c5
AK
4493echo "$as_me:$LINENO: checking for pid_t" >&5
4494echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4495if test "${ac_cv_type_pid_t+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4497else
4498 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4499/* confdefs.h. */
4500_ACEOF
4501cat confdefs.h >>conftest.$ac_ext
4502cat >>conftest.$ac_ext <<_ACEOF
4503/* end confdefs.h. */
4504$ac_includes_default
4505int
4506main ()
4507{
4508if ((pid_t *) 0)
4509 return 0;
4510if (sizeof (pid_t))
4511 return 0;
4512 ;
4513 return 0;
4514}
4515_ACEOF
4516rm -f conftest.$ac_objext
4517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 4518 (eval $ac_compile) 2>conftest.er1
ad6254c5 4519 ac_status=$?
5c7fc7c4
PC
4520 grep -v '^ *+' conftest.er1 >conftest.err
4521 rm -f conftest.er1
4522 cat conftest.err >&5
ad6254c5
AK
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } &&
5c7fc7c4
PC
4525 { ac_try='test -z "$ac_c_werror_flag"
4526 || test ! -s conftest.err'
4527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528 (eval $ac_try) 2>&5
4529 ac_status=$?
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; } &&
4532 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534 (eval $ac_try) 2>&5
4535 ac_status=$?
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; }; then
4538 ac_cv_type_pid_t=yes
4539else
4540 echo "$as_me: failed program was:" >&5
4541sed 's/^/| /' conftest.$ac_ext >&5
4542
4543ac_cv_type_pid_t=no
4544fi
5c7fc7c4 4545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 4546fi
ad6254c5
AK
4547echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4548echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4549if test $ac_cv_type_pid_t = yes; then
4550 :
4551else
80992638 4552
ad6254c5
AK
4553cat >>confdefs.h <<_ACEOF
4554#define pid_t int
4555_ACEOF
2dc95e1c 4556
2dc95e1c
AK
4557fi
4558
ad6254c5
AK
4559echo "$as_me:$LINENO: checking for size_t" >&5
4560echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4561if test "${ac_cv_type_size_t+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 4563else
ad6254c5 4564 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4565/* confdefs.h. */
4566_ACEOF
4567cat confdefs.h >>conftest.$ac_ext
4568cat >>conftest.$ac_ext <<_ACEOF
4569/* end confdefs.h. */
4570$ac_includes_default
4571int
4572main ()
4573{
4574if ((size_t *) 0)
4575 return 0;
4576if (sizeof (size_t))
4577 return 0;
4578 ;
4579 return 0;
4580}
4581_ACEOF
4582rm -f conftest.$ac_objext
4583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 4584 (eval $ac_compile) 2>conftest.er1
ad6254c5 4585 ac_status=$?
5c7fc7c4
PC
4586 grep -v '^ *+' conftest.er1 >conftest.err
4587 rm -f conftest.er1
4588 cat conftest.err >&5
ad6254c5
AK
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } &&
5c7fc7c4
PC
4591 { ac_try='test -z "$ac_c_werror_flag"
4592 || test ! -s conftest.err'
4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 (eval $ac_try) 2>&5
4595 ac_status=$?
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; } &&
4598 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 (eval $ac_try) 2>&5
4601 ac_status=$?
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4604 ac_cv_type_size_t=yes
4605else
4606 echo "$as_me: failed program was:" >&5
4607sed 's/^/| /' conftest.$ac_ext >&5
4608
4609ac_cv_type_size_t=no
80992638 4610fi
5c7fc7c4 4611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4612fi
4613echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4614echo "${ECHO_T}$ac_cv_type_size_t" >&6
4615if test $ac_cv_type_size_t = yes; then
4616 :
4617else
80992638 4618
ad6254c5
AK
4619cat >>confdefs.h <<_ACEOF
4620#define size_t unsigned
4621_ACEOF
8106cdd5 4622
8106cdd5
AK
4623fi
4624
ad6254c5
AK
4625echo "$as_me:$LINENO: checking for mode_t" >&5
4626echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4627if test "${ac_cv_type_mode_t+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4629else
4630 cat >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
4637int
4638main ()
4639{
4640if ((mode_t *) 0)
4641 return 0;
4642if (sizeof (mode_t))
4643 return 0;
4644 ;
4645 return 0;
4646}
4647_ACEOF
4648rm -f conftest.$ac_objext
4649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 4650 (eval $ac_compile) 2>conftest.er1
ad6254c5 4651 ac_status=$?
5c7fc7c4
PC
4652 grep -v '^ *+' conftest.er1 >conftest.err
4653 rm -f conftest.er1
4654 cat conftest.err >&5
ad6254c5
AK
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } &&
5c7fc7c4
PC
4657 { ac_try='test -z "$ac_c_werror_flag"
4658 || test ! -s conftest.err'
4659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 (eval $ac_try) 2>&5
4661 ac_status=$?
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }; } &&
4664 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666 (eval $ac_try) 2>&5
4667 ac_status=$?
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; }; then
4670 ac_cv_type_mode_t=yes
4671else
4672 echo "$as_me: failed program was:" >&5
4673sed 's/^/| /' conftest.$ac_ext >&5
4674
4675ac_cv_type_mode_t=no
80992638 4676fi
5c7fc7c4 4677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4678fi
4679echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4680echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4681if test $ac_cv_type_mode_t = yes; then
4682 :
4683else
80992638 4684
ad6254c5
AK
4685cat >>confdefs.h <<_ACEOF
4686#define mode_t int
4687_ACEOF
4688
4689fi
4690
4691
4692echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
4693echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
4694if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4696else
4697 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4698/* confdefs.h. */
4699_ACEOF
4700cat confdefs.h >>conftest.$ac_ext
4701cat >>conftest.$ac_ext <<_ACEOF
4702/* end confdefs.h. */
4703$ac_includes_default
4704int
4705main ()
4706{
4707static struct stat ac_aggr;
4708if (ac_aggr.st_rdev)
4709return 0;
4710 ;
4711 return 0;
4712}
4713_ACEOF
4714rm -f conftest.$ac_objext
4715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 4716 (eval $ac_compile) 2>conftest.er1
ad6254c5 4717 ac_status=$?
5c7fc7c4
PC
4718 grep -v '^ *+' conftest.er1 >conftest.err
4719 rm -f conftest.er1
4720 cat conftest.err >&5
ad6254c5
AK
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } &&
5c7fc7c4
PC
4723 { ac_try='test -z "$ac_c_werror_flag"
4724 || test ! -s conftest.err'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726 (eval $ac_try) 2>&5
4727 ac_status=$?
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; } &&
4730 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 (eval $ac_try) 2>&5
4733 ac_status=$?
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; }; then
4736 ac_cv_member_struct_stat_st_rdev=yes
4737else
4738 echo "$as_me: failed program was:" >&5
4739sed 's/^/| /' conftest.$ac_ext >&5
4740
4741cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4742/* confdefs.h. */
4743_ACEOF
4744cat confdefs.h >>conftest.$ac_ext
4745cat >>conftest.$ac_ext <<_ACEOF
4746/* end confdefs.h. */
4747$ac_includes_default
4748int
4749main ()
4750{
4751static struct stat ac_aggr;
4752if (sizeof ac_aggr.st_rdev)
4753return 0;
4754 ;
4755 return 0;
4756}
4757_ACEOF
4758rm -f conftest.$ac_objext
4759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 4760 (eval $ac_compile) 2>conftest.er1
ad6254c5 4761 ac_status=$?
5c7fc7c4
PC
4762 grep -v '^ *+' conftest.er1 >conftest.err
4763 rm -f conftest.er1
4764 cat conftest.err >&5
ad6254c5
AK
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } &&
5c7fc7c4
PC
4767 { ac_try='test -z "$ac_c_werror_flag"
4768 || test ! -s conftest.err'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770 (eval $ac_try) 2>&5
4771 ac_status=$?
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; } &&
4774 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 (eval $ac_try) 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4780 ac_cv_member_struct_stat_st_rdev=yes
4781else
4782 echo "$as_me: failed program was:" >&5
4783sed 's/^/| /' conftest.$ac_ext >&5
4784
4785ac_cv_member_struct_stat_st_rdev=no
4786fi
5c7fc7c4 4787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 4788fi
5c7fc7c4 4789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4790fi
4791echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
4792echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
4793if test $ac_cv_member_struct_stat_st_rdev = yes; then
4794
4795cat >>confdefs.h <<_ACEOF
4796#define HAVE_STRUCT_STAT_ST_RDEV 1
4797_ACEOF
4798
4799
4800cat >>confdefs.h <<\_ACEOF
4801#define HAVE_ST_RDEV 1
4802_ACEOF
4803
4804fi
4805
4806
4807echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4808echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4809if test "${ac_cv_struct_tm+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4811else
4812 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4813/* confdefs.h. */
4814_ACEOF
4815cat confdefs.h >>conftest.$ac_ext
4816cat >>conftest.$ac_ext <<_ACEOF
4817/* end confdefs.h. */
4818#include <sys/types.h>
4819#include <time.h>
4820
4821int
4822main ()
4823{
4824struct tm *tp; tp->tm_sec;
4825 ;
4826 return 0;
4827}
4828_ACEOF
4829rm -f conftest.$ac_objext
4830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 4831 (eval $ac_compile) 2>conftest.er1
ad6254c5 4832 ac_status=$?
5c7fc7c4
PC
4833 grep -v '^ *+' conftest.er1 >conftest.err
4834 rm -f conftest.er1
4835 cat conftest.err >&5
ad6254c5
AK
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); } &&
5c7fc7c4
PC
4838 { ac_try='test -z "$ac_c_werror_flag"
4839 || test ! -s conftest.err'
4840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841 (eval $ac_try) 2>&5
4842 ac_status=$?
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); }; } &&
4845 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 (eval $ac_try) 2>&5
4848 ac_status=$?
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }; }; then
4851 ac_cv_struct_tm=time.h
4852else
4853 echo "$as_me: failed program was:" >&5
4854sed 's/^/| /' conftest.$ac_ext >&5
4855
4856ac_cv_struct_tm=sys/time.h
4857fi
5c7fc7c4 4858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4859fi
4860echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4861echo "${ECHO_T}$ac_cv_struct_tm" >&6
4862if test $ac_cv_struct_tm = sys/time.h; then
4863
4864cat >>confdefs.h <<\_ACEOF
4865#define TM_IN_SYS_TIME 1
4866_ACEOF
4867
4868fi
809fae91 4869
795ca3e5 4870
80992638 4871################################################################################
ad6254c5
AK
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886for ac_func in gethostname getpagesize memset munmap setlocale strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul
4887do
4888as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4889echo "$as_me:$LINENO: checking for $ac_func" >&5
4890echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4891if eval "test \"\${$as_ac_var+set}\" = set"; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 4893else
ad6254c5 4894 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4895/* confdefs.h. */
4896_ACEOF
4897cat confdefs.h >>conftest.$ac_ext
4898cat >>conftest.$ac_ext <<_ACEOF
4899/* end confdefs.h. */
5c7fc7c4
PC
4900/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4902#define $ac_func innocuous_$ac_func
4903
ad6254c5
AK
4904/* System header to define __stub macros and hopefully few prototypes,
4905 which can conflict with char $ac_func (); below.
4906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4907 <limits.h> exists even on freestanding compilers. */
5c7fc7c4 4908
ad6254c5
AK
4909#ifdef __STDC__
4910# include <limits.h>
4911#else
4912# include <assert.h>
4913#endif
5c7fc7c4
PC
4914
4915#undef $ac_func
4916
ad6254c5
AK
4917/* Override any gcc2 internal prototype to avoid an error. */
4918#ifdef __cplusplus
4919extern "C"
4920{
4921#endif
4922/* We use char because int might match the return type of a gcc2
4923 builtin and then its argument prototype would still apply. */
4924char $ac_func ();
4925/* The GNU C library defines this for functions which it implements
4926 to always fail with ENOSYS. Some functions are actually named
4927 something starting with __ and the normal name is an alias. */
4928#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4929choke me
4930#else
4931char (*f) () = $ac_func;
4932#endif
4933#ifdef __cplusplus
4934}
4935#endif
4936
4937int
4938main ()
4939{
4940return f != $ac_func;
4941 ;
4942 return 0;
4943}
4944_ACEOF
4945rm -f conftest.$ac_objext conftest$ac_exeext
4946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 4947 (eval $ac_link) 2>conftest.er1
ad6254c5 4948 ac_status=$?
5c7fc7c4
PC
4949 grep -v '^ *+' conftest.er1 >conftest.err
4950 rm -f conftest.er1
4951 cat conftest.err >&5
ad6254c5
AK
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } &&
5c7fc7c4
PC
4954 { ac_try='test -z "$ac_c_werror_flag"
4955 || test ! -s conftest.err'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957 (eval $ac_try) 2>&5
4958 ac_status=$?
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; } &&
4961 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 (eval $ac_try) 2>&5
4964 ac_status=$?
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; }; then
4967 eval "$as_ac_var=yes"
795ca3e5 4968else
ad6254c5
AK
4969 echo "$as_me: failed program was:" >&5
4970sed 's/^/| /' conftest.$ac_ext >&5
4971
4972eval "$as_ac_var=no"
795ca3e5 4973fi
5c7fc7c4
PC
4974rm -f conftest.err conftest.$ac_objext \
4975 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
4976fi
4977echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4978echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4979if test `eval echo '${'$as_ac_var'}'` = yes; then
4980 cat >>confdefs.h <<_ACEOF
4981#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4982_ACEOF
4983
4984else
4985 { { echo "$as_me:$LINENO: error: bailing out" >&5
4986echo "$as_me: error: bailing out" >&2;}
4987 { (exit 1); exit 1; }; }
4988fi
4989done
795ca3e5 4990
ad6254c5
AK
4991# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4992# for constant arguments. Useless!
4993echo "$as_me:$LINENO: checking for working alloca.h" >&5
4994echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4995if test "${ac_cv_working_alloca_h+set}" = set; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4997else
4998 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4999/* confdefs.h. */
5000_ACEOF
5001cat confdefs.h >>conftest.$ac_ext
5002cat >>conftest.$ac_ext <<_ACEOF
5003/* end confdefs.h. */
5004#include <alloca.h>
5005int
5006main ()
5007{
5008char *p = (char *) alloca (2 * sizeof (int));
5009 ;
5010 return 0;
5011}
5012_ACEOF
5013rm -f conftest.$ac_objext conftest$ac_exeext
5014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 5015 (eval $ac_link) 2>conftest.er1
ad6254c5 5016 ac_status=$?
5c7fc7c4
PC
5017 grep -v '^ *+' conftest.er1 >conftest.err
5018 rm -f conftest.er1
5019 cat conftest.err >&5
ad6254c5
AK
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } &&
5c7fc7c4
PC
5022 { ac_try='test -z "$ac_c_werror_flag"
5023 || test ! -s conftest.err'
5024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025 (eval $ac_try) 2>&5
5026 ac_status=$?
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; } &&
5029 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031 (eval $ac_try) 2>&5
5032 ac_status=$?
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; }; then
5035 ac_cv_working_alloca_h=yes
5036else
5037 echo "$as_me: failed program was:" >&5
5038sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 5039
ad6254c5
AK
5040ac_cv_working_alloca_h=no
5041fi
5c7fc7c4
PC
5042rm -f conftest.err conftest.$ac_objext \
5043 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5044fi
5045echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5046echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5047if test $ac_cv_working_alloca_h = yes; then
5048
5049cat >>confdefs.h <<\_ACEOF
5050#define HAVE_ALLOCA_H 1
5051_ACEOF
5052
5053fi
5054
5055echo "$as_me:$LINENO: checking for alloca" >&5
5056echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5057if test "${ac_cv_func_alloca_works+set}" = set; then
5058 echo $ECHO_N "(cached) $ECHO_C" >&6
5059else
5060 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5061/* confdefs.h. */
5062_ACEOF
5063cat confdefs.h >>conftest.$ac_ext
5064cat >>conftest.$ac_ext <<_ACEOF
5065/* end confdefs.h. */
5066#ifdef __GNUC__
5067# define alloca __builtin_alloca
5068#else
5069# ifdef _MSC_VER
5070# include <malloc.h>
5071# define alloca _alloca
5072# else
5073# if HAVE_ALLOCA_H
5074# include <alloca.h>
5075# else
5076# ifdef _AIX
5077 #pragma alloca
5078# else
5079# ifndef alloca /* predefined by HP cc +Olibcalls */
5080char *alloca ();
5081# endif
5082# endif
5083# endif
5084# endif
5085#endif
5086
5087int
5088main ()
5089{
5090char *p = (char *) alloca (1);
5091 ;
5092 return 0;
5093}
5094_ACEOF
5095rm -f conftest.$ac_objext conftest$ac_exeext
5096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 5097 (eval $ac_link) 2>conftest.er1
ad6254c5 5098 ac_status=$?
5c7fc7c4
PC
5099 grep -v '^ *+' conftest.er1 >conftest.err
5100 rm -f conftest.er1
5101 cat conftest.err >&5
ad6254c5
AK
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } &&
5c7fc7c4
PC
5104 { ac_try='test -z "$ac_c_werror_flag"
5105 || test ! -s conftest.err'
5106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 (eval $ac_try) 2>&5
5108 ac_status=$?
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }; } &&
5111 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113 (eval $ac_try) 2>&5
5114 ac_status=$?
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }; }; then
5117 ac_cv_func_alloca_works=yes
5118else
5119 echo "$as_me: failed program was:" >&5
5120sed 's/^/| /' conftest.$ac_ext >&5
5121
5122ac_cv_func_alloca_works=no
5123fi
5c7fc7c4
PC
5124rm -f conftest.err conftest.$ac_objext \
5125 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5126fi
5127echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5128echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5129
5130if test $ac_cv_func_alloca_works = yes; then
5131
5132cat >>confdefs.h <<\_ACEOF
5133#define HAVE_ALLOCA 1
5134_ACEOF
5135
5136else
5137 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5138# that cause trouble. Some versions do not even contain alloca or
5139# contain a buggy version. If you still want to use their alloca,
5140# use ar to extract alloca.o from them instead of compiling alloca.c.
5141
5142ALLOCA=alloca.$ac_objext
5143
5144cat >>confdefs.h <<\_ACEOF
5145#define C_ALLOCA 1
5146_ACEOF
5147
5148
5149echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5150echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5151if test "${ac_cv_os_cray+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5153else
5154 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5155/* confdefs.h. */
5156_ACEOF
5157cat confdefs.h >>conftest.$ac_ext
5158cat >>conftest.$ac_ext <<_ACEOF
5159/* end confdefs.h. */
5160#if defined(CRAY) && ! defined(CRAY2)
5161webecray
5162#else
5163wenotbecray
5164#endif
5165
5166_ACEOF
795ca3e5 5167if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
5168 $EGREP "webecray" >/dev/null 2>&1; then
5169 ac_cv_os_cray=yes
5170else
5171 ac_cv_os_cray=no
795ca3e5
AK
5172fi
5173rm -f conftest*
5174
795ca3e5 5175fi
ad6254c5
AK
5176echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5177echo "${ECHO_T}$ac_cv_os_cray" >&6
5178if test $ac_cv_os_cray = yes; then
5179 for ac_func in _getb67 GETB67 getb67; do
5180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5181echo "$as_me:$LINENO: checking for $ac_func" >&5
5182echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5183if eval "test \"\${$as_ac_var+set}\" = set"; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5185else
5186 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5187/* confdefs.h. */
5188_ACEOF
5189cat confdefs.h >>conftest.$ac_ext
5190cat >>conftest.$ac_ext <<_ACEOF
5191/* end confdefs.h. */
5c7fc7c4
PC
5192/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5194#define $ac_func innocuous_$ac_func
5195
ad6254c5
AK
5196/* System header to define __stub macros and hopefully few prototypes,
5197 which can conflict with char $ac_func (); below.
5198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5199 <limits.h> exists even on freestanding compilers. */
5c7fc7c4 5200
ad6254c5
AK
5201#ifdef __STDC__
5202# include <limits.h>
5203#else
5204# include <assert.h>
5205#endif
5c7fc7c4
PC
5206
5207#undef $ac_func
5208
ad6254c5
AK
5209/* Override any gcc2 internal prototype to avoid an error. */
5210#ifdef __cplusplus
5211extern "C"
5212{
5213#endif
5214/* We use char because int might match the return type of a gcc2
5215 builtin and then its argument prototype would still apply. */
5216char $ac_func ();
5217/* The GNU C library defines this for functions which it implements
5218 to always fail with ENOSYS. Some functions are actually named
5219 something starting with __ and the normal name is an alias. */
5220#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5221choke me
5222#else
5223char (*f) () = $ac_func;
5224#endif
5225#ifdef __cplusplus
5226}
5227#endif
5228
5229int
5230main ()
5231{
5232return f != $ac_func;
5233 ;
5234 return 0;
5235}
5236_ACEOF
5237rm -f conftest.$ac_objext conftest$ac_exeext
5238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 5239 (eval $ac_link) 2>conftest.er1
ad6254c5 5240 ac_status=$?
5c7fc7c4
PC
5241 grep -v '^ *+' conftest.er1 >conftest.err
5242 rm -f conftest.er1
5243 cat conftest.err >&5
ad6254c5
AK
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); } &&
5c7fc7c4
PC
5246 { ac_try='test -z "$ac_c_werror_flag"
5247 || test ! -s conftest.err'
5248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249 (eval $ac_try) 2>&5
5250 ac_status=$?
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); }; } &&
5253 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255 (eval $ac_try) 2>&5
5256 ac_status=$?
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }; }; then
5259 eval "$as_ac_var=yes"
5260else
5261 echo "$as_me: failed program was:" >&5
5262sed 's/^/| /' conftest.$ac_ext >&5
5263
5264eval "$as_ac_var=no"
5265fi
5c7fc7c4
PC
5266rm -f conftest.err conftest.$ac_objext \
5267 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5268fi
5269echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5270echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5271if test `eval echo '${'$as_ac_var'}'` = yes; then
80992638 5272
ad6254c5
AK
5273cat >>confdefs.h <<_ACEOF
5274#define CRAY_STACKSEG_END $ac_func
5275_ACEOF
5276
5277 break
5278fi
5279
5280 done
5281fi
5282
5283echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5284echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5285if test "${ac_cv_c_stack_direction+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5287else
5288 if test "$cross_compiling" = yes; then
5289 ac_cv_c_stack_direction=0
5290else
5291 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5292/* confdefs.h. */
5293_ACEOF
5294cat confdefs.h >>conftest.$ac_ext
5295cat >>conftest.$ac_ext <<_ACEOF
5296/* end confdefs.h. */
5297int
5298find_stack_direction ()
5299{
5300 static char *addr = 0;
5301 auto char dummy;
5302 if (addr == 0)
5303 {
5304 addr = &dummy;
5305 return find_stack_direction ();
5306 }
5307 else
5308 return (&dummy > addr) ? 1 : -1;
5309}
5310
5311int
5312main ()
5313{
5314 exit (find_stack_direction () < 0);
5315}
5316_ACEOF
5317rm -f conftest$ac_exeext
5318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5319 (eval $ac_link) 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5324 (eval $ac_try) 2>&5
5325 ac_status=$?
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); }; }; then
5328 ac_cv_c_stack_direction=1
5329else
5330 echo "$as_me: program exited with status $ac_status" >&5
5331echo "$as_me: failed program was:" >&5
5332sed 's/^/| /' conftest.$ac_ext >&5
5333
5334( exit $ac_status )
5335ac_cv_c_stack_direction=-1
5336fi
5c7fc7c4 5337rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5338fi
5339fi
5340echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5341echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5342
5343cat >>confdefs.h <<_ACEOF
5344#define STACK_DIRECTION $ac_cv_c_stack_direction
5345_ACEOF
5346
5347
5348fi
5349
5350echo "$as_me:$LINENO: checking whether closedir returns void" >&5
5351echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
5352if test "${ac_cv_func_closedir_void+set}" = set; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5354else
5355 if test "$cross_compiling" = yes; then
5356 ac_cv_func_closedir_void=yes
5357else
5358 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5359/* confdefs.h. */
5360_ACEOF
5361cat confdefs.h >>conftest.$ac_ext
5362cat >>conftest.$ac_ext <<_ACEOF
5363/* end confdefs.h. */
5364$ac_includes_default
5365#include <$ac_header_dirent>
5366#ifndef __cplusplus
5367int closedir ();
5368#endif
5369
5370int
5371main ()
5372{
5373exit (closedir (opendir (".")) != 0);
5374 ;
5375 return 0;
5376}
5377_ACEOF
5378rm -f conftest$ac_exeext
5379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5380 (eval $ac_link) 2>&5
5381 ac_status=$?
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385 (eval $ac_try) 2>&5
5386 ac_status=$?
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; }; then
5389 ac_cv_func_closedir_void=no
5390else
5391 echo "$as_me: program exited with status $ac_status" >&5
5392echo "$as_me: failed program was:" >&5
5393sed 's/^/| /' conftest.$ac_ext >&5
5394
5395( exit $ac_status )
5396ac_cv_func_closedir_void=yes
5397fi
5c7fc7c4 5398rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5399fi
5400fi
5401echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
5402echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
5403if test $ac_cv_func_closedir_void = yes; then
5404
5405cat >>confdefs.h <<\_ACEOF
5406#define CLOSEDIR_VOID 1
5407_ACEOF
5408
5409fi
5410
5411
5412
5413for ac_header in unistd.h vfork.h
5414do
5415as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5416if eval "test \"\${$as_ac_Header+set}\" = set"; then
5417 echo "$as_me:$LINENO: checking for $ac_header" >&5
5418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5419if eval "test \"\${$as_ac_Header+set}\" = set"; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5421fi
5422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5423echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5424else
5425 # Is the header compilable?
5426echo "$as_me:$LINENO: checking $ac_header usability" >&5
5427echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5428cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5429/* confdefs.h. */
5430_ACEOF
5431cat confdefs.h >>conftest.$ac_ext
5432cat >>conftest.$ac_ext <<_ACEOF
5433/* end confdefs.h. */
5434$ac_includes_default
5435#include <$ac_header>
5436_ACEOF
5437rm -f conftest.$ac_objext
5438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 5439 (eval $ac_compile) 2>conftest.er1
ad6254c5 5440 ac_status=$?
5c7fc7c4
PC
5441 grep -v '^ *+' conftest.er1 >conftest.err
5442 rm -f conftest.er1
5443 cat conftest.err >&5
ad6254c5
AK
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } &&
5c7fc7c4
PC
5446 { ac_try='test -z "$ac_c_werror_flag"
5447 || test ! -s conftest.err'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 (eval $ac_try) 2>&5
5450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; } &&
5453 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
5454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455 (eval $ac_try) 2>&5
5456 ac_status=$?
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); }; }; then
5459 ac_header_compiler=yes
5460else
5461 echo "$as_me: failed program was:" >&5
5462sed 's/^/| /' conftest.$ac_ext >&5
5463
5464ac_header_compiler=no
5465fi
5c7fc7c4 5466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5467echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5468echo "${ECHO_T}$ac_header_compiler" >&6
5469
5470# Is the header present?
5471echo "$as_me:$LINENO: checking $ac_header presence" >&5
5472echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5473cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5474/* confdefs.h. */
5475_ACEOF
5476cat confdefs.h >>conftest.$ac_ext
5477cat >>conftest.$ac_ext <<_ACEOF
5478/* end confdefs.h. */
5479#include <$ac_header>
5480_ACEOF
5481if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5483 ac_status=$?
5484 grep -v '^ *+' conftest.er1 >conftest.err
5485 rm -f conftest.er1
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } >/dev/null; then
5489 if test -s conftest.err; then
5490 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 5491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
5492 else
5493 ac_cpp_err=
795ca3e5 5494 fi
ad6254c5
AK
5495else
5496 ac_cpp_err=yes
5497fi
5498if test -z "$ac_cpp_err"; then
5499 ac_header_preproc=yes
5500else
5501 echo "$as_me: failed program was:" >&5
5502sed 's/^/| /' conftest.$ac_ext >&5
5503
5504 ac_header_preproc=no
5505fi
5506rm -f conftest.err conftest.$ac_ext
5507echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5508echo "${ECHO_T}$ac_header_preproc" >&6
5509
5510# So? What about this header?
5c7fc7c4
PC
5511case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5512 yes:no: )
ad6254c5
AK
5513 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5514echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
5515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5516echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5517 ac_header_preproc=yes
ad6254c5 5518 ;;
5c7fc7c4 5519 no:yes:* )
ad6254c5
AK
5520 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5521echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
5522 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5523echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5524 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5525echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5526 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5527echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
5528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5529echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
5530 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5531echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
5532 (
5533 cat <<\_ASBOX
5c7fc7c4
PC
5534## ------------------------------------------ ##
5535## Report this to the AC_PACKAGE_NAME lists. ##
5536## ------------------------------------------ ##
ad6254c5
AK
5537_ASBOX
5538 ) |
5539 sed "s/^/$as_me: WARNING: /" >&2
5540 ;;
5541esac
5542echo "$as_me:$LINENO: checking for $ac_header" >&5
5543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5544if eval "test \"\${$as_ac_Header+set}\" = set"; then
5545 echo $ECHO_N "(cached) $ECHO_C" >&6
5546else
5c7fc7c4 5547 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
5548fi
5549echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5550echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5551
795ca3e5 5552fi
ad6254c5
AK
5553if test `eval echo '${'$as_ac_Header'}'` = yes; then
5554 cat >>confdefs.h <<_ACEOF
5555#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5556_ACEOF
5557
5558fi
5559
5560done
795ca3e5 5561
ad6254c5
AK
5562
5563
5564for ac_func in fork vfork
5565do
5566as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5567echo "$as_me:$LINENO: checking for $ac_func" >&5
5568echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5569if eval "test \"\${$as_ac_var+set}\" = set"; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 5571else
ad6254c5 5572 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5573/* confdefs.h. */
5574_ACEOF
5575cat confdefs.h >>conftest.$ac_ext
5576cat >>conftest.$ac_ext <<_ACEOF
5577/* end confdefs.h. */
5c7fc7c4
PC
5578/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5580#define $ac_func innocuous_$ac_func
5581
ad6254c5
AK
5582/* System header to define __stub macros and hopefully few prototypes,
5583 which can conflict with char $ac_func (); below.
5584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5585 <limits.h> exists even on freestanding compilers. */
5c7fc7c4 5586
ad6254c5
AK
5587#ifdef __STDC__
5588# include <limits.h>
5589#else
5590# include <assert.h>
795ca3e5 5591#endif
5c7fc7c4
PC
5592
5593#undef $ac_func
5594
ad6254c5 5595/* Override any gcc2 internal prototype to avoid an error. */
795ca3e5 5596#ifdef __cplusplus
ad6254c5
AK
5597extern "C"
5598{
5599#endif
5600/* We use char because int might match the return type of a gcc2
5601 builtin and then its argument prototype would still apply. */
5602char $ac_func ();
5603/* The GNU C library defines this for functions which it implements
5604 to always fail with ENOSYS. Some functions are actually named
5605 something starting with __ and the normal name is an alias. */
5606#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5607choke me
795ca3e5 5608#else
ad6254c5
AK
5609char (*f) () = $ac_func;
5610#endif
5611#ifdef __cplusplus
5612}
795ca3e5
AK
5613#endif
5614
ad6254c5
AK
5615int
5616main ()
5617{
5618return f != $ac_func;
5619 ;
5620 return 0;
5621}
5622_ACEOF
5623rm -f conftest.$ac_objext conftest$ac_exeext
5624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 5625 (eval $ac_link) 2>conftest.er1
ad6254c5 5626 ac_status=$?
5c7fc7c4
PC
5627 grep -v '^ *+' conftest.er1 >conftest.err
5628 rm -f conftest.er1
5629 cat conftest.err >&5
ad6254c5
AK
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } &&
5c7fc7c4
PC
5632 { ac_try='test -z "$ac_c_werror_flag"
5633 || test ! -s conftest.err'
5634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635 (eval $ac_try) 2>&5
5636 ac_status=$?
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; } &&
5639 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641 (eval $ac_try) 2>&5
5642 ac_status=$?
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; }; then
5645 eval "$as_ac_var=yes"
795ca3e5 5646else
ad6254c5
AK
5647 echo "$as_me: failed program was:" >&5
5648sed 's/^/| /' conftest.$ac_ext >&5
5649
5650eval "$as_ac_var=no"
795ca3e5 5651fi
5c7fc7c4
PC
5652rm -f conftest.err conftest.$ac_objext \
5653 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5654fi
5655echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5656echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5657if test `eval echo '${'$as_ac_var'}'` = yes; then
5658 cat >>confdefs.h <<_ACEOF
5659#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5660_ACEOF
5661
5662fi
5663done
5664
5665if test "x$ac_cv_func_fork" = xyes; then
5666 echo "$as_me:$LINENO: checking for working fork" >&5
5667echo $ECHO_N "checking for working fork... $ECHO_C" >&6
5668if test "${ac_cv_func_fork_works+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5670else
5671 if test "$cross_compiling" = yes; then
5672 ac_cv_func_fork_works=cross
5673else
5674 cat >conftest.$ac_ext <<_ACEOF
5675/* By Ruediger Kuhlmann. */
5676 #include <sys/types.h>
5677 #if HAVE_UNISTD_H
5678 # include <unistd.h>
5679 #endif
5680 /* Some systems only have a dummy stub for fork() */
5681 int main ()
5682 {
5c7fc7c4
PC
5683 if (fork() < 0)
5684 exit (1);
5685 exit (0);
ad6254c5
AK
5686 }
5687_ACEOF
5688rm -f conftest$ac_exeext
5689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5690 (eval $ac_link) 2>&5
5691 ac_status=$?
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695 (eval $ac_try) 2>&5
5696 ac_status=$?
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; }; then
5699 ac_cv_func_fork_works=yes
5700else
5701 echo "$as_me: program exited with status $ac_status" >&5
5702echo "$as_me: failed program was:" >&5
5703sed 's/^/| /' conftest.$ac_ext >&5
5704
5705( exit $ac_status )
5706ac_cv_func_fork_works=no
5707fi
5c7fc7c4 5708rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5709fi
5710fi
5711echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
5712echo "${ECHO_T}$ac_cv_func_fork_works" >&6
5713
5714else
5715 ac_cv_func_fork_works=$ac_cv_func_fork
5716fi
5717if test "x$ac_cv_func_fork_works" = xcross; then
5718 case $host in
5719 *-*-amigaos* | *-*-msdosdjgpp*)
5720 # Override, as these systems have only a dummy fork() stub
5721 ac_cv_func_fork_works=no
5722 ;;
5723 *)
5724 ac_cv_func_fork_works=yes
5725 ;;
5726 esac
5727 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5728echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5729fi
5730ac_cv_func_vfork_works=$ac_cv_func_vfork
5731if test "x$ac_cv_func_vfork" = xyes; then
5732 echo "$as_me:$LINENO: checking for working vfork" >&5
5733echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
5734if test "${ac_cv_func_vfork_works+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5736else
5737 if test "$cross_compiling" = yes; then
5738 ac_cv_func_vfork_works=cross
5739else
5740 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5741/* confdefs.h. */
5742_ACEOF
5743cat confdefs.h >>conftest.$ac_ext
5744cat >>conftest.$ac_ext <<_ACEOF
5745/* end confdefs.h. */
5746/* Thanks to Paul Eggert for this test. */
5747#include <stdio.h>
5748#include <stdlib.h>
5749#include <sys/types.h>
5750#include <sys/stat.h>
5751#include <sys/wait.h>
5752#if HAVE_UNISTD_H
5753# include <unistd.h>
5754#endif
5755#if HAVE_VFORK_H
5756# include <vfork.h>
5757#endif
5758/* On some sparc systems, changes by the child to local and incoming
5759 argument registers are propagated back to the parent. The compiler
5760 is told about this with #include <vfork.h>, but some compilers
5761 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5762 static variable whose address is put into a register that is
5763 clobbered by the vfork. */
5764static void
5765#ifdef __cplusplus
5766sparc_address_test (int arg)
5767# else
5768sparc_address_test (arg) int arg;
5769#endif
5770{
5771 static pid_t child;
5772 if (!child) {
5773 child = vfork ();
5774 if (child < 0) {
5775 perror ("vfork");
5776 _exit(2);
5777 }
5778 if (!child) {
5779 arg = getpid();
5780 write(-1, "", 0);
5781 _exit (arg);
5782 }
5783 }
5784}
5785
5786int
5787main ()
5788{
5789 pid_t parent = getpid ();
5790 pid_t child;
5791
5792 sparc_address_test (0);
5793
5794 child = vfork ();
5795
5796 if (child == 0) {
5797 /* Here is another test for sparc vfork register problems. This
5798 test uses lots of local variables, at least as many local
5799 variables as main has allocated so far including compiler
5800 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5801 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5802 reuse the register of parent for one of the local variables,
5803 since it will think that parent can't possibly be used any more
5804 in this routine. Assigning to the local variable will thus
5805 munge parent in the parent process. */
5806 pid_t
5807 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5808 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5809 /* Convince the compiler that p..p7 are live; otherwise, it might
5810 use the same hardware register for all 8 local variables. */
5811 if (p != p1 || p != p2 || p != p3 || p != p4
5812 || p != p5 || p != p6 || p != p7)
5813 _exit(1);
5814
5815 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5816 from child file descriptors. If the child closes a descriptor
5817 before it execs or exits, this munges the parent's descriptor
5818 as well. Test for this by closing stdout in the child. */
5819 _exit(close(fileno(stdout)) != 0);
5820 } else {
5821 int status;
5822 struct stat st;
5823
5824 while (wait(&status) != child)
5825 ;
5826 exit(
5827 /* Was there some problem with vforking? */
5828 child < 0
5829
5830 /* Did the child fail? (This shouldn't happen.) */
5831 || status
5832
5833 /* Did the vfork/compiler bug occur? */
5834 || parent != getpid()
5835
5836 /* Did the file descriptor bug occur? */
5837 || fstat(fileno(stdout), &st) != 0
5838 );
5839 }
5840}
5841_ACEOF
5842rm -f conftest$ac_exeext
5843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5844 (eval $ac_link) 2>&5
5845 ac_status=$?
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849 (eval $ac_try) 2>&5
5850 ac_status=$?
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; }; then
5853 ac_cv_func_vfork_works=yes
5854else
5855 echo "$as_me: program exited with status $ac_status" >&5
5856echo "$as_me: failed program was:" >&5
5857sed 's/^/| /' conftest.$ac_ext >&5
5858
5859( exit $ac_status )
5860ac_cv_func_vfork_works=no
5861fi
5c7fc7c4 5862rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5863fi
5864fi
5865echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
5866echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
5867
5868fi;
5869if test "x$ac_cv_func_fork_works" = xcross; then
5c7fc7c4 5870 ac_cv_func_vfork_works=$ac_cv_func_vfork
ad6254c5
AK
5871 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5872echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5873fi
5874
5875if test "x$ac_cv_func_vfork_works" = xyes; then
5876
5877cat >>confdefs.h <<\_ACEOF
5878#define HAVE_WORKING_VFORK 1
5879_ACEOF
5880
5881else
5882
5883cat >>confdefs.h <<\_ACEOF
5884#define vfork fork
5885_ACEOF
5886
5887fi
5888if test "x$ac_cv_func_fork_works" = xyes; then
5889
5890cat >>confdefs.h <<\_ACEOF
5891#define HAVE_WORKING_FORK 1
5892_ACEOF
5893
5894fi
5895
5896echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
5897echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
5898if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5900else
5901 rm -f conftest.sym conftest.file
5902echo >conftest.file
5903if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5904 if test "$cross_compiling" = yes; then
5905 ac_cv_func_lstat_dereferences_slashed_symlink=no
5906else
5907 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5908/* confdefs.h. */
5909_ACEOF
5910cat confdefs.h >>conftest.$ac_ext
5911cat >>conftest.$ac_ext <<_ACEOF
5912/* end confdefs.h. */
5913$ac_includes_default
5914int
5915main ()
5916{
5917struct stat sbuf;
5918 /* Linux will dereference the symlink and fail.
5c7fc7c4
PC
5919 That is better in the sense that it means we will not
5920 have to compile and use the lstat wrapper. */
ad6254c5
AK
5921 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
5922 ;
5923 return 0;
5924}
5925_ACEOF
5926rm -f conftest$ac_exeext
5927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5928 (eval $ac_link) 2>&5
5929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 (eval $ac_try) 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5937 ac_cv_func_lstat_dereferences_slashed_symlink=yes
5938else
5939 echo "$as_me: program exited with status $ac_status" >&5
5940echo "$as_me: failed program was:" >&5
5941sed 's/^/| /' conftest.$ac_ext >&5
5942
5943( exit $ac_status )
5944ac_cv_func_lstat_dereferences_slashed_symlink=no
5945fi
5c7fc7c4 5946rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5947fi
5948else
5949 # If the `ln -s' command failed, then we probably don't even
5950 # have an lstat function.
5951 ac_cv_func_lstat_dereferences_slashed_symlink=no
5952fi
5953rm -f conftest.sym conftest.file
5954
5955fi
5956echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5957echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
5958
5959test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5960
5961cat >>confdefs.h <<_ACEOF
5962#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5963_ACEOF
5964
5965
5966if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
5c7fc7c4
PC
5967 case $LIBOBJS in
5968 "lstat.$ac_objext" | \
5969 *" lstat.$ac_objext" | \
5970 "lstat.$ac_objext "* | \
5971 *" lstat.$ac_objext "* ) ;;
5972 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
5973esac
5974
ad6254c5
AK
5975fi
5976
5977echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
5978echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
5979if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5981else
5982 if test "$cross_compiling" = yes; then
5983 ac_cv_func_lstat_empty_string_bug=yes
5984else
5985 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5986/* confdefs.h. */
5987_ACEOF
5988cat confdefs.h >>conftest.$ac_ext
5989cat >>conftest.$ac_ext <<_ACEOF
5990/* end confdefs.h. */
5991$ac_includes_default
5992int
5993main ()
5994{
5995struct stat sbuf;
5996 exit (lstat ("", &sbuf) ? 1 : 0);
5997 ;
5998 return 0;
5999}
6000_ACEOF
6001rm -f conftest$ac_exeext
6002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6003 (eval $ac_link) 2>&5
6004 ac_status=$?
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008 (eval $ac_try) 2>&5
6009 ac_status=$?
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 ac_cv_func_lstat_empty_string_bug=yes
6013else
6014 echo "$as_me: program exited with status $ac_status" >&5
6015echo "$as_me: failed program was:" >&5
6016sed 's/^/| /' conftest.$ac_ext >&5
6017
6018( exit $ac_status )
6019ac_cv_func_lstat_empty_string_bug=no
6020fi
5c7fc7c4 6021rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6022fi
6023fi
6024echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
6025echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
6026if test $ac_cv_func_lstat_empty_string_bug = yes; then
5c7fc7c4
PC
6027 case $LIBOBJS in
6028 "lstat.$ac_objext" | \
6029 *" lstat.$ac_objext" | \
6030 "lstat.$ac_objext "* | \
6031 *" lstat.$ac_objext "* ) ;;
6032 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
6033esac
6034
ad6254c5
AK
6035
6036cat >>confdefs.h <<_ACEOF
6037#define HAVE_LSTAT_EMPTY_STRING_BUG 1
6038_ACEOF
6039
6040fi
6041
6042
6043for ac_header in stdlib.h
6044do
6045as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6046if eval "test \"\${$as_ac_Header+set}\" = set"; then
6047 echo "$as_me:$LINENO: checking for $ac_header" >&5
6048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6049if eval "test \"\${$as_ac_Header+set}\" = set"; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6051fi
6052echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6053echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6054else
6055 # Is the header compilable?
6056echo "$as_me:$LINENO: checking $ac_header usability" >&5
6057echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6058cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6059/* confdefs.h. */
6060_ACEOF
6061cat confdefs.h >>conftest.$ac_ext
6062cat >>conftest.$ac_ext <<_ACEOF
6063/* end confdefs.h. */
6064$ac_includes_default
6065#include <$ac_header>
6066_ACEOF
6067rm -f conftest.$ac_objext
6068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 6069 (eval $ac_compile) 2>conftest.er1
ad6254c5 6070 ac_status=$?
5c7fc7c4
PC
6071 grep -v '^ *+' conftest.er1 >conftest.err
6072 rm -f conftest.er1
6073 cat conftest.err >&5
ad6254c5
AK
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } &&
5c7fc7c4
PC
6076 { ac_try='test -z "$ac_c_werror_flag"
6077 || test ! -s conftest.err'
6078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079 (eval $ac_try) 2>&5
6080 ac_status=$?
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); }; } &&
6083 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
6084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 (eval $ac_try) 2>&5
6086 ac_status=$?
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; }; then
6089 ac_header_compiler=yes
6090else
6091 echo "$as_me: failed program was:" >&5
6092sed 's/^/| /' conftest.$ac_ext >&5
6093
6094ac_header_compiler=no
6095fi
5c7fc7c4 6096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6097echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6098echo "${ECHO_T}$ac_header_compiler" >&6
6099
6100# Is the header present?
6101echo "$as_me:$LINENO: checking $ac_header presence" >&5
6102echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6103cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6104/* confdefs.h. */
6105_ACEOF
6106cat confdefs.h >>conftest.$ac_ext
6107cat >>conftest.$ac_ext <<_ACEOF
6108/* end confdefs.h. */
6109#include <$ac_header>
6110_ACEOF
6111if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6113 ac_status=$?
6114 grep -v '^ *+' conftest.er1 >conftest.err
6115 rm -f conftest.er1
6116 cat conftest.err >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } >/dev/null; then
6119 if test -s conftest.err; then
6120 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 6121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
6122 else
6123 ac_cpp_err=
6124 fi
6125else
6126 ac_cpp_err=yes
6127fi
6128if test -z "$ac_cpp_err"; then
6129 ac_header_preproc=yes
6130else
6131 echo "$as_me: failed program was:" >&5
6132sed 's/^/| /' conftest.$ac_ext >&5
6133
6134 ac_header_preproc=no
6135fi
6136rm -f conftest.err conftest.$ac_ext
6137echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6138echo "${ECHO_T}$ac_header_preproc" >&6
6139
6140# So? What about this header?
5c7fc7c4
PC
6141case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6142 yes:no: )
ad6254c5
AK
6143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6144echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
6145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6146echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6147 ac_header_preproc=yes
ad6254c5 6148 ;;
5c7fc7c4 6149 no:yes:* )
ad6254c5
AK
6150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6151echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
6152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6153echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6154 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6155echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6156 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6157echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
6158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6159echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
6160 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6161echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
6162 (
6163 cat <<\_ASBOX
5c7fc7c4
PC
6164## ------------------------------------------ ##
6165## Report this to the AC_PACKAGE_NAME lists. ##
6166## ------------------------------------------ ##
ad6254c5
AK
6167_ASBOX
6168 ) |
6169 sed "s/^/$as_me: WARNING: /" >&2
6170 ;;
6171esac
6172echo "$as_me:$LINENO: checking for $ac_header" >&5
6173echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6174if eval "test \"\${$as_ac_Header+set}\" = set"; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6176else
5c7fc7c4 6177 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
6178fi
6179echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6180echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6181
6182fi
6183if test `eval echo '${'$as_ac_Header'}'` = yes; then
6184 cat >>confdefs.h <<_ACEOF
6185#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6186_ACEOF
6187
6188fi
6189
6190done
6191
6192echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
6193echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
6194if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6196else
6197 if test "$cross_compiling" = yes; then
6198 ac_cv_func_malloc_0_nonnull=no
6199else
6200 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6201/* confdefs.h. */
6202_ACEOF
6203cat confdefs.h >>conftest.$ac_ext
6204cat >>conftest.$ac_ext <<_ACEOF
6205/* end confdefs.h. */
6206#if STDC_HEADERS || HAVE_STDLIB_H
6207# include <stdlib.h>
6208#else
6209char *malloc ();
6210#endif
6211
6212int
6213main ()
6214{
6215exit (malloc (0) ? 0 : 1);
6216 ;
6217 return 0;
6218}
6219_ACEOF
6220rm -f conftest$ac_exeext
6221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6222 (eval $ac_link) 2>&5
6223 ac_status=$?
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227 (eval $ac_try) 2>&5
6228 ac_status=$?
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; }; then
6231 ac_cv_func_malloc_0_nonnull=yes
6232else
6233 echo "$as_me: program exited with status $ac_status" >&5
6234echo "$as_me: failed program was:" >&5
6235sed 's/^/| /' conftest.$ac_ext >&5
6236
6237( exit $ac_status )
6238ac_cv_func_malloc_0_nonnull=no
6239fi
5c7fc7c4 6240rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6241fi
6242fi
6243echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
6244echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
6245if test $ac_cv_func_malloc_0_nonnull = yes; then
6246
6247cat >>confdefs.h <<\_ACEOF
6248#define HAVE_MALLOC 1
6249_ACEOF
6250
6251else
6252 cat >>confdefs.h <<\_ACEOF
6253#define HAVE_MALLOC 0
6254_ACEOF
6255
5c7fc7c4
PC
6256 case $LIBOBJS in
6257 "malloc.$ac_objext" | \
6258 *" malloc.$ac_objext" | \
6259 "malloc.$ac_objext "* | \
6260 *" malloc.$ac_objext "* ) ;;
6261 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
6262esac
6263
ad6254c5
AK
6264
6265cat >>confdefs.h <<\_ACEOF
6266#define malloc rpl_malloc
6267_ACEOF
6268
6269fi
6270
6271
6272
6273echo "$as_me:$LINENO: checking for working memcmp" >&5
6274echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
6275if test "${ac_cv_func_memcmp_working+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6277else
6278 if test "$cross_compiling" = yes; then
6279 ac_cv_func_memcmp_working=no
6280else
6281 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6282/* confdefs.h. */
6283_ACEOF
6284cat confdefs.h >>conftest.$ac_ext
6285cat >>conftest.$ac_ext <<_ACEOF
6286/* end confdefs.h. */
5c7fc7c4 6287$ac_includes_default
ad6254c5
AK
6288int
6289main ()
6290{
6291
6292 /* Some versions of memcmp are not 8-bit clean. */
6293 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
6294 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6295 exit (1);
6296
6297 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6298 or more and with at least one buffer not starting on a 4-byte boundary.
6299 William Lewis provided this test program. */
6300 {
6301 char foo[21];
6302 char bar[21];
6303 int i;
6304 for (i = 0; i < 4; i++)
6305 {
5c7fc7c4
PC
6306 char *a = foo + i;
6307 char *b = bar + i;
6308 strcpy (a, "--------01111111");
6309 strcpy (b, "--------10000000");
6310 if (memcmp (a, b, 16) >= 0)
6311 exit (1);
ad6254c5
AK
6312 }
6313 exit (0);
6314 }
6315
6316 ;
6317 return 0;
6318}
6319_ACEOF
6320rm -f conftest$ac_exeext
6321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6322 (eval $ac_link) 2>&5
6323 ac_status=$?
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327 (eval $ac_try) 2>&5
6328 ac_status=$?
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; }; then
6331 ac_cv_func_memcmp_working=yes
6332else
6333 echo "$as_me: program exited with status $ac_status" >&5
6334echo "$as_me: failed program was:" >&5
6335sed 's/^/| /' conftest.$ac_ext >&5
6336
6337( exit $ac_status )
6338ac_cv_func_memcmp_working=no
6339fi
5c7fc7c4 6340rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6341fi
6342fi
6343echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
6344echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
5c7fc7c4
PC
6345test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
6346 "memcmp.$ac_objext" | \
6347 *" memcmp.$ac_objext" | \
6348 "memcmp.$ac_objext "* | \
6349 *" memcmp.$ac_objext "* ) ;;
6350 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
6351esac
6352
ad6254c5
AK
6353
6354
6355
6356for ac_header in stdlib.h unistd.h
6357do
6358as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6359if eval "test \"\${$as_ac_Header+set}\" = set"; then
6360 echo "$as_me:$LINENO: checking for $ac_header" >&5
6361echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6362if eval "test \"\${$as_ac_Header+set}\" = set"; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6364fi
6365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6366echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6367else
6368 # Is the header compilable?
6369echo "$as_me:$LINENO: checking $ac_header usability" >&5
6370echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6371cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6372/* confdefs.h. */
6373_ACEOF
6374cat confdefs.h >>conftest.$ac_ext
6375cat >>conftest.$ac_ext <<_ACEOF
6376/* end confdefs.h. */
6377$ac_includes_default
6378#include <$ac_header>
6379_ACEOF
6380rm -f conftest.$ac_objext
6381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 6382 (eval $ac_compile) 2>conftest.er1
ad6254c5 6383 ac_status=$?
5c7fc7c4
PC
6384 grep -v '^ *+' conftest.er1 >conftest.err
6385 rm -f conftest.er1
6386 cat conftest.err >&5
ad6254c5
AK
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); } &&
5c7fc7c4
PC
6389 { ac_try='test -z "$ac_c_werror_flag"
6390 || test ! -s conftest.err'
6391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392 (eval $ac_try) 2>&5
6393 ac_status=$?
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); }; } &&
6396 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 (eval $ac_try) 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; }; then
6402 ac_header_compiler=yes
6403else
6404 echo "$as_me: failed program was:" >&5
6405sed 's/^/| /' conftest.$ac_ext >&5
6406
6407ac_header_compiler=no
6408fi
5c7fc7c4 6409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6410echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6411echo "${ECHO_T}$ac_header_compiler" >&6
6412
6413# Is the header present?
6414echo "$as_me:$LINENO: checking $ac_header presence" >&5
6415echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6416cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6417/* confdefs.h. */
6418_ACEOF
6419cat confdefs.h >>conftest.$ac_ext
6420cat >>conftest.$ac_ext <<_ACEOF
6421/* end confdefs.h. */
6422#include <$ac_header>
6423_ACEOF
6424if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6426 ac_status=$?
6427 grep -v '^ *+' conftest.er1 >conftest.err
6428 rm -f conftest.er1
6429 cat conftest.err >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } >/dev/null; then
6432 if test -s conftest.err; then
6433 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 6434 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
6435 else
6436 ac_cpp_err=
6437 fi
6438else
6439 ac_cpp_err=yes
6440fi
6441if test -z "$ac_cpp_err"; then
6442 ac_header_preproc=yes
6443else
6444 echo "$as_me: failed program was:" >&5
6445sed 's/^/| /' conftest.$ac_ext >&5
6446
6447 ac_header_preproc=no
6448fi
6449rm -f conftest.err conftest.$ac_ext
6450echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6451echo "${ECHO_T}$ac_header_preproc" >&6
6452
6453# So? What about this header?
5c7fc7c4
PC
6454case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6455 yes:no: )
ad6254c5
AK
6456 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6457echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
6458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6459echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6460 ac_header_preproc=yes
ad6254c5 6461 ;;
5c7fc7c4 6462 no:yes:* )
ad6254c5
AK
6463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6464echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6466echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6467 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6468echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6469 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6470echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
6471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6472echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
6473 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6474echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
6475 (
6476 cat <<\_ASBOX
5c7fc7c4
PC
6477## ------------------------------------------ ##
6478## Report this to the AC_PACKAGE_NAME lists. ##
6479## ------------------------------------------ ##
ad6254c5
AK
6480_ASBOX
6481 ) |
6482 sed "s/^/$as_me: WARNING: /" >&2
6483 ;;
6484esac
6485echo "$as_me:$LINENO: checking for $ac_header" >&5
6486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6487if eval "test \"\${$as_ac_Header+set}\" = set"; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6489else
5c7fc7c4 6490 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
6491fi
6492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6493echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6494
6495fi
6496if test `eval echo '${'$as_ac_Header'}'` = yes; then
6497 cat >>confdefs.h <<_ACEOF
6498#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6499_ACEOF
6500
6501fi
6502
6503done
6504
6505
6506for ac_func in getpagesize
6507do
6508as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6509echo "$as_me:$LINENO: checking for $ac_func" >&5
6510echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6511if eval "test \"\${$as_ac_var+set}\" = set"; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6513else
6514 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6515/* confdefs.h. */
6516_ACEOF
6517cat confdefs.h >>conftest.$ac_ext
6518cat >>conftest.$ac_ext <<_ACEOF
6519/* end confdefs.h. */
5c7fc7c4
PC
6520/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6522#define $ac_func innocuous_$ac_func
6523
ad6254c5
AK
6524/* System header to define __stub macros and hopefully few prototypes,
6525 which can conflict with char $ac_func (); below.
6526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6527 <limits.h> exists even on freestanding compilers. */
5c7fc7c4 6528
ad6254c5
AK
6529#ifdef __STDC__
6530# include <limits.h>
6531#else
6532# include <assert.h>
6533#endif
5c7fc7c4
PC
6534
6535#undef $ac_func
6536
ad6254c5
AK
6537/* Override any gcc2 internal prototype to avoid an error. */
6538#ifdef __cplusplus
6539extern "C"
6540{
6541#endif
6542/* We use char because int might match the return type of a gcc2
6543 builtin and then its argument prototype would still apply. */
6544char $ac_func ();
6545/* The GNU C library defines this for functions which it implements
6546 to always fail with ENOSYS. Some functions are actually named
6547 something starting with __ and the normal name is an alias. */
6548#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6549choke me
6550#else
6551char (*f) () = $ac_func;
6552#endif
6553#ifdef __cplusplus
6554}
6555#endif
6556
6557int
6558main ()
6559{
6560return f != $ac_func;
6561 ;
6562 return 0;
6563}
6564_ACEOF
6565rm -f conftest.$ac_objext conftest$ac_exeext
6566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 6567 (eval $ac_link) 2>conftest.er1
ad6254c5 6568 ac_status=$?
5c7fc7c4
PC
6569 grep -v '^ *+' conftest.er1 >conftest.err
6570 rm -f conftest.er1
6571 cat conftest.err >&5
ad6254c5
AK
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); } &&
5c7fc7c4
PC
6574 { ac_try='test -z "$ac_c_werror_flag"
6575 || test ! -s conftest.err'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577 (eval $ac_try) 2>&5
6578 ac_status=$?
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; } &&
6581 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583 (eval $ac_try) 2>&5
6584 ac_status=$?
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; }; then
6587 eval "$as_ac_var=yes"
6588else
6589 echo "$as_me: failed program was:" >&5
6590sed 's/^/| /' conftest.$ac_ext >&5
6591
6592eval "$as_ac_var=no"
6593fi
5c7fc7c4
PC
6594rm -f conftest.err conftest.$ac_objext \
6595 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
6596fi
6597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6598echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6599if test `eval echo '${'$as_ac_var'}'` = yes; then
6600 cat >>confdefs.h <<_ACEOF
6601#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6602_ACEOF
6603
6604fi
6605done
6606
6607echo "$as_me:$LINENO: checking for working mmap" >&5
6608echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6609if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6611else
6612 if test "$cross_compiling" = yes; then
6613 ac_cv_func_mmap_fixed_mapped=no
6614else
6615 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6616/* confdefs.h. */
6617_ACEOF
6618cat confdefs.h >>conftest.$ac_ext
6619cat >>conftest.$ac_ext <<_ACEOF
6620/* end confdefs.h. */
6621$ac_includes_default
6622/* malloc might have been renamed as rpl_malloc. */
6623#undef malloc
6624
6625/* Thanks to Mike Haertel and Jim Avera for this test.
6626 Here is a matrix of mmap possibilities:
6627 mmap private not fixed
6628 mmap private fixed at somewhere currently unmapped
6629 mmap private fixed at somewhere already mapped
6630 mmap shared not fixed
6631 mmap shared fixed at somewhere currently unmapped
6632 mmap shared fixed at somewhere already mapped
6633 For private mappings, we should verify that changes cannot be read()
6634 back from the file, nor mmap's back from the file at a different
6635 address. (There have been systems where private was not correctly
6636 implemented like the infamous i386 svr4.0, and systems where the
6637 VM page cache was not coherent with the file system buffer cache
6638 like early versions of FreeBSD and possibly contemporary NetBSD.)
6639 For shared mappings, we should conversely verify that changes get
6640 propagated back to all the places they're supposed to be.
6641
6642 Grep wants private fixed already mapped.
6643 The main things grep needs to know about mmap are:
6644 * does it exist and is it safe to write into the mmap'd area
6645 * how to use it (BSD variants) */
6646
6647#include <fcntl.h>
6648#include <sys/mman.h>
6649
6650#if !STDC_HEADERS && !HAVE_STDLIB_H
6651char *malloc ();
6652#endif
6653
6654/* This mess was copied from the GNU getpagesize.h. */
6655#if !HAVE_GETPAGESIZE
6656/* Assume that all systems that can run configure have sys/param.h. */
6657# if !HAVE_SYS_PARAM_H
6658# define HAVE_SYS_PARAM_H 1
6659# endif
6660
6661# ifdef _SC_PAGESIZE
6662# define getpagesize() sysconf(_SC_PAGESIZE)
6663# else /* no _SC_PAGESIZE */
6664# if HAVE_SYS_PARAM_H
6665# include <sys/param.h>
6666# ifdef EXEC_PAGESIZE
6667# define getpagesize() EXEC_PAGESIZE
6668# else /* no EXEC_PAGESIZE */
6669# ifdef NBPG
6670# define getpagesize() NBPG * CLSIZE
6671# ifndef CLSIZE
6672# define CLSIZE 1
6673# endif /* no CLSIZE */
6674# else /* no NBPG */
6675# ifdef NBPC
6676# define getpagesize() NBPC
6677# else /* no NBPC */
6678# ifdef PAGESIZE
6679# define getpagesize() PAGESIZE
6680# endif /* PAGESIZE */
6681# endif /* no NBPC */
6682# endif /* no NBPG */
6683# endif /* no EXEC_PAGESIZE */
6684# else /* no HAVE_SYS_PARAM_H */
6685# define getpagesize() 8192 /* punt totally */
6686# endif /* no HAVE_SYS_PARAM_H */
6687# endif /* no _SC_PAGESIZE */
6688
6689#endif /* no HAVE_GETPAGESIZE */
6690
6691int
6692main ()
6693{
6694 char *data, *data2, *data3;
6695 int i, pagesize;
6696 int fd;
6697
6698 pagesize = getpagesize ();
6699
6700 /* First, make a file with some known garbage in it. */
6701 data = (char *) malloc (pagesize);
6702 if (!data)
6703 exit (1);
6704 for (i = 0; i < pagesize; ++i)
6705 *(data + i) = rand ();
6706 umask (0);
6707 fd = creat ("conftest.mmap", 0600);
6708 if (fd < 0)
6709 exit (1);
6710 if (write (fd, data, pagesize) != pagesize)
6711 exit (1);
6712 close (fd);
6713
6714 /* Next, try to mmap the file at a fixed address which already has
6715 something else allocated at it. If we can, also make sure that
6716 we see the same garbage. */
6717 fd = open ("conftest.mmap", O_RDWR);
6718 if (fd < 0)
6719 exit (1);
6720 data2 = (char *) malloc (2 * pagesize);
6721 if (!data2)
6722 exit (1);
5c7fc7c4 6723 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 6724 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5c7fc7c4 6725 MAP_PRIVATE | MAP_FIXED, fd, 0L))
ad6254c5
AK
6726 exit (1);
6727 for (i = 0; i < pagesize; ++i)
6728 if (*(data + i) != *(data2 + i))
6729 exit (1);
6730
6731 /* Finally, make sure that changes to the mapped area do not
6732 percolate back to the file as seen by read(). (This is a bug on
6733 some variants of i386 svr4.0.) */
6734 for (i = 0; i < pagesize; ++i)
6735 *(data2 + i) = *(data2 + i) + 1;
6736 data3 = (char *) malloc (pagesize);
6737 if (!data3)
6738 exit (1);
6739 if (read (fd, data3, pagesize) != pagesize)
6740 exit (1);
6741 for (i = 0; i < pagesize; ++i)
6742 if (*(data + i) != *(data3 + i))
6743 exit (1);
6744 close (fd);
6745 exit (0);
6746}
6747_ACEOF
6748rm -f conftest$ac_exeext
6749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6750 (eval $ac_link) 2>&5
6751 ac_status=$?
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755 (eval $ac_try) 2>&5
6756 ac_status=$?
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); }; }; then
6759 ac_cv_func_mmap_fixed_mapped=yes
6760else
6761 echo "$as_me: program exited with status $ac_status" >&5
6762echo "$as_me: failed program was:" >&5
6763sed 's/^/| /' conftest.$ac_ext >&5
6764
6765( exit $ac_status )
6766ac_cv_func_mmap_fixed_mapped=no
6767fi
5c7fc7c4 6768rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6769fi
6770fi
6771echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6772echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6773if test $ac_cv_func_mmap_fixed_mapped = yes; then
6774
6775cat >>confdefs.h <<\_ACEOF
6776#define HAVE_MMAP 1
6777_ACEOF
6778
6779fi
6780rm -f conftest.mmap
6781
6782echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
6783echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
6784if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6786else
6787 if test "$cross_compiling" = yes; then
6788 ac_cv_func_stat_empty_string_bug=yes
6789else
6790 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6791/* confdefs.h. */
6792_ACEOF
6793cat confdefs.h >>conftest.$ac_ext
6794cat >>conftest.$ac_ext <<_ACEOF
6795/* end confdefs.h. */
6796$ac_includes_default
6797int
6798main ()
6799{
6800struct stat sbuf;
6801 exit (stat ("", &sbuf) ? 1 : 0);
6802 ;
6803 return 0;
6804}
6805_ACEOF
6806rm -f conftest$ac_exeext
6807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6808 (eval $ac_link) 2>&5
6809 ac_status=$?
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813 (eval $ac_try) 2>&5
6814 ac_status=$?
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); }; }; then
6817 ac_cv_func_stat_empty_string_bug=yes
6818else
6819 echo "$as_me: program exited with status $ac_status" >&5
6820echo "$as_me: failed program was:" >&5
6821sed 's/^/| /' conftest.$ac_ext >&5
6822
6823( exit $ac_status )
6824ac_cv_func_stat_empty_string_bug=no
6825fi
5c7fc7c4 6826rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6827fi
6828fi
6829echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
6830echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
6831if test $ac_cv_func_stat_empty_string_bug = yes; then
5c7fc7c4
PC
6832 case $LIBOBJS in
6833 "stat.$ac_objext" | \
6834 *" stat.$ac_objext" | \
6835 "stat.$ac_objext "* | \
6836 *" stat.$ac_objext "* ) ;;
6837 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
6838esac
6839
ad6254c5
AK
6840
6841cat >>confdefs.h <<_ACEOF
6842#define HAVE_STAT_EMPTY_STRING_BUG 1
6843_ACEOF
6844
6845fi
6846
6847echo "$as_me:$LINENO: checking for working strtod" >&5
6848echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
6849if test "${ac_cv_func_strtod+set}" = set; then
6850 echo $ECHO_N "(cached) $ECHO_C" >&6
6851else
6852 if test "$cross_compiling" = yes; then
6853 ac_cv_func_strtod=no
6854else
6855 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6856/* confdefs.h. */
6857_ACEOF
6858cat confdefs.h >>conftest.$ac_ext
6859cat >>conftest.$ac_ext <<_ACEOF
6860/* end confdefs.h. */
6861
6862double strtod ();
6863int
6864main()
6865{
6866 {
6867 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6868 char *string = " +69";
6869 char *term;
6870 double value;
6871 value = strtod (string, &term);
6872 if (value != 69 || term != (string + 4))
6873 exit (1);
6874 }
6875
6876 {
6877 /* Under Solaris 2.4, strtod returns the wrong value for the
6878 terminating character under some conditions. */
6879 char *string = "NaN";
6880 char *term;
6881 strtod (string, &term);
6882 if (term != string && *(term - 1) == 0)
6883 exit (1);
6884 }
6885 exit (0);
6886}
6887
6888_ACEOF
6889rm -f conftest$ac_exeext
6890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6891 (eval $ac_link) 2>&5
6892 ac_status=$?
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896 (eval $ac_try) 2>&5
6897 ac_status=$?
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); }; }; then
6900 ac_cv_func_strtod=yes
6901else
6902 echo "$as_me: program exited with status $ac_status" >&5
6903echo "$as_me: failed program was:" >&5
6904sed 's/^/| /' conftest.$ac_ext >&5
6905
6906( exit $ac_status )
6907ac_cv_func_strtod=no
6908fi
5c7fc7c4 6909rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6910fi
6911fi
6912echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
6913echo "${ECHO_T}$ac_cv_func_strtod" >&6
6914if test $ac_cv_func_strtod = no; then
5c7fc7c4
PC
6915 case $LIBOBJS in
6916 "strtod.$ac_objext" | \
6917 *" strtod.$ac_objext" | \
6918 "strtod.$ac_objext "* | \
6919 *" strtod.$ac_objext "* ) ;;
6920 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
6921esac
6922
ad6254c5
AK
6923echo "$as_me:$LINENO: checking for pow" >&5
6924echo $ECHO_N "checking for pow... $ECHO_C" >&6
6925if test "${ac_cv_func_pow+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6927else
6928 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6929/* confdefs.h. */
6930_ACEOF
6931cat confdefs.h >>conftest.$ac_ext
6932cat >>conftest.$ac_ext <<_ACEOF
6933/* end confdefs.h. */
5c7fc7c4
PC
6934/* Define pow to an innocuous variant, in case <limits.h> declares pow.
6935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6936#define pow innocuous_pow
6937
ad6254c5
AK
6938/* System header to define __stub macros and hopefully few prototypes,
6939 which can conflict with char pow (); below.
6940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6941 <limits.h> exists even on freestanding compilers. */
5c7fc7c4 6942
ad6254c5
AK
6943#ifdef __STDC__
6944# include <limits.h>
6945#else
6946# include <assert.h>
6947#endif
5c7fc7c4
PC
6948
6949#undef pow
6950
ad6254c5
AK
6951/* Override any gcc2 internal prototype to avoid an error. */
6952#ifdef __cplusplus
6953extern "C"
6954{
6955#endif
6956/* We use char because int might match the return type of a gcc2
6957 builtin and then its argument prototype would still apply. */
6958char pow ();
6959/* The GNU C library defines this for functions which it implements
6960 to always fail with ENOSYS. Some functions are actually named
6961 something starting with __ and the normal name is an alias. */
6962#if defined (__stub_pow) || defined (__stub___pow)
6963choke me
6964#else
6965char (*f) () = pow;
6966#endif
6967#ifdef __cplusplus
6968}
6969#endif
6970
6971int
6972main ()
6973{
6974return f != pow;
6975 ;
6976 return 0;
6977}
6978_ACEOF
6979rm -f conftest.$ac_objext conftest$ac_exeext
6980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 6981 (eval $ac_link) 2>conftest.er1
ad6254c5 6982 ac_status=$?
5c7fc7c4
PC
6983 grep -v '^ *+' conftest.er1 >conftest.err
6984 rm -f conftest.er1
6985 cat conftest.err >&5
ad6254c5
AK
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } &&
5c7fc7c4
PC
6988 { ac_try='test -z "$ac_c_werror_flag"
6989 || test ! -s conftest.err'
6990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 (eval $ac_try) 2>&5
6992 ac_status=$?
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); }; } &&
6995 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
6996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997 (eval $ac_try) 2>&5
6998 ac_status=$?
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); }; }; then
7001 ac_cv_func_pow=yes
7002else
7003 echo "$as_me: failed program was:" >&5
7004sed 's/^/| /' conftest.$ac_ext >&5
7005
7006ac_cv_func_pow=no
7007fi
5c7fc7c4
PC
7008rm -f conftest.err conftest.$ac_objext \
7009 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7010fi
7011echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
7012echo "${ECHO_T}$ac_cv_func_pow" >&6
7013
7014if test $ac_cv_func_pow = no; then
7015 echo "$as_me:$LINENO: checking for pow in -lm" >&5
7016echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
7017if test "${ac_cv_lib_m_pow+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7019else
7020 ac_check_lib_save_LIBS=$LIBS
7021LIBS="-lm $LIBS"
7022cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7023/* confdefs.h. */
7024_ACEOF
7025cat confdefs.h >>conftest.$ac_ext
7026cat >>conftest.$ac_ext <<_ACEOF
7027/* end confdefs.h. */
7028
7029/* Override any gcc2 internal prototype to avoid an error. */
7030#ifdef __cplusplus
7031extern "C"
7032#endif
7033/* We use char because int might match the return type of a gcc2
7034 builtin and then its argument prototype would still apply. */
7035char pow ();
7036int
7037main ()
7038{
7039pow ();
7040 ;
7041 return 0;
7042}
7043_ACEOF
7044rm -f conftest.$ac_objext conftest$ac_exeext
7045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 7046 (eval $ac_link) 2>conftest.er1
ad6254c5 7047 ac_status=$?
5c7fc7c4
PC
7048 grep -v '^ *+' conftest.er1 >conftest.err
7049 rm -f conftest.er1
7050 cat conftest.err >&5
ad6254c5
AK
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); } &&
5c7fc7c4
PC
7053 { ac_try='test -z "$ac_c_werror_flag"
7054 || test ! -s conftest.err'
7055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056 (eval $ac_try) 2>&5
7057 ac_status=$?
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; } &&
7060 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062 (eval $ac_try) 2>&5
7063 ac_status=$?
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); }; }; then
7066 ac_cv_lib_m_pow=yes
7067else
7068 echo "$as_me: failed program was:" >&5
7069sed 's/^/| /' conftest.$ac_ext >&5
7070
7071ac_cv_lib_m_pow=no
7072fi
5c7fc7c4
PC
7073rm -f conftest.err conftest.$ac_objext \
7074 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7075LIBS=$ac_check_lib_save_LIBS
7076fi
7077echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
7078echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
7079if test $ac_cv_lib_m_pow = yes; then
7080 POW_LIB=-lm
7081else
7082 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
7083echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
7084fi
7085
7086fi
7087
7088fi
7089
7090
7091################################################################################
7092
7093
7094################################################################################
7095# Check whether --enable-jobs or --disable-jobs was given.
7096if test "${enable_jobs+set}" = set; then
7097 enableval="$enable_jobs"
7098 JOBS=-j$enableval
7099else
7100 JOBS=-j2
7101fi;
7102
7103################################################################################
7104echo "$as_me:$LINENO: checking file owner" >&5
7105echo $ECHO_N "checking file owner... $ECHO_C" >&6
7106OWNER="root"
7107
7108
7109# Check whether --with-user or --without-user was given.
7110if test "${with_user+set}" = set; then
7111 withval="$with_user"
7112 OWNER="$withval"
7113fi;
7114echo "$as_me:$LINENO: result: $OWNER" >&5
7115echo "${ECHO_T}$OWNER" >&6
7116
7117if test x$OWNER != x; then
7118 OWNER="-o $OWNER"
7119fi
7120
7121################################################################################
7122echo "$as_me:$LINENO: checking group owner" >&5
7123echo $ECHO_N "checking group owner... $ECHO_C" >&6
7124GROUP="root"
7125
7126# Check whether --with-group or --without-group was given.
7127if test "${with_group+set}" = set; then
7128 withval="$with_group"
7129 GROUP="$withval"
7130fi;
7131echo "$as_me:$LINENO: result: $GROUP" >&5
7132echo "${ECHO_T}$GROUP" >&6
7133
7134if test x$GROUP != x; then
7135 GROUP="-g $GROUP"
7136fi
7137
7138################################################################################
7139echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
7140echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6
7141# Check whether --enable-lvm1_fallback or --disable-lvm1_fallback was given.
7142if test "${enable_lvm1_fallback+set}" = set; then
7143 enableval="$enable_lvm1_fallback"
7144 LVM1_FALLBACK=$enableval
7145else
7146 LVM1_FALLBACK=no
7147fi;
7148echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
7149echo "${ECHO_T}$LVM1_FALLBACK" >&6
7150
7151if test x$LVM1_FALLBACK = xyes; then
7152 CFLAGS="$CFLAGS -DLVM1_FALLBACK"
7153fi
7154
7155################################################################################
7156echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
7157echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6
7158
7159# Check whether --with-lvm1 or --without-lvm1 was given.
7160if test "${with_lvm1+set}" = set; then
7161 withval="$with_lvm1"
7162 LVM1="$withval"
7163else
7164 LVM1="internal"
7165fi;
7166echo "$as_me:$LINENO: result: $LVM1" >&5
7167echo "${ECHO_T}$LVM1" >&6
7168
7169if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
7170 then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
7171" >&5
7172echo "$as_me: error: --with-lvm1 parameter invalid
7173" >&2;}
7174 { (exit 1); exit 1; }; }
7175fi;
7176
7177if test x$LVM1 = xinternal; then
7178 CFLAGS="$CFLAGS -DLVM1_INTERNAL"
7179fi
7180
7181################################################################################
7182echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
7183echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6
7184
7185# Check whether --with-pool or --without-pool was given.
7186if test "${with_pool+set}" = set; then
7187 withval="$with_pool"
7188 POOL="$withval"
7189else
7190 POOL="internal"
7191fi;
7192echo "$as_me:$LINENO: result: $POOL" >&5
7193echo "${ECHO_T}$POOL" >&6
7194
7195if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
7196 then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid
7197" >&5
7198echo "$as_me: error: --with-pool parameter invalid
7199" >&2;}
7200 { (exit 1); exit 1; }; }
7201fi;
7202
7203if test x$POOL = xinternal; then
7204 CFLAGS="$CFLAGS -DPOOL_INTERNAL"
7205fi
7206
7207################################################################################
7208echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
7209echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6
7210
7211# Check whether --with-cluster or --without-cluster was given.
7212if test "${with_cluster+set}" = set; then
7213 withval="$with_cluster"
7214 CLUSTER="$withval"
7215fi;
7216echo "$as_me:$LINENO: result: $CLUSTER" >&5
7217echo "${ECHO_T}$CLUSTER" >&6
7218
7219if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
7220 then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid
7221" >&5
7222echo "$as_me: error: --with-cluster parameter invalid
7223" >&2;}
7224 { (exit 1); exit 1; }; }
7225fi;
7226
7227if test x$CLUSTER = xinternal; then
7228 CFLAGS="$CFLAGS -DCLUSTER_LOCKING_INTERNAL"
7229fi
7230
7231################################################################################
7232echo "$as_me:$LINENO: checking whether to include snapshots" >&5
7233echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6
7234
7235# Check whether --with-snapshots or --without-snapshots was given.
7236if test "${with_snapshots+set}" = set; then
7237 withval="$with_snapshots"
7238 SNAPSHOTS="$withval"
7239else
7240 SNAPSHOTS="internal"
7241fi;
7242echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
7243echo "${ECHO_T}$SNAPSHOTS" >&6
7244
7245if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
7246 then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
7247" >&5
7248echo "$as_me: error: --with-snapshots parameter invalid
7249" >&2;}
7250 { (exit 1); exit 1; }; }
7251fi;
7252
7253if test x$SNAPSHOTS = xinternal; then
7254 CFLAGS="$CFLAGS -DSNAPSHOT_INTERNAL"
7255fi
7256
7257################################################################################
7258echo "$as_me:$LINENO: checking whether to include mirrors" >&5
7259echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6
7260
7261# Check whether --with-mirrors or --without-mirrors was given.
7262if test "${with_mirrors+set}" = set; then
7263 withval="$with_mirrors"
7264 MIRRORS="$withval"
7265else
7266 MIRRORS="internal"
7267fi;
7268echo "$as_me:$LINENO: result: $MIRRORS" >&5
7269echo "${ECHO_T}$MIRRORS" >&6
7270
7271if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
7272 then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
7273" >&5
7274echo "$as_me: error: --with-mirrors parameter invalid
7275" >&2;}
7276 { (exit 1); exit 1; }; }
7277fi;
7278
7279if test x$MIRRORS = xinternal; then
7280 CFLAGS="$CFLAGS -DMIRRORED_INTERNAL"
7281fi
7282
7283################################################################################
7284echo "$as_me:$LINENO: checking whether to use static linking" >&5
7285echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6
7286# Check whether --enable-static_link or --disable-static_link was given.
7287if test "${enable_static_link+set}" = set; then
7288 enableval="$enable_static_link"
7289 STATIC_LINK=$enableval
7290else
7291 STATIC_LINK=no
7292fi;
7293echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
7294echo "${ECHO_T}$STATIC_LINK" >&6
7295
7296################################################################################
7297echo "$as_me:$LINENO: checking whether to enable readline" >&5
7298echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6
7299# Check whether --enable-readline or --disable-readline was given.
7300if test "${enable_readline+set}" = set; then
7301 enableval="$enable_readline"
7302 READLINE=$enableval
7303else
7304 READLINE=no
7305fi;
7306echo "$as_me:$LINENO: result: $READLINE" >&5
7307echo "${ECHO_T}$READLINE" >&6
7308
7309if test x$READLINE = xyes; then
7310 CFLAGS="$CFLAGS -DREADLINE_SUPPORT"
7311fi
7312
7313################################################################################
7314echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
7315echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6
7316# Check whether --enable-selinux or --disable-selinux was given.
7317if test "${enable_selinux+set}" = set; then
7318 enableval="$enable_selinux"
7319 SELINUX=$enableval
7320fi;
7321echo "$as_me:$LINENO: result: $SELINUX" >&5
7322echo "${ECHO_T}$SELINUX" >&6
7323
7324################################################################################
7325echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
7326echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6
7327
7328# Check whether --with-clvmd or --without-clvmd was given.
7329if test "${with_clvmd+set}" = set; then
7330 withval="$with_clvmd"
a266258f 7331 CLVMD="$withval"
ad6254c5 7332else
a266258f 7333 CLVMD="none"
ad6254c5 7334fi;
a266258f 7335if test x$CLVMD = xyes; then
5c7fc7c4 7336 CLVMD=all
b1098701 7337fi
ad6254c5
AK
7338echo "$as_me:$LINENO: result: $CLVMD" >&5
7339echo "${ECHO_T}$CLVMD" >&6
7340
a266258f 7341if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
ad6254c5
AK
7342 CLUSTER=internal
7343fi
7344
7345################################################################################
7346echo "$as_me:$LINENO: checking whether to enable debugging" >&5
7347echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6
7348# Check whether --enable-debug or --disable-debug was given.
7349if test "${enable_debug+set}" = set; then
7350 enableval="$enable_debug"
7351 DEBUG=$enableval
7352else
7353 DEBUG=no
7354fi;
7355echo "$as_me:$LINENO: result: $DEBUG" >&5
7356echo "${ECHO_T}$DEBUG" >&6
7357
7358if test x$DEBUG = xyes; then
7359 COPTIMISE_FLAG=
7360fi
7361
7362################################################################################
7363echo "$as_me:$LINENO: checking for C optimisation flag" >&5
7364echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6
7365
7366# Check whether --with-optimisation or --without-optimisation was given.
7367if test "${with_optimisation+set}" = set; then
7368 withval="$with_optimisation"
7369 COPTIMISE_FLAG="$withval"
7370fi;
7371echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
7372echo "${ECHO_T}$COPTIMISE_FLAG" >&6
7373
7374################################################################################
7375echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
7376echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6
7377# Check whether --enable-devmapper or --disable-devmapper was given.
7378if test "${enable_devmapper+set}" = set; then
7379 enableval="$enable_devmapper"
7380 DEVMAPPER=$enableval
7381fi;
7382echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
7383echo "${ECHO_T}$DEVMAPPER" >&6
7384
7385if test x$DEVMAPPER = xyes; then
7386 CFLAGS="$CFLAGS -DDEVMAPPER_SUPPORT"
7387fi
7388
7389################################################################################
7390echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
7391echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6
7392# Check whether --enable-o_direct or --disable-o_direct was given.
7393if test "${enable_o_direct+set}" = set; then
7394 enableval="$enable_o_direct"
7395 ODIRECT=$enableval
7396fi;
7397echo "$as_me:$LINENO: result: $ODIRECT" >&5
7398echo "${ECHO_T}$ODIRECT" >&6
7399
7400if test x$ODIRECT = xyes; then
7401 CFLAGS="$CFLAGS -DO_DIRECT_SUPPORT"
7402fi
7403
7404################################################################################
7405echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
7406echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6
7407# Check whether --enable-cmdlib or --disable-cmdlib was given.
7408if test "${enable_cmdlib+set}" = set; then
7409 enableval="$enable_cmdlib"
7410 CMDLIB=$enableval
7411else
7412 CMDLIB=no
7413fi;
7414echo "$as_me:$LINENO: result: $CMDLIB" >&5
7415echo "${ECHO_T}$CMDLIB" >&6
7416
59376640 7417if test x$CMDLIB = xyes; then
ad6254c5
AK
7418 CFLAGS="$CFLAGS -DCMDLIB"
7419fi
7420
7421################################################################################
7422echo "$as_me:$LINENO: checking whether to build fsadm" >&5
7423echo $ECHO_N "checking whether to build fsadm... $ECHO_C" >&6
7424# Check whether --enable-fsadm or --disable-fsadm was given.
7425if test "${enable_fsadm+set}" = set; then
7426 enableval="$enable_fsadm"
7427 FSADM=$enableval
7428fi;
7429echo "$as_me:$LINENO: result: $FSADM" >&5
7430echo "${ECHO_T}$FSADM" >&6
7431
06f62ad1
AK
7432################################################################################
7433echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
7434echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6
7435# Check whether --enable-dmeventd or --disable-dmeventd was given.
7436if test "${enable_dmeventd+set}" = set; then
7437 enableval="$enable_dmeventd"
7438 DMEVENTD=$enableval
7439fi;
7440echo "$as_me:$LINENO: result: $DMEVENTD" >&5
7441echo "${ECHO_T}$DMEVENTD" >&6
7442
7443if test x$DMEVENTD = xyes && test x$MIRRORS != xinternal; then
7444{ { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
7445" >&5
7446echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
7447" >&2;}
7448 { (exit 1); exit 1; }; }
7449fi
7450
ad6254c5
AK
7451################################################################################
7452if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
7453 then exec_prefix="";
7454fi;
7455
7456################################################################################
7457if test $ac_cv_c_compiler_gnu = yes; then
7458 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
7459echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
7460if test "${ac_cv_prog_gcc_traditional+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7462else
7463 ac_pattern="Autoconf.*'x'"
7464 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7465/* confdefs.h. */
7466_ACEOF
7467cat confdefs.h >>conftest.$ac_ext
7468cat >>conftest.$ac_ext <<_ACEOF
7469/* end confdefs.h. */
7470#include <sgtty.h>
7471Autoconf TIOCGETP
7472_ACEOF
7473if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7474 $EGREP "$ac_pattern" >/dev/null 2>&1; then
7475 ac_cv_prog_gcc_traditional=yes
7476else
7477 ac_cv_prog_gcc_traditional=no
7478fi
7479rm -f conftest*
7480
7481
7482 if test $ac_cv_prog_gcc_traditional = no; then
7483 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7484/* confdefs.h. */
7485_ACEOF
7486cat confdefs.h >>conftest.$ac_ext
7487cat >>conftest.$ac_ext <<_ACEOF
7488/* end confdefs.h. */
7489#include <termio.h>
7490Autoconf TCGETA
7491_ACEOF
7492if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7493 $EGREP "$ac_pattern" >/dev/null 2>&1; then
7494 ac_cv_prog_gcc_traditional=yes
7495fi
7496rm -f conftest*
7497
7498 fi
7499fi
7500echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
7501echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
7502 if test $ac_cv_prog_gcc_traditional = yes; then
7503 CC="$CC -traditional"
7504 fi
7505fi
7506
7507echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7508echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7509if test "${ac_cv_type_signal+set}" = set; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
7511else
7512 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7513/* confdefs.h. */
7514_ACEOF
7515cat confdefs.h >>conftest.$ac_ext
7516cat >>conftest.$ac_ext <<_ACEOF
7517/* end confdefs.h. */
7518#include <sys/types.h>
7519#include <signal.h>
7520#ifdef signal
7521# undef signal
7522#endif
7523#ifdef __cplusplus
7524extern "C" void (*signal (int, void (*)(int)))(int);
7525#else
7526void (*signal ()) ();
7527#endif
7528
7529int
7530main ()
7531{
7532int i;
7533 ;
7534 return 0;
7535}
7536_ACEOF
7537rm -f conftest.$ac_objext
7538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 7539 (eval $ac_compile) 2>conftest.er1
ad6254c5 7540 ac_status=$?
5c7fc7c4
PC
7541 grep -v '^ *+' conftest.er1 >conftest.err
7542 rm -f conftest.er1
7543 cat conftest.err >&5
ad6254c5
AK
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } &&
5c7fc7c4
PC
7546 { ac_try='test -z "$ac_c_werror_flag"
7547 || test ! -s conftest.err'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549 (eval $ac_try) 2>&5
7550 ac_status=$?
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; } &&
7553 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555 (eval $ac_try) 2>&5
7556 ac_status=$?
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; }; then
7559 ac_cv_type_signal=void
7560else
7561 echo "$as_me: failed program was:" >&5
7562sed 's/^/| /' conftest.$ac_ext >&5
7563
7564ac_cv_type_signal=int
7565fi
5c7fc7c4 7566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
7567fi
7568echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7569echo "${ECHO_T}$ac_cv_type_signal" >&6
7570
7571cat >>confdefs.h <<_ACEOF
7572#define RETSIGTYPE $ac_cv_type_signal
7573_ACEOF
7574
7575
7576
7577for ac_func in vprintf
7578do
7579as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7580echo "$as_me:$LINENO: checking for $ac_func" >&5
7581echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7582if eval "test \"\${$as_ac_var+set}\" = set"; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7584else
7585 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7586/* confdefs.h. */
7587_ACEOF
7588cat confdefs.h >>conftest.$ac_ext
7589cat >>conftest.$ac_ext <<_ACEOF
7590/* end confdefs.h. */
5c7fc7c4
PC
7591/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7593#define $ac_func innocuous_$ac_func
7594
ad6254c5
AK
7595/* System header to define __stub macros and hopefully few prototypes,
7596 which can conflict with char $ac_func (); below.
7597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7598 <limits.h> exists even on freestanding compilers. */
5c7fc7c4 7599
ad6254c5
AK
7600#ifdef __STDC__
7601# include <limits.h>
7602#else
7603# include <assert.h>
7604#endif
5c7fc7c4
PC
7605
7606#undef $ac_func
7607
ad6254c5
AK
7608/* Override any gcc2 internal prototype to avoid an error. */
7609#ifdef __cplusplus
7610extern "C"
7611{
7612#endif
7613/* We use char because int might match the return type of a gcc2
7614 builtin and then its argument prototype would still apply. */
7615char $ac_func ();
7616/* The GNU C library defines this for functions which it implements
7617 to always fail with ENOSYS. Some functions are actually named
7618 something starting with __ and the normal name is an alias. */
7619#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7620choke me
7621#else
7622char (*f) () = $ac_func;
7623#endif
7624#ifdef __cplusplus
7625}
7626#endif
7627
7628int
7629main ()
7630{
7631return f != $ac_func;
7632 ;
7633 return 0;
7634}
7635_ACEOF
7636rm -f conftest.$ac_objext conftest$ac_exeext
7637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 7638 (eval $ac_link) 2>conftest.er1
ad6254c5 7639 ac_status=$?
5c7fc7c4
PC
7640 grep -v '^ *+' conftest.er1 >conftest.err
7641 rm -f conftest.er1
7642 cat conftest.err >&5
ad6254c5
AK
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); } &&
5c7fc7c4
PC
7645 { ac_try='test -z "$ac_c_werror_flag"
7646 || test ! -s conftest.err'
7647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7648 (eval $ac_try) 2>&5
7649 ac_status=$?
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); }; } &&
7652 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7654 (eval $ac_try) 2>&5
7655 ac_status=$?
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); }; }; then
7658 eval "$as_ac_var=yes"
7659else
7660 echo "$as_me: failed program was:" >&5
7661sed 's/^/| /' conftest.$ac_ext >&5
7662
7663eval "$as_ac_var=no"
7664fi
5c7fc7c4
PC
7665rm -f conftest.err conftest.$ac_objext \
7666 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7667fi
7668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7669echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7670if test `eval echo '${'$as_ac_var'}'` = yes; then
7671 cat >>confdefs.h <<_ACEOF
7672#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7673_ACEOF
7674
7675echo "$as_me:$LINENO: checking for _doprnt" >&5
7676echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7677if test "${ac_cv_func__doprnt+set}" = set; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
7679else
7680 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7681/* confdefs.h. */
7682_ACEOF
7683cat confdefs.h >>conftest.$ac_ext
7684cat >>conftest.$ac_ext <<_ACEOF
7685/* end confdefs.h. */
5c7fc7c4
PC
7686/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
7687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7688#define _doprnt innocuous__doprnt
7689
ad6254c5
AK
7690/* System header to define __stub macros and hopefully few prototypes,
7691 which can conflict with char _doprnt (); below.
7692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7693 <limits.h> exists even on freestanding compilers. */
5c7fc7c4 7694
ad6254c5
AK
7695#ifdef __STDC__
7696# include <limits.h>
7697#else
7698# include <assert.h>
7699#endif
5c7fc7c4
PC
7700
7701#undef _doprnt
7702
ad6254c5
AK
7703/* Override any gcc2 internal prototype to avoid an error. */
7704#ifdef __cplusplus
7705extern "C"
7706{
7707#endif
7708/* We use char because int might match the return type of a gcc2
7709 builtin and then its argument prototype would still apply. */
7710char _doprnt ();
7711/* The GNU C library defines this for functions which it implements
7712 to always fail with ENOSYS. Some functions are actually named
7713 something starting with __ and the normal name is an alias. */
7714#if defined (__stub__doprnt) || defined (__stub____doprnt)
7715choke me
7716#else
7717char (*f) () = _doprnt;
7718#endif
7719#ifdef __cplusplus
7720}
7721#endif
7722
7723int
7724main ()
7725{
7726return f != _doprnt;
7727 ;
7728 return 0;
7729}
7730_ACEOF
7731rm -f conftest.$ac_objext conftest$ac_exeext
7732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 7733 (eval $ac_link) 2>conftest.er1
ad6254c5 7734 ac_status=$?
5c7fc7c4
PC
7735 grep -v '^ *+' conftest.er1 >conftest.err
7736 rm -f conftest.er1
7737 cat conftest.err >&5
ad6254c5
AK
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } &&
5c7fc7c4
PC
7740 { ac_try='test -z "$ac_c_werror_flag"
7741 || test ! -s conftest.err'
7742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7743 (eval $ac_try) 2>&5
7744 ac_status=$?
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); }; } &&
7747 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7749 (eval $ac_try) 2>&5
7750 ac_status=$?
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); }; }; then
7753 ac_cv_func__doprnt=yes
7754else
7755 echo "$as_me: failed program was:" >&5
7756sed 's/^/| /' conftest.$ac_ext >&5
7757
7758ac_cv_func__doprnt=no
7759fi
5c7fc7c4
PC
7760rm -f conftest.err conftest.$ac_objext \
7761 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7762fi
7763echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7764echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7765if test $ac_cv_func__doprnt = yes; then
7766
7767cat >>confdefs.h <<\_ACEOF
7768#define HAVE_DOPRNT 1
7769_ACEOF
7770
7771fi
7772
7773fi
7774done
7775
7776
7777
7778
7779
7780for ac_func in mkdir rmdir uname
7781do
7782as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7783echo "$as_me:$LINENO: checking for $ac_func" >&5
7784echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7785if eval "test \"\${$as_ac_var+set}\" = set"; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7787else
7788 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7789/* confdefs.h. */
7790_ACEOF
7791cat confdefs.h >>conftest.$ac_ext
7792cat >>conftest.$ac_ext <<_ACEOF
7793/* end confdefs.h. */
5c7fc7c4
PC
7794/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7796#define $ac_func innocuous_$ac_func
7797
ad6254c5
AK
7798/* System header to define __stub macros and hopefully few prototypes,
7799 which can conflict with char $ac_func (); below.
7800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7801 <limits.h> exists even on freestanding compilers. */
5c7fc7c4 7802
ad6254c5
AK
7803#ifdef __STDC__
7804# include <limits.h>
7805#else
7806# include <assert.h>
7807#endif
5c7fc7c4
PC
7808
7809#undef $ac_func
7810
ad6254c5
AK
7811/* Override any gcc2 internal prototype to avoid an error. */
7812#ifdef __cplusplus
7813extern "C"
7814{
7815#endif
7816/* We use char because int might match the return type of a gcc2
7817 builtin and then its argument prototype would still apply. */
7818char $ac_func ();
7819/* The GNU C library defines this for functions which it implements
7820 to always fail with ENOSYS. Some functions are actually named
7821 something starting with __ and the normal name is an alias. */
7822#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7823choke me
7824#else
7825char (*f) () = $ac_func;
7826#endif
7827#ifdef __cplusplus
7828}
7829#endif
7830
7831int
7832main ()
7833{
7834return f != $ac_func;
7835 ;
7836 return 0;
7837}
7838_ACEOF
7839rm -f conftest.$ac_objext conftest$ac_exeext
7840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 7841 (eval $ac_link) 2>conftest.er1
ad6254c5 7842 ac_status=$?
5c7fc7c4
PC
7843 grep -v '^ *+' conftest.er1 >conftest.err
7844 rm -f conftest.er1
7845 cat conftest.err >&5
ad6254c5
AK
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); } &&
5c7fc7c4
PC
7848 { ac_try='test -z "$ac_c_werror_flag"
7849 || test ! -s conftest.err'
7850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7851 (eval $ac_try) 2>&5
7852 ac_status=$?
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); }; } &&
7855 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7857 (eval $ac_try) 2>&5
7858 ac_status=$?
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); }; }; then
7861 eval "$as_ac_var=yes"
7862else
7863 echo "$as_me: failed program was:" >&5
7864sed 's/^/| /' conftest.$ac_ext >&5
7865
7866eval "$as_ac_var=no"
7867fi
5c7fc7c4
PC
7868rm -f conftest.err conftest.$ac_objext \
7869 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7870fi
7871echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7872echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7873if test `eval echo '${'$as_ac_var'}'` = yes; then
7874 cat >>confdefs.h <<_ACEOF
7875#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7876_ACEOF
7877
7878else
7879 { { echo "$as_me:$LINENO: error: bailing out" >&5
7880echo "$as_me: error: bailing out" >&2;}
7881 { (exit 1); exit 1; }; }
7882fi
7883done
7884
7885
7886################################################################################
7887if test x$READLINE = xyes; then
7888 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
7889echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
7890if test "${ac_cv_search_tgetent+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7892else
7893 ac_func_search_save_LIBS=$LIBS
7894ac_cv_search_tgetent=no
7895cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7896/* confdefs.h. */
7897_ACEOF
7898cat confdefs.h >>conftest.$ac_ext
7899cat >>conftest.$ac_ext <<_ACEOF
7900/* end confdefs.h. */
7901
7902/* Override any gcc2 internal prototype to avoid an error. */
7903#ifdef __cplusplus
7904extern "C"
7905#endif
7906/* We use char because int might match the return type of a gcc2
7907 builtin and then its argument prototype would still apply. */
7908char tgetent ();
7909int
7910main ()
7911{
7912tgetent ();
7913 ;
7914 return 0;
7915}
7916_ACEOF
7917rm -f conftest.$ac_objext conftest$ac_exeext
7918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 7919 (eval $ac_link) 2>conftest.er1
ad6254c5 7920 ac_status=$?
5c7fc7c4
PC
7921 grep -v '^ *+' conftest.er1 >conftest.err
7922 rm -f conftest.er1
7923 cat conftest.err >&5
ad6254c5
AK
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); } &&
5c7fc7c4
PC
7926 { ac_try='test -z "$ac_c_werror_flag"
7927 || test ! -s conftest.err'
7928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929 (eval $ac_try) 2>&5
7930 ac_status=$?
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; } &&
7933 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7935 (eval $ac_try) 2>&5
7936 ac_status=$?
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; }; then
7939 ac_cv_search_tgetent="none required"
7940else
7941 echo "$as_me: failed program was:" >&5
7942sed 's/^/| /' conftest.$ac_ext >&5
7943
7944fi
5c7fc7c4
PC
7945rm -f conftest.err conftest.$ac_objext \
7946 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7947if test "$ac_cv_search_tgetent" = no; then
7948 for ac_lib in ncurses curses termcap termlib; do
7949 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7950 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7951/* confdefs.h. */
7952_ACEOF
7953cat confdefs.h >>conftest.$ac_ext
7954cat >>conftest.$ac_ext <<_ACEOF
7955/* end confdefs.h. */
7956
7957/* Override any gcc2 internal prototype to avoid an error. */
7958#ifdef __cplusplus
7959extern "C"
7960#endif
7961/* We use char because int might match the return type of a gcc2
7962 builtin and then its argument prototype would still apply. */
7963char tgetent ();
7964int
7965main ()
7966{
7967tgetent ();
7968 ;
7969 return 0;
7970}
7971_ACEOF
7972rm -f conftest.$ac_objext conftest$ac_exeext
7973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 7974 (eval $ac_link) 2>conftest.er1
ad6254c5 7975 ac_status=$?
5c7fc7c4
PC
7976 grep -v '^ *+' conftest.er1 >conftest.err
7977 rm -f conftest.er1
7978 cat conftest.err >&5
ad6254c5
AK
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); } &&
5c7fc7c4
PC
7981 { ac_try='test -z "$ac_c_werror_flag"
7982 || test ! -s conftest.err'
7983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7984 (eval $ac_try) 2>&5
7985 ac_status=$?
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); }; } &&
7988 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990 (eval $ac_try) 2>&5
7991 ac_status=$?
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); }; }; then
7994 ac_cv_search_tgetent="-l$ac_lib"
7995break
7996else
7997 echo "$as_me: failed program was:" >&5
7998sed 's/^/| /' conftest.$ac_ext >&5
7999
8000fi
5c7fc7c4
PC
8001rm -f conftest.err conftest.$ac_objext \
8002 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8003 done
8004fi
8005LIBS=$ac_func_search_save_LIBS
8006fi
8007echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8008echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8009if test "$ac_cv_search_tgetent" != no; then
8010 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
8011
8012else
8013 { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the
8014--enable-readline option (which is enabled by default). Either disable readline
8015support with --disable-readline or download and install termcap from:
8016 ftp.gnu.org/gnu/termcap
8017Note: if you are using precompiled packages you will also need the development
8018 package as well (which may be called termcap-devel or something similar).
8019Note: (n)curses also seems to work as a substitute for termcap. This was
8020 not found either - but you could try installing that as well.
8021" >&5
8022echo "$as_me: error: termcap could not be found which is required for the
8023--enable-readline option (which is enabled by default). Either disable readline
8024support with --disable-readline or download and install termcap from:
8025 ftp.gnu.org/gnu/termcap
8026Note: if you are using precompiled packages you will also need the development
8027 package as well (which may be called termcap-devel or something similar).
8028Note: (n)curses also seems to work as a substitute for termcap. This was
8029 not found either - but you could try installing that as well.
8030" >&2;}
8031 { (exit 1); exit 1; }; }
8032
8033fi
8034
8035fi
8036
8037################################################################################
8038echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8039echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8040if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
8042else
8043 ac_check_lib_save_LIBS=$LIBS
8044LIBS="-ldl $LIBS"
8045cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8046/* confdefs.h. */
8047_ACEOF
8048cat confdefs.h >>conftest.$ac_ext
8049cat >>conftest.$ac_ext <<_ACEOF
8050/* end confdefs.h. */
8051
8052/* Override any gcc2 internal prototype to avoid an error. */
8053#ifdef __cplusplus
8054extern "C"
8055#endif
8056/* We use char because int might match the return type of a gcc2
8057 builtin and then its argument prototype would still apply. */
8058char dlopen ();
8059int
8060main ()
8061{
8062dlopen ();
8063 ;
8064 return 0;
8065}
8066_ACEOF
8067rm -f conftest.$ac_objext conftest$ac_exeext
8068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 8069 (eval $ac_link) 2>conftest.er1
ad6254c5 8070 ac_status=$?
5c7fc7c4
PC
8071 grep -v '^ *+' conftest.er1 >conftest.err
8072 rm -f conftest.er1
8073 cat conftest.err >&5
ad6254c5
AK
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } &&
5c7fc7c4
PC
8076 { ac_try='test -z "$ac_c_werror_flag"
8077 || test ! -s conftest.err'
8078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079 (eval $ac_try) 2>&5
8080 ac_status=$?
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; } &&
8083 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085 (eval $ac_try) 2>&5
8086 ac_status=$?
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; }; then
8089 ac_cv_lib_dl_dlopen=yes
8090else
8091 echo "$as_me: failed program was:" >&5
8092sed 's/^/| /' conftest.$ac_ext >&5
8093
8094ac_cv_lib_dl_dlopen=no
8095fi
5c7fc7c4
PC
8096rm -f conftest.err conftest.$ac_objext \
8097 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8098LIBS=$ac_check_lib_save_LIBS
8099fi
8100echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8101echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8102if test $ac_cv_lib_dl_dlopen = yes; then
8103 HAVE_LIBDL=yes
8104else
8105 HAVE_LIBDL=no
8106fi
8107
8108
7e9e9502 8109if [ "x$HAVE_LIBDL" = xyes ]; then
ad6254c5
AK
8110 CFLAGS="$CFLAGS -DHAVE_LIBDL"
8111 LIBS="-ldl $LIBS"
8112else
8113 HAVE_LIBDL=no
8114fi
8115
8116################################################################################
8117if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
8118 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
8119 \) -a "x$STATIC_LINK" = xyes ];
8120 then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
8121" >&5
8122echo "$as_me: error: Features cannot be 'shared' when building statically
8123" >&2;}
8124 { (exit 1); exit 1; }; }
8125fi
8126
8127################################################################################
8128if test x$SELINUX = xyes; then
8129 echo "$as_me:$LINENO: checking for is_selinux_enabled function" >&5
8130echo $ECHO_N "checking for is_selinux_enabled function... $ECHO_C" >&6
8131 echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
8132echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6
8133if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
8134 echo $ECHO_N "(cached) $ECHO_C" >&6
8135else
8136 ac_check_lib_save_LIBS=$LIBS
8137LIBS="-lselinux $LIBS"
8138cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8139/* confdefs.h. */
8140_ACEOF
8141cat confdefs.h >>conftest.$ac_ext
8142cat >>conftest.$ac_ext <<_ACEOF
8143/* end confdefs.h. */
8144
8145/* Override any gcc2 internal prototype to avoid an error. */
8146#ifdef __cplusplus
8147extern "C"
8148#endif
8149/* We use char because int might match the return type of a gcc2
8150 builtin and then its argument prototype would still apply. */
8151char is_selinux_enabled ();
8152int
8153main ()
8154{
8155is_selinux_enabled ();
8156 ;
8157 return 0;
8158}
8159_ACEOF
8160rm -f conftest.$ac_objext conftest$ac_exeext
8161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 8162 (eval $ac_link) 2>conftest.er1
ad6254c5 8163 ac_status=$?
5c7fc7c4
PC
8164 grep -v '^ *+' conftest.er1 >conftest.err
8165 rm -f conftest.er1
8166 cat conftest.err >&5
ad6254c5
AK
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } &&
5c7fc7c4
PC
8169 { ac_try='test -z "$ac_c_werror_flag"
8170 || test ! -s conftest.err'
8171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172 (eval $ac_try) 2>&5
8173 ac_status=$?
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; } &&
8176 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178 (eval $ac_try) 2>&5
8179 ac_status=$?
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; }; then
8182 ac_cv_lib_selinux_is_selinux_enabled=yes
8183else
8184 echo "$as_me: failed program was:" >&5
8185sed 's/^/| /' conftest.$ac_ext >&5
8186
8187ac_cv_lib_selinux_is_selinux_enabled=no
8188fi
5c7fc7c4
PC
8189rm -f conftest.err conftest.$ac_objext \
8190 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8191LIBS=$ac_check_lib_save_LIBS
8192fi
8193echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
8194echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6
8195if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
8196 HAVE_SELINUX=yes
8197else
8198 HAVE_SELINUX=no
8199fi
8200
8201 echo "$as_me:$LINENO: result: $HAVE_SELINUX" >&5
8202echo "${ECHO_T}$HAVE_SELINUX" >&6
8203
8204 if test x$HAVE_SELINUX = xyes; then
8205 CFLAGS="$CFLAGS -DHAVE_SELINUX"
8206 LIBS="-lselinux $LIBS"
8207 else
8208 { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
8209echo "$as_me: WARNING: Disabling selinux" >&2;}
8210 fi
8211fi
8212
8213################################################################################
8214
8215for ac_header in getopt.h
8216do
8217as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8218if eval "test \"\${$as_ac_Header+set}\" = set"; then
8219 echo "$as_me:$LINENO: checking for $ac_header" >&5
8220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8221if eval "test \"\${$as_ac_Header+set}\" = set"; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
8223fi
8224echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8225echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8226else
8227 # Is the header compilable?
8228echo "$as_me:$LINENO: checking $ac_header usability" >&5
8229echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8230cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8231/* confdefs.h. */
8232_ACEOF
8233cat confdefs.h >>conftest.$ac_ext
8234cat >>conftest.$ac_ext <<_ACEOF
8235/* end confdefs.h. */
8236$ac_includes_default
8237#include <$ac_header>
8238_ACEOF
8239rm -f conftest.$ac_objext
8240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 8241 (eval $ac_compile) 2>conftest.er1
ad6254c5 8242 ac_status=$?
5c7fc7c4
PC
8243 grep -v '^ *+' conftest.er1 >conftest.err
8244 rm -f conftest.er1
8245 cat conftest.err >&5
ad6254c5
AK
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); } &&
5c7fc7c4
PC
8248 { ac_try='test -z "$ac_c_werror_flag"
8249 || test ! -s conftest.err'
8250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251 (eval $ac_try) 2>&5
8252 ac_status=$?
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); }; } &&
8255 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
8256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257 (eval $ac_try) 2>&5
8258 ac_status=$?
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); }; }; then
8261 ac_header_compiler=yes
8262else
8263 echo "$as_me: failed program was:" >&5
8264sed 's/^/| /' conftest.$ac_ext >&5
8265
8266ac_header_compiler=no
8267fi
5c7fc7c4 8268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
8269echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8270echo "${ECHO_T}$ac_header_compiler" >&6
8271
8272# Is the header present?
8273echo "$as_me:$LINENO: checking $ac_header presence" >&5
8274echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8275cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8276/* confdefs.h. */
8277_ACEOF
8278cat confdefs.h >>conftest.$ac_ext
8279cat >>conftest.$ac_ext <<_ACEOF
8280/* end confdefs.h. */
8281#include <$ac_header>
8282_ACEOF
8283if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8285 ac_status=$?
8286 grep -v '^ *+' conftest.er1 >conftest.err
8287 rm -f conftest.er1
8288 cat conftest.err >&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); } >/dev/null; then
8291 if test -s conftest.err; then
8292 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 8293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
8294 else
8295 ac_cpp_err=
8296 fi
8297else
8298 ac_cpp_err=yes
8299fi
8300if test -z "$ac_cpp_err"; then
8301 ac_header_preproc=yes
8302else
8303 echo "$as_me: failed program was:" >&5
8304sed 's/^/| /' conftest.$ac_ext >&5
8305
8306 ac_header_preproc=no
8307fi
8308rm -f conftest.err conftest.$ac_ext
8309echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8310echo "${ECHO_T}$ac_header_preproc" >&6
8311
8312# So? What about this header?
5c7fc7c4
PC
8313case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8314 yes:no: )
ad6254c5
AK
8315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8316echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
8317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8318echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8319 ac_header_preproc=yes
ad6254c5 8320 ;;
5c7fc7c4 8321 no:yes:* )
ad6254c5
AK
8322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8323echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
8324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8325echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8327echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8329echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
8330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8331echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
8332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8333echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
8334 (
8335 cat <<\_ASBOX
5c7fc7c4
PC
8336## ------------------------------------------ ##
8337## Report this to the AC_PACKAGE_NAME lists. ##
8338## ------------------------------------------ ##
ad6254c5
AK
8339_ASBOX
8340 ) |
8341 sed "s/^/$as_me: WARNING: /" >&2
8342 ;;
8343esac
8344echo "$as_me:$LINENO: checking for $ac_header" >&5
8345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8346if eval "test \"\${$as_ac_Header+set}\" = set"; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8348else
5c7fc7c4 8349 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
8350fi
8351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8352echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8353
8354fi
8355if test `eval echo '${'$as_ac_Header'}'` = yes; then
8356 cat >>confdefs.h <<_ACEOF
8357#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8358_ACEOF
8359 CFLAGS="$CFLAGS -DHAVE_GETOPTLONG"
8360fi
8361
8362done
8363
8364
8365################################################################################
8366if test x$READLINE = xyes; then
8367
8368echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
8369echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
8370if test "${ac_cv_lib_readline_readline+set}" = set; then
8371 echo $ECHO_N "(cached) $ECHO_C" >&6
8372else
8373 ac_check_lib_save_LIBS=$LIBS
8374LIBS="-lreadline $LIBS"
8375cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8376/* confdefs.h. */
8377_ACEOF
8378cat confdefs.h >>conftest.$ac_ext
8379cat >>conftest.$ac_ext <<_ACEOF
8380/* end confdefs.h. */
8381
8382/* Override any gcc2 internal prototype to avoid an error. */
8383#ifdef __cplusplus
8384extern "C"
8385#endif
8386/* We use char because int might match the return type of a gcc2
8387 builtin and then its argument prototype would still apply. */
8388char readline ();
8389int
8390main ()
8391{
8392readline ();
8393 ;
8394 return 0;
8395}
8396_ACEOF
8397rm -f conftest.$ac_objext conftest$ac_exeext
8398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 8399 (eval $ac_link) 2>conftest.er1
ad6254c5 8400 ac_status=$?
5c7fc7c4
PC
8401 grep -v '^ *+' conftest.er1 >conftest.err
8402 rm -f conftest.er1
8403 cat conftest.err >&5
ad6254c5
AK
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); } &&
5c7fc7c4
PC
8406 { ac_try='test -z "$ac_c_werror_flag"
8407 || test ! -s conftest.err'
8408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409 (eval $ac_try) 2>&5
8410 ac_status=$?
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; } &&
8413 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 (eval $ac_try) 2>&5
8416 ac_status=$?
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 ac_cv_lib_readline_readline=yes
8420else
8421 echo "$as_me: failed program was:" >&5
8422sed 's/^/| /' conftest.$ac_ext >&5
8423
8424ac_cv_lib_readline_readline=no
8425fi
5c7fc7c4
PC
8426rm -f conftest.err conftest.$ac_objext \
8427 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8428LIBS=$ac_check_lib_save_LIBS
8429fi
8430echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
8431echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
8432if test $ac_cv_lib_readline_readline = yes; then
8433 cat >>confdefs.h <<_ACEOF
8434#define HAVE_LIBREADLINE 1
8435_ACEOF
8436
8437 LIBS="-lreadline $LIBS"
8438
8439else
8440 { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
8441--enable-readline option (which is enabled by default). Either disable readline
8442support with --disable-readline or download and install readline from:
8443 ftp.gnu.org/gnu/readline
8444Note: if you are using precompiled packages you will also need the development
8445package as well (which may be called readline-devel or something similar).
8446" >&5
8447echo "$as_me: error: GNU Readline could not be found which is required for the
8448--enable-readline option (which is enabled by default). Either disable readline
8449support with --disable-readline or download and install readline from:
8450 ftp.gnu.org/gnu/readline
8451Note: if you are using precompiled packages you will also need the development
8452package as well (which may be called readline-devel or something similar).
8453" >&2;}
8454 { (exit 1); exit 1; }; }
8455
8456fi
8457
8458 echo "$as_me:$LINENO: checking for rl_completion_matches" >&5
8459echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6
8460if test "${ac_cv_func_rl_completion_matches+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8462else
8463 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8464/* confdefs.h. */
8465_ACEOF
8466cat confdefs.h >>conftest.$ac_ext
8467cat >>conftest.$ac_ext <<_ACEOF
8468/* end confdefs.h. */
5c7fc7c4
PC
8469/* Define rl_completion_matches to an innocuous variant, in case <limits.h> declares rl_completion_matches.
8470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8471#define rl_completion_matches innocuous_rl_completion_matches
8472
ad6254c5
AK
8473/* System header to define __stub macros and hopefully few prototypes,
8474 which can conflict with char rl_completion_matches (); below.
8475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8476 <limits.h> exists even on freestanding compilers. */
5c7fc7c4 8477
ad6254c5
AK
8478#ifdef __STDC__
8479# include <limits.h>
8480#else
8481# include <assert.h>
8482#endif
5c7fc7c4
PC
8483
8484#undef rl_completion_matches
8485
ad6254c5
AK
8486/* Override any gcc2 internal prototype to avoid an error. */
8487#ifdef __cplusplus
8488extern "C"
8489{
8490#endif
8491/* We use char because int might match the return type of a gcc2
8492 builtin and then its argument prototype would still apply. */
8493char rl_completion_matches ();
8494/* The GNU C library defines this for functions which it implements
8495 to always fail with ENOSYS. Some functions are actually named
8496 something starting with __ and the normal name is an alias. */
8497#if defined (__stub_rl_completion_matches) || defined (__stub___rl_completion_matches)
8498choke me
8499#else
8500char (*f) () = rl_completion_matches;
8501#endif
8502#ifdef __cplusplus
8503}
8504#endif
8505
8506int
8507main ()
8508{
8509return f != rl_completion_matches;
8510 ;
8511 return 0;
8512}
8513_ACEOF
8514rm -f conftest.$ac_objext conftest$ac_exeext
8515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 8516 (eval $ac_link) 2>conftest.er1
ad6254c5 8517 ac_status=$?
5c7fc7c4
PC
8518 grep -v '^ *+' conftest.er1 >conftest.err
8519 rm -f conftest.er1
8520 cat conftest.err >&5
ad6254c5
AK
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } &&
5c7fc7c4
PC
8523 { ac_try='test -z "$ac_c_werror_flag"
8524 || test ! -s conftest.err'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 (eval $ac_try) 2>&5
8527 ac_status=$?
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; } &&
8530 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 (eval $ac_try) 2>&5
8533 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; }; then
8536 ac_cv_func_rl_completion_matches=yes
8537else
8538 echo "$as_me: failed program was:" >&5
8539sed 's/^/| /' conftest.$ac_ext >&5
8540
8541ac_cv_func_rl_completion_matches=no
8542fi
5c7fc7c4
PC
8543rm -f conftest.err conftest.$ac_objext \
8544 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8545fi
8546echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5
8547echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6
8548if test $ac_cv_func_rl_completion_matches = yes; then
8549 CFLAGS="$CFLAGS -DHAVE_RL_COMPLETION_MATCHES"
8550fi
8551
8552
8553fi
8554
8555################################################################################
8556echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
8557echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6
8558# Check whether --enable-nls or --disable-nls was given.
8559if test "${enable_nls+set}" = set; then
8560 enableval="$enable_nls"
8561 INTL=$enableval
8562else
8563 INTL=no
8564fi;
8565echo "$as_me:$LINENO: result: $INTL" >&5
8566echo "${ECHO_T}$INTL" >&6
8567
8568if test x$INTL = xyes; then
8569 INTL_PACKAGE="lvm2"
8570 # Extract the first word of "msgfmt", so it can be a program name with args.
8571set dummy msgfmt; ac_word=$2
8572echo "$as_me:$LINENO: checking for $ac_word" >&5
8573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8574if test "${ac_cv_path_MSGFMT+set}" = set; then
8575 echo $ECHO_N "(cached) $ECHO_C" >&6
8576else
8577 case $MSGFMT in
8578 [\\/]* | ?:[\\/]*)
8579 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8580 ;;
8581 *)
8582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583for as_dir in $PATH
8584do
8585 IFS=$as_save_IFS
8586 test -z "$as_dir" && as_dir=.
8587 for ac_exec_ext in '' $ac_executable_extensions; do
8588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8589 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
8590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8591 break 2
8592 fi
8593done
8594done
8595
8596 ;;
8597esac
8598fi
8599MSGFMT=$ac_cv_path_MSGFMT
8600
8601if test -n "$MSGFMT"; then
8602 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8603echo "${ECHO_T}$MSGFMT" >&6
8604else
8605 echo "$as_me:$LINENO: result: no" >&5
8606echo "${ECHO_T}no" >&6
8607fi
8608
8609 if [ "x$MSGFMT" == x ];
8610 then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
8611 " >&5
8612echo "$as_me: error: msgfmt not found in path $PATH
8613 " >&2;}
8614 { (exit 1); exit 1; }; }
8615 fi;
8616
8617
8618# Check whether --with-localedir or --without-localedir was given.
8619if test "${with_localedir+set}" = set; then
8620 withval="$with_localedir"
8621 LOCALEDIR="$withval"
8622else
8623 LOCALEDIR='${prefix}/share/locale'
8624fi;
8625fi
8626
8627################################################################################
8628
8629# Check whether --with-confdir or --without-confdir was given.
8630if test "${with_confdir+set}" = set; then
8631 withval="$with_confdir"
8632 CONFDIR="$withval"
8633else
8634 CONFDIR='/etc'
8635fi;
8636
8637
8638# Check whether --with-staticdir or --without-staticdir was given.
8639if test "${with_staticdir+set}" = set; then
8640 withval="$with_staticdir"
8641 STATICDIR="$withval"
8642else
8643 STATICDIR='${exec_prefix}/sbin'
8644fi;
8645
8646################################################################################
8647if test x$READLINE = xyes; then
8648
8649
8650for ac_header in readline/readline.h readline/history.h
8651do
8652as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8653if eval "test \"\${$as_ac_Header+set}\" = set"; then
8654 echo "$as_me:$LINENO: checking for $ac_header" >&5
8655echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8656if eval "test \"\${$as_ac_Header+set}\" = set"; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8658fi
8659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8660echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8661else
8662 # Is the header compilable?
8663echo "$as_me:$LINENO: checking $ac_header usability" >&5
8664echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8665cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8666/* confdefs.h. */
8667_ACEOF
8668cat confdefs.h >>conftest.$ac_ext
8669cat >>conftest.$ac_ext <<_ACEOF
8670/* end confdefs.h. */
8671$ac_includes_default
8672#include <$ac_header>
8673_ACEOF
8674rm -f conftest.$ac_objext
8675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 8676 (eval $ac_compile) 2>conftest.er1
ad6254c5 8677 ac_status=$?
5c7fc7c4
PC
8678 grep -v '^ *+' conftest.er1 >conftest.err
8679 rm -f conftest.er1
8680 cat conftest.err >&5
ad6254c5
AK
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); } &&
5c7fc7c4
PC
8683 { ac_try='test -z "$ac_c_werror_flag"
8684 || test ! -s conftest.err'
8685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8686 (eval $ac_try) 2>&5
8687 ac_status=$?
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); }; } &&
8690 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
8691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8692 (eval $ac_try) 2>&5
8693 ac_status=$?
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); }; }; then
8696 ac_header_compiler=yes
8697else
8698 echo "$as_me: failed program was:" >&5
8699sed 's/^/| /' conftest.$ac_ext >&5
8700
8701ac_header_compiler=no
8702fi
5c7fc7c4 8703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
8704echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8705echo "${ECHO_T}$ac_header_compiler" >&6
8706
8707# Is the header present?
8708echo "$as_me:$LINENO: checking $ac_header presence" >&5
8709echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8710cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8711/* confdefs.h. */
8712_ACEOF
8713cat confdefs.h >>conftest.$ac_ext
8714cat >>conftest.$ac_ext <<_ACEOF
8715/* end confdefs.h. */
8716#include <$ac_header>
8717_ACEOF
8718if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8720 ac_status=$?
8721 grep -v '^ *+' conftest.er1 >conftest.err
8722 rm -f conftest.er1
8723 cat conftest.err >&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); } >/dev/null; then
8726 if test -s conftest.err; then
8727 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 8728 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
8729 else
8730 ac_cpp_err=
8731 fi
8732else
8733 ac_cpp_err=yes
8734fi
8735if test -z "$ac_cpp_err"; then
8736 ac_header_preproc=yes
8737else
8738 echo "$as_me: failed program was:" >&5
8739sed 's/^/| /' conftest.$ac_ext >&5
8740
8741 ac_header_preproc=no
8742fi
8743rm -f conftest.err conftest.$ac_ext
8744echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8745echo "${ECHO_T}$ac_header_preproc" >&6
8746
8747# So? What about this header?
5c7fc7c4
PC
8748case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8749 yes:no: )
ad6254c5
AK
8750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8751echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
8752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8753echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8754 ac_header_preproc=yes
ad6254c5 8755 ;;
5c7fc7c4 8756 no:yes:* )
ad6254c5
AK
8757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8758echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
8759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8760echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8762echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8764echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
8765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8766echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
8767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8768echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
8769 (
8770 cat <<\_ASBOX
5c7fc7c4
PC
8771## ------------------------------------------ ##
8772## Report this to the AC_PACKAGE_NAME lists. ##
8773## ------------------------------------------ ##
ad6254c5
AK
8774_ASBOX
8775 ) |
8776 sed "s/^/$as_me: WARNING: /" >&2
8777 ;;
8778esac
8779echo "$as_me:$LINENO: checking for $ac_header" >&5
8780echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8781if eval "test \"\${$as_ac_Header+set}\" = set"; then
8782 echo $ECHO_N "(cached) $ECHO_C" >&6
8783else
5c7fc7c4 8784 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
8785fi
8786echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8787echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8788
8789fi
8790if test `eval echo '${'$as_ac_Header'}'` = yes; then
8791 cat >>confdefs.h <<_ACEOF
8792#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8793_ACEOF
8794
8795else
8796 { { echo "$as_me:$LINENO: error: bailing out" >&5
8797echo "$as_me: error: bailing out" >&2;}
8798 { (exit 1); exit 1; }; }
8799fi
8800
8801done
8802
8803fi
8804
5c7fc7c4 8805if test x$CLVMD != xnone; then
ad6254c5
AK
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816for 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
8817do
8818as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8819if eval "test \"\${$as_ac_Header+set}\" = set"; then
8820 echo "$as_me:$LINENO: checking for $ac_header" >&5
8821echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8822if eval "test \"\${$as_ac_Header+set}\" = set"; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8824fi
8825echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8826echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8827else
8828 # Is the header compilable?
8829echo "$as_me:$LINENO: checking $ac_header usability" >&5
8830echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8831cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8832/* confdefs.h. */
8833_ACEOF
8834cat confdefs.h >>conftest.$ac_ext
8835cat >>conftest.$ac_ext <<_ACEOF
8836/* end confdefs.h. */
8837$ac_includes_default
8838#include <$ac_header>
8839_ACEOF
8840rm -f conftest.$ac_objext
8841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 8842 (eval $ac_compile) 2>conftest.er1
ad6254c5 8843 ac_status=$?
5c7fc7c4
PC
8844 grep -v '^ *+' conftest.er1 >conftest.err
8845 rm -f conftest.er1
8846 cat conftest.err >&5
ad6254c5
AK
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); } &&
5c7fc7c4
PC
8849 { ac_try='test -z "$ac_c_werror_flag"
8850 || test ! -s conftest.err'
8851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852 (eval $ac_try) 2>&5
8853 ac_status=$?
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); }; } &&
8856 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
8857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858 (eval $ac_try) 2>&5
8859 ac_status=$?
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); }; }; then
8862 ac_header_compiler=yes
8863else
8864 echo "$as_me: failed program was:" >&5
8865sed 's/^/| /' conftest.$ac_ext >&5
8866
8867ac_header_compiler=no
8868fi
5c7fc7c4 8869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
8870echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8871echo "${ECHO_T}$ac_header_compiler" >&6
8872
8873# Is the header present?
8874echo "$as_me:$LINENO: checking $ac_header presence" >&5
8875echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8876cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8877/* confdefs.h. */
8878_ACEOF
8879cat confdefs.h >>conftest.$ac_ext
8880cat >>conftest.$ac_ext <<_ACEOF
8881/* end confdefs.h. */
8882#include <$ac_header>
8883_ACEOF
8884if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8886 ac_status=$?
8887 grep -v '^ *+' conftest.er1 >conftest.err
8888 rm -f conftest.er1
8889 cat conftest.err >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } >/dev/null; then
8892 if test -s conftest.err; then
8893 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 8894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
8895 else
8896 ac_cpp_err=
8897 fi
8898else
8899 ac_cpp_err=yes
8900fi
8901if test -z "$ac_cpp_err"; then
8902 ac_header_preproc=yes
8903else
8904 echo "$as_me: failed program was:" >&5
8905sed 's/^/| /' conftest.$ac_ext >&5
8906
8907 ac_header_preproc=no
8908fi
8909rm -f conftest.err conftest.$ac_ext
8910echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8911echo "${ECHO_T}$ac_header_preproc" >&6
8912
8913# So? What about this header?
5c7fc7c4
PC
8914case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8915 yes:no: )
ad6254c5
AK
8916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8917echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
8918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8919echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8920 ac_header_preproc=yes
ad6254c5 8921 ;;
5c7fc7c4 8922 no:yes:* )
ad6254c5
AK
8923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8924echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
8925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8926echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8927 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8928echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8929 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8930echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
8931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8932echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
8933 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8934echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
8935 (
8936 cat <<\_ASBOX
5c7fc7c4
PC
8937## ------------------------------------------ ##
8938## Report this to the AC_PACKAGE_NAME lists. ##
8939## ------------------------------------------ ##
ad6254c5
AK
8940_ASBOX
8941 ) |
8942 sed "s/^/$as_me: WARNING: /" >&2
8943 ;;
8944esac
8945echo "$as_me:$LINENO: checking for $ac_header" >&5
8946echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8947if eval "test \"\${$as_ac_Header+set}\" = set"; then
8948 echo $ECHO_N "(cached) $ECHO_C" >&6
8949else
5c7fc7c4 8950 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
8951fi
8952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8953echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8954
8955fi
8956if test `eval echo '${'$as_ac_Header'}'` = yes; then
8957 cat >>confdefs.h <<_ACEOF
8958#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8959_ACEOF
8960
8961else
8962 { { echo "$as_me:$LINENO: error: bailing out" >&5
8963echo "$as_me: error: bailing out" >&2;}
8964 { (exit 1); exit 1; }; }
795ca3e5
AK
8965fi
8966
ad6254c5
AK
8967done
8968
8969
795ca3e5 8970
8106cdd5 8971
ad6254c5
AK
8972
8973
8974for ac_func in dup2 getmntent memmove select socket
8975do
8976as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8977echo "$as_me:$LINENO: checking for $ac_func" >&5
8978echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8979if eval "test \"\${$as_ac_var+set}\" = set"; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 8981else
ad6254c5 8982 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8983/* confdefs.h. */
8984_ACEOF
8985cat confdefs.h >>conftest.$ac_ext
8986cat >>conftest.$ac_ext <<_ACEOF
8987/* end confdefs.h. */
5c7fc7c4
PC
8988/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8990#define $ac_func innocuous_$ac_func
8991
795ca3e5 8992/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
8993 which can conflict with char $ac_func (); below.
8994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8995 <limits.h> exists even on freestanding compilers. */
5c7fc7c4 8996
ad6254c5
AK
8997#ifdef __STDC__
8998# include <limits.h>
8999#else
9000# include <assert.h>
9001#endif
5c7fc7c4
PC
9002
9003#undef $ac_func
9004
795ca3e5 9005/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
9006#ifdef __cplusplus
9007extern "C"
9008{
9009#endif
795ca3e5 9010/* We use char because int might match the return type of a gcc2
ad6254c5
AK
9011 builtin and then its argument prototype would still apply. */
9012char $ac_func ();
795ca3e5
AK
9013/* The GNU C library defines this for functions which it implements
9014 to always fail with ENOSYS. Some functions are actually named
9015 something starting with __ and the normal name is an alias. */
ad6254c5 9016#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
795ca3e5
AK
9017choke me
9018#else
ad6254c5
AK
9019char (*f) () = $ac_func;
9020#endif
9021#ifdef __cplusplus
9022}
795ca3e5
AK
9023#endif
9024
ad6254c5
AK
9025int
9026main ()
9027{
9028return f != $ac_func;
9029 ;
9030 return 0;
9031}
9032_ACEOF
9033rm -f conftest.$ac_objext conftest$ac_exeext
9034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 9035 (eval $ac_link) 2>conftest.er1
ad6254c5 9036 ac_status=$?
5c7fc7c4
PC
9037 grep -v '^ *+' conftest.er1 >conftest.err
9038 rm -f conftest.er1
9039 cat conftest.err >&5
ad6254c5
AK
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); } &&
5c7fc7c4
PC
9042 { ac_try='test -z "$ac_c_werror_flag"
9043 || test ! -s conftest.err'
9044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9045 (eval $ac_try) 2>&5
9046 ac_status=$?
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); }; } &&
9049 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9051 (eval $ac_try) 2>&5
9052 ac_status=$?
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); }; }; then
9055 eval "$as_ac_var=yes"
795ca3e5 9056else
ad6254c5
AK
9057 echo "$as_me: failed program was:" >&5
9058sed 's/^/| /' conftest.$ac_ext >&5
9059
9060eval "$as_ac_var=no"
80992638 9061fi
5c7fc7c4
PC
9062rm -f conftest.err conftest.$ac_objext \
9063 conftest$ac_exeext conftest.$ac_ext
795ca3e5 9064fi
ad6254c5
AK
9065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9066echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9067if test `eval echo '${'$as_ac_var'}'` = yes; then
9068 cat >>confdefs.h <<_ACEOF
9069#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9070_ACEOF
80992638
AK
9071
9072else
ad6254c5
AK
9073 { { echo "$as_me:$LINENO: error: bailing out" >&5
9074echo "$as_me: error: bailing out" >&2;}
9075 { (exit 1); exit 1; }; }
8106cdd5 9076fi
ad6254c5 9077done
795ca3e5 9078
ad6254c5
AK
9079 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
9080echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
9081echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
9082if test "${ac_cv_lib_sun_getmntent+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 9084else
ad6254c5
AK
9085 ac_check_lib_save_LIBS=$LIBS
9086LIBS="-lsun $LIBS"
9087cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9088/* confdefs.h. */
9089_ACEOF
9090cat confdefs.h >>conftest.$ac_ext
9091cat >>conftest.$ac_ext <<_ACEOF
9092/* end confdefs.h. */
9093
795ca3e5 9094/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
9095#ifdef __cplusplus
9096extern "C"
9097#endif
795ca3e5 9098/* We use char because int might match the return type of a gcc2
ad6254c5
AK
9099 builtin and then its argument prototype would still apply. */
9100char getmntent ();
9101int
9102main ()
9103{
9104getmntent ();
9105 ;
9106 return 0;
9107}
9108_ACEOF
9109rm -f conftest.$ac_objext conftest$ac_exeext
9110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 9111 (eval $ac_link) 2>conftest.er1
ad6254c5 9112 ac_status=$?
5c7fc7c4
PC
9113 grep -v '^ *+' conftest.er1 >conftest.err
9114 rm -f conftest.er1
9115 cat conftest.err >&5
ad6254c5
AK
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); } &&
5c7fc7c4
PC
9118 { ac_try='test -z "$ac_c_werror_flag"
9119 || test ! -s conftest.err'
9120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121 (eval $ac_try) 2>&5
9122 ac_status=$?
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; } &&
9125 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127 (eval $ac_try) 2>&5
9128 ac_status=$?
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; }; then
9131 ac_cv_lib_sun_getmntent=yes
9132else
9133 echo "$as_me: failed program was:" >&5
9134sed 's/^/| /' conftest.$ac_ext >&5
80992638 9135
ad6254c5
AK
9136ac_cv_lib_sun_getmntent=no
9137fi
5c7fc7c4
PC
9138rm -f conftest.err conftest.$ac_objext \
9139 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9140LIBS=$ac_check_lib_save_LIBS
9141fi
9142echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
9143echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
9144if test $ac_cv_lib_sun_getmntent = yes; then
9145 LIBS="-lsun $LIBS"
9146else
9147 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
9148echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
9149if test "${ac_cv_lib_seq_getmntent+set}" = set; then
9150 echo $ECHO_N "(cached) $ECHO_C" >&6
9151else
9152 ac_check_lib_save_LIBS=$LIBS
9153LIBS="-lseq $LIBS"
9154cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9155/* confdefs.h. */
9156_ACEOF
9157cat confdefs.h >>conftest.$ac_ext
9158cat >>conftest.$ac_ext <<_ACEOF
9159/* end confdefs.h. */
80992638 9160
ad6254c5
AK
9161/* Override any gcc2 internal prototype to avoid an error. */
9162#ifdef __cplusplus
9163extern "C"
795ca3e5 9164#endif
ad6254c5
AK
9165/* We use char because int might match the return type of a gcc2
9166 builtin and then its argument prototype would still apply. */
9167char getmntent ();
9168int
9169main ()
9170{
9171getmntent ();
9172 ;
9173 return 0;
9174}
9175_ACEOF
9176rm -f conftest.$ac_objext conftest$ac_exeext
9177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 9178 (eval $ac_link) 2>conftest.er1
ad6254c5 9179 ac_status=$?
5c7fc7c4
PC
9180 grep -v '^ *+' conftest.er1 >conftest.err
9181 rm -f conftest.er1
9182 cat conftest.err >&5
ad6254c5
AK
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } &&
5c7fc7c4
PC
9185 { ac_try='test -z "$ac_c_werror_flag"
9186 || test ! -s conftest.err'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188 (eval $ac_try) 2>&5
9189 ac_status=$?
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; } &&
9192 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194 (eval $ac_try) 2>&5
9195 ac_status=$?
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); }; }; then
9198 ac_cv_lib_seq_getmntent=yes
795ca3e5 9199else
ad6254c5
AK
9200 echo "$as_me: failed program was:" >&5
9201sed 's/^/| /' conftest.$ac_ext >&5
9202
9203ac_cv_lib_seq_getmntent=no
795ca3e5 9204fi
5c7fc7c4
PC
9205rm -f conftest.err conftest.$ac_objext \
9206 conftest$ac_exeext conftest.$ac_ext
ad6254c5 9207LIBS=$ac_check_lib_save_LIBS
795ca3e5 9208fi
ad6254c5
AK
9209echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
9210echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
9211if test $ac_cv_lib_seq_getmntent = yes; then
9212 LIBS="-lseq $LIBS"
9213else
9214 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
9215echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
9216if test "${ac_cv_lib_gen_getmntent+set}" = set; then
9217 echo $ECHO_N "(cached) $ECHO_C" >&6
9218else
9219 ac_check_lib_save_LIBS=$LIBS
9220LIBS="-lgen $LIBS"
9221cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9222/* confdefs.h. */
9223_ACEOF
9224cat confdefs.h >>conftest.$ac_ext
9225cat >>conftest.$ac_ext <<_ACEOF
9226/* end confdefs.h. */
795ca3e5 9227
ad6254c5
AK
9228/* Override any gcc2 internal prototype to avoid an error. */
9229#ifdef __cplusplus
9230extern "C"
9231#endif
9232/* We use char because int might match the return type of a gcc2
9233 builtin and then its argument prototype would still apply. */
9234char getmntent ();
9235int
9236main ()
9237{
9238getmntent ();
9239 ;
9240 return 0;
9241}
9242_ACEOF
9243rm -f conftest.$ac_objext conftest$ac_exeext
9244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 9245 (eval $ac_link) 2>conftest.er1
ad6254c5 9246 ac_status=$?
5c7fc7c4
PC
9247 grep -v '^ *+' conftest.er1 >conftest.err
9248 rm -f conftest.er1
9249 cat conftest.err >&5
ad6254c5
AK
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } &&
5c7fc7c4
PC
9252 { ac_try='test -z "$ac_c_werror_flag"
9253 || test ! -s conftest.err'
9254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255 (eval $ac_try) 2>&5
9256 ac_status=$?
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); }; } &&
9259 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261 (eval $ac_try) 2>&5
9262 ac_status=$?
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; }; then
9265 ac_cv_lib_gen_getmntent=yes
80992638 9266else
ad6254c5
AK
9267 echo "$as_me: failed program was:" >&5
9268sed 's/^/| /' conftest.$ac_ext >&5
9269
9270ac_cv_lib_gen_getmntent=no
9271fi
5c7fc7c4
PC
9272rm -f conftest.err conftest.$ac_objext \
9273 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9274LIBS=$ac_check_lib_save_LIBS
9275fi
9276echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
9277echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
9278if test $ac_cv_lib_gen_getmntent = yes; then
9279 LIBS="-lgen $LIBS"
795ca3e5
AK
9280fi
9281
9282fi
9283
ad6254c5
AK
9284fi
9285
9286
9287for ac_func in getmntent
795ca3e5 9288do
ad6254c5
AK
9289as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9290echo "$as_me:$LINENO: checking for $ac_func" >&5
9291echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9292if eval "test \"\${$as_ac_var+set}\" = set"; then
9293 echo $ECHO_N "(cached) $ECHO_C" >&6
9294else
9295 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9296/* confdefs.h. */
9297_ACEOF
9298cat confdefs.h >>conftest.$ac_ext
9299cat >>conftest.$ac_ext <<_ACEOF
9300/* end confdefs.h. */
5c7fc7c4
PC
9301/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9303#define $ac_func innocuous_$ac_func
9304
795ca3e5 9305/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
9306 which can conflict with char $ac_func (); below.
9307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9308 <limits.h> exists even on freestanding compilers. */
5c7fc7c4 9309
ad6254c5
AK
9310#ifdef __STDC__
9311# include <limits.h>
9312#else
9313# include <assert.h>
9314#endif
5c7fc7c4
PC
9315
9316#undef $ac_func
9317
795ca3e5 9318/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
9319#ifdef __cplusplus
9320extern "C"
9321{
9322#endif
795ca3e5 9323/* We use char because int might match the return type of a gcc2
ad6254c5
AK
9324 builtin and then its argument prototype would still apply. */
9325char $ac_func ();
795ca3e5
AK
9326/* The GNU C library defines this for functions which it implements
9327 to always fail with ENOSYS. Some functions are actually named
9328 something starting with __ and the normal name is an alias. */
9329#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9330choke me
9331#else
ad6254c5
AK
9332char (*f) () = $ac_func;
9333#endif
9334#ifdef __cplusplus
9335}
795ca3e5
AK
9336#endif
9337
ad6254c5
AK
9338int
9339main ()
9340{
9341return f != $ac_func;
9342 ;
9343 return 0;
9344}
9345_ACEOF
9346rm -f conftest.$ac_objext conftest$ac_exeext
9347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 9348 (eval $ac_link) 2>conftest.er1
ad6254c5 9349 ac_status=$?
5c7fc7c4
PC
9350 grep -v '^ *+' conftest.er1 >conftest.err
9351 rm -f conftest.er1
9352 cat conftest.err >&5
ad6254c5
AK
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); } &&
5c7fc7c4
PC
9355 { ac_try='test -z "$ac_c_werror_flag"
9356 || test ! -s conftest.err'
9357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358 (eval $ac_try) 2>&5
9359 ac_status=$?
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); }; } &&
9362 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 (eval $ac_try) 2>&5
9365 ac_status=$?
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; }; then
9368 eval "$as_ac_var=yes"
795ca3e5 9369else
ad6254c5
AK
9370 echo "$as_me: failed program was:" >&5
9371sed 's/^/| /' conftest.$ac_ext >&5
9372
9373eval "$as_ac_var=no"
795ca3e5 9374fi
5c7fc7c4
PC
9375rm -f conftest.err conftest.$ac_objext \
9376 conftest$ac_exeext conftest.$ac_ext
795ca3e5 9377fi
ad6254c5
AK
9378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9379echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9380if test `eval echo '${'$as_ac_var'}'` = yes; then
9381 cat >>confdefs.h <<_ACEOF
9382#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9383_ACEOF
795ca3e5 9384
795ca3e5
AK
9385fi
9386done
9387
9388
ad6254c5
AK
9389# AC_FUNC_REALLOC
9390
9391
9392for ac_header in sys/select.h sys/socket.h
9393do
9394as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9395if eval "test \"\${$as_ac_Header+set}\" = set"; then
9396 echo "$as_me:$LINENO: checking for $ac_header" >&5
9397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9398if eval "test \"\${$as_ac_Header+set}\" = set"; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9400fi
9401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9402echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
795ca3e5 9403else
ad6254c5
AK
9404 # Is the header compilable?
9405echo "$as_me:$LINENO: checking $ac_header usability" >&5
9406echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9407cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9408/* confdefs.h. */
9409_ACEOF
9410cat confdefs.h >>conftest.$ac_ext
9411cat >>conftest.$ac_ext <<_ACEOF
9412/* end confdefs.h. */
9413$ac_includes_default
9414#include <$ac_header>
9415_ACEOF
9416rm -f conftest.$ac_objext
9417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 9418 (eval $ac_compile) 2>conftest.er1
ad6254c5 9419 ac_status=$?
5c7fc7c4
PC
9420 grep -v '^ *+' conftest.er1 >conftest.err
9421 rm -f conftest.er1
9422 cat conftest.err >&5
ad6254c5
AK
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); } &&
5c7fc7c4
PC
9425 { ac_try='test -z "$ac_c_werror_flag"
9426 || test ! -s conftest.err'
9427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9428 (eval $ac_try) 2>&5
9429 ac_status=$?
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); }; } &&
9432 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434 (eval $ac_try) 2>&5
9435 ac_status=$?
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); }; }; then
9438 ac_header_compiler=yes
80992638 9439else
ad6254c5
AK
9440 echo "$as_me: failed program was:" >&5
9441sed 's/^/| /' conftest.$ac_ext >&5
9442
9443ac_header_compiler=no
9444fi
5c7fc7c4 9445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9446echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9447echo "${ECHO_T}$ac_header_compiler" >&6
9448
9449# Is the header present?
9450echo "$as_me:$LINENO: checking $ac_header presence" >&5
9451echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9452cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9453/* confdefs.h. */
9454_ACEOF
9455cat confdefs.h >>conftest.$ac_ext
9456cat >>conftest.$ac_ext <<_ACEOF
9457/* end confdefs.h. */
9458#include <$ac_header>
9459_ACEOF
9460if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9462 ac_status=$?
9463 grep -v '^ *+' conftest.er1 >conftest.err
9464 rm -f conftest.er1
9465 cat conftest.err >&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); } >/dev/null; then
9468 if test -s conftest.err; then
9469 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 9470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
9471 else
9472 ac_cpp_err=
9473 fi
9474else
9475 ac_cpp_err=yes
795ca3e5 9476fi
ad6254c5
AK
9477if test -z "$ac_cpp_err"; then
9478 ac_header_preproc=yes
9479else
9480 echo "$as_me: failed program was:" >&5
9481sed 's/^/| /' conftest.$ac_ext >&5
9482
9483 ac_header_preproc=no
9484fi
9485rm -f conftest.err conftest.$ac_ext
9486echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9487echo "${ECHO_T}$ac_header_preproc" >&6
9488
9489# So? What about this header?
5c7fc7c4
PC
9490case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9491 yes:no: )
ad6254c5
AK
9492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9493echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
9494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9495echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9496 ac_header_preproc=yes
ad6254c5 9497 ;;
5c7fc7c4 9498 no:yes:* )
ad6254c5
AK
9499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9500echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
9501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9502echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9504echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9506echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
9507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9508echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
9509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9510echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
9511 (
9512 cat <<\_ASBOX
5c7fc7c4
PC
9513## ------------------------------------------ ##
9514## Report this to the AC_PACKAGE_NAME lists. ##
9515## ------------------------------------------ ##
ad6254c5
AK
9516_ASBOX
9517 ) |
9518 sed "s/^/$as_me: WARNING: /" >&2
9519 ;;
9520esac
9521echo "$as_me:$LINENO: checking for $ac_header" >&5
9522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9523if eval "test \"\${$as_ac_Header+set}\" = set"; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
9525else
5c7fc7c4 9526 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 9527fi
ad6254c5
AK
9528echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9529echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8106cdd5 9530
795ca3e5 9531fi
ad6254c5
AK
9532if test `eval echo '${'$as_ac_Header'}'` = yes; then
9533 cat >>confdefs.h <<_ACEOF
9534#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9535_ACEOF
9536
795ca3e5
AK
9537fi
9538
ad6254c5
AK
9539done
9540
9541echo "$as_me:$LINENO: checking types of arguments for select" >&5
9542echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
9543if test "${ac_cv_func_select_args+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
26e7f2e0 9545else
ad6254c5
AK
9546 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9547 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9548 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9549 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9550/* confdefs.h. */
9551_ACEOF
9552cat confdefs.h >>conftest.$ac_ext
9553cat >>conftest.$ac_ext <<_ACEOF
9554/* end confdefs.h. */
9555$ac_includes_default
9556#if HAVE_SYS_SELECT_H
9557# include <sys/select.h>
9558#endif
9559#if HAVE_SYS_SOCKET_H
9560# include <sys/socket.h>
9561#endif
9562
9563int
9564main ()
9565{
9566extern int select ($ac_arg1,
5c7fc7c4
PC
9567 $ac_arg234, $ac_arg234, $ac_arg234,
9568 $ac_arg5);
ad6254c5
AK
9569 ;
9570 return 0;
9571}
9572_ACEOF
9573rm -f conftest.$ac_objext
9574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 9575 (eval $ac_compile) 2>conftest.er1
ad6254c5 9576 ac_status=$?
5c7fc7c4
PC
9577 grep -v '^ *+' conftest.er1 >conftest.err
9578 rm -f conftest.er1
9579 cat conftest.err >&5
ad6254c5
AK
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } &&
5c7fc7c4
PC
9582 { ac_try='test -z "$ac_c_werror_flag"
9583 || test ! -s conftest.err'
9584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585 (eval $ac_try) 2>&5
9586 ac_status=$?
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); }; } &&
9589 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591 (eval $ac_try) 2>&5
9592 ac_status=$?
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; }; then
9595 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9596else
9597 echo "$as_me: failed program was:" >&5
9598sed 's/^/| /' conftest.$ac_ext >&5
9599
9600fi
5c7fc7c4 9601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9602 done
9603 done
9604done
9605# Provide a safe default value.
9606: ${ac_cv_func_select_args='int,int *,struct timeval *'}
9607
26e7f2e0 9608fi
ad6254c5
AK
9609echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
9610echo "${ECHO_T}$ac_cv_func_select_args" >&6
9611ac_save_IFS=$IFS; IFS=','
9612set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9613IFS=$ac_save_IFS
9614shift
9615
9616cat >>confdefs.h <<_ACEOF
9617#define SELECT_TYPE_ARG1 $1
9618_ACEOF
9619
9620
9621cat >>confdefs.h <<_ACEOF
9622#define SELECT_TYPE_ARG234 ($2)
9623_ACEOF
9624
9625
9626cat >>confdefs.h <<_ACEOF
9627#define SELECT_TYPE_ARG5 ($3)
9628_ACEOF
9629
80992638 9630rm -f conftest*
80992638 9631
8106cdd5 9632fi
ad6254c5
AK
9633
9634if test x$FSADM = xyes; then
9635
9636
9637
9638for ac_header in fstab.h sys/mount.h sys/vfs.h
9639do
9640as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9641if eval "test \"\${$as_ac_Header+set}\" = set"; then
9642 echo "$as_me:$LINENO: checking for $ac_header" >&5
9643echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9644if eval "test \"\${$as_ac_Header+set}\" = set"; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9646fi
9647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9648echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9649else
9650 # Is the header compilable?
9651echo "$as_me:$LINENO: checking $ac_header usability" >&5
9652echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9653cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9654/* confdefs.h. */
9655_ACEOF
9656cat confdefs.h >>conftest.$ac_ext
9657cat >>conftest.$ac_ext <<_ACEOF
9658/* end confdefs.h. */
9659$ac_includes_default
9660#include <$ac_header>
9661_ACEOF
9662rm -f conftest.$ac_objext
9663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 9664 (eval $ac_compile) 2>conftest.er1
ad6254c5 9665 ac_status=$?
5c7fc7c4
PC
9666 grep -v '^ *+' conftest.er1 >conftest.err
9667 rm -f conftest.er1
9668 cat conftest.err >&5
ad6254c5
AK
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); } &&
5c7fc7c4
PC
9671 { ac_try='test -z "$ac_c_werror_flag"
9672 || test ! -s conftest.err'
9673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674 (eval $ac_try) 2>&5
9675 ac_status=$?
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); }; } &&
9678 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680 (eval $ac_try) 2>&5
9681 ac_status=$?
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); }; }; then
9684 ac_header_compiler=yes
9685else
9686 echo "$as_me: failed program was:" >&5
9687sed 's/^/| /' conftest.$ac_ext >&5
9688
9689ac_header_compiler=no
9690fi
5c7fc7c4 9691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9692echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9693echo "${ECHO_T}$ac_header_compiler" >&6
9694
9695# Is the header present?
9696echo "$as_me:$LINENO: checking $ac_header presence" >&5
9697echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9698cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9699/* confdefs.h. */
9700_ACEOF
9701cat confdefs.h >>conftest.$ac_ext
9702cat >>conftest.$ac_ext <<_ACEOF
9703/* end confdefs.h. */
9704#include <$ac_header>
9705_ACEOF
9706if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9708 ac_status=$?
9709 grep -v '^ *+' conftest.er1 >conftest.err
9710 rm -f conftest.er1
9711 cat conftest.err >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } >/dev/null; then
9714 if test -s conftest.err; then
9715 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 9716 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
9717 else
9718 ac_cpp_err=
9719 fi
9720else
9721 ac_cpp_err=yes
9722fi
9723if test -z "$ac_cpp_err"; then
9724 ac_header_preproc=yes
9725else
9726 echo "$as_me: failed program was:" >&5
9727sed 's/^/| /' conftest.$ac_ext >&5
9728
9729 ac_header_preproc=no
9730fi
9731rm -f conftest.err conftest.$ac_ext
9732echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9733echo "${ECHO_T}$ac_header_preproc" >&6
9734
9735# So? What about this header?
5c7fc7c4
PC
9736case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9737 yes:no: )
ad6254c5
AK
9738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9739echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
9740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9741echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9742 ac_header_preproc=yes
ad6254c5 9743 ;;
5c7fc7c4 9744 no:yes:* )
ad6254c5
AK
9745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9746echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
9747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9748echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9750echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9752echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
9753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9754echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
9755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9756echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
9757 (
9758 cat <<\_ASBOX
5c7fc7c4
PC
9759## ------------------------------------------ ##
9760## Report this to the AC_PACKAGE_NAME lists. ##
9761## ------------------------------------------ ##
ad6254c5
AK
9762_ASBOX
9763 ) |
9764 sed "s/^/$as_me: WARNING: /" >&2
9765 ;;
9766esac
9767echo "$as_me:$LINENO: checking for $ac_header" >&5
9768echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9769if eval "test \"\${$as_ac_Header+set}\" = set"; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
26e7f2e0 9771else
5c7fc7c4 9772 eval "$as_ac_Header=\$ac_header_preproc"
26e7f2e0 9773fi
ad6254c5
AK
9774echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9775echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26e7f2e0 9776
ad6254c5
AK
9777fi
9778if test `eval echo '${'$as_ac_Header'}'` = yes; then
9779 cat >>confdefs.h <<_ACEOF
9780#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9781_ACEOF
26e7f2e0 9782
d68a82ec 9783else
ad6254c5
AK
9784 { { echo "$as_me:$LINENO: error: bailing out" >&5
9785echo "$as_me: error: bailing out" >&2;}
9786 { (exit 1); exit 1; }; }
26e7f2e0
AK
9787fi
9788
ad6254c5 9789done
036f273a 9790
ad6254c5
AK
9791
9792for ac_func in memmove
9793do
9794as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9795echo "$as_me:$LINENO: checking for $ac_func" >&5
9796echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9797if eval "test \"\${$as_ac_var+set}\" = set"; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
036f273a 9799else
ad6254c5 9800 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9801/* confdefs.h. */
9802_ACEOF
9803cat confdefs.h >>conftest.$ac_ext
9804cat >>conftest.$ac_ext <<_ACEOF
9805/* end confdefs.h. */
5c7fc7c4
PC
9806/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9808#define $ac_func innocuous_$ac_func
9809
ad6254c5
AK
9810/* System header to define __stub macros and hopefully few prototypes,
9811 which can conflict with char $ac_func (); below.
9812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9813 <limits.h> exists even on freestanding compilers. */
5c7fc7c4 9814
ad6254c5
AK
9815#ifdef __STDC__
9816# include <limits.h>
9817#else
9818# include <assert.h>
9819#endif
5c7fc7c4
PC
9820
9821#undef $ac_func
9822
036f273a 9823/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
9824#ifdef __cplusplus
9825extern "C"
9826{
9827#endif
036f273a 9828/* We use char because int might match the return type of a gcc2
ad6254c5
AK
9829 builtin and then its argument prototype would still apply. */
9830char $ac_func ();
9831/* The GNU C library defines this for functions which it implements
9832 to always fail with ENOSYS. Some functions are actually named
9833 something starting with __ and the normal name is an alias. */
9834#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9835choke me
9836#else
9837char (*f) () = $ac_func;
9838#endif
9839#ifdef __cplusplus
9840}
9841#endif
80992638 9842
ad6254c5
AK
9843int
9844main ()
9845{
9846return f != $ac_func;
9847 ;
9848 return 0;
9849}
9850_ACEOF
9851rm -f conftest.$ac_objext conftest$ac_exeext
9852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 9853 (eval $ac_link) 2>conftest.er1
ad6254c5 9854 ac_status=$?
5c7fc7c4
PC
9855 grep -v '^ *+' conftest.er1 >conftest.err
9856 rm -f conftest.er1
9857 cat conftest.err >&5
ad6254c5
AK
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
5c7fc7c4
PC
9860 { ac_try='test -z "$ac_c_werror_flag"
9861 || test ! -s conftest.err'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 (eval $ac_try) 2>&5
9864 ac_status=$?
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; } &&
9867 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 (eval $ac_try) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 eval "$as_ac_var=yes"
036f273a 9874else
ad6254c5
AK
9875 echo "$as_me: failed program was:" >&5
9876sed 's/^/| /' conftest.$ac_ext >&5
9877
9878eval "$as_ac_var=no"
036f273a 9879fi
5c7fc7c4
PC
9880rm -f conftest.err conftest.$ac_objext \
9881 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9882fi
9883echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9884echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9885if test `eval echo '${'$as_ac_var'}'` = yes; then
9886 cat >>confdefs.h <<_ACEOF
9887#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9888_ACEOF
036f273a 9889
ad6254c5
AK
9890else
9891 { { echo "$as_me:$LINENO: error: bailing out" >&5
9892echo "$as_me: error: bailing out" >&2;}
9893 { (exit 1); exit 1; }; }
9894fi
9895done
036f273a 9896
036f273a 9897fi
d68a82ec 9898
ad6254c5
AK
9899if test x$CLUSTER != xnone; then
9900
9901
9902for ac_header in sys/socket.h sys/un.h
b896caa1 9903do
ad6254c5
AK
9904as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9905if eval "test \"\${$as_ac_Header+set}\" = set"; then
9906 echo "$as_me:$LINENO: checking for $ac_header" >&5
9907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9908if eval "test \"\${$as_ac_Header+set}\" = set"; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
9910fi
9911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9913else
9914 # Is the header compilable?
9915echo "$as_me:$LINENO: checking $ac_header usability" >&5
9916echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9917cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9918/* confdefs.h. */
9919_ACEOF
9920cat confdefs.h >>conftest.$ac_ext
9921cat >>conftest.$ac_ext <<_ACEOF
9922/* end confdefs.h. */
9923$ac_includes_default
9924#include <$ac_header>
9925_ACEOF
9926rm -f conftest.$ac_objext
9927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 9928 (eval $ac_compile) 2>conftest.er1
ad6254c5 9929 ac_status=$?
5c7fc7c4
PC
9930 grep -v '^ *+' conftest.er1 >conftest.err
9931 rm -f conftest.er1
9932 cat conftest.err >&5
ad6254c5
AK
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } &&
5c7fc7c4
PC
9935 { ac_try='test -z "$ac_c_werror_flag"
9936 || test ! -s conftest.err'
9937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938 (eval $ac_try) 2>&5
9939 ac_status=$?
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); }; } &&
9942 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944 (eval $ac_try) 2>&5
9945 ac_status=$?
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; }; then
9948 ac_header_compiler=yes
9949else
9950 echo "$as_me: failed program was:" >&5
9951sed 's/^/| /' conftest.$ac_ext >&5
9952
9953ac_header_compiler=no
9954fi
5c7fc7c4 9955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9956echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9957echo "${ECHO_T}$ac_header_compiler" >&6
9958
9959# Is the header present?
9960echo "$as_me:$LINENO: checking $ac_header presence" >&5
9961echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9962cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9963/* confdefs.h. */
9964_ACEOF
9965cat confdefs.h >>conftest.$ac_ext
9966cat >>conftest.$ac_ext <<_ACEOF
9967/* end confdefs.h. */
9968#include <$ac_header>
9969_ACEOF
9970if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9972 ac_status=$?
9973 grep -v '^ *+' conftest.er1 >conftest.err
9974 rm -f conftest.er1
9975 cat conftest.err >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } >/dev/null; then
9978 if test -s conftest.err; then
9979 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 9980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
9981 else
9982 ac_cpp_err=
9983 fi
9984else
9985 ac_cpp_err=yes
8106cdd5 9986fi
ad6254c5
AK
9987if test -z "$ac_cpp_err"; then
9988 ac_header_preproc=yes
9989else
9990 echo "$as_me: failed program was:" >&5
9991sed 's/^/| /' conftest.$ac_ext >&5
9992
9993 ac_header_preproc=no
9994fi
9995rm -f conftest.err conftest.$ac_ext
9996echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9997echo "${ECHO_T}$ac_header_preproc" >&6
9998
9999# So? What about this header?
5c7fc7c4
PC
10000case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10001 yes:no: )
ad6254c5
AK
10002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10003echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
10004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10005echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10006 ac_header_preproc=yes
ad6254c5 10007 ;;
5c7fc7c4 10008 no:yes:* )
ad6254c5
AK
10009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10010echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
10011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10012echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10014echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10016echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10018echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
10019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10020echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10021 (
10022 cat <<\_ASBOX
5c7fc7c4
PC
10023## ------------------------------------------ ##
10024## Report this to the AC_PACKAGE_NAME lists. ##
10025## ------------------------------------------ ##
ad6254c5
AK
10026_ASBOX
10027 ) |
10028 sed "s/^/$as_me: WARNING: /" >&2
10029 ;;
10030esac
10031echo "$as_me:$LINENO: checking for $ac_header" >&5
10032echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10033if eval "test \"\${$as_ac_Header+set}\" = set"; then
10034 echo $ECHO_N "(cached) $ECHO_C" >&6
10035else
5c7fc7c4 10036 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 10037fi
ad6254c5
AK
10038echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10039echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10040
10041fi
10042if test `eval echo '${'$as_ac_Header'}'` = yes; then
10043 cat >>confdefs.h <<_ACEOF
10044#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10045_ACEOF
10046
80992638 10047else
ad6254c5
AK
10048 { { echo "$as_me:$LINENO: error: bailing out" >&5
10049echo "$as_me: error: bailing out" >&2;}
10050 { (exit 1); exit 1; }; }
b896caa1 10051fi
ad6254c5 10052
b896caa1
AK
10053done
10054
10055
ad6254c5
AK
10056for ac_func in socket
10057do
10058as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10059echo "$as_me:$LINENO: checking for $ac_func" >&5
10060echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10061if eval "test \"\${$as_ac_var+set}\" = set"; then
10062 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 10063else
ad6254c5 10064 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10065/* confdefs.h. */
10066_ACEOF
10067cat confdefs.h >>conftest.$ac_ext
10068cat >>conftest.$ac_ext <<_ACEOF
10069/* end confdefs.h. */
5c7fc7c4
PC
10070/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10072#define $ac_func innocuous_$ac_func
10073
ad6254c5
AK
10074/* System header to define __stub macros and hopefully few prototypes,
10075 which can conflict with char $ac_func (); below.
10076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10077 <limits.h> exists even on freestanding compilers. */
5c7fc7c4 10078
ad6254c5
AK
10079#ifdef __STDC__
10080# include <limits.h>
10081#else
10082# include <assert.h>
10083#endif
5c7fc7c4
PC
10084
10085#undef $ac_func
10086
795ca3e5 10087/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
10088#ifdef __cplusplus
10089extern "C"
10090{
10091#endif
795ca3e5 10092/* We use char because int might match the return type of a gcc2
ad6254c5
AK
10093 builtin and then its argument prototype would still apply. */
10094char $ac_func ();
10095/* The GNU C library defines this for functions which it implements
10096 to always fail with ENOSYS. Some functions are actually named
10097 something starting with __ and the normal name is an alias. */
10098#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10099choke me
10100#else
10101char (*f) () = $ac_func;
10102#endif
10103#ifdef __cplusplus
10104}
10105#endif
10106
10107int
10108main ()
10109{
10110return f != $ac_func;
10111 ;
10112 return 0;
10113}
10114_ACEOF
10115rm -f conftest.$ac_objext conftest$ac_exeext
10116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 10117 (eval $ac_link) 2>conftest.er1
ad6254c5 10118 ac_status=$?
5c7fc7c4
PC
10119 grep -v '^ *+' conftest.er1 >conftest.err
10120 rm -f conftest.er1
10121 cat conftest.err >&5
ad6254c5
AK
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } &&
5c7fc7c4
PC
10124 { ac_try='test -z "$ac_c_werror_flag"
10125 || test ! -s conftest.err'
10126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127 (eval $ac_try) 2>&5
10128 ac_status=$?
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); }; } &&
10131 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
10132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10133 (eval $ac_try) 2>&5
10134 ac_status=$?
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); }; }; then
10137 eval "$as_ac_var=yes"
10138else
10139 echo "$as_me: failed program was:" >&5
10140sed 's/^/| /' conftest.$ac_ext >&5
10141
10142eval "$as_ac_var=no"
10143fi
5c7fc7c4
PC
10144rm -f conftest.err conftest.$ac_objext \
10145 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10146fi
10147echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10148echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10149if test `eval echo '${'$as_ac_var'}'` = yes; then
10150 cat >>confdefs.h <<_ACEOF
10151#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10152_ACEOF
10153
10154else
10155 { { echo "$as_me:$LINENO: error: bailing out" >&5
10156echo "$as_me: error: bailing out" >&2;}
10157 { (exit 1); exit 1; }; }
10158fi
10159done
10160
10161fi
10162
10163if test x$HAVE_LIBDL = xyes; then
10164
10165for ac_header in dlfcn.h
10166do
10167as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10168if eval "test \"\${$as_ac_Header+set}\" = set"; then
10169 echo "$as_me:$LINENO: checking for $ac_header" >&5
10170echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10171if eval "test \"\${$as_ac_Header+set}\" = set"; then
10172 echo $ECHO_N "(cached) $ECHO_C" >&6
10173fi
10174echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10175echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10176else
10177 # Is the header compilable?
10178echo "$as_me:$LINENO: checking $ac_header usability" >&5
10179echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10180cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10181/* confdefs.h. */
10182_ACEOF
10183cat confdefs.h >>conftest.$ac_ext
10184cat >>conftest.$ac_ext <<_ACEOF
10185/* end confdefs.h. */
10186$ac_includes_default
10187#include <$ac_header>
10188_ACEOF
10189rm -f conftest.$ac_objext
10190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 10191 (eval $ac_compile) 2>conftest.er1
ad6254c5 10192 ac_status=$?
5c7fc7c4
PC
10193 grep -v '^ *+' conftest.er1 >conftest.err
10194 rm -f conftest.er1
10195 cat conftest.err >&5
ad6254c5
AK
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); } &&
5c7fc7c4
PC
10198 { ac_try='test -z "$ac_c_werror_flag"
10199 || test ! -s conftest.err'
10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201 (eval $ac_try) 2>&5
10202 ac_status=$?
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; } &&
10205 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207 (eval $ac_try) 2>&5
10208 ac_status=$?
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; }; then
10211 ac_header_compiler=yes
10212else
10213 echo "$as_me: failed program was:" >&5
10214sed 's/^/| /' conftest.$ac_ext >&5
10215
10216ac_header_compiler=no
10217fi
5c7fc7c4 10218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10219echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10220echo "${ECHO_T}$ac_header_compiler" >&6
10221
10222# Is the header present?
10223echo "$as_me:$LINENO: checking $ac_header presence" >&5
10224echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10225cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10226/* confdefs.h. */
10227_ACEOF
10228cat confdefs.h >>conftest.$ac_ext
10229cat >>conftest.$ac_ext <<_ACEOF
10230/* end confdefs.h. */
10231#include <$ac_header>
10232_ACEOF
10233if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10235 ac_status=$?
10236 grep -v '^ *+' conftest.er1 >conftest.err
10237 rm -f conftest.er1
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } >/dev/null; then
10241 if test -s conftest.err; then
10242 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 10243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
10244 else
10245 ac_cpp_err=
10246 fi
10247else
10248 ac_cpp_err=yes
10249fi
10250if test -z "$ac_cpp_err"; then
10251 ac_header_preproc=yes
10252else
10253 echo "$as_me: failed program was:" >&5
10254sed 's/^/| /' conftest.$ac_ext >&5
10255
10256 ac_header_preproc=no
10257fi
10258rm -f conftest.err conftest.$ac_ext
10259echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10260echo "${ECHO_T}$ac_header_preproc" >&6
10261
10262# So? What about this header?
5c7fc7c4
PC
10263case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10264 yes:no: )
ad6254c5
AK
10265 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10266echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
10267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10268echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10269 ac_header_preproc=yes
ad6254c5 10270 ;;
5c7fc7c4 10271 no:yes:* )
ad6254c5
AK
10272 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10273echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
10274 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10275echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10276 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10277echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10278 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10279echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10281echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
10282 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10283echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10284 (
10285 cat <<\_ASBOX
5c7fc7c4
PC
10286## ------------------------------------------ ##
10287## Report this to the AC_PACKAGE_NAME lists. ##
10288## ------------------------------------------ ##
ad6254c5
AK
10289_ASBOX
10290 ) |
10291 sed "s/^/$as_me: WARNING: /" >&2
10292 ;;
10293esac
10294echo "$as_me:$LINENO: checking for $ac_header" >&5
10295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10296if eval "test \"\${$as_ac_Header+set}\" = set"; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10298else
5c7fc7c4 10299 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 10300fi
ad6254c5
AK
10301echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10302echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
80992638 10303
8106cdd5 10304fi
ad6254c5
AK
10305if test `eval echo '${'$as_ac_Header'}'` = yes; then
10306 cat >>confdefs.h <<_ACEOF
10307#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10308_ACEOF
795ca3e5
AK
10309
10310else
ad6254c5
AK
10311 { { echo "$as_me:$LINENO: error: bailing out" >&5
10312echo "$as_me: error: bailing out" >&2;}
10313 { (exit 1); exit 1; }; }
795ca3e5
AK
10314fi
10315
ad6254c5 10316done
80992638 10317
ad6254c5 10318fi
80992638 10319
ad6254c5 10320if test x$INTL = xyes; then
83912faa 10321
ad6254c5
AK
10322for ac_header in libintl.h
10323do
10324as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10325if eval "test \"\${$as_ac_Header+set}\" = set"; then
10326 echo "$as_me:$LINENO: checking for $ac_header" >&5
10327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10328if eval "test \"\${$as_ac_Header+set}\" = set"; then
10329 echo $ECHO_N "(cached) $ECHO_C" >&6
10330fi
10331echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10332echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
83912faa 10333else
ad6254c5
AK
10334 # Is the header compilable?
10335echo "$as_me:$LINENO: checking $ac_header usability" >&5
10336echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10337cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10338/* confdefs.h. */
10339_ACEOF
10340cat confdefs.h >>conftest.$ac_ext
10341cat >>conftest.$ac_ext <<_ACEOF
10342/* end confdefs.h. */
10343$ac_includes_default
10344#include <$ac_header>
10345_ACEOF
10346rm -f conftest.$ac_objext
10347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 10348 (eval $ac_compile) 2>conftest.er1
ad6254c5 10349 ac_status=$?
5c7fc7c4
PC
10350 grep -v '^ *+' conftest.er1 >conftest.err
10351 rm -f conftest.er1
10352 cat conftest.err >&5
ad6254c5
AK
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); } &&
5c7fc7c4
PC
10355 { ac_try='test -z "$ac_c_werror_flag"
10356 || test ! -s conftest.err'
10357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10358 (eval $ac_try) 2>&5
10359 ac_status=$?
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); }; } &&
10362 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364 (eval $ac_try) 2>&5
10365 ac_status=$?
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); }; }; then
10368 ac_header_compiler=yes
10369else
10370 echo "$as_me: failed program was:" >&5
10371sed 's/^/| /' conftest.$ac_ext >&5
10372
10373ac_header_compiler=no
10374fi
5c7fc7c4 10375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10376echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10377echo "${ECHO_T}$ac_header_compiler" >&6
10378
10379# Is the header present?
10380echo "$as_me:$LINENO: checking $ac_header presence" >&5
10381echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10382cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10383/* confdefs.h. */
10384_ACEOF
10385cat confdefs.h >>conftest.$ac_ext
10386cat >>conftest.$ac_ext <<_ACEOF
10387/* end confdefs.h. */
10388#include <$ac_header>
10389_ACEOF
10390if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10392 ac_status=$?
10393 grep -v '^ *+' conftest.er1 >conftest.err
10394 rm -f conftest.er1
10395 cat conftest.err >&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); } >/dev/null; then
10398 if test -s conftest.err; then
10399 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 10400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
10401 else
10402 ac_cpp_err=
10403 fi
10404else
10405 ac_cpp_err=yes
795ca3e5 10406fi
ad6254c5
AK
10407if test -z "$ac_cpp_err"; then
10408 ac_header_preproc=yes
10409else
10410 echo "$as_me: failed program was:" >&5
10411sed 's/^/| /' conftest.$ac_ext >&5
10412
10413 ac_header_preproc=no
10414fi
10415rm -f conftest.err conftest.$ac_ext
10416echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10417echo "${ECHO_T}$ac_header_preproc" >&6
10418
10419# So? What about this header?
5c7fc7c4
PC
10420case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10421 yes:no: )
ad6254c5
AK
10422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10423echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
10424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10425echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10426 ac_header_preproc=yes
ad6254c5 10427 ;;
5c7fc7c4 10428 no:yes:* )
ad6254c5
AK
10429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10430echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
10431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10432echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10434echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10436echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10438echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
10439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10440echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10441 (
10442 cat <<\_ASBOX
5c7fc7c4
PC
10443## ------------------------------------------ ##
10444## Report this to the AC_PACKAGE_NAME lists. ##
10445## ------------------------------------------ ##
ad6254c5
AK
10446_ASBOX
10447 ) |
10448 sed "s/^/$as_me: WARNING: /" >&2
10449 ;;
10450esac
10451echo "$as_me:$LINENO: checking for $ac_header" >&5
10452echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10453if eval "test \"\${$as_ac_Header+set}\" = set"; then
10454 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 10455else
5c7fc7c4 10456 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 10457fi
ad6254c5
AK
10458echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10459echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
83912faa 10460
69792976 10461fi
ad6254c5
AK
10462if test `eval echo '${'$as_ac_Header'}'` = yes; then
10463 cat >>confdefs.h <<_ACEOF
10464#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10465_ACEOF
69792976 10466
69792976 10467else
ad6254c5
AK
10468 { { echo "$as_me:$LINENO: error: bailing out" >&5
10469echo "$as_me: error: bailing out" >&2;}
10470 { (exit 1); exit 1; }; }
80992638
AK
10471fi
10472
ad6254c5 10473done
69792976 10474
ad6254c5
AK
10475fi
10476
10477if test x$DEVMAPPER = xyes; then
10478
10479for ac_header in libdevmapper.h
10480do
10481as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10482if eval "test \"\${$as_ac_Header+set}\" = set"; then
10483 echo "$as_me:$LINENO: checking for $ac_header" >&5
10484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10485if eval "test \"\${$as_ac_Header+set}\" = set"; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10487fi
10488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10489echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
69792976 10490else
ad6254c5
AK
10491 # Is the header compilable?
10492echo "$as_me:$LINENO: checking $ac_header usability" >&5
10493echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10494cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10495/* confdefs.h. */
10496_ACEOF
10497cat confdefs.h >>conftest.$ac_ext
10498cat >>conftest.$ac_ext <<_ACEOF
10499/* end confdefs.h. */
10500$ac_includes_default
10501#include <$ac_header>
10502_ACEOF
10503rm -f conftest.$ac_objext
10504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 10505 (eval $ac_compile) 2>conftest.er1
ad6254c5 10506 ac_status=$?
5c7fc7c4
PC
10507 grep -v '^ *+' conftest.er1 >conftest.err
10508 rm -f conftest.er1
10509 cat conftest.err >&5
ad6254c5
AK
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } &&
5c7fc7c4
PC
10512 { ac_try='test -z "$ac_c_werror_flag"
10513 || test ! -s conftest.err'
10514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515 (eval $ac_try) 2>&5
10516 ac_status=$?
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); }; } &&
10519 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521 (eval $ac_try) 2>&5
10522 ac_status=$?
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; }; then
10525 ac_header_compiler=yes
10526else
10527 echo "$as_me: failed program was:" >&5
10528sed 's/^/| /' conftest.$ac_ext >&5
10529
10530ac_header_compiler=no
10531fi
5c7fc7c4 10532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10533echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10534echo "${ECHO_T}$ac_header_compiler" >&6
10535
10536# Is the header present?
10537echo "$as_me:$LINENO: checking $ac_header presence" >&5
10538echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10539cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10540/* confdefs.h. */
10541_ACEOF
10542cat confdefs.h >>conftest.$ac_ext
10543cat >>conftest.$ac_ext <<_ACEOF
10544/* end confdefs.h. */
10545#include <$ac_header>
10546_ACEOF
10547if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10548 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10549 ac_status=$?
10550 grep -v '^ *+' conftest.er1 >conftest.err
10551 rm -f conftest.er1
10552 cat conftest.err >&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); } >/dev/null; then
10555 if test -s conftest.err; then
10556 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 10557 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
10558 else
10559 ac_cpp_err=
10560 fi
10561else
10562 ac_cpp_err=yes
69792976 10563fi
ad6254c5
AK
10564if test -z "$ac_cpp_err"; then
10565 ac_header_preproc=yes
10566else
10567 echo "$as_me: failed program was:" >&5
10568sed 's/^/| /' conftest.$ac_ext >&5
10569
10570 ac_header_preproc=no
10571fi
10572rm -f conftest.err conftest.$ac_ext
10573echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10574echo "${ECHO_T}$ac_header_preproc" >&6
10575
10576# So? What about this header?
5c7fc7c4
PC
10577case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10578 yes:no: )
ad6254c5
AK
10579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10580echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
10581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10582echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10583 ac_header_preproc=yes
ad6254c5 10584 ;;
5c7fc7c4 10585 no:yes:* )
ad6254c5
AK
10586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10587echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
10588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10589echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10591echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10593echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10595echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
10596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10597echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10598 (
10599 cat <<\_ASBOX
5c7fc7c4
PC
10600## ------------------------------------------ ##
10601## Report this to the AC_PACKAGE_NAME lists. ##
10602## ------------------------------------------ ##
ad6254c5
AK
10603_ASBOX
10604 ) |
10605 sed "s/^/$as_me: WARNING: /" >&2
10606 ;;
10607esac
10608echo "$as_me:$LINENO: checking for $ac_header" >&5
10609echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10610if eval "test \"\${$as_ac_Header+set}\" = set"; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
69792976 10612else
5c7fc7c4 10613 eval "$as_ac_Header=\$ac_header_preproc"
69792976 10614fi
ad6254c5
AK
10615echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10616echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
69792976 10617
ad6254c5
AK
10618fi
10619if test `eval echo '${'$as_ac_Header'}'` = yes; then
10620 cat >>confdefs.h <<_ACEOF
10621#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10622_ACEOF
69792976 10623
69792976 10624else
ad6254c5
AK
10625 { { echo "$as_me:$LINENO: error: bailing out" >&5
10626echo "$as_me: error: bailing out" >&2;}
10627 { (exit 1); exit 1; }; }
83912faa
AK
10628fi
10629
ad6254c5
AK
10630done
10631
80992638 10632fi
4a7f3eb2 10633
ad6254c5
AK
10634if test x$HAVE_SELINUX = xyes; then
10635
10636for ac_header in selinux/selinux.h
10637do
10638as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10639if eval "test \"\${$as_ac_Header+set}\" = set"; then
10640 echo "$as_me:$LINENO: checking for $ac_header" >&5
10641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10642if eval "test \"\${$as_ac_Header+set}\" = set"; then
10643 echo $ECHO_N "(cached) $ECHO_C" >&6
10644fi
10645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4a7f3eb2 10647else
ad6254c5
AK
10648 # Is the header compilable?
10649echo "$as_me:$LINENO: checking $ac_header usability" >&5
10650echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10651cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10652/* confdefs.h. */
10653_ACEOF
10654cat confdefs.h >>conftest.$ac_ext
10655cat >>conftest.$ac_ext <<_ACEOF
10656/* end confdefs.h. */
10657$ac_includes_default
10658#include <$ac_header>
10659_ACEOF
10660rm -f conftest.$ac_objext
10661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 10662 (eval $ac_compile) 2>conftest.er1
ad6254c5 10663 ac_status=$?
5c7fc7c4
PC
10664 grep -v '^ *+' conftest.er1 >conftest.err
10665 rm -f conftest.er1
10666 cat conftest.err >&5
ad6254c5
AK
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } &&
5c7fc7c4
PC
10669 { ac_try='test -z "$ac_c_werror_flag"
10670 || test ! -s conftest.err'
10671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672 (eval $ac_try) 2>&5
10673 ac_status=$?
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }; } &&
10676 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10678 (eval $ac_try) 2>&5
10679 ac_status=$?
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }; }; then
10682 ac_header_compiler=yes
10683else
10684 echo "$as_me: failed program was:" >&5
10685sed 's/^/| /' conftest.$ac_ext >&5
10686
10687ac_header_compiler=no
10688fi
5c7fc7c4 10689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10690echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10691echo "${ECHO_T}$ac_header_compiler" >&6
10692
10693# Is the header present?
10694echo "$as_me:$LINENO: checking $ac_header presence" >&5
10695echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10696cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10697/* confdefs.h. */
10698_ACEOF
10699cat confdefs.h >>conftest.$ac_ext
10700cat >>conftest.$ac_ext <<_ACEOF
10701/* end confdefs.h. */
10702#include <$ac_header>
10703_ACEOF
10704if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10706 ac_status=$?
10707 grep -v '^ *+' conftest.er1 >conftest.err
10708 rm -f conftest.er1
10709 cat conftest.err >&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } >/dev/null; then
10712 if test -s conftest.err; then
10713 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 10714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
10715 else
10716 ac_cpp_err=
10717 fi
10718else
10719 ac_cpp_err=yes
10720fi
10721if test -z "$ac_cpp_err"; then
10722 ac_header_preproc=yes
10723else
10724 echo "$as_me: failed program was:" >&5
10725sed 's/^/| /' conftest.$ac_ext >&5
10726
10727 ac_header_preproc=no
10728fi
10729rm -f conftest.err conftest.$ac_ext
10730echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10731echo "${ECHO_T}$ac_header_preproc" >&6
10732
10733# So? What about this header?
5c7fc7c4
PC
10734case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10735 yes:no: )
ad6254c5
AK
10736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10737echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
10738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10739echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10740 ac_header_preproc=yes
ad6254c5 10741 ;;
5c7fc7c4 10742 no:yes:* )
ad6254c5
AK
10743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10744echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
10745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10746echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10748echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10750echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10752echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
10753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10754echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10755 (
10756 cat <<\_ASBOX
5c7fc7c4
PC
10757## ------------------------------------------ ##
10758## Report this to the AC_PACKAGE_NAME lists. ##
10759## ------------------------------------------ ##
ad6254c5
AK
10760_ASBOX
10761 ) |
10762 sed "s/^/$as_me: WARNING: /" >&2
10763 ;;
10764esac
10765echo "$as_me:$LINENO: checking for $ac_header" >&5
10766echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10767if eval "test \"\${$as_ac_Header+set}\" = set"; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10769else
5c7fc7c4 10770 eval "$as_ac_Header=\$ac_header_preproc"
80992638 10771fi
ad6254c5
AK
10772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10773echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4a7f3eb2 10774
ad6254c5
AK
10775fi
10776if test `eval echo '${'$as_ac_Header'}'` = yes; then
10777 cat >>confdefs.h <<_ACEOF
10778#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10779_ACEOF
0a62c911 10780
0a62c911 10781else
ad6254c5
AK
10782 { { echo "$as_me:$LINENO: error: bailing out" >&5
10783echo "$as_me: error: bailing out" >&2;}
10784 { (exit 1); exit 1; }; }
80992638
AK
10785fi
10786
ad6254c5 10787done
0a62c911 10788
ad6254c5 10789fi
0a62c911 10790
a653923f
AK
10791################################################################################
10792# Extract the first word of "modprobe", so it can be a program name with args.
10793set dummy modprobe; ac_word=$2
10794echo "$as_me:$LINENO: checking for $ac_word" >&5
10795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10796if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10798else
10799 case $MODPROBE_CMD in
10800 [\\/]* | ?:[\\/]*)
10801 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
10802 ;;
10803 *)
10804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10805for as_dir in $PATH
10806do
10807 IFS=$as_save_IFS
10808 test -z "$as_dir" && as_dir=.
10809 for ac_exec_ext in '' $ac_executable_extensions; do
10810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10811 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
10812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10813 break 2
10814 fi
10815done
10816done
10817
10818 ;;
10819esac
10820fi
10821MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
10822
10823if test -n "$MODPROBE_CMD"; then
10824 echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
10825echo "${ECHO_T}$MODPROBE_CMD" >&6
10826else
10827 echo "$as_me:$LINENO: result: no" >&5
10828echo "${ECHO_T}no" >&6
10829fi
10830
10831
10832if test x$MODPROBE_CMD != x; then
10833 CFLAGS="$CFLAGS -DMODPROBE_CMD=\\\"$MODPROBE_CMD\\\""
10834fi
10835
80992638 10836################################################################################
fae0c576
AK
10837if test "-f VERSION"; then
10838 LVM_VERSION="\"`cat VERSION`\""
10839else
10840 LVM_VERSION="Unknown"
10841fi
10842
80992638 10843################################################################################
fae0c576 10844
83912faa 10845
795ca3e5
AK
10846
10847
10848
10849
10850
10851
5a52dca9 10852
8ef2b021 10853
199e490e 10854
69792976
AK
10855
10856
10857
10858
8106cdd5
AK
10859
10860
10861
10862
10863
d68a82ec 10864
036f273a 10865
7d1552c9 10866
8106cdd5 10867
0a62c911 10868
8106cdd5 10869
4a7f3eb2 10870
4922197a
AK
10871
10872
d8ac0fbc 10873
1a9ea74d 10874
8ce0cbda 10875
06f62ad1 10876
d3c8211f
AK
10877
10878
80992638 10879################################################################################
06f62ad1 10880 ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile dmeventd/Makefile dmeventd/mirror/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile man/Makefile po/Makefile tools/Makefile tools/version.h tools/fsadm/Makefile test/mm/Makefile test/device/Makefile test/format1/Makefile test/regex/Makefile test/filters/Makefile"
ad6254c5 10881cat >confcache <<\_ACEOF
795ca3e5
AK
10882# This file is a shell script that caches the results of configure
10883# tests run on this system so they can be shared between configure
ad6254c5
AK
10884# scripts and configure runs, see configure's option --config-cache.
10885# It is not useful on other systems. If it contains results you don't
10886# want to keep, you may remove or edit it.
795ca3e5 10887#
ad6254c5
AK
10888# config.status only pays attention to the cache file if you give it
10889# the --recheck option to rerun configure.
795ca3e5 10890#
ad6254c5
AK
10891# `ac_cv_env_foo' variables (set or unset) will be overridden when
10892# loading this file, other *unset* `ac_cv_foo' will be assigned the
10893# following values.
10894
10895_ACEOF
10896
795ca3e5
AK
10897# The following way of writing the cache mishandles newlines in values,
10898# but we know of no workaround that is simple, portable, and efficient.
10899# So, don't put newlines in cache variables' values.
10900# Ultrix sh set writes to stderr and can't be redirected directly,
10901# and sets the high bit in the cache file unless we assign to the vars.
ad6254c5
AK
10902{
10903 (set) 2>&1 |
10904 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10905 *ac_space=\ *)
10906 # `set' does not quote correctly, so add quotes (double-quote
10907 # substitution turns \\\\ into \\, and sed turns \\ into \).
10908 sed -n \
5c7fc7c4
PC
10909 "s/'/'\\\\''/g;
10910 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
ad6254c5
AK
10911 ;;
10912 *)
10913 # `set' quotes correctly as required by POSIX, so do not add quotes.
10914 sed -n \
5c7fc7c4 10915 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
ad6254c5
AK
10916 ;;
10917 esac;
10918} |
10919 sed '
10920 t clear
10921 : clear
10922 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10923 t end
10924 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10925 : end' >>confcache
10926if diff $cache_file confcache >/dev/null 2>&1; then :; else
795ca3e5 10927 if test -w $cache_file; then
ad6254c5
AK
10928 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10929 cat confcache >$cache_file
795ca3e5
AK
10930 else
10931 echo "not updating unwritable cache $cache_file"
10932 fi
10933fi
10934rm -f confcache
10935
795ca3e5
AK
10936test "x$prefix" = xNONE && prefix=$ac_default_prefix
10937# Let make expand exec_prefix.
10938test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10939
ad6254c5
AK
10940# VPATH may cause trouble with some makes, so we remove $(srcdir),
10941# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10942# trailing colons and then remove the whole line if VPATH becomes empty
10943# (actually we leave an empty line to preserve line numbers).
795ca3e5 10944if test "x$srcdir" = x.; then
5c7fc7c4 10945 ac_vpsub='/^[ ]*VPATH[ ]*=/{
ad6254c5
AK
10946s/:*\$(srcdir):*/:/;
10947s/:*\${srcdir}:*/:/;
10948s/:*@srcdir@:*/:/;
5c7fc7c4 10949s/^\([^=]*=[ ]*\):*/\1/;
ad6254c5 10950s/:*$//;
5c7fc7c4 10951s/^[^=]*=[ ]*$//;
ad6254c5 10952}'
795ca3e5
AK
10953fi
10954
795ca3e5
AK
10955# Transform confdefs.h into DEFS.
10956# Protect against shell expansion while executing Makefile rules.
10957# Protect against Makefile macro expansion.
ad6254c5
AK
10958#
10959# If the first sed substitution is executed (which looks for macros that
10960# take arguments), then we branch to the quote section. Otherwise,
10961# look for a macro that doesn't take arguments.
10962cat >confdef2opt.sed <<\_ACEOF
10963t clear
10964: clear
5c7fc7c4 10965s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
ad6254c5 10966t quote
5c7fc7c4 10967s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
ad6254c5
AK
10968t quote
10969d
10970: quote
5c7fc7c4 10971s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
ad6254c5
AK
10972s,\[,\\&,g
10973s,\],\\&,g
10974s,\$,$$,g
10975p
10976_ACEOF
10977# We use echo to avoid assuming a particular line-breaking character.
10978# The extra dot is to prevent the shell from consuming trailing
10979# line-breaks from the sub-command output. A line-break within
10980# single-quotes doesn't work because, if this script is created in a
10981# platform that uses two characters for line-breaks (e.g., DOS), tr
10982# would break.
10983ac_LF_and_DOT=`echo; echo .`
10984DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
10985rm -f confdef2opt.sed
10986
10987
10988ac_libobjs=
10989ac_ltlibobjs=
10990for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10991 # 1. Remove the extension, and $U if already installed.
10992 ac_i=`echo "$ac_i" |
5c7fc7c4 10993 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
ad6254c5
AK
10994 # 2. Add them.
10995 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10996 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10997done
10998LIBOBJS=$ac_libobjs
80992638 10999
ad6254c5
AK
11000LTLIBOBJS=$ac_ltlibobjs
11001
11002
11003
11004: ${CONFIG_STATUS=./config.status}
11005ac_clean_files_save=$ac_clean_files
11006ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11007{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11008echo "$as_me: creating $CONFIG_STATUS" >&6;}
11009cat >$CONFIG_STATUS <<_ACEOF
11010#! $SHELL
11011# Generated by $as_me.
795ca3e5 11012# Run this file to recreate the current configuration.
795ca3e5 11013# Compiler output produced by configure, useful for debugging
ad6254c5
AK
11014# configure, is in config.log if it exists.
11015
11016debug=false
11017ac_cs_recheck=false
11018ac_cs_silent=false
11019SHELL=\${CONFIG_SHELL-$SHELL}
11020_ACEOF
11021
11022cat >>$CONFIG_STATUS <<\_ACEOF
11023## --------------------- ##
11024## M4sh Initialization. ##
11025## --------------------- ##
11026
11027# Be Bourne compatible
11028if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11029 emulate sh
11030 NULLCMD=:
11031 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11032 # is contrary to our usage. Disable this feature.
11033 alias -g '${1+"$@"}'='"$@"'
11034elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11035 set -o posix
11036fi
5c7fc7c4 11037DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
11038
11039# Support unset when possible.
5c7fc7c4 11040if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
11041 as_unset=unset
11042else
11043 as_unset=false
11044fi
8106cdd5 11045
ad6254c5
AK
11046
11047# Work around bugs in pre-3.0 UWIN ksh.
11048$as_unset ENV MAIL MAILPATH
11049PS1='$ '
11050PS2='> '
11051PS4='+ '
11052
11053# NLS nuisances.
11054for as_var in \
11055 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11056 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11057 LC_TELEPHONE LC_TIME
8106cdd5 11058do
5c7fc7c4 11059 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
ad6254c5
AK
11060 eval $as_var=C; export $as_var
11061 else
11062 $as_unset $as_var
11063 fi
8106cdd5
AK
11064done
11065
ad6254c5
AK
11066# Required to use basename.
11067if expr a : '\(a\)' >/dev/null 2>&1; then
11068 as_expr=expr
11069else
11070 as_expr=false
11071fi
8106cdd5 11072
ad6254c5
AK
11073if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11074 as_basename=basename
11075else
11076 as_basename=false
11077fi
11078
11079
11080# Name of the executable.
11081as_me=`$as_basename "$0" ||
11082$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11083 X"$0" : 'X\(//\)$' \| \
11084 X"$0" : 'X\(/\)$' \| \
11085 . : '\(.\)' 2>/dev/null ||
11086echo X/"$0" |
11087 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11088 /^X\/\(\/\/\)$/{ s//\1/; q; }
11089 /^X\/\(\/\).*/{ s//\1/; q; }
11090 s/.*/./; q'`
11091
11092
11093# PATH needs CR, and LINENO needs CR and PATH.
11094# Avoid depending upon Character Ranges.
11095as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11096as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11097as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11098as_cr_digits='0123456789'
11099as_cr_alnum=$as_cr_Letters$as_cr_digits
11100
11101# The user is always right.
11102if test "${PATH_SEPARATOR+set}" != set; then
11103 echo "#! /bin/sh" >conf$$.sh
11104 echo "exit 0" >>conf$$.sh
11105 chmod +x conf$$.sh
11106 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11107 PATH_SEPARATOR=';'
80992638 11108 else
ad6254c5 11109 PATH_SEPARATOR=:
80992638 11110 fi
ad6254c5
AK
11111 rm -f conf$$.sh
11112fi
11113
11114
11115 as_lineno_1=$LINENO
11116 as_lineno_2=$LINENO
11117 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11118 test "x$as_lineno_1" != "x$as_lineno_2" &&
11119 test "x$as_lineno_3" = "x$as_lineno_2" || {
11120 # Find who we are. Look in the path if we contain no path at all
11121 # relative or not.
11122 case $0 in
11123 *[\\/]* ) as_myself=$0 ;;
11124 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11125for as_dir in $PATH
11126do
11127 IFS=$as_save_IFS
11128 test -z "$as_dir" && as_dir=.
11129 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11130done
11131
11132 ;;
11133 esac
11134 # We did not find ourselves, most probably we were run as `sh COMMAND'
11135 # in which case we are not to be found in the path.
11136 if test "x$as_myself" = x; then
11137 as_myself=$0
11138 fi
11139 if test ! -f "$as_myself"; then
11140 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11141echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11142 { (exit 1); exit 1; }; }
8106cdd5 11143 fi
ad6254c5
AK
11144 case $CONFIG_SHELL in
11145 '')
11146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11147for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11148do
11149 IFS=$as_save_IFS
11150 test -z "$as_dir" && as_dir=.
11151 for as_base in sh bash ksh sh5; do
11152 case $as_dir in
11153 /*)
11154 if ("$as_dir/$as_base" -c '
11155 as_lineno_1=$LINENO
11156 as_lineno_2=$LINENO
11157 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11158 test "x$as_lineno_1" != "x$as_lineno_2" &&
11159 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11160 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11161 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11162 CONFIG_SHELL=$as_dir/$as_base
11163 export CONFIG_SHELL
11164 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11165 fi;;
11166 esac
11167 done
80992638 11168done
ad6254c5 11169;;
795ca3e5
AK
11170 esac
11171
ad6254c5
AK
11172 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11173 # uniformly replaced by the line number. The first 'sed' inserts a
11174 # line-number line before each line; the second 'sed' does the real
11175 # work. The second script uses 'N' to pair each line-number line
11176 # with the numbered line, and appends trailing '-' during
11177 # substitution so that $LINENO is not a special case at line end.
11178 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11179 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11180 sed '=' <$as_myself |
11181 sed '
11182 N
11183 s,$,-,
11184 : loop
11185 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11186 t loop
11187 s,-$,,
11188 s,^['$as_cr_digits']*\n,,
11189 ' >$as_me.lineno &&
11190 chmod +x $as_me.lineno ||
11191 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11192echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11193 { (exit 1); exit 1; }; }
11194
11195 # Don't try to exec as it changes $[0], causing all sort of problems
11196 # (the dirname of $[0] is not the place where we might find the
11197 # original and so on. Autoconf is especially sensible to this).
11198 . ./$as_me.lineno
11199 # Exit status is that of the last command.
11200 exit
11201}
11202
11203
11204case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11205 *c*,-n*) ECHO_N= ECHO_C='
11206' ECHO_T=' ' ;;
11207 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11208 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11209esac
11210
11211if expr a : '\(a\)' >/dev/null 2>&1; then
11212 as_expr=expr
11213else
11214 as_expr=false
11215fi
80992638 11216
ad6254c5
AK
11217rm -f conf$$ conf$$.exe conf$$.file
11218echo >conf$$.file
11219if ln -s conf$$.file conf$$ 2>/dev/null; then
11220 # We could just check for DJGPP; but this test a) works b) is more generic
11221 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11222 if test -f conf$$.exe; then
11223 # Don't use ln at all; we don't have any links
11224 as_ln_s='cp -p'
8106cdd5 11225 else
ad6254c5 11226 as_ln_s='ln -s'
80992638 11227 fi
ad6254c5
AK
11228elif ln conf$$.file conf$$ 2>/dev/null; then
11229 as_ln_s=ln
11230else
11231 as_ln_s='cp -p'
11232fi
11233rm -f conf$$ conf$$.exe conf$$.file
8106cdd5 11234
ad6254c5
AK
11235if mkdir -p . 2>/dev/null; then
11236 as_mkdir_p=:
11237else
5c7fc7c4 11238 test -d ./-p && rmdir ./-p
ad6254c5
AK
11239 as_mkdir_p=false
11240fi
11241
11242as_executable_p="test -f"
11243
11244# Sed expression to map a string onto a valid CPP name.
5c7fc7c4 11245as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
11246
11247# Sed expression to map a string onto a valid variable name.
5c7fc7c4 11248as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
11249
11250
11251# IFS
11252# We need space, tab and new line, in precisely that order.
11253as_nl='
11254'
11255IFS=" $as_nl"
11256
11257# CDPATH.
11258$as_unset CDPATH
11259
11260exec 6>&1
11261
11262# Open the log real soon, to keep \$[0] and so on meaningful, and to
11263# report actual input values of CONFIG_FILES etc. instead of their
11264# values after options handling. Logging --version etc. is OK.
11265exec 5>>config.log
11266{
11267 echo
11268 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11269## Running $as_me. ##
11270_ASBOX
11271} >&5
11272cat >&5 <<_CSEOF
11273
11274This file was extended by $as_me, which was
5c7fc7c4 11275generated by GNU Autoconf 2.59. Invocation command line was
ad6254c5
AK
11276
11277 CONFIG_FILES = $CONFIG_FILES
11278 CONFIG_HEADERS = $CONFIG_HEADERS
11279 CONFIG_LINKS = $CONFIG_LINKS
11280 CONFIG_COMMANDS = $CONFIG_COMMANDS
11281 $ $0 $@
11282
11283_CSEOF
11284echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11285echo >&5
11286_ACEOF
11287
11288# Files that config.status was made for.
11289if test -n "$ac_config_files"; then
11290 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11291fi
11292
11293if test -n "$ac_config_headers"; then
11294 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11295fi
11296
11297if test -n "$ac_config_links"; then
11298 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11299fi
11300
11301if test -n "$ac_config_commands"; then
11302 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11303fi
11304
11305cat >>$CONFIG_STATUS <<\_ACEOF
11306
11307ac_cs_usage="\
11308\`$as_me' instantiates files from templates according to the
11309current configuration.
11310
11311Usage: $0 [OPTIONS] [FILE]...
11312
11313 -h, --help print this help, then exit
11314 -V, --version print version number, then exit
11315 -q, --quiet do not print progress messages
11316 -d, --debug don't remove temporary files
11317 --recheck update $as_me by reconfiguring in the same conditions
11318 --file=FILE[:TEMPLATE]
5c7fc7c4 11319 instantiate the configuration file FILE
ad6254c5
AK
11320
11321Configuration files:
11322$config_files
11323
11324Report bugs to <bug-autoconf@gnu.org>."
11325_ACEOF
11326
11327cat >>$CONFIG_STATUS <<_ACEOF
11328ac_cs_version="\\
11329config.status
5c7fc7c4 11330configured by $0, generated by GNU Autoconf 2.59,
ad6254c5
AK
11331 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11332
5c7fc7c4 11333Copyright (C) 2003 Free Software Foundation, Inc.
ad6254c5
AK
11334This config.status script is free software; the Free Software Foundation
11335gives unlimited permission to copy, distribute and modify it."
11336srcdir=$srcdir
11337INSTALL="$INSTALL"
11338_ACEOF
11339
11340cat >>$CONFIG_STATUS <<\_ACEOF
11341# If no file are specified by the user, then we need to provide default
11342# value. By we need to know if files were specified by the user.
11343ac_need_defaults=:
11344while test $# != 0
11345do
11346 case $1 in
11347 --*=*)
11348 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11349 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11350 ac_shift=:
11351 ;;
11352 -*)
11353 ac_option=$1
11354 ac_optarg=$2
11355 ac_shift=shift
11356 ;;
11357 *) # This is not an option, so the user has probably given explicit
11358 # arguments.
11359 ac_option=$1
11360 ac_need_defaults=false;;
11361 esac
11362
11363 case $ac_option in
11364 # Handling of the options.
11365_ACEOF
11366cat >>$CONFIG_STATUS <<\_ACEOF
11367 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11368 ac_cs_recheck=: ;;
11369 --version | --vers* | -V )
11370 echo "$ac_cs_version"; exit 0 ;;
11371 --he | --h)
11372 # Conflict between --help and --header
11373 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11374Try \`$0 --help' for more information." >&5
11375echo "$as_me: error: ambiguous option: $1
11376Try \`$0 --help' for more information." >&2;}
11377 { (exit 1); exit 1; }; };;
11378 --help | --hel | -h )
11379 echo "$ac_cs_usage"; exit 0 ;;
11380 --debug | --d* | -d )
11381 debug=: ;;
11382 --file | --fil | --fi | --f )
11383 $ac_shift
11384 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11385 ac_need_defaults=false;;
11386 --header | --heade | --head | --hea )
11387 $ac_shift
11388 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11389 ac_need_defaults=false;;
11390 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11391 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11392 ac_cs_silent=: ;;
11393
11394 # This is an error.
11395 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11396Try \`$0 --help' for more information." >&5
11397echo "$as_me: error: unrecognized option: $1
11398Try \`$0 --help' for more information." >&2;}
11399 { (exit 1); exit 1; }; } ;;
11400
11401 *) ac_config_targets="$ac_config_targets $1" ;;
11402
11403 esac
11404 shift
11405done
11406
11407ac_configure_extra_args=
11408
11409if $ac_cs_silent; then
11410 exec 6>/dev/null
11411 ac_configure_extra_args="$ac_configure_extra_args --silent"
11412fi
11413
11414_ACEOF
11415cat >>$CONFIG_STATUS <<_ACEOF
11416if \$ac_cs_recheck; then
11417 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11418 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11419fi
11420
11421_ACEOF
11422
11423
11424
11425
11426
11427cat >>$CONFIG_STATUS <<\_ACEOF
11428for ac_config_target in $ac_config_targets
11429do
11430 case "$ac_config_target" in
11431 # Handling of arguments.
11432 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11433 "make.tmpl" ) CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
11434 "daemons/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
11435 "daemons/clvmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
06f62ad1
AK
11436 "dmeventd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;;
11437 "dmeventd/mirror/Makefile" ) CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;;
ad6254c5
AK
11438 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11439 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11440 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11441 "lib/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
11442 "lib/format_pool/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
11443 "lib/locking/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
11444 "lib/mirror/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
11445 "lib/snapshot/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
11446 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11447 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
11448 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
11449 "tools/version.h" ) CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
11450 "tools/fsadm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/fsadm/Makefile" ;;
11451 "test/mm/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/mm/Makefile" ;;
11452 "test/device/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/device/Makefile" ;;
11453 "test/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/format1/Makefile" ;;
11454 "test/regex/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/regex/Makefile" ;;
11455 "test/filters/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/filters/Makefile" ;;
11456 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11457echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11458 { (exit 1); exit 1; }; };;
80992638 11459 esac
ad6254c5
AK
11460done
11461
11462# If the user did not use the arguments to specify the items to instantiate,
11463# then the envvar interface is used. Set only those that are not.
11464# We use the long form for the default assignment because of an extremely
11465# bizarre bug on SunOS 4.1.3.
11466if $ac_need_defaults; then
11467 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11468fi
11469
11470# Have a temporary directory for convenience. Make it in the build tree
11471# simply because there is no reason to put it here, and in addition,
11472# creating and moving files from /tmp can sometimes cause problems.
11473# Create a temporary directory, and hook for its removal unless debugging.
11474$debug ||
11475{
11476 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11477 trap '{ (exit 1); exit 1; }' 1 2 13 15
11478}
11479
11480# Create a (secure) tmp directory for tmp files.
11481
11482{
11483 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11484 test -n "$tmp" && test -d "$tmp"
11485} ||
11486{
11487 tmp=./confstat$$-$RANDOM
11488 (umask 077 && mkdir $tmp)
11489} ||
11490{
11491 echo "$me: cannot create a temporary directory in ." >&2
11492 { (exit 1); exit 1; }
11493}
11494
11495_ACEOF
11496
11497cat >>$CONFIG_STATUS <<_ACEOF
11498
11499#
11500# CONFIG_FILES section.
11501#
11502
11503# No need to generate the scripts if there are no CONFIG_FILES.
11504# This happens for instance when ./config.status config.h
11505if test -n "\$CONFIG_FILES"; then
11506 # Protect against being on the right side of a sed subst in config.status.
11507 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11508 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11509s,@SHELL@,$SHELL,;t t
11510s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11511s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11512s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11513s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11514s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11515s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11516s,@exec_prefix@,$exec_prefix,;t t
11517s,@prefix@,$prefix,;t t
11518s,@program_transform_name@,$program_transform_name,;t t
11519s,@bindir@,$bindir,;t t
11520s,@sbindir@,$sbindir,;t t
11521s,@libexecdir@,$libexecdir,;t t
11522s,@datadir@,$datadir,;t t
11523s,@sysconfdir@,$sysconfdir,;t t
11524s,@sharedstatedir@,$sharedstatedir,;t t
11525s,@localstatedir@,$localstatedir,;t t
11526s,@libdir@,$libdir,;t t
11527s,@includedir@,$includedir,;t t
11528s,@oldincludedir@,$oldincludedir,;t t
11529s,@infodir@,$infodir,;t t
11530s,@mandir@,$mandir,;t t
11531s,@build_alias@,$build_alias,;t t
11532s,@host_alias@,$host_alias,;t t
11533s,@target_alias@,$target_alias,;t t
11534s,@DEFS@,$DEFS,;t t
11535s,@ECHO_C@,$ECHO_C,;t t
11536s,@ECHO_N@,$ECHO_N,;t t
11537s,@ECHO_T@,$ECHO_T,;t t
11538s,@LIBS@,$LIBS,;t t
11539s,@build@,$build,;t t
11540s,@build_cpu@,$build_cpu,;t t
11541s,@build_vendor@,$build_vendor,;t t
11542s,@build_os@,$build_os,;t t
11543s,@host@,$host,;t t
11544s,@host_cpu@,$host_cpu,;t t
11545s,@host_vendor@,$host_vendor,;t t
11546s,@host_os@,$host_os,;t t
11547s,@target@,$target,;t t
11548s,@target_cpu@,$target_cpu,;t t
11549s,@target_vendor@,$target_vendor,;t t
11550s,@target_os@,$target_os,;t t
11551s,@AWK@,$AWK,;t t
11552s,@CC@,$CC,;t t
11553s,@CFLAGS@,$CFLAGS,;t t
11554s,@LDFLAGS@,$LDFLAGS,;t t
11555s,@CPPFLAGS@,$CPPFLAGS,;t t
11556s,@ac_ct_CC@,$ac_ct_CC,;t t
11557s,@EXEEXT@,$EXEEXT,;t t
11558s,@OBJEXT@,$OBJEXT,;t t
11559s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11560s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11561s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11562s,@LN_S@,$LN_S,;t t
11563s,@SET_MAKE@,$SET_MAKE,;t t
11564s,@RANLIB@,$RANLIB,;t t
11565s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11566s,@CPP@,$CPP,;t t
11567s,@EGREP@,$EGREP,;t t
11568s,@ALLOCA@,$ALLOCA,;t t
11569s,@LIBOBJS@,$LIBOBJS,;t t
11570s,@POW_LIB@,$POW_LIB,;t t
11571s,@MSGFMT@,$MSGFMT,;t t
a653923f 11572s,@MODPROBE_CMD@,$MODPROBE_CMD,;t t
ad6254c5
AK
11573s,@JOBS@,$JOBS,;t t
11574s,@STATIC_LINK@,$STATIC_LINK,;t t
11575s,@LVM1@,$LVM1,;t t
11576s,@POOL@,$POOL,;t t
11577s,@SNAPSHOTS@,$SNAPSHOTS,;t t
11578s,@MIRRORS@,$MIRRORS,;t t
11579s,@OWNER@,$OWNER,;t t
11580s,@GROUP@,$GROUP,;t t
11581s,@COPTIMISE_FLAG@,$COPTIMISE_FLAG,;t t
11582s,@CLDFLAGS@,$CLDFLAGS,;t t
11583s,@CLDWHOLEARCHIVE@,$CLDWHOLEARCHIVE,;t t
11584s,@CLDNOWHOLEARCHIVE@,$CLDNOWHOLEARCHIVE,;t t
11585s,@LDDEPS@,$LDDEPS,;t t
11586s,@SOFLAG@,$SOFLAG,;t t
11587s,@LVM_VERSION@,$LVM_VERSION,;t t
11588s,@LVM1_FALLBACK@,$LVM1_FALLBACK,;t t
11589s,@DEBUG@,$DEBUG,;t t
11590s,@DEVMAPPER@,$DEVMAPPER,;t t
11591s,@HAVE_LIBDL@,$HAVE_LIBDL,;t t
11592s,@HAVE_SELINUX@,$HAVE_SELINUX,;t t
11593s,@CMDLIB@,$CMDLIB,;t t
11594s,@LOCALEDIR@,$LOCALEDIR,;t t
11595s,@CONFDIR@,$CONFDIR,;t t
11596s,@STATICDIR@,$STATICDIR,;t t
11597s,@INTL_PACKAGE@,$INTL_PACKAGE,;t t
11598s,@INTL@,$INTL,;t t
11599s,@CLVMD@,$CLVMD,;t t
11600s,@CLUSTER@,$CLUSTER,;t t
11601s,@FSADM@,$FSADM,;t t
06f62ad1 11602s,@DMEVENTD@,$DMEVENTD,;t t
ad6254c5
AK
11603s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11604CEOF
11605
11606_ACEOF
11607
11608 cat >>$CONFIG_STATUS <<\_ACEOF
11609 # Split the substitutions into bite-sized pieces for seds with
11610 # small command number limits, like on Digital OSF/1 and HP-UX.
11611 ac_max_sed_lines=48
11612 ac_sed_frag=1 # Number of current file.
11613 ac_beg=1 # First line for current file.
11614 ac_end=$ac_max_sed_lines # Line after last line for current file.
11615 ac_more_lines=:
11616 ac_sed_cmds=
11617 while $ac_more_lines; do
11618 if test $ac_beg -gt 1; then
11619 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11620 else
11621 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11622 fi
11623 if test ! -s $tmp/subs.frag; then
11624 ac_more_lines=false
11625 else
11626 # The purpose of the label and of the branching condition is to
11627 # speed up the sed processing (if there are no `@' at all, there
11628 # is no need to browse any of the substitutions).
11629 # These are the two extra sed commands mentioned above.
11630 (echo ':t
11631 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11632 if test -z "$ac_sed_cmds"; then
5c7fc7c4 11633 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
ad6254c5 11634 else
5c7fc7c4 11635 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
ad6254c5
AK
11636 fi
11637 ac_sed_frag=`expr $ac_sed_frag + 1`
11638 ac_beg=$ac_end
11639 ac_end=`expr $ac_end + $ac_max_sed_lines`
11640 fi
11641 done
11642 if test -z "$ac_sed_cmds"; then
11643 ac_sed_cmds=cat
11644 fi
11645fi # test -n "$CONFIG_FILES"
8106cdd5 11646
ad6254c5
AK
11647_ACEOF
11648cat >>$CONFIG_STATUS <<\_ACEOF
11649for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11650 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11651 case $ac_file in
11652 - | *:- | *:-:* ) # input from stdin
5c7fc7c4
PC
11653 cat >$tmp/stdin
11654 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11655 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
ad6254c5 11656 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5c7fc7c4 11657 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
ad6254c5 11658 * ) ac_file_in=$ac_file.in ;;
80992638 11659 esac
8106cdd5 11660
ad6254c5
AK
11661 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11662 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11663$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5c7fc7c4
PC
11664 X"$ac_file" : 'X\(//\)[^/]' \| \
11665 X"$ac_file" : 'X\(//\)$' \| \
11666 X"$ac_file" : 'X\(/\)' \| \
11667 . : '\(.\)' 2>/dev/null ||
ad6254c5
AK
11668echo X"$ac_file" |
11669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11670 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11671 /^X\(\/\/\)$/{ s//\1/; q; }
11672 /^X\(\/\).*/{ s//\1/; q; }
11673 s/.*/./; q'`
11674 { if $as_mkdir_p; then
11675 mkdir -p "$ac_dir"
11676 else
11677 as_dir="$ac_dir"
11678 as_dirs=
11679 while test ! -d "$as_dir"; do
11680 as_dirs="$as_dir $as_dirs"
11681 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11682$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5c7fc7c4
PC
11683 X"$as_dir" : 'X\(//\)[^/]' \| \
11684 X"$as_dir" : 'X\(//\)$' \| \
11685 X"$as_dir" : 'X\(/\)' \| \
11686 . : '\(.\)' 2>/dev/null ||
ad6254c5
AK
11687echo X"$as_dir" |
11688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11689 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11690 /^X\(\/\/\)$/{ s//\1/; q; }
11691 /^X\(\/\).*/{ s//\1/; q; }
11692 s/.*/./; q'`
11693 done
11694 test ! -n "$as_dirs" || mkdir $as_dirs
11695 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11696echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11697 { (exit 1); exit 1; }; }; }
11698
11699 ac_builddir=.
11700
11701if test "$ac_dir" != .; then
11702 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11703 # A "../" for each directory in $ac_dir_suffix.
11704 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11705else
11706 ac_dir_suffix= ac_top_builddir=
11707fi
11708
11709case $srcdir in
11710 .) # No --srcdir option. We are building in place.
11711 ac_srcdir=.
11712 if test -z "$ac_top_builddir"; then
11713 ac_top_srcdir=.
11714 else
11715 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11716 fi ;;
11717 [\\/]* | ?:[\\/]* ) # Absolute path.
11718 ac_srcdir=$srcdir$ac_dir_suffix;
11719 ac_top_srcdir=$srcdir ;;
11720 *) # Relative path.
11721 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11722 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11723esac
5c7fc7c4
PC
11724
11725# Do not use `cd foo && pwd` to compute absolute paths, because
11726# the directories may not exist.
11727case `pwd` in
11728.) ac_abs_builddir="$ac_dir";;
11729*)
11730 case "$ac_dir" in
11731 .) ac_abs_builddir=`pwd`;;
11732 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11733 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11734 esac;;
11735esac
11736case $ac_abs_builddir in
11737.) ac_abs_top_builddir=${ac_top_builddir}.;;
11738*)
11739 case ${ac_top_builddir}. in
11740 .) ac_abs_top_builddir=$ac_abs_builddir;;
11741 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11742 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11743 esac;;
11744esac
11745case $ac_abs_builddir in
11746.) ac_abs_srcdir=$ac_srcdir;;
11747*)
11748 case $ac_srcdir in
11749 .) ac_abs_srcdir=$ac_abs_builddir;;
11750 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11751 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11752 esac;;
11753esac
11754case $ac_abs_builddir in
11755.) ac_abs_top_srcdir=$ac_top_srcdir;;
11756*)
11757 case $ac_top_srcdir in
11758 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11759 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11760 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11761 esac;;
11762esac
ad6254c5
AK
11763
11764
11765 case $INSTALL in
11766 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11767 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
795ca3e5
AK
11768 esac
11769
ad6254c5
AK
11770 if test x"$ac_file" != x-; then
11771 { echo "$as_me:$LINENO: creating $ac_file" >&5
11772echo "$as_me: creating $ac_file" >&6;}
11773 rm -f "$ac_file"
11774 fi
11775 # Let's still pretend it is `configure' which instantiates (i.e., don't
11776 # use $as_me), people would be surprised to read:
11777 # /* config.h. Generated by config.status. */
11778 if test x"$ac_file" = x-; then
11779 configure_input=
11780 else
11781 configure_input="$ac_file. "
11782 fi
11783 configure_input=$configure_input"Generated from `echo $ac_file_in |
5c7fc7c4 11784 sed 's,.*/,,'` by configure."
ad6254c5
AK
11785
11786 # First look for the input files in the build tree, otherwise in the
11787 # src tree.
11788 ac_file_inputs=`IFS=:
11789 for f in $ac_file_in; do
11790 case $f in
11791 -) echo $tmp/stdin ;;
11792 [\\/$]*)
5c7fc7c4
PC
11793 # Absolute (can't be DOS-style, as IFS=:)
11794 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
ad6254c5
AK
11795echo "$as_me: error: cannot find input file: $f" >&2;}
11796 { (exit 1); exit 1; }; }
5c7fc7c4 11797 echo "$f";;
ad6254c5 11798 *) # Relative
5c7fc7c4
PC
11799 if test -f "$f"; then
11800 # Build tree
11801 echo "$f"
11802 elif test -f "$srcdir/$f"; then
11803 # Source tree
11804 echo "$srcdir/$f"
11805 else
11806 # /dev/null tree
11807 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
ad6254c5
AK
11808echo "$as_me: error: cannot find input file: $f" >&2;}
11809 { (exit 1); exit 1; }; }
5c7fc7c4 11810 fi;;
ad6254c5
AK
11811 esac
11812 done` || { (exit 1); exit 1; }
11813_ACEOF
11814cat >>$CONFIG_STATUS <<_ACEOF
11815 sed "$ac_vpsub
11816$extrasub
11817_ACEOF
11818cat >>$CONFIG_STATUS <<\_ACEOF
11819:t
11820/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11821s,@configure_input@,$configure_input,;t t
11822s,@srcdir@,$ac_srcdir,;t t
11823s,@abs_srcdir@,$ac_abs_srcdir,;t t
11824s,@top_srcdir@,$ac_top_srcdir,;t t
11825s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11826s,@builddir@,$ac_builddir,;t t
11827s,@abs_builddir@,$ac_abs_builddir,;t t
11828s,@top_builddir@,$ac_top_builddir,;t t
11829s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11830s,@INSTALL@,$ac_INSTALL,;t t
11831" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11832 rm -f $tmp/stdin
11833 if test x"$ac_file" != x-; then
11834 mv $tmp/out $ac_file
11835 else
11836 cat $tmp/out
11837 rm -f $tmp/out
11838 fi
795ca3e5 11839
ad6254c5
AK
11840done
11841_ACEOF
795ca3e5 11842
ad6254c5 11843cat >>$CONFIG_STATUS <<\_ACEOF
795ca3e5 11844
ad6254c5
AK
11845{ (exit 0); exit 0; }
11846_ACEOF
795ca3e5 11847chmod +x $CONFIG_STATUS
ad6254c5
AK
11848ac_clean_files=$ac_clean_files_save
11849
11850
11851# configure is writing to config.log, and then calls config.status.
11852# config.status does its own redirection, appending to config.log.
11853# Unfortunately, on DOS this fails, as config.log is still kept open
11854# by configure, so config.status won't be able to write to it; its
11855# output is simply discarded. So we exec the FD to /dev/null,
11856# effectively closing config.log, so it can be properly (re)opened and
11857# appended to by config.status. When coming back to configure, we
11858# need to make the FD available again.
11859if test "$no_create" != yes; then
11860 ac_cs_success=:
11861 ac_config_status_args=
11862 test "$silent" = yes &&
11863 ac_config_status_args="$ac_config_status_args --quiet"
11864 exec 5>/dev/null
11865 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11866 exec 5>>config.log
11867 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11868 # would make configure fail if this is the last instruction.
11869 $ac_cs_success || { (exit 1); exit 1; }
11870fi
795ca3e5 11871
2dc95e1c
AK
11872
11873if test x$ODIRECT != xyes; then
ad6254c5
AK
11874 { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
11875echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 11876fi
809fae91
AK
11877
11878if test x$FSADM == xyes; then
ad6254c5
AK
11879 { echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5
11880echo "$as_me: WARNING: fsadm support is untested" >&2;}
809fae91 11881fi
06f62ad1
AK
11882
11883if test x$DMEVENTD == xyes; then
11884 { echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5
11885echo "$as_me: WARNING: dmeventd support is untested" >&2;}
11886fi
This page took 1.411173 seconds and 5 git commands to generate.