]> sourceware.org Git - lvm2.git/blame - configure
Remove unneeded WHATS_NEW entry
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
8a2fc586 3# Generated by GNU Autoconf 2.59.
795ca3e5 4#
8a2fc586 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
8a2fc586 22DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
23
24# Support unset when possible.
8a2fc586 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
8a2fc586 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
8a2fc586 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.
8a2fc586 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.
8a2fc586 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
33f732c5 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 CFLOW_CMD CSCOPE_CMD CPP EGREP ALLOCA LIBOBJS POW_LIB MSGFMT MODPROBE_CMD JOBS STATIC_LINK LVM1 POOL SNAPSHOTS MIRRORS OWNER GROUP COPTIMISE_FLAG CLDFLAGS CLDWHOLEARCHIVE CLDNOWHOLEARCHIVE LDDEPS LIB_SUFFIX LVM_VERSION LVM1_FALLBACK DEBUG DEVMAPPER HAVE_LIBDL HAVE_SELINUX HAVE_REALTIME CMDLIB LOCALEDIR CONFDIR STATICDIR DMDIR 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 \
8a2fc586 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\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
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
8a2fc586 807 [$ac_default_prefix]
ad6254c5 808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8a2fc586 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
3d978351 856 --disable-realtime Disable realtime clock support
ad6254c5
AK
857 --enable-debug Enable debugging
858 --disable-devmapper Disable device-mapper interaction
859 --disable-o_direct Disable O_DIRECT
860 --enable-cmdlib Build shared command library
861 --enable-fsadm Enable fsadm
15d91f5a 862 --enable-dmeventd Enable the device-mapper event daemon
ad6254c5
AK
863 --enable-nls Enable Native Language Support
864
865Optional Packages:
866 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
867 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
868 --with-user=USER Set the owner of installed files
869 --with-group=GROUP Set the group owner of installed files
870 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
871 TYPE=internal
872 --with-pool=TYPE GFS pool read-only support: internal/shared/none
873 TYPE=internal
874 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
875 TYPE=internal
876 --with-snapshots=TYPE Snapshot support: internal/shared/none
877 TYPE=internal
878 --with-mirrors=TYPE Mirror support: internal/shared/none
879 TYPE=internal
5c7fc7c4 880 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all
a266258f 881 TYPE=none
ad6254c5
AK
882 --with-optimisation=OPT C optimisation flag OPT=-O2
883 --with-localedir=DIR Translation files in DIR PREFIX/share/locale
884 --with-confdir=DIR Configuration files in DIR /etc
885 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
33f732c5 886 --with-dmdir=DIR Build against device-mapper source tree in DIR
ad6254c5
AK
887
888Some influential environment variables:
889 CC C compiler command
890 CFLAGS C compiler flags
891 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
892 nonstandard directory <lib dir>
893 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
894 headers in a nonstandard directory <include dir>
895 CPP C preprocessor
896
897Use these variables to override the choices made by `configure' or to help
898it to find libraries and programs with nonstandard names/locations.
899
900_ACEOF
901fi
902
903if test "$ac_init_help" = "recursive"; then
904 # If there are subdirs, report their specific --help.
905 ac_popdir=`pwd`
906 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
907 test -d $ac_dir || continue
908 ac_builddir=.
909
910if test "$ac_dir" != .; then
911 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
912 # A "../" for each directory in $ac_dir_suffix.
913 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
914else
915 ac_dir_suffix= ac_top_builddir=
916fi
917
918case $srcdir in
919 .) # No --srcdir option. We are building in place.
920 ac_srcdir=.
921 if test -z "$ac_top_builddir"; then
922 ac_top_srcdir=.
923 else
924 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
925 fi ;;
926 [\\/]* | ?:[\\/]* ) # Absolute path.
927 ac_srcdir=$srcdir$ac_dir_suffix;
928 ac_top_srcdir=$srcdir ;;
929 *) # Relative path.
930 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
931 ac_top_srcdir=$ac_top_builddir$srcdir ;;
932esac
8a2fc586
AK
933
934# Do not use `cd foo && pwd` to compute absolute paths, because
935# the directories may not exist.
936case `pwd` in
937.) ac_abs_builddir="$ac_dir";;
938*)
939 case "$ac_dir" in
940 .) ac_abs_builddir=`pwd`;;
941 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
942 *) ac_abs_builddir=`pwd`/"$ac_dir";;
943 esac;;
944esac
945case $ac_abs_builddir in
946.) ac_abs_top_builddir=${ac_top_builddir}.;;
947*)
948 case ${ac_top_builddir}. in
949 .) ac_abs_top_builddir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
951 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
952 esac;;
953esac
954case $ac_abs_builddir in
955.) ac_abs_srcdir=$ac_srcdir;;
956*)
957 case $ac_srcdir in
958 .) ac_abs_srcdir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
960 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
961 esac;;
962esac
963case $ac_abs_builddir in
964.) ac_abs_top_srcdir=$ac_top_srcdir;;
965*)
966 case $ac_top_srcdir in
967 .) ac_abs_top_srcdir=$ac_abs_builddir;;
968 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
969 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
970 esac;;
971esac
ad6254c5
AK
972
973 cd $ac_dir
974 # Check for guested configure; otherwise get Cygnus style configure.
975 if test -f $ac_srcdir/configure.gnu; then
976 echo
977 $SHELL $ac_srcdir/configure.gnu --help=recursive
978 elif test -f $ac_srcdir/configure; then
979 echo
980 $SHELL $ac_srcdir/configure --help=recursive
981 elif test -f $ac_srcdir/configure.ac ||
8a2fc586 982 test -f $ac_srcdir/configure.in; then
ad6254c5
AK
983 echo
984 $ac_configure --help
985 else
986 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987 fi
988 cd $ac_popdir
989 done
990fi
991
992test -n "$ac_init_help" && exit 0
993if $ac_init_version; then
994 cat <<\_ACEOF
995
8a2fc586 996Copyright (C) 2003 Free Software Foundation, Inc.
ad6254c5
AK
997This configure script is free software; the Free Software Foundation
998gives unlimited permission to copy, distribute and modify it.
999_ACEOF
1000 exit 0
1001fi
1002exec 5>config.log
1003cat >&5 <<_ACEOF
1004This file contains any messages produced by compilers while
1005running configure, to aid debugging if configure makes a mistake.
1006
1007It was created by $as_me, which was
8a2fc586 1008generated by GNU Autoconf 2.59. Invocation command line was
ad6254c5
AK
1009
1010 $ $0 $@
1011
1012_ACEOF
1013{
1014cat <<_ASUNAME
1015## --------- ##
1016## Platform. ##
1017## --------- ##
1018
1019hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1020uname -m = `(uname -m) 2>/dev/null || echo unknown`
1021uname -r = `(uname -r) 2>/dev/null || echo unknown`
1022uname -s = `(uname -s) 2>/dev/null || echo unknown`
1023uname -v = `(uname -v) 2>/dev/null || echo unknown`
1024
1025/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1026/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1027
1028/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1029/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1030/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1031hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1032/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1033/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1034/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1035
1036_ASUNAME
1037
1038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1039for as_dir in $PATH
1040do
1041 IFS=$as_save_IFS
1042 test -z "$as_dir" && as_dir=.
1043 echo "PATH: $as_dir"
1044done
1045
1046} >&5
1047
1048cat >&5 <<_ACEOF
1049
1050
1051## ----------- ##
1052## Core tests. ##
1053## ----------- ##
1054
1055_ACEOF
1056
1057
1058# Keep a trace of the command line.
1059# Strip out --no-create and --no-recursion so they do not pile up.
1060# Strip out --silent because we don't want to record it for future runs.
1061# Also quote any args containing shell meta-characters.
1062# Make two passes to allow for proper duplicate-argument suppression.
1063ac_configure_args=
1064ac_configure_args0=
1065ac_configure_args1=
1066ac_sep=
1067ac_must_keep_next=false
1068for ac_pass in 1 2
1069do
1070 for ac_arg
1071 do
1072 case $ac_arg in
1073 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1076 continue ;;
1077 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1078 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1079 esac
1080 case $ac_pass in
1081 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1082 2)
1083 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1084 if test $ac_must_keep_next = true; then
8a2fc586 1085 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1086 else
8a2fc586
AK
1087 case $ac_arg in
1088 *=* | --config-cache | -C | -disable-* | --disable-* \
1089 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1090 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1091 | -with-* | --with-* | -without-* | --without-* | --x)
1092 case "$ac_configure_args0 " in
1093 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1094 esac
1095 ;;
1096 -* ) ac_must_keep_next=true ;;
1097 esac
ad6254c5
AK
1098 fi
1099 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1100 # Get rid of the leading space.
1101 ac_sep=" "
1102 ;;
1103 esac
1104 done
1105done
1106$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1107$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1108
1109# When interrupted or exit'd, cleanup temporary files, and complete
1110# config.log. We remove comments because anyway the quotes in there
1111# would cause problems or look ugly.
1112# WARNING: Be sure not to use single quotes in there, as some shells,
1113# such as our DU 5.0 friend, will then `close' the trap.
1114trap 'exit_status=$?
1115 # Save into config.log some information that might help in debugging.
1116 {
1117 echo
1118
1119 cat <<\_ASBOX
1120## ---------------- ##
1121## Cache variables. ##
1122## ---------------- ##
1123_ASBOX
1124 echo
1125 # The following way of writing the cache mishandles newlines in values,
1126{
1127 (set) 2>&1 |
1128 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1129 *ac_space=\ *)
1130 sed -n \
8a2fc586
AK
1131 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
ad6254c5
AK
1133 ;;
1134 *)
1135 sed -n \
8a2fc586 1136 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
ad6254c5
AK
1137 ;;
1138 esac;
1139}
1140 echo
1141
1142 cat <<\_ASBOX
1143## ----------------- ##
1144## Output variables. ##
1145## ----------------- ##
1146_ASBOX
1147 echo
1148 for ac_var in $ac_subst_vars
1149 do
1150 eval ac_val=$`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1152 done | sort
1153 echo
1154
1155 if test -n "$ac_subst_files"; then
1156 cat <<\_ASBOX
1157## ------------- ##
1158## Output files. ##
1159## ------------- ##
1160_ASBOX
1161 echo
1162 for ac_var in $ac_subst_files
1163 do
1164 eval ac_val=$`echo $ac_var`
8a2fc586 1165 echo "$ac_var='"'"'$ac_val'"'"'"
ad6254c5
AK
1166 done | sort
1167 echo
1168 fi
1169
1170 if test -s confdefs.h; then
1171 cat <<\_ASBOX
1172## ----------- ##
1173## confdefs.h. ##
1174## ----------- ##
1175_ASBOX
1176 echo
1177 sed "/^$/d" confdefs.h | sort
1178 echo
1179 fi
1180 test "$ac_signal" != 0 &&
1181 echo "$as_me: caught signal $ac_signal"
1182 echo "$as_me: exit $exit_status"
1183 } >&5
8a2fc586 1184 rm -f core *.core &&
ad6254c5
AK
1185 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1186 exit $exit_status
1187 ' 0
1188for ac_signal in 1 2 13 15; do
1189 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1190done
1191ac_signal=0
1192
1193# confdefs.h avoids OS command line length limits that DEFS can exceed.
1194rm -rf conftest* confdefs.h
1195# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1196echo >confdefs.h
1197
1198# Predefined preprocessor variables.
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_NAME "$PACKAGE_NAME"
1202_ACEOF
1203
1204
1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1207_ACEOF
1208
1209
1210cat >>confdefs.h <<_ACEOF
1211#define PACKAGE_VERSION "$PACKAGE_VERSION"
1212_ACEOF
8106cdd5 1213
ad6254c5
AK
1214
1215cat >>confdefs.h <<_ACEOF
1216#define PACKAGE_STRING "$PACKAGE_STRING"
1217_ACEOF
1218
1219
1220cat >>confdefs.h <<_ACEOF
1221#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1222_ACEOF
1223
1224
1225# Let the site file select an alternate cache file if it wants to.
795ca3e5
AK
1226# Prefer explicitly selected file to automatically selected ones.
1227if test -z "$CONFIG_SITE"; then
1228 if test "x$prefix" != xNONE; then
1229 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1230 else
1231 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1232 fi
1233fi
1234for ac_site_file in $CONFIG_SITE; do
1235 if test -r "$ac_site_file"; then
ad6254c5
AK
1236 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1237echo "$as_me: loading site script $ac_site_file" >&6;}
1238 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1239 . "$ac_site_file"
1240 fi
1241done
1242
1243if test -r "$cache_file"; then
ad6254c5
AK
1244 # Some versions of bash will fail to source /dev/null (special
1245 # files actually), so we avoid doing that.
1246 if test -f "$cache_file"; then
1247 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1248echo "$as_me: loading cache $cache_file" >&6;}
1249 case $cache_file in
1250 [\\/]* | ?:[\\/]* ) . $cache_file;;
1251 *) . ./$cache_file;;
1252 esac
1253 fi
795ca3e5 1254else
ad6254c5
AK
1255 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1256echo "$as_me: creating cache $cache_file" >&6;}
1257 >$cache_file
1258fi
1259
1260# Check that the precious variables saved in the cache have kept the same
1261# value.
1262ac_cache_corrupted=false
1263for ac_var in `(set) 2>&1 |
8a2fc586 1264 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
ad6254c5
AK
1265 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1266 eval ac_new_set=\$ac_env_${ac_var}_set
1267 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1268 eval ac_new_val="\$ac_env_${ac_var}_value"
1269 case $ac_old_set,$ac_new_set in
1270 set,)
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1272echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1274 ,set)
1275 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1276echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1277 ac_cache_corrupted=: ;;
1278 ,);;
1279 *)
1280 if test "x$ac_old_val" != "x$ac_new_val"; then
8a2fc586 1281 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
ad6254c5 1282echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
8a2fc586 1283 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
ad6254c5 1284echo "$as_me: former value: $ac_old_val" >&2;}
8a2fc586 1285 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
ad6254c5 1286echo "$as_me: current value: $ac_new_val" >&2;}
8a2fc586 1287 ac_cache_corrupted=:
ad6254c5
AK
1288 fi;;
1289 esac
1290 # Pass precious variables to config.status.
1291 if test "$ac_new_set" = set; then
1292 case $ac_new_val in
1293 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1295 *) ac_arg=$ac_var=$ac_new_val ;;
1296 esac
1297 case " $ac_configure_args " in
1298 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1299 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1300 esac
1301 fi
1302done
1303if $ac_cache_corrupted; then
1304 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1305echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1306 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1307echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1308 { (exit 1); exit 1; }; }
795ca3e5
AK
1309fi
1310
1311ac_ext=c
795ca3e5 1312ac_cpp='$CPP $CPPFLAGS'
ad6254c5
AK
1313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1315ac_compiler_gnu=$ac_cv_c_compiler_gnu
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
795ca3e5
AK
1333
1334
1335
72b2cb61
AK
1336################################################################################
1337 ac_config_headers="$ac_config_headers lib/misc/configure.h"
1338
1339
80992638 1340################################################################################
795ca3e5
AK
1341ac_aux_dir=
1342for ac_dir in autoconf $srcdir/autoconf; do
1343 if test -f $ac_dir/install-sh; then
1344 ac_aux_dir=$ac_dir
1345 ac_install_sh="$ac_aux_dir/install-sh -c"
1346 break
1347 elif test -f $ac_dir/install.sh; then
1348 ac_aux_dir=$ac_dir
1349 ac_install_sh="$ac_aux_dir/install.sh -c"
1350 break
ad6254c5
AK
1351 elif test -f $ac_dir/shtool; then
1352 ac_aux_dir=$ac_dir
1353 ac_install_sh="$ac_aux_dir/shtool install -c"
1354 break
795ca3e5
AK
1355 fi
1356done
1357if test -z "$ac_aux_dir"; then
ad6254c5
AK
1358 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1359echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1360 { (exit 1); exit 1; }; }
795ca3e5 1361fi
ad6254c5
AK
1362ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1363ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1364ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
8ce0cbda
AK
1365
1366
ad6254c5 1367################################################################################
8ce0cbda 1368# Make sure we can run config.sub.
ad6254c5
AK
1369$ac_config_sub sun4 >/dev/null 2>&1 ||
1370 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1371echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1372 { (exit 1); exit 1; }; }
1373
1374echo "$as_me:$LINENO: checking build system type" >&5
1375echo $ECHO_N "checking build system type... $ECHO_C" >&6
1376if test "${ac_cv_build+set}" = set; then
1377 echo $ECHO_N "(cached) $ECHO_C" >&6
1378else
1379 ac_cv_build_alias=$build_alias
1380test -z "$ac_cv_build_alias" &&
1381 ac_cv_build_alias=`$ac_config_guess`
1382test -z "$ac_cv_build_alias" &&
1383 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1384echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1385 { (exit 1); exit 1; }; }
1386ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1387 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1388echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1389 { (exit 1); exit 1; }; }
1390
1391fi
1392echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1393echo "${ECHO_T}$ac_cv_build" >&6
1394build=$ac_cv_build
1395build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1396build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1397build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1398
1399
1400echo "$as_me:$LINENO: checking host system type" >&5
1401echo $ECHO_N "checking host system type... $ECHO_C" >&6
1402if test "${ac_cv_host+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1404else
1405 ac_cv_host_alias=$host_alias
1406test -z "$ac_cv_host_alias" &&
1407 ac_cv_host_alias=$ac_cv_build_alias
1408ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1409 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1410echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1411 { (exit 1); exit 1; }; }
1412
1413fi
1414echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1415echo "${ECHO_T}$ac_cv_host" >&6
1416host=$ac_cv_host
1417host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1420
1421
1422echo "$as_me:$LINENO: checking target system type" >&5
1423echo $ECHO_N "checking target system type... $ECHO_C" >&6
1424if test "${ac_cv_target+set}" = set; then
1425 echo $ECHO_N "(cached) $ECHO_C" >&6
1426else
1427 ac_cv_target_alias=$target_alias
1428test "x$ac_cv_target_alias" = "x" &&
1429 ac_cv_target_alias=$ac_cv_host_alias
1430ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1431 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1432echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1433 { (exit 1); exit 1; }; }
8ce0cbda 1434
ad6254c5
AK
1435fi
1436echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1437echo "${ECHO_T}$ac_cv_target" >&6
1438target=$ac_cv_target
1439target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1440target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1441target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8ce0cbda 1442
8ce0cbda 1443
ad6254c5
AK
1444# The aliases save the names the user supplied, while $host etc.
1445# will get canonicalized.
1446test -n "$target_alias" &&
8ce0cbda
AK
1447 test "$program_prefix$program_suffix$program_transform_name" = \
1448 NONENONEs,x,x, &&
1449 program_prefix=${target_alias}-
1450
8ce0cbda
AK
1451case "$host_os" in
1452 linux*)
1453 CFLAGS="$CFLAGS"
1454 COPTIMISE_FLAG="-O2"
1455 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
1456 CLDWHOLEARCHIVE="-Wl,-whole-archive"
1457 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
1458 LDDEPS="$LDDEPS .export.sym"
1459 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
e4c11ad1 1460 LIB_SUFFIX="so"
8ce0cbda
AK
1461 DEVMAPPER=yes
1462 ODIRECT=yes
1463 SELINUX=yes
8b1a3214 1464 REALTIME=yes
8ce0cbda
AK
1465 CLUSTER=internal
1466 FSADM=no ;;
1467 darwin*)
1468 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
1469 COPTIMISE_FLAG="-O2"
1470 CLDFLAGS="$CLDFLAGS"
1471 CLDWHOLEARCHIVE="-all_load"
1472 CLDNOWHOLEARCHIVE=
1473 LDDEPS="$LDDEPS"
1474 LDFLAGS="$LDFLAGS"
e4c11ad1 1475 LIB_SUFFIX="dylib"
a653923f 1476 DEVMAPPER=yes
8ce0cbda
AK
1477 ODIRECT=no
1478 SELINUX=no
8b1a3214 1479 REALTIME=no
8ce0cbda
AK
1480 CLUSTER=none
1481 FSADM=no ;;
1482esac
1483
80992638 1484################################################################################
ad6254c5 1485for ac_prog in gawk mawk nawk awk
795ca3e5 1486do
ad6254c5 1487 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 1488set dummy $ac_prog; ac_word=$2
ad6254c5
AK
1489echo "$as_me:$LINENO: checking for $ac_word" >&5
1490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1491if test "${ac_cv_prog_AWK+set}" = set; then
1492 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1493else
1494 if test -n "$AWK"; then
1495 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1496else
ad6254c5
AK
1497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1498for as_dir in $PATH
1499do
1500 IFS=$as_save_IFS
1501 test -z "$as_dir" && as_dir=.
1502 for ac_exec_ext in '' $ac_executable_extensions; do
1503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1504 ac_cv_prog_AWK="$ac_prog"
1505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1506 break 2
1507 fi
1508done
1509done
1510
795ca3e5
AK
1511fi
1512fi
ad6254c5 1513AWK=$ac_cv_prog_AWK
795ca3e5 1514if test -n "$AWK"; then
ad6254c5
AK
1515 echo "$as_me:$LINENO: result: $AWK" >&5
1516echo "${ECHO_T}$AWK" >&6
795ca3e5 1517else
ad6254c5
AK
1518 echo "$as_me:$LINENO: result: no" >&5
1519echo "${ECHO_T}no" >&6
795ca3e5
AK
1520fi
1521
ad6254c5
AK
1522 test -n "$AWK" && break
1523done
1524
1525ac_ext=c
1526ac_cpp='$CPP $CPPFLAGS'
1527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1529ac_compiler_gnu=$ac_cv_c_compiler_gnu
1530if test -n "$ac_tool_prefix"; then
1531 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1532set dummy ${ac_tool_prefix}gcc; ac_word=$2
1533echo "$as_me:$LINENO: checking for $ac_word" >&5
1534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1535if test "${ac_cv_prog_CC+set}" = set; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1537else
1538 if test -n "$CC"; then
1539 ac_cv_prog_CC="$CC" # Let the user override the test.
1540else
1541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1542for as_dir in $PATH
1543do
1544 IFS=$as_save_IFS
1545 test -z "$as_dir" && as_dir=.
1546 for ac_exec_ext in '' $ac_executable_extensions; do
1547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1548 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1550 break 2
1551 fi
1552done
8106cdd5
AK
1553done
1554
ad6254c5
AK
1555fi
1556fi
1557CC=$ac_cv_prog_CC
1558if test -n "$CC"; then
1559 echo "$as_me:$LINENO: result: $CC" >&5
1560echo "${ECHO_T}$CC" >&6
1561else
1562 echo "$as_me:$LINENO: result: no" >&5
1563echo "${ECHO_T}no" >&6
1564fi
1565
1566fi
1567if test -z "$ac_cv_prog_CC"; then
1568 ac_ct_CC=$CC
1569 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 1570set dummy gcc; ac_word=$2
ad6254c5
AK
1571echo "$as_me:$LINENO: checking for $ac_word" >&5
1572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1573if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1575else
1576 if test -n "$ac_ct_CC"; then
1577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1578else
1579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1580for as_dir in $PATH
1581do
1582 IFS=$as_save_IFS
1583 test -z "$as_dir" && as_dir=.
1584 for ac_exec_ext in '' $ac_executable_extensions; do
1585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1586 ac_cv_prog_ac_ct_CC="gcc"
1587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1588 break 2
1589 fi
1590done
1591done
1592
1593fi
1594fi
1595ac_ct_CC=$ac_cv_prog_ac_ct_CC
1596if test -n "$ac_ct_CC"; then
1597 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1598echo "${ECHO_T}$ac_ct_CC" >&6
1599else
1600 echo "$as_me:$LINENO: result: no" >&5
1601echo "${ECHO_T}no" >&6
1602fi
1603
1604 CC=$ac_ct_CC
1605else
1606 CC="$ac_cv_prog_CC"
1607fi
1608
1609if test -z "$CC"; then
1610 if test -n "$ac_tool_prefix"; then
1611 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1612set dummy ${ac_tool_prefix}cc; ac_word=$2
1613echo "$as_me:$LINENO: checking for $ac_word" >&5
1614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1615if test "${ac_cv_prog_CC+set}" = set; then
1616 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5
AK
1617else
1618 if test -n "$CC"; then
1619 ac_cv_prog_CC="$CC" # Let the user override the test.
1620else
ad6254c5
AK
1621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622for as_dir in $PATH
1623do
1624 IFS=$as_save_IFS
1625 test -z "$as_dir" && as_dir=.
1626 for ac_exec_ext in '' $ac_executable_extensions; do
1627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1628 ac_cv_prog_CC="${ac_tool_prefix}cc"
1629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1630 break 2
1631 fi
1632done
1633done
1634
8106cdd5
AK
1635fi
1636fi
ad6254c5 1637CC=$ac_cv_prog_CC
8106cdd5 1638if test -n "$CC"; then
ad6254c5
AK
1639 echo "$as_me:$LINENO: result: $CC" >&5
1640echo "${ECHO_T}$CC" >&6
1641else
1642 echo "$as_me:$LINENO: result: no" >&5
1643echo "${ECHO_T}no" >&6
1644fi
1645
1646fi
1647if test -z "$ac_cv_prog_CC"; then
1648 ac_ct_CC=$CC
1649 # Extract the first word of "cc", so it can be a program name with args.
1650set dummy cc; ac_word=$2
1651echo "$as_me:$LINENO: checking for $ac_word" >&5
1652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1653if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1655else
1656 if test -n "$ac_ct_CC"; then
1657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1658else
1659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660for as_dir in $PATH
1661do
1662 IFS=$as_save_IFS
1663 test -z "$as_dir" && as_dir=.
1664 for ac_exec_ext in '' $ac_executable_extensions; do
1665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1666 ac_cv_prog_ac_ct_CC="cc"
1667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1668 break 2
1669 fi
1670done
1671done
1672
1673fi
1674fi
1675ac_ct_CC=$ac_cv_prog_ac_ct_CC
1676if test -n "$ac_ct_CC"; then
1677 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1678echo "${ECHO_T}$ac_ct_CC" >&6
1679else
1680 echo "$as_me:$LINENO: result: no" >&5
1681echo "${ECHO_T}no" >&6
1682fi
1683
1684 CC=$ac_ct_CC
8106cdd5 1685else
ad6254c5 1686 CC="$ac_cv_prog_CC"
8106cdd5
AK
1687fi
1688
ad6254c5 1689fi
795ca3e5
AK
1690if test -z "$CC"; then
1691 # Extract the first word of "cc", so it can be a program name with args.
1692set dummy cc; ac_word=$2
ad6254c5
AK
1693echo "$as_me:$LINENO: checking for $ac_word" >&5
1694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695if test "${ac_cv_prog_CC+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1697else
1698 if test -n "$CC"; then
1699 ac_cv_prog_CC="$CC" # Let the user override the test.
1700else
795ca3e5 1701 ac_prog_rejected=no
ad6254c5
AK
1702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703for as_dir in $PATH
1704do
1705 IFS=$as_save_IFS
1706 test -z "$as_dir" && as_dir=.
1707 for ac_exec_ext in '' $ac_executable_extensions; do
1708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1709 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1710 ac_prog_rejected=yes
1711 continue
1712 fi
1713 ac_cv_prog_CC="cc"
1714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715 break 2
1716 fi
1717done
1718done
1719
795ca3e5
AK
1720if test $ac_prog_rejected = yes; then
1721 # We found a bogon in the path, so make sure we never use it.
1722 set dummy $ac_cv_prog_CC
1723 shift
ad6254c5 1724 if test $# != 0; then
795ca3e5
AK
1725 # We chose a different compiler from the bogus one.
1726 # However, it has the same basename, so the bogon will be chosen
1727 # first if we set CC to just the basename; use the full file name.
1728 shift
ad6254c5 1729 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
1730 fi
1731fi
1732fi
1733fi
ad6254c5 1734CC=$ac_cv_prog_CC
795ca3e5 1735if test -n "$CC"; then
ad6254c5
AK
1736 echo "$as_me:$LINENO: result: $CC" >&5
1737echo "${ECHO_T}$CC" >&6
795ca3e5 1738else
ad6254c5
AK
1739 echo "$as_me:$LINENO: result: no" >&5
1740echo "${ECHO_T}no" >&6
795ca3e5
AK
1741fi
1742
ad6254c5
AK
1743fi
1744if test -z "$CC"; then
1745 if test -n "$ac_tool_prefix"; then
1746 for ac_prog in cl
1747 do
1748 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1749set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1750echo "$as_me:$LINENO: checking for $ac_word" >&5
1751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1752if test "${ac_cv_prog_CC+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1754else
1755 if test -n "$CC"; then
1756 ac_cv_prog_CC="$CC" # Let the user override the test.
1757else
ad6254c5
AK
1758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759for as_dir in $PATH
1760do
1761 IFS=$as_save_IFS
1762 test -z "$as_dir" && as_dir=.
1763 for ac_exec_ext in '' $ac_executable_extensions; do
1764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1765 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1767 break 2
1768 fi
1769done
1770done
1771
795ca3e5
AK
1772fi
1773fi
ad6254c5 1774CC=$ac_cv_prog_CC
795ca3e5 1775if test -n "$CC"; then
ad6254c5
AK
1776 echo "$as_me:$LINENO: result: $CC" >&5
1777echo "${ECHO_T}$CC" >&6
795ca3e5 1778else
ad6254c5
AK
1779 echo "$as_me:$LINENO: result: no" >&5
1780echo "${ECHO_T}no" >&6
795ca3e5 1781fi
ad6254c5
AK
1782
1783 test -n "$CC" && break
1784 done
1785fi
1786if test -z "$CC"; then
1787 ac_ct_CC=$CC
1788 for ac_prog in cl
1789do
1790 # Extract the first word of "$ac_prog", so it can be a program name with args.
1791set dummy $ac_prog; ac_word=$2
1792echo "$as_me:$LINENO: checking for $ac_word" >&5
1793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1794if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1795 echo $ECHO_N "(cached) $ECHO_C" >&6
1796else
1797 if test -n "$ac_ct_CC"; then
1798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1799else
1800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801for as_dir in $PATH
1802do
1803 IFS=$as_save_IFS
1804 test -z "$as_dir" && as_dir=.
1805 for ac_exec_ext in '' $ac_executable_extensions; do
1806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1807 ac_cv_prog_ac_ct_CC="$ac_prog"
1808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809 break 2
795ca3e5 1810 fi
ad6254c5
AK
1811done
1812done
1813
1814fi
1815fi
1816ac_ct_CC=$ac_cv_prog_ac_ct_CC
1817if test -n "$ac_ct_CC"; then
1818 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1819echo "${ECHO_T}$ac_ct_CC" >&6
1820else
1821 echo "$as_me:$LINENO: result: no" >&5
1822echo "${ECHO_T}no" >&6
795ca3e5
AK
1823fi
1824
ad6254c5
AK
1825 test -n "$ac_ct_CC" && break
1826done
795ca3e5 1827
ad6254c5
AK
1828 CC=$ac_ct_CC
1829fi
1830
1831fi
1832
1833
1834test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1835See \`config.log' for more details." >&5
1836echo "$as_me: error: no acceptable C compiler found in \$PATH
1837See \`config.log' for more details." >&2;}
1838 { (exit 1); exit 1; }; }
1839
1840# Provide some information about the compiler.
1841echo "$as_me:$LINENO:" \
1842 "checking for C compiler version" >&5
1843ac_compiler=`set X $ac_compile; echo $2`
1844{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1845 (eval $ac_compiler --version </dev/null >&5) 2>&5
1846 ac_status=$?
1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848 (exit $ac_status); }
1849{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1850 (eval $ac_compiler -v </dev/null >&5) 2>&5
1851 ac_status=$?
1852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853 (exit $ac_status); }
1854{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1855 (eval $ac_compiler -V </dev/null >&5) 2>&5
1856 ac_status=$?
1857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858 (exit $ac_status); }
1859
1860cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
1861/* confdefs.h. */
1862_ACEOF
1863cat confdefs.h >>conftest.$ac_ext
1864cat >>conftest.$ac_ext <<_ACEOF
1865/* end confdefs.h. */
1866
1867int
1868main ()
1869{
1870
1871 ;
1872 return 0;
1873}
1874_ACEOF
1875ac_clean_files_save=$ac_clean_files
1876ac_clean_files="$ac_clean_files a.out a.exe b.out"
1877# Try to create an executable without -o first, disregard a.out.
1878# It will help us diagnose broken compilers, and finding out an intuition
1879# of exeext.
8a2fc586
AK
1880echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1881echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
ad6254c5
AK
1882ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1883if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1884 (eval $ac_link_default) 2>&5
1885 ac_status=$?
1886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887 (exit $ac_status); }; then
1888 # Find the output, starting from the most likely. This scheme is
1889# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1890# resort.
1891
1892# Be careful to initialize this variable, since it used to be cached.
1893# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1894ac_cv_exeext=
1895# b.out is created by i960 compilers.
1896for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1897do
1898 test -f "$ac_file" || continue
1899 case $ac_file in
1900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
8a2fc586 1901 ;;
ad6254c5 1902 conftest.$ac_ext )
8a2fc586
AK
1903 # This is the source file.
1904 ;;
ad6254c5 1905 [ab].out )
8a2fc586
AK
1906 # We found the default executable, but exeext='' is most
1907 # certainly right.
1908 break;;
ad6254c5 1909 *.* )
8a2fc586
AK
1910 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1911 # FIXME: I believe we export ac_cv_exeext for Libtool,
1912 # but it would be cool to find out if it's true. Does anybody
1913 # maintain Libtool? --akim.
1914 export ac_cv_exeext
1915 break;;
ad6254c5 1916 * )
8a2fc586 1917 break;;
ad6254c5
AK
1918 esac
1919done
1920else
1921 echo "$as_me: failed program was:" >&5
1922sed 's/^/| /' conftest.$ac_ext >&5
1923
1924{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1925See \`config.log' for more details." >&5
1926echo "$as_me: error: C compiler cannot create executables
1927See \`config.log' for more details." >&2;}
1928 { (exit 77); exit 77; }; }
1929fi
1930
1931ac_exeext=$ac_cv_exeext
1932echo "$as_me:$LINENO: result: $ac_file" >&5
1933echo "${ECHO_T}$ac_file" >&6
1934
1935# Check the compiler produces executables we can run. If not, either
1936# the compiler is broken, or we cross compile.
1937echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1938echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1939# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1940# If not cross compiling, check that we can run a simple program.
1941if test "$cross_compiling" != yes; then
1942 if { ac_try='./$ac_file'
1943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1944 (eval $ac_try) 2>&5
1945 ac_status=$?
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }; }; then
1948 cross_compiling=no
795ca3e5 1949 else
ad6254c5
AK
1950 if test "$cross_compiling" = maybe; then
1951 cross_compiling=yes
1952 else
1953 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1954If you meant to cross compile, use \`--host'.
1955See \`config.log' for more details." >&5
1956echo "$as_me: error: cannot run C compiled programs.
1957If you meant to cross compile, use \`--host'.
1958See \`config.log' for more details." >&2;}
1959 { (exit 1); exit 1; }; }
1960 fi
795ca3e5 1961 fi
80992638 1962fi
ad6254c5
AK
1963echo "$as_me:$LINENO: result: yes" >&5
1964echo "${ECHO_T}yes" >&6
1965
1966rm -f a.out a.exe conftest$ac_cv_exeext b.out
1967ac_clean_files=$ac_clean_files_save
1968# Check the compiler produces executables we can run. If not, either
1969# the compiler is broken, or we cross compile.
1970echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1971echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1972echo "$as_me:$LINENO: result: $cross_compiling" >&5
1973echo "${ECHO_T}$cross_compiling" >&6
1974
1975echo "$as_me:$LINENO: checking for suffix of executables" >&5
1976echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1978 (eval $ac_link) 2>&5
1979 ac_status=$?
1980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981 (exit $ac_status); }; then
1982 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1983# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1984# work properly (i.e., refer to `conftest.exe'), while it won't with
1985# `rm'.
1986for ac_file in conftest.exe conftest conftest.*; do
1987 test -f "$ac_file" || continue
1988 case $ac_file in
1989 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1990 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586
AK
1991 export ac_cv_exeext
1992 break;;
ad6254c5
AK
1993 * ) break;;
1994 esac
1995done
80992638 1996else
ad6254c5
AK
1997 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1998See \`config.log' for more details." >&5
1999echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2000See \`config.log' for more details." >&2;}
2001 { (exit 1); exit 1; }; }
2002fi
2003
2004rm -f conftest$ac_cv_exeext
2005echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2006echo "${ECHO_T}$ac_cv_exeext" >&6
2007
2008rm -f conftest.$ac_ext
2009EXEEXT=$ac_cv_exeext
2010ac_exeext=$EXEEXT
2011echo "$as_me:$LINENO: checking for suffix of object files" >&5
2012echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2013if test "${ac_cv_objext+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2015else
ad6254c5 2016 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2017/* confdefs.h. */
2018_ACEOF
2019cat confdefs.h >>conftest.$ac_ext
2020cat >>conftest.$ac_ext <<_ACEOF
2021/* end confdefs.h. */
2022
2023int
2024main ()
2025{
2026
2027 ;
2028 return 0;
2029}
2030_ACEOF
2031rm -f conftest.o conftest.obj
2032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2033 (eval $ac_compile) 2>&5
2034 ac_status=$?
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); }; then
2037 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2038 case $ac_file in
2039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2040 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2041 break;;
2042 esac
2043done
2044else
2045 echo "$as_me: failed program was:" >&5
2046sed 's/^/| /' conftest.$ac_ext >&5
2047
2048{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2049See \`config.log' for more details." >&5
2050echo "$as_me: error: cannot compute suffix of object files: cannot compile
2051See \`config.log' for more details." >&2;}
2052 { (exit 1); exit 1; }; }
2053fi
2054
2055rm -f conftest.$ac_cv_objext conftest.$ac_ext
2056fi
2057echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2058echo "${ECHO_T}$ac_cv_objext" >&6
2059OBJEXT=$ac_cv_objext
2060ac_objext=$OBJEXT
2061echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2062echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2063if test "${ac_cv_c_compiler_gnu+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2065else
2066 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2067/* confdefs.h. */
2068_ACEOF
2069cat confdefs.h >>conftest.$ac_ext
2070cat >>conftest.$ac_ext <<_ACEOF
2071/* end confdefs.h. */
2072
2073int
2074main ()
2075{
2076#ifndef __GNUC__
2077 choke me
2078#endif
80992638 2079
ad6254c5
AK
2080 ;
2081 return 0;
2082}
2083_ACEOF
2084rm -f conftest.$ac_objext
2085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 2086 (eval $ac_compile) 2>conftest.er1
ad6254c5 2087 ac_status=$?
8a2fc586
AK
2088 grep -v '^ *+' conftest.er1 >conftest.err
2089 rm -f conftest.er1
2090 cat conftest.err >&5
ad6254c5
AK
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); } &&
8a2fc586
AK
2093 { ac_try='test -z "$ac_c_werror_flag"
2094 || test ! -s conftest.err'
2095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 (eval $ac_try) 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; } &&
2100 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102 (eval $ac_try) 2>&5
2103 ac_status=$?
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }; }; then
2106 ac_compiler_gnu=yes
80992638 2107else
ad6254c5
AK
2108 echo "$as_me: failed program was:" >&5
2109sed 's/^/| /' conftest.$ac_ext >&5
2110
2111ac_compiler_gnu=no
8106cdd5 2112fi
8a2fc586 2113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2114ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 2115
ad6254c5
AK
2116fi
2117echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2118echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2119GCC=`test $ac_compiler_gnu = yes && echo yes`
2120ac_test_CFLAGS=${CFLAGS+set}
2121ac_save_CFLAGS=$CFLAGS
2122CFLAGS="-g"
2123echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2124echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2125if test "${ac_cv_prog_cc_g+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2127else
ad6254c5 2128 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2129/* confdefs.h. */
2130_ACEOF
2131cat confdefs.h >>conftest.$ac_ext
2132cat >>conftest.$ac_ext <<_ACEOF
2133/* end confdefs.h. */
2134
2135int
2136main ()
2137{
2138
2139 ;
2140 return 0;
2141}
2142_ACEOF
2143rm -f conftest.$ac_objext
2144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 2145 (eval $ac_compile) 2>conftest.er1
ad6254c5 2146 ac_status=$?
8a2fc586
AK
2147 grep -v '^ *+' conftest.er1 >conftest.err
2148 rm -f conftest.er1
2149 cat conftest.err >&5
ad6254c5
AK
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); } &&
8a2fc586
AK
2152 { ac_try='test -z "$ac_c_werror_flag"
2153 || test ! -s conftest.err'
2154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155 (eval $ac_try) 2>&5
2156 ac_status=$?
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; } &&
2159 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161 (eval $ac_try) 2>&5
2162 ac_status=$?
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }; }; then
795ca3e5
AK
2165 ac_cv_prog_cc_g=yes
2166else
ad6254c5
AK
2167 echo "$as_me: failed program was:" >&5
2168sed 's/^/| /' conftest.$ac_ext >&5
80992638 2169
ad6254c5 2170ac_cv_prog_cc_g=no
8106cdd5 2171fi
8a2fc586 2172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
2173fi
2174echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2175echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
795ca3e5 2176if test "$ac_test_CFLAGS" = set; then
ad6254c5 2177 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
2178elif test $ac_cv_prog_cc_g = yes; then
2179 if test "$GCC" = yes; then
2180 CFLAGS="-g -O2"
2181 else
2182 CFLAGS="-g"
2183 fi
2184else
2185 if test "$GCC" = yes; then
2186 CFLAGS="-O2"
2187 else
2188 CFLAGS=
2189 fi
2190fi
ad6254c5
AK
2191echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2192echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2193if test "${ac_cv_prog_cc_stdc+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2195else
2196 ac_cv_prog_cc_stdc=no
2197ac_save_CC=$CC
2198cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2199/* confdefs.h. */
2200_ACEOF
2201cat confdefs.h >>conftest.$ac_ext
2202cat >>conftest.$ac_ext <<_ACEOF
2203/* end confdefs.h. */
2204#include <stdarg.h>
2205#include <stdio.h>
2206#include <sys/types.h>
2207#include <sys/stat.h>
2208/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2209struct buf { int x; };
2210FILE * (*rcsopen) (struct buf *, struct stat *, int);
2211static char *e (p, i)
2212 char **p;
2213 int i;
2214{
2215 return p[i];
2216}
2217static char *f (char * (*g) (char **, int), char **p, ...)
2218{
2219 char *s;
2220 va_list v;
2221 va_start (v,p);
2222 s = g (p, va_arg (v,int));
2223 va_end (v);
2224 return s;
2225}
8a2fc586
AK
2226
2227/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2228 function prototypes and stuff, but not '\xHH' hex character constants.
2229 These don't provoke an error unfortunately, instead are silently treated
2230 as 'x'. The following induces an error, until -std1 is added to get
2231 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2232 array size at least. It's necessary to write '\x00'==0 to get something
2233 that's true only with -std1. */
2234int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2235
ad6254c5
AK
2236int test (int i, double x);
2237struct s1 {int (*f) (int a);};
2238struct s2 {int (*f) (double a);};
2239int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2240int argc;
2241char **argv;
2242int
2243main ()
2244{
2245return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2246 ;
2247 return 0;
2248}
2249_ACEOF
2250# Don't try gcc -ansi; that turns off useful extensions and
2251# breaks some systems' header files.
2252# AIX -qlanglvl=ansi
2253# Ultrix and OSF/1 -std1
2254# HP-UX 10.20 and later -Ae
2255# HP-UX older versions -Aa -D_HPUX_SOURCE
2256# SVR4 -Xc -D__EXTENSIONS__
2257for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2258do
2259 CC="$ac_save_CC $ac_arg"
2260 rm -f conftest.$ac_objext
2261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 2262 (eval $ac_compile) 2>conftest.er1
ad6254c5 2263 ac_status=$?
8a2fc586
AK
2264 grep -v '^ *+' conftest.er1 >conftest.err
2265 rm -f conftest.er1
2266 cat conftest.err >&5
ad6254c5
AK
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); } &&
8a2fc586
AK
2269 { ac_try='test -z "$ac_c_werror_flag"
2270 || test ! -s conftest.err'
2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 (eval $ac_try) 2>&5
2273 ac_status=$?
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; } &&
2276 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 (eval $ac_try) 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; }; then
2282 ac_cv_prog_cc_stdc=$ac_arg
2283break
2284else
2285 echo "$as_me: failed program was:" >&5
2286sed 's/^/| /' conftest.$ac_ext >&5
2287
2288fi
8a2fc586 2289rm -f conftest.err conftest.$ac_objext
ad6254c5
AK
2290done
2291rm -f conftest.$ac_ext conftest.$ac_objext
2292CC=$ac_save_CC
2293
2294fi
2295
2296case "x$ac_cv_prog_cc_stdc" in
2297 x|xno)
2298 echo "$as_me:$LINENO: result: none needed" >&5
2299echo "${ECHO_T}none needed" >&6 ;;
2300 *)
2301 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2302echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2303 CC="$CC $ac_cv_prog_cc_stdc" ;;
2304esac
2305
2306# Some people use a C++ compiler to compile C. Since we use `exit',
2307# in C++ we need to declare it. In case someone uses the same compiler
2308# for both compiling C and C++ we need to have the C++ compiler decide
2309# the declaration of exit, since it's the most demanding environment.
2310cat >conftest.$ac_ext <<_ACEOF
2311#ifndef __cplusplus
2312 choke me
2313#endif
2314_ACEOF
2315rm -f conftest.$ac_objext
2316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 2317 (eval $ac_compile) 2>conftest.er1
ad6254c5 2318 ac_status=$?
8a2fc586
AK
2319 grep -v '^ *+' conftest.er1 >conftest.err
2320 rm -f conftest.er1
2321 cat conftest.err >&5
ad6254c5
AK
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); } &&
8a2fc586
AK
2324 { ac_try='test -z "$ac_c_werror_flag"
2325 || test ! -s conftest.err'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 (eval $ac_try) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; } &&
2331 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333 (eval $ac_try) 2>&5
2334 ac_status=$?
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; }; then
2337 for ac_declaration in \
8a2fc586 2338 '' \
ad6254c5
AK
2339 'extern "C" void std::exit (int) throw (); using std::exit;' \
2340 'extern "C" void std::exit (int); using std::exit;' \
2341 'extern "C" void exit (int) throw ();' \
2342 'extern "C" void exit (int);' \
2343 'void exit (int);'
2344do
2345 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2346/* confdefs.h. */
2347_ACEOF
2348cat confdefs.h >>conftest.$ac_ext
2349cat >>conftest.$ac_ext <<_ACEOF
2350/* end confdefs.h. */
c1c065a3 2351$ac_declaration
8a2fc586 2352#include <stdlib.h>
ad6254c5
AK
2353int
2354main ()
2355{
2356exit (42);
2357 ;
2358 return 0;
2359}
2360_ACEOF
2361rm -f conftest.$ac_objext
2362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 2363 (eval $ac_compile) 2>conftest.er1
ad6254c5 2364 ac_status=$?
8a2fc586
AK
2365 grep -v '^ *+' conftest.er1 >conftest.err
2366 rm -f conftest.er1
2367 cat conftest.err >&5
ad6254c5
AK
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); } &&
8a2fc586
AK
2370 { ac_try='test -z "$ac_c_werror_flag"
2371 || test ! -s conftest.err'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373 (eval $ac_try) 2>&5
2374 ac_status=$?
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; } &&
2377 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379 (eval $ac_try) 2>&5
2380 ac_status=$?
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; }; then
2383 :
2384else
2385 echo "$as_me: failed program was:" >&5
2386sed 's/^/| /' conftest.$ac_ext >&5
2387
2388continue
2389fi
8a2fc586 2390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2391 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2392/* confdefs.h. */
2393_ACEOF
2394cat confdefs.h >>conftest.$ac_ext
2395cat >>conftest.$ac_ext <<_ACEOF
2396/* end confdefs.h. */
2397$ac_declaration
2398int
2399main ()
2400{
2401exit (42);
2402 ;
2403 return 0;
2404}
2405_ACEOF
2406rm -f conftest.$ac_objext
2407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 2408 (eval $ac_compile) 2>conftest.er1
ad6254c5 2409 ac_status=$?
8a2fc586
AK
2410 grep -v '^ *+' conftest.er1 >conftest.err
2411 rm -f conftest.er1
2412 cat conftest.err >&5
ad6254c5
AK
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); } &&
8a2fc586
AK
2415 { ac_try='test -z "$ac_c_werror_flag"
2416 || test ! -s conftest.err'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418 (eval $ac_try) 2>&5
2419 ac_status=$?
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; } &&
2422 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424 (eval $ac_try) 2>&5
2425 ac_status=$?
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; }; then
2428 break
2429else
2430 echo "$as_me: failed program was:" >&5
2431sed 's/^/| /' conftest.$ac_ext >&5
2432
2433fi
8a2fc586 2434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
2435done
2436rm -f conftest*
2437if test -n "$ac_declaration"; then
2438 echo '#ifdef __cplusplus' >>confdefs.h
2439 echo $ac_declaration >>confdefs.h
2440 echo '#endif' >>confdefs.h
2441fi
2442
2443else
2444 echo "$as_me: failed program was:" >&5
2445sed 's/^/| /' conftest.$ac_ext >&5
2446
2447fi
8a2fc586 2448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
2449ac_ext=c
2450ac_cpp='$CPP $CPPFLAGS'
2451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2453ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5
AK
2454
2455# Find a good install program. We prefer a C program (faster),
2456# so one script is as good as another. But avoid the broken or
2457# incompatible versions:
2458# SysV /etc/install, /usr/sbin/install
2459# SunOS /usr/etc/install
2460# IRIX /sbin/install
2461# AIX /bin/install
ad6254c5 2462# AmigaOS /C/install, which installs bootblocks on floppy discs
795ca3e5
AK
2463# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2464# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2465# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8a2fc586 2466# OS/2's system install, which has a completely different semantic
795ca3e5 2467# ./install, which can be erroneously created by make from ./install.sh.
ad6254c5
AK
2468echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2469echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
795ca3e5 2470if test -z "$INSTALL"; then
ad6254c5
AK
2471if test "${ac_cv_path_install+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
2473else
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475for as_dir in $PATH
2476do
2477 IFS=$as_save_IFS
2478 test -z "$as_dir" && as_dir=.
2479 # Account for people who put trailing slashes in PATH elements.
2480case $as_dir/ in
2481 ./ | .// | /cC/* | \
2482 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8a2fc586 2483 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
ad6254c5
AK
2484 /usr/ucb/* ) ;;
2485 *)
2486 # OSF1 and SCO ODT 3.0 have their own names for install.
2487 # Don't use installbsd from OSF since it installs stuff as root
2488 # by default.
2489 for ac_prog in ginstall scoinst install; do
2490 for ac_exec_ext in '' $ac_executable_extensions; do
8a2fc586
AK
2491 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2492 if test $ac_prog = install &&
2493 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2494 # AIX install. It has an incompatible calling convention.
2495 :
2496 elif test $ac_prog = install &&
2497 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2498 # program-specific install script used by HP pwplus--don't use.
2499 :
2500 else
2501 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2502 break 3
2503 fi
2504 fi
795ca3e5 2505 done
ad6254c5
AK
2506 done
2507 ;;
2508esac
2509done
2510
795ca3e5
AK
2511
2512fi
2513 if test "${ac_cv_path_install+set}" = set; then
ad6254c5 2514 INSTALL=$ac_cv_path_install
795ca3e5
AK
2515 else
2516 # As a last resort, use the slow shell script. We don't cache a
2517 # path for INSTALL within a source directory, because that will
2518 # break other packages using the cache if that directory is
2519 # removed, or if the path is relative.
ad6254c5 2520 INSTALL=$ac_install_sh
795ca3e5
AK
2521 fi
2522fi
ad6254c5
AK
2523echo "$as_me:$LINENO: result: $INSTALL" >&5
2524echo "${ECHO_T}$INSTALL" >&6
795ca3e5
AK
2525
2526# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2527# It thinks the first close brace ends the variable substitution.
2528test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2529
ad6254c5 2530test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
795ca3e5
AK
2531
2532test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2533
ad6254c5
AK
2534echo "$as_me:$LINENO: checking whether ln -s works" >&5
2535echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2536LN_S=$as_ln_s
2537if test "$LN_S" = "ln -s"; then
2538 echo "$as_me:$LINENO: result: yes" >&5
2539echo "${ECHO_T}yes" >&6
80992638 2540else
ad6254c5
AK
2541 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2542echo "${ECHO_T}no, using $LN_S" >&6
795ca3e5
AK
2543fi
2544
ad6254c5
AK
2545echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2546echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8a2fc586 2547set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
ad6254c5
AK
2548if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2549 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2550else
ad6254c5 2551 cat >conftest.make <<\_ACEOF
795ca3e5 2552all:
ad6254c5
AK
2553 @echo 'ac_maketemp="$(MAKE)"'
2554_ACEOF
795ca3e5 2555# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
ad6254c5 2556eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
795ca3e5
AK
2557if test -n "$ac_maketemp"; then
2558 eval ac_cv_prog_make_${ac_make}_set=yes
2559else
2560 eval ac_cv_prog_make_${ac_make}_set=no
2561fi
ad6254c5 2562rm -f conftest.make
795ca3e5
AK
2563fi
2564if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
ad6254c5
AK
2565 echo "$as_me:$LINENO: result: yes" >&5
2566echo "${ECHO_T}yes" >&6
795ca3e5
AK
2567 SET_MAKE=
2568else
ad6254c5
AK
2569 echo "$as_me:$LINENO: result: no" >&5
2570echo "${ECHO_T}no" >&6
795ca3e5
AK
2571 SET_MAKE="MAKE=${MAKE-make}"
2572fi
2573
ad6254c5
AK
2574if test -n "$ac_tool_prefix"; then
2575 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2576set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2577echo "$as_me:$LINENO: checking for $ac_word" >&5
2578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2579if test "${ac_cv_prog_RANLIB+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2581else
2582 if test -n "$RANLIB"; then
2583 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2584else
ad6254c5
AK
2585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586for as_dir in $PATH
2587do
2588 IFS=$as_save_IFS
2589 test -z "$as_dir" && as_dir=.
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2592 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2594 break 2
2595 fi
2596done
2597done
2598
795ca3e5
AK
2599fi
2600fi
ad6254c5 2601RANLIB=$ac_cv_prog_RANLIB
795ca3e5 2602if test -n "$RANLIB"; then
ad6254c5
AK
2603 echo "$as_me:$LINENO: result: $RANLIB" >&5
2604echo "${ECHO_T}$RANLIB" >&6
8106cdd5 2605else
ad6254c5
AK
2606 echo "$as_me:$LINENO: result: no" >&5
2607echo "${ECHO_T}no" >&6
8106cdd5
AK
2608fi
2609
795ca3e5 2610fi
ad6254c5
AK
2611if test -z "$ac_cv_prog_RANLIB"; then
2612 ac_ct_RANLIB=$RANLIB
2613 # Extract the first word of "ranlib", so it can be a program name with args.
2614set dummy ranlib; ac_word=$2
2615echo "$as_me:$LINENO: checking for $ac_word" >&5
2616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2617if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 2619else
ad6254c5
AK
2620 if test -n "$ac_ct_RANLIB"; then
2621 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2622else
2623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624for as_dir in $PATH
2625do
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630 ac_cv_prog_ac_ct_RANLIB="ranlib"
2631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 break 2
2633 fi
2634done
795ca3e5 2635done
8106cdd5 2636
ad6254c5 2637 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
795ca3e5 2638fi
80992638 2639fi
ad6254c5
AK
2640ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2641if test -n "$ac_ct_RANLIB"; then
2642 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2643echo "${ECHO_T}$ac_ct_RANLIB" >&6
80992638 2644else
ad6254c5
AK
2645 echo "$as_me:$LINENO: result: no" >&5
2646echo "${ECHO_T}no" >&6
8106cdd5 2647fi
8106cdd5 2648
ad6254c5 2649 RANLIB=$ac_ct_RANLIB
80992638 2650else
ad6254c5 2651 RANLIB="$ac_cv_prog_RANLIB"
80992638 2652fi
795ca3e5 2653
8a2fc586
AK
2654# Extract the first word of "cflow", so it can be a program name with args.
2655set dummy cflow; ac_word=$2
2656echo "$as_me:$LINENO: checking for $ac_word" >&5
2657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2658if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2660else
2661 case $CFLOW_CMD in
2662 [\\/]* | ?:[\\/]*)
2663 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
2664 ;;
2665 *)
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667for as_dir in $PATH
2668do
2669 IFS=$as_save_IFS
2670 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2673 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
2674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 break 2
2676 fi
2677done
2678done
2679
2680 ;;
2681esac
2682fi
2683CFLOW_CMD=$ac_cv_path_CFLOW_CMD
2684
2685if test -n "$CFLOW_CMD"; then
2686 echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
2687echo "${ECHO_T}$CFLOW_CMD" >&6
2688else
2689 echo "$as_me:$LINENO: result: no" >&5
2690echo "${ECHO_T}no" >&6
2691fi
2692
2693# Extract the first word of "cscope", so it can be a program name with args.
2694set dummy cscope; ac_word=$2
2695echo "$as_me:$LINENO: checking for $ac_word" >&5
2696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2697if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
2699else
2700 case $CSCOPE_CMD in
2701 [\\/]* | ?:[\\/]*)
2702 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
2703 ;;
2704 *)
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706for as_dir in $PATH
2707do
2708 IFS=$as_save_IFS
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2712 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
2713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714 break 2
2715 fi
2716done
2717done
2718
2719 ;;
2720esac
2721fi
2722CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
2723
2724if test -n "$CSCOPE_CMD"; then
2725 echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
2726echo "${ECHO_T}$CSCOPE_CMD" >&6
2727else
2728 echo "$as_me:$LINENO: result: no" >&5
2729echo "${ECHO_T}no" >&6
2730fi
2731
795ca3e5 2732
ad6254c5
AK
2733################################################################################
2734
2735
2736
2737
2738
2739
2740ac_header_dirent=no
2741for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2742 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2743echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
2744echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2745if eval "test \"\${$as_ac_Header+set}\" = set"; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 2747else
ad6254c5 2748 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2749/* confdefs.h. */
2750_ACEOF
2751cat confdefs.h >>conftest.$ac_ext
2752cat >>conftest.$ac_ext <<_ACEOF
2753/* end confdefs.h. */
2754#include <sys/types.h>
2755#include <$ac_hdr>
2756
2757int
2758main ()
2759{
2760if ((DIR *) 0)
2761return 0;
2762 ;
2763 return 0;
2764}
2765_ACEOF
2766rm -f conftest.$ac_objext
2767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 2768 (eval $ac_compile) 2>conftest.er1
ad6254c5 2769 ac_status=$?
8a2fc586
AK
2770 grep -v '^ *+' conftest.er1 >conftest.err
2771 rm -f conftest.er1
2772 cat conftest.err >&5
ad6254c5
AK
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } &&
8a2fc586
AK
2775 { ac_try='test -z "$ac_c_werror_flag"
2776 || test ! -s conftest.err'
2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 (eval $ac_try) 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; } &&
2782 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 (eval $ac_try) 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; }; then
2788 eval "$as_ac_Header=yes"
8106cdd5 2789else
ad6254c5
AK
2790 echo "$as_me: failed program was:" >&5
2791sed 's/^/| /' conftest.$ac_ext >&5
2792
2793eval "$as_ac_Header=no"
795ca3e5 2794fi
8a2fc586 2795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 2796fi
ad6254c5
AK
2797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2798echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2799if test `eval echo '${'$as_ac_Header'}'` = yes; then
2800 cat >>confdefs.h <<_ACEOF
2801#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
2802_ACEOF
2803
2804ac_header_dirent=$ac_hdr; break
795ca3e5 2805fi
8106cdd5 2806
ad6254c5
AK
2807done
2808# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2809if test $ac_header_dirent = dirent.h; then
2810 echo "$as_me:$LINENO: checking for library containing opendir" >&5
2811echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2812if test "${ac_cv_search_opendir+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2814else
ad6254c5
AK
2815 ac_func_search_save_LIBS=$LIBS
2816ac_cv_search_opendir=no
2817cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2818/* confdefs.h. */
2819_ACEOF
2820cat confdefs.h >>conftest.$ac_ext
2821cat >>conftest.$ac_ext <<_ACEOF
2822/* end confdefs.h. */
2823
2824/* Override any gcc2 internal prototype to avoid an error. */
2825#ifdef __cplusplus
2826extern "C"
2827#endif
2828/* We use char because int might match the return type of a gcc2
2829 builtin and then its argument prototype would still apply. */
2830char opendir ();
2831int
2832main ()
2833{
2834opendir ();
2835 ;
2836 return 0;
2837}
2838_ACEOF
2839rm -f conftest.$ac_objext conftest$ac_exeext
2840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 2841 (eval $ac_link) 2>conftest.er1
ad6254c5 2842 ac_status=$?
8a2fc586
AK
2843 grep -v '^ *+' conftest.er1 >conftest.err
2844 rm -f conftest.er1
2845 cat conftest.err >&5
ad6254c5
AK
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); } &&
8a2fc586
AK
2848 { ac_try='test -z "$ac_c_werror_flag"
2849 || test ! -s conftest.err'
2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 (eval $ac_try) 2>&5
2852 ac_status=$?
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; } &&
2855 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
2856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857 (eval $ac_try) 2>&5
2858 ac_status=$?
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }; }; then
2861 ac_cv_search_opendir="none required"
795ca3e5 2862else
ad6254c5
AK
2863 echo "$as_me: failed program was:" >&5
2864sed 's/^/| /' conftest.$ac_ext >&5
2865
2866fi
8a2fc586
AK
2867rm -f conftest.err conftest.$ac_objext \
2868 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
2869if test "$ac_cv_search_opendir" = no; then
2870 for ac_lib in dir; do
2871 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2872 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2873/* confdefs.h. */
2874_ACEOF
2875cat confdefs.h >>conftest.$ac_ext
2876cat >>conftest.$ac_ext <<_ACEOF
2877/* end confdefs.h. */
795ca3e5 2878
ad6254c5
AK
2879/* Override any gcc2 internal prototype to avoid an error. */
2880#ifdef __cplusplus
2881extern "C"
2882#endif
2883/* We use char because int might match the return type of a gcc2
2884 builtin and then its argument prototype would still apply. */
2885char opendir ();
2886int
2887main ()
2888{
2889opendir ();
2890 ;
2891 return 0;
2892}
2893_ACEOF
2894rm -f conftest.$ac_objext conftest$ac_exeext
2895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 2896 (eval $ac_link) 2>conftest.er1
ad6254c5 2897 ac_status=$?
8a2fc586
AK
2898 grep -v '^ *+' conftest.er1 >conftest.err
2899 rm -f conftest.er1
2900 cat conftest.err >&5
ad6254c5
AK
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } &&
8a2fc586
AK
2903 { ac_try='test -z "$ac_c_werror_flag"
2904 || test ! -s conftest.err'
2905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906 (eval $ac_try) 2>&5
2907 ac_status=$?
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; } &&
2910 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
2911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912 (eval $ac_try) 2>&5
2913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; }; then
2916 ac_cv_search_opendir="-l$ac_lib"
2917break
795ca3e5 2918else
ad6254c5
AK
2919 echo "$as_me: failed program was:" >&5
2920sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5
AK
2921
2922fi
8a2fc586
AK
2923rm -f conftest.err conftest.$ac_objext \
2924 conftest$ac_exeext conftest.$ac_ext
ad6254c5 2925 done
795ca3e5 2926fi
ad6254c5
AK
2927LIBS=$ac_func_search_save_LIBS
2928fi
2929echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
2930echo "${ECHO_T}$ac_cv_search_opendir" >&6
2931if test "$ac_cv_search_opendir" != no; then
2932 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
795ca3e5
AK
2933
2934fi
2935
795ca3e5 2936else
ad6254c5
AK
2937 echo "$as_me:$LINENO: checking for library containing opendir" >&5
2938echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2939if test "${ac_cv_search_opendir+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
2941else
2942 ac_func_search_save_LIBS=$LIBS
2943ac_cv_search_opendir=no
2944cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2945/* confdefs.h. */
2946_ACEOF
2947cat confdefs.h >>conftest.$ac_ext
2948cat >>conftest.$ac_ext <<_ACEOF
2949/* end confdefs.h. */
80992638 2950
ad6254c5
AK
2951/* Override any gcc2 internal prototype to avoid an error. */
2952#ifdef __cplusplus
2953extern "C"
2954#endif
2955/* We use char because int might match the return type of a gcc2
2956 builtin and then its argument prototype would still apply. */
2957char opendir ();
2958int
2959main ()
2960{
2961opendir ();
2962 ;
2963 return 0;
2964}
2965_ACEOF
2966rm -f conftest.$ac_objext conftest$ac_exeext
2967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 2968 (eval $ac_link) 2>conftest.er1
ad6254c5 2969 ac_status=$?
8a2fc586
AK
2970 grep -v '^ *+' conftest.er1 >conftest.err
2971 rm -f conftest.er1
2972 cat conftest.err >&5
ad6254c5
AK
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); } &&
8a2fc586
AK
2975 { ac_try='test -z "$ac_c_werror_flag"
2976 || test ! -s conftest.err'
2977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2978 (eval $ac_try) 2>&5
2979 ac_status=$?
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }; } &&
2982 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
2983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984 (eval $ac_try) 2>&5
2985 ac_status=$?
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; }; then
2988 ac_cv_search_opendir="none required"
795ca3e5 2989else
ad6254c5
AK
2990 echo "$as_me: failed program was:" >&5
2991sed 's/^/| /' conftest.$ac_ext >&5
2992
2993fi
8a2fc586
AK
2994rm -f conftest.err conftest.$ac_objext \
2995 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
2996if test "$ac_cv_search_opendir" = no; then
2997 for ac_lib in x; do
2998 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2999 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3000/* confdefs.h. */
3001_ACEOF
3002cat confdefs.h >>conftest.$ac_ext
3003cat >>conftest.$ac_ext <<_ACEOF
3004/* end confdefs.h. */
3005
3006/* Override any gcc2 internal prototype to avoid an error. */
3007#ifdef __cplusplus
3008extern "C"
3009#endif
3010/* We use char because int might match the return type of a gcc2
3011 builtin and then its argument prototype would still apply. */
3012char opendir ();
3013int
3014main ()
3015{
3016opendir ();
3017 ;
3018 return 0;
3019}
3020_ACEOF
3021rm -f conftest.$ac_objext conftest$ac_exeext
3022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 3023 (eval $ac_link) 2>conftest.er1
ad6254c5 3024 ac_status=$?
8a2fc586
AK
3025 grep -v '^ *+' conftest.er1 >conftest.err
3026 rm -f conftest.er1
3027 cat conftest.err >&5
ad6254c5
AK
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } &&
8a2fc586
AK
3030 { ac_try='test -z "$ac_c_werror_flag"
3031 || test ! -s conftest.err'
3032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033 (eval $ac_try) 2>&5
3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; } &&
3037 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
3038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039 (eval $ac_try) 2>&5
3040 ac_status=$?
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; }; then
3043 ac_cv_search_opendir="-l$ac_lib"
3044break
3045else
3046 echo "$as_me: failed program was:" >&5
3047sed 's/^/| /' conftest.$ac_ext >&5
80992638 3048
795ca3e5 3049fi
8a2fc586
AK
3050rm -f conftest.err conftest.$ac_objext \
3051 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
3052 done
3053fi
3054LIBS=$ac_func_search_save_LIBS
795ca3e5 3055fi
ad6254c5
AK
3056echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3057echo "${ECHO_T}$ac_cv_search_opendir" >&6
3058if test "$ac_cv_search_opendir" != no; then
3059 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8106cdd5 3060
ad6254c5 3061fi
8106cdd5 3062
795ca3e5 3063fi
8106cdd5 3064
ad6254c5
AK
3065ac_ext=c
3066ac_cpp='$CPP $CPPFLAGS'
3067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3069ac_compiler_gnu=$ac_cv_c_compiler_gnu
3070echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3071echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3072# On Suns, sometimes $CPP names a directory.
3073if test -n "$CPP" && test -d "$CPP"; then
3074 CPP=
3075fi
3076if test -z "$CPP"; then
3077 if test "${ac_cv_prog_CPP+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3079else
3080 # Double quotes because CPP needs to be expanded
3081 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3082 do
3083 ac_preproc_ok=false
3084for ac_c_preproc_warn_flag in '' yes
8106cdd5 3085do
ad6254c5
AK
3086 # Use a header file that comes with gcc, so configuring glibc
3087 # with a fresh cross-compiler works.
3088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3089 # <limits.h> exists even on freestanding compilers.
3090 # On the NeXT, cc -E runs the code through the compiler's parser,
3091 # not just through cpp. "Syntax error" is here to catch this case.
3092 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3093/* confdefs.h. */
3094_ACEOF
3095cat confdefs.h >>conftest.$ac_ext
3096cat >>conftest.$ac_ext <<_ACEOF
3097/* end confdefs.h. */
3098#ifdef __STDC__
3099# include <limits.h>
3100#else
3101# include <assert.h>
3102#endif
8a2fc586 3103 Syntax error
ad6254c5
AK
3104_ACEOF
3105if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3107 ac_status=$?
3108 grep -v '^ *+' conftest.er1 >conftest.err
3109 rm -f conftest.er1
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } >/dev/null; then
3113 if test -s conftest.err; then
3114 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 3115 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3116 else
3117 ac_cpp_err=
3118 fi
3119else
3120 ac_cpp_err=yes
8106cdd5 3121fi
ad6254c5
AK
3122if test -z "$ac_cpp_err"; then
3123 :
3124else
3125 echo "$as_me: failed program was:" >&5
3126sed 's/^/| /' conftest.$ac_ext >&5
3127
3128 # Broken: fails on valid input.
3129continue
3130fi
3131rm -f conftest.err conftest.$ac_ext
3132
3133 # OK, works on sane cases. Now check whether non-existent headers
3134 # can be detected and how.
3135 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3136/* confdefs.h. */
3137_ACEOF
3138cat confdefs.h >>conftest.$ac_ext
3139cat >>conftest.$ac_ext <<_ACEOF
3140/* end confdefs.h. */
3141#include <ac_nonexistent.h>
3142_ACEOF
3143if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3145 ac_status=$?
3146 grep -v '^ *+' conftest.er1 >conftest.err
3147 rm -f conftest.er1
3148 cat conftest.err >&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); } >/dev/null; then
3151 if test -s conftest.err; then
3152 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 3153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3154 else
3155 ac_cpp_err=
3156 fi
3157else
3158 ac_cpp_err=yes
8106cdd5 3159fi
ad6254c5
AK
3160if test -z "$ac_cpp_err"; then
3161 # Broken: success on invalid input.
3162continue
80992638 3163else
ad6254c5
AK
3164 echo "$as_me: failed program was:" >&5
3165sed 's/^/| /' conftest.$ac_ext >&5
3166
3167 # Passes both tests.
3168ac_preproc_ok=:
3169break
795ca3e5 3170fi
ad6254c5
AK
3171rm -f conftest.err conftest.$ac_ext
3172
795ca3e5 3173done
ad6254c5
AK
3174# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3175rm -f conftest.err conftest.$ac_ext
3176if $ac_preproc_ok; then
3177 break
3178fi
795ca3e5 3179
ad6254c5
AK
3180 done
3181 ac_cv_prog_CPP=$CPP
795ca3e5 3182
ad6254c5
AK
3183fi
3184 CPP=$ac_cv_prog_CPP
795ca3e5 3185else
ad6254c5 3186 ac_cv_prog_CPP=$CPP
795ca3e5 3187fi
ad6254c5
AK
3188echo "$as_me:$LINENO: result: $CPP" >&5
3189echo "${ECHO_T}$CPP" >&6
3190ac_preproc_ok=false
3191for ac_c_preproc_warn_flag in '' yes
3192do
3193 # Use a header file that comes with gcc, so configuring glibc
3194 # with a fresh cross-compiler works.
3195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3196 # <limits.h> exists even on freestanding compilers.
3197 # On the NeXT, cc -E runs the code through the compiler's parser,
3198 # not just through cpp. "Syntax error" is here to catch this case.
3199 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3200/* confdefs.h. */
3201_ACEOF
3202cat confdefs.h >>conftest.$ac_ext
3203cat >>conftest.$ac_ext <<_ACEOF
3204/* end confdefs.h. */
3205#ifdef __STDC__
3206# include <limits.h>
3207#else
3208# include <assert.h>
3209#endif
8a2fc586 3210 Syntax error
ad6254c5
AK
3211_ACEOF
3212if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3214 ac_status=$?
3215 grep -v '^ *+' conftest.er1 >conftest.err
3216 rm -f conftest.er1
3217 cat conftest.err >&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); } >/dev/null; then
3220 if test -s conftest.err; then
3221 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 3222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3223 else
3224 ac_cpp_err=
3225 fi
3226else
3227 ac_cpp_err=yes
795ca3e5 3228fi
ad6254c5
AK
3229if test -z "$ac_cpp_err"; then
3230 :
3231else
3232 echo "$as_me: failed program was:" >&5
3233sed 's/^/| /' conftest.$ac_ext >&5
3234
3235 # Broken: fails on valid input.
3236continue
3237fi
3238rm -f conftest.err conftest.$ac_ext
3239
3240 # OK, works on sane cases. Now check whether non-existent headers
3241 # can be detected and how.
3242 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3243/* confdefs.h. */
3244_ACEOF
3245cat confdefs.h >>conftest.$ac_ext
3246cat >>conftest.$ac_ext <<_ACEOF
3247/* end confdefs.h. */
3248#include <ac_nonexistent.h>
3249_ACEOF
3250if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3252 ac_status=$?
3253 grep -v '^ *+' conftest.er1 >conftest.err
3254 rm -f conftest.er1
3255 cat conftest.err >&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } >/dev/null; then
3258 if test -s conftest.err; then
3259 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 3260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3261 else
3262 ac_cpp_err=
3263 fi
3264else
3265 ac_cpp_err=yes
3266fi
3267if test -z "$ac_cpp_err"; then
3268 # Broken: success on invalid input.
3269continue
3270else
3271 echo "$as_me: failed program was:" >&5
3272sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 3273
ad6254c5
AK
3274 # Passes both tests.
3275ac_preproc_ok=:
3276break
795ca3e5 3277fi
ad6254c5 3278rm -f conftest.err conftest.$ac_ext
795ca3e5 3279
ad6254c5
AK
3280done
3281# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3282rm -f conftest.err conftest.$ac_ext
3283if $ac_preproc_ok; then
3284 :
795ca3e5 3285else
ad6254c5
AK
3286 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3287See \`config.log' for more details." >&5
3288echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3289See \`config.log' for more details." >&2;}
3290 { (exit 1); exit 1; }; }
795ca3e5 3291fi
795ca3e5 3292
ad6254c5
AK
3293ac_ext=c
3294ac_cpp='$CPP $CPPFLAGS'
3295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3297ac_compiler_gnu=$ac_cv_c_compiler_gnu
3298
3299
3300echo "$as_me:$LINENO: checking for egrep" >&5
3301echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3302if test "${ac_cv_prog_egrep+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3304else
3305 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3306 then ac_cv_prog_egrep='grep -E'
3307 else ac_cv_prog_egrep='egrep'
3308 fi
795ca3e5 3309fi
ad6254c5
AK
3310echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3311echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3312 EGREP=$ac_cv_prog_egrep
80992638 3313
795ca3e5 3314
ad6254c5
AK
3315echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3316echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3317if test "${ac_cv_header_stdc+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3319else
ad6254c5 3320 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3321/* confdefs.h. */
3322_ACEOF
3323cat confdefs.h >>conftest.$ac_ext
3324cat >>conftest.$ac_ext <<_ACEOF
3325/* end confdefs.h. */
80992638 3326#include <stdlib.h>
ad6254c5
AK
3327#include <stdarg.h>
3328#include <string.h>
3329#include <float.h>
3330
3331int
3332main ()
3333{
3334
3335 ;
3336 return 0;
3337}
3338_ACEOF
3339rm -f conftest.$ac_objext
3340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 3341 (eval $ac_compile) 2>conftest.er1
ad6254c5 3342 ac_status=$?
8a2fc586
AK
3343 grep -v '^ *+' conftest.er1 >conftest.err
3344 rm -f conftest.er1
3345 cat conftest.err >&5
ad6254c5
AK
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } &&
8a2fc586
AK
3348 { ac_try='test -z "$ac_c_werror_flag"
3349 || test ! -s conftest.err'
3350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 (eval $ac_try) 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; } &&
3355 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357 (eval $ac_try) 2>&5
3358 ac_status=$?
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }; }; then
3361 ac_cv_header_stdc=yes
795ca3e5 3362else
ad6254c5
AK
3363 echo "$as_me: failed program was:" >&5
3364sed 's/^/| /' conftest.$ac_ext >&5
3365
3366ac_cv_header_stdc=no
795ca3e5 3367fi
8a2fc586 3368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3369
3370if test $ac_cv_header_stdc = yes; then
3371 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3372 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3373/* confdefs.h. */
3374_ACEOF
3375cat confdefs.h >>conftest.$ac_ext
3376cat >>conftest.$ac_ext <<_ACEOF
3377/* end confdefs.h. */
3378#include <string.h>
8106cdd5 3379
ad6254c5
AK
3380_ACEOF
3381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3382 $EGREP "memchr" >/dev/null 2>&1; then
3383 :
3384else
3385 ac_cv_header_stdc=no
80992638 3386fi
ad6254c5 3387rm -f conftest*
795ca3e5
AK
3388
3389fi
3390
ad6254c5
AK
3391if test $ac_cv_header_stdc = yes; then
3392 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3393 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3394/* confdefs.h. */
3395_ACEOF
3396cat confdefs.h >>conftest.$ac_ext
3397cat >>conftest.$ac_ext <<_ACEOF
3398/* end confdefs.h. */
80992638 3399#include <stdlib.h>
ad6254c5
AK
3400
3401_ACEOF
80992638 3402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
3403 $EGREP "free" >/dev/null 2>&1; then
3404 :
795ca3e5 3405else
ad6254c5 3406 ac_cv_header_stdc=no
795ca3e5 3407fi
80992638 3408rm -f conftest*
8106cdd5 3409
795ca3e5
AK
3410fi
3411
ad6254c5
AK
3412if test $ac_cv_header_stdc = yes; then
3413 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3414 if test "$cross_compiling" = yes; then
3415 :
795ca3e5 3416else
ad6254c5 3417 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3418/* confdefs.h. */
3419_ACEOF
3420cat confdefs.h >>conftest.$ac_ext
3421cat >>conftest.$ac_ext <<_ACEOF
3422/* end confdefs.h. */
3423#include <ctype.h>
3424#if ((' ' & 0x0FF) == 0x020)
3425# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3426# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3427#else
3428# define ISLOWER(c) \
8a2fc586
AK
3429 (('a' <= (c) && (c) <= 'i') \
3430 || ('j' <= (c) && (c) <= 'r') \
3431 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 3432# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 3433#endif
ad6254c5
AK
3434
3435#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3436int
3437main ()
3438{
3439 int i;
3440 for (i = 0; i < 256; i++)
3441 if (XOR (islower (i), ISLOWER (i))
8a2fc586 3442 || toupper (i) != TOUPPER (i))
ad6254c5
AK
3443 exit(2);
3444 exit (0);
3445}
3446_ACEOF
3447rm -f conftest$ac_exeext
3448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3449 (eval $ac_link) 2>&5
3450 ac_status=$?
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454 (eval $ac_try) 2>&5
3455 ac_status=$?
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; }; then
3458 :
795ca3e5 3459else
ad6254c5
AK
3460 echo "$as_me: program exited with status $ac_status" >&5
3461echo "$as_me: failed program was:" >&5
3462sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 3463
ad6254c5
AK
3464( exit $ac_status )
3465ac_cv_header_stdc=no
80992638 3466fi
8a2fc586 3467rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3468fi
3469fi
3470fi
3471echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3472echo "${ECHO_T}$ac_cv_header_stdc" >&6
3473if test $ac_cv_header_stdc = yes; then
3474
3475cat >>confdefs.h <<\_ACEOF
3476#define STDC_HEADERS 1
3477_ACEOF
795ca3e5
AK
3478
3479fi
3480
ad6254c5
AK
3481echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3482echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3483if test "${ac_cv_header_sys_wait_h+set}" = set; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 3485else
ad6254c5 3486 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3487/* confdefs.h. */
3488_ACEOF
3489cat confdefs.h >>conftest.$ac_ext
3490cat >>conftest.$ac_ext <<_ACEOF
3491/* end confdefs.h. */
80992638 3492#include <sys/types.h>
ad6254c5
AK
3493#include <sys/wait.h>
3494#ifndef WEXITSTATUS
3495# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3496#endif
3497#ifndef WIFEXITED
3498# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3499#endif
3500
3501int
3502main ()
3503{
3504 int s;
3505 wait (&s);
3506 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3507 ;
3508 return 0;
3509}
3510_ACEOF
3511rm -f conftest.$ac_objext
3512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 3513 (eval $ac_compile) 2>conftest.er1
ad6254c5 3514 ac_status=$?
8a2fc586
AK
3515 grep -v '^ *+' conftest.er1 >conftest.err
3516 rm -f conftest.er1
3517 cat conftest.err >&5
ad6254c5
AK
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } &&
8a2fc586
AK
3520 { ac_try='test -z "$ac_c_werror_flag"
3521 || test ! -s conftest.err'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523 (eval $ac_try) 2>&5
3524 ac_status=$?
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; } &&
3527 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529 (eval $ac_try) 2>&5
3530 ac_status=$?
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }; }; then
3533 ac_cv_header_sys_wait_h=yes
3534else
3535 echo "$as_me: failed program was:" >&5
3536sed 's/^/| /' conftest.$ac_ext >&5
3537
3538ac_cv_header_sys_wait_h=no
8106cdd5 3539fi
8a2fc586 3540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 3541fi
ad6254c5
AK
3542echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3543echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3544if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 3545
ad6254c5
AK
3546cat >>confdefs.h <<\_ACEOF
3547#define HAVE_SYS_WAIT_H 1
3548_ACEOF
795ca3e5
AK
3549
3550fi
3551
ad6254c5
AK
3552echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3553echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3554if test "${ac_cv_header_time+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3556else
ad6254c5 3557 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3558/* confdefs.h. */
3559_ACEOF
3560cat confdefs.h >>conftest.$ac_ext
3561cat >>conftest.$ac_ext <<_ACEOF
3562/* end confdefs.h. */
795ca3e5
AK
3563#include <sys/types.h>
3564#include <sys/time.h>
3565#include <time.h>
ad6254c5
AK
3566
3567int
3568main ()
3569{
3570if ((struct tm *) 0)
3571return 0;
3572 ;
3573 return 0;
3574}
3575_ACEOF
3576rm -f conftest.$ac_objext
3577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 3578 (eval $ac_compile) 2>conftest.er1
ad6254c5 3579 ac_status=$?
8a2fc586
AK
3580 grep -v '^ *+' conftest.er1 >conftest.err
3581 rm -f conftest.er1
3582 cat conftest.err >&5
ad6254c5
AK
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); } &&
8a2fc586
AK
3585 { ac_try='test -z "$ac_c_werror_flag"
3586 || test ! -s conftest.err'
3587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3588 (eval $ac_try) 2>&5
3589 ac_status=$?
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }; } &&
3592 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3594 (eval $ac_try) 2>&5
3595 ac_status=$?
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }; }; then
795ca3e5
AK
3598 ac_cv_header_time=yes
3599else
ad6254c5
AK
3600 echo "$as_me: failed program was:" >&5
3601sed 's/^/| /' conftest.$ac_ext >&5
3602
3603ac_cv_header_time=no
795ca3e5 3604fi
8a2fc586 3605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 3606fi
ad6254c5
AK
3607echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3608echo "${ECHO_T}$ac_cv_header_time" >&6
80992638 3609if test $ac_cv_header_time = yes; then
ad6254c5
AK
3610
3611cat >>confdefs.h <<\_ACEOF
795ca3e5 3612#define TIME_WITH_SYS_TIME 1
ad6254c5 3613_ACEOF
b896caa1 3614
8106cdd5 3615fi
b896caa1 3616
b896caa1 3617
ad6254c5 3618# On IRIX 5.3, sys/types and inttypes.h are conflicting.
b896caa1 3619
b896caa1
AK
3620
3621
795ca3e5 3622
8106cdd5 3623
80992638 3624
795ca3e5 3625
a38df97f 3626
80992638 3627
ad6254c5 3628for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8a2fc586 3629 inttypes.h stdint.h unistd.h
ad6254c5
AK
3630do
3631as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3632echo "$as_me:$LINENO: checking for $ac_header" >&5
3633echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3634if eval "test \"\${$as_ac_Header+set}\" = set"; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3636else
3637 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3638/* confdefs.h. */
3639_ACEOF
3640cat confdefs.h >>conftest.$ac_ext
3641cat >>conftest.$ac_ext <<_ACEOF
3642/* end confdefs.h. */
3643$ac_includes_default
3644
3645#include <$ac_header>
3646_ACEOF
3647rm -f conftest.$ac_objext
3648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 3649 (eval $ac_compile) 2>conftest.er1
ad6254c5 3650 ac_status=$?
8a2fc586
AK
3651 grep -v '^ *+' conftest.er1 >conftest.err
3652 rm -f conftest.er1
3653 cat conftest.err >&5
ad6254c5
AK
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); } &&
8a2fc586
AK
3656 { ac_try='test -z "$ac_c_werror_flag"
3657 || test ! -s conftest.err'
3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659 (eval $ac_try) 2>&5
3660 ac_status=$?
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; } &&
3663 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665 (eval $ac_try) 2>&5
3666 ac_status=$?
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; }; then
3669 eval "$as_ac_Header=yes"
3670else
3671 echo "$as_me: failed program was:" >&5
3672sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3673
ad6254c5
AK
3674eval "$as_ac_Header=no"
3675fi
8a2fc586 3676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a38df97f 3677fi
ad6254c5
AK
3678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3679echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3680if test `eval echo '${'$as_ac_Header'}'` = yes; then
3681 cat >>confdefs.h <<_ACEOF
3682#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3683_ACEOF
a38df97f 3684
80992638
AK
3685fi
3686
ad6254c5
AK
3687done
3688
7d1552c9 3689
7d1552c9 3690
80992638 3691
5a52dca9 3692
5a52dca9 3693
ad6254c5
AK
3694
3695
3696
3697
3698
3699for 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
3700do
3701as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3702if eval "test \"\${$as_ac_Header+set}\" = set"; then
3703 echo "$as_me:$LINENO: checking for $ac_header" >&5
3704echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3705if eval "test \"\${$as_ac_Header+set}\" = set"; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3707fi
3708echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3709echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3710else
3711 # Is the header compilable?
3712echo "$as_me:$LINENO: checking $ac_header usability" >&5
3713echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3714cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3715/* confdefs.h. */
3716_ACEOF
3717cat confdefs.h >>conftest.$ac_ext
3718cat >>conftest.$ac_ext <<_ACEOF
3719/* end confdefs.h. */
3720$ac_includes_default
3721#include <$ac_header>
3722_ACEOF
3723rm -f conftest.$ac_objext
3724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 3725 (eval $ac_compile) 2>conftest.er1
ad6254c5 3726 ac_status=$?
8a2fc586
AK
3727 grep -v '^ *+' conftest.er1 >conftest.err
3728 rm -f conftest.er1
3729 cat conftest.err >&5
ad6254c5
AK
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } &&
8a2fc586
AK
3732 { ac_try='test -z "$ac_c_werror_flag"
3733 || test ! -s conftest.err'
3734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735 (eval $ac_try) 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; } &&
3739 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741 (eval $ac_try) 2>&5
3742 ac_status=$?
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); }; }; then
3745 ac_header_compiler=yes
3746else
3747 echo "$as_me: failed program was:" >&5
3748sed 's/^/| /' conftest.$ac_ext >&5
3749
3750ac_header_compiler=no
3751fi
8a2fc586 3752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3753echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3754echo "${ECHO_T}$ac_header_compiler" >&6
3755
3756# Is the header present?
3757echo "$as_me:$LINENO: checking $ac_header presence" >&5
3758echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3759cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3760/* confdefs.h. */
3761_ACEOF
3762cat confdefs.h >>conftest.$ac_ext
3763cat >>conftest.$ac_ext <<_ACEOF
3764/* end confdefs.h. */
3765#include <$ac_header>
3766_ACEOF
3767if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3769 ac_status=$?
3770 grep -v '^ *+' conftest.er1 >conftest.err
3771 rm -f conftest.er1
3772 cat conftest.err >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } >/dev/null; then
3775 if test -s conftest.err; then
3776 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 3777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3778 else
3779 ac_cpp_err=
3780 fi
3781else
3782 ac_cpp_err=yes
3783fi
3784if test -z "$ac_cpp_err"; then
3785 ac_header_preproc=yes
3786else
3787 echo "$as_me: failed program was:" >&5
3788sed 's/^/| /' conftest.$ac_ext >&5
3789
3790 ac_header_preproc=no
3791fi
3792rm -f conftest.err conftest.$ac_ext
3793echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3794echo "${ECHO_T}$ac_header_preproc" >&6
3795
3796# So? What about this header?
8a2fc586
AK
3797case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3798 yes:no: )
ad6254c5
AK
3799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3800echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
3801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3802echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3803 ac_header_preproc=yes
ad6254c5 3804 ;;
8a2fc586 3805 no:yes:* )
ad6254c5
AK
3806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3807echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
3808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3809echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3811echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3813echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
3814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3815echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
3816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3817echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
3818 (
3819 cat <<\_ASBOX
8a2fc586
AK
3820## ------------------------------------------ ##
3821## Report this to the AC_PACKAGE_NAME lists. ##
3822## ------------------------------------------ ##
ad6254c5
AK
3823_ASBOX
3824 ) |
3825 sed "s/^/$as_me: WARNING: /" >&2
3826 ;;
3827esac
3828echo "$as_me:$LINENO: checking for $ac_header" >&5
3829echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3830if eval "test \"\${$as_ac_Header+set}\" = set"; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3832else
8a2fc586 3833 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 3834fi
ad6254c5
AK
3835echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3836echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3837
3838fi
3839if test `eval echo '${'$as_ac_Header'}'` = yes; then
3840 cat >>confdefs.h <<_ACEOF
3841#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3842_ACEOF
b896caa1 3843
d8ac0fbc 3844else
ad6254c5
AK
3845 { { echo "$as_me:$LINENO: error: bailing out" >&5
3846echo "$as_me: error: bailing out" >&2;}
3847 { (exit 1); exit 1; }; }
80992638
AK
3848fi
3849
ad6254c5 3850done
d8ac0fbc 3851
d8ac0fbc 3852
d8ac0fbc 3853
80992638 3854
d3c8211f 3855
d3c8211f 3856
d3c8211f 3857
80992638 3858
4922197a 3859
4922197a 3860
ad6254c5
AK
3861
3862
3863
3864for 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
3865do
3866as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3867if eval "test \"\${$as_ac_Header+set}\" = set"; then
3868 echo "$as_me:$LINENO: checking for $ac_header" >&5
3869echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3870if eval "test \"\${$as_ac_Header+set}\" = set"; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3872fi
3873echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3874echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3875else
3876 # Is the header compilable?
3877echo "$as_me:$LINENO: checking $ac_header usability" >&5
3878echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3879cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3880/* confdefs.h. */
3881_ACEOF
3882cat confdefs.h >>conftest.$ac_ext
3883cat >>conftest.$ac_ext <<_ACEOF
3884/* end confdefs.h. */
3885$ac_includes_default
3886#include <$ac_header>
3887_ACEOF
3888rm -f conftest.$ac_objext
3889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 3890 (eval $ac_compile) 2>conftest.er1
ad6254c5 3891 ac_status=$?
8a2fc586
AK
3892 grep -v '^ *+' conftest.er1 >conftest.err
3893 rm -f conftest.er1
3894 cat conftest.err >&5
ad6254c5
AK
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } &&
8a2fc586
AK
3897 { ac_try='test -z "$ac_c_werror_flag"
3898 || test ! -s conftest.err'
3899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3900 (eval $ac_try) 2>&5
3901 ac_status=$?
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }; } &&
3904 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906 (eval $ac_try) 2>&5
3907 ac_status=$?
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; }; then
3910 ac_header_compiler=yes
3911else
3912 echo "$as_me: failed program was:" >&5
3913sed 's/^/| /' conftest.$ac_ext >&5
3914
3915ac_header_compiler=no
3916fi
8a2fc586 3917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3918echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3919echo "${ECHO_T}$ac_header_compiler" >&6
3920
3921# Is the header present?
3922echo "$as_me:$LINENO: checking $ac_header presence" >&5
3923echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3924cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3925/* confdefs.h. */
3926_ACEOF
3927cat confdefs.h >>conftest.$ac_ext
3928cat >>conftest.$ac_ext <<_ACEOF
3929/* end confdefs.h. */
3930#include <$ac_header>
3931_ACEOF
3932if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3934 ac_status=$?
3935 grep -v '^ *+' conftest.er1 >conftest.err
3936 rm -f conftest.er1
3937 cat conftest.err >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } >/dev/null; then
3940 if test -s conftest.err; then
3941 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 3942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3943 else
3944 ac_cpp_err=
3945 fi
3946else
3947 ac_cpp_err=yes
4922197a 3948fi
ad6254c5
AK
3949if test -z "$ac_cpp_err"; then
3950 ac_header_preproc=yes
3951else
3952 echo "$as_me: failed program was:" >&5
3953sed 's/^/| /' conftest.$ac_ext >&5
3954
3955 ac_header_preproc=no
3956fi
3957rm -f conftest.err conftest.$ac_ext
3958echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3959echo "${ECHO_T}$ac_header_preproc" >&6
3960
3961# So? What about this header?
8a2fc586
AK
3962case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3963 yes:no: )
ad6254c5
AK
3964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3965echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
3966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3967echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3968 ac_header_preproc=yes
ad6254c5 3969 ;;
8a2fc586 3970 no:yes:* )
ad6254c5
AK
3971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3972echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
3973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3974echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3976echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3978echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
3979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3980echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
3981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3982echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
3983 (
3984 cat <<\_ASBOX
8a2fc586
AK
3985## ------------------------------------------ ##
3986## Report this to the AC_PACKAGE_NAME lists. ##
3987## ------------------------------------------ ##
ad6254c5
AK
3988_ASBOX
3989 ) |
3990 sed "s/^/$as_me: WARNING: /" >&2
3991 ;;
3992esac
3993echo "$as_me:$LINENO: checking for $ac_header" >&5
3994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3995if eval "test \"\${$as_ac_Header+set}\" = set"; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3997else
8a2fc586 3998 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
3999fi
4000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4001echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4002
4003fi
4004if test `eval echo '${'$as_ac_Header'}'` = yes; then
4005 cat >>confdefs.h <<_ACEOF
4006#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4007_ACEOF
4922197a 4008
4922197a 4009else
ad6254c5
AK
4010 { { echo "$as_me:$LINENO: error: bailing out" >&5
4011echo "$as_me: error: bailing out" >&2;}
4012 { (exit 1); exit 1; }; }
80992638
AK
4013fi
4014
ad6254c5 4015done
4922197a 4016
4922197a 4017
ad6254c5
AK
4018case "$host_os" in
4019 linux*)
4922197a 4020
ad6254c5
AK
4021
4022
4023for ac_header in asm/byteorder.h linux/fs.h malloc.h
4024do
4025as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4026if eval "test \"\${$as_ac_Header+set}\" = set"; then
4027 echo "$as_me:$LINENO: checking for $ac_header" >&5
4028echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4029if eval "test \"\${$as_ac_Header+set}\" = set"; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4031fi
4032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4033echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
795ca3e5 4034else
ad6254c5
AK
4035 # Is the header compilable?
4036echo "$as_me:$LINENO: checking $ac_header usability" >&5
4037echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4038cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4039/* confdefs.h. */
4040_ACEOF
4041cat confdefs.h >>conftest.$ac_ext
4042cat >>conftest.$ac_ext <<_ACEOF
4043/* end confdefs.h. */
4044$ac_includes_default
4045#include <$ac_header>
4046_ACEOF
4047rm -f conftest.$ac_objext
4048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4049 (eval $ac_compile) 2>conftest.er1
ad6254c5 4050 ac_status=$?
8a2fc586
AK
4051 grep -v '^ *+' conftest.er1 >conftest.err
4052 rm -f conftest.er1
4053 cat conftest.err >&5
ad6254c5
AK
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); } &&
8a2fc586
AK
4056 { ac_try='test -z "$ac_c_werror_flag"
4057 || test ! -s conftest.err'
4058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4059 (eval $ac_try) 2>&5
4060 ac_status=$?
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); }; } &&
4063 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065 (eval $ac_try) 2>&5
4066 ac_status=$?
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); }; }; then
4069 ac_header_compiler=yes
4070else
4071 echo "$as_me: failed program was:" >&5
4072sed 's/^/| /' conftest.$ac_ext >&5
4073
4074ac_header_compiler=no
4075fi
8a2fc586 4076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4077echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4078echo "${ECHO_T}$ac_header_compiler" >&6
4079
4080# Is the header present?
4081echo "$as_me:$LINENO: checking $ac_header presence" >&5
4082echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4083cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4084/* confdefs.h. */
4085_ACEOF
4086cat confdefs.h >>conftest.$ac_ext
4087cat >>conftest.$ac_ext <<_ACEOF
4088/* end confdefs.h. */
4089#include <$ac_header>
4090_ACEOF
4091if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4093 ac_status=$?
4094 grep -v '^ *+' conftest.er1 >conftest.err
4095 rm -f conftest.er1
4096 cat conftest.err >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } >/dev/null; then
4099 if test -s conftest.err; then
4100 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 4101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
4102 else
4103 ac_cpp_err=
4104 fi
4105else
4106 ac_cpp_err=yes
4107fi
4108if test -z "$ac_cpp_err"; then
4109 ac_header_preproc=yes
4110else
4111 echo "$as_me: failed program was:" >&5
4112sed 's/^/| /' conftest.$ac_ext >&5
4113
4114 ac_header_preproc=no
4115fi
4116rm -f conftest.err conftest.$ac_ext
4117echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4118echo "${ECHO_T}$ac_header_preproc" >&6
4119
4120# So? What about this header?
8a2fc586
AK
4121case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4122 yes:no: )
ad6254c5
AK
4123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4124echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
4125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4126echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4127 ac_header_preproc=yes
ad6254c5 4128 ;;
8a2fc586 4129 no:yes:* )
ad6254c5
AK
4130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4131echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
4132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4133echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4135echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4137echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
4138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4139echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
4140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4141echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
4142 (
4143 cat <<\_ASBOX
8a2fc586
AK
4144## ------------------------------------------ ##
4145## Report this to the AC_PACKAGE_NAME lists. ##
4146## ------------------------------------------ ##
ad6254c5
AK
4147_ASBOX
4148 ) |
4149 sed "s/^/$as_me: WARNING: /" >&2
4150 ;;
4151esac
4152echo "$as_me:$LINENO: checking for $ac_header" >&5
4153echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4154if eval "test \"\${$as_ac_Header+set}\" = set"; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4156else
8a2fc586 4157 eval "$as_ac_Header=\$ac_header_preproc"
80992638 4158fi
ad6254c5
AK
4159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4160echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
80992638 4161
ad6254c5
AK
4162fi
4163if test `eval echo '${'$as_ac_Header'}'` = yes; then
4164 cat >>confdefs.h <<_ACEOF
4165#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4166_ACEOF
795ca3e5 4167
795ca3e5 4168else
ad6254c5
AK
4169 { { echo "$as_me:$LINENO: error: bailing out" >&5
4170echo "$as_me: error: bailing out" >&2;}
4171 { (exit 1); exit 1; }; }
80992638
AK
4172fi
4173
ad6254c5
AK
4174done
4175 ;;
4176 darwin*)
4177
795ca3e5 4178
ad6254c5
AK
4179for ac_header in machine/endian.h sys/disk.h
4180do
4181as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4182if eval "test \"\${$as_ac_Header+set}\" = set"; then
4183 echo "$as_me:$LINENO: checking for $ac_header" >&5
4184echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4185if eval "test \"\${$as_ac_Header+set}\" = set"; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4187fi
4188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4189echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4190else
4191 # Is the header compilable?
4192echo "$as_me:$LINENO: checking $ac_header usability" >&5
4193echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4194cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4195/* confdefs.h. */
4196_ACEOF
4197cat confdefs.h >>conftest.$ac_ext
4198cat >>conftest.$ac_ext <<_ACEOF
4199/* end confdefs.h. */
4200$ac_includes_default
4201#include <$ac_header>
4202_ACEOF
4203rm -f conftest.$ac_objext
4204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4205 (eval $ac_compile) 2>conftest.er1
ad6254c5 4206 ac_status=$?
8a2fc586
AK
4207 grep -v '^ *+' conftest.er1 >conftest.err
4208 rm -f conftest.er1
4209 cat conftest.err >&5
ad6254c5
AK
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } &&
8a2fc586
AK
4212 { ac_try='test -z "$ac_c_werror_flag"
4213 || test ! -s conftest.err'
4214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4215 (eval $ac_try) 2>&5
4216 ac_status=$?
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); }; } &&
4219 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221 (eval $ac_try) 2>&5
4222 ac_status=$?
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; }; then
4225 ac_header_compiler=yes
4226else
4227 echo "$as_me: failed program was:" >&5
4228sed 's/^/| /' conftest.$ac_ext >&5
4229
4230ac_header_compiler=no
4231fi
8a2fc586 4232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4233echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4234echo "${ECHO_T}$ac_header_compiler" >&6
4235
4236# Is the header present?
4237echo "$as_me:$LINENO: checking $ac_header presence" >&5
4238echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4239cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4240/* confdefs.h. */
4241_ACEOF
4242cat confdefs.h >>conftest.$ac_ext
4243cat >>conftest.$ac_ext <<_ACEOF
4244/* end confdefs.h. */
4245#include <$ac_header>
4246_ACEOF
4247if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4249 ac_status=$?
4250 grep -v '^ *+' conftest.er1 >conftest.err
4251 rm -f conftest.er1
4252 cat conftest.err >&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); } >/dev/null; then
4255 if test -s conftest.err; then
4256 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 4257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
4258 else
4259 ac_cpp_err=
4260 fi
4261else
4262 ac_cpp_err=yes
4263fi
4264if test -z "$ac_cpp_err"; then
4265 ac_header_preproc=yes
4266else
4267 echo "$as_me: failed program was:" >&5
4268sed 's/^/| /' conftest.$ac_ext >&5
4269
4270 ac_header_preproc=no
4271fi
4272rm -f conftest.err conftest.$ac_ext
4273echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4274echo "${ECHO_T}$ac_header_preproc" >&6
4275
4276# So? What about this header?
8a2fc586
AK
4277case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4278 yes:no: )
ad6254c5
AK
4279 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4280echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
4281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4282echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4283 ac_header_preproc=yes
ad6254c5 4284 ;;
8a2fc586 4285 no:yes:* )
ad6254c5
AK
4286 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4287echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
4288 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4289echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4290 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4291echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4292 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4293echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
4294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4295echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
4296 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4297echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
4298 (
4299 cat <<\_ASBOX
8a2fc586
AK
4300## ------------------------------------------ ##
4301## Report this to the AC_PACKAGE_NAME lists. ##
4302## ------------------------------------------ ##
ad6254c5
AK
4303_ASBOX
4304 ) |
4305 sed "s/^/$as_me: WARNING: /" >&2
4306 ;;
4307esac
4308echo "$as_me:$LINENO: checking for $ac_header" >&5
4309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4310if eval "test \"\${$as_ac_Header+set}\" = set"; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4312else
8a2fc586 4313 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4314fi
ad6254c5
AK
4315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4316echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
b896caa1 4317
ad6254c5
AK
4318fi
4319if test `eval echo '${'$as_ac_Header'}'` = yes; then
4320 cat >>confdefs.h <<_ACEOF
4321#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4322_ACEOF
4323
4324else
4325 { { echo "$as_me:$LINENO: error: bailing out" >&5
4326echo "$as_me: error: bailing out" >&2;}
4327 { (exit 1); exit 1; }; }
80992638
AK
4328fi
4329
ad6254c5
AK
4330done
4331 ;;
4332esac
d3c8211f 4333
80992638 4334################################################################################
ad6254c5
AK
4335echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4336echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4337if test "${ac_cv_c_const+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
d3c8211f 4339else
ad6254c5 4340 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4341/* confdefs.h. */
4342_ACEOF
4343cat confdefs.h >>conftest.$ac_ext
4344cat >>conftest.$ac_ext <<_ACEOF
4345/* end confdefs.h. */
4346
4347int
4348main ()
4349{
4350/* FIXME: Include the comments suggested by Paul. */
4351#ifndef __cplusplus
4352 /* Ultrix mips cc rejects this. */
4353 typedef int charset[2];
4354 const charset x;
4355 /* SunOS 4.1.1 cc rejects this. */
4356 char const *const *ccp;
4357 char **p;
4358 /* NEC SVR4.0.2 mips cc rejects this. */
4359 struct point {int x, y;};
4360 static struct point const zero = {0,0};
4361 /* AIX XL C 1.02.0.0 rejects this.
4362 It does not let you subtract one const X* pointer from another in
4363 an arm of an if-expression whose if-part is not a constant
4364 expression */
4365 const char *g = "string";
4366 ccp = &g + (g ? g-g : 0);
4367 /* HPUX 7.0 cc rejects these. */
4368 ++ccp;
4369 p = (char**) ccp;
4370 ccp = (char const *const *) p;
4371 { /* SCO 3.2v4 cc rejects this. */
4372 char *t;
4373 char const *s = 0 ? (char *) 0 : (char const *) 0;
4374
4375 *t++ = 0;
4376 }
4377 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4378 int x[] = {25, 17};
4379 const int *foo = &x[0];
4380 ++foo;
4381 }
4382 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4383 typedef const int *iptr;
4384 iptr p = 0;
4385 ++p;
4386 }
4387 { /* AIX XL C 1.02.0.0 rejects this saying
4388 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4389 struct s { int j; const int *ap[3]; };
4390 struct s *b; b->j = 5;
4391 }
4392 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4393 const int foo = 10;
4394 }
4395#endif
4396
4397 ;
4398 return 0;
4399}
4400_ACEOF
4401rm -f conftest.$ac_objext
4402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4403 (eval $ac_compile) 2>conftest.er1
ad6254c5 4404 ac_status=$?
8a2fc586
AK
4405 grep -v '^ *+' conftest.er1 >conftest.err
4406 rm -f conftest.er1
4407 cat conftest.err >&5
ad6254c5
AK
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); } &&
8a2fc586
AK
4410 { ac_try='test -z "$ac_c_werror_flag"
4411 || test ! -s conftest.err'
ad6254c5
AK
4412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413 (eval $ac_try) 2>&5
4414 ac_status=$?
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8a2fc586
AK
4416 (exit $ac_status); }; } &&
4417 { ac_try='test -s conftest.$ac_objext'
4418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 (eval $ac_try) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; }; then
ad6254c5
AK
4423 ac_cv_c_const=yes
4424else
4425 echo "$as_me: failed program was:" >&5
4426sed 's/^/| /' conftest.$ac_ext >&5
4427
4428ac_cv_c_const=no
4429fi
8a2fc586 4430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 4431fi
ad6254c5
AK
4432echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4433echo "${ECHO_T}$ac_cv_c_const" >&6
4434if test $ac_cv_c_const = no; then
80992638 4435
ad6254c5
AK
4436cat >>confdefs.h <<\_ACEOF
4437#define const
4438_ACEOF
80992638 4439
d3c8211f 4440fi
d3c8211f 4441
ad6254c5
AK
4442echo "$as_me:$LINENO: checking for inline" >&5
4443echo $ECHO_N "checking for inline... $ECHO_C" >&6
4444if test "${ac_cv_c_inline+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
8ef2b021 4446else
ad6254c5
AK
4447 ac_cv_c_inline=no
4448for ac_kw in inline __inline__ __inline; do
4449 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4450/* confdefs.h. */
4451_ACEOF
4452cat confdefs.h >>conftest.$ac_ext
4453cat >>conftest.$ac_ext <<_ACEOF
4454/* end confdefs.h. */
4455#ifndef __cplusplus
4456typedef int foo_t;
4457static $ac_kw foo_t static_foo () {return 0; }
4458$ac_kw foo_t foo () {return 0; }
4459#endif
80992638 4460
ad6254c5
AK
4461_ACEOF
4462rm -f conftest.$ac_objext
4463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4464 (eval $ac_compile) 2>conftest.er1
ad6254c5 4465 ac_status=$?
8a2fc586
AK
4466 grep -v '^ *+' conftest.er1 >conftest.err
4467 rm -f conftest.er1
4468 cat conftest.err >&5
ad6254c5
AK
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } &&
8a2fc586
AK
4471 { ac_try='test -z "$ac_c_werror_flag"
4472 || test ! -s conftest.err'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474 (eval $ac_try) 2>&5
4475 ac_status=$?
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; } &&
4478 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480 (eval $ac_try) 2>&5
4481 ac_status=$?
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; }; then
4484 ac_cv_c_inline=$ac_kw; break
4485else
4486 echo "$as_me: failed program was:" >&5
4487sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 4488
8ce0cbda 4489fi
8a2fc586 4490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 4491done
8ce0cbda 4492
8ce0cbda 4493fi
ad6254c5
AK
4494echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4495echo "${ECHO_T}$ac_cv_c_inline" >&6
8a2fc586
AK
4496
4497
ad6254c5
AK
4498case $ac_cv_c_inline in
4499 inline | yes) ;;
8a2fc586
AK
4500 *)
4501 case $ac_cv_c_inline in
4502 no) ac_val=;;
4503 *) ac_val=$ac_cv_c_inline;;
4504 esac
4505 cat >>confdefs.h <<_ACEOF
4506#ifndef __cplusplus
4507#define inline $ac_val
4508#endif
c1c065a3 4509_ACEOF
8a2fc586 4510 ;;
ad6254c5 4511esac
8ce0cbda 4512
ad6254c5
AK
4513echo "$as_me:$LINENO: checking for off_t" >&5
4514echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4515if test "${ac_cv_type_off_t+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4517else
4518 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4519/* confdefs.h. */
4520_ACEOF
4521cat confdefs.h >>conftest.$ac_ext
4522cat >>conftest.$ac_ext <<_ACEOF
4523/* end confdefs.h. */
4524$ac_includes_default
4525int
4526main ()
4527{
4528if ((off_t *) 0)
4529 return 0;
4530if (sizeof (off_t))
4531 return 0;
4532 ;
4533 return 0;
4534}
4535_ACEOF
4536rm -f conftest.$ac_objext
4537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4538 (eval $ac_compile) 2>conftest.er1
ad6254c5 4539 ac_status=$?
8a2fc586
AK
4540 grep -v '^ *+' conftest.er1 >conftest.err
4541 rm -f conftest.er1
4542 cat conftest.err >&5
ad6254c5
AK
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } &&
8a2fc586
AK
4545 { ac_try='test -z "$ac_c_werror_flag"
4546 || test ! -s conftest.err'
4547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548 (eval $ac_try) 2>&5
4549 ac_status=$?
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; } &&
4552 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554 (eval $ac_try) 2>&5
4555 ac_status=$?
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; }; then
4558 ac_cv_type_off_t=yes
4559else
4560 echo "$as_me: failed program was:" >&5
4561sed 's/^/| /' conftest.$ac_ext >&5
8ce0cbda 4562
ad6254c5 4563ac_cv_type_off_t=no
80992638 4564fi
8a2fc586 4565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4566fi
4567echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4568echo "${ECHO_T}$ac_cv_type_off_t" >&6
4569if test $ac_cv_type_off_t = yes; then
4570 :
4571else
80992638 4572
ad6254c5
AK
4573cat >>confdefs.h <<_ACEOF
4574#define off_t long
4575_ACEOF
199e490e 4576
b896caa1
AK
4577fi
4578
ad6254c5
AK
4579echo "$as_me:$LINENO: checking for pid_t" >&5
4580echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4581if test "${ac_cv_type_pid_t+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583else
4584 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4585/* confdefs.h. */
4586_ACEOF
4587cat confdefs.h >>conftest.$ac_ext
4588cat >>conftest.$ac_ext <<_ACEOF
4589/* end confdefs.h. */
4590$ac_includes_default
4591int
4592main ()
4593{
4594if ((pid_t *) 0)
4595 return 0;
4596if (sizeof (pid_t))
4597 return 0;
4598 ;
4599 return 0;
4600}
4601_ACEOF
4602rm -f conftest.$ac_objext
4603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4604 (eval $ac_compile) 2>conftest.er1
ad6254c5 4605 ac_status=$?
8a2fc586
AK
4606 grep -v '^ *+' conftest.er1 >conftest.err
4607 rm -f conftest.er1
4608 cat conftest.err >&5
ad6254c5
AK
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
8a2fc586
AK
4611 { ac_try='test -z "$ac_c_werror_flag"
4612 || test ! -s conftest.err'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614 (eval $ac_try) 2>&5
4615 ac_status=$?
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; } &&
4618 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620 (eval $ac_try) 2>&5
4621 ac_status=$?
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4624 ac_cv_type_pid_t=yes
4625else
4626 echo "$as_me: failed program was:" >&5
4627sed 's/^/| /' conftest.$ac_ext >&5
4628
4629ac_cv_type_pid_t=no
4630fi
8a2fc586 4631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 4632fi
ad6254c5
AK
4633echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4634echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4635if test $ac_cv_type_pid_t = yes; then
4636 :
4637else
80992638 4638
ad6254c5
AK
4639cat >>confdefs.h <<_ACEOF
4640#define pid_t int
4641_ACEOF
2dc95e1c 4642
2dc95e1c
AK
4643fi
4644
ad6254c5
AK
4645echo "$as_me:$LINENO: checking for size_t" >&5
4646echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4647if test "${ac_cv_type_size_t+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 4649else
ad6254c5 4650 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4651/* confdefs.h. */
4652_ACEOF
4653cat confdefs.h >>conftest.$ac_ext
4654cat >>conftest.$ac_ext <<_ACEOF
4655/* end confdefs.h. */
4656$ac_includes_default
4657int
4658main ()
4659{
4660if ((size_t *) 0)
4661 return 0;
4662if (sizeof (size_t))
4663 return 0;
4664 ;
4665 return 0;
4666}
4667_ACEOF
4668rm -f conftest.$ac_objext
4669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4670 (eval $ac_compile) 2>conftest.er1
ad6254c5 4671 ac_status=$?
8a2fc586
AK
4672 grep -v '^ *+' conftest.er1 >conftest.err
4673 rm -f conftest.er1
4674 cat conftest.err >&5
ad6254c5
AK
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); } &&
8a2fc586
AK
4677 { ac_try='test -z "$ac_c_werror_flag"
4678 || test ! -s conftest.err'
4679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680 (eval $ac_try) 2>&5
4681 ac_status=$?
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); }; } &&
4684 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686 (eval $ac_try) 2>&5
4687 ac_status=$?
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; }; then
4690 ac_cv_type_size_t=yes
4691else
4692 echo "$as_me: failed program was:" >&5
4693sed 's/^/| /' conftest.$ac_ext >&5
4694
4695ac_cv_type_size_t=no
80992638 4696fi
8a2fc586 4697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4698fi
4699echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4700echo "${ECHO_T}$ac_cv_type_size_t" >&6
4701if test $ac_cv_type_size_t = yes; then
4702 :
4703else
80992638 4704
ad6254c5
AK
4705cat >>confdefs.h <<_ACEOF
4706#define size_t unsigned
4707_ACEOF
8106cdd5 4708
8106cdd5
AK
4709fi
4710
ad6254c5
AK
4711echo "$as_me:$LINENO: checking for mode_t" >&5
4712echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4713if test "${ac_cv_type_mode_t+set}" = set; then
4714 echo $ECHO_N "(cached) $ECHO_C" >&6
4715else
4716 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4717/* confdefs.h. */
4718_ACEOF
4719cat confdefs.h >>conftest.$ac_ext
4720cat >>conftest.$ac_ext <<_ACEOF
4721/* end confdefs.h. */
4722$ac_includes_default
4723int
4724main ()
4725{
4726if ((mode_t *) 0)
4727 return 0;
4728if (sizeof (mode_t))
4729 return 0;
4730 ;
4731 return 0;
4732}
4733_ACEOF
4734rm -f conftest.$ac_objext
4735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4736 (eval $ac_compile) 2>conftest.er1
ad6254c5 4737 ac_status=$?
8a2fc586
AK
4738 grep -v '^ *+' conftest.er1 >conftest.err
4739 rm -f conftest.er1
4740 cat conftest.err >&5
ad6254c5
AK
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); } &&
8a2fc586
AK
4743 { ac_try='test -z "$ac_c_werror_flag"
4744 || test ! -s conftest.err'
4745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746 (eval $ac_try) 2>&5
4747 ac_status=$?
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); }; } &&
4750 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 (eval $ac_try) 2>&5
4753 ac_status=$?
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; }; then
4756 ac_cv_type_mode_t=yes
4757else
4758 echo "$as_me: failed program was:" >&5
4759sed 's/^/| /' conftest.$ac_ext >&5
4760
4761ac_cv_type_mode_t=no
80992638 4762fi
8a2fc586 4763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4764fi
4765echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4766echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4767if test $ac_cv_type_mode_t = yes; then
4768 :
4769else
80992638 4770
ad6254c5
AK
4771cat >>confdefs.h <<_ACEOF
4772#define mode_t int
4773_ACEOF
4774
4775fi
4776
4777
4778echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
4779echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
4780if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4782else
4783 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4784/* confdefs.h. */
4785_ACEOF
4786cat confdefs.h >>conftest.$ac_ext
4787cat >>conftest.$ac_ext <<_ACEOF
4788/* end confdefs.h. */
4789$ac_includes_default
4790int
4791main ()
4792{
4793static struct stat ac_aggr;
4794if (ac_aggr.st_rdev)
4795return 0;
4796 ;
4797 return 0;
4798}
4799_ACEOF
4800rm -f conftest.$ac_objext
4801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4802 (eval $ac_compile) 2>conftest.er1
ad6254c5 4803 ac_status=$?
8a2fc586
AK
4804 grep -v '^ *+' conftest.er1 >conftest.err
4805 rm -f conftest.er1
4806 cat conftest.err >&5
ad6254c5
AK
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } &&
8a2fc586
AK
4809 { ac_try='test -z "$ac_c_werror_flag"
4810 || test ! -s conftest.err'
4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812 (eval $ac_try) 2>&5
4813 ac_status=$?
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; } &&
4816 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818 (eval $ac_try) 2>&5
4819 ac_status=$?
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; }; then
4822 ac_cv_member_struct_stat_st_rdev=yes
4823else
4824 echo "$as_me: failed program was:" >&5
4825sed 's/^/| /' conftest.$ac_ext >&5
4826
4827cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4828/* confdefs.h. */
4829_ACEOF
4830cat confdefs.h >>conftest.$ac_ext
4831cat >>conftest.$ac_ext <<_ACEOF
4832/* end confdefs.h. */
4833$ac_includes_default
4834int
4835main ()
4836{
4837static struct stat ac_aggr;
4838if (sizeof ac_aggr.st_rdev)
4839return 0;
4840 ;
4841 return 0;
4842}
4843_ACEOF
4844rm -f conftest.$ac_objext
4845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4846 (eval $ac_compile) 2>conftest.er1
ad6254c5 4847 ac_status=$?
8a2fc586
AK
4848 grep -v '^ *+' conftest.er1 >conftest.err
4849 rm -f conftest.er1
4850 cat conftest.err >&5
ad6254c5
AK
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } &&
8a2fc586
AK
4853 { ac_try='test -z "$ac_c_werror_flag"
4854 || test ! -s conftest.err'
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 (eval $ac_try) 2>&5
4857 ac_status=$?
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; } &&
4860 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 (eval $ac_try) 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; }; then
4866 ac_cv_member_struct_stat_st_rdev=yes
4867else
4868 echo "$as_me: failed program was:" >&5
4869sed 's/^/| /' conftest.$ac_ext >&5
4870
4871ac_cv_member_struct_stat_st_rdev=no
4872fi
8a2fc586 4873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 4874fi
8a2fc586 4875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4876fi
4877echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
4878echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
4879if test $ac_cv_member_struct_stat_st_rdev = yes; then
4880
4881cat >>confdefs.h <<_ACEOF
4882#define HAVE_STRUCT_STAT_ST_RDEV 1
4883_ACEOF
4884
4885
4886cat >>confdefs.h <<\_ACEOF
4887#define HAVE_ST_RDEV 1
4888_ACEOF
4889
4890fi
4891
4892
4893echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4894echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4895if test "${ac_cv_struct_tm+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4897else
4898 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4899/* confdefs.h. */
4900_ACEOF
4901cat confdefs.h >>conftest.$ac_ext
4902cat >>conftest.$ac_ext <<_ACEOF
4903/* end confdefs.h. */
4904#include <sys/types.h>
4905#include <time.h>
4906
4907int
4908main ()
4909{
4910struct tm *tp; tp->tm_sec;
4911 ;
4912 return 0;
4913}
4914_ACEOF
4915rm -f conftest.$ac_objext
4916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4917 (eval $ac_compile) 2>conftest.er1
ad6254c5 4918 ac_status=$?
8a2fc586
AK
4919 grep -v '^ *+' conftest.er1 >conftest.err
4920 rm -f conftest.er1
4921 cat conftest.err >&5
ad6254c5
AK
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } &&
8a2fc586
AK
4924 { ac_try='test -z "$ac_c_werror_flag"
4925 || test ! -s conftest.err'
4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927 (eval $ac_try) 2>&5
4928 ac_status=$?
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; } &&
4931 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933 (eval $ac_try) 2>&5
4934 ac_status=$?
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; }; then
4937 ac_cv_struct_tm=time.h
4938else
4939 echo "$as_me: failed program was:" >&5
4940sed 's/^/| /' conftest.$ac_ext >&5
4941
4942ac_cv_struct_tm=sys/time.h
4943fi
8a2fc586 4944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4945fi
4946echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4947echo "${ECHO_T}$ac_cv_struct_tm" >&6
4948if test $ac_cv_struct_tm = sys/time.h; then
4949
4950cat >>confdefs.h <<\_ACEOF
4951#define TM_IN_SYS_TIME 1
4952_ACEOF
4953
4954fi
809fae91 4955
795ca3e5 4956
80992638 4957################################################################################
ad6254c5
AK
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972for ac_func in gethostname getpagesize memset munmap setlocale strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul
4973do
4974as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4975echo "$as_me:$LINENO: checking for $ac_func" >&5
4976echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4977if eval "test \"\${$as_ac_var+set}\" = set"; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 4979else
ad6254c5 4980 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4981/* confdefs.h. */
4982_ACEOF
4983cat confdefs.h >>conftest.$ac_ext
4984cat >>conftest.$ac_ext <<_ACEOF
4985/* end confdefs.h. */
8a2fc586
AK
4986/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4988#define $ac_func innocuous_$ac_func
4989
ad6254c5
AK
4990/* System header to define __stub macros and hopefully few prototypes,
4991 which can conflict with char $ac_func (); below.
4992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4993 <limits.h> exists even on freestanding compilers. */
8a2fc586 4994
ad6254c5
AK
4995#ifdef __STDC__
4996# include <limits.h>
4997#else
4998# include <assert.h>
4999#endif
8a2fc586
AK
5000
5001#undef $ac_func
5002
ad6254c5
AK
5003/* Override any gcc2 internal prototype to avoid an error. */
5004#ifdef __cplusplus
5005extern "C"
5006{
5007#endif
5008/* We use char because int might match the return type of a gcc2
5009 builtin and then its argument prototype would still apply. */
5010char $ac_func ();
5011/* The GNU C library defines this for functions which it implements
5012 to always fail with ENOSYS. Some functions are actually named
5013 something starting with __ and the normal name is an alias. */
5014#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5015choke me
5016#else
5017char (*f) () = $ac_func;
5018#endif
5019#ifdef __cplusplus
5020}
5021#endif
5022
5023int
5024main ()
5025{
5026return f != $ac_func;
5027 ;
5028 return 0;
5029}
5030_ACEOF
5031rm -f conftest.$ac_objext conftest$ac_exeext
5032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 5033 (eval $ac_link) 2>conftest.er1
ad6254c5 5034 ac_status=$?
8a2fc586
AK
5035 grep -v '^ *+' conftest.er1 >conftest.err
5036 rm -f conftest.er1
5037 cat conftest.err >&5
ad6254c5
AK
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } &&
8a2fc586
AK
5040 { ac_try='test -z "$ac_c_werror_flag"
5041 || test ! -s conftest.err'
5042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043 (eval $ac_try) 2>&5
5044 ac_status=$?
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); }; } &&
5047 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5049 (eval $ac_try) 2>&5
5050 ac_status=$?
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }; }; then
5053 eval "$as_ac_var=yes"
795ca3e5 5054else
ad6254c5
AK
5055 echo "$as_me: failed program was:" >&5
5056sed 's/^/| /' conftest.$ac_ext >&5
5057
5058eval "$as_ac_var=no"
795ca3e5 5059fi
8a2fc586
AK
5060rm -f conftest.err conftest.$ac_objext \
5061 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5062fi
5063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5064echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5065if test `eval echo '${'$as_ac_var'}'` = yes; then
5066 cat >>confdefs.h <<_ACEOF
5067#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5068_ACEOF
5069
5070else
5071 { { echo "$as_me:$LINENO: error: bailing out" >&5
5072echo "$as_me: error: bailing out" >&2;}
5073 { (exit 1); exit 1; }; }
5074fi
5075done
795ca3e5 5076
ad6254c5
AK
5077# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5078# for constant arguments. Useless!
5079echo "$as_me:$LINENO: checking for working alloca.h" >&5
5080echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5081if test "${ac_cv_working_alloca_h+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5083else
5084 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5085/* confdefs.h. */
5086_ACEOF
5087cat confdefs.h >>conftest.$ac_ext
5088cat >>conftest.$ac_ext <<_ACEOF
5089/* end confdefs.h. */
5090#include <alloca.h>
5091int
5092main ()
5093{
5094char *p = (char *) alloca (2 * sizeof (int));
5095 ;
5096 return 0;
5097}
5098_ACEOF
5099rm -f conftest.$ac_objext conftest$ac_exeext
5100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 5101 (eval $ac_link) 2>conftest.er1
ad6254c5 5102 ac_status=$?
8a2fc586
AK
5103 grep -v '^ *+' conftest.er1 >conftest.err
5104 rm -f conftest.er1
5105 cat conftest.err >&5
ad6254c5
AK
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } &&
8a2fc586
AK
5108 { ac_try='test -z "$ac_c_werror_flag"
5109 || test ! -s conftest.err'
5110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 (eval $ac_try) 2>&5
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; } &&
5115 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117 (eval $ac_try) 2>&5
5118 ac_status=$?
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); }; }; then
5121 ac_cv_working_alloca_h=yes
5122else
5123 echo "$as_me: failed program was:" >&5
5124sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 5125
ad6254c5
AK
5126ac_cv_working_alloca_h=no
5127fi
8a2fc586
AK
5128rm -f conftest.err conftest.$ac_objext \
5129 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5130fi
5131echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5132echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5133if test $ac_cv_working_alloca_h = yes; then
5134
5135cat >>confdefs.h <<\_ACEOF
5136#define HAVE_ALLOCA_H 1
5137_ACEOF
5138
5139fi
5140
5141echo "$as_me:$LINENO: checking for alloca" >&5
5142echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5143if test "${ac_cv_func_alloca_works+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5145else
5146 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5147/* confdefs.h. */
5148_ACEOF
5149cat confdefs.h >>conftest.$ac_ext
5150cat >>conftest.$ac_ext <<_ACEOF
5151/* end confdefs.h. */
5152#ifdef __GNUC__
5153# define alloca __builtin_alloca
5154#else
5155# ifdef _MSC_VER
5156# include <malloc.h>
5157# define alloca _alloca
5158# else
5159# if HAVE_ALLOCA_H
5160# include <alloca.h>
5161# else
5162# ifdef _AIX
5163 #pragma alloca
5164# else
5165# ifndef alloca /* predefined by HP cc +Olibcalls */
5166char *alloca ();
5167# endif
5168# endif
5169# endif
5170# endif
5171#endif
5172
5173int
5174main ()
5175{
5176char *p = (char *) alloca (1);
5177 ;
5178 return 0;
5179}
5180_ACEOF
5181rm -f conftest.$ac_objext conftest$ac_exeext
5182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 5183 (eval $ac_link) 2>conftest.er1
ad6254c5 5184 ac_status=$?
8a2fc586
AK
5185 grep -v '^ *+' conftest.er1 >conftest.err
5186 rm -f conftest.er1
5187 cat conftest.err >&5
ad6254c5
AK
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } &&
8a2fc586
AK
5190 { ac_try='test -z "$ac_c_werror_flag"
5191 || test ! -s conftest.err'
5192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193 (eval $ac_try) 2>&5
5194 ac_status=$?
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); }; } &&
5197 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199 (eval $ac_try) 2>&5
5200 ac_status=$?
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; }; then
5203 ac_cv_func_alloca_works=yes
5204else
5205 echo "$as_me: failed program was:" >&5
5206sed 's/^/| /' conftest.$ac_ext >&5
5207
5208ac_cv_func_alloca_works=no
5209fi
8a2fc586
AK
5210rm -f conftest.err conftest.$ac_objext \
5211 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5212fi
5213echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5214echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5215
5216if test $ac_cv_func_alloca_works = yes; then
5217
5218cat >>confdefs.h <<\_ACEOF
5219#define HAVE_ALLOCA 1
5220_ACEOF
5221
5222else
5223 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5224# that cause trouble. Some versions do not even contain alloca or
5225# contain a buggy version. If you still want to use their alloca,
5226# use ar to extract alloca.o from them instead of compiling alloca.c.
5227
5228ALLOCA=alloca.$ac_objext
5229
5230cat >>confdefs.h <<\_ACEOF
5231#define C_ALLOCA 1
5232_ACEOF
5233
5234
5235echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5236echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5237if test "${ac_cv_os_cray+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5239else
5240 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5241/* confdefs.h. */
5242_ACEOF
5243cat confdefs.h >>conftest.$ac_ext
5244cat >>conftest.$ac_ext <<_ACEOF
5245/* end confdefs.h. */
5246#if defined(CRAY) && ! defined(CRAY2)
5247webecray
5248#else
5249wenotbecray
5250#endif
5251
5252_ACEOF
795ca3e5 5253if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
5254 $EGREP "webecray" >/dev/null 2>&1; then
5255 ac_cv_os_cray=yes
5256else
5257 ac_cv_os_cray=no
795ca3e5
AK
5258fi
5259rm -f conftest*
5260
795ca3e5 5261fi
ad6254c5
AK
5262echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5263echo "${ECHO_T}$ac_cv_os_cray" >&6
5264if test $ac_cv_os_cray = yes; then
5265 for ac_func in _getb67 GETB67 getb67; do
5266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5267echo "$as_me:$LINENO: checking for $ac_func" >&5
5268echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5269if eval "test \"\${$as_ac_var+set}\" = set"; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5271else
5272 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5273/* confdefs.h. */
5274_ACEOF
5275cat confdefs.h >>conftest.$ac_ext
5276cat >>conftest.$ac_ext <<_ACEOF
5277/* end confdefs.h. */
8a2fc586
AK
5278/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5280#define $ac_func innocuous_$ac_func
5281
ad6254c5
AK
5282/* System header to define __stub macros and hopefully few prototypes,
5283 which can conflict with char $ac_func (); below.
5284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5285 <limits.h> exists even on freestanding compilers. */
8a2fc586 5286
ad6254c5
AK
5287#ifdef __STDC__
5288# include <limits.h>
5289#else
5290# include <assert.h>
5291#endif
8a2fc586
AK
5292
5293#undef $ac_func
5294
ad6254c5
AK
5295/* Override any gcc2 internal prototype to avoid an error. */
5296#ifdef __cplusplus
5297extern "C"
5298{
5299#endif
5300/* We use char because int might match the return type of a gcc2
5301 builtin and then its argument prototype would still apply. */
5302char $ac_func ();
5303/* The GNU C library defines this for functions which it implements
5304 to always fail with ENOSYS. Some functions are actually named
5305 something starting with __ and the normal name is an alias. */
5306#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5307choke me
5308#else
5309char (*f) () = $ac_func;
5310#endif
5311#ifdef __cplusplus
5312}
5313#endif
5314
5315int
5316main ()
5317{
5318return f != $ac_func;
5319 ;
5320 return 0;
5321}
5322_ACEOF
5323rm -f conftest.$ac_objext conftest$ac_exeext
5324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 5325 (eval $ac_link) 2>conftest.er1
ad6254c5 5326 ac_status=$?
8a2fc586
AK
5327 grep -v '^ *+' conftest.er1 >conftest.err
5328 rm -f conftest.er1
5329 cat conftest.err >&5
ad6254c5
AK
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } &&
8a2fc586
AK
5332 { ac_try='test -z "$ac_c_werror_flag"
5333 || test ! -s conftest.err'
5334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5335 (eval $ac_try) 2>&5
5336 ac_status=$?
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; } &&
5339 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5341 (eval $ac_try) 2>&5
5342 ac_status=$?
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }; }; then
5345 eval "$as_ac_var=yes"
5346else
5347 echo "$as_me: failed program was:" >&5
5348sed 's/^/| /' conftest.$ac_ext >&5
5349
5350eval "$as_ac_var=no"
5351fi
8a2fc586
AK
5352rm -f conftest.err conftest.$ac_objext \
5353 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5354fi
5355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5356echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5357if test `eval echo '${'$as_ac_var'}'` = yes; then
80992638 5358
ad6254c5
AK
5359cat >>confdefs.h <<_ACEOF
5360#define CRAY_STACKSEG_END $ac_func
5361_ACEOF
5362
5363 break
5364fi
5365
5366 done
5367fi
5368
5369echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5370echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5371if test "${ac_cv_c_stack_direction+set}" = set; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5373else
5374 if test "$cross_compiling" = yes; then
5375 ac_cv_c_stack_direction=0
5376else
5377 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5378/* confdefs.h. */
5379_ACEOF
5380cat confdefs.h >>conftest.$ac_ext
5381cat >>conftest.$ac_ext <<_ACEOF
5382/* end confdefs.h. */
5383int
5384find_stack_direction ()
5385{
5386 static char *addr = 0;
5387 auto char dummy;
5388 if (addr == 0)
5389 {
5390 addr = &dummy;
5391 return find_stack_direction ();
5392 }
5393 else
5394 return (&dummy > addr) ? 1 : -1;
5395}
5396
5397int
5398main ()
5399{
5400 exit (find_stack_direction () < 0);
5401}
5402_ACEOF
5403rm -f conftest$ac_exeext
5404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5405 (eval $ac_link) 2>&5
5406 ac_status=$?
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410 (eval $ac_try) 2>&5
5411 ac_status=$?
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; }; then
5414 ac_cv_c_stack_direction=1
5415else
5416 echo "$as_me: program exited with status $ac_status" >&5
5417echo "$as_me: failed program was:" >&5
5418sed 's/^/| /' conftest.$ac_ext >&5
5419
5420( exit $ac_status )
5421ac_cv_c_stack_direction=-1
5422fi
8a2fc586 5423rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5424fi
5425fi
5426echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5427echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5428
5429cat >>confdefs.h <<_ACEOF
5430#define STACK_DIRECTION $ac_cv_c_stack_direction
5431_ACEOF
5432
5433
5434fi
5435
5436echo "$as_me:$LINENO: checking whether closedir returns void" >&5
5437echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
5438if test "${ac_cv_func_closedir_void+set}" = set; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5440else
5441 if test "$cross_compiling" = yes; then
5442 ac_cv_func_closedir_void=yes
5443else
5444 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5445/* confdefs.h. */
5446_ACEOF
5447cat confdefs.h >>conftest.$ac_ext
5448cat >>conftest.$ac_ext <<_ACEOF
5449/* end confdefs.h. */
5450$ac_includes_default
5451#include <$ac_header_dirent>
5452#ifndef __cplusplus
5453int closedir ();
5454#endif
5455
5456int
5457main ()
5458{
5459exit (closedir (opendir (".")) != 0);
5460 ;
5461 return 0;
5462}
5463_ACEOF
5464rm -f conftest$ac_exeext
5465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5466 (eval $ac_link) 2>&5
5467 ac_status=$?
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 (eval $ac_try) 2>&5
5472 ac_status=$?
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
5475 ac_cv_func_closedir_void=no
5476else
5477 echo "$as_me: program exited with status $ac_status" >&5
5478echo "$as_me: failed program was:" >&5
5479sed 's/^/| /' conftest.$ac_ext >&5
5480
5481( exit $ac_status )
5482ac_cv_func_closedir_void=yes
5483fi
8a2fc586 5484rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5485fi
5486fi
5487echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
5488echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
5489if test $ac_cv_func_closedir_void = yes; then
5490
5491cat >>confdefs.h <<\_ACEOF
5492#define CLOSEDIR_VOID 1
5493_ACEOF
5494
5495fi
5496
5497
5498
5499for ac_header in unistd.h vfork.h
5500do
5501as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5502if eval "test \"\${$as_ac_Header+set}\" = set"; then
5503 echo "$as_me:$LINENO: checking for $ac_header" >&5
5504echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5505if eval "test \"\${$as_ac_Header+set}\" = set"; then
5506 echo $ECHO_N "(cached) $ECHO_C" >&6
5507fi
5508echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5509echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5510else
5511 # Is the header compilable?
5512echo "$as_me:$LINENO: checking $ac_header usability" >&5
5513echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5514cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5515/* confdefs.h. */
5516_ACEOF
5517cat confdefs.h >>conftest.$ac_ext
5518cat >>conftest.$ac_ext <<_ACEOF
5519/* end confdefs.h. */
5520$ac_includes_default
5521#include <$ac_header>
5522_ACEOF
5523rm -f conftest.$ac_objext
5524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 5525 (eval $ac_compile) 2>conftest.er1
ad6254c5 5526 ac_status=$?
8a2fc586
AK
5527 grep -v '^ *+' conftest.er1 >conftest.err
5528 rm -f conftest.er1
5529 cat conftest.err >&5
ad6254c5
AK
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } &&
8a2fc586
AK
5532 { ac_try='test -z "$ac_c_werror_flag"
5533 || test ! -s conftest.err'
5534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535 (eval $ac_try) 2>&5
5536 ac_status=$?
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }; } &&
5539 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
5540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 (eval $ac_try) 2>&5
5542 ac_status=$?
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; }; then
5545 ac_header_compiler=yes
5546else
5547 echo "$as_me: failed program was:" >&5
5548sed 's/^/| /' conftest.$ac_ext >&5
5549
5550ac_header_compiler=no
5551fi
8a2fc586 5552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5553echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5554echo "${ECHO_T}$ac_header_compiler" >&6
5555
5556# Is the header present?
5557echo "$as_me:$LINENO: checking $ac_header presence" >&5
5558echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5559cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5560/* confdefs.h. */
5561_ACEOF
5562cat confdefs.h >>conftest.$ac_ext
5563cat >>conftest.$ac_ext <<_ACEOF
5564/* end confdefs.h. */
5565#include <$ac_header>
5566_ACEOF
5567if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5569 ac_status=$?
5570 grep -v '^ *+' conftest.er1 >conftest.err
5571 rm -f conftest.er1
5572 cat conftest.err >&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); } >/dev/null; then
5575 if test -s conftest.err; then
5576 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 5577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
5578 else
5579 ac_cpp_err=
795ca3e5 5580 fi
ad6254c5
AK
5581else
5582 ac_cpp_err=yes
5583fi
5584if test -z "$ac_cpp_err"; then
5585 ac_header_preproc=yes
5586else
5587 echo "$as_me: failed program was:" >&5
5588sed 's/^/| /' conftest.$ac_ext >&5
5589
5590 ac_header_preproc=no
5591fi
5592rm -f conftest.err conftest.$ac_ext
5593echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5594echo "${ECHO_T}$ac_header_preproc" >&6
5595
5596# So? What about this header?
8a2fc586
AK
5597case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5598 yes:no: )
ad6254c5
AK
5599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5600echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
5601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5602echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5603 ac_header_preproc=yes
ad6254c5 5604 ;;
8a2fc586 5605 no:yes:* )
ad6254c5
AK
5606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5607echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
5608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5609echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5610 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5611echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5612 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5613echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
5614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5615echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
5616 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5617echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
5618 (
5619 cat <<\_ASBOX
8a2fc586
AK
5620## ------------------------------------------ ##
5621## Report this to the AC_PACKAGE_NAME lists. ##
5622## ------------------------------------------ ##
ad6254c5
AK
5623_ASBOX
5624 ) |
5625 sed "s/^/$as_me: WARNING: /" >&2
5626 ;;
5627esac
5628echo "$as_me:$LINENO: checking for $ac_header" >&5
5629echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5630if eval "test \"\${$as_ac_Header+set}\" = set"; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5632else
8a2fc586 5633 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
5634fi
5635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5636echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5637
795ca3e5 5638fi
ad6254c5
AK
5639if test `eval echo '${'$as_ac_Header'}'` = yes; then
5640 cat >>confdefs.h <<_ACEOF
5641#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5642_ACEOF
5643
5644fi
5645
5646done
795ca3e5 5647
ad6254c5
AK
5648
5649
5650for ac_func in fork vfork
5651do
5652as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5653echo "$as_me:$LINENO: checking for $ac_func" >&5
5654echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5655if eval "test \"\${$as_ac_var+set}\" = set"; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 5657else
ad6254c5 5658 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5659/* confdefs.h. */
5660_ACEOF
5661cat confdefs.h >>conftest.$ac_ext
5662cat >>conftest.$ac_ext <<_ACEOF
5663/* end confdefs.h. */
8a2fc586
AK
5664/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5666#define $ac_func innocuous_$ac_func
5667
ad6254c5
AK
5668/* System header to define __stub macros and hopefully few prototypes,
5669 which can conflict with char $ac_func (); below.
5670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5671 <limits.h> exists even on freestanding compilers. */
8a2fc586 5672
ad6254c5
AK
5673#ifdef __STDC__
5674# include <limits.h>
5675#else
5676# include <assert.h>
795ca3e5 5677#endif
8a2fc586
AK
5678
5679#undef $ac_func
5680
ad6254c5 5681/* Override any gcc2 internal prototype to avoid an error. */
795ca3e5 5682#ifdef __cplusplus
ad6254c5
AK
5683extern "C"
5684{
5685#endif
5686/* We use char because int might match the return type of a gcc2
5687 builtin and then its argument prototype would still apply. */
5688char $ac_func ();
5689/* The GNU C library defines this for functions which it implements
5690 to always fail with ENOSYS. Some functions are actually named
5691 something starting with __ and the normal name is an alias. */
5692#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5693choke me
795ca3e5 5694#else
ad6254c5
AK
5695char (*f) () = $ac_func;
5696#endif
5697#ifdef __cplusplus
5698}
795ca3e5
AK
5699#endif
5700
ad6254c5
AK
5701int
5702main ()
5703{
5704return f != $ac_func;
5705 ;
5706 return 0;
5707}
5708_ACEOF
5709rm -f conftest.$ac_objext conftest$ac_exeext
5710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 5711 (eval $ac_link) 2>conftest.er1
ad6254c5 5712 ac_status=$?
8a2fc586
AK
5713 grep -v '^ *+' conftest.er1 >conftest.err
5714 rm -f conftest.er1
5715 cat conftest.err >&5
ad6254c5
AK
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } &&
8a2fc586
AK
5718 { ac_try='test -z "$ac_c_werror_flag"
5719 || test ! -s conftest.err'
5720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 (eval $ac_try) 2>&5
5722 ac_status=$?
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); }; } &&
5725 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727 (eval $ac_try) 2>&5
5728 ac_status=$?
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; }; then
5731 eval "$as_ac_var=yes"
795ca3e5 5732else
ad6254c5
AK
5733 echo "$as_me: failed program was:" >&5
5734sed 's/^/| /' conftest.$ac_ext >&5
5735
5736eval "$as_ac_var=no"
795ca3e5 5737fi
8a2fc586
AK
5738rm -f conftest.err conftest.$ac_objext \
5739 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5740fi
5741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5742echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5743if test `eval echo '${'$as_ac_var'}'` = yes; then
5744 cat >>confdefs.h <<_ACEOF
5745#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5746_ACEOF
5747
5748fi
5749done
5750
5751if test "x$ac_cv_func_fork" = xyes; then
5752 echo "$as_me:$LINENO: checking for working fork" >&5
5753echo $ECHO_N "checking for working fork... $ECHO_C" >&6
5754if test "${ac_cv_func_fork_works+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5756else
5757 if test "$cross_compiling" = yes; then
5758 ac_cv_func_fork_works=cross
5759else
5760 cat >conftest.$ac_ext <<_ACEOF
5761/* By Ruediger Kuhlmann. */
5762 #include <sys/types.h>
5763 #if HAVE_UNISTD_H
5764 # include <unistd.h>
5765 #endif
5766 /* Some systems only have a dummy stub for fork() */
5767 int main ()
5768 {
8a2fc586
AK
5769 if (fork() < 0)
5770 exit (1);
5771 exit (0);
ad6254c5
AK
5772 }
5773_ACEOF
5774rm -f conftest$ac_exeext
5775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5776 (eval $ac_link) 2>&5
5777 ac_status=$?
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 (eval $ac_try) 2>&5
5782 ac_status=$?
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; }; then
5785 ac_cv_func_fork_works=yes
5786else
5787 echo "$as_me: program exited with status $ac_status" >&5
5788echo "$as_me: failed program was:" >&5
5789sed 's/^/| /' conftest.$ac_ext >&5
5790
5791( exit $ac_status )
5792ac_cv_func_fork_works=no
5793fi
8a2fc586 5794rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5795fi
5796fi
5797echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
5798echo "${ECHO_T}$ac_cv_func_fork_works" >&6
5799
5800else
5801 ac_cv_func_fork_works=$ac_cv_func_fork
5802fi
5803if test "x$ac_cv_func_fork_works" = xcross; then
5804 case $host in
5805 *-*-amigaos* | *-*-msdosdjgpp*)
5806 # Override, as these systems have only a dummy fork() stub
5807 ac_cv_func_fork_works=no
5808 ;;
5809 *)
5810 ac_cv_func_fork_works=yes
5811 ;;
5812 esac
5813 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5814echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5815fi
5816ac_cv_func_vfork_works=$ac_cv_func_vfork
5817if test "x$ac_cv_func_vfork" = xyes; then
5818 echo "$as_me:$LINENO: checking for working vfork" >&5
5819echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
5820if test "${ac_cv_func_vfork_works+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822else
5823 if test "$cross_compiling" = yes; then
5824 ac_cv_func_vfork_works=cross
5825else
5826 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5827/* confdefs.h. */
5828_ACEOF
5829cat confdefs.h >>conftest.$ac_ext
5830cat >>conftest.$ac_ext <<_ACEOF
5831/* end confdefs.h. */
5832/* Thanks to Paul Eggert for this test. */
5833#include <stdio.h>
5834#include <stdlib.h>
5835#include <sys/types.h>
5836#include <sys/stat.h>
5837#include <sys/wait.h>
5838#if HAVE_UNISTD_H
5839# include <unistd.h>
5840#endif
5841#if HAVE_VFORK_H
5842# include <vfork.h>
5843#endif
5844/* On some sparc systems, changes by the child to local and incoming
5845 argument registers are propagated back to the parent. The compiler
5846 is told about this with #include <vfork.h>, but some compilers
5847 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5848 static variable whose address is put into a register that is
5849 clobbered by the vfork. */
5850static void
5851#ifdef __cplusplus
5852sparc_address_test (int arg)
5853# else
5854sparc_address_test (arg) int arg;
5855#endif
5856{
5857 static pid_t child;
5858 if (!child) {
5859 child = vfork ();
5860 if (child < 0) {
5861 perror ("vfork");
5862 _exit(2);
5863 }
5864 if (!child) {
5865 arg = getpid();
5866 write(-1, "", 0);
5867 _exit (arg);
5868 }
5869 }
5870}
5871
5872int
5873main ()
5874{
5875 pid_t parent = getpid ();
5876 pid_t child;
5877
5878 sparc_address_test (0);
5879
5880 child = vfork ();
5881
5882 if (child == 0) {
5883 /* Here is another test for sparc vfork register problems. This
5884 test uses lots of local variables, at least as many local
5885 variables as main has allocated so far including compiler
5886 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5887 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5888 reuse the register of parent for one of the local variables,
5889 since it will think that parent can't possibly be used any more
5890 in this routine. Assigning to the local variable will thus
5891 munge parent in the parent process. */
5892 pid_t
5893 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5894 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5895 /* Convince the compiler that p..p7 are live; otherwise, it might
5896 use the same hardware register for all 8 local variables. */
5897 if (p != p1 || p != p2 || p != p3 || p != p4
5898 || p != p5 || p != p6 || p != p7)
5899 _exit(1);
5900
5901 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5902 from child file descriptors. If the child closes a descriptor
5903 before it execs or exits, this munges the parent's descriptor
5904 as well. Test for this by closing stdout in the child. */
5905 _exit(close(fileno(stdout)) != 0);
5906 } else {
5907 int status;
5908 struct stat st;
5909
5910 while (wait(&status) != child)
5911 ;
5912 exit(
5913 /* Was there some problem with vforking? */
5914 child < 0
5915
5916 /* Did the child fail? (This shouldn't happen.) */
5917 || status
5918
5919 /* Did the vfork/compiler bug occur? */
5920 || parent != getpid()
5921
5922 /* Did the file descriptor bug occur? */
5923 || fstat(fileno(stdout), &st) != 0
5924 );
5925 }
5926}
5927_ACEOF
5928rm -f conftest$ac_exeext
5929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5930 (eval $ac_link) 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 (eval $ac_try) 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
5939 ac_cv_func_vfork_works=yes
5940else
5941 echo "$as_me: program exited with status $ac_status" >&5
5942echo "$as_me: failed program was:" >&5
5943sed 's/^/| /' conftest.$ac_ext >&5
5944
5945( exit $ac_status )
5946ac_cv_func_vfork_works=no
5947fi
8a2fc586 5948rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5949fi
5950fi
5951echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
5952echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
5953
5954fi;
5955if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 5956 ac_cv_func_vfork_works=$ac_cv_func_vfork
ad6254c5
AK
5957 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5958echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5959fi
5960
5961if test "x$ac_cv_func_vfork_works" = xyes; then
5962
5963cat >>confdefs.h <<\_ACEOF
5964#define HAVE_WORKING_VFORK 1
5965_ACEOF
5966
5967else
5968
5969cat >>confdefs.h <<\_ACEOF
5970#define vfork fork
5971_ACEOF
5972
5973fi
5974if test "x$ac_cv_func_fork_works" = xyes; then
5975
5976cat >>confdefs.h <<\_ACEOF
5977#define HAVE_WORKING_FORK 1
5978_ACEOF
5979
5980fi
5981
5982echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
5983echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
5984if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
5985 echo $ECHO_N "(cached) $ECHO_C" >&6
5986else
5987 rm -f conftest.sym conftest.file
5988echo >conftest.file
5989if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5990 if test "$cross_compiling" = yes; then
5991 ac_cv_func_lstat_dereferences_slashed_symlink=no
5992else
5993 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5994/* confdefs.h. */
5995_ACEOF
5996cat confdefs.h >>conftest.$ac_ext
5997cat >>conftest.$ac_ext <<_ACEOF
5998/* end confdefs.h. */
5999$ac_includes_default
6000int
6001main ()
6002{
6003struct stat sbuf;
6004 /* Linux will dereference the symlink and fail.
8a2fc586
AK
6005 That is better in the sense that it means we will not
6006 have to compile and use the lstat wrapper. */
ad6254c5
AK
6007 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
6008 ;
6009 return 0;
6010}
6011_ACEOF
6012rm -f conftest$ac_exeext
6013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6014 (eval $ac_link) 2>&5
6015 ac_status=$?
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019 (eval $ac_try) 2>&5
6020 ac_status=$?
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }; }; then
6023 ac_cv_func_lstat_dereferences_slashed_symlink=yes
6024else
6025 echo "$as_me: program exited with status $ac_status" >&5
6026echo "$as_me: failed program was:" >&5
6027sed 's/^/| /' conftest.$ac_ext >&5
6028
6029( exit $ac_status )
6030ac_cv_func_lstat_dereferences_slashed_symlink=no
6031fi
8a2fc586 6032rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6033fi
6034else
6035 # If the `ln -s' command failed, then we probably don't even
6036 # have an lstat function.
6037 ac_cv_func_lstat_dereferences_slashed_symlink=no
6038fi
6039rm -f conftest.sym conftest.file
6040
6041fi
6042echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6043echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
6044
6045test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6046
6047cat >>confdefs.h <<_ACEOF
6048#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6049_ACEOF
6050
6051
6052if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
8a2fc586
AK
6053 case $LIBOBJS in
6054 "lstat.$ac_objext" | \
6055 *" lstat.$ac_objext" | \
6056 "lstat.$ac_objext "* | \
6057 *" lstat.$ac_objext "* ) ;;
6058 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
6059esac
6060
ad6254c5
AK
6061fi
6062
6063echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
6064echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
6065if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6067else
6068 if test "$cross_compiling" = yes; then
6069 ac_cv_func_lstat_empty_string_bug=yes
6070else
6071 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6072/* confdefs.h. */
6073_ACEOF
6074cat confdefs.h >>conftest.$ac_ext
6075cat >>conftest.$ac_ext <<_ACEOF
6076/* end confdefs.h. */
6077$ac_includes_default
6078int
6079main ()
6080{
6081struct stat sbuf;
6082 exit (lstat ("", &sbuf) ? 1 : 0);
6083 ;
6084 return 0;
6085}
6086_ACEOF
6087rm -f conftest$ac_exeext
6088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6089 (eval $ac_link) 2>&5
6090 ac_status=$?
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 (eval $ac_try) 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6098 ac_cv_func_lstat_empty_string_bug=yes
6099else
6100 echo "$as_me: program exited with status $ac_status" >&5
6101echo "$as_me: failed program was:" >&5
6102sed 's/^/| /' conftest.$ac_ext >&5
6103
6104( exit $ac_status )
6105ac_cv_func_lstat_empty_string_bug=no
6106fi
8a2fc586 6107rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6108fi
6109fi
6110echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
6111echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
6112if test $ac_cv_func_lstat_empty_string_bug = yes; then
8a2fc586
AK
6113 case $LIBOBJS in
6114 "lstat.$ac_objext" | \
6115 *" lstat.$ac_objext" | \
6116 "lstat.$ac_objext "* | \
6117 *" lstat.$ac_objext "* ) ;;
6118 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
6119esac
6120
ad6254c5
AK
6121
6122cat >>confdefs.h <<_ACEOF
6123#define HAVE_LSTAT_EMPTY_STRING_BUG 1
6124_ACEOF
6125
6126fi
6127
6128
6129for ac_header in stdlib.h
6130do
6131as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6132if eval "test \"\${$as_ac_Header+set}\" = set"; then
6133 echo "$as_me:$LINENO: checking for $ac_header" >&5
6134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6135if eval "test \"\${$as_ac_Header+set}\" = set"; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6137fi
6138echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6139echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6140else
6141 # Is the header compilable?
6142echo "$as_me:$LINENO: checking $ac_header usability" >&5
6143echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6144cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6145/* confdefs.h. */
6146_ACEOF
6147cat confdefs.h >>conftest.$ac_ext
6148cat >>conftest.$ac_ext <<_ACEOF
6149/* end confdefs.h. */
6150$ac_includes_default
6151#include <$ac_header>
6152_ACEOF
6153rm -f conftest.$ac_objext
6154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 6155 (eval $ac_compile) 2>conftest.er1
ad6254c5 6156 ac_status=$?
8a2fc586
AK
6157 grep -v '^ *+' conftest.er1 >conftest.err
6158 rm -f conftest.er1
6159 cat conftest.err >&5
ad6254c5
AK
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); } &&
8a2fc586
AK
6162 { ac_try='test -z "$ac_c_werror_flag"
6163 || test ! -s conftest.err'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165 (eval $ac_try) 2>&5
6166 ac_status=$?
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; } &&
6169 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
6170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171 (eval $ac_try) 2>&5
6172 ac_status=$?
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; }; then
6175 ac_header_compiler=yes
6176else
6177 echo "$as_me: failed program was:" >&5
6178sed 's/^/| /' conftest.$ac_ext >&5
6179
6180ac_header_compiler=no
6181fi
8a2fc586 6182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6183echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6184echo "${ECHO_T}$ac_header_compiler" >&6
6185
6186# Is the header present?
6187echo "$as_me:$LINENO: checking $ac_header presence" >&5
6188echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6189cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6190/* confdefs.h. */
6191_ACEOF
6192cat confdefs.h >>conftest.$ac_ext
6193cat >>conftest.$ac_ext <<_ACEOF
6194/* end confdefs.h. */
6195#include <$ac_header>
6196_ACEOF
6197if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6199 ac_status=$?
6200 grep -v '^ *+' conftest.er1 >conftest.err
6201 rm -f conftest.er1
6202 cat conftest.err >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } >/dev/null; then
6205 if test -s conftest.err; then
6206 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 6207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
6208 else
6209 ac_cpp_err=
6210 fi
6211else
6212 ac_cpp_err=yes
6213fi
6214if test -z "$ac_cpp_err"; then
6215 ac_header_preproc=yes
6216else
6217 echo "$as_me: failed program was:" >&5
6218sed 's/^/| /' conftest.$ac_ext >&5
6219
6220 ac_header_preproc=no
6221fi
6222rm -f conftest.err conftest.$ac_ext
6223echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6224echo "${ECHO_T}$ac_header_preproc" >&6
6225
6226# So? What about this header?
8a2fc586
AK
6227case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6228 yes:no: )
ad6254c5
AK
6229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6230echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
6231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6232echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6233 ac_header_preproc=yes
ad6254c5 6234 ;;
8a2fc586 6235 no:yes:* )
ad6254c5
AK
6236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6237echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
6238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6239echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6241echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6243echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
6244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6245echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
6246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6247echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
6248 (
6249 cat <<\_ASBOX
8a2fc586
AK
6250## ------------------------------------------ ##
6251## Report this to the AC_PACKAGE_NAME lists. ##
6252## ------------------------------------------ ##
ad6254c5
AK
6253_ASBOX
6254 ) |
6255 sed "s/^/$as_me: WARNING: /" >&2
6256 ;;
6257esac
6258echo "$as_me:$LINENO: checking for $ac_header" >&5
6259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6260if eval "test \"\${$as_ac_Header+set}\" = set"; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6262else
8a2fc586 6263 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
6264fi
6265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6266echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6267
6268fi
6269if test `eval echo '${'$as_ac_Header'}'` = yes; then
6270 cat >>confdefs.h <<_ACEOF
6271#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6272_ACEOF
6273
6274fi
6275
6276done
6277
6278echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
6279echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
6280if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
6282else
6283 if test "$cross_compiling" = yes; then
6284 ac_cv_func_malloc_0_nonnull=no
6285else
6286 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6287/* confdefs.h. */
6288_ACEOF
6289cat confdefs.h >>conftest.$ac_ext
6290cat >>conftest.$ac_ext <<_ACEOF
6291/* end confdefs.h. */
6292#if STDC_HEADERS || HAVE_STDLIB_H
6293# include <stdlib.h>
6294#else
6295char *malloc ();
6296#endif
6297
6298int
6299main ()
6300{
6301exit (malloc (0) ? 0 : 1);
6302 ;
6303 return 0;
6304}
6305_ACEOF
6306rm -f conftest$ac_exeext
6307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6308 (eval $ac_link) 2>&5
6309 ac_status=$?
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313 (eval $ac_try) 2>&5
6314 ac_status=$?
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; }; then
6317 ac_cv_func_malloc_0_nonnull=yes
6318else
6319 echo "$as_me: program exited with status $ac_status" >&5
6320echo "$as_me: failed program was:" >&5
6321sed 's/^/| /' conftest.$ac_ext >&5
6322
6323( exit $ac_status )
6324ac_cv_func_malloc_0_nonnull=no
6325fi
8a2fc586 6326rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6327fi
6328fi
6329echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
6330echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
6331if test $ac_cv_func_malloc_0_nonnull = yes; then
6332
6333cat >>confdefs.h <<\_ACEOF
6334#define HAVE_MALLOC 1
6335_ACEOF
6336
6337else
6338 cat >>confdefs.h <<\_ACEOF
6339#define HAVE_MALLOC 0
6340_ACEOF
6341
8a2fc586
AK
6342 case $LIBOBJS in
6343 "malloc.$ac_objext" | \
6344 *" malloc.$ac_objext" | \
6345 "malloc.$ac_objext "* | \
6346 *" malloc.$ac_objext "* ) ;;
6347 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
6348esac
6349
ad6254c5
AK
6350
6351cat >>confdefs.h <<\_ACEOF
6352#define malloc rpl_malloc
6353_ACEOF
6354
6355fi
6356
6357
6358
6359echo "$as_me:$LINENO: checking for working memcmp" >&5
6360echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
6361if test "${ac_cv_func_memcmp_working+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6363else
6364 if test "$cross_compiling" = yes; then
6365 ac_cv_func_memcmp_working=no
6366else
6367 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6368/* confdefs.h. */
6369_ACEOF
6370cat confdefs.h >>conftest.$ac_ext
6371cat >>conftest.$ac_ext <<_ACEOF
6372/* end confdefs.h. */
8a2fc586 6373$ac_includes_default
ad6254c5
AK
6374int
6375main ()
6376{
6377
6378 /* Some versions of memcmp are not 8-bit clean. */
6379 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
6380 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6381 exit (1);
6382
6383 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6384 or more and with at least one buffer not starting on a 4-byte boundary.
6385 William Lewis provided this test program. */
6386 {
6387 char foo[21];
6388 char bar[21];
6389 int i;
6390 for (i = 0; i < 4; i++)
6391 {
8a2fc586
AK
6392 char *a = foo + i;
6393 char *b = bar + i;
6394 strcpy (a, "--------01111111");
6395 strcpy (b, "--------10000000");
6396 if (memcmp (a, b, 16) >= 0)
6397 exit (1);
ad6254c5
AK
6398 }
6399 exit (0);
6400 }
6401
6402 ;
6403 return 0;
6404}
6405_ACEOF
6406rm -f conftest$ac_exeext
6407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6408 (eval $ac_link) 2>&5
6409 ac_status=$?
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413 (eval $ac_try) 2>&5
6414 ac_status=$?
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; }; then
6417 ac_cv_func_memcmp_working=yes
6418else
6419 echo "$as_me: program exited with status $ac_status" >&5
6420echo "$as_me: failed program was:" >&5
6421sed 's/^/| /' conftest.$ac_ext >&5
6422
6423( exit $ac_status )
6424ac_cv_func_memcmp_working=no
6425fi
8a2fc586 6426rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6427fi
6428fi
6429echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
6430echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
8a2fc586
AK
6431test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
6432 "memcmp.$ac_objext" | \
6433 *" memcmp.$ac_objext" | \
6434 "memcmp.$ac_objext "* | \
6435 *" memcmp.$ac_objext "* ) ;;
6436 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
6437esac
6438
ad6254c5
AK
6439
6440
6441
6442for ac_header in stdlib.h unistd.h
6443do
6444as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6445if eval "test \"\${$as_ac_Header+set}\" = set"; then
6446 echo "$as_me:$LINENO: checking for $ac_header" >&5
6447echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6448if eval "test \"\${$as_ac_Header+set}\" = set"; then
6449 echo $ECHO_N "(cached) $ECHO_C" >&6
6450fi
6451echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6452echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6453else
6454 # Is the header compilable?
6455echo "$as_me:$LINENO: checking $ac_header usability" >&5
6456echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6457cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6458/* confdefs.h. */
6459_ACEOF
6460cat confdefs.h >>conftest.$ac_ext
6461cat >>conftest.$ac_ext <<_ACEOF
6462/* end confdefs.h. */
6463$ac_includes_default
6464#include <$ac_header>
6465_ACEOF
6466rm -f conftest.$ac_objext
6467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 6468 (eval $ac_compile) 2>conftest.er1
ad6254c5 6469 ac_status=$?
8a2fc586
AK
6470 grep -v '^ *+' conftest.er1 >conftest.err
6471 rm -f conftest.er1
6472 cat conftest.err >&5
ad6254c5
AK
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); } &&
8a2fc586
AK
6475 { ac_try='test -z "$ac_c_werror_flag"
6476 || test ! -s conftest.err'
6477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478 (eval $ac_try) 2>&5
6479 ac_status=$?
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; } &&
6482 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
6483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6484 (eval $ac_try) 2>&5
6485 ac_status=$?
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); }; }; then
6488 ac_header_compiler=yes
6489else
6490 echo "$as_me: failed program was:" >&5
6491sed 's/^/| /' conftest.$ac_ext >&5
6492
6493ac_header_compiler=no
6494fi
8a2fc586 6495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6496echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6497echo "${ECHO_T}$ac_header_compiler" >&6
6498
6499# Is the header present?
6500echo "$as_me:$LINENO: checking $ac_header presence" >&5
6501echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6502cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6503/* confdefs.h. */
6504_ACEOF
6505cat confdefs.h >>conftest.$ac_ext
6506cat >>conftest.$ac_ext <<_ACEOF
6507/* end confdefs.h. */
6508#include <$ac_header>
6509_ACEOF
6510if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6512 ac_status=$?
6513 grep -v '^ *+' conftest.er1 >conftest.err
6514 rm -f conftest.er1
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } >/dev/null; then
6518 if test -s conftest.err; then
6519 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 6520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
6521 else
6522 ac_cpp_err=
6523 fi
6524else
6525 ac_cpp_err=yes
6526fi
6527if test -z "$ac_cpp_err"; then
6528 ac_header_preproc=yes
6529else
6530 echo "$as_me: failed program was:" >&5
6531sed 's/^/| /' conftest.$ac_ext >&5
6532
6533 ac_header_preproc=no
6534fi
6535rm -f conftest.err conftest.$ac_ext
6536echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6537echo "${ECHO_T}$ac_header_preproc" >&6
6538
6539# So? What about this header?
8a2fc586
AK
6540case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6541 yes:no: )
ad6254c5
AK
6542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6543echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
6544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6545echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6546 ac_header_preproc=yes
ad6254c5 6547 ;;
8a2fc586 6548 no:yes:* )
ad6254c5
AK
6549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6550echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
6551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6552echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6554echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6556echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
6557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6558echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
6559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6560echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
6561 (
6562 cat <<\_ASBOX
8a2fc586
AK
6563## ------------------------------------------ ##
6564## Report this to the AC_PACKAGE_NAME lists. ##
6565## ------------------------------------------ ##
ad6254c5
AK
6566_ASBOX
6567 ) |
6568 sed "s/^/$as_me: WARNING: /" >&2
6569 ;;
6570esac
6571echo "$as_me:$LINENO: checking for $ac_header" >&5
6572echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6573if eval "test \"\${$as_ac_Header+set}\" = set"; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6575else
8a2fc586 6576 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
6577fi
6578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6579echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6580
6581fi
6582if test `eval echo '${'$as_ac_Header'}'` = yes; then
6583 cat >>confdefs.h <<_ACEOF
6584#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6585_ACEOF
6586
6587fi
6588
6589done
6590
6591
6592for ac_func in getpagesize
6593do
6594as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6595echo "$as_me:$LINENO: checking for $ac_func" >&5
6596echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6597if eval "test \"\${$as_ac_var+set}\" = set"; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6599else
6600 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6601/* confdefs.h. */
6602_ACEOF
6603cat confdefs.h >>conftest.$ac_ext
6604cat >>conftest.$ac_ext <<_ACEOF
6605/* end confdefs.h. */
8a2fc586
AK
6606/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6608#define $ac_func innocuous_$ac_func
6609
ad6254c5
AK
6610/* System header to define __stub macros and hopefully few prototypes,
6611 which can conflict with char $ac_func (); below.
6612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6613 <limits.h> exists even on freestanding compilers. */
8a2fc586 6614
ad6254c5
AK
6615#ifdef __STDC__
6616# include <limits.h>
6617#else
6618# include <assert.h>
6619#endif
8a2fc586
AK
6620
6621#undef $ac_func
6622
ad6254c5
AK
6623/* Override any gcc2 internal prototype to avoid an error. */
6624#ifdef __cplusplus
6625extern "C"
6626{
6627#endif
6628/* We use char because int might match the return type of a gcc2
6629 builtin and then its argument prototype would still apply. */
6630char $ac_func ();
6631/* The GNU C library defines this for functions which it implements
6632 to always fail with ENOSYS. Some functions are actually named
6633 something starting with __ and the normal name is an alias. */
6634#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6635choke me
6636#else
6637char (*f) () = $ac_func;
6638#endif
6639#ifdef __cplusplus
6640}
6641#endif
6642
6643int
6644main ()
6645{
6646return f != $ac_func;
6647 ;
6648 return 0;
6649}
6650_ACEOF
6651rm -f conftest.$ac_objext conftest$ac_exeext
6652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 6653 (eval $ac_link) 2>conftest.er1
ad6254c5 6654 ac_status=$?
8a2fc586
AK
6655 grep -v '^ *+' conftest.er1 >conftest.err
6656 rm -f conftest.er1
6657 cat conftest.err >&5
ad6254c5
AK
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); } &&
8a2fc586
AK
6660 { ac_try='test -z "$ac_c_werror_flag"
6661 || test ! -s conftest.err'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663 (eval $ac_try) 2>&5
6664 ac_status=$?
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; } &&
6667 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669 (eval $ac_try) 2>&5
6670 ac_status=$?
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; }; then
6673 eval "$as_ac_var=yes"
6674else
6675 echo "$as_me: failed program was:" >&5
6676sed 's/^/| /' conftest.$ac_ext >&5
6677
6678eval "$as_ac_var=no"
6679fi
8a2fc586
AK
6680rm -f conftest.err conftest.$ac_objext \
6681 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
6682fi
6683echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6684echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6685if test `eval echo '${'$as_ac_var'}'` = yes; then
6686 cat >>confdefs.h <<_ACEOF
6687#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6688_ACEOF
6689
6690fi
6691done
6692
6693echo "$as_me:$LINENO: checking for working mmap" >&5
6694echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6695if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6697else
6698 if test "$cross_compiling" = yes; then
6699 ac_cv_func_mmap_fixed_mapped=no
6700else
6701 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6702/* confdefs.h. */
6703_ACEOF
6704cat confdefs.h >>conftest.$ac_ext
6705cat >>conftest.$ac_ext <<_ACEOF
6706/* end confdefs.h. */
6707$ac_includes_default
6708/* malloc might have been renamed as rpl_malloc. */
6709#undef malloc
6710
6711/* Thanks to Mike Haertel and Jim Avera for this test.
6712 Here is a matrix of mmap possibilities:
6713 mmap private not fixed
6714 mmap private fixed at somewhere currently unmapped
6715 mmap private fixed at somewhere already mapped
6716 mmap shared not fixed
6717 mmap shared fixed at somewhere currently unmapped
6718 mmap shared fixed at somewhere already mapped
6719 For private mappings, we should verify that changes cannot be read()
6720 back from the file, nor mmap's back from the file at a different
6721 address. (There have been systems where private was not correctly
6722 implemented like the infamous i386 svr4.0, and systems where the
6723 VM page cache was not coherent with the file system buffer cache
6724 like early versions of FreeBSD and possibly contemporary NetBSD.)
6725 For shared mappings, we should conversely verify that changes get
6726 propagated back to all the places they're supposed to be.
6727
6728 Grep wants private fixed already mapped.
6729 The main things grep needs to know about mmap are:
6730 * does it exist and is it safe to write into the mmap'd area
6731 * how to use it (BSD variants) */
6732
6733#include <fcntl.h>
6734#include <sys/mman.h>
6735
6736#if !STDC_HEADERS && !HAVE_STDLIB_H
6737char *malloc ();
6738#endif
6739
6740/* This mess was copied from the GNU getpagesize.h. */
6741#if !HAVE_GETPAGESIZE
6742/* Assume that all systems that can run configure have sys/param.h. */
6743# if !HAVE_SYS_PARAM_H
6744# define HAVE_SYS_PARAM_H 1
6745# endif
6746
6747# ifdef _SC_PAGESIZE
6748# define getpagesize() sysconf(_SC_PAGESIZE)
6749# else /* no _SC_PAGESIZE */
6750# if HAVE_SYS_PARAM_H
6751# include <sys/param.h>
6752# ifdef EXEC_PAGESIZE
6753# define getpagesize() EXEC_PAGESIZE
6754# else /* no EXEC_PAGESIZE */
6755# ifdef NBPG
6756# define getpagesize() NBPG * CLSIZE
6757# ifndef CLSIZE
6758# define CLSIZE 1
6759# endif /* no CLSIZE */
6760# else /* no NBPG */
6761# ifdef NBPC
6762# define getpagesize() NBPC
6763# else /* no NBPC */
6764# ifdef PAGESIZE
6765# define getpagesize() PAGESIZE
6766# endif /* PAGESIZE */
6767# endif /* no NBPC */
6768# endif /* no NBPG */
6769# endif /* no EXEC_PAGESIZE */
6770# else /* no HAVE_SYS_PARAM_H */
6771# define getpagesize() 8192 /* punt totally */
6772# endif /* no HAVE_SYS_PARAM_H */
6773# endif /* no _SC_PAGESIZE */
6774
6775#endif /* no HAVE_GETPAGESIZE */
6776
6777int
6778main ()
6779{
6780 char *data, *data2, *data3;
6781 int i, pagesize;
6782 int fd;
6783
6784 pagesize = getpagesize ();
6785
6786 /* First, make a file with some known garbage in it. */
6787 data = (char *) malloc (pagesize);
6788 if (!data)
6789 exit (1);
6790 for (i = 0; i < pagesize; ++i)
6791 *(data + i) = rand ();
6792 umask (0);
6793 fd = creat ("conftest.mmap", 0600);
6794 if (fd < 0)
6795 exit (1);
6796 if (write (fd, data, pagesize) != pagesize)
6797 exit (1);
6798 close (fd);
6799
6800 /* Next, try to mmap the file at a fixed address which already has
6801 something else allocated at it. If we can, also make sure that
6802 we see the same garbage. */
6803 fd = open ("conftest.mmap", O_RDWR);
6804 if (fd < 0)
6805 exit (1);
6806 data2 = (char *) malloc (2 * pagesize);
6807 if (!data2)
6808 exit (1);
8a2fc586 6809 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 6810 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 6811 MAP_PRIVATE | MAP_FIXED, fd, 0L))
ad6254c5
AK
6812 exit (1);
6813 for (i = 0; i < pagesize; ++i)
6814 if (*(data + i) != *(data2 + i))
6815 exit (1);
6816
6817 /* Finally, make sure that changes to the mapped area do not
6818 percolate back to the file as seen by read(). (This is a bug on
6819 some variants of i386 svr4.0.) */
6820 for (i = 0; i < pagesize; ++i)
6821 *(data2 + i) = *(data2 + i) + 1;
6822 data3 = (char *) malloc (pagesize);
6823 if (!data3)
6824 exit (1);
6825 if (read (fd, data3, pagesize) != pagesize)
6826 exit (1);
6827 for (i = 0; i < pagesize; ++i)
6828 if (*(data + i) != *(data3 + i))
6829 exit (1);
6830 close (fd);
6831 exit (0);
6832}
6833_ACEOF
6834rm -f conftest$ac_exeext
6835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6836 (eval $ac_link) 2>&5
6837 ac_status=$?
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 (eval $ac_try) 2>&5
6842 ac_status=$?
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; }; then
6845 ac_cv_func_mmap_fixed_mapped=yes
6846else
6847 echo "$as_me: program exited with status $ac_status" >&5
6848echo "$as_me: failed program was:" >&5
6849sed 's/^/| /' conftest.$ac_ext >&5
6850
6851( exit $ac_status )
6852ac_cv_func_mmap_fixed_mapped=no
6853fi
8a2fc586 6854rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6855fi
6856fi
6857echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6858echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6859if test $ac_cv_func_mmap_fixed_mapped = yes; then
6860
6861cat >>confdefs.h <<\_ACEOF
6862#define HAVE_MMAP 1
6863_ACEOF
6864
6865fi
6866rm -f conftest.mmap
6867
6868echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
6869echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
6870if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6872else
6873 if test "$cross_compiling" = yes; then
6874 ac_cv_func_stat_empty_string_bug=yes
6875else
6876 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6877/* confdefs.h. */
6878_ACEOF
6879cat confdefs.h >>conftest.$ac_ext
6880cat >>conftest.$ac_ext <<_ACEOF
6881/* end confdefs.h. */
6882$ac_includes_default
6883int
6884main ()
6885{
6886struct stat sbuf;
6887 exit (stat ("", &sbuf) ? 1 : 0);
6888 ;
6889 return 0;
6890}
6891_ACEOF
6892rm -f conftest$ac_exeext
6893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6894 (eval $ac_link) 2>&5
6895 ac_status=$?
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899 (eval $ac_try) 2>&5
6900 ac_status=$?
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; }; then
6903 ac_cv_func_stat_empty_string_bug=yes
6904else
6905 echo "$as_me: program exited with status $ac_status" >&5
6906echo "$as_me: failed program was:" >&5
6907sed 's/^/| /' conftest.$ac_ext >&5
6908
6909( exit $ac_status )
6910ac_cv_func_stat_empty_string_bug=no
6911fi
8a2fc586 6912rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6913fi
6914fi
6915echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
6916echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
6917if test $ac_cv_func_stat_empty_string_bug = yes; then
8a2fc586
AK
6918 case $LIBOBJS in
6919 "stat.$ac_objext" | \
6920 *" stat.$ac_objext" | \
6921 "stat.$ac_objext "* | \
6922 *" stat.$ac_objext "* ) ;;
6923 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
6924esac
6925
ad6254c5
AK
6926
6927cat >>confdefs.h <<_ACEOF
6928#define HAVE_STAT_EMPTY_STRING_BUG 1
6929_ACEOF
6930
6931fi
6932
6933echo "$as_me:$LINENO: checking for working strtod" >&5
6934echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
6935if test "${ac_cv_func_strtod+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6937else
6938 if test "$cross_compiling" = yes; then
6939 ac_cv_func_strtod=no
6940else
6941 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6942/* confdefs.h. */
6943_ACEOF
6944cat confdefs.h >>conftest.$ac_ext
6945cat >>conftest.$ac_ext <<_ACEOF
6946/* end confdefs.h. */
6947
6948double strtod ();
6949int
6950main()
6951{
6952 {
6953 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6954 char *string = " +69";
6955 char *term;
6956 double value;
6957 value = strtod (string, &term);
6958 if (value != 69 || term != (string + 4))
6959 exit (1);
6960 }
6961
6962 {
6963 /* Under Solaris 2.4, strtod returns the wrong value for the
6964 terminating character under some conditions. */
6965 char *string = "NaN";
6966 char *term;
6967 strtod (string, &term);
6968 if (term != string && *(term - 1) == 0)
6969 exit (1);
6970 }
6971 exit (0);
6972}
6973
6974_ACEOF
6975rm -f conftest$ac_exeext
6976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6977 (eval $ac_link) 2>&5
6978 ac_status=$?
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982 (eval $ac_try) 2>&5
6983 ac_status=$?
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); }; }; then
6986 ac_cv_func_strtod=yes
6987else
6988 echo "$as_me: program exited with status $ac_status" >&5
6989echo "$as_me: failed program was:" >&5
6990sed 's/^/| /' conftest.$ac_ext >&5
6991
6992( exit $ac_status )
6993ac_cv_func_strtod=no
6994fi
8a2fc586 6995rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6996fi
6997fi
6998echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
6999echo "${ECHO_T}$ac_cv_func_strtod" >&6
7000if test $ac_cv_func_strtod = no; then
8a2fc586
AK
7001 case $LIBOBJS in
7002 "strtod.$ac_objext" | \
7003 *" strtod.$ac_objext" | \
7004 "strtod.$ac_objext "* | \
7005 *" strtod.$ac_objext "* ) ;;
7006 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
7007esac
7008
ad6254c5
AK
7009echo "$as_me:$LINENO: checking for pow" >&5
7010echo $ECHO_N "checking for pow... $ECHO_C" >&6
7011if test "${ac_cv_func_pow+set}" = set; then
7012 echo $ECHO_N "(cached) $ECHO_C" >&6
7013else
7014 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7015/* confdefs.h. */
7016_ACEOF
7017cat confdefs.h >>conftest.$ac_ext
7018cat >>conftest.$ac_ext <<_ACEOF
7019/* end confdefs.h. */
8a2fc586
AK
7020/* Define pow to an innocuous variant, in case <limits.h> declares pow.
7021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7022#define pow innocuous_pow
7023
ad6254c5
AK
7024/* System header to define __stub macros and hopefully few prototypes,
7025 which can conflict with char pow (); below.
7026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7027 <limits.h> exists even on freestanding compilers. */
8a2fc586 7028
ad6254c5
AK
7029#ifdef __STDC__
7030# include <limits.h>
7031#else
7032# include <assert.h>
7033#endif
8a2fc586
AK
7034
7035#undef pow
7036
ad6254c5
AK
7037/* Override any gcc2 internal prototype to avoid an error. */
7038#ifdef __cplusplus
7039extern "C"
7040{
7041#endif
7042/* We use char because int might match the return type of a gcc2
7043 builtin and then its argument prototype would still apply. */
7044char pow ();
7045/* The GNU C library defines this for functions which it implements
7046 to always fail with ENOSYS. Some functions are actually named
7047 something starting with __ and the normal name is an alias. */
7048#if defined (__stub_pow) || defined (__stub___pow)
7049choke me
7050#else
7051char (*f) () = pow;
7052#endif
7053#ifdef __cplusplus
7054}
7055#endif
7056
7057int
7058main ()
7059{
7060return f != pow;
7061 ;
7062 return 0;
7063}
7064_ACEOF
7065rm -f conftest.$ac_objext conftest$ac_exeext
7066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 7067 (eval $ac_link) 2>conftest.er1
ad6254c5 7068 ac_status=$?
8a2fc586
AK
7069 grep -v '^ *+' conftest.er1 >conftest.err
7070 rm -f conftest.er1
7071 cat conftest.err >&5
ad6254c5
AK
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } &&
8a2fc586
AK
7074 { ac_try='test -z "$ac_c_werror_flag"
7075 || test ! -s conftest.err'
7076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 (eval $ac_try) 2>&5
7078 ac_status=$?
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; } &&
7081 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 (eval $ac_try) 2>&5
7084 ac_status=$?
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; }; then
7087 ac_cv_func_pow=yes
7088else
7089 echo "$as_me: failed program was:" >&5
7090sed 's/^/| /' conftest.$ac_ext >&5
7091
7092ac_cv_func_pow=no
7093fi
8a2fc586
AK
7094rm -f conftest.err conftest.$ac_objext \
7095 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7096fi
7097echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
7098echo "${ECHO_T}$ac_cv_func_pow" >&6
7099
7100if test $ac_cv_func_pow = no; then
7101 echo "$as_me:$LINENO: checking for pow in -lm" >&5
7102echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
7103if test "${ac_cv_lib_m_pow+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7105else
7106 ac_check_lib_save_LIBS=$LIBS
7107LIBS="-lm $LIBS"
7108cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7109/* confdefs.h. */
7110_ACEOF
7111cat confdefs.h >>conftest.$ac_ext
7112cat >>conftest.$ac_ext <<_ACEOF
7113/* end confdefs.h. */
7114
7115/* Override any gcc2 internal prototype to avoid an error. */
7116#ifdef __cplusplus
7117extern "C"
7118#endif
7119/* We use char because int might match the return type of a gcc2
7120 builtin and then its argument prototype would still apply. */
7121char pow ();
7122int
7123main ()
7124{
7125pow ();
7126 ;
7127 return 0;
7128}
7129_ACEOF
7130rm -f conftest.$ac_objext conftest$ac_exeext
7131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 7132 (eval $ac_link) 2>conftest.er1
ad6254c5 7133 ac_status=$?
8a2fc586
AK
7134 grep -v '^ *+' conftest.er1 >conftest.err
7135 rm -f conftest.er1
7136 cat conftest.err >&5
ad6254c5
AK
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); } &&
8a2fc586
AK
7139 { ac_try='test -z "$ac_c_werror_flag"
7140 || test ! -s conftest.err'
7141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142 (eval $ac_try) 2>&5
7143 ac_status=$?
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); }; } &&
7146 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7148 (eval $ac_try) 2>&5
7149 ac_status=$?
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); }; }; then
7152 ac_cv_lib_m_pow=yes
7153else
7154 echo "$as_me: failed program was:" >&5
7155sed 's/^/| /' conftest.$ac_ext >&5
7156
7157ac_cv_lib_m_pow=no
7158fi
8a2fc586
AK
7159rm -f conftest.err conftest.$ac_objext \
7160 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7161LIBS=$ac_check_lib_save_LIBS
7162fi
7163echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
7164echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
7165if test $ac_cv_lib_m_pow = yes; then
7166 POW_LIB=-lm
7167else
7168 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
7169echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
7170fi
7171
7172fi
7173
7174fi
7175
7176
7177################################################################################
7178
7179
7180################################################################################
7181# Check whether --enable-jobs or --disable-jobs was given.
7182if test "${enable_jobs+set}" = set; then
7183 enableval="$enable_jobs"
7184 JOBS=-j$enableval
7185else
7186 JOBS=-j2
7187fi;
7188
7189################################################################################
7190echo "$as_me:$LINENO: checking file owner" >&5
7191echo $ECHO_N "checking file owner... $ECHO_C" >&6
7192OWNER="root"
7193
7194
7195# Check whether --with-user or --without-user was given.
7196if test "${with_user+set}" = set; then
7197 withval="$with_user"
7198 OWNER="$withval"
7199fi;
7200echo "$as_me:$LINENO: result: $OWNER" >&5
7201echo "${ECHO_T}$OWNER" >&6
7202
7203if test x$OWNER != x; then
7204 OWNER="-o $OWNER"
7205fi
7206
7207################################################################################
7208echo "$as_me:$LINENO: checking group owner" >&5
7209echo $ECHO_N "checking group owner... $ECHO_C" >&6
7210GROUP="root"
7211
7212# Check whether --with-group or --without-group was given.
7213if test "${with_group+set}" = set; then
7214 withval="$with_group"
7215 GROUP="$withval"
7216fi;
7217echo "$as_me:$LINENO: result: $GROUP" >&5
7218echo "${ECHO_T}$GROUP" >&6
7219
7220if test x$GROUP != x; then
7221 GROUP="-g $GROUP"
7222fi
7223
7224################################################################################
7225echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
7226echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6
7227# Check whether --enable-lvm1_fallback or --disable-lvm1_fallback was given.
7228if test "${enable_lvm1_fallback+set}" = set; then
7229 enableval="$enable_lvm1_fallback"
7230 LVM1_FALLBACK=$enableval
7231else
7232 LVM1_FALLBACK=no
7233fi;
7234echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
7235echo "${ECHO_T}$LVM1_FALLBACK" >&6
7236
7237if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
7238
7239cat >>confdefs.h <<\_ACEOF
7240#define LVM1_FALLBACK 1
7241_ACEOF
7242
ad6254c5
AK
7243fi
7244
7245################################################################################
7246echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
7247echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6
7248
7249# Check whether --with-lvm1 or --without-lvm1 was given.
7250if test "${with_lvm1+set}" = set; then
7251 withval="$with_lvm1"
7252 LVM1="$withval"
7253else
7254 LVM1="internal"
7255fi;
7256echo "$as_me:$LINENO: result: $LVM1" >&5
7257echo "${ECHO_T}$LVM1" >&6
7258
7259if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
7260 then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
7261" >&5
7262echo "$as_me: error: --with-lvm1 parameter invalid
7263" >&2;}
7264 { (exit 1); exit 1; }; }
7265fi;
7266
7267if test x$LVM1 = xinternal; then
72b2cb61
AK
7268
7269cat >>confdefs.h <<\_ACEOF
7270#define LVM1_INTERNAL 1
7271_ACEOF
7272
ad6254c5
AK
7273fi
7274
7275################################################################################
7276echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
7277echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6
7278
7279# Check whether --with-pool or --without-pool was given.
7280if test "${with_pool+set}" = set; then
7281 withval="$with_pool"
7282 POOL="$withval"
7283else
7284 POOL="internal"
7285fi;
7286echo "$as_me:$LINENO: result: $POOL" >&5
7287echo "${ECHO_T}$POOL" >&6
7288
7289if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
7290 then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid
7291" >&5
7292echo "$as_me: error: --with-pool parameter invalid
7293" >&2;}
7294 { (exit 1); exit 1; }; }
7295fi;
7296
7297if test x$POOL = xinternal; then
72b2cb61
AK
7298
7299cat >>confdefs.h <<\_ACEOF
7300#define POOL_INTERNAL 1
7301_ACEOF
7302
ad6254c5
AK
7303fi
7304
7305################################################################################
7306echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
7307echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6
7308
7309# Check whether --with-cluster or --without-cluster was given.
7310if test "${with_cluster+set}" = set; then
7311 withval="$with_cluster"
7312 CLUSTER="$withval"
7313fi;
7314echo "$as_me:$LINENO: result: $CLUSTER" >&5
7315echo "${ECHO_T}$CLUSTER" >&6
7316
7317if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
7318 then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid
7319" >&5
7320echo "$as_me: error: --with-cluster parameter invalid
7321" >&2;}
7322 { (exit 1); exit 1; }; }
7323fi;
7324
7325if test x$CLUSTER = xinternal; then
72b2cb61
AK
7326
7327cat >>confdefs.h <<\_ACEOF
7328#define CLUSTER_LOCKING_INTERNAL 1
7329_ACEOF
7330
ad6254c5
AK
7331fi
7332
7333################################################################################
7334echo "$as_me:$LINENO: checking whether to include snapshots" >&5
7335echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6
7336
7337# Check whether --with-snapshots or --without-snapshots was given.
7338if test "${with_snapshots+set}" = set; then
7339 withval="$with_snapshots"
7340 SNAPSHOTS="$withval"
7341else
7342 SNAPSHOTS="internal"
7343fi;
7344echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
7345echo "${ECHO_T}$SNAPSHOTS" >&6
7346
7347if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
7348 then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
7349" >&5
7350echo "$as_me: error: --with-snapshots parameter invalid
7351" >&2;}
7352 { (exit 1); exit 1; }; }
7353fi;
7354
7355if test x$SNAPSHOTS = xinternal; then
72b2cb61
AK
7356
7357cat >>confdefs.h <<\_ACEOF
7358#define SNAPSHOT_INTERNAL 1
7359_ACEOF
7360
ad6254c5
AK
7361fi
7362
7363################################################################################
7364echo "$as_me:$LINENO: checking whether to include mirrors" >&5
7365echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6
7366
7367# Check whether --with-mirrors or --without-mirrors was given.
7368if test "${with_mirrors+set}" = set; then
7369 withval="$with_mirrors"
7370 MIRRORS="$withval"
7371else
7372 MIRRORS="internal"
7373fi;
7374echo "$as_me:$LINENO: result: $MIRRORS" >&5
7375echo "${ECHO_T}$MIRRORS" >&6
7376
7377if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
7378 then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
7379" >&5
7380echo "$as_me: error: --with-mirrors parameter invalid
7381" >&2;}
7382 { (exit 1); exit 1; }; }
7383fi;
7384
7385if test x$MIRRORS = xinternal; then
72b2cb61
AK
7386
7387cat >>confdefs.h <<\_ACEOF
7388#define MIRRORED_INTERNAL 1
7389_ACEOF
7390
ad6254c5
AK
7391fi
7392
7393################################################################################
7394echo "$as_me:$LINENO: checking whether to use static linking" >&5
7395echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6
7396# Check whether --enable-static_link or --disable-static_link was given.
7397if test "${enable_static_link+set}" = set; then
7398 enableval="$enable_static_link"
7399 STATIC_LINK=$enableval
7400else
7401 STATIC_LINK=no
7402fi;
7403echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
7404echo "${ECHO_T}$STATIC_LINK" >&6
7405
7406################################################################################
7407echo "$as_me:$LINENO: checking whether to enable readline" >&5
7408echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6
7409# Check whether --enable-readline or --disable-readline was given.
7410if test "${enable_readline+set}" = set; then
7411 enableval="$enable_readline"
7412 READLINE=$enableval
7413else
7414 READLINE=no
7415fi;
7416echo "$as_me:$LINENO: result: $READLINE" >&5
7417echo "${ECHO_T}$READLINE" >&6
7418
7419if test x$READLINE = xyes; then
72b2cb61
AK
7420
7421cat >>confdefs.h <<\_ACEOF
7422#define READLINE_SUPPORT 1
7423_ACEOF
7424
ad6254c5
AK
7425fi
7426
7427################################################################################
7428echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
7429echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6
7430# Check whether --enable-selinux or --disable-selinux was given.
7431if test "${enable_selinux+set}" = set; then
7432 enableval="$enable_selinux"
7433 SELINUX=$enableval
7434fi;
7435echo "$as_me:$LINENO: result: $SELINUX" >&5
7436echo "${ECHO_T}$SELINUX" >&6
7437
8b1a3214
AK
7438################################################################################
7439echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
7440echo $ECHO_N "checking whether to enable realtime support... $ECHO_C" >&6
7441# Check whether --enable-realtime or --disable-realtime was given.
7442if test "${enable_realtime+set}" = set; then
7443 enableval="$enable_realtime"
7444 REALTIME=$enableval
7445fi;
7446echo "$as_me:$LINENO: result: $REALTIME" >&5
7447echo "${ECHO_T}$REALTIME" >&6
7448
ad6254c5
AK
7449################################################################################
7450echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
7451echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6
7452
7453# Check whether --with-clvmd or --without-clvmd was given.
7454if test "${with_clvmd+set}" = set; then
7455 withval="$with_clvmd"
a266258f 7456 CLVMD="$withval"
ad6254c5 7457else
a266258f 7458 CLVMD="none"
ad6254c5 7459fi;
a266258f 7460if test x$CLVMD = xyes; then
5c7fc7c4 7461 CLVMD=all
b1098701 7462fi
ad6254c5
AK
7463echo "$as_me:$LINENO: result: $CLVMD" >&5
7464echo "${ECHO_T}$CLVMD" >&6
7465
a266258f 7466if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
ad6254c5
AK
7467 CLUSTER=internal
7468fi
7469
7470################################################################################
7471echo "$as_me:$LINENO: checking whether to enable debugging" >&5
7472echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6
7473# Check whether --enable-debug or --disable-debug was given.
7474if test "${enable_debug+set}" = set; then
7475 enableval="$enable_debug"
7476 DEBUG=$enableval
7477else
7478 DEBUG=no
7479fi;
7480echo "$as_me:$LINENO: result: $DEBUG" >&5
7481echo "${ECHO_T}$DEBUG" >&6
7482
7483if test x$DEBUG = xyes; then
7484 COPTIMISE_FLAG=
8a2fc586
AK
7485else
7486 CSCOPE_CMD=
ad6254c5
AK
7487fi
7488
7489################################################################################
7490echo "$as_me:$LINENO: checking for C optimisation flag" >&5
7491echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6
7492
7493# Check whether --with-optimisation or --without-optimisation was given.
7494if test "${with_optimisation+set}" = set; then
7495 withval="$with_optimisation"
7496 COPTIMISE_FLAG="$withval"
7497fi;
7498echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
7499echo "${ECHO_T}$COPTIMISE_FLAG" >&6
7500
7501################################################################################
7502echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
7503echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6
7504# Check whether --enable-devmapper or --disable-devmapper was given.
7505if test "${enable_devmapper+set}" = set; then
7506 enableval="$enable_devmapper"
7507 DEVMAPPER=$enableval
7508fi;
7509echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
7510echo "${ECHO_T}$DEVMAPPER" >&6
7511
7512if test x$DEVMAPPER = xyes; then
72b2cb61
AK
7513
7514cat >>confdefs.h <<\_ACEOF
7515#define DEVMAPPER_SUPPORT 1
7516_ACEOF
7517
ad6254c5
AK
7518fi
7519
7520################################################################################
7521echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
7522echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6
7523# Check whether --enable-o_direct or --disable-o_direct was given.
7524if test "${enable_o_direct+set}" = set; then
7525 enableval="$enable_o_direct"
7526 ODIRECT=$enableval
7527fi;
7528echo "$as_me:$LINENO: result: $ODIRECT" >&5
7529echo "${ECHO_T}$ODIRECT" >&6
7530
7531if test x$ODIRECT = xyes; then
72b2cb61
AK
7532
7533cat >>confdefs.h <<\_ACEOF
7534#define O_DIRECT_SUPPORT 1
7535_ACEOF
7536
ad6254c5
AK
7537fi
7538
7539################################################################################
7540echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
7541echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6
7542# Check whether --enable-cmdlib or --disable-cmdlib was given.
7543if test "${enable_cmdlib+set}" = set; then
7544 enableval="$enable_cmdlib"
7545 CMDLIB=$enableval
7546else
7547 CMDLIB=no
7548fi;
7549echo "$as_me:$LINENO: result: $CMDLIB" >&5
7550echo "${ECHO_T}$CMDLIB" >&6
7551
ad6254c5
AK
7552################################################################################
7553echo "$as_me:$LINENO: checking whether to build fsadm" >&5
7554echo $ECHO_N "checking whether to build fsadm... $ECHO_C" >&6
7555# Check whether --enable-fsadm or --disable-fsadm was given.
7556if test "${enable_fsadm+set}" = set; then
7557 enableval="$enable_fsadm"
7558 FSADM=$enableval
7559fi;
7560echo "$as_me:$LINENO: result: $FSADM" >&5
7561echo "${ECHO_T}$FSADM" >&6
7562
06f62ad1
AK
7563################################################################################
7564echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
7565echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6
7566# Check whether --enable-dmeventd or --disable-dmeventd was given.
7567if test "${enable_dmeventd+set}" = set; then
7568 enableval="$enable_dmeventd"
7569 DMEVENTD=$enableval
7570fi;
7571echo "$as_me:$LINENO: result: $DMEVENTD" >&5
7572echo "${ECHO_T}$DMEVENTD" >&6
7573
7574if test x$DMEVENTD = xyes && test x$MIRRORS != xinternal; then
7575{ { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
7576" >&5
7577echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
7578" >&2;}
7579 { (exit 1); exit 1; }; }
7580fi
7581
15d91f5a 7582if test x$DMEVENTD = xyes; then
72b2cb61
AK
7583
7584cat >>confdefs.h <<\_ACEOF
7585#define DMEVENTD 1
7586_ACEOF
7587
15d91f5a 7588fi
ad6254c5
AK
7589################################################################################
7590if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
7591 then exec_prefix="";
7592fi;
7593
7594################################################################################
7595if test $ac_cv_c_compiler_gnu = yes; then
7596 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
7597echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
7598if test "${ac_cv_prog_gcc_traditional+set}" = set; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7600else
7601 ac_pattern="Autoconf.*'x'"
7602 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7603/* confdefs.h. */
7604_ACEOF
7605cat confdefs.h >>conftest.$ac_ext
7606cat >>conftest.$ac_ext <<_ACEOF
7607/* end confdefs.h. */
7608#include <sgtty.h>
7609Autoconf TIOCGETP
7610_ACEOF
7611if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7612 $EGREP "$ac_pattern" >/dev/null 2>&1; then
7613 ac_cv_prog_gcc_traditional=yes
7614else
7615 ac_cv_prog_gcc_traditional=no
7616fi
7617rm -f conftest*
7618
7619
7620 if test $ac_cv_prog_gcc_traditional = no; then
7621 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7622/* confdefs.h. */
7623_ACEOF
7624cat confdefs.h >>conftest.$ac_ext
7625cat >>conftest.$ac_ext <<_ACEOF
7626/* end confdefs.h. */
7627#include <termio.h>
7628Autoconf TCGETA
7629_ACEOF
7630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7631 $EGREP "$ac_pattern" >/dev/null 2>&1; then
7632 ac_cv_prog_gcc_traditional=yes
7633fi
7634rm -f conftest*
7635
7636 fi
7637fi
7638echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
7639echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
7640 if test $ac_cv_prog_gcc_traditional = yes; then
7641 CC="$CC -traditional"
7642 fi
7643fi
7644
7645echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7646echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7647if test "${ac_cv_type_signal+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7649else
7650 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7651/* confdefs.h. */
7652_ACEOF
7653cat confdefs.h >>conftest.$ac_ext
7654cat >>conftest.$ac_ext <<_ACEOF
7655/* end confdefs.h. */
7656#include <sys/types.h>
7657#include <signal.h>
7658#ifdef signal
7659# undef signal
7660#endif
7661#ifdef __cplusplus
7662extern "C" void (*signal (int, void (*)(int)))(int);
7663#else
7664void (*signal ()) ();
7665#endif
7666
7667int
7668main ()
7669{
7670int i;
7671 ;
7672 return 0;
7673}
7674_ACEOF
7675rm -f conftest.$ac_objext
7676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 7677 (eval $ac_compile) 2>conftest.er1
ad6254c5 7678 ac_status=$?
8a2fc586
AK
7679 grep -v '^ *+' conftest.er1 >conftest.err
7680 rm -f conftest.er1
7681 cat conftest.err >&5
ad6254c5
AK
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); } &&
8a2fc586
AK
7684 { ac_try='test -z "$ac_c_werror_flag"
7685 || test ! -s conftest.err'
7686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687 (eval $ac_try) 2>&5
7688 ac_status=$?
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); }; } &&
7691 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
7692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693 (eval $ac_try) 2>&5
7694 ac_status=$?
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }; }; then
7697 ac_cv_type_signal=void
7698else
7699 echo "$as_me: failed program was:" >&5
7700sed 's/^/| /' conftest.$ac_ext >&5
7701
7702ac_cv_type_signal=int
7703fi
8a2fc586 7704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
7705fi
7706echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7707echo "${ECHO_T}$ac_cv_type_signal" >&6
7708
7709cat >>confdefs.h <<_ACEOF
7710#define RETSIGTYPE $ac_cv_type_signal
7711_ACEOF
7712
7713
7714
7715for ac_func in vprintf
7716do
7717as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7718echo "$as_me:$LINENO: checking for $ac_func" >&5
7719echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7720if eval "test \"\${$as_ac_var+set}\" = set"; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7722else
7723 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7724/* confdefs.h. */
7725_ACEOF
7726cat confdefs.h >>conftest.$ac_ext
7727cat >>conftest.$ac_ext <<_ACEOF
7728/* end confdefs.h. */
8a2fc586
AK
7729/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7731#define $ac_func innocuous_$ac_func
7732
ad6254c5
AK
7733/* System header to define __stub macros and hopefully few prototypes,
7734 which can conflict with char $ac_func (); below.
7735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7736 <limits.h> exists even on freestanding compilers. */
8a2fc586 7737
ad6254c5
AK
7738#ifdef __STDC__
7739# include <limits.h>
7740#else
7741# include <assert.h>
7742#endif
8a2fc586
AK
7743
7744#undef $ac_func
7745
ad6254c5
AK
7746/* Override any gcc2 internal prototype to avoid an error. */
7747#ifdef __cplusplus
7748extern "C"
7749{
7750#endif
7751/* We use char because int might match the return type of a gcc2
7752 builtin and then its argument prototype would still apply. */
7753char $ac_func ();
7754/* The GNU C library defines this for functions which it implements
7755 to always fail with ENOSYS. Some functions are actually named
7756 something starting with __ and the normal name is an alias. */
7757#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7758choke me
7759#else
7760char (*f) () = $ac_func;
7761#endif
7762#ifdef __cplusplus
7763}
7764#endif
7765
7766int
7767main ()
7768{
7769return f != $ac_func;
7770 ;
7771 return 0;
7772}
7773_ACEOF
7774rm -f conftest.$ac_objext conftest$ac_exeext
7775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 7776 (eval $ac_link) 2>conftest.er1
ad6254c5 7777 ac_status=$?
8a2fc586
AK
7778 grep -v '^ *+' conftest.er1 >conftest.err
7779 rm -f conftest.er1
7780 cat conftest.err >&5
ad6254c5
AK
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } &&
8a2fc586
AK
7783 { ac_try='test -z "$ac_c_werror_flag"
7784 || test ! -s conftest.err'
7785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786 (eval $ac_try) 2>&5
7787 ac_status=$?
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }; } &&
7790 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792 (eval $ac_try) 2>&5
7793 ac_status=$?
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; }; then
7796 eval "$as_ac_var=yes"
7797else
7798 echo "$as_me: failed program was:" >&5
7799sed 's/^/| /' conftest.$ac_ext >&5
7800
7801eval "$as_ac_var=no"
7802fi
8a2fc586
AK
7803rm -f conftest.err conftest.$ac_objext \
7804 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7805fi
7806echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7807echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7808if test `eval echo '${'$as_ac_var'}'` = yes; then
7809 cat >>confdefs.h <<_ACEOF
7810#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7811_ACEOF
7812
7813echo "$as_me:$LINENO: checking for _doprnt" >&5
7814echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7815if test "${ac_cv_func__doprnt+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
7817else
7818 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7819/* confdefs.h. */
7820_ACEOF
7821cat confdefs.h >>conftest.$ac_ext
7822cat >>conftest.$ac_ext <<_ACEOF
7823/* end confdefs.h. */
8a2fc586
AK
7824/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
7825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7826#define _doprnt innocuous__doprnt
7827
ad6254c5
AK
7828/* System header to define __stub macros and hopefully few prototypes,
7829 which can conflict with char _doprnt (); below.
7830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7831 <limits.h> exists even on freestanding compilers. */
8a2fc586 7832
ad6254c5
AK
7833#ifdef __STDC__
7834# include <limits.h>
7835#else
7836# include <assert.h>
7837#endif
8a2fc586
AK
7838
7839#undef _doprnt
7840
ad6254c5
AK
7841/* Override any gcc2 internal prototype to avoid an error. */
7842#ifdef __cplusplus
7843extern "C"
7844{
7845#endif
7846/* We use char because int might match the return type of a gcc2
7847 builtin and then its argument prototype would still apply. */
7848char _doprnt ();
7849/* The GNU C library defines this for functions which it implements
7850 to always fail with ENOSYS. Some functions are actually named
7851 something starting with __ and the normal name is an alias. */
7852#if defined (__stub__doprnt) || defined (__stub____doprnt)
7853choke me
7854#else
7855char (*f) () = _doprnt;
7856#endif
7857#ifdef __cplusplus
7858}
7859#endif
7860
7861int
7862main ()
7863{
7864return f != _doprnt;
7865 ;
7866 return 0;
7867}
7868_ACEOF
7869rm -f conftest.$ac_objext conftest$ac_exeext
7870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 7871 (eval $ac_link) 2>conftest.er1
ad6254c5 7872 ac_status=$?
8a2fc586
AK
7873 grep -v '^ *+' conftest.er1 >conftest.err
7874 rm -f conftest.er1
7875 cat conftest.err >&5
ad6254c5
AK
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); } &&
8a2fc586
AK
7878 { ac_try='test -z "$ac_c_werror_flag"
7879 || test ! -s conftest.err'
7880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881 (eval $ac_try) 2>&5
7882 ac_status=$?
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }; } &&
7885 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887 (eval $ac_try) 2>&5
7888 ac_status=$?
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); }; }; then
7891 ac_cv_func__doprnt=yes
7892else
7893 echo "$as_me: failed program was:" >&5
7894sed 's/^/| /' conftest.$ac_ext >&5
7895
7896ac_cv_func__doprnt=no
7897fi
8a2fc586
AK
7898rm -f conftest.err conftest.$ac_objext \
7899 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7900fi
7901echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7902echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7903if test $ac_cv_func__doprnt = yes; then
7904
7905cat >>confdefs.h <<\_ACEOF
7906#define HAVE_DOPRNT 1
7907_ACEOF
7908
7909fi
7910
7911fi
7912done
7913
7914
7915
7916
7917
7918for ac_func in mkdir rmdir uname
7919do
7920as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7921echo "$as_me:$LINENO: checking for $ac_func" >&5
7922echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7923if eval "test \"\${$as_ac_var+set}\" = set"; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7925else
7926 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7927/* confdefs.h. */
7928_ACEOF
7929cat confdefs.h >>conftest.$ac_ext
7930cat >>conftest.$ac_ext <<_ACEOF
7931/* end confdefs.h. */
8a2fc586
AK
7932/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7934#define $ac_func innocuous_$ac_func
7935
ad6254c5
AK
7936/* System header to define __stub macros and hopefully few prototypes,
7937 which can conflict with char $ac_func (); below.
7938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7939 <limits.h> exists even on freestanding compilers. */
8a2fc586 7940
ad6254c5
AK
7941#ifdef __STDC__
7942# include <limits.h>
7943#else
7944# include <assert.h>
7945#endif
8a2fc586
AK
7946
7947#undef $ac_func
7948
ad6254c5
AK
7949/* Override any gcc2 internal prototype to avoid an error. */
7950#ifdef __cplusplus
7951extern "C"
7952{
7953#endif
7954/* We use char because int might match the return type of a gcc2
7955 builtin and then its argument prototype would still apply. */
7956char $ac_func ();
7957/* The GNU C library defines this for functions which it implements
7958 to always fail with ENOSYS. Some functions are actually named
7959 something starting with __ and the normal name is an alias. */
7960#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7961choke me
7962#else
7963char (*f) () = $ac_func;
7964#endif
7965#ifdef __cplusplus
7966}
7967#endif
7968
7969int
7970main ()
7971{
7972return f != $ac_func;
7973 ;
7974 return 0;
7975}
7976_ACEOF
7977rm -f conftest.$ac_objext conftest$ac_exeext
7978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 7979 (eval $ac_link) 2>conftest.er1
ad6254c5 7980 ac_status=$?
8a2fc586
AK
7981 grep -v '^ *+' conftest.er1 >conftest.err
7982 rm -f conftest.er1
7983 cat conftest.err >&5
ad6254c5
AK
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } &&
8a2fc586
AK
7986 { ac_try='test -z "$ac_c_werror_flag"
7987 || test ! -s conftest.err'
7988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989 (eval $ac_try) 2>&5
7990 ac_status=$?
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); }; } &&
7993 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7995 (eval $ac_try) 2>&5
7996 ac_status=$?
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); }; }; then
7999 eval "$as_ac_var=yes"
8000else
8001 echo "$as_me: failed program was:" >&5
8002sed 's/^/| /' conftest.$ac_ext >&5
8003
8004eval "$as_ac_var=no"
8005fi
8a2fc586
AK
8006rm -f conftest.err conftest.$ac_objext \
8007 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8008fi
8009echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8010echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8011if test `eval echo '${'$as_ac_var'}'` = yes; then
8012 cat >>confdefs.h <<_ACEOF
8013#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8014_ACEOF
8015
8016else
8017 { { echo "$as_me:$LINENO: error: bailing out" >&5
8018echo "$as_me: error: bailing out" >&2;}
8019 { (exit 1); exit 1; }; }
8020fi
8021done
8022
8023
8024################################################################################
8025if test x$READLINE = xyes; then
8026 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8027echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8028if test "${ac_cv_search_tgetent+set}" = set; then
8029 echo $ECHO_N "(cached) $ECHO_C" >&6
8030else
8031 ac_func_search_save_LIBS=$LIBS
8032ac_cv_search_tgetent=no
8033cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8034/* confdefs.h. */
8035_ACEOF
8036cat confdefs.h >>conftest.$ac_ext
8037cat >>conftest.$ac_ext <<_ACEOF
8038/* end confdefs.h. */
8039
8040/* Override any gcc2 internal prototype to avoid an error. */
8041#ifdef __cplusplus
8042extern "C"
8043#endif
8044/* We use char because int might match the return type of a gcc2
8045 builtin and then its argument prototype would still apply. */
8046char tgetent ();
8047int
8048main ()
8049{
8050tgetent ();
8051 ;
8052 return 0;
8053}
8054_ACEOF
8055rm -f conftest.$ac_objext conftest$ac_exeext
8056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 8057 (eval $ac_link) 2>conftest.er1
ad6254c5 8058 ac_status=$?
8a2fc586
AK
8059 grep -v '^ *+' conftest.er1 >conftest.err
8060 rm -f conftest.er1
8061 cat conftest.err >&5
ad6254c5
AK
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } &&
8a2fc586
AK
8064 { ac_try='test -z "$ac_c_werror_flag"
8065 || test ! -s conftest.err'
8066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8067 (eval $ac_try) 2>&5
8068 ac_status=$?
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); }; } &&
8071 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073 (eval $ac_try) 2>&5
8074 ac_status=$?
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }; }; then
8077 ac_cv_search_tgetent="none required"
8078else
8079 echo "$as_me: failed program was:" >&5
8080sed 's/^/| /' conftest.$ac_ext >&5
8081
8082fi
8a2fc586
AK
8083rm -f conftest.err conftest.$ac_objext \
8084 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8085if test "$ac_cv_search_tgetent" = no; then
8086 for ac_lib in ncurses curses termcap termlib; do
8087 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8088 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8089/* confdefs.h. */
8090_ACEOF
8091cat confdefs.h >>conftest.$ac_ext
8092cat >>conftest.$ac_ext <<_ACEOF
8093/* end confdefs.h. */
8094
8095/* Override any gcc2 internal prototype to avoid an error. */
8096#ifdef __cplusplus
8097extern "C"
8098#endif
8099/* We use char because int might match the return type of a gcc2
8100 builtin and then its argument prototype would still apply. */
8101char tgetent ();
8102int
8103main ()
8104{
8105tgetent ();
8106 ;
8107 return 0;
8108}
8109_ACEOF
8110rm -f conftest.$ac_objext conftest$ac_exeext
8111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 8112 (eval $ac_link) 2>conftest.er1
ad6254c5 8113 ac_status=$?
8a2fc586
AK
8114 grep -v '^ *+' conftest.er1 >conftest.err
8115 rm -f conftest.er1
8116 cat conftest.err >&5
ad6254c5
AK
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } &&
8a2fc586
AK
8119 { ac_try='test -z "$ac_c_werror_flag"
8120 || test ! -s conftest.err'
8121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122 (eval $ac_try) 2>&5
8123 ac_status=$?
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); }; } &&
8126 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128 (eval $ac_try) 2>&5
8129 ac_status=$?
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; }; then
8132 ac_cv_search_tgetent="-l$ac_lib"
8133break
8134else
8135 echo "$as_me: failed program was:" >&5
8136sed 's/^/| /' conftest.$ac_ext >&5
8137
8138fi
8a2fc586
AK
8139rm -f conftest.err conftest.$ac_objext \
8140 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8141 done
8142fi
8143LIBS=$ac_func_search_save_LIBS
8144fi
8145echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8146echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8147if test "$ac_cv_search_tgetent" != no; then
8148 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
8149
8150else
8151 { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the
8152--enable-readline option (which is enabled by default). Either disable readline
8153support with --disable-readline or download and install termcap from:
8154 ftp.gnu.org/gnu/termcap
8155Note: if you are using precompiled packages you will also need the development
8156 package as well (which may be called termcap-devel or something similar).
8157Note: (n)curses also seems to work as a substitute for termcap. This was
8158 not found either - but you could try installing that as well.
8159" >&5
8160echo "$as_me: error: termcap could not be found which is required for the
8161--enable-readline option (which is enabled by default). Either disable readline
8162support with --disable-readline or download and install termcap from:
8163 ftp.gnu.org/gnu/termcap
8164Note: if you are using precompiled packages you will also need the development
8165 package as well (which may be called termcap-devel or something similar).
8166Note: (n)curses also seems to work as a substitute for termcap. This was
8167 not found either - but you could try installing that as well.
8168" >&2;}
8169 { (exit 1); exit 1; }; }
8170
8171fi
8172
8173fi
8174
8175################################################################################
8176echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8177echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8178if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8180else
8181 ac_check_lib_save_LIBS=$LIBS
8182LIBS="-ldl $LIBS"
8183cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8184/* confdefs.h. */
8185_ACEOF
8186cat confdefs.h >>conftest.$ac_ext
8187cat >>conftest.$ac_ext <<_ACEOF
8188/* end confdefs.h. */
8189
8190/* Override any gcc2 internal prototype to avoid an error. */
8191#ifdef __cplusplus
8192extern "C"
8193#endif
8194/* We use char because int might match the return type of a gcc2
8195 builtin and then its argument prototype would still apply. */
8196char dlopen ();
8197int
8198main ()
8199{
8200dlopen ();
8201 ;
8202 return 0;
8203}
8204_ACEOF
8205rm -f conftest.$ac_objext conftest$ac_exeext
8206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 8207 (eval $ac_link) 2>conftest.er1
ad6254c5 8208 ac_status=$?
8a2fc586
AK
8209 grep -v '^ *+' conftest.er1 >conftest.err
8210 rm -f conftest.er1
8211 cat conftest.err >&5
ad6254c5
AK
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } &&
8a2fc586
AK
8214 { ac_try='test -z "$ac_c_werror_flag"
8215 || test ! -s conftest.err'
8216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8217 (eval $ac_try) 2>&5
8218 ac_status=$?
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); }; } &&
8221 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8223 (eval $ac_try) 2>&5
8224 ac_status=$?
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; }; then
8227 ac_cv_lib_dl_dlopen=yes
8228else
8229 echo "$as_me: failed program was:" >&5
8230sed 's/^/| /' conftest.$ac_ext >&5
8231
8232ac_cv_lib_dl_dlopen=no
8233fi
8a2fc586
AK
8234rm -f conftest.err conftest.$ac_objext \
8235 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8236LIBS=$ac_check_lib_save_LIBS
8237fi
8238echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8239echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8240if test $ac_cv_lib_dl_dlopen = yes; then
8241 HAVE_LIBDL=yes
8242else
8243 HAVE_LIBDL=no
8244fi
8245
8246
7e9e9502 8247if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
8248
8249cat >>confdefs.h <<\_ACEOF
8250#define HAVE_LIBDL 1
8251_ACEOF
8252
ad6254c5
AK
8253 LIBS="-ldl $LIBS"
8254else
8255 HAVE_LIBDL=no
8256fi
8257
8258################################################################################
8259if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
8260 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
8261 \) -a "x$STATIC_LINK" = xyes ];
8262 then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
8263" >&5
8264echo "$as_me: error: Features cannot be 'shared' when building statically
8265" >&2;}
8266 { (exit 1); exit 1; }; }
8267fi
8268
8269################################################################################
8270if test x$SELINUX = xyes; then
8a2fc586
AK
8271 echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
8272echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6
8273if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
8274 echo $ECHO_N "(cached) $ECHO_C" >&6
8275else
8276 ac_check_lib_save_LIBS=$LIBS
8277LIBS="-lsepol $LIBS"
8278cat >conftest.$ac_ext <<_ACEOF
8279/* confdefs.h. */
8280_ACEOF
8281cat confdefs.h >>conftest.$ac_ext
8282cat >>conftest.$ac_ext <<_ACEOF
8283/* end confdefs.h. */
8284
8285/* Override any gcc2 internal prototype to avoid an error. */
8286#ifdef __cplusplus
8287extern "C"
8288#endif
8289/* We use char because int might match the return type of a gcc2
8290 builtin and then its argument prototype would still apply. */
8291char sepol_check_context ();
8292int
8293main ()
8294{
8295sepol_check_context ();
8296 ;
8297 return 0;
8298}
8299_ACEOF
8300rm -f conftest.$ac_objext conftest$ac_exeext
8301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8302 (eval $ac_link) 2>conftest.er1
8303 ac_status=$?
8304 grep -v '^ *+' conftest.er1 >conftest.err
8305 rm -f conftest.er1
8306 cat conftest.err >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } &&
8309 { ac_try='test -z "$ac_c_werror_flag"
8310 || test ! -s conftest.err'
8311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312 (eval $ac_try) 2>&5
8313 ac_status=$?
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; } &&
8316 { ac_try='test -s conftest$ac_exeext'
8317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318 (eval $ac_try) 2>&5
8319 ac_status=$?
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; }; then
8322 ac_cv_lib_sepol_sepol_check_context=yes
8323else
8324 echo "$as_me: failed program was:" >&5
8325sed 's/^/| /' conftest.$ac_ext >&5
8326
8327ac_cv_lib_sepol_sepol_check_context=no
8328fi
8329rm -f conftest.err conftest.$ac_objext \
8330 conftest$ac_exeext conftest.$ac_ext
8331LIBS=$ac_check_lib_save_LIBS
8332fi
8333echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
8334echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6
8335if test $ac_cv_lib_sepol_sepol_check_context = yes; then
8336 HAVE_SEPOL=yes
8337else
8338 HAVE_SEPOL=no
8339fi
8340
8a2fc586
AK
8341
8342 if test x$HAVE_SEPOL = xyes; then
8343 LIBS="-lsepol $LIBS"
8344 fi
8345
ad6254c5
AK
8346 echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
8347echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6
8348if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
8350else
8351 ac_check_lib_save_LIBS=$LIBS
8352LIBS="-lselinux $LIBS"
8353cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8354/* confdefs.h. */
8355_ACEOF
8356cat confdefs.h >>conftest.$ac_ext
8357cat >>conftest.$ac_ext <<_ACEOF
8358/* end confdefs.h. */
8359
8360/* Override any gcc2 internal prototype to avoid an error. */
8361#ifdef __cplusplus
8362extern "C"
8363#endif
8364/* We use char because int might match the return type of a gcc2
8365 builtin and then its argument prototype would still apply. */
8366char is_selinux_enabled ();
8367int
8368main ()
8369{
8370is_selinux_enabled ();
8371 ;
8372 return 0;
8373}
8374_ACEOF
8375rm -f conftest.$ac_objext conftest$ac_exeext
8376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 8377 (eval $ac_link) 2>conftest.er1
ad6254c5 8378 ac_status=$?
8a2fc586
AK
8379 grep -v '^ *+' conftest.er1 >conftest.err
8380 rm -f conftest.er1
8381 cat conftest.err >&5
ad6254c5
AK
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } &&
8a2fc586
AK
8384 { ac_try='test -z "$ac_c_werror_flag"
8385 || test ! -s conftest.err'
8386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 (eval $ac_try) 2>&5
8388 ac_status=$?
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; } &&
8391 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 (eval $ac_try) 2>&5
8394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; }; then
8397 ac_cv_lib_selinux_is_selinux_enabled=yes
8398else
8399 echo "$as_me: failed program was:" >&5
8400sed 's/^/| /' conftest.$ac_ext >&5
8401
8402ac_cv_lib_selinux_is_selinux_enabled=no
8403fi
8a2fc586
AK
8404rm -f conftest.err conftest.$ac_objext \
8405 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8406LIBS=$ac_check_lib_save_LIBS
8407fi
8408echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
8409echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6
8410if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
8411 HAVE_SELINUX=yes
8412else
8413 HAVE_SELINUX=no
8414fi
8415
ad6254c5
AK
8416
8417 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
8418
8419cat >>confdefs.h <<\_ACEOF
8420#define HAVE_SELINUX 1
8421_ACEOF
8422
ad6254c5
AK
8423 LIBS="-lselinux $LIBS"
8424 else
8425 { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
8426echo "$as_me: WARNING: Disabling selinux" >&2;}
8427 fi
8428fi
8429
8b1a3214
AK
8430################################################################################
8431if test x$REALTIME = xyes; then
8b1a3214
AK
8432 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
8433echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
8434if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8436else
8437 ac_check_lib_save_LIBS=$LIBS
8438LIBS="-lrt $LIBS"
8439cat >conftest.$ac_ext <<_ACEOF
8440/* confdefs.h. */
8441_ACEOF
8442cat confdefs.h >>conftest.$ac_ext
8443cat >>conftest.$ac_ext <<_ACEOF
8444/* end confdefs.h. */
8445
8446/* Override any gcc2 internal prototype to avoid an error. */
8447#ifdef __cplusplus
8448extern "C"
8449#endif
8450/* We use char because int might match the return type of a gcc2
8451 builtin and then its argument prototype would still apply. */
8452char clock_gettime ();
8453int
8454main ()
8455{
8456clock_gettime ();
8457 ;
8458 return 0;
8459}
8460_ACEOF
8461rm -f conftest.$ac_objext conftest$ac_exeext
8462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8463 (eval $ac_link) 2>conftest.er1
8464 ac_status=$?
8465 grep -v '^ *+' conftest.er1 >conftest.err
8466 rm -f conftest.er1
8467 cat conftest.err >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); } &&
8470 { ac_try='test -z "$ac_c_werror_flag"
8471 || test ! -s conftest.err'
8472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 (eval $ac_try) 2>&5
8474 ac_status=$?
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); }; } &&
8477 { ac_try='test -s conftest$ac_exeext'
8478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479 (eval $ac_try) 2>&5
8480 ac_status=$?
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
8483 ac_cv_lib_rt_clock_gettime=yes
8484else
8485 echo "$as_me: failed program was:" >&5
8486sed 's/^/| /' conftest.$ac_ext >&5
8487
8488ac_cv_lib_rt_clock_gettime=no
8489fi
8490rm -f conftest.err conftest.$ac_objext \
8491 conftest$ac_exeext conftest.$ac_ext
8492LIBS=$ac_check_lib_save_LIBS
8493fi
8494echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
8495echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
8496if test $ac_cv_lib_rt_clock_gettime = yes; then
8497 HAVE_REALTIME=yes
8498else
8499 HAVE_REALTIME=no
8500fi
8501
8b1a3214
AK
8502
8503 if test x$HAVE_REALTIME = xyes; then
8504
8505cat >>confdefs.h <<\_ACEOF
8506#define HAVE_REALTIME 1
8507_ACEOF
8508
8509 LIBS="-lrt $LIBS"
8510 else
8511 { echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
8512echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8513 fi
8514fi
8515
ad6254c5
AK
8516################################################################################
8517
8518for ac_header in getopt.h
8519do
8520as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8521if eval "test \"\${$as_ac_Header+set}\" = set"; then
8522 echo "$as_me:$LINENO: checking for $ac_header" >&5
8523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8524if eval "test \"\${$as_ac_Header+set}\" = set"; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8526fi
8527echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8528echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8529else
8530 # Is the header compilable?
8531echo "$as_me:$LINENO: checking $ac_header usability" >&5
8532echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8533cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8534/* confdefs.h. */
8535_ACEOF
8536cat confdefs.h >>conftest.$ac_ext
8537cat >>conftest.$ac_ext <<_ACEOF
8538/* end confdefs.h. */
8539$ac_includes_default
8540#include <$ac_header>
8541_ACEOF
8542rm -f conftest.$ac_objext
8543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 8544 (eval $ac_compile) 2>conftest.er1
ad6254c5 8545 ac_status=$?
8a2fc586
AK
8546 grep -v '^ *+' conftest.er1 >conftest.err
8547 rm -f conftest.er1
8548 cat conftest.err >&5
ad6254c5
AK
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); } &&
8a2fc586
AK
8551 { ac_try='test -z "$ac_c_werror_flag"
8552 || test ! -s conftest.err'
8553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554 (eval $ac_try) 2>&5
8555 ac_status=$?
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; } &&
8558 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560 (eval $ac_try) 2>&5
8561 ac_status=$?
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; }; then
8564 ac_header_compiler=yes
8565else
8566 echo "$as_me: failed program was:" >&5
8567sed 's/^/| /' conftest.$ac_ext >&5
8568
8569ac_header_compiler=no
8570fi
8a2fc586 8571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
8572echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8573echo "${ECHO_T}$ac_header_compiler" >&6
8574
8575# Is the header present?
8576echo "$as_me:$LINENO: checking $ac_header presence" >&5
8577echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8578cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8579/* confdefs.h. */
8580_ACEOF
8581cat confdefs.h >>conftest.$ac_ext
8582cat >>conftest.$ac_ext <<_ACEOF
8583/* end confdefs.h. */
8584#include <$ac_header>
8585_ACEOF
8586if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8588 ac_status=$?
8589 grep -v '^ *+' conftest.er1 >conftest.err
8590 rm -f conftest.er1
8591 cat conftest.err >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } >/dev/null; then
8594 if test -s conftest.err; then
8595 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 8596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
8597 else
8598 ac_cpp_err=
8599 fi
8600else
8601 ac_cpp_err=yes
8602fi
8603if test -z "$ac_cpp_err"; then
8604 ac_header_preproc=yes
8605else
8606 echo "$as_me: failed program was:" >&5
8607sed 's/^/| /' conftest.$ac_ext >&5
8608
8609 ac_header_preproc=no
8610fi
8611rm -f conftest.err conftest.$ac_ext
8612echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8613echo "${ECHO_T}$ac_header_preproc" >&6
8614
8615# So? What about this header?
8a2fc586
AK
8616case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8617 yes:no: )
ad6254c5
AK
8618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8619echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
8620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8621echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8622 ac_header_preproc=yes
ad6254c5 8623 ;;
8a2fc586 8624 no:yes:* )
ad6254c5
AK
8625 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8626echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
8627 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8628echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8629 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8630echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8631 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8632echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
8633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8634echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
8635 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8636echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
8637 (
8638 cat <<\_ASBOX
8a2fc586
AK
8639## ------------------------------------------ ##
8640## Report this to the AC_PACKAGE_NAME lists. ##
8641## ------------------------------------------ ##
ad6254c5
AK
8642_ASBOX
8643 ) |
8644 sed "s/^/$as_me: WARNING: /" >&2
8645 ;;
8646esac
8647echo "$as_me:$LINENO: checking for $ac_header" >&5
8648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8649if eval "test \"\${$as_ac_Header+set}\" = set"; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
8651else
8a2fc586 8652 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
8653fi
8654echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8655echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8656
8657fi
8658if test `eval echo '${'$as_ac_Header'}'` = yes; then
8659 cat >>confdefs.h <<_ACEOF
8660#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8661_ACEOF
72b2cb61
AK
8662
8663cat >>confdefs.h <<\_ACEOF
8664#define HAVE_GETOPTLONG 1
8665_ACEOF
8666
ad6254c5
AK
8667fi
8668
8669done
8670
8671
8672################################################################################
8673if test x$READLINE = xyes; then
8674
8675echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
8676echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
8677if test "${ac_cv_lib_readline_readline+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8679else
8680 ac_check_lib_save_LIBS=$LIBS
8681LIBS="-lreadline $LIBS"
8682cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8683/* confdefs.h. */
8684_ACEOF
8685cat confdefs.h >>conftest.$ac_ext
8686cat >>conftest.$ac_ext <<_ACEOF
8687/* end confdefs.h. */
8688
8689/* Override any gcc2 internal prototype to avoid an error. */
8690#ifdef __cplusplus
8691extern "C"
8692#endif
8693/* We use char because int might match the return type of a gcc2
8694 builtin and then its argument prototype would still apply. */
8695char readline ();
8696int
8697main ()
8698{
8699readline ();
8700 ;
8701 return 0;
8702}
8703_ACEOF
8704rm -f conftest.$ac_objext conftest$ac_exeext
8705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 8706 (eval $ac_link) 2>conftest.er1
ad6254c5 8707 ac_status=$?
8a2fc586
AK
8708 grep -v '^ *+' conftest.er1 >conftest.err
8709 rm -f conftest.er1
8710 cat conftest.err >&5
ad6254c5
AK
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); } &&
8a2fc586
AK
8713 { ac_try='test -z "$ac_c_werror_flag"
8714 || test ! -s conftest.err'
8715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716 (eval $ac_try) 2>&5
8717 ac_status=$?
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); }; } &&
8720 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722 (eval $ac_try) 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; }; then
8726 ac_cv_lib_readline_readline=yes
8727else
8728 echo "$as_me: failed program was:" >&5
8729sed 's/^/| /' conftest.$ac_ext >&5
8730
8731ac_cv_lib_readline_readline=no
8732fi
8a2fc586
AK
8733rm -f conftest.err conftest.$ac_objext \
8734 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8735LIBS=$ac_check_lib_save_LIBS
8736fi
8737echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
8738echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
8739if test $ac_cv_lib_readline_readline = yes; then
8740 cat >>confdefs.h <<_ACEOF
8741#define HAVE_LIBREADLINE 1
8742_ACEOF
8743
8744 LIBS="-lreadline $LIBS"
8745
8746else
8747 { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
8748--enable-readline option (which is enabled by default). Either disable readline
8749support with --disable-readline or download and install readline from:
8750 ftp.gnu.org/gnu/readline
8751Note: if you are using precompiled packages you will also need the development
8752package as well (which may be called readline-devel or something similar).
8753" >&5
8754echo "$as_me: error: GNU Readline could not be found which is required for the
8755--enable-readline option (which is enabled by default). Either disable readline
8756support with --disable-readline or download and install readline from:
8757 ftp.gnu.org/gnu/readline
8758Note: if you are using precompiled packages you will also need the development
8759package as well (which may be called readline-devel or something similar).
8760" >&2;}
8761 { (exit 1); exit 1; }; }
8762
8763fi
8764
8765 echo "$as_me:$LINENO: checking for rl_completion_matches" >&5
8766echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6
8767if test "${ac_cv_func_rl_completion_matches+set}" = set; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8769else
8770 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8771/* confdefs.h. */
8772_ACEOF
8773cat confdefs.h >>conftest.$ac_ext
8774cat >>conftest.$ac_ext <<_ACEOF
8775/* end confdefs.h. */
8a2fc586
AK
8776/* Define rl_completion_matches to an innocuous variant, in case <limits.h> declares rl_completion_matches.
8777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8778#define rl_completion_matches innocuous_rl_completion_matches
8779
ad6254c5
AK
8780/* System header to define __stub macros and hopefully few prototypes,
8781 which can conflict with char rl_completion_matches (); below.
8782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8783 <limits.h> exists even on freestanding compilers. */
8a2fc586 8784
ad6254c5
AK
8785#ifdef __STDC__
8786# include <limits.h>
8787#else
8788# include <assert.h>
8789#endif
8a2fc586
AK
8790
8791#undef rl_completion_matches
8792
ad6254c5
AK
8793/* Override any gcc2 internal prototype to avoid an error. */
8794#ifdef __cplusplus
8795extern "C"
8796{
8797#endif
8798/* We use char because int might match the return type of a gcc2
8799 builtin and then its argument prototype would still apply. */
8800char rl_completion_matches ();
8801/* The GNU C library defines this for functions which it implements
8802 to always fail with ENOSYS. Some functions are actually named
8803 something starting with __ and the normal name is an alias. */
8804#if defined (__stub_rl_completion_matches) || defined (__stub___rl_completion_matches)
8805choke me
8806#else
8807char (*f) () = rl_completion_matches;
8808#endif
8809#ifdef __cplusplus
8810}
8811#endif
8812
8813int
8814main ()
8815{
8816return f != rl_completion_matches;
8817 ;
8818 return 0;
8819}
8820_ACEOF
8821rm -f conftest.$ac_objext conftest$ac_exeext
8822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 8823 (eval $ac_link) 2>conftest.er1
ad6254c5 8824 ac_status=$?
8a2fc586
AK
8825 grep -v '^ *+' conftest.er1 >conftest.err
8826 rm -f conftest.er1
8827 cat conftest.err >&5
ad6254c5
AK
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } &&
8a2fc586
AK
8830 { ac_try='test -z "$ac_c_werror_flag"
8831 || test ! -s conftest.err'
8832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833 (eval $ac_try) 2>&5
8834 ac_status=$?
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; } &&
8837 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839 (eval $ac_try) 2>&5
8840 ac_status=$?
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }; }; then
8843 ac_cv_func_rl_completion_matches=yes
8844else
8845 echo "$as_me: failed program was:" >&5
8846sed 's/^/| /' conftest.$ac_ext >&5
8847
8848ac_cv_func_rl_completion_matches=no
8849fi
8a2fc586
AK
8850rm -f conftest.err conftest.$ac_objext \
8851 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8852fi
8853echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5
8854echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6
8855if test $ac_cv_func_rl_completion_matches = yes; then
ad6254c5 8856
72b2cb61
AK
8857cat >>confdefs.h <<\_ACEOF
8858#define HAVE_RL_COMPLETION_MATCHES 1
8859_ACEOF
8860
8861fi
ad6254c5
AK
8862
8863fi
8864
8865################################################################################
8866echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
8867echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6
8868# Check whether --enable-nls or --disable-nls was given.
8869if test "${enable_nls+set}" = set; then
8870 enableval="$enable_nls"
8871 INTL=$enableval
8872else
8873 INTL=no
8874fi;
8875echo "$as_me:$LINENO: result: $INTL" >&5
8876echo "${ECHO_T}$INTL" >&6
8877
8878if test x$INTL = xyes; then
8879 INTL_PACKAGE="lvm2"
8880 # Extract the first word of "msgfmt", so it can be a program name with args.
8881set dummy msgfmt; ac_word=$2
8882echo "$as_me:$LINENO: checking for $ac_word" >&5
8883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8884if test "${ac_cv_path_MSGFMT+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8886else
8887 case $MSGFMT in
8888 [\\/]* | ?:[\\/]*)
8889 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8890 ;;
8891 *)
8892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8893for as_dir in $PATH
8894do
8895 IFS=$as_save_IFS
8896 test -z "$as_dir" && as_dir=.
8897 for ac_exec_ext in '' $ac_executable_extensions; do
8898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8899 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
8900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8901 break 2
8902 fi
8903done
8904done
8905
8906 ;;
8907esac
8908fi
8909MSGFMT=$ac_cv_path_MSGFMT
8910
8911if test -n "$MSGFMT"; then
8912 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8913echo "${ECHO_T}$MSGFMT" >&6
8914else
8915 echo "$as_me:$LINENO: result: no" >&5
8916echo "${ECHO_T}no" >&6
8917fi
8918
8919 if [ "x$MSGFMT" == x ];
8920 then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
8921 " >&5
8922echo "$as_me: error: msgfmt not found in path $PATH
8923 " >&2;}
8924 { (exit 1); exit 1; }; }
8925 fi;
8926
8927
8928# Check whether --with-localedir or --without-localedir was given.
8929if test "${with_localedir+set}" = set; then
8930 withval="$with_localedir"
8931 LOCALEDIR="$withval"
8932else
8933 LOCALEDIR='${prefix}/share/locale'
8934fi;
8935fi
8936
8937################################################################################
8938
8939# Check whether --with-confdir or --without-confdir was given.
8940if test "${with_confdir+set}" = set; then
8941 withval="$with_confdir"
8942 CONFDIR="$withval"
8943else
8944 CONFDIR='/etc'
8945fi;
8946
8947
8948# Check whether --with-staticdir or --without-staticdir was given.
8949if test "${with_staticdir+set}" = set; then
8950 withval="$with_staticdir"
8951 STATICDIR="$withval"
8952else
8953 STATICDIR='${exec_prefix}/sbin'
8954fi;
8955
33f732c5
AK
8956
8957# Check whether --with-dmdir or --without-dmdir was given.
8958if test "${with_dmdir+set}" = set; then
8959 withval="$with_dmdir"
d1158c75 8960 DMDIR="$withval" CPPFLAGS="$CPPFLAGS -I$DMDIR/include"
33f732c5
AK
8961else
8962 DMDIR=
8963fi;
8964
ad6254c5
AK
8965################################################################################
8966if test x$READLINE = xyes; then
8967
8968
8969for ac_header in readline/readline.h readline/history.h
8970do
8971as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8972if eval "test \"\${$as_ac_Header+set}\" = set"; then
8973 echo "$as_me:$LINENO: checking for $ac_header" >&5
8974echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8975if eval "test \"\${$as_ac_Header+set}\" = set"; then
8976 echo $ECHO_N "(cached) $ECHO_C" >&6
8977fi
8978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8979echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8980else
8981 # Is the header compilable?
8982echo "$as_me:$LINENO: checking $ac_header usability" >&5
8983echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8984cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8985/* confdefs.h. */
8986_ACEOF
8987cat confdefs.h >>conftest.$ac_ext
8988cat >>conftest.$ac_ext <<_ACEOF
8989/* end confdefs.h. */
8990$ac_includes_default
8991#include <$ac_header>
8992_ACEOF
8993rm -f conftest.$ac_objext
8994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 8995 (eval $ac_compile) 2>conftest.er1
ad6254c5 8996 ac_status=$?
8a2fc586
AK
8997 grep -v '^ *+' conftest.er1 >conftest.err
8998 rm -f conftest.er1
8999 cat conftest.err >&5
ad6254c5
AK
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } &&
8a2fc586
AK
9002 { ac_try='test -z "$ac_c_werror_flag"
9003 || test ! -s conftest.err'
9004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005 (eval $ac_try) 2>&5
9006 ac_status=$?
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; } &&
9009 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 (eval $ac_try) 2>&5
9012 ac_status=$?
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }; }; then
9015 ac_header_compiler=yes
9016else
9017 echo "$as_me: failed program was:" >&5
9018sed 's/^/| /' conftest.$ac_ext >&5
9019
9020ac_header_compiler=no
9021fi
8a2fc586 9022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9023echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9024echo "${ECHO_T}$ac_header_compiler" >&6
9025
9026# Is the header present?
9027echo "$as_me:$LINENO: checking $ac_header presence" >&5
9028echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9029cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9030/* confdefs.h. */
9031_ACEOF
9032cat confdefs.h >>conftest.$ac_ext
9033cat >>conftest.$ac_ext <<_ACEOF
9034/* end confdefs.h. */
9035#include <$ac_header>
9036_ACEOF
9037if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9039 ac_status=$?
9040 grep -v '^ *+' conftest.er1 >conftest.err
9041 rm -f conftest.er1
9042 cat conftest.err >&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } >/dev/null; then
9045 if test -s conftest.err; then
9046 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 9047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
9048 else
9049 ac_cpp_err=
9050 fi
9051else
9052 ac_cpp_err=yes
9053fi
9054if test -z "$ac_cpp_err"; then
9055 ac_header_preproc=yes
9056else
9057 echo "$as_me: failed program was:" >&5
9058sed 's/^/| /' conftest.$ac_ext >&5
9059
9060 ac_header_preproc=no
9061fi
9062rm -f conftest.err conftest.$ac_ext
9063echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9064echo "${ECHO_T}$ac_header_preproc" >&6
9065
9066# So? What about this header?
8a2fc586
AK
9067case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9068 yes:no: )
ad6254c5
AK
9069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9070echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
9071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9072echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9073 ac_header_preproc=yes
ad6254c5 9074 ;;
8a2fc586 9075 no:yes:* )
ad6254c5
AK
9076 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9077echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
9078 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9079echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9080 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9081echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9082 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9083echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
9084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9085echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
9086 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9087echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
9088 (
9089 cat <<\_ASBOX
8a2fc586
AK
9090## ------------------------------------------ ##
9091## Report this to the AC_PACKAGE_NAME lists. ##
9092## ------------------------------------------ ##
ad6254c5
AK
9093_ASBOX
9094 ) |
9095 sed "s/^/$as_me: WARNING: /" >&2
9096 ;;
9097esac
9098echo "$as_me:$LINENO: checking for $ac_header" >&5
9099echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9100if eval "test \"\${$as_ac_Header+set}\" = set"; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
9102else
8a2fc586 9103 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
9104fi
9105echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9106echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9107
9108fi
9109if test `eval echo '${'$as_ac_Header'}'` = yes; then
9110 cat >>confdefs.h <<_ACEOF
9111#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9112_ACEOF
9113
9114else
9115 { { echo "$as_me:$LINENO: error: bailing out" >&5
9116echo "$as_me: error: bailing out" >&2;}
9117 { (exit 1); exit 1; }; }
9118fi
9119
9120done
9121
9122fi
9123
5c7fc7c4 9124if test x$CLVMD != xnone; then
ad6254c5
AK
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135for 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
9136do
9137as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9138if eval "test \"\${$as_ac_Header+set}\" = set"; then
9139 echo "$as_me:$LINENO: checking for $ac_header" >&5
9140echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9141if eval "test \"\${$as_ac_Header+set}\" = set"; then
9142 echo $ECHO_N "(cached) $ECHO_C" >&6
9143fi
9144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9145echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9146else
9147 # Is the header compilable?
9148echo "$as_me:$LINENO: checking $ac_header usability" >&5
9149echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9150cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9151/* confdefs.h. */
9152_ACEOF
9153cat confdefs.h >>conftest.$ac_ext
9154cat >>conftest.$ac_ext <<_ACEOF
9155/* end confdefs.h. */
9156$ac_includes_default
9157#include <$ac_header>
9158_ACEOF
9159rm -f conftest.$ac_objext
9160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 9161 (eval $ac_compile) 2>conftest.er1
ad6254c5 9162 ac_status=$?
8a2fc586
AK
9163 grep -v '^ *+' conftest.er1 >conftest.err
9164 rm -f conftest.er1
9165 cat conftest.err >&5
ad6254c5
AK
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); } &&
8a2fc586
AK
9168 { ac_try='test -z "$ac_c_werror_flag"
9169 || test ! -s conftest.err'
9170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171 (eval $ac_try) 2>&5
9172 ac_status=$?
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); }; } &&
9175 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9177 (eval $ac_try) 2>&5
9178 ac_status=$?
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); }; }; then
9181 ac_header_compiler=yes
9182else
9183 echo "$as_me: failed program was:" >&5
9184sed 's/^/| /' conftest.$ac_ext >&5
9185
9186ac_header_compiler=no
9187fi
8a2fc586 9188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9189echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9190echo "${ECHO_T}$ac_header_compiler" >&6
9191
9192# Is the header present?
9193echo "$as_me:$LINENO: checking $ac_header presence" >&5
9194echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9195cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9196/* confdefs.h. */
9197_ACEOF
9198cat confdefs.h >>conftest.$ac_ext
9199cat >>conftest.$ac_ext <<_ACEOF
9200/* end confdefs.h. */
9201#include <$ac_header>
9202_ACEOF
9203if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9205 ac_status=$?
9206 grep -v '^ *+' conftest.er1 >conftest.err
9207 rm -f conftest.er1
9208 cat conftest.err >&5
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); } >/dev/null; then
9211 if test -s conftest.err; then
9212 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 9213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
9214 else
9215 ac_cpp_err=
9216 fi
9217else
9218 ac_cpp_err=yes
9219fi
9220if test -z "$ac_cpp_err"; then
9221 ac_header_preproc=yes
9222else
9223 echo "$as_me: failed program was:" >&5
9224sed 's/^/| /' conftest.$ac_ext >&5
9225
9226 ac_header_preproc=no
9227fi
9228rm -f conftest.err conftest.$ac_ext
9229echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9230echo "${ECHO_T}$ac_header_preproc" >&6
9231
9232# So? What about this header?
8a2fc586
AK
9233case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9234 yes:no: )
ad6254c5
AK
9235 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9236echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
9237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9238echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9239 ac_header_preproc=yes
ad6254c5 9240 ;;
8a2fc586 9241 no:yes:* )
ad6254c5
AK
9242 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9243echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
9244 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9245echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9246 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9247echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9248 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9249echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
9250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9251echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
9252 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9253echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
9254 (
9255 cat <<\_ASBOX
8a2fc586
AK
9256## ------------------------------------------ ##
9257## Report this to the AC_PACKAGE_NAME lists. ##
9258## ------------------------------------------ ##
ad6254c5
AK
9259_ASBOX
9260 ) |
9261 sed "s/^/$as_me: WARNING: /" >&2
9262 ;;
9263esac
9264echo "$as_me:$LINENO: checking for $ac_header" >&5
9265echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9266if eval "test \"\${$as_ac_Header+set}\" = set"; then
9267 echo $ECHO_N "(cached) $ECHO_C" >&6
9268else
8a2fc586 9269 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
9270fi
9271echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9272echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9273
9274fi
9275if test `eval echo '${'$as_ac_Header'}'` = yes; then
9276 cat >>confdefs.h <<_ACEOF
9277#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9278_ACEOF
9279
9280else
9281 { { echo "$as_me:$LINENO: error: bailing out" >&5
9282echo "$as_me: error: bailing out" >&2;}
9283 { (exit 1); exit 1; }; }
795ca3e5
AK
9284fi
9285
ad6254c5
AK
9286done
9287
9288
795ca3e5 9289
8106cdd5 9290
ad6254c5
AK
9291
9292
9293for ac_func in dup2 getmntent memmove select socket
9294do
9295as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9296echo "$as_me:$LINENO: checking for $ac_func" >&5
9297echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9298if eval "test \"\${$as_ac_var+set}\" = set"; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 9300else
ad6254c5 9301 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9302/* confdefs.h. */
9303_ACEOF
9304cat confdefs.h >>conftest.$ac_ext
9305cat >>conftest.$ac_ext <<_ACEOF
9306/* end confdefs.h. */
8a2fc586
AK
9307/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9309#define $ac_func innocuous_$ac_func
9310
795ca3e5 9311/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
9312 which can conflict with char $ac_func (); below.
9313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9314 <limits.h> exists even on freestanding compilers. */
8a2fc586 9315
ad6254c5
AK
9316#ifdef __STDC__
9317# include <limits.h>
9318#else
9319# include <assert.h>
9320#endif
8a2fc586
AK
9321
9322#undef $ac_func
9323
795ca3e5 9324/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
9325#ifdef __cplusplus
9326extern "C"
9327{
9328#endif
795ca3e5 9329/* We use char because int might match the return type of a gcc2
ad6254c5
AK
9330 builtin and then its argument prototype would still apply. */
9331char $ac_func ();
795ca3e5
AK
9332/* The GNU C library defines this for functions which it implements
9333 to always fail with ENOSYS. Some functions are actually named
9334 something starting with __ and the normal name is an alias. */
ad6254c5 9335#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
795ca3e5
AK
9336choke me
9337#else
ad6254c5
AK
9338char (*f) () = $ac_func;
9339#endif
9340#ifdef __cplusplus
9341}
795ca3e5
AK
9342#endif
9343
ad6254c5
AK
9344int
9345main ()
9346{
9347return f != $ac_func;
9348 ;
9349 return 0;
9350}
9351_ACEOF
9352rm -f conftest.$ac_objext conftest$ac_exeext
9353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 9354 (eval $ac_link) 2>conftest.er1
ad6254c5 9355 ac_status=$?
8a2fc586
AK
9356 grep -v '^ *+' conftest.er1 >conftest.err
9357 rm -f conftest.er1
9358 cat conftest.err >&5
ad6254c5
AK
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } &&
8a2fc586
AK
9361 { ac_try='test -z "$ac_c_werror_flag"
9362 || test ! -s conftest.err'
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); }; } &&
9368 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9370 (eval $ac_try) 2>&5
9371 ac_status=$?
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); }; }; then
9374 eval "$as_ac_var=yes"
795ca3e5 9375else
ad6254c5
AK
9376 echo "$as_me: failed program was:" >&5
9377sed 's/^/| /' conftest.$ac_ext >&5
9378
9379eval "$as_ac_var=no"
80992638 9380fi
8a2fc586
AK
9381rm -f conftest.err conftest.$ac_objext \
9382 conftest$ac_exeext conftest.$ac_ext
795ca3e5 9383fi
ad6254c5
AK
9384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9385echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9386if test `eval echo '${'$as_ac_var'}'` = yes; then
9387 cat >>confdefs.h <<_ACEOF
9388#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9389_ACEOF
80992638
AK
9390
9391else
ad6254c5
AK
9392 { { echo "$as_me:$LINENO: error: bailing out" >&5
9393echo "$as_me: error: bailing out" >&2;}
9394 { (exit 1); exit 1; }; }
8106cdd5 9395fi
ad6254c5 9396done
795ca3e5 9397
ad6254c5
AK
9398 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
9399echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
9400echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
9401if test "${ac_cv_lib_sun_getmntent+set}" = set; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 9403else
ad6254c5
AK
9404 ac_check_lib_save_LIBS=$LIBS
9405LIBS="-lsun $LIBS"
9406cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9407/* confdefs.h. */
9408_ACEOF
9409cat confdefs.h >>conftest.$ac_ext
9410cat >>conftest.$ac_ext <<_ACEOF
9411/* end confdefs.h. */
9412
795ca3e5 9413/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
9414#ifdef __cplusplus
9415extern "C"
9416#endif
795ca3e5 9417/* We use char because int might match the return type of a gcc2
ad6254c5
AK
9418 builtin and then its argument prototype would still apply. */
9419char getmntent ();
9420int
9421main ()
9422{
9423getmntent ();
9424 ;
9425 return 0;
9426}
9427_ACEOF
9428rm -f conftest.$ac_objext conftest$ac_exeext
9429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 9430 (eval $ac_link) 2>conftest.er1
ad6254c5 9431 ac_status=$?
8a2fc586
AK
9432 grep -v '^ *+' conftest.er1 >conftest.err
9433 rm -f conftest.er1
9434 cat conftest.err >&5
ad6254c5
AK
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } &&
8a2fc586
AK
9437 { ac_try='test -z "$ac_c_werror_flag"
9438 || test ! -s conftest.err'
9439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440 (eval $ac_try) 2>&5
9441 ac_status=$?
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); }; } &&
9444 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446 (eval $ac_try) 2>&5
9447 ac_status=$?
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); }; }; then
9450 ac_cv_lib_sun_getmntent=yes
9451else
9452 echo "$as_me: failed program was:" >&5
9453sed 's/^/| /' conftest.$ac_ext >&5
80992638 9454
ad6254c5
AK
9455ac_cv_lib_sun_getmntent=no
9456fi
8a2fc586
AK
9457rm -f conftest.err conftest.$ac_objext \
9458 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9459LIBS=$ac_check_lib_save_LIBS
9460fi
9461echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
9462echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
9463if test $ac_cv_lib_sun_getmntent = yes; then
9464 LIBS="-lsun $LIBS"
9465else
9466 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
9467echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
9468if test "${ac_cv_lib_seq_getmntent+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9470else
9471 ac_check_lib_save_LIBS=$LIBS
9472LIBS="-lseq $LIBS"
9473cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9474/* confdefs.h. */
9475_ACEOF
9476cat confdefs.h >>conftest.$ac_ext
9477cat >>conftest.$ac_ext <<_ACEOF
9478/* end confdefs.h. */
80992638 9479
ad6254c5
AK
9480/* Override any gcc2 internal prototype to avoid an error. */
9481#ifdef __cplusplus
9482extern "C"
795ca3e5 9483#endif
ad6254c5
AK
9484/* We use char because int might match the return type of a gcc2
9485 builtin and then its argument prototype would still apply. */
9486char getmntent ();
9487int
9488main ()
9489{
9490getmntent ();
9491 ;
9492 return 0;
9493}
9494_ACEOF
9495rm -f conftest.$ac_objext conftest$ac_exeext
9496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 9497 (eval $ac_link) 2>conftest.er1
ad6254c5 9498 ac_status=$?
8a2fc586
AK
9499 grep -v '^ *+' conftest.er1 >conftest.err
9500 rm -f conftest.er1
9501 cat conftest.err >&5
ad6254c5
AK
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } &&
8a2fc586
AK
9504 { ac_try='test -z "$ac_c_werror_flag"
9505 || test ! -s conftest.err'
9506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507 (eval $ac_try) 2>&5
9508 ac_status=$?
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; } &&
9511 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513 (eval $ac_try) 2>&5
9514 ac_status=$?
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; }; then
9517 ac_cv_lib_seq_getmntent=yes
795ca3e5 9518else
ad6254c5
AK
9519 echo "$as_me: failed program was:" >&5
9520sed 's/^/| /' conftest.$ac_ext >&5
9521
9522ac_cv_lib_seq_getmntent=no
795ca3e5 9523fi
8a2fc586
AK
9524rm -f conftest.err conftest.$ac_objext \
9525 conftest$ac_exeext conftest.$ac_ext
ad6254c5 9526LIBS=$ac_check_lib_save_LIBS
795ca3e5 9527fi
ad6254c5
AK
9528echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
9529echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
9530if test $ac_cv_lib_seq_getmntent = yes; then
9531 LIBS="-lseq $LIBS"
9532else
9533 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
9534echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
9535if test "${ac_cv_lib_gen_getmntent+set}" = set; then
9536 echo $ECHO_N "(cached) $ECHO_C" >&6
9537else
9538 ac_check_lib_save_LIBS=$LIBS
9539LIBS="-lgen $LIBS"
9540cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9541/* confdefs.h. */
9542_ACEOF
9543cat confdefs.h >>conftest.$ac_ext
9544cat >>conftest.$ac_ext <<_ACEOF
9545/* end confdefs.h. */
795ca3e5 9546
ad6254c5
AK
9547/* Override any gcc2 internal prototype to avoid an error. */
9548#ifdef __cplusplus
9549extern "C"
9550#endif
9551/* We use char because int might match the return type of a gcc2
9552 builtin and then its argument prototype would still apply. */
9553char getmntent ();
9554int
9555main ()
9556{
9557getmntent ();
9558 ;
9559 return 0;
9560}
9561_ACEOF
9562rm -f conftest.$ac_objext conftest$ac_exeext
9563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 9564 (eval $ac_link) 2>conftest.er1
ad6254c5 9565 ac_status=$?
8a2fc586
AK
9566 grep -v '^ *+' conftest.er1 >conftest.err
9567 rm -f conftest.er1
9568 cat conftest.err >&5
ad6254c5
AK
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } &&
8a2fc586
AK
9571 { ac_try='test -z "$ac_c_werror_flag"
9572 || test ! -s conftest.err'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 (eval $ac_try) 2>&5
9575 ac_status=$?
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; } &&
9578 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580 (eval $ac_try) 2>&5
9581 ac_status=$?
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; }; then
9584 ac_cv_lib_gen_getmntent=yes
80992638 9585else
ad6254c5
AK
9586 echo "$as_me: failed program was:" >&5
9587sed 's/^/| /' conftest.$ac_ext >&5
9588
9589ac_cv_lib_gen_getmntent=no
9590fi
8a2fc586
AK
9591rm -f conftest.err conftest.$ac_objext \
9592 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9593LIBS=$ac_check_lib_save_LIBS
9594fi
9595echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
9596echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
9597if test $ac_cv_lib_gen_getmntent = yes; then
9598 LIBS="-lgen $LIBS"
795ca3e5
AK
9599fi
9600
9601fi
9602
ad6254c5
AK
9603fi
9604
9605
9606for ac_func in getmntent
795ca3e5 9607do
ad6254c5
AK
9608as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9609echo "$as_me:$LINENO: checking for $ac_func" >&5
9610echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9611if eval "test \"\${$as_ac_var+set}\" = set"; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6
9613else
9614 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9615/* confdefs.h. */
9616_ACEOF
9617cat confdefs.h >>conftest.$ac_ext
9618cat >>conftest.$ac_ext <<_ACEOF
9619/* end confdefs.h. */
8a2fc586
AK
9620/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9622#define $ac_func innocuous_$ac_func
9623
795ca3e5 9624/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
9625 which can conflict with char $ac_func (); below.
9626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9627 <limits.h> exists even on freestanding compilers. */
8a2fc586 9628
ad6254c5
AK
9629#ifdef __STDC__
9630# include <limits.h>
9631#else
9632# include <assert.h>
9633#endif
8a2fc586
AK
9634
9635#undef $ac_func
9636
795ca3e5 9637/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
9638#ifdef __cplusplus
9639extern "C"
9640{
9641#endif
795ca3e5 9642/* We use char because int might match the return type of a gcc2
ad6254c5
AK
9643 builtin and then its argument prototype would still apply. */
9644char $ac_func ();
795ca3e5
AK
9645/* The GNU C library defines this for functions which it implements
9646 to always fail with ENOSYS. Some functions are actually named
9647 something starting with __ and the normal name is an alias. */
9648#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9649choke me
9650#else
ad6254c5
AK
9651char (*f) () = $ac_func;
9652#endif
9653#ifdef __cplusplus
9654}
795ca3e5
AK
9655#endif
9656
ad6254c5
AK
9657int
9658main ()
9659{
9660return f != $ac_func;
9661 ;
9662 return 0;
9663}
9664_ACEOF
9665rm -f conftest.$ac_objext conftest$ac_exeext
9666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 9667 (eval $ac_link) 2>conftest.er1
ad6254c5 9668 ac_status=$?
8a2fc586
AK
9669 grep -v '^ *+' conftest.er1 >conftest.err
9670 rm -f conftest.er1
9671 cat conftest.err >&5
ad6254c5
AK
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } &&
8a2fc586
AK
9674 { ac_try='test -z "$ac_c_werror_flag"
9675 || test ! -s conftest.err'
9676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677 (eval $ac_try) 2>&5
9678 ac_status=$?
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; } &&
9681 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683 (eval $ac_try) 2>&5
9684 ac_status=$?
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; }; then
9687 eval "$as_ac_var=yes"
795ca3e5 9688else
ad6254c5
AK
9689 echo "$as_me: failed program was:" >&5
9690sed 's/^/| /' conftest.$ac_ext >&5
9691
9692eval "$as_ac_var=no"
795ca3e5 9693fi
8a2fc586
AK
9694rm -f conftest.err conftest.$ac_objext \
9695 conftest$ac_exeext conftest.$ac_ext
795ca3e5 9696fi
ad6254c5
AK
9697echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9698echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9699if test `eval echo '${'$as_ac_var'}'` = yes; then
9700 cat >>confdefs.h <<_ACEOF
9701#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9702_ACEOF
795ca3e5 9703
795ca3e5
AK
9704fi
9705done
9706
9707
ad6254c5
AK
9708# AC_FUNC_REALLOC
9709
9710
9711for ac_header in sys/select.h sys/socket.h
9712do
9713as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9714if eval "test \"\${$as_ac_Header+set}\" = set"; then
9715 echo "$as_me:$LINENO: checking for $ac_header" >&5
9716echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9717if eval "test \"\${$as_ac_Header+set}\" = set"; then
9718 echo $ECHO_N "(cached) $ECHO_C" >&6
9719fi
9720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9721echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
795ca3e5 9722else
ad6254c5
AK
9723 # Is the header compilable?
9724echo "$as_me:$LINENO: checking $ac_header usability" >&5
9725echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9726cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9727/* confdefs.h. */
9728_ACEOF
9729cat confdefs.h >>conftest.$ac_ext
9730cat >>conftest.$ac_ext <<_ACEOF
9731/* end confdefs.h. */
9732$ac_includes_default
9733#include <$ac_header>
9734_ACEOF
9735rm -f conftest.$ac_objext
9736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 9737 (eval $ac_compile) 2>conftest.er1
ad6254c5 9738 ac_status=$?
8a2fc586
AK
9739 grep -v '^ *+' conftest.er1 >conftest.err
9740 rm -f conftest.er1
9741 cat conftest.err >&5
ad6254c5
AK
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } &&
8a2fc586
AK
9744 { ac_try='test -z "$ac_c_werror_flag"
9745 || test ! -s conftest.err'
9746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 (eval $ac_try) 2>&5
9748 ac_status=$?
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; } &&
9751 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 (eval $ac_try) 2>&5
9754 ac_status=$?
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; }; then
9757 ac_header_compiler=yes
80992638 9758else
ad6254c5
AK
9759 echo "$as_me: failed program was:" >&5
9760sed 's/^/| /' conftest.$ac_ext >&5
9761
9762ac_header_compiler=no
9763fi
8a2fc586 9764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9765echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9766echo "${ECHO_T}$ac_header_compiler" >&6
9767
9768# Is the header present?
9769echo "$as_me:$LINENO: checking $ac_header presence" >&5
9770echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9771cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9772/* confdefs.h. */
9773_ACEOF
9774cat confdefs.h >>conftest.$ac_ext
9775cat >>conftest.$ac_ext <<_ACEOF
9776/* end confdefs.h. */
9777#include <$ac_header>
9778_ACEOF
9779if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9780 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9781 ac_status=$?
9782 grep -v '^ *+' conftest.er1 >conftest.err
9783 rm -f conftest.er1
9784 cat conftest.err >&5
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); } >/dev/null; then
9787 if test -s conftest.err; then
9788 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 9789 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
9790 else
9791 ac_cpp_err=
9792 fi
9793else
9794 ac_cpp_err=yes
795ca3e5 9795fi
ad6254c5
AK
9796if test -z "$ac_cpp_err"; then
9797 ac_header_preproc=yes
9798else
9799 echo "$as_me: failed program was:" >&5
9800sed 's/^/| /' conftest.$ac_ext >&5
9801
9802 ac_header_preproc=no
9803fi
9804rm -f conftest.err conftest.$ac_ext
9805echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9806echo "${ECHO_T}$ac_header_preproc" >&6
9807
9808# So? What about this header?
8a2fc586
AK
9809case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9810 yes:no: )
ad6254c5
AK
9811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9812echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
9813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9814echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9815 ac_header_preproc=yes
ad6254c5 9816 ;;
8a2fc586 9817 no:yes:* )
ad6254c5
AK
9818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9819echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
9820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9821echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9822 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9823echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9824 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9825echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
9826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9827echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
9828 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9829echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
9830 (
9831 cat <<\_ASBOX
8a2fc586
AK
9832## ------------------------------------------ ##
9833## Report this to the AC_PACKAGE_NAME lists. ##
9834## ------------------------------------------ ##
ad6254c5
AK
9835_ASBOX
9836 ) |
9837 sed "s/^/$as_me: WARNING: /" >&2
9838 ;;
9839esac
9840echo "$as_me:$LINENO: checking for $ac_header" >&5
9841echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9842if eval "test \"\${$as_ac_Header+set}\" = set"; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9844else
8a2fc586 9845 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 9846fi
ad6254c5
AK
9847echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9848echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8106cdd5 9849
795ca3e5 9850fi
ad6254c5
AK
9851if test `eval echo '${'$as_ac_Header'}'` = yes; then
9852 cat >>confdefs.h <<_ACEOF
9853#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9854_ACEOF
9855
795ca3e5
AK
9856fi
9857
ad6254c5
AK
9858done
9859
9860echo "$as_me:$LINENO: checking types of arguments for select" >&5
9861echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
9862if test "${ac_cv_func_select_args+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
26e7f2e0 9864else
ad6254c5
AK
9865 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9866 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9867 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9868 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9869/* confdefs.h. */
9870_ACEOF
9871cat confdefs.h >>conftest.$ac_ext
9872cat >>conftest.$ac_ext <<_ACEOF
9873/* end confdefs.h. */
9874$ac_includes_default
9875#if HAVE_SYS_SELECT_H
9876# include <sys/select.h>
9877#endif
9878#if HAVE_SYS_SOCKET_H
9879# include <sys/socket.h>
9880#endif
9881
9882int
9883main ()
9884{
9885extern int select ($ac_arg1,
8a2fc586
AK
9886 $ac_arg234, $ac_arg234, $ac_arg234,
9887 $ac_arg5);
ad6254c5
AK
9888 ;
9889 return 0;
9890}
9891_ACEOF
9892rm -f conftest.$ac_objext
9893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 9894 (eval $ac_compile) 2>conftest.er1
ad6254c5 9895 ac_status=$?
8a2fc586
AK
9896 grep -v '^ *+' conftest.er1 >conftest.err
9897 rm -f conftest.er1
9898 cat conftest.err >&5
ad6254c5
AK
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } &&
8a2fc586
AK
9901 { ac_try='test -z "$ac_c_werror_flag"
9902 || test ! -s conftest.err'
9903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904 (eval $ac_try) 2>&5
9905 ac_status=$?
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); }; } &&
9908 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910 (eval $ac_try) 2>&5
9911 ac_status=$?
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; }; then
9914 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9915else
9916 echo "$as_me: failed program was:" >&5
9917sed 's/^/| /' conftest.$ac_ext >&5
9918
9919fi
8a2fc586 9920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9921 done
9922 done
9923done
9924# Provide a safe default value.
9925: ${ac_cv_func_select_args='int,int *,struct timeval *'}
9926
26e7f2e0 9927fi
ad6254c5
AK
9928echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
9929echo "${ECHO_T}$ac_cv_func_select_args" >&6
9930ac_save_IFS=$IFS; IFS=','
9931set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9932IFS=$ac_save_IFS
9933shift
9934
9935cat >>confdefs.h <<_ACEOF
9936#define SELECT_TYPE_ARG1 $1
9937_ACEOF
9938
9939
9940cat >>confdefs.h <<_ACEOF
9941#define SELECT_TYPE_ARG234 ($2)
9942_ACEOF
9943
9944
9945cat >>confdefs.h <<_ACEOF
9946#define SELECT_TYPE_ARG5 ($3)
9947_ACEOF
9948
80992638 9949rm -f conftest*
80992638 9950
8106cdd5 9951fi
ad6254c5
AK
9952
9953if test x$FSADM = xyes; then
9954
9955
9956
9957for ac_header in fstab.h sys/mount.h sys/vfs.h
9958do
9959as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9960if eval "test \"\${$as_ac_Header+set}\" = set"; then
9961 echo "$as_me:$LINENO: checking for $ac_header" >&5
9962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9963if eval "test \"\${$as_ac_Header+set}\" = set"; then
9964 echo $ECHO_N "(cached) $ECHO_C" >&6
9965fi
9966echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9967echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9968else
9969 # Is the header compilable?
9970echo "$as_me:$LINENO: checking $ac_header usability" >&5
9971echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9972cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9973/* confdefs.h. */
9974_ACEOF
9975cat confdefs.h >>conftest.$ac_ext
9976cat >>conftest.$ac_ext <<_ACEOF
9977/* end confdefs.h. */
9978$ac_includes_default
9979#include <$ac_header>
9980_ACEOF
9981rm -f conftest.$ac_objext
9982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 9983 (eval $ac_compile) 2>conftest.er1
ad6254c5 9984 ac_status=$?
8a2fc586
AK
9985 grep -v '^ *+' conftest.er1 >conftest.err
9986 rm -f conftest.er1
9987 cat conftest.err >&5
ad6254c5
AK
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } &&
8a2fc586
AK
9990 { ac_try='test -z "$ac_c_werror_flag"
9991 || test ! -s conftest.err'
9992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993 (eval $ac_try) 2>&5
9994 ac_status=$?
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; } &&
9997 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 (eval $ac_try) 2>&5
10000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; }; then
10003 ac_header_compiler=yes
10004else
10005 echo "$as_me: failed program was:" >&5
10006sed 's/^/| /' conftest.$ac_ext >&5
10007
10008ac_header_compiler=no
10009fi
8a2fc586 10010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10011echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10012echo "${ECHO_T}$ac_header_compiler" >&6
10013
10014# Is the header present?
10015echo "$as_me:$LINENO: checking $ac_header presence" >&5
10016echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10017cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10018/* confdefs.h. */
10019_ACEOF
10020cat confdefs.h >>conftest.$ac_ext
10021cat >>conftest.$ac_ext <<_ACEOF
10022/* end confdefs.h. */
10023#include <$ac_header>
10024_ACEOF
10025if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10027 ac_status=$?
10028 grep -v '^ *+' conftest.er1 >conftest.err
10029 rm -f conftest.er1
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } >/dev/null; then
10033 if test -s conftest.err; then
10034 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 10035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
10036 else
10037 ac_cpp_err=
10038 fi
10039else
10040 ac_cpp_err=yes
10041fi
10042if test -z "$ac_cpp_err"; then
10043 ac_header_preproc=yes
10044else
10045 echo "$as_me: failed program was:" >&5
10046sed 's/^/| /' conftest.$ac_ext >&5
10047
10048 ac_header_preproc=no
10049fi
10050rm -f conftest.err conftest.$ac_ext
10051echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10052echo "${ECHO_T}$ac_header_preproc" >&6
10053
10054# So? What about this header?
8a2fc586
AK
10055case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10056 yes:no: )
ad6254c5
AK
10057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10058echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
10059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10060echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10061 ac_header_preproc=yes
ad6254c5 10062 ;;
8a2fc586 10063 no:yes:* )
ad6254c5
AK
10064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10065echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
10066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10067echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10068 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10069echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10070 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10071echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10073echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
10074 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10075echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10076 (
10077 cat <<\_ASBOX
8a2fc586
AK
10078## ------------------------------------------ ##
10079## Report this to the AC_PACKAGE_NAME lists. ##
10080## ------------------------------------------ ##
ad6254c5
AK
10081_ASBOX
10082 ) |
10083 sed "s/^/$as_me: WARNING: /" >&2
10084 ;;
10085esac
10086echo "$as_me:$LINENO: checking for $ac_header" >&5
10087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10088if eval "test \"\${$as_ac_Header+set}\" = set"; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
26e7f2e0 10090else
8a2fc586 10091 eval "$as_ac_Header=\$ac_header_preproc"
26e7f2e0 10092fi
ad6254c5
AK
10093echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10094echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26e7f2e0 10095
ad6254c5
AK
10096fi
10097if test `eval echo '${'$as_ac_Header'}'` = yes; then
10098 cat >>confdefs.h <<_ACEOF
10099#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10100_ACEOF
26e7f2e0 10101
d68a82ec 10102else
ad6254c5
AK
10103 { { echo "$as_me:$LINENO: error: bailing out" >&5
10104echo "$as_me: error: bailing out" >&2;}
10105 { (exit 1); exit 1; }; }
26e7f2e0
AK
10106fi
10107
ad6254c5 10108done
036f273a 10109
ad6254c5
AK
10110
10111for ac_func in memmove
10112do
10113as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10114echo "$as_me:$LINENO: checking for $ac_func" >&5
10115echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10116if eval "test \"\${$as_ac_var+set}\" = set"; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
036f273a 10118else
ad6254c5 10119 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10120/* confdefs.h. */
10121_ACEOF
10122cat confdefs.h >>conftest.$ac_ext
10123cat >>conftest.$ac_ext <<_ACEOF
10124/* end confdefs.h. */
8a2fc586
AK
10125/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10127#define $ac_func innocuous_$ac_func
10128
ad6254c5
AK
10129/* System header to define __stub macros and hopefully few prototypes,
10130 which can conflict with char $ac_func (); below.
10131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10132 <limits.h> exists even on freestanding compilers. */
8a2fc586 10133
ad6254c5
AK
10134#ifdef __STDC__
10135# include <limits.h>
10136#else
10137# include <assert.h>
10138#endif
8a2fc586
AK
10139
10140#undef $ac_func
10141
036f273a 10142/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
10143#ifdef __cplusplus
10144extern "C"
10145{
10146#endif
036f273a 10147/* We use char because int might match the return type of a gcc2
ad6254c5
AK
10148 builtin and then its argument prototype would still apply. */
10149char $ac_func ();
10150/* The GNU C library defines this for functions which it implements
10151 to always fail with ENOSYS. Some functions are actually named
10152 something starting with __ and the normal name is an alias. */
10153#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10154choke me
10155#else
10156char (*f) () = $ac_func;
10157#endif
10158#ifdef __cplusplus
10159}
10160#endif
80992638 10161
ad6254c5
AK
10162int
10163main ()
10164{
10165return f != $ac_func;
10166 ;
10167 return 0;
10168}
10169_ACEOF
10170rm -f conftest.$ac_objext conftest$ac_exeext
10171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 10172 (eval $ac_link) 2>conftest.er1
ad6254c5 10173 ac_status=$?
8a2fc586
AK
10174 grep -v '^ *+' conftest.er1 >conftest.err
10175 rm -f conftest.er1
10176 cat conftest.err >&5
ad6254c5
AK
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } &&
8a2fc586
AK
10179 { ac_try='test -z "$ac_c_werror_flag"
10180 || test ! -s conftest.err'
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10183 ac_status=$?
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; } &&
10186 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10189 ac_status=$?
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; }; then
10192 eval "$as_ac_var=yes"
036f273a 10193else
ad6254c5
AK
10194 echo "$as_me: failed program was:" >&5
10195sed 's/^/| /' conftest.$ac_ext >&5
10196
10197eval "$as_ac_var=no"
036f273a 10198fi
8a2fc586
AK
10199rm -f conftest.err conftest.$ac_objext \
10200 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10201fi
10202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10203echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10204if test `eval echo '${'$as_ac_var'}'` = yes; then
10205 cat >>confdefs.h <<_ACEOF
10206#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10207_ACEOF
036f273a 10208
ad6254c5
AK
10209else
10210 { { echo "$as_me:$LINENO: error: bailing out" >&5
10211echo "$as_me: error: bailing out" >&2;}
10212 { (exit 1); exit 1; }; }
10213fi
10214done
036f273a 10215
036f273a 10216fi
d68a82ec 10217
ad6254c5
AK
10218if test x$CLUSTER != xnone; then
10219
10220
10221for ac_header in sys/socket.h sys/un.h
b896caa1 10222do
ad6254c5
AK
10223as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10224if eval "test \"\${$as_ac_Header+set}\" = set"; then
10225 echo "$as_me:$LINENO: checking for $ac_header" >&5
10226echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10227if eval "test \"\${$as_ac_Header+set}\" = set"; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10229fi
10230echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10231echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10232else
10233 # Is the header compilable?
10234echo "$as_me:$LINENO: checking $ac_header usability" >&5
10235echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10236cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10237/* confdefs.h. */
10238_ACEOF
10239cat confdefs.h >>conftest.$ac_ext
10240cat >>conftest.$ac_ext <<_ACEOF
10241/* end confdefs.h. */
10242$ac_includes_default
10243#include <$ac_header>
10244_ACEOF
10245rm -f conftest.$ac_objext
10246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 10247 (eval $ac_compile) 2>conftest.er1
ad6254c5 10248 ac_status=$?
8a2fc586
AK
10249 grep -v '^ *+' conftest.er1 >conftest.err
10250 rm -f conftest.er1
10251 cat conftest.err >&5
ad6254c5
AK
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } &&
8a2fc586
AK
10254 { ac_try='test -z "$ac_c_werror_flag"
10255 || test ! -s conftest.err'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; } &&
10261 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10264 ac_status=$?
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; }; then
10267 ac_header_compiler=yes
10268else
10269 echo "$as_me: failed program was:" >&5
10270sed 's/^/| /' conftest.$ac_ext >&5
10271
10272ac_header_compiler=no
10273fi
8a2fc586 10274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10275echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10276echo "${ECHO_T}$ac_header_compiler" >&6
10277
10278# Is the header present?
10279echo "$as_me:$LINENO: checking $ac_header presence" >&5
10280echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10281cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10282/* confdefs.h. */
10283_ACEOF
10284cat confdefs.h >>conftest.$ac_ext
10285cat >>conftest.$ac_ext <<_ACEOF
10286/* end confdefs.h. */
10287#include <$ac_header>
10288_ACEOF
10289if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10291 ac_status=$?
10292 grep -v '^ *+' conftest.er1 >conftest.err
10293 rm -f conftest.er1
10294 cat conftest.err >&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } >/dev/null; then
10297 if test -s conftest.err; then
10298 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 10299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
10300 else
10301 ac_cpp_err=
10302 fi
10303else
10304 ac_cpp_err=yes
8106cdd5 10305fi
ad6254c5
AK
10306if test -z "$ac_cpp_err"; then
10307 ac_header_preproc=yes
10308else
10309 echo "$as_me: failed program was:" >&5
10310sed 's/^/| /' conftest.$ac_ext >&5
10311
10312 ac_header_preproc=no
10313fi
10314rm -f conftest.err conftest.$ac_ext
10315echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10316echo "${ECHO_T}$ac_header_preproc" >&6
10317
10318# So? What about this header?
8a2fc586
AK
10319case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10320 yes:no: )
ad6254c5
AK
10321 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10322echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
10323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10324echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10325 ac_header_preproc=yes
ad6254c5 10326 ;;
8a2fc586 10327 no:yes:* )
ad6254c5
AK
10328 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10329echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
10330 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10331echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10332 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10333echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10334 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10335echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10337echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
10338 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10339echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10340 (
10341 cat <<\_ASBOX
8a2fc586
AK
10342## ------------------------------------------ ##
10343## Report this to the AC_PACKAGE_NAME lists. ##
10344## ------------------------------------------ ##
ad6254c5
AK
10345_ASBOX
10346 ) |
10347 sed "s/^/$as_me: WARNING: /" >&2
10348 ;;
10349esac
10350echo "$as_me:$LINENO: checking for $ac_header" >&5
10351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10352if eval "test \"\${$as_ac_Header+set}\" = set"; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10354else
8a2fc586 10355 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 10356fi
ad6254c5
AK
10357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10358echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10359
10360fi
10361if test `eval echo '${'$as_ac_Header'}'` = yes; then
10362 cat >>confdefs.h <<_ACEOF
10363#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10364_ACEOF
10365
80992638 10366else
ad6254c5
AK
10367 { { echo "$as_me:$LINENO: error: bailing out" >&5
10368echo "$as_me: error: bailing out" >&2;}
10369 { (exit 1); exit 1; }; }
b896caa1 10370fi
ad6254c5 10371
b896caa1
AK
10372done
10373
10374
ad6254c5
AK
10375for ac_func in socket
10376do
10377as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10378echo "$as_me:$LINENO: checking for $ac_func" >&5
10379echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10380if eval "test \"\${$as_ac_var+set}\" = set"; then
10381 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 10382else
ad6254c5 10383 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10384/* confdefs.h. */
10385_ACEOF
10386cat confdefs.h >>conftest.$ac_ext
10387cat >>conftest.$ac_ext <<_ACEOF
10388/* end confdefs.h. */
8a2fc586
AK
10389/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10391#define $ac_func innocuous_$ac_func
10392
ad6254c5
AK
10393/* System header to define __stub macros and hopefully few prototypes,
10394 which can conflict with char $ac_func (); below.
10395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10396 <limits.h> exists even on freestanding compilers. */
8a2fc586 10397
ad6254c5
AK
10398#ifdef __STDC__
10399# include <limits.h>
10400#else
10401# include <assert.h>
10402#endif
8a2fc586
AK
10403
10404#undef $ac_func
10405
795ca3e5 10406/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
10407#ifdef __cplusplus
10408extern "C"
10409{
10410#endif
795ca3e5 10411/* We use char because int might match the return type of a gcc2
ad6254c5
AK
10412 builtin and then its argument prototype would still apply. */
10413char $ac_func ();
10414/* The GNU C library defines this for functions which it implements
10415 to always fail with ENOSYS. Some functions are actually named
10416 something starting with __ and the normal name is an alias. */
10417#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10418choke me
10419#else
10420char (*f) () = $ac_func;
10421#endif
10422#ifdef __cplusplus
10423}
10424#endif
10425
10426int
10427main ()
10428{
10429return f != $ac_func;
10430 ;
10431 return 0;
10432}
10433_ACEOF
10434rm -f conftest.$ac_objext conftest$ac_exeext
10435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 10436 (eval $ac_link) 2>conftest.er1
ad6254c5 10437 ac_status=$?
8a2fc586
AK
10438 grep -v '^ *+' conftest.er1 >conftest.err
10439 rm -f conftest.er1
10440 cat conftest.err >&5
ad6254c5
AK
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } &&
8a2fc586
AK
10443 { ac_try='test -z "$ac_c_werror_flag"
10444 || test ! -s conftest.err'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10447 ac_status=$?
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; } &&
10450 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
10451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452 (eval $ac_try) 2>&5
10453 ac_status=$?
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); }; }; then
10456 eval "$as_ac_var=yes"
10457else
10458 echo "$as_me: failed program was:" >&5
10459sed 's/^/| /' conftest.$ac_ext >&5
10460
10461eval "$as_ac_var=no"
10462fi
8a2fc586
AK
10463rm -f conftest.err conftest.$ac_objext \
10464 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10465fi
10466echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10467echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10468if test `eval echo '${'$as_ac_var'}'` = yes; then
10469 cat >>confdefs.h <<_ACEOF
10470#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10471_ACEOF
10472
10473else
10474 { { echo "$as_me:$LINENO: error: bailing out" >&5
10475echo "$as_me: error: bailing out" >&2;}
10476 { (exit 1); exit 1; }; }
10477fi
10478done
10479
10480fi
10481
10482if test x$HAVE_LIBDL = xyes; then
10483
10484for ac_header in dlfcn.h
10485do
10486as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10487if eval "test \"\${$as_ac_Header+set}\" = set"; then
10488 echo "$as_me:$LINENO: checking for $ac_header" >&5
10489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10490if eval "test \"\${$as_ac_Header+set}\" = set"; then
10491 echo $ECHO_N "(cached) $ECHO_C" >&6
10492fi
10493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10494echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10495else
10496 # Is the header compilable?
10497echo "$as_me:$LINENO: checking $ac_header usability" >&5
10498echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10499cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10500/* confdefs.h. */
10501_ACEOF
10502cat confdefs.h >>conftest.$ac_ext
10503cat >>conftest.$ac_ext <<_ACEOF
10504/* end confdefs.h. */
10505$ac_includes_default
10506#include <$ac_header>
10507_ACEOF
10508rm -f conftest.$ac_objext
10509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 10510 (eval $ac_compile) 2>conftest.er1
ad6254c5 10511 ac_status=$?
8a2fc586
AK
10512 grep -v '^ *+' conftest.er1 >conftest.err
10513 rm -f conftest.er1
10514 cat conftest.err >&5
ad6254c5
AK
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); } &&
8a2fc586
AK
10517 { ac_try='test -z "$ac_c_werror_flag"
10518 || test ! -s conftest.err'
10519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520 (eval $ac_try) 2>&5
10521 ac_status=$?
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); }; } &&
10524 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10526 (eval $ac_try) 2>&5
10527 ac_status=$?
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); }; }; then
10530 ac_header_compiler=yes
10531else
10532 echo "$as_me: failed program was:" >&5
10533sed 's/^/| /' conftest.$ac_ext >&5
10534
10535ac_header_compiler=no
10536fi
8a2fc586 10537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10538echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10539echo "${ECHO_T}$ac_header_compiler" >&6
10540
10541# Is the header present?
10542echo "$as_me:$LINENO: checking $ac_header presence" >&5
10543echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10544cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10545/* confdefs.h. */
10546_ACEOF
10547cat confdefs.h >>conftest.$ac_ext
10548cat >>conftest.$ac_ext <<_ACEOF
10549/* end confdefs.h. */
10550#include <$ac_header>
10551_ACEOF
10552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10554 ac_status=$?
10555 grep -v '^ *+' conftest.er1 >conftest.err
10556 rm -f conftest.er1
10557 cat conftest.err >&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); } >/dev/null; then
10560 if test -s conftest.err; then
10561 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 10562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
10563 else
10564 ac_cpp_err=
10565 fi
10566else
10567 ac_cpp_err=yes
10568fi
10569if test -z "$ac_cpp_err"; then
10570 ac_header_preproc=yes
10571else
10572 echo "$as_me: failed program was:" >&5
10573sed 's/^/| /' conftest.$ac_ext >&5
10574
10575 ac_header_preproc=no
10576fi
10577rm -f conftest.err conftest.$ac_ext
10578echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10579echo "${ECHO_T}$ac_header_preproc" >&6
10580
10581# So? What about this header?
8a2fc586
AK
10582case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10583 yes:no: )
ad6254c5
AK
10584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10585echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
10586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10587echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10588 ac_header_preproc=yes
ad6254c5 10589 ;;
8a2fc586 10590 no:yes:* )
ad6254c5
AK
10591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10592echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
10593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10594echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10596echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10598echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10600echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
10601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10602echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10603 (
10604 cat <<\_ASBOX
8a2fc586
AK
10605## ------------------------------------------ ##
10606## Report this to the AC_PACKAGE_NAME lists. ##
10607## ------------------------------------------ ##
ad6254c5
AK
10608_ASBOX
10609 ) |
10610 sed "s/^/$as_me: WARNING: /" >&2
10611 ;;
10612esac
10613echo "$as_me:$LINENO: checking for $ac_header" >&5
10614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10615if eval "test \"\${$as_ac_Header+set}\" = set"; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10617else
8a2fc586 10618 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 10619fi
ad6254c5
AK
10620echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10621echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
80992638 10622
8106cdd5 10623fi
ad6254c5
AK
10624if test `eval echo '${'$as_ac_Header'}'` = yes; then
10625 cat >>confdefs.h <<_ACEOF
10626#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10627_ACEOF
795ca3e5
AK
10628
10629else
ad6254c5
AK
10630 { { echo "$as_me:$LINENO: error: bailing out" >&5
10631echo "$as_me: error: bailing out" >&2;}
10632 { (exit 1); exit 1; }; }
795ca3e5
AK
10633fi
10634
ad6254c5 10635done
80992638 10636
ad6254c5 10637fi
80992638 10638
ad6254c5 10639if test x$INTL = xyes; then
83912faa 10640
ad6254c5
AK
10641for ac_header in libintl.h
10642do
10643as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10644if eval "test \"\${$as_ac_Header+set}\" = set"; then
10645 echo "$as_me:$LINENO: checking for $ac_header" >&5
10646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10647if eval "test \"\${$as_ac_Header+set}\" = set"; then
10648 echo $ECHO_N "(cached) $ECHO_C" >&6
10649fi
10650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10651echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
83912faa 10652else
ad6254c5
AK
10653 # Is the header compilable?
10654echo "$as_me:$LINENO: checking $ac_header usability" >&5
10655echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10656cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10657/* confdefs.h. */
10658_ACEOF
10659cat confdefs.h >>conftest.$ac_ext
10660cat >>conftest.$ac_ext <<_ACEOF
10661/* end confdefs.h. */
10662$ac_includes_default
10663#include <$ac_header>
10664_ACEOF
10665rm -f conftest.$ac_objext
10666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 10667 (eval $ac_compile) 2>conftest.er1
ad6254c5 10668 ac_status=$?
8a2fc586
AK
10669 grep -v '^ *+' conftest.er1 >conftest.err
10670 rm -f conftest.er1
10671 cat conftest.err >&5
ad6254c5
AK
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); } &&
8a2fc586
AK
10674 { ac_try='test -z "$ac_c_werror_flag"
10675 || test ! -s conftest.err'
10676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677 (eval $ac_try) 2>&5
10678 ac_status=$?
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); }; } &&
10681 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10683 (eval $ac_try) 2>&5
10684 ac_status=$?
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; }; then
10687 ac_header_compiler=yes
10688else
10689 echo "$as_me: failed program was:" >&5
10690sed 's/^/| /' conftest.$ac_ext >&5
10691
10692ac_header_compiler=no
10693fi
8a2fc586 10694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10695echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10696echo "${ECHO_T}$ac_header_compiler" >&6
10697
10698# Is the header present?
10699echo "$as_me:$LINENO: checking $ac_header presence" >&5
10700echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10701cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10702/* confdefs.h. */
10703_ACEOF
10704cat confdefs.h >>conftest.$ac_ext
10705cat >>conftest.$ac_ext <<_ACEOF
10706/* end confdefs.h. */
10707#include <$ac_header>
10708_ACEOF
10709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10711 ac_status=$?
10712 grep -v '^ *+' conftest.er1 >conftest.err
10713 rm -f conftest.er1
10714 cat conftest.err >&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } >/dev/null; then
10717 if test -s conftest.err; then
10718 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 10719 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
10720 else
10721 ac_cpp_err=
10722 fi
10723else
10724 ac_cpp_err=yes
795ca3e5 10725fi
ad6254c5
AK
10726if test -z "$ac_cpp_err"; then
10727 ac_header_preproc=yes
10728else
10729 echo "$as_me: failed program was:" >&5
10730sed 's/^/| /' conftest.$ac_ext >&5
10731
10732 ac_header_preproc=no
10733fi
10734rm -f conftest.err conftest.$ac_ext
10735echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10736echo "${ECHO_T}$ac_header_preproc" >&6
10737
10738# So? What about this header?
8a2fc586
AK
10739case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10740 yes:no: )
ad6254c5
AK
10741 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10742echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
10743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10744echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10745 ac_header_preproc=yes
ad6254c5 10746 ;;
8a2fc586 10747 no:yes:* )
ad6254c5
AK
10748 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10749echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
10750 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10751echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10752 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10753echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10754 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10755echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10757echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
10758 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10759echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10760 (
10761 cat <<\_ASBOX
8a2fc586
AK
10762## ------------------------------------------ ##
10763## Report this to the AC_PACKAGE_NAME lists. ##
10764## ------------------------------------------ ##
ad6254c5
AK
10765_ASBOX
10766 ) |
10767 sed "s/^/$as_me: WARNING: /" >&2
10768 ;;
10769esac
10770echo "$as_me:$LINENO: checking for $ac_header" >&5
10771echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10772if eval "test \"\${$as_ac_Header+set}\" = set"; then
10773 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 10774else
8a2fc586 10775 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 10776fi
ad6254c5
AK
10777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
83912faa 10779
69792976 10780fi
ad6254c5
AK
10781if test `eval echo '${'$as_ac_Header'}'` = yes; then
10782 cat >>confdefs.h <<_ACEOF
10783#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10784_ACEOF
69792976 10785
69792976 10786else
ad6254c5
AK
10787 { { echo "$as_me:$LINENO: error: bailing out" >&5
10788echo "$as_me: error: bailing out" >&2;}
10789 { (exit 1); exit 1; }; }
80992638
AK
10790fi
10791
ad6254c5 10792done
69792976 10793
ad6254c5
AK
10794fi
10795
ad6254c5
AK
10796
10797for ac_header in libdevmapper.h
10798do
10799as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10800if eval "test \"\${$as_ac_Header+set}\" = set"; then
10801 echo "$as_me:$LINENO: checking for $ac_header" >&5
10802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10803if eval "test \"\${$as_ac_Header+set}\" = set"; then
10804 echo $ECHO_N "(cached) $ECHO_C" >&6
10805fi
10806echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10807echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
69792976 10808else
ad6254c5
AK
10809 # Is the header compilable?
10810echo "$as_me:$LINENO: checking $ac_header usability" >&5
10811echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10812cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10813/* confdefs.h. */
10814_ACEOF
10815cat confdefs.h >>conftest.$ac_ext
10816cat >>conftest.$ac_ext <<_ACEOF
10817/* end confdefs.h. */
10818$ac_includes_default
10819#include <$ac_header>
10820_ACEOF
10821rm -f conftest.$ac_objext
10822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 10823 (eval $ac_compile) 2>conftest.er1
ad6254c5 10824 ac_status=$?
8a2fc586
AK
10825 grep -v '^ *+' conftest.er1 >conftest.err
10826 rm -f conftest.er1
10827 cat conftest.err >&5
ad6254c5
AK
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); } &&
8a2fc586
AK
10830 { ac_try='test -z "$ac_c_werror_flag"
10831 || test ! -s conftest.err'
10832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10833 (eval $ac_try) 2>&5
10834 ac_status=$?
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; } &&
10837 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10839 (eval $ac_try) 2>&5
10840 ac_status=$?
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); }; }; then
10843 ac_header_compiler=yes
10844else
10845 echo "$as_me: failed program was:" >&5
10846sed 's/^/| /' conftest.$ac_ext >&5
10847
10848ac_header_compiler=no
10849fi
8a2fc586 10850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10851echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10852echo "${ECHO_T}$ac_header_compiler" >&6
10853
10854# Is the header present?
10855echo "$as_me:$LINENO: checking $ac_header presence" >&5
10856echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10857cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10858/* confdefs.h. */
10859_ACEOF
10860cat confdefs.h >>conftest.$ac_ext
10861cat >>conftest.$ac_ext <<_ACEOF
10862/* end confdefs.h. */
10863#include <$ac_header>
10864_ACEOF
10865if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10867 ac_status=$?
10868 grep -v '^ *+' conftest.er1 >conftest.err
10869 rm -f conftest.er1
10870 cat conftest.err >&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); } >/dev/null; then
10873 if test -s conftest.err; then
10874 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 10875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
10876 else
10877 ac_cpp_err=
10878 fi
10879else
10880 ac_cpp_err=yes
69792976 10881fi
ad6254c5
AK
10882if test -z "$ac_cpp_err"; then
10883 ac_header_preproc=yes
10884else
10885 echo "$as_me: failed program was:" >&5
10886sed 's/^/| /' conftest.$ac_ext >&5
10887
10888 ac_header_preproc=no
10889fi
10890rm -f conftest.err conftest.$ac_ext
10891echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10892echo "${ECHO_T}$ac_header_preproc" >&6
10893
10894# So? What about this header?
8a2fc586
AK
10895case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10896 yes:no: )
ad6254c5
AK
10897 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10898echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
10899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10900echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10901 ac_header_preproc=yes
ad6254c5 10902 ;;
8a2fc586 10903 no:yes:* )
ad6254c5
AK
10904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10905echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
10906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10907echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10908 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10909echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10910 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10911echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10913echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
10914 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10915echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10916 (
10917 cat <<\_ASBOX
8a2fc586
AK
10918## ------------------------------------------ ##
10919## Report this to the AC_PACKAGE_NAME lists. ##
10920## ------------------------------------------ ##
ad6254c5
AK
10921_ASBOX
10922 ) |
10923 sed "s/^/$as_me: WARNING: /" >&2
10924 ;;
10925esac
10926echo "$as_me:$LINENO: checking for $ac_header" >&5
10927echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10928if eval "test \"\${$as_ac_Header+set}\" = set"; then
10929 echo $ECHO_N "(cached) $ECHO_C" >&6
69792976 10930else
8a2fc586 10931 eval "$as_ac_Header=\$ac_header_preproc"
69792976 10932fi
ad6254c5
AK
10933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10934echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
69792976 10935
ad6254c5
AK
10936fi
10937if test `eval echo '${'$as_ac_Header'}'` = yes; then
10938 cat >>confdefs.h <<_ACEOF
10939#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10940_ACEOF
69792976 10941
69792976 10942else
ad6254c5
AK
10943 { { echo "$as_me:$LINENO: error: bailing out" >&5
10944echo "$as_me: error: bailing out" >&2;}
10945 { (exit 1); exit 1; }; }
83912faa
AK
10946fi
10947
ad6254c5
AK
10948done
10949
4a7f3eb2 10950
ad6254c5
AK
10951if test x$HAVE_SELINUX = xyes; then
10952
10953for ac_header in selinux/selinux.h
10954do
10955as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10956if eval "test \"\${$as_ac_Header+set}\" = set"; then
10957 echo "$as_me:$LINENO: checking for $ac_header" >&5
10958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10959if eval "test \"\${$as_ac_Header+set}\" = set"; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10961fi
10962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10963echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4a7f3eb2 10964else
ad6254c5
AK
10965 # Is the header compilable?
10966echo "$as_me:$LINENO: checking $ac_header usability" >&5
10967echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10968cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10969/* confdefs.h. */
10970_ACEOF
10971cat confdefs.h >>conftest.$ac_ext
10972cat >>conftest.$ac_ext <<_ACEOF
10973/* end confdefs.h. */
10974$ac_includes_default
10975#include <$ac_header>
10976_ACEOF
10977rm -f conftest.$ac_objext
10978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 10979 (eval $ac_compile) 2>conftest.er1
ad6254c5 10980 ac_status=$?
8a2fc586
AK
10981 grep -v '^ *+' conftest.er1 >conftest.err
10982 rm -f conftest.er1
10983 cat conftest.err >&5
ad6254c5
AK
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } &&
8a2fc586
AK
10986 { ac_try='test -z "$ac_c_werror_flag"
10987 || test ! -s conftest.err'
10988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10989 (eval $ac_try) 2>&5
10990 ac_status=$?
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); }; } &&
10993 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995 (eval $ac_try) 2>&5
10996 ac_status=$?
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; }; then
10999 ac_header_compiler=yes
11000else
11001 echo "$as_me: failed program was:" >&5
11002sed 's/^/| /' conftest.$ac_ext >&5
11003
11004ac_header_compiler=no
11005fi
8a2fc586 11006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
11007echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11008echo "${ECHO_T}$ac_header_compiler" >&6
11009
11010# Is the header present?
11011echo "$as_me:$LINENO: checking $ac_header presence" >&5
11012echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11013cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11014/* confdefs.h. */
11015_ACEOF
11016cat confdefs.h >>conftest.$ac_ext
11017cat >>conftest.$ac_ext <<_ACEOF
11018/* end confdefs.h. */
11019#include <$ac_header>
11020_ACEOF
11021if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11023 ac_status=$?
11024 grep -v '^ *+' conftest.er1 >conftest.err
11025 rm -f conftest.er1
11026 cat conftest.err >&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } >/dev/null; then
11029 if test -s conftest.err; then
11030 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 11031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
11032 else
11033 ac_cpp_err=
11034 fi
11035else
11036 ac_cpp_err=yes
11037fi
11038if test -z "$ac_cpp_err"; then
11039 ac_header_preproc=yes
11040else
11041 echo "$as_me: failed program was:" >&5
11042sed 's/^/| /' conftest.$ac_ext >&5
11043
11044 ac_header_preproc=no
11045fi
11046rm -f conftest.err conftest.$ac_ext
11047echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11048echo "${ECHO_T}$ac_header_preproc" >&6
11049
11050# So? What about this header?
8a2fc586
AK
11051case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11052 yes:no: )
ad6254c5
AK
11053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11054echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
11055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11056echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11057 ac_header_preproc=yes
ad6254c5 11058 ;;
8a2fc586 11059 no:yes:* )
ad6254c5
AK
11060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11061echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
11062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11063echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11065echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11067echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
11068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11069echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
11070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11071echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
11072 (
11073 cat <<\_ASBOX
8a2fc586
AK
11074## ------------------------------------------ ##
11075## Report this to the AC_PACKAGE_NAME lists. ##
11076## ------------------------------------------ ##
ad6254c5
AK
11077_ASBOX
11078 ) |
11079 sed "s/^/$as_me: WARNING: /" >&2
11080 ;;
11081esac
11082echo "$as_me:$LINENO: checking for $ac_header" >&5
11083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11084if eval "test \"\${$as_ac_Header+set}\" = set"; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
11086else
8a2fc586 11087 eval "$as_ac_Header=\$ac_header_preproc"
80992638 11088fi
ad6254c5
AK
11089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11090echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4a7f3eb2 11091
ad6254c5
AK
11092fi
11093if test `eval echo '${'$as_ac_Header'}'` = yes; then
11094 cat >>confdefs.h <<_ACEOF
11095#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11096_ACEOF
0a62c911 11097
0a62c911 11098else
ad6254c5
AK
11099 { { echo "$as_me:$LINENO: error: bailing out" >&5
11100echo "$as_me: error: bailing out" >&2;}
11101 { (exit 1); exit 1; }; }
80992638
AK
11102fi
11103
ad6254c5 11104done
0a62c911 11105
ad6254c5 11106fi
0a62c911 11107
a653923f
AK
11108################################################################################
11109# Extract the first word of "modprobe", so it can be a program name with args.
11110set dummy modprobe; ac_word=$2
11111echo "$as_me:$LINENO: checking for $ac_word" >&5
11112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
72b2cb61
AK
11113if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
11114 echo $ECHO_N "(cached) $ECHO_C" >&6
11115else
11116 case $MODPROBE_CMD in
11117 [\\/]* | ?:[\\/]*)
11118 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
11119 ;;
11120 *)
11121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11122for as_dir in $PATH
11123do
11124 IFS=$as_save_IFS
11125 test -z "$as_dir" && as_dir=.
11126 for ac_exec_ext in '' $ac_executable_extensions; do
11127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11128 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
11129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11130 break 2
11131 fi
11132done
11133done
11134
11135 ;;
11136esac
11137fi
11138MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
11139
11140if test -n "$MODPROBE_CMD"; then
11141 echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
11142echo "${ECHO_T}$MODPROBE_CMD" >&6
11143else
11144 echo "$as_me:$LINENO: result: no" >&5
11145echo "${ECHO_T}no" >&6
11146fi
11147
a653923f
AK
11148
11149if test x$MODPROBE_CMD != x; then
72b2cb61
AK
11150
11151cat >>confdefs.h <<_ACEOF
11152#define MODPROBE_CMD "$MODPROBE_CMD"
11153_ACEOF
11154
a653923f
AK
11155fi
11156
80992638 11157################################################################################
fae0c576
AK
11158if test "-f VERSION"; then
11159 LVM_VERSION="\"`cat VERSION`\""
11160else
11161 LVM_VERSION="Unknown"
11162fi
11163
80992638 11164################################################################################
fae0c576 11165
83912faa 11166
795ca3e5
AK
11167
11168
11169
11170
11171
11172
5a52dca9 11173
8ef2b021 11174
199e490e 11175
69792976
AK
11176
11177
11178
11179
8106cdd5
AK
11180
11181
11182
11183
11184
d68a82ec 11185
036f273a 11186
7d1552c9 11187
8106cdd5 11188
0a62c911 11189
8106cdd5 11190
4a7f3eb2 11191
4922197a
AK
11192
11193
d8ac0fbc 11194
1a9ea74d 11195
8a2fc586
AK
11196
11197
11198
8ce0cbda 11199
8b1a3214 11200
33f732c5 11201
d3c8211f
AK
11202
11203
80992638 11204################################################################################
4eee5764 11205 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 scripts/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 11206cat >confcache <<\_ACEOF
795ca3e5
AK
11207# This file is a shell script that caches the results of configure
11208# tests run on this system so they can be shared between configure
ad6254c5
AK
11209# scripts and configure runs, see configure's option --config-cache.
11210# It is not useful on other systems. If it contains results you don't
11211# want to keep, you may remove or edit it.
795ca3e5 11212#
ad6254c5
AK
11213# config.status only pays attention to the cache file if you give it
11214# the --recheck option to rerun configure.
795ca3e5 11215#
ad6254c5
AK
11216# `ac_cv_env_foo' variables (set or unset) will be overridden when
11217# loading this file, other *unset* `ac_cv_foo' will be assigned the
11218# following values.
11219
11220_ACEOF
11221
795ca3e5
AK
11222# The following way of writing the cache mishandles newlines in values,
11223# but we know of no workaround that is simple, portable, and efficient.
11224# So, don't put newlines in cache variables' values.
11225# Ultrix sh set writes to stderr and can't be redirected directly,
11226# and sets the high bit in the cache file unless we assign to the vars.
ad6254c5
AK
11227{
11228 (set) 2>&1 |
11229 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11230 *ac_space=\ *)
11231 # `set' does not quote correctly, so add quotes (double-quote
11232 # substitution turns \\\\ into \\, and sed turns \\ into \).
11233 sed -n \
8a2fc586
AK
11234 "s/'/'\\\\''/g;
11235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
ad6254c5
AK
11236 ;;
11237 *)
11238 # `set' quotes correctly as required by POSIX, so do not add quotes.
11239 sed -n \
8a2fc586 11240 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
ad6254c5
AK
11241 ;;
11242 esac;
11243} |
11244 sed '
11245 t clear
11246 : clear
11247 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11248 t end
11249 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11250 : end' >>confcache
11251if diff $cache_file confcache >/dev/null 2>&1; then :; else
795ca3e5 11252 if test -w $cache_file; then
ad6254c5
AK
11253 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11254 cat confcache >$cache_file
795ca3e5
AK
11255 else
11256 echo "not updating unwritable cache $cache_file"
11257 fi
11258fi
11259rm -f confcache
11260
795ca3e5
AK
11261test "x$prefix" = xNONE && prefix=$ac_default_prefix
11262# Let make expand exec_prefix.
11263test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11264
ad6254c5
AK
11265# VPATH may cause trouble with some makes, so we remove $(srcdir),
11266# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11267# trailing colons and then remove the whole line if VPATH becomes empty
11268# (actually we leave an empty line to preserve line numbers).
795ca3e5 11269if test "x$srcdir" = x.; then
8a2fc586 11270 ac_vpsub='/^[ ]*VPATH[ ]*=/{
ad6254c5
AK
11271s/:*\$(srcdir):*/:/;
11272s/:*\${srcdir}:*/:/;
11273s/:*@srcdir@:*/:/;
8a2fc586 11274s/^\([^=]*=[ ]*\):*/\1/;
ad6254c5 11275s/:*$//;
8a2fc586 11276s/^[^=]*=[ ]*$//;
ad6254c5 11277}'
795ca3e5
AK
11278fi
11279
72b2cb61 11280DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
11281
11282ac_libobjs=
11283ac_ltlibobjs=
11284for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11285 # 1. Remove the extension, and $U if already installed.
11286 ac_i=`echo "$ac_i" |
8a2fc586 11287 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
ad6254c5
AK
11288 # 2. Add them.
11289 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11290 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11291done
11292LIBOBJS=$ac_libobjs
80992638 11293
ad6254c5
AK
11294LTLIBOBJS=$ac_ltlibobjs
11295
11296
11297
11298: ${CONFIG_STATUS=./config.status}
11299ac_clean_files_save=$ac_clean_files
11300ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11301{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11302echo "$as_me: creating $CONFIG_STATUS" >&6;}
11303cat >$CONFIG_STATUS <<_ACEOF
11304#! $SHELL
11305# Generated by $as_me.
795ca3e5 11306# Run this file to recreate the current configuration.
795ca3e5 11307# Compiler output produced by configure, useful for debugging
ad6254c5
AK
11308# configure, is in config.log if it exists.
11309
11310debug=false
11311ac_cs_recheck=false
11312ac_cs_silent=false
11313SHELL=\${CONFIG_SHELL-$SHELL}
11314_ACEOF
11315
11316cat >>$CONFIG_STATUS <<\_ACEOF
11317## --------------------- ##
11318## M4sh Initialization. ##
11319## --------------------- ##
11320
11321# Be Bourne compatible
11322if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11323 emulate sh
11324 NULLCMD=:
11325 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11326 # is contrary to our usage. Disable this feature.
11327 alias -g '${1+"$@"}'='"$@"'
11328elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11329 set -o posix
11330fi
8a2fc586 11331DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
11332
11333# Support unset when possible.
8a2fc586 11334if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
11335 as_unset=unset
11336else
11337 as_unset=false
11338fi
8106cdd5 11339
ad6254c5
AK
11340
11341# Work around bugs in pre-3.0 UWIN ksh.
11342$as_unset ENV MAIL MAILPATH
11343PS1='$ '
11344PS2='> '
11345PS4='+ '
11346
11347# NLS nuisances.
11348for as_var in \
11349 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11350 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11351 LC_TELEPHONE LC_TIME
8106cdd5 11352do
8a2fc586 11353 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
ad6254c5
AK
11354 eval $as_var=C; export $as_var
11355 else
11356 $as_unset $as_var
11357 fi
8106cdd5
AK
11358done
11359
ad6254c5
AK
11360# Required to use basename.
11361if expr a : '\(a\)' >/dev/null 2>&1; then
11362 as_expr=expr
11363else
11364 as_expr=false
11365fi
8106cdd5 11366
ad6254c5
AK
11367if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11368 as_basename=basename
11369else
11370 as_basename=false
11371fi
11372
11373
11374# Name of the executable.
11375as_me=`$as_basename "$0" ||
11376$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11377 X"$0" : 'X\(//\)$' \| \
11378 X"$0" : 'X\(/\)$' \| \
11379 . : '\(.\)' 2>/dev/null ||
11380echo X/"$0" |
11381 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11382 /^X\/\(\/\/\)$/{ s//\1/; q; }
11383 /^X\/\(\/\).*/{ s//\1/; q; }
11384 s/.*/./; q'`
11385
11386
11387# PATH needs CR, and LINENO needs CR and PATH.
11388# Avoid depending upon Character Ranges.
11389as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11390as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11391as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11392as_cr_digits='0123456789'
11393as_cr_alnum=$as_cr_Letters$as_cr_digits
11394
11395# The user is always right.
11396if test "${PATH_SEPARATOR+set}" != set; then
11397 echo "#! /bin/sh" >conf$$.sh
11398 echo "exit 0" >>conf$$.sh
11399 chmod +x conf$$.sh
11400 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11401 PATH_SEPARATOR=';'
80992638 11402 else
ad6254c5 11403 PATH_SEPARATOR=:
80992638 11404 fi
ad6254c5
AK
11405 rm -f conf$$.sh
11406fi
11407
11408
11409 as_lineno_1=$LINENO
11410 as_lineno_2=$LINENO
11411 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11412 test "x$as_lineno_1" != "x$as_lineno_2" &&
11413 test "x$as_lineno_3" = "x$as_lineno_2" || {
11414 # Find who we are. Look in the path if we contain no path at all
11415 # relative or not.
11416 case $0 in
11417 *[\\/]* ) as_myself=$0 ;;
11418 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11419for as_dir in $PATH
11420do
11421 IFS=$as_save_IFS
11422 test -z "$as_dir" && as_dir=.
11423 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11424done
11425
11426 ;;
11427 esac
11428 # We did not find ourselves, most probably we were run as `sh COMMAND'
11429 # in which case we are not to be found in the path.
11430 if test "x$as_myself" = x; then
11431 as_myself=$0
11432 fi
11433 if test ! -f "$as_myself"; then
11434 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11435echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11436 { (exit 1); exit 1; }; }
8106cdd5 11437 fi
ad6254c5
AK
11438 case $CONFIG_SHELL in
11439 '')
11440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11441for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11442do
11443 IFS=$as_save_IFS
11444 test -z "$as_dir" && as_dir=.
11445 for as_base in sh bash ksh sh5; do
11446 case $as_dir in
11447 /*)
11448 if ("$as_dir/$as_base" -c '
11449 as_lineno_1=$LINENO
11450 as_lineno_2=$LINENO
11451 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11452 test "x$as_lineno_1" != "x$as_lineno_2" &&
11453 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11454 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11455 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11456 CONFIG_SHELL=$as_dir/$as_base
11457 export CONFIG_SHELL
11458 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11459 fi;;
11460 esac
11461 done
80992638 11462done
ad6254c5 11463;;
795ca3e5
AK
11464 esac
11465
ad6254c5
AK
11466 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11467 # uniformly replaced by the line number. The first 'sed' inserts a
11468 # line-number line before each line; the second 'sed' does the real
11469 # work. The second script uses 'N' to pair each line-number line
11470 # with the numbered line, and appends trailing '-' during
11471 # substitution so that $LINENO is not a special case at line end.
11472 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11473 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11474 sed '=' <$as_myself |
11475 sed '
11476 N
11477 s,$,-,
11478 : loop
11479 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11480 t loop
11481 s,-$,,
11482 s,^['$as_cr_digits']*\n,,
11483 ' >$as_me.lineno &&
11484 chmod +x $as_me.lineno ||
11485 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11486echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11487 { (exit 1); exit 1; }; }
11488
11489 # Don't try to exec as it changes $[0], causing all sort of problems
11490 # (the dirname of $[0] is not the place where we might find the
11491 # original and so on. Autoconf is especially sensible to this).
11492 . ./$as_me.lineno
11493 # Exit status is that of the last command.
11494 exit
11495}
11496
11497
11498case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11499 *c*,-n*) ECHO_N= ECHO_C='
11500' ECHO_T=' ' ;;
11501 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11502 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11503esac
11504
11505if expr a : '\(a\)' >/dev/null 2>&1; then
11506 as_expr=expr
11507else
11508 as_expr=false
11509fi
80992638 11510
ad6254c5
AK
11511rm -f conf$$ conf$$.exe conf$$.file
11512echo >conf$$.file
11513if ln -s conf$$.file conf$$ 2>/dev/null; then
11514 # We could just check for DJGPP; but this test a) works b) is more generic
11515 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11516 if test -f conf$$.exe; then
11517 # Don't use ln at all; we don't have any links
11518 as_ln_s='cp -p'
8106cdd5 11519 else
ad6254c5 11520 as_ln_s='ln -s'
80992638 11521 fi
ad6254c5
AK
11522elif ln conf$$.file conf$$ 2>/dev/null; then
11523 as_ln_s=ln
11524else
11525 as_ln_s='cp -p'
11526fi
11527rm -f conf$$ conf$$.exe conf$$.file
8106cdd5 11528
ad6254c5
AK
11529if mkdir -p . 2>/dev/null; then
11530 as_mkdir_p=:
11531else
8a2fc586 11532 test -d ./-p && rmdir ./-p
ad6254c5
AK
11533 as_mkdir_p=false
11534fi
11535
11536as_executable_p="test -f"
11537
11538# Sed expression to map a string onto a valid CPP name.
8a2fc586 11539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
11540
11541# Sed expression to map a string onto a valid variable name.
8a2fc586 11542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
11543
11544
11545# IFS
11546# We need space, tab and new line, in precisely that order.
11547as_nl='
11548'
11549IFS=" $as_nl"
11550
11551# CDPATH.
11552$as_unset CDPATH
11553
11554exec 6>&1
11555
11556# Open the log real soon, to keep \$[0] and so on meaningful, and to
11557# report actual input values of CONFIG_FILES etc. instead of their
11558# values after options handling. Logging --version etc. is OK.
11559exec 5>>config.log
11560{
11561 echo
11562 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11563## Running $as_me. ##
11564_ASBOX
11565} >&5
11566cat >&5 <<_CSEOF
11567
11568This file was extended by $as_me, which was
8a2fc586 11569generated by GNU Autoconf 2.59. Invocation command line was
ad6254c5
AK
11570
11571 CONFIG_FILES = $CONFIG_FILES
11572 CONFIG_HEADERS = $CONFIG_HEADERS
11573 CONFIG_LINKS = $CONFIG_LINKS
11574 CONFIG_COMMANDS = $CONFIG_COMMANDS
11575 $ $0 $@
11576
11577_CSEOF
11578echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11579echo >&5
11580_ACEOF
11581
11582# Files that config.status was made for.
11583if test -n "$ac_config_files"; then
11584 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11585fi
11586
11587if test -n "$ac_config_headers"; then
11588 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11589fi
11590
11591if test -n "$ac_config_links"; then
11592 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11593fi
11594
11595if test -n "$ac_config_commands"; then
11596 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11597fi
11598
11599cat >>$CONFIG_STATUS <<\_ACEOF
11600
11601ac_cs_usage="\
11602\`$as_me' instantiates files from templates according to the
11603current configuration.
11604
11605Usage: $0 [OPTIONS] [FILE]...
11606
11607 -h, --help print this help, then exit
11608 -V, --version print version number, then exit
11609 -q, --quiet do not print progress messages
11610 -d, --debug don't remove temporary files
11611 --recheck update $as_me by reconfiguring in the same conditions
11612 --file=FILE[:TEMPLATE]
8a2fc586 11613 instantiate the configuration file FILE
72b2cb61
AK
11614 --header=FILE[:TEMPLATE]
11615 instantiate the configuration header FILE
ad6254c5
AK
11616
11617Configuration files:
11618$config_files
11619
72b2cb61
AK
11620Configuration headers:
11621$config_headers
11622
ad6254c5
AK
11623Report bugs to <bug-autoconf@gnu.org>."
11624_ACEOF
11625
11626cat >>$CONFIG_STATUS <<_ACEOF
11627ac_cs_version="\\
11628config.status
8a2fc586 11629configured by $0, generated by GNU Autoconf 2.59,
ad6254c5
AK
11630 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11631
8a2fc586 11632Copyright (C) 2003 Free Software Foundation, Inc.
ad6254c5
AK
11633This config.status script is free software; the Free Software Foundation
11634gives unlimited permission to copy, distribute and modify it."
11635srcdir=$srcdir
11636INSTALL="$INSTALL"
11637_ACEOF
11638
11639cat >>$CONFIG_STATUS <<\_ACEOF
11640# If no file are specified by the user, then we need to provide default
11641# value. By we need to know if files were specified by the user.
11642ac_need_defaults=:
11643while test $# != 0
11644do
11645 case $1 in
11646 --*=*)
11647 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11648 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11649 ac_shift=:
11650 ;;
11651 -*)
11652 ac_option=$1
11653 ac_optarg=$2
11654 ac_shift=shift
11655 ;;
11656 *) # This is not an option, so the user has probably given explicit
11657 # arguments.
11658 ac_option=$1
11659 ac_need_defaults=false;;
11660 esac
11661
11662 case $ac_option in
11663 # Handling of the options.
11664_ACEOF
11665cat >>$CONFIG_STATUS <<\_ACEOF
11666 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11667 ac_cs_recheck=: ;;
11668 --version | --vers* | -V )
11669 echo "$ac_cs_version"; exit 0 ;;
11670 --he | --h)
11671 # Conflict between --help and --header
11672 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11673Try \`$0 --help' for more information." >&5
11674echo "$as_me: error: ambiguous option: $1
11675Try \`$0 --help' for more information." >&2;}
11676 { (exit 1); exit 1; }; };;
11677 --help | --hel | -h )
11678 echo "$ac_cs_usage"; exit 0 ;;
11679 --debug | --d* | -d )
11680 debug=: ;;
11681 --file | --fil | --fi | --f )
11682 $ac_shift
11683 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11684 ac_need_defaults=false;;
11685 --header | --heade | --head | --hea )
11686 $ac_shift
11687 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11688 ac_need_defaults=false;;
11689 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11690 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11691 ac_cs_silent=: ;;
11692
11693 # This is an error.
11694 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11695Try \`$0 --help' for more information." >&5
11696echo "$as_me: error: unrecognized option: $1
11697Try \`$0 --help' for more information." >&2;}
11698 { (exit 1); exit 1; }; } ;;
11699
11700 *) ac_config_targets="$ac_config_targets $1" ;;
11701
11702 esac
11703 shift
11704done
11705
11706ac_configure_extra_args=
11707
11708if $ac_cs_silent; then
11709 exec 6>/dev/null
11710 ac_configure_extra_args="$ac_configure_extra_args --silent"
11711fi
11712
11713_ACEOF
11714cat >>$CONFIG_STATUS <<_ACEOF
11715if \$ac_cs_recheck; then
11716 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11717 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11718fi
11719
11720_ACEOF
11721
11722
11723
11724
11725
11726cat >>$CONFIG_STATUS <<\_ACEOF
11727for ac_config_target in $ac_config_targets
11728do
11729 case "$ac_config_target" in
11730 # Handling of arguments.
11731 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11732 "make.tmpl" ) CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
11733 "daemons/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
11734 "daemons/clvmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
06f62ad1
AK
11735 "dmeventd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;;
11736 "dmeventd/mirror/Makefile" ) CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;;
ad6254c5
AK
11737 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11738 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11739 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11740 "lib/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
11741 "lib/format_pool/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
11742 "lib/locking/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
11743 "lib/mirror/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
11744 "lib/snapshot/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
11745 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11746 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
4eee5764 11747 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
ad6254c5
AK
11748 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
11749 "tools/version.h" ) CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
11750 "tools/fsadm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/fsadm/Makefile" ;;
11751 "test/mm/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/mm/Makefile" ;;
11752 "test/device/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/device/Makefile" ;;
11753 "test/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/format1/Makefile" ;;
11754 "test/regex/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/regex/Makefile" ;;
11755 "test/filters/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/filters/Makefile" ;;
72b2cb61 11756 "lib/misc/configure.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
ad6254c5
AK
11757 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11758echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11759 { (exit 1); exit 1; }; };;
80992638 11760 esac
ad6254c5
AK
11761done
11762
11763# If the user did not use the arguments to specify the items to instantiate,
11764# then the envvar interface is used. Set only those that are not.
11765# We use the long form for the default assignment because of an extremely
11766# bizarre bug on SunOS 4.1.3.
11767if $ac_need_defaults; then
11768 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 11769 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
11770fi
11771
11772# Have a temporary directory for convenience. Make it in the build tree
11773# simply because there is no reason to put it here, and in addition,
11774# creating and moving files from /tmp can sometimes cause problems.
11775# Create a temporary directory, and hook for its removal unless debugging.
11776$debug ||
11777{
11778 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11779 trap '{ (exit 1); exit 1; }' 1 2 13 15
11780}
11781
11782# Create a (secure) tmp directory for tmp files.
11783
11784{
11785 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11786 test -n "$tmp" && test -d "$tmp"
11787} ||
11788{
11789 tmp=./confstat$$-$RANDOM
11790 (umask 077 && mkdir $tmp)
11791} ||
11792{
11793 echo "$me: cannot create a temporary directory in ." >&2
11794 { (exit 1); exit 1; }
11795}
11796
11797_ACEOF
11798
11799cat >>$CONFIG_STATUS <<_ACEOF
11800
11801#
11802# CONFIG_FILES section.
11803#
11804
11805# No need to generate the scripts if there are no CONFIG_FILES.
11806# This happens for instance when ./config.status config.h
11807if test -n "\$CONFIG_FILES"; then
11808 # Protect against being on the right side of a sed subst in config.status.
11809 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11810 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11811s,@SHELL@,$SHELL,;t t
11812s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11813s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11814s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11815s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11816s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11817s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11818s,@exec_prefix@,$exec_prefix,;t t
11819s,@prefix@,$prefix,;t t
11820s,@program_transform_name@,$program_transform_name,;t t
11821s,@bindir@,$bindir,;t t
11822s,@sbindir@,$sbindir,;t t
11823s,@libexecdir@,$libexecdir,;t t
11824s,@datadir@,$datadir,;t t
11825s,@sysconfdir@,$sysconfdir,;t t
11826s,@sharedstatedir@,$sharedstatedir,;t t
11827s,@localstatedir@,$localstatedir,;t t
11828s,@libdir@,$libdir,;t t
11829s,@includedir@,$includedir,;t t
11830s,@oldincludedir@,$oldincludedir,;t t
11831s,@infodir@,$infodir,;t t
11832s,@mandir@,$mandir,;t t
11833s,@build_alias@,$build_alias,;t t
11834s,@host_alias@,$host_alias,;t t
11835s,@target_alias@,$target_alias,;t t
11836s,@DEFS@,$DEFS,;t t
11837s,@ECHO_C@,$ECHO_C,;t t
11838s,@ECHO_N@,$ECHO_N,;t t
11839s,@ECHO_T@,$ECHO_T,;t t
11840s,@LIBS@,$LIBS,;t t
11841s,@build@,$build,;t t
11842s,@build_cpu@,$build_cpu,;t t
11843s,@build_vendor@,$build_vendor,;t t
11844s,@build_os@,$build_os,;t t
11845s,@host@,$host,;t t
11846s,@host_cpu@,$host_cpu,;t t
11847s,@host_vendor@,$host_vendor,;t t
11848s,@host_os@,$host_os,;t t
11849s,@target@,$target,;t t
11850s,@target_cpu@,$target_cpu,;t t
11851s,@target_vendor@,$target_vendor,;t t
11852s,@target_os@,$target_os,;t t
11853s,@AWK@,$AWK,;t t
11854s,@CC@,$CC,;t t
11855s,@CFLAGS@,$CFLAGS,;t t
11856s,@LDFLAGS@,$LDFLAGS,;t t
11857s,@CPPFLAGS@,$CPPFLAGS,;t t
11858s,@ac_ct_CC@,$ac_ct_CC,;t t
11859s,@EXEEXT@,$EXEEXT,;t t
11860s,@OBJEXT@,$OBJEXT,;t t
11861s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11862s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11863s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11864s,@LN_S@,$LN_S,;t t
11865s,@SET_MAKE@,$SET_MAKE,;t t
11866s,@RANLIB@,$RANLIB,;t t
11867s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8a2fc586
AK
11868s,@CFLOW_CMD@,$CFLOW_CMD,;t t
11869s,@CSCOPE_CMD@,$CSCOPE_CMD,;t t
ad6254c5
AK
11870s,@CPP@,$CPP,;t t
11871s,@EGREP@,$EGREP,;t t
11872s,@ALLOCA@,$ALLOCA,;t t
11873s,@LIBOBJS@,$LIBOBJS,;t t
11874s,@POW_LIB@,$POW_LIB,;t t
11875s,@MSGFMT@,$MSGFMT,;t t
a653923f 11876s,@MODPROBE_CMD@,$MODPROBE_CMD,;t t
ad6254c5
AK
11877s,@JOBS@,$JOBS,;t t
11878s,@STATIC_LINK@,$STATIC_LINK,;t t
11879s,@LVM1@,$LVM1,;t t
11880s,@POOL@,$POOL,;t t
11881s,@SNAPSHOTS@,$SNAPSHOTS,;t t
11882s,@MIRRORS@,$MIRRORS,;t t
11883s,@OWNER@,$OWNER,;t t
11884s,@GROUP@,$GROUP,;t t
11885s,@COPTIMISE_FLAG@,$COPTIMISE_FLAG,;t t
11886s,@CLDFLAGS@,$CLDFLAGS,;t t
11887s,@CLDWHOLEARCHIVE@,$CLDWHOLEARCHIVE,;t t
11888s,@CLDNOWHOLEARCHIVE@,$CLDNOWHOLEARCHIVE,;t t
11889s,@LDDEPS@,$LDDEPS,;t t
c1c065a3 11890s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
ad6254c5
AK
11891s,@LVM_VERSION@,$LVM_VERSION,;t t
11892s,@LVM1_FALLBACK@,$LVM1_FALLBACK,;t t
11893s,@DEBUG@,$DEBUG,;t t
11894s,@DEVMAPPER@,$DEVMAPPER,;t t
11895s,@HAVE_LIBDL@,$HAVE_LIBDL,;t t
11896s,@HAVE_SELINUX@,$HAVE_SELINUX,;t t
8b1a3214 11897s,@HAVE_REALTIME@,$HAVE_REALTIME,;t t
ad6254c5
AK
11898s,@CMDLIB@,$CMDLIB,;t t
11899s,@LOCALEDIR@,$LOCALEDIR,;t t
11900s,@CONFDIR@,$CONFDIR,;t t
11901s,@STATICDIR@,$STATICDIR,;t t
33f732c5 11902s,@DMDIR@,$DMDIR,;t t
ad6254c5
AK
11903s,@INTL_PACKAGE@,$INTL_PACKAGE,;t t
11904s,@INTL@,$INTL,;t t
11905s,@CLVMD@,$CLVMD,;t t
11906s,@CLUSTER@,$CLUSTER,;t t
11907s,@FSADM@,$FSADM,;t t
06f62ad1 11908s,@DMEVENTD@,$DMEVENTD,;t t
ad6254c5
AK
11909s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11910CEOF
11911
11912_ACEOF
11913
11914 cat >>$CONFIG_STATUS <<\_ACEOF
11915 # Split the substitutions into bite-sized pieces for seds with
11916 # small command number limits, like on Digital OSF/1 and HP-UX.
11917 ac_max_sed_lines=48
11918 ac_sed_frag=1 # Number of current file.
11919 ac_beg=1 # First line for current file.
11920 ac_end=$ac_max_sed_lines # Line after last line for current file.
11921 ac_more_lines=:
11922 ac_sed_cmds=
11923 while $ac_more_lines; do
11924 if test $ac_beg -gt 1; then
11925 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11926 else
11927 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11928 fi
11929 if test ! -s $tmp/subs.frag; then
11930 ac_more_lines=false
11931 else
11932 # The purpose of the label and of the branching condition is to
11933 # speed up the sed processing (if there are no `@' at all, there
11934 # is no need to browse any of the substitutions).
11935 # These are the two extra sed commands mentioned above.
11936 (echo ':t
11937 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11938 if test -z "$ac_sed_cmds"; then
8a2fc586 11939 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
ad6254c5 11940 else
8a2fc586 11941 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
ad6254c5
AK
11942 fi
11943 ac_sed_frag=`expr $ac_sed_frag + 1`
11944 ac_beg=$ac_end
11945 ac_end=`expr $ac_end + $ac_max_sed_lines`
11946 fi
11947 done
11948 if test -z "$ac_sed_cmds"; then
11949 ac_sed_cmds=cat
11950 fi
11951fi # test -n "$CONFIG_FILES"
8106cdd5 11952
ad6254c5
AK
11953_ACEOF
11954cat >>$CONFIG_STATUS <<\_ACEOF
11955for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11956 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11957 case $ac_file in
11958 - | *:- | *:-:* ) # input from stdin
8a2fc586
AK
11959 cat >$tmp/stdin
11960 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11961 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
ad6254c5 11962 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8a2fc586 11963 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
ad6254c5 11964 * ) ac_file_in=$ac_file.in ;;
80992638 11965 esac
8106cdd5 11966
ad6254c5
AK
11967 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11968 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11969$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
11970 X"$ac_file" : 'X\(//\)[^/]' \| \
11971 X"$ac_file" : 'X\(//\)$' \| \
11972 X"$ac_file" : 'X\(/\)' \| \
11973 . : '\(.\)' 2>/dev/null ||
ad6254c5
AK
11974echo X"$ac_file" |
11975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11976 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11977 /^X\(\/\/\)$/{ s//\1/; q; }
11978 /^X\(\/\).*/{ s//\1/; q; }
11979 s/.*/./; q'`
11980 { if $as_mkdir_p; then
11981 mkdir -p "$ac_dir"
11982 else
11983 as_dir="$ac_dir"
11984 as_dirs=
11985 while test ! -d "$as_dir"; do
11986 as_dirs="$as_dir $as_dirs"
11987 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11988$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
11989 X"$as_dir" : 'X\(//\)[^/]' \| \
11990 X"$as_dir" : 'X\(//\)$' \| \
11991 X"$as_dir" : 'X\(/\)' \| \
11992 . : '\(.\)' 2>/dev/null ||
ad6254c5
AK
11993echo X"$as_dir" |
11994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11995 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11996 /^X\(\/\/\)$/{ s//\1/; q; }
11997 /^X\(\/\).*/{ s//\1/; q; }
11998 s/.*/./; q'`
11999 done
12000 test ! -n "$as_dirs" || mkdir $as_dirs
12001 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12002echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12003 { (exit 1); exit 1; }; }; }
12004
12005 ac_builddir=.
12006
12007if test "$ac_dir" != .; then
12008 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12009 # A "../" for each directory in $ac_dir_suffix.
12010 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12011else
12012 ac_dir_suffix= ac_top_builddir=
12013fi
12014
12015case $srcdir in
12016 .) # No --srcdir option. We are building in place.
12017 ac_srcdir=.
12018 if test -z "$ac_top_builddir"; then
12019 ac_top_srcdir=.
12020 else
12021 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12022 fi ;;
12023 [\\/]* | ?:[\\/]* ) # Absolute path.
12024 ac_srcdir=$srcdir$ac_dir_suffix;
12025 ac_top_srcdir=$srcdir ;;
12026 *) # Relative path.
12027 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12028 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12029esac
8a2fc586
AK
12030
12031# Do not use `cd foo && pwd` to compute absolute paths, because
12032# the directories may not exist.
12033case `pwd` in
12034.) ac_abs_builddir="$ac_dir";;
12035*)
12036 case "$ac_dir" in
12037 .) ac_abs_builddir=`pwd`;;
12038 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12039 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12040 esac;;
12041esac
12042case $ac_abs_builddir in
12043.) ac_abs_top_builddir=${ac_top_builddir}.;;
12044*)
12045 case ${ac_top_builddir}. in
12046 .) ac_abs_top_builddir=$ac_abs_builddir;;
12047 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12048 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12049 esac;;
12050esac
12051case $ac_abs_builddir in
12052.) ac_abs_srcdir=$ac_srcdir;;
12053*)
12054 case $ac_srcdir in
12055 .) ac_abs_srcdir=$ac_abs_builddir;;
12056 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12057 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12058 esac;;
12059esac
12060case $ac_abs_builddir in
12061.) ac_abs_top_srcdir=$ac_top_srcdir;;
12062*)
12063 case $ac_top_srcdir in
12064 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12065 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12066 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12067 esac;;
12068esac
ad6254c5
AK
12069
12070
12071 case $INSTALL in
12072 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12073 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
795ca3e5
AK
12074 esac
12075
ad6254c5
AK
12076 if test x"$ac_file" != x-; then
12077 { echo "$as_me:$LINENO: creating $ac_file" >&5
12078echo "$as_me: creating $ac_file" >&6;}
12079 rm -f "$ac_file"
12080 fi
12081 # Let's still pretend it is `configure' which instantiates (i.e., don't
12082 # use $as_me), people would be surprised to read:
12083 # /* config.h. Generated by config.status. */
12084 if test x"$ac_file" = x-; then
12085 configure_input=
12086 else
12087 configure_input="$ac_file. "
12088 fi
12089 configure_input=$configure_input"Generated from `echo $ac_file_in |
8a2fc586 12090 sed 's,.*/,,'` by configure."
ad6254c5
AK
12091
12092 # First look for the input files in the build tree, otherwise in the
12093 # src tree.
12094 ac_file_inputs=`IFS=:
12095 for f in $ac_file_in; do
12096 case $f in
12097 -) echo $tmp/stdin ;;
12098 [\\/$]*)
8a2fc586
AK
12099 # Absolute (can't be DOS-style, as IFS=:)
12100 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
ad6254c5
AK
12101echo "$as_me: error: cannot find input file: $f" >&2;}
12102 { (exit 1); exit 1; }; }
8a2fc586 12103 echo "$f";;
ad6254c5 12104 *) # Relative
8a2fc586
AK
12105 if test -f "$f"; then
12106 # Build tree
12107 echo "$f"
12108 elif test -f "$srcdir/$f"; then
12109 # Source tree
12110 echo "$srcdir/$f"
12111 else
12112 # /dev/null tree
12113 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
ad6254c5
AK
12114echo "$as_me: error: cannot find input file: $f" >&2;}
12115 { (exit 1); exit 1; }; }
8a2fc586 12116 fi;;
ad6254c5
AK
12117 esac
12118 done` || { (exit 1); exit 1; }
12119_ACEOF
12120cat >>$CONFIG_STATUS <<_ACEOF
12121 sed "$ac_vpsub
12122$extrasub
12123_ACEOF
12124cat >>$CONFIG_STATUS <<\_ACEOF
12125:t
12126/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12127s,@configure_input@,$configure_input,;t t
12128s,@srcdir@,$ac_srcdir,;t t
12129s,@abs_srcdir@,$ac_abs_srcdir,;t t
12130s,@top_srcdir@,$ac_top_srcdir,;t t
12131s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12132s,@builddir@,$ac_builddir,;t t
12133s,@abs_builddir@,$ac_abs_builddir,;t t
12134s,@top_builddir@,$ac_top_builddir,;t t
12135s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12136s,@INSTALL@,$ac_INSTALL,;t t
12137" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12138 rm -f $tmp/stdin
12139 if test x"$ac_file" != x-; then
12140 mv $tmp/out $ac_file
12141 else
12142 cat $tmp/out
12143 rm -f $tmp/out
12144 fi
795ca3e5 12145
ad6254c5
AK
12146done
12147_ACEOF
72b2cb61
AK
12148cat >>$CONFIG_STATUS <<\_ACEOF
12149
12150#
12151# CONFIG_HEADER section.
12152#
12153
12154# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12155# NAME is the cpp macro being defined and VALUE is the value it is being given.
12156#
12157# ac_d sets the value in "#define NAME VALUE" lines.
12158ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12159ac_dB='[ ].*$,\1#\2'
12160ac_dC=' '
12161ac_dD=',;t'
12162# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12163ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12164ac_uB='$,\1#\2define\3'
12165ac_uC=' '
12166ac_uD=',;t'
12167
12168for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12169 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12170 case $ac_file in
12171 - | *:- | *:-:* ) # input from stdin
12172 cat >$tmp/stdin
12173 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12174 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12175 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12176 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12177 * ) ac_file_in=$ac_file.in ;;
12178 esac
12179
12180 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12181echo "$as_me: creating $ac_file" >&6;}
12182
12183 # First look for the input files in the build tree, otherwise in the
12184 # src tree.
12185 ac_file_inputs=`IFS=:
12186 for f in $ac_file_in; do
12187 case $f in
12188 -) echo $tmp/stdin ;;
12189 [\\/$]*)
12190 # Absolute (can't be DOS-style, as IFS=:)
12191 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12192echo "$as_me: error: cannot find input file: $f" >&2;}
12193 { (exit 1); exit 1; }; }
12194 # Do quote $f, to prevent DOS paths from being IFS'd.
12195 echo "$f";;
12196 *) # Relative
12197 if test -f "$f"; then
12198 # Build tree
12199 echo "$f"
12200 elif test -f "$srcdir/$f"; then
12201 # Source tree
12202 echo "$srcdir/$f"
12203 else
12204 # /dev/null tree
12205 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12206echo "$as_me: error: cannot find input file: $f" >&2;}
12207 { (exit 1); exit 1; }; }
12208 fi;;
12209 esac
12210 done` || { (exit 1); exit 1; }
12211 # Remove the trailing spaces.
12212 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12213
12214_ACEOF
12215
12216# Transform confdefs.h into two sed scripts, `conftest.defines' and
12217# `conftest.undefs', that substitutes the proper values into
12218# config.h.in to produce config.h. The first handles `#define'
12219# templates, and the second `#undef' templates.
12220# And first: Protect against being on the right side of a sed subst in
12221# config.status. Protect against being in an unquoted here document
12222# in config.status.
12223rm -f conftest.defines conftest.undefs
12224# Using a here document instead of a string reduces the quoting nightmare.
12225# Putting comments in sed scripts is not portable.
12226#
12227# `end' is used to avoid that the second main sed command (meant for
12228# 0-ary CPP macros) applies to n-ary macro definitions.
12229# See the Autoconf documentation for `clear'.
12230cat >confdef2sed.sed <<\_ACEOF
12231s/[\\&,]/\\&/g
12232s,[\\$`],\\&,g
12233t clear
12234: clear
12235s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12236t end
12237s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12238: end
12239_ACEOF
12240# If some macros were called several times there might be several times
12241# the same #defines, which is useless. Nevertheless, we may not want to
12242# sort them, since we want the *last* AC-DEFINE to be honored.
12243uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12244sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12245rm -f confdef2sed.sed
12246
12247# This sed command replaces #undef with comments. This is necessary, for
12248# example, in the case of _POSIX_SOURCE, which is predefined and required
12249# on some systems where configure will not decide to define it.
12250cat >>conftest.undefs <<\_ACEOF
12251s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12252_ACEOF
12253
12254# Break up conftest.defines because some shells have a limit on the size
12255# of here documents, and old seds have small limits too (100 cmds).
12256echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12257echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12258echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12259echo ' :' >>$CONFIG_STATUS
12260rm -f conftest.tail
12261while grep . conftest.defines >/dev/null
12262do
12263 # Write a limited-size here document to $tmp/defines.sed.
12264 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12265 # Speed up: don't consider the non `#define' lines.
12266 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12267 # Work around the forget-to-reset-the-flag bug.
12268 echo 't clr' >>$CONFIG_STATUS
12269 echo ': clr' >>$CONFIG_STATUS
12270 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12271 echo 'CEOF
12272 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12273 rm -f $tmp/in
12274 mv $tmp/out $tmp/in
12275' >>$CONFIG_STATUS
12276 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12277 rm -f conftest.defines
12278 mv conftest.tail conftest.defines
12279done
12280rm -f conftest.defines
12281echo ' fi # grep' >>$CONFIG_STATUS
12282echo >>$CONFIG_STATUS
12283
12284# Break up conftest.undefs because some shells have a limit on the size
12285# of here documents, and old seds have small limits too (100 cmds).
12286echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12287rm -f conftest.tail
12288while grep . conftest.undefs >/dev/null
12289do
12290 # Write a limited-size here document to $tmp/undefs.sed.
12291 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12292 # Speed up: don't consider the non `#undef'
12293 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12294 # Work around the forget-to-reset-the-flag bug.
12295 echo 't clr' >>$CONFIG_STATUS
12296 echo ': clr' >>$CONFIG_STATUS
12297 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12298 echo 'CEOF
12299 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12300 rm -f $tmp/in
12301 mv $tmp/out $tmp/in
12302' >>$CONFIG_STATUS
12303 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12304 rm -f conftest.undefs
12305 mv conftest.tail conftest.undefs
12306done
12307rm -f conftest.undefs
12308
12309cat >>$CONFIG_STATUS <<\_ACEOF
12310 # Let's still pretend it is `configure' which instantiates (i.e., don't
12311 # use $as_me), people would be surprised to read:
12312 # /* config.h. Generated by config.status. */
12313 if test x"$ac_file" = x-; then
12314 echo "/* Generated by configure. */" >$tmp/config.h
12315 else
12316 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12317 fi
12318 cat $tmp/in >>$tmp/config.h
12319 rm -f $tmp/in
12320 if test x"$ac_file" != x-; then
12321 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12322 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12323echo "$as_me: $ac_file is unchanged" >&6;}
12324 else
12325 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12326$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12327 X"$ac_file" : 'X\(//\)[^/]' \| \
12328 X"$ac_file" : 'X\(//\)$' \| \
12329 X"$ac_file" : 'X\(/\)' \| \
12330 . : '\(.\)' 2>/dev/null ||
12331echo X"$ac_file" |
12332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12333 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12334 /^X\(\/\/\)$/{ s//\1/; q; }
12335 /^X\(\/\).*/{ s//\1/; q; }
12336 s/.*/./; q'`
12337 { if $as_mkdir_p; then
12338 mkdir -p "$ac_dir"
12339 else
12340 as_dir="$ac_dir"
12341 as_dirs=
12342 while test ! -d "$as_dir"; do
12343 as_dirs="$as_dir $as_dirs"
12344 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12345$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12346 X"$as_dir" : 'X\(//\)[^/]' \| \
12347 X"$as_dir" : 'X\(//\)$' \| \
12348 X"$as_dir" : 'X\(/\)' \| \
12349 . : '\(.\)' 2>/dev/null ||
12350echo X"$as_dir" |
12351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12352 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12353 /^X\(\/\/\)$/{ s//\1/; q; }
12354 /^X\(\/\).*/{ s//\1/; q; }
12355 s/.*/./; q'`
12356 done
12357 test ! -n "$as_dirs" || mkdir $as_dirs
12358 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12359echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12360 { (exit 1); exit 1; }; }; }
12361
12362 rm -f $ac_file
12363 mv $tmp/config.h $ac_file
12364 fi
12365 else
12366 cat $tmp/config.h
12367 rm -f $tmp/config.h
12368 fi
12369done
12370_ACEOF
795ca3e5 12371
ad6254c5 12372cat >>$CONFIG_STATUS <<\_ACEOF
795ca3e5 12373
ad6254c5
AK
12374{ (exit 0); exit 0; }
12375_ACEOF
795ca3e5 12376chmod +x $CONFIG_STATUS
ad6254c5
AK
12377ac_clean_files=$ac_clean_files_save
12378
12379
12380# configure is writing to config.log, and then calls config.status.
12381# config.status does its own redirection, appending to config.log.
12382# Unfortunately, on DOS this fails, as config.log is still kept open
12383# by configure, so config.status won't be able to write to it; its
12384# output is simply discarded. So we exec the FD to /dev/null,
12385# effectively closing config.log, so it can be properly (re)opened and
12386# appended to by config.status. When coming back to configure, we
12387# need to make the FD available again.
12388if test "$no_create" != yes; then
12389 ac_cs_success=:
12390 ac_config_status_args=
12391 test "$silent" = yes &&
12392 ac_config_status_args="$ac_config_status_args --quiet"
12393 exec 5>/dev/null
12394 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12395 exec 5>>config.log
12396 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12397 # would make configure fail if this is the last instruction.
12398 $ac_cs_success || { (exit 1); exit 1; }
12399fi
795ca3e5 12400
2dc95e1c
AK
12401
12402if test x$ODIRECT != xyes; then
ad6254c5
AK
12403 { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
12404echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 12405fi
809fae91
AK
12406
12407if test x$FSADM == xyes; then
ad6254c5
AK
12408 { echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5
12409echo "$as_me: WARNING: fsadm support is untested" >&2;}
809fae91 12410fi
06f62ad1
AK
12411
12412if test x$DMEVENTD == xyes; then
12413 { echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5
12414echo "$as_me: WARNING: dmeventd support is untested" >&2;}
12415fi
This page took 1.316624 seconds and 5 git commands to generate.