]> sourceware.org Git - lvm2.git/blame - configure
configure/makefile tidying + pkg-config support.
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
c1c065a3 3# Generated by GNU Autoconf 2.57.
795ca3e5 4#
c1c065a3
AK
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
795ca3e5
AK
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
ad6254c5
AK
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22fi
23
24# Support unset when possible.
c1c065a3 25if (FOO=FOO; unset FOO) >/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
c1c065a3 44 if (set +x; test -n "`(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
221 as_mkdir_p=false
222fi
223
224as_executable_p="test -f"
225
226# Sed expression to map a string onto a valid CPP name.
c1c065a3 227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
ad6254c5
AK
228
229# Sed expression to map a string onto a valid variable name.
c1c065a3 230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
ad6254c5
AK
231
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" $as_nl"
238
239# CDPATH.
240$as_unset CDPATH
241
242
243# Name of the host.
244# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245# so uname gets run too.
246ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248exec 6>&1
249
250#
251# Initializations.
252#
795ca3e5 253ac_default_prefix=/usr/local
ad6254c5
AK
254ac_config_libobj_dir=.
255cross_compiling=no
256subdirs=
257MFLAGS=
258MAKEFLAGS=
259SHELL=${CONFIG_SHELL-/bin/sh}
260
261# Maximum number of lines to put in a shell here document.
262# This variable seems obsolete. It should probably be removed, and
263# only ac_max_sed_lines should be used.
264: ${ac_max_here_lines=38}
265
266# Identity of this package.
267PACKAGE_NAME=
268PACKAGE_TARNAME=
269PACKAGE_VERSION=
270PACKAGE_STRING=
271PACKAGE_BUGREPORT=
272
273ac_unique_file="lib/device/dev-cache.h"
274# Factoring default headers for most tests.
275ac_includes_default="\
276#include <stdio.h>
277#if HAVE_SYS_TYPES_H
278# include <sys/types.h>
279#endif
280#if HAVE_SYS_STAT_H
281# include <sys/stat.h>
282#endif
283#if STDC_HEADERS
284# include <stdlib.h>
285# include <stddef.h>
286#else
287# if HAVE_STDLIB_H
288# include <stdlib.h>
289# endif
290#endif
291#if HAVE_STRING_H
292# if !STDC_HEADERS && HAVE_MEMORY_H
293# include <memory.h>
294# endif
295# include <string.h>
296#endif
297#if HAVE_STRINGS_H
298# include <strings.h>
299#endif
300#if HAVE_INTTYPES_H
301# include <inttypes.h>
302#else
303# if HAVE_STDINT_H
304# include <stdint.h>
305# endif
306#endif
307#if HAVE_UNISTD_H
308# include <unistd.h>
309#endif"
310
795ca3e5 311ac_default_prefix=/usr
c1c065a3 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os AWK CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP ALLOCA LIBOBJS POW_LIB MSGFMT MODPROBE_CMD JOBS STATIC_LINK LVM1 POOL SNAPSHOTS MIRRORS OWNER GROUP COPTIMISE_FLAG CLDFLAGS CLDWHOLEARCHIVE CLDNOWHOLEARCHIVE LDDEPS LIB_SUFFIX LVM_VERSION LVM1_FALLBACK DEBUG DEVMAPPER HAVE_LIBDL HAVE_SELINUX CMDLIB LOCALEDIR CONFDIR STATICDIR INTL_PACKAGE INTL CLVMD CLUSTER FSADM DMEVENTD LTLIBOBJS'
ad6254c5 313ac_subst_files=''
795ca3e5
AK
314
315# Initialize some variables set by options.
ad6254c5
AK
316ac_init_help=
317ac_init_version=false
795ca3e5
AK
318# The variables have the same names as the options, with
319# dashes changed to underlines.
ad6254c5 320cache_file=/dev/null
795ca3e5 321exec_prefix=NONE
795ca3e5 322no_create=
795ca3e5
AK
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
795ca3e5
AK
331verbose=
332x_includes=NONE
333x_libraries=NONE
ad6254c5
AK
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
795ca3e5
AK
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
795ca3e5
AK
353ac_prev=
354for ac_option
355do
795ca3e5
AK
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
ad6254c5 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
795ca3e5
AK
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
ad6254c5 367 case $ac_option in
795ca3e5
AK
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 372 bindir=$ac_optarg ;;
795ca3e5
AK
373
374 -build | --build | --buil | --bui | --bu)
ad6254c5 375 ac_prev=build_alias ;;
795ca3e5 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 377 build_alias=$ac_optarg ;;
795ca3e5
AK
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
795ca3e5
AK
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
ad6254c5 393 datadir=$ac_optarg ;;
795ca3e5
AK
394
395 -disable-* | --disable-*)
ad6254c5 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 397 # Reject names that are not valid shell variable names.
ad6254c5
AK
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
795ca3e5
AK
403
404 -enable-* | --enable-*)
ad6254c5 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 406 # Reject names that are not valid shell variable names.
ad6254c5
AK
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
795ca3e5
AK
413 *) ac_optarg=yes ;;
414 esac
ad6254c5 415 eval "enable_$ac_feature='$ac_optarg'" ;;
795ca3e5
AK
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
ad6254c5 424 exec_prefix=$ac_optarg ;;
795ca3e5
AK
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
ad6254c5
AK
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
795ca3e5
AK
436
437 -host | --host | --hos | --ho)
ad6254c5 438 ac_prev=host_alias ;;
795ca3e5 439 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 440 host_alias=$ac_optarg ;;
795ca3e5
AK
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 447 includedir=$ac_optarg ;;
795ca3e5
AK
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 452 infodir=$ac_optarg ;;
795ca3e5
AK
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 457 libdir=$ac_optarg ;;
795ca3e5
AK
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
ad6254c5 464 libexecdir=$ac_optarg ;;
795ca3e5
AK
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
ad6254c5 473 localstatedir=$ac_optarg ;;
795ca3e5
AK
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 478 mandir=$ac_optarg ;;
795ca3e5
AK
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 485 | --no-cr | --no-c | -n)
795ca3e5
AK
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 499 oldincludedir=$ac_optarg ;;
795ca3e5
AK
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 504 prefix=$ac_optarg ;;
795ca3e5
AK
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 511 program_prefix=$ac_optarg ;;
795ca3e5
AK
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 518 program_suffix=$ac_optarg ;;
795ca3e5
AK
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 535 program_transform_name=$ac_optarg ;;
795ca3e5
AK
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
ad6254c5 545 sbindir=$ac_optarg ;;
795ca3e5
AK
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
ad6254c5 556 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
ad6254c5 561 site=$ac_optarg ;;
795ca3e5
AK
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 566 srcdir=$ac_optarg ;;
795ca3e5
AK
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 573 sysconfdir=$ac_optarg ;;
795ca3e5
AK
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 576 ac_prev=target_alias ;;
795ca3e5 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 578 target_alias=$ac_optarg ;;
795ca3e5
AK
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
ad6254c5
AK
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
795ca3e5
AK
585
586 -with-* | --with-*)
ad6254c5 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 588 # Reject names that are not valid shell variable names.
ad6254c5
AK
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
795ca3e5 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
ad6254c5
AK
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
795ca3e5
AK
595 *) ac_optarg=yes ;;
596 esac
ad6254c5 597 eval "with_$ac_package='$ac_optarg'" ;;
795ca3e5
AK
598
599 -without-* | --without-*)
ad6254c5 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 601 # Reject names that are not valid shell variable names.
ad6254c5
AK
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
795ca3e5
AK
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 617 x_includes=$ac_optarg ;;
795ca3e5
AK
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 624 x_libraries=$ac_optarg ;;
795ca3e5 625
ad6254c5
AK
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
795ca3e5
AK
629 ;;
630
ad6254c5
AK
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
795ca3e5 641 *)
ad6254c5
AK
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
ad6254c5
AK
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
795ca3e5 656fi
795ca3e5 657
ad6254c5
AK
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
795ca3e5 668
ad6254c5
AK
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
c1c065a3 671 localstatedir libdir includedir oldincludedir infodir mandir
795ca3e5 672do
ad6254c5
AK
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
795ca3e5
AK
678 esac
679done
680
ad6254c5
AK
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
8106cdd5 698
ad6254c5
AK
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
795ca3e5 703
795ca3e5
AK
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
ad6254c5
AK
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
c1c065a3
AK
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
ad6254c5
AK
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
795ca3e5
AK
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
ad6254c5
AK
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
795ca3e5 732 else
ad6254c5
AK
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
795ca3e5
AK
735 fi
736fi
ad6254c5
AK
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
c1c065a3 806 [$ac_default_prefix]
ad6254c5 807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
c1c065a3 808 [PREFIX]
ad6254c5
AK
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
831
832 cat <<\_ACEOF
833
834System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837 --target=TARGET configure for building compilers for TARGET [HOST]
838_ACEOF
839fi
840
841if test -n "$ac_init_help"; then
842
843 cat <<\_ACEOF
844
845Optional Features:
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-jobs=NUM Number of jobs to run simultaneously
849 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
850 device-mapper is missing from the kernel
851 --enable-static_link Use this to link the tools to their libraries
852 statically. Default is dynamic linking
853 --enable-readline Enable readline support
854 --disable-selinux Disable selinux support
855 --enable-debug Enable debugging
856 --disable-devmapper Disable device-mapper interaction
857 --disable-o_direct Disable O_DIRECT
858 --enable-cmdlib Build shared command library
859 --enable-fsadm Enable fsadm
15d91f5a 860 --enable-dmeventd Enable the device-mapper event daemon
ad6254c5
AK
861 --enable-nls Enable Native Language Support
862
863Optional Packages:
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
866 --with-user=USER Set the owner of installed files
867 --with-group=GROUP Set the group owner of installed files
868 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
869 TYPE=internal
870 --with-pool=TYPE GFS pool read-only support: internal/shared/none
871 TYPE=internal
872 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
873 TYPE=internal
874 --with-snapshots=TYPE Snapshot support: internal/shared/none
875 TYPE=internal
876 --with-mirrors=TYPE Mirror support: internal/shared/none
877 TYPE=internal
5c7fc7c4 878 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all
a266258f 879 TYPE=none
ad6254c5
AK
880 --with-optimisation=OPT C optimisation flag OPT=-O2
881 --with-localedir=DIR Translation files in DIR PREFIX/share/locale
882 --with-confdir=DIR Configuration files in DIR /etc
883 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
884
885Some influential environment variables:
886 CC C compiler command
887 CFLAGS C compiler flags
888 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
889 nonstandard directory <lib dir>
890 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
891 headers in a nonstandard directory <include dir>
892 CPP C preprocessor
893
894Use these variables to override the choices made by `configure' or to help
895it to find libraries and programs with nonstandard names/locations.
896
897_ACEOF
898fi
899
900if test "$ac_init_help" = "recursive"; then
901 # If there are subdirs, report their specific --help.
902 ac_popdir=`pwd`
903 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
904 test -d $ac_dir || continue
905 ac_builddir=.
906
907if test "$ac_dir" != .; then
908 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
909 # A "../" for each directory in $ac_dir_suffix.
910 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
911else
912 ac_dir_suffix= ac_top_builddir=
913fi
914
915case $srcdir in
916 .) # No --srcdir option. We are building in place.
917 ac_srcdir=.
918 if test -z "$ac_top_builddir"; then
919 ac_top_srcdir=.
920 else
921 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
922 fi ;;
923 [\\/]* | ?:[\\/]* ) # Absolute path.
924 ac_srcdir=$srcdir$ac_dir_suffix;
925 ac_top_srcdir=$srcdir ;;
926 *) # Relative path.
927 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
928 ac_top_srcdir=$ac_top_builddir$srcdir ;;
929esac
c1c065a3
AK
930# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
931# absolute.
932ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
933ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
934ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
935ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
ad6254c5
AK
936
937 cd $ac_dir
938 # Check for guested configure; otherwise get Cygnus style configure.
939 if test -f $ac_srcdir/configure.gnu; then
940 echo
941 $SHELL $ac_srcdir/configure.gnu --help=recursive
942 elif test -f $ac_srcdir/configure; then
943 echo
944 $SHELL $ac_srcdir/configure --help=recursive
945 elif test -f $ac_srcdir/configure.ac ||
c1c065a3 946 test -f $ac_srcdir/configure.in; then
ad6254c5
AK
947 echo
948 $ac_configure --help
949 else
950 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
951 fi
952 cd $ac_popdir
953 done
954fi
955
956test -n "$ac_init_help" && exit 0
957if $ac_init_version; then
958 cat <<\_ACEOF
959
c1c065a3
AK
960Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
961Free Software Foundation, Inc.
ad6254c5
AK
962This configure script is free software; the Free Software Foundation
963gives unlimited permission to copy, distribute and modify it.
964_ACEOF
965 exit 0
966fi
967exec 5>config.log
968cat >&5 <<_ACEOF
969This file contains any messages produced by compilers while
970running configure, to aid debugging if configure makes a mistake.
971
972It was created by $as_me, which was
c1c065a3 973generated by GNU Autoconf 2.57. Invocation command line was
ad6254c5
AK
974
975 $ $0 $@
976
977_ACEOF
978{
979cat <<_ASUNAME
980## --------- ##
981## Platform. ##
982## --------- ##
983
984hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
985uname -m = `(uname -m) 2>/dev/null || echo unknown`
986uname -r = `(uname -r) 2>/dev/null || echo unknown`
987uname -s = `(uname -s) 2>/dev/null || echo unknown`
988uname -v = `(uname -v) 2>/dev/null || echo unknown`
989
990/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
991/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
992
993/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
994/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
995/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
996hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
997/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
998/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
999/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1000
1001_ASUNAME
1002
1003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004for as_dir in $PATH
1005do
1006 IFS=$as_save_IFS
1007 test -z "$as_dir" && as_dir=.
1008 echo "PATH: $as_dir"
1009done
1010
1011} >&5
1012
1013cat >&5 <<_ACEOF
1014
1015
1016## ----------- ##
1017## Core tests. ##
1018## ----------- ##
1019
1020_ACEOF
1021
1022
1023# Keep a trace of the command line.
1024# Strip out --no-create and --no-recursion so they do not pile up.
1025# Strip out --silent because we don't want to record it for future runs.
1026# Also quote any args containing shell meta-characters.
1027# Make two passes to allow for proper duplicate-argument suppression.
1028ac_configure_args=
1029ac_configure_args0=
1030ac_configure_args1=
1031ac_sep=
1032ac_must_keep_next=false
1033for ac_pass in 1 2
1034do
1035 for ac_arg
1036 do
1037 case $ac_arg in
1038 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040 | -silent | --silent | --silen | --sile | --sil)
1041 continue ;;
1042 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1043 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1044 esac
1045 case $ac_pass in
1046 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1047 2)
1048 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1049 if test $ac_must_keep_next = true; then
c1c065a3 1050 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1051 else
c1c065a3
AK
1052 case $ac_arg in
1053 *=* | --config-cache | -C | -disable-* | --disable-* \
1054 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1055 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1056 | -with-* | --with-* | -without-* | --without-* | --x)
1057 case "$ac_configure_args0 " in
1058 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1059 esac
1060 ;;
1061 -* ) ac_must_keep_next=true ;;
1062 esac
ad6254c5
AK
1063 fi
1064 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1065 # Get rid of the leading space.
1066 ac_sep=" "
1067 ;;
1068 esac
1069 done
1070done
1071$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1072$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1073
1074# When interrupted or exit'd, cleanup temporary files, and complete
1075# config.log. We remove comments because anyway the quotes in there
1076# would cause problems or look ugly.
1077# WARNING: Be sure not to use single quotes in there, as some shells,
1078# such as our DU 5.0 friend, will then `close' the trap.
1079trap 'exit_status=$?
1080 # Save into config.log some information that might help in debugging.
1081 {
1082 echo
1083
1084 cat <<\_ASBOX
1085## ---------------- ##
1086## Cache variables. ##
1087## ---------------- ##
1088_ASBOX
1089 echo
1090 # The following way of writing the cache mishandles newlines in values,
1091{
1092 (set) 2>&1 |
1093 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1094 *ac_space=\ *)
1095 sed -n \
c1c065a3
AK
1096 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
ad6254c5
AK
1098 ;;
1099 *)
1100 sed -n \
c1c065a3 1101 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
ad6254c5
AK
1102 ;;
1103 esac;
1104}
1105 echo
1106
1107 cat <<\_ASBOX
1108## ----------------- ##
1109## Output variables. ##
1110## ----------------- ##
1111_ASBOX
1112 echo
1113 for ac_var in $ac_subst_vars
1114 do
1115 eval ac_val=$`echo $ac_var`
1116 echo "$ac_var='"'"'$ac_val'"'"'"
1117 done | sort
1118 echo
1119
1120 if test -n "$ac_subst_files"; then
1121 cat <<\_ASBOX
1122## ------------- ##
1123## Output files. ##
1124## ------------- ##
1125_ASBOX
1126 echo
1127 for ac_var in $ac_subst_files
1128 do
1129 eval ac_val=$`echo $ac_var`
c1c065a3 1130 echo "$ac_var='"'"'$ac_val'"'"'"
ad6254c5
AK
1131 done | sort
1132 echo
1133 fi
1134
1135 if test -s confdefs.h; then
1136 cat <<\_ASBOX
1137## ----------- ##
1138## confdefs.h. ##
1139## ----------- ##
1140_ASBOX
1141 echo
1142 sed "/^$/d" confdefs.h | sort
1143 echo
1144 fi
1145 test "$ac_signal" != 0 &&
1146 echo "$as_me: caught signal $ac_signal"
1147 echo "$as_me: exit $exit_status"
1148 } >&5
c1c065a3 1149 rm -f core core.* *.core &&
ad6254c5
AK
1150 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1151 exit $exit_status
1152 ' 0
1153for ac_signal in 1 2 13 15; do
1154 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1155done
1156ac_signal=0
1157
1158# confdefs.h avoids OS command line length limits that DEFS can exceed.
1159rm -rf conftest* confdefs.h
1160# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1161echo >confdefs.h
1162
1163# Predefined preprocessor variables.
1164
1165cat >>confdefs.h <<_ACEOF
1166#define PACKAGE_NAME "$PACKAGE_NAME"
1167_ACEOF
1168
1169
1170cat >>confdefs.h <<_ACEOF
1171#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1172_ACEOF
1173
1174
1175cat >>confdefs.h <<_ACEOF
1176#define PACKAGE_VERSION "$PACKAGE_VERSION"
1177_ACEOF
8106cdd5 1178
ad6254c5
AK
1179
1180cat >>confdefs.h <<_ACEOF
1181#define PACKAGE_STRING "$PACKAGE_STRING"
1182_ACEOF
1183
1184
1185cat >>confdefs.h <<_ACEOF
1186#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1187_ACEOF
1188
1189
1190# Let the site file select an alternate cache file if it wants to.
795ca3e5
AK
1191# Prefer explicitly selected file to automatically selected ones.
1192if test -z "$CONFIG_SITE"; then
1193 if test "x$prefix" != xNONE; then
1194 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1195 else
1196 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1197 fi
1198fi
1199for ac_site_file in $CONFIG_SITE; do
1200 if test -r "$ac_site_file"; then
ad6254c5
AK
1201 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1202echo "$as_me: loading site script $ac_site_file" >&6;}
1203 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1204 . "$ac_site_file"
1205 fi
1206done
1207
1208if test -r "$cache_file"; then
ad6254c5
AK
1209 # Some versions of bash will fail to source /dev/null (special
1210 # files actually), so we avoid doing that.
1211 if test -f "$cache_file"; then
1212 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1213echo "$as_me: loading cache $cache_file" >&6;}
1214 case $cache_file in
1215 [\\/]* | ?:[\\/]* ) . $cache_file;;
1216 *) . ./$cache_file;;
1217 esac
1218 fi
795ca3e5 1219else
ad6254c5
AK
1220 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1221echo "$as_me: creating cache $cache_file" >&6;}
1222 >$cache_file
1223fi
1224
1225# Check that the precious variables saved in the cache have kept the same
1226# value.
1227ac_cache_corrupted=false
1228for ac_var in `(set) 2>&1 |
c1c065a3 1229 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
ad6254c5
AK
1230 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1231 eval ac_new_set=\$ac_env_${ac_var}_set
1232 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1233 eval ac_new_val="\$ac_env_${ac_var}_value"
1234 case $ac_old_set,$ac_new_set in
1235 set,)
1236 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1237echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1238 ac_cache_corrupted=: ;;
1239 ,set)
1240 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1241echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1242 ac_cache_corrupted=: ;;
1243 ,);;
1244 *)
1245 if test "x$ac_old_val" != "x$ac_new_val"; then
c1c065a3 1246 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
ad6254c5 1247echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
c1c065a3 1248 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
ad6254c5 1249echo "$as_me: former value: $ac_old_val" >&2;}
c1c065a3 1250 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
ad6254c5 1251echo "$as_me: current value: $ac_new_val" >&2;}
c1c065a3 1252 ac_cache_corrupted=:
ad6254c5
AK
1253 fi;;
1254 esac
1255 # Pass precious variables to config.status.
1256 if test "$ac_new_set" = set; then
1257 case $ac_new_val in
1258 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1260 *) ac_arg=$ac_var=$ac_new_val ;;
1261 esac
1262 case " $ac_configure_args " in
1263 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1264 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1265 esac
1266 fi
1267done
1268if $ac_cache_corrupted; then
1269 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1270echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1271 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1272echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1273 { (exit 1); exit 1; }; }
795ca3e5
AK
1274fi
1275
1276ac_ext=c
795ca3e5 1277ac_cpp='$CPP $CPPFLAGS'
ad6254c5
AK
1278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1280ac_compiler_gnu=$ac_cv_c_compiler_gnu
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
795ca3e5
AK
1298
1299
1300
80992638 1301################################################################################
795ca3e5
AK
1302ac_aux_dir=
1303for ac_dir in autoconf $srcdir/autoconf; do
1304 if test -f $ac_dir/install-sh; then
1305 ac_aux_dir=$ac_dir
1306 ac_install_sh="$ac_aux_dir/install-sh -c"
1307 break
1308 elif test -f $ac_dir/install.sh; then
1309 ac_aux_dir=$ac_dir
1310 ac_install_sh="$ac_aux_dir/install.sh -c"
1311 break
ad6254c5
AK
1312 elif test -f $ac_dir/shtool; then
1313 ac_aux_dir=$ac_dir
1314 ac_install_sh="$ac_aux_dir/shtool install -c"
1315 break
795ca3e5
AK
1316 fi
1317done
1318if test -z "$ac_aux_dir"; then
ad6254c5
AK
1319 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1320echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1321 { (exit 1); exit 1; }; }
795ca3e5 1322fi
ad6254c5
AK
1323ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1324ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1325ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
8ce0cbda
AK
1326
1327
ad6254c5 1328################################################################################
8ce0cbda 1329# Make sure we can run config.sub.
ad6254c5
AK
1330$ac_config_sub sun4 >/dev/null 2>&1 ||
1331 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1332echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1333 { (exit 1); exit 1; }; }
1334
1335echo "$as_me:$LINENO: checking build system type" >&5
1336echo $ECHO_N "checking build system type... $ECHO_C" >&6
1337if test "${ac_cv_build+set}" = set; then
1338 echo $ECHO_N "(cached) $ECHO_C" >&6
1339else
1340 ac_cv_build_alias=$build_alias
1341test -z "$ac_cv_build_alias" &&
1342 ac_cv_build_alias=`$ac_config_guess`
1343test -z "$ac_cv_build_alias" &&
1344 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1345echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1346 { (exit 1); exit 1; }; }
1347ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1348 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1349echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1350 { (exit 1); exit 1; }; }
1351
1352fi
1353echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1354echo "${ECHO_T}$ac_cv_build" >&6
1355build=$ac_cv_build
1356build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1357build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1358build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1359
1360
1361echo "$as_me:$LINENO: checking host system type" >&5
1362echo $ECHO_N "checking host system type... $ECHO_C" >&6
1363if test "${ac_cv_host+set}" = set; then
1364 echo $ECHO_N "(cached) $ECHO_C" >&6
1365else
1366 ac_cv_host_alias=$host_alias
1367test -z "$ac_cv_host_alias" &&
1368 ac_cv_host_alias=$ac_cv_build_alias
1369ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1370 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1371echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1372 { (exit 1); exit 1; }; }
1373
1374fi
1375echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1376echo "${ECHO_T}$ac_cv_host" >&6
1377host=$ac_cv_host
1378host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1379host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1380host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1381
1382
1383echo "$as_me:$LINENO: checking target system type" >&5
1384echo $ECHO_N "checking target system type... $ECHO_C" >&6
1385if test "${ac_cv_target+set}" = set; then
1386 echo $ECHO_N "(cached) $ECHO_C" >&6
1387else
1388 ac_cv_target_alias=$target_alias
1389test "x$ac_cv_target_alias" = "x" &&
1390 ac_cv_target_alias=$ac_cv_host_alias
1391ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1392 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1393echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1394 { (exit 1); exit 1; }; }
8ce0cbda 1395
ad6254c5
AK
1396fi
1397echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1398echo "${ECHO_T}$ac_cv_target" >&6
1399target=$ac_cv_target
1400target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1401target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1402target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8ce0cbda 1403
8ce0cbda 1404
ad6254c5
AK
1405# The aliases save the names the user supplied, while $host etc.
1406# will get canonicalized.
1407test -n "$target_alias" &&
8ce0cbda
AK
1408 test "$program_prefix$program_suffix$program_transform_name" = \
1409 NONENONEs,x,x, &&
1410 program_prefix=${target_alias}-
1411
8ce0cbda
AK
1412case "$host_os" in
1413 linux*)
1414 CFLAGS="$CFLAGS"
1415 COPTIMISE_FLAG="-O2"
1416 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
1417 CLDWHOLEARCHIVE="-Wl,-whole-archive"
1418 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
1419 LDDEPS="$LDDEPS .export.sym"
1420 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
e4c11ad1 1421 LIB_SUFFIX="so"
8ce0cbda
AK
1422 DEVMAPPER=yes
1423 ODIRECT=yes
1424 SELINUX=yes
1425 CLUSTER=internal
1426 FSADM=no ;;
1427 darwin*)
1428 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
1429 COPTIMISE_FLAG="-O2"
1430 CLDFLAGS="$CLDFLAGS"
1431 CLDWHOLEARCHIVE="-all_load"
1432 CLDNOWHOLEARCHIVE=
1433 LDDEPS="$LDDEPS"
1434 LDFLAGS="$LDFLAGS"
e4c11ad1 1435 LIB_SUFFIX="dylib"
a653923f 1436 DEVMAPPER=yes
8ce0cbda
AK
1437 ODIRECT=no
1438 SELINUX=no
1439 CLUSTER=none
1440 FSADM=no ;;
1441esac
1442
80992638 1443################################################################################
ad6254c5 1444for ac_prog in gawk mawk nawk awk
795ca3e5 1445do
ad6254c5 1446 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 1447set dummy $ac_prog; ac_word=$2
ad6254c5
AK
1448echo "$as_me:$LINENO: checking for $ac_word" >&5
1449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1450if test "${ac_cv_prog_AWK+set}" = set; then
1451 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1452else
1453 if test -n "$AWK"; then
1454 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1455else
ad6254c5
AK
1456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1457for as_dir in $PATH
1458do
1459 IFS=$as_save_IFS
1460 test -z "$as_dir" && as_dir=.
1461 for ac_exec_ext in '' $ac_executable_extensions; do
1462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1463 ac_cv_prog_AWK="$ac_prog"
1464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1465 break 2
1466 fi
1467done
1468done
1469
795ca3e5
AK
1470fi
1471fi
ad6254c5 1472AWK=$ac_cv_prog_AWK
795ca3e5 1473if test -n "$AWK"; then
ad6254c5
AK
1474 echo "$as_me:$LINENO: result: $AWK" >&5
1475echo "${ECHO_T}$AWK" >&6
795ca3e5 1476else
ad6254c5
AK
1477 echo "$as_me:$LINENO: result: no" >&5
1478echo "${ECHO_T}no" >&6
795ca3e5
AK
1479fi
1480
ad6254c5
AK
1481 test -n "$AWK" && break
1482done
1483
1484ac_ext=c
1485ac_cpp='$CPP $CPPFLAGS'
1486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1488ac_compiler_gnu=$ac_cv_c_compiler_gnu
1489if test -n "$ac_tool_prefix"; then
1490 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1491set dummy ${ac_tool_prefix}gcc; ac_word=$2
1492echo "$as_me:$LINENO: checking for $ac_word" >&5
1493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1494if test "${ac_cv_prog_CC+set}" = set; then
1495 echo $ECHO_N "(cached) $ECHO_C" >&6
1496else
1497 if test -n "$CC"; then
1498 ac_cv_prog_CC="$CC" # Let the user override the test.
1499else
1500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1501for as_dir in $PATH
1502do
1503 IFS=$as_save_IFS
1504 test -z "$as_dir" && as_dir=.
1505 for ac_exec_ext in '' $ac_executable_extensions; do
1506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1507 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1509 break 2
1510 fi
1511done
8106cdd5
AK
1512done
1513
ad6254c5
AK
1514fi
1515fi
1516CC=$ac_cv_prog_CC
1517if test -n "$CC"; then
1518 echo "$as_me:$LINENO: result: $CC" >&5
1519echo "${ECHO_T}$CC" >&6
1520else
1521 echo "$as_me:$LINENO: result: no" >&5
1522echo "${ECHO_T}no" >&6
1523fi
1524
1525fi
1526if test -z "$ac_cv_prog_CC"; then
1527 ac_ct_CC=$CC
1528 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 1529set dummy gcc; ac_word=$2
ad6254c5
AK
1530echo "$as_me:$LINENO: checking for $ac_word" >&5
1531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1532if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1533 echo $ECHO_N "(cached) $ECHO_C" >&6
1534else
1535 if test -n "$ac_ct_CC"; then
1536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1537else
1538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1539for as_dir in $PATH
1540do
1541 IFS=$as_save_IFS
1542 test -z "$as_dir" && as_dir=.
1543 for ac_exec_ext in '' $ac_executable_extensions; do
1544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1545 ac_cv_prog_ac_ct_CC="gcc"
1546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1547 break 2
1548 fi
1549done
1550done
1551
1552fi
1553fi
1554ac_ct_CC=$ac_cv_prog_ac_ct_CC
1555if test -n "$ac_ct_CC"; then
1556 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1557echo "${ECHO_T}$ac_ct_CC" >&6
1558else
1559 echo "$as_me:$LINENO: result: no" >&5
1560echo "${ECHO_T}no" >&6
1561fi
1562
1563 CC=$ac_ct_CC
1564else
1565 CC="$ac_cv_prog_CC"
1566fi
1567
1568if test -z "$CC"; then
1569 if test -n "$ac_tool_prefix"; then
1570 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1571set dummy ${ac_tool_prefix}cc; ac_word=$2
1572echo "$as_me:$LINENO: checking for $ac_word" >&5
1573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1574if test "${ac_cv_prog_CC+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5
AK
1576else
1577 if test -n "$CC"; then
1578 ac_cv_prog_CC="$CC" # Let the user override the test.
1579else
ad6254c5
AK
1580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581for as_dir in $PATH
1582do
1583 IFS=$as_save_IFS
1584 test -z "$as_dir" && as_dir=.
1585 for ac_exec_ext in '' $ac_executable_extensions; do
1586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1587 ac_cv_prog_CC="${ac_tool_prefix}cc"
1588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1589 break 2
1590 fi
1591done
1592done
1593
8106cdd5
AK
1594fi
1595fi
ad6254c5 1596CC=$ac_cv_prog_CC
8106cdd5 1597if test -n "$CC"; then
ad6254c5
AK
1598 echo "$as_me:$LINENO: result: $CC" >&5
1599echo "${ECHO_T}$CC" >&6
1600else
1601 echo "$as_me:$LINENO: result: no" >&5
1602echo "${ECHO_T}no" >&6
1603fi
1604
1605fi
1606if test -z "$ac_cv_prog_CC"; then
1607 ac_ct_CC=$CC
1608 # Extract the first word of "cc", so it can be a program name with args.
1609set dummy cc; ac_word=$2
1610echo "$as_me:$LINENO: checking for $ac_word" >&5
1611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1612if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1613 echo $ECHO_N "(cached) $ECHO_C" >&6
1614else
1615 if test -n "$ac_ct_CC"; then
1616 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1617else
1618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619for as_dir in $PATH
1620do
1621 IFS=$as_save_IFS
1622 test -z "$as_dir" && as_dir=.
1623 for ac_exec_ext in '' $ac_executable_extensions; do
1624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1625 ac_cv_prog_ac_ct_CC="cc"
1626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1627 break 2
1628 fi
1629done
1630done
1631
1632fi
1633fi
1634ac_ct_CC=$ac_cv_prog_ac_ct_CC
1635if test -n "$ac_ct_CC"; then
1636 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1637echo "${ECHO_T}$ac_ct_CC" >&6
1638else
1639 echo "$as_me:$LINENO: result: no" >&5
1640echo "${ECHO_T}no" >&6
1641fi
1642
1643 CC=$ac_ct_CC
8106cdd5 1644else
ad6254c5 1645 CC="$ac_cv_prog_CC"
8106cdd5
AK
1646fi
1647
ad6254c5 1648fi
795ca3e5
AK
1649if test -z "$CC"; then
1650 # Extract the first word of "cc", so it can be a program name with args.
1651set dummy cc; ac_word=$2
ad6254c5
AK
1652echo "$as_me:$LINENO: checking for $ac_word" >&5
1653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1654if test "${ac_cv_prog_CC+set}" = set; then
1655 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1656else
1657 if test -n "$CC"; then
1658 ac_cv_prog_CC="$CC" # Let the user override the test.
1659else
795ca3e5 1660 ac_prog_rejected=no
ad6254c5
AK
1661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662for as_dir in $PATH
1663do
1664 IFS=$as_save_IFS
1665 test -z "$as_dir" && as_dir=.
1666 for ac_exec_ext in '' $ac_executable_extensions; do
1667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1668 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1669 ac_prog_rejected=yes
1670 continue
1671 fi
1672 ac_cv_prog_CC="cc"
1673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674 break 2
1675 fi
1676done
1677done
1678
795ca3e5
AK
1679if test $ac_prog_rejected = yes; then
1680 # We found a bogon in the path, so make sure we never use it.
1681 set dummy $ac_cv_prog_CC
1682 shift
ad6254c5 1683 if test $# != 0; then
795ca3e5
AK
1684 # We chose a different compiler from the bogus one.
1685 # However, it has the same basename, so the bogon will be chosen
1686 # first if we set CC to just the basename; use the full file name.
1687 shift
ad6254c5 1688 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
1689 fi
1690fi
1691fi
1692fi
ad6254c5 1693CC=$ac_cv_prog_CC
795ca3e5 1694if test -n "$CC"; then
ad6254c5
AK
1695 echo "$as_me:$LINENO: result: $CC" >&5
1696echo "${ECHO_T}$CC" >&6
795ca3e5 1697else
ad6254c5
AK
1698 echo "$as_me:$LINENO: result: no" >&5
1699echo "${ECHO_T}no" >&6
795ca3e5
AK
1700fi
1701
ad6254c5
AK
1702fi
1703if test -z "$CC"; then
1704 if test -n "$ac_tool_prefix"; then
1705 for ac_prog in cl
1706 do
1707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1708set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1709echo "$as_me:$LINENO: checking for $ac_word" >&5
1710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711if test "${ac_cv_prog_CC+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1713else
1714 if test -n "$CC"; then
1715 ac_cv_prog_CC="$CC" # Let the user override the test.
1716else
ad6254c5
AK
1717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718for as_dir in $PATH
1719do
1720 IFS=$as_save_IFS
1721 test -z "$as_dir" && as_dir=.
1722 for ac_exec_ext in '' $ac_executable_extensions; do
1723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1726 break 2
1727 fi
1728done
1729done
1730
795ca3e5
AK
1731fi
1732fi
ad6254c5 1733CC=$ac_cv_prog_CC
795ca3e5 1734if test -n "$CC"; then
ad6254c5
AK
1735 echo "$as_me:$LINENO: result: $CC" >&5
1736echo "${ECHO_T}$CC" >&6
795ca3e5 1737else
ad6254c5
AK
1738 echo "$as_me:$LINENO: result: no" >&5
1739echo "${ECHO_T}no" >&6
795ca3e5 1740fi
ad6254c5
AK
1741
1742 test -n "$CC" && break
1743 done
1744fi
1745if test -z "$CC"; then
1746 ac_ct_CC=$CC
1747 for ac_prog in cl
1748do
1749 # Extract the first word of "$ac_prog", so it can be a program name with args.
1750set dummy $ac_prog; ac_word=$2
1751echo "$as_me:$LINENO: checking for $ac_word" >&5
1752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1753if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1755else
1756 if test -n "$ac_ct_CC"; then
1757 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1758else
1759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760for as_dir in $PATH
1761do
1762 IFS=$as_save_IFS
1763 test -z "$as_dir" && as_dir=.
1764 for ac_exec_ext in '' $ac_executable_extensions; do
1765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1766 ac_cv_prog_ac_ct_CC="$ac_prog"
1767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1768 break 2
795ca3e5 1769 fi
ad6254c5
AK
1770done
1771done
1772
1773fi
1774fi
1775ac_ct_CC=$ac_cv_prog_ac_ct_CC
1776if test -n "$ac_ct_CC"; then
1777 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1778echo "${ECHO_T}$ac_ct_CC" >&6
1779else
1780 echo "$as_me:$LINENO: result: no" >&5
1781echo "${ECHO_T}no" >&6
795ca3e5
AK
1782fi
1783
ad6254c5
AK
1784 test -n "$ac_ct_CC" && break
1785done
795ca3e5 1786
ad6254c5
AK
1787 CC=$ac_ct_CC
1788fi
1789
1790fi
1791
1792
1793test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1794See \`config.log' for more details." >&5
1795echo "$as_me: error: no acceptable C compiler found in \$PATH
1796See \`config.log' for more details." >&2;}
1797 { (exit 1); exit 1; }; }
1798
1799# Provide some information about the compiler.
1800echo "$as_me:$LINENO:" \
1801 "checking for C compiler version" >&5
1802ac_compiler=`set X $ac_compile; echo $2`
1803{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1804 (eval $ac_compiler --version </dev/null >&5) 2>&5
1805 ac_status=$?
1806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1807 (exit $ac_status); }
1808{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1809 (eval $ac_compiler -v </dev/null >&5) 2>&5
1810 ac_status=$?
1811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1812 (exit $ac_status); }
1813{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1814 (eval $ac_compiler -V </dev/null >&5) 2>&5
1815 ac_status=$?
1816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1817 (exit $ac_status); }
1818
1819cat >conftest.$ac_ext <<_ACEOF
c1c065a3 1820#line $LINENO "configure"
ad6254c5
AK
1821/* confdefs.h. */
1822_ACEOF
1823cat confdefs.h >>conftest.$ac_ext
1824cat >>conftest.$ac_ext <<_ACEOF
1825/* end confdefs.h. */
1826
1827int
1828main ()
1829{
1830
1831 ;
1832 return 0;
1833}
1834_ACEOF
1835ac_clean_files_save=$ac_clean_files
1836ac_clean_files="$ac_clean_files a.out a.exe b.out"
1837# Try to create an executable without -o first, disregard a.out.
1838# It will help us diagnose broken compilers, and finding out an intuition
1839# of exeext.
c1c065a3
AK
1840echo "$as_me:$LINENO: checking for C compiler default output" >&5
1841echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
ad6254c5
AK
1842ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1843if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1844 (eval $ac_link_default) 2>&5
1845 ac_status=$?
1846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847 (exit $ac_status); }; then
1848 # Find the output, starting from the most likely. This scheme is
1849# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1850# resort.
1851
1852# Be careful to initialize this variable, since it used to be cached.
1853# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1854ac_cv_exeext=
1855# b.out is created by i960 compilers.
1856for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1857do
1858 test -f "$ac_file" || continue
1859 case $ac_file in
1860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
c1c065a3 1861 ;;
ad6254c5 1862 conftest.$ac_ext )
c1c065a3
AK
1863 # This is the source file.
1864 ;;
ad6254c5 1865 [ab].out )
c1c065a3
AK
1866 # We found the default executable, but exeext='' is most
1867 # certainly right.
1868 break;;
ad6254c5 1869 *.* )
c1c065a3
AK
1870 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1871 # FIXME: I believe we export ac_cv_exeext for Libtool,
1872 # but it would be cool to find out if it's true. Does anybody
1873 # maintain Libtool? --akim.
1874 export ac_cv_exeext
1875 break;;
ad6254c5 1876 * )
c1c065a3 1877 break;;
ad6254c5
AK
1878 esac
1879done
1880else
1881 echo "$as_me: failed program was:" >&5
1882sed 's/^/| /' conftest.$ac_ext >&5
1883
1884{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1885See \`config.log' for more details." >&5
1886echo "$as_me: error: C compiler cannot create executables
1887See \`config.log' for more details." >&2;}
1888 { (exit 77); exit 77; }; }
1889fi
1890
1891ac_exeext=$ac_cv_exeext
1892echo "$as_me:$LINENO: result: $ac_file" >&5
1893echo "${ECHO_T}$ac_file" >&6
1894
1895# Check the compiler produces executables we can run. If not, either
1896# the compiler is broken, or we cross compile.
1897echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1898echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1899# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1900# If not cross compiling, check that we can run a simple program.
1901if test "$cross_compiling" != yes; then
1902 if { ac_try='./$ac_file'
1903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1904 (eval $ac_try) 2>&5
1905 ac_status=$?
1906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1907 (exit $ac_status); }; }; then
1908 cross_compiling=no
795ca3e5 1909 else
ad6254c5
AK
1910 if test "$cross_compiling" = maybe; then
1911 cross_compiling=yes
1912 else
1913 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1914If you meant to cross compile, use \`--host'.
1915See \`config.log' for more details." >&5
1916echo "$as_me: error: cannot run C compiled programs.
1917If you meant to cross compile, use \`--host'.
1918See \`config.log' for more details." >&2;}
1919 { (exit 1); exit 1; }; }
1920 fi
795ca3e5 1921 fi
80992638 1922fi
ad6254c5
AK
1923echo "$as_me:$LINENO: result: yes" >&5
1924echo "${ECHO_T}yes" >&6
1925
1926rm -f a.out a.exe conftest$ac_cv_exeext b.out
1927ac_clean_files=$ac_clean_files_save
1928# Check the compiler produces executables we can run. If not, either
1929# the compiler is broken, or we cross compile.
1930echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1931echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1932echo "$as_me:$LINENO: result: $cross_compiling" >&5
1933echo "${ECHO_T}$cross_compiling" >&6
1934
1935echo "$as_me:$LINENO: checking for suffix of executables" >&5
1936echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1938 (eval $ac_link) 2>&5
1939 ac_status=$?
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }; then
1942 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1943# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1944# work properly (i.e., refer to `conftest.exe'), while it won't with
1945# `rm'.
1946for ac_file in conftest.exe conftest conftest.*; do
1947 test -f "$ac_file" || continue
1948 case $ac_file in
1949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1950 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c1c065a3
AK
1951 export ac_cv_exeext
1952 break;;
ad6254c5
AK
1953 * ) break;;
1954 esac
1955done
80992638 1956else
ad6254c5
AK
1957 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1958See \`config.log' for more details." >&5
1959echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1960See \`config.log' for more details." >&2;}
1961 { (exit 1); exit 1; }; }
1962fi
1963
1964rm -f conftest$ac_cv_exeext
1965echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1966echo "${ECHO_T}$ac_cv_exeext" >&6
1967
1968rm -f conftest.$ac_ext
1969EXEEXT=$ac_cv_exeext
1970ac_exeext=$EXEEXT
1971echo "$as_me:$LINENO: checking for suffix of object files" >&5
1972echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1973if test "${ac_cv_objext+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 1975else
ad6254c5 1976 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 1977#line $LINENO "configure"
ad6254c5
AK
1978/* confdefs.h. */
1979_ACEOF
1980cat confdefs.h >>conftest.$ac_ext
1981cat >>conftest.$ac_ext <<_ACEOF
1982/* end confdefs.h. */
1983
1984int
1985main ()
1986{
1987
1988 ;
1989 return 0;
1990}
1991_ACEOF
1992rm -f conftest.o conftest.obj
1993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1994 (eval $ac_compile) 2>&5
1995 ac_status=$?
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); }; then
1998 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1999 case $ac_file in
2000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2001 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2002 break;;
2003 esac
2004done
2005else
2006 echo "$as_me: failed program was:" >&5
2007sed 's/^/| /' conftest.$ac_ext >&5
2008
2009{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2010See \`config.log' for more details." >&5
2011echo "$as_me: error: cannot compute suffix of object files: cannot compile
2012See \`config.log' for more details." >&2;}
2013 { (exit 1); exit 1; }; }
2014fi
2015
2016rm -f conftest.$ac_cv_objext conftest.$ac_ext
2017fi
2018echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2019echo "${ECHO_T}$ac_cv_objext" >&6
2020OBJEXT=$ac_cv_objext
2021ac_objext=$OBJEXT
2022echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2023echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2024if test "${ac_cv_c_compiler_gnu+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2026else
2027 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 2028#line $LINENO "configure"
ad6254c5
AK
2029/* confdefs.h. */
2030_ACEOF
2031cat confdefs.h >>conftest.$ac_ext
2032cat >>conftest.$ac_ext <<_ACEOF
2033/* end confdefs.h. */
2034
2035int
2036main ()
2037{
2038#ifndef __GNUC__
2039 choke me
2040#endif
80992638 2041
ad6254c5
AK
2042 ;
2043 return 0;
2044}
2045_ACEOF
2046rm -f conftest.$ac_objext
2047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 2048 (eval $ac_compile) 2>&5
ad6254c5
AK
2049 ac_status=$?
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); } &&
c1c065a3 2052 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2054 (eval $ac_try) 2>&5
2055 ac_status=$?
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }; }; then
2058 ac_compiler_gnu=yes
80992638 2059else
ad6254c5
AK
2060 echo "$as_me: failed program was:" >&5
2061sed 's/^/| /' conftest.$ac_ext >&5
2062
2063ac_compiler_gnu=no
8106cdd5 2064fi
c1c065a3 2065rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5 2066ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 2067
ad6254c5
AK
2068fi
2069echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2070echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2071GCC=`test $ac_compiler_gnu = yes && echo yes`
2072ac_test_CFLAGS=${CFLAGS+set}
2073ac_save_CFLAGS=$CFLAGS
2074CFLAGS="-g"
2075echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2076echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2077if test "${ac_cv_prog_cc_g+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2079else
ad6254c5 2080 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 2081#line $LINENO "configure"
ad6254c5
AK
2082/* confdefs.h. */
2083_ACEOF
2084cat confdefs.h >>conftest.$ac_ext
2085cat >>conftest.$ac_ext <<_ACEOF
2086/* end confdefs.h. */
2087
2088int
2089main ()
2090{
2091
2092 ;
2093 return 0;
2094}
2095_ACEOF
2096rm -f conftest.$ac_objext
2097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 2098 (eval $ac_compile) 2>&5
ad6254c5
AK
2099 ac_status=$?
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); } &&
c1c065a3 2102 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2104 (eval $ac_try) 2>&5
2105 ac_status=$?
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }; }; then
795ca3e5
AK
2108 ac_cv_prog_cc_g=yes
2109else
ad6254c5
AK
2110 echo "$as_me: failed program was:" >&5
2111sed 's/^/| /' conftest.$ac_ext >&5
80992638 2112
ad6254c5 2113ac_cv_prog_cc_g=no
8106cdd5 2114fi
c1c065a3 2115rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
2116fi
2117echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2118echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
795ca3e5 2119if test "$ac_test_CFLAGS" = set; then
ad6254c5 2120 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
2121elif test $ac_cv_prog_cc_g = yes; then
2122 if test "$GCC" = yes; then
2123 CFLAGS="-g -O2"
2124 else
2125 CFLAGS="-g"
2126 fi
2127else
2128 if test "$GCC" = yes; then
2129 CFLAGS="-O2"
2130 else
2131 CFLAGS=
2132 fi
2133fi
ad6254c5
AK
2134echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2135echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2136if test "${ac_cv_prog_cc_stdc+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2138else
2139 ac_cv_prog_cc_stdc=no
2140ac_save_CC=$CC
2141cat >conftest.$ac_ext <<_ACEOF
c1c065a3 2142#line $LINENO "configure"
ad6254c5
AK
2143/* confdefs.h. */
2144_ACEOF
2145cat confdefs.h >>conftest.$ac_ext
2146cat >>conftest.$ac_ext <<_ACEOF
2147/* end confdefs.h. */
2148#include <stdarg.h>
2149#include <stdio.h>
2150#include <sys/types.h>
2151#include <sys/stat.h>
2152/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2153struct buf { int x; };
2154FILE * (*rcsopen) (struct buf *, struct stat *, int);
2155static char *e (p, i)
2156 char **p;
2157 int i;
2158{
2159 return p[i];
2160}
2161static char *f (char * (*g) (char **, int), char **p, ...)
2162{
2163 char *s;
2164 va_list v;
2165 va_start (v,p);
2166 s = g (p, va_arg (v,int));
2167 va_end (v);
2168 return s;
2169}
2170int test (int i, double x);
2171struct s1 {int (*f) (int a);};
2172struct s2 {int (*f) (double a);};
2173int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2174int argc;
2175char **argv;
2176int
2177main ()
2178{
2179return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2180 ;
2181 return 0;
2182}
2183_ACEOF
2184# Don't try gcc -ansi; that turns off useful extensions and
2185# breaks some systems' header files.
2186# AIX -qlanglvl=ansi
2187# Ultrix and OSF/1 -std1
2188# HP-UX 10.20 and later -Ae
2189# HP-UX older versions -Aa -D_HPUX_SOURCE
2190# SVR4 -Xc -D__EXTENSIONS__
2191for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2192do
2193 CC="$ac_save_CC $ac_arg"
2194 rm -f conftest.$ac_objext
2195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 2196 (eval $ac_compile) 2>&5
ad6254c5
AK
2197 ac_status=$?
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); } &&
c1c065a3 2200 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 (eval $ac_try) 2>&5
2203 ac_status=$?
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }; }; then
2206 ac_cv_prog_cc_stdc=$ac_arg
2207break
2208else
2209 echo "$as_me: failed program was:" >&5
2210sed 's/^/| /' conftest.$ac_ext >&5
2211
2212fi
c1c065a3 2213rm -f conftest.$ac_objext
ad6254c5
AK
2214done
2215rm -f conftest.$ac_ext conftest.$ac_objext
2216CC=$ac_save_CC
2217
2218fi
2219
2220case "x$ac_cv_prog_cc_stdc" in
2221 x|xno)
2222 echo "$as_me:$LINENO: result: none needed" >&5
2223echo "${ECHO_T}none needed" >&6 ;;
2224 *)
2225 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2226echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2227 CC="$CC $ac_cv_prog_cc_stdc" ;;
2228esac
2229
2230# Some people use a C++ compiler to compile C. Since we use `exit',
2231# in C++ we need to declare it. In case someone uses the same compiler
2232# for both compiling C and C++ we need to have the C++ compiler decide
2233# the declaration of exit, since it's the most demanding environment.
2234cat >conftest.$ac_ext <<_ACEOF
2235#ifndef __cplusplus
2236 choke me
2237#endif
2238_ACEOF
2239rm -f conftest.$ac_objext
2240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 2241 (eval $ac_compile) 2>&5
ad6254c5
AK
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); } &&
c1c065a3 2245 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247 (eval $ac_try) 2>&5
2248 ac_status=$?
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }; }; then
2251 for ac_declaration in \
c1c065a3
AK
2252 ''\
2253 '#include <stdlib.h>' \
ad6254c5
AK
2254 'extern "C" void std::exit (int) throw (); using std::exit;' \
2255 'extern "C" void std::exit (int); using std::exit;' \
2256 'extern "C" void exit (int) throw ();' \
2257 'extern "C" void exit (int);' \
2258 'void exit (int);'
2259do
2260 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 2261#line $LINENO "configure"
ad6254c5
AK
2262/* confdefs.h. */
2263_ACEOF
2264cat confdefs.h >>conftest.$ac_ext
2265cat >>conftest.$ac_ext <<_ACEOF
2266/* end confdefs.h. */
5c7fc7c4 2267#include <stdlib.h>
c1c065a3 2268$ac_declaration
ad6254c5
AK
2269int
2270main ()
2271{
2272exit (42);
2273 ;
2274 return 0;
2275}
2276_ACEOF
2277rm -f conftest.$ac_objext
2278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 2279 (eval $ac_compile) 2>&5
ad6254c5
AK
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); } &&
c1c065a3 2283 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285 (eval $ac_try) 2>&5
2286 ac_status=$?
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; }; then
2289 :
2290else
2291 echo "$as_me: failed program was:" >&5
2292sed 's/^/| /' conftest.$ac_ext >&5
2293
2294continue
2295fi
c1c065a3 2296rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5 2297 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 2298#line $LINENO "configure"
ad6254c5
AK
2299/* confdefs.h. */
2300_ACEOF
2301cat confdefs.h >>conftest.$ac_ext
2302cat >>conftest.$ac_ext <<_ACEOF
2303/* end confdefs.h. */
2304$ac_declaration
2305int
2306main ()
2307{
2308exit (42);
2309 ;
2310 return 0;
2311}
2312_ACEOF
2313rm -f conftest.$ac_objext
2314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 2315 (eval $ac_compile) 2>&5
ad6254c5
AK
2316 ac_status=$?
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
c1c065a3 2319 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 (eval $ac_try) 2>&5
2322 ac_status=$?
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; }; then
2325 break
2326else
2327 echo "$as_me: failed program was:" >&5
2328sed 's/^/| /' conftest.$ac_ext >&5
2329
2330fi
c1c065a3 2331rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
2332done
2333rm -f conftest*
2334if test -n "$ac_declaration"; then
2335 echo '#ifdef __cplusplus' >>confdefs.h
2336 echo $ac_declaration >>confdefs.h
2337 echo '#endif' >>confdefs.h
2338fi
2339
2340else
2341 echo "$as_me: failed program was:" >&5
2342sed 's/^/| /' conftest.$ac_ext >&5
2343
2344fi
c1c065a3 2345rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
2346ac_ext=c
2347ac_cpp='$CPP $CPPFLAGS'
2348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2350ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5
AK
2351
2352# Find a good install program. We prefer a C program (faster),
2353# so one script is as good as another. But avoid the broken or
2354# incompatible versions:
2355# SysV /etc/install, /usr/sbin/install
2356# SunOS /usr/etc/install
2357# IRIX /sbin/install
2358# AIX /bin/install
ad6254c5 2359# AmigaOS /C/install, which installs bootblocks on floppy discs
795ca3e5
AK
2360# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2361# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2362# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2363# ./install, which can be erroneously created by make from ./install.sh.
ad6254c5
AK
2364echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2365echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
795ca3e5 2366if test -z "$INSTALL"; then
ad6254c5
AK
2367if test "${ac_cv_path_install+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369else
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371for as_dir in $PATH
2372do
2373 IFS=$as_save_IFS
2374 test -z "$as_dir" && as_dir=.
2375 # Account for people who put trailing slashes in PATH elements.
2376case $as_dir/ in
2377 ./ | .// | /cC/* | \
2378 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2379 /usr/ucb/* ) ;;
2380 *)
2381 # OSF1 and SCO ODT 3.0 have their own names for install.
2382 # Don't use installbsd from OSF since it installs stuff as root
2383 # by default.
2384 for ac_prog in ginstall scoinst install; do
2385 for ac_exec_ext in '' $ac_executable_extensions; do
c1c065a3
AK
2386 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2387 if test $ac_prog = install &&
2388 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2389 # AIX install. It has an incompatible calling convention.
2390 :
2391 elif test $ac_prog = install &&
2392 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2393 # program-specific install script used by HP pwplus--don't use.
2394 :
2395 else
2396 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2397 break 3
2398 fi
2399 fi
795ca3e5 2400 done
ad6254c5
AK
2401 done
2402 ;;
2403esac
2404done
2405
795ca3e5
AK
2406
2407fi
2408 if test "${ac_cv_path_install+set}" = set; then
ad6254c5 2409 INSTALL=$ac_cv_path_install
795ca3e5
AK
2410 else
2411 # As a last resort, use the slow shell script. We don't cache a
2412 # path for INSTALL within a source directory, because that will
2413 # break other packages using the cache if that directory is
2414 # removed, or if the path is relative.
ad6254c5 2415 INSTALL=$ac_install_sh
795ca3e5
AK
2416 fi
2417fi
ad6254c5
AK
2418echo "$as_me:$LINENO: result: $INSTALL" >&5
2419echo "${ECHO_T}$INSTALL" >&6
795ca3e5
AK
2420
2421# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2422# It thinks the first close brace ends the variable substitution.
2423test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2424
ad6254c5 2425test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
795ca3e5
AK
2426
2427test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2428
ad6254c5
AK
2429echo "$as_me:$LINENO: checking whether ln -s works" >&5
2430echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2431LN_S=$as_ln_s
2432if test "$LN_S" = "ln -s"; then
2433 echo "$as_me:$LINENO: result: yes" >&5
2434echo "${ECHO_T}yes" >&6
80992638 2435else
ad6254c5
AK
2436 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2437echo "${ECHO_T}no, using $LN_S" >&6
795ca3e5
AK
2438fi
2439
ad6254c5
AK
2440echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2441echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
c1c065a3 2442set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
ad6254c5
AK
2443if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2445else
ad6254c5 2446 cat >conftest.make <<\_ACEOF
795ca3e5 2447all:
ad6254c5
AK
2448 @echo 'ac_maketemp="$(MAKE)"'
2449_ACEOF
795ca3e5 2450# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
ad6254c5 2451eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
795ca3e5
AK
2452if test -n "$ac_maketemp"; then
2453 eval ac_cv_prog_make_${ac_make}_set=yes
2454else
2455 eval ac_cv_prog_make_${ac_make}_set=no
2456fi
ad6254c5 2457rm -f conftest.make
795ca3e5
AK
2458fi
2459if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
ad6254c5
AK
2460 echo "$as_me:$LINENO: result: yes" >&5
2461echo "${ECHO_T}yes" >&6
795ca3e5
AK
2462 SET_MAKE=
2463else
ad6254c5
AK
2464 echo "$as_me:$LINENO: result: no" >&5
2465echo "${ECHO_T}no" >&6
795ca3e5
AK
2466 SET_MAKE="MAKE=${MAKE-make}"
2467fi
2468
ad6254c5
AK
2469if test -n "$ac_tool_prefix"; then
2470 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2471set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2472echo "$as_me:$LINENO: checking for $ac_word" >&5
2473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2474if test "${ac_cv_prog_RANLIB+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2476else
2477 if test -n "$RANLIB"; then
2478 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2479else
ad6254c5
AK
2480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481for as_dir in $PATH
2482do
2483 IFS=$as_save_IFS
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2487 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 break 2
2490 fi
2491done
2492done
2493
795ca3e5
AK
2494fi
2495fi
ad6254c5 2496RANLIB=$ac_cv_prog_RANLIB
795ca3e5 2497if test -n "$RANLIB"; then
ad6254c5
AK
2498 echo "$as_me:$LINENO: result: $RANLIB" >&5
2499echo "${ECHO_T}$RANLIB" >&6
8106cdd5 2500else
ad6254c5
AK
2501 echo "$as_me:$LINENO: result: no" >&5
2502echo "${ECHO_T}no" >&6
8106cdd5
AK
2503fi
2504
795ca3e5 2505fi
ad6254c5
AK
2506if test -z "$ac_cv_prog_RANLIB"; then
2507 ac_ct_RANLIB=$RANLIB
2508 # Extract the first word of "ranlib", so it can be a program name with args.
2509set dummy ranlib; ac_word=$2
2510echo "$as_me:$LINENO: checking for $ac_word" >&5
2511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2512if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2513 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 2514else
ad6254c5
AK
2515 if test -n "$ac_ct_RANLIB"; then
2516 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2517else
2518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519for as_dir in $PATH
2520do
2521 IFS=$as_save_IFS
2522 test -z "$as_dir" && as_dir=.
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2525 ac_cv_prog_ac_ct_RANLIB="ranlib"
2526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 break 2
2528 fi
2529done
795ca3e5 2530done
8106cdd5 2531
ad6254c5 2532 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
795ca3e5 2533fi
80992638 2534fi
ad6254c5
AK
2535ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2536if test -n "$ac_ct_RANLIB"; then
2537 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2538echo "${ECHO_T}$ac_ct_RANLIB" >&6
80992638 2539else
ad6254c5
AK
2540 echo "$as_me:$LINENO: result: no" >&5
2541echo "${ECHO_T}no" >&6
8106cdd5 2542fi
8106cdd5 2543
ad6254c5 2544 RANLIB=$ac_ct_RANLIB
80992638 2545else
ad6254c5 2546 RANLIB="$ac_cv_prog_RANLIB"
80992638 2547fi
795ca3e5 2548
795ca3e5 2549
ad6254c5
AK
2550################################################################################
2551
2552
2553
2554
2555
2556
2557ac_header_dirent=no
2558for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2559 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2560echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
2561echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2562if eval "test \"\${$as_ac_Header+set}\" = set"; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 2564else
ad6254c5 2565 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 2566#line $LINENO "configure"
ad6254c5
AK
2567/* confdefs.h. */
2568_ACEOF
2569cat confdefs.h >>conftest.$ac_ext
2570cat >>conftest.$ac_ext <<_ACEOF
2571/* end confdefs.h. */
2572#include <sys/types.h>
2573#include <$ac_hdr>
2574
2575int
2576main ()
2577{
2578if ((DIR *) 0)
2579return 0;
2580 ;
2581 return 0;
2582}
2583_ACEOF
2584rm -f conftest.$ac_objext
2585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 2586 (eval $ac_compile) 2>&5
ad6254c5
AK
2587 ac_status=$?
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); } &&
c1c065a3 2590 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 (eval $ac_try) 2>&5
2593 ac_status=$?
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; }; then
2596 eval "$as_ac_Header=yes"
8106cdd5 2597else
ad6254c5
AK
2598 echo "$as_me: failed program was:" >&5
2599sed 's/^/| /' conftest.$ac_ext >&5
2600
2601eval "$as_ac_Header=no"
795ca3e5 2602fi
c1c065a3 2603rm -f conftest.$ac_objext conftest.$ac_ext
80992638 2604fi
ad6254c5
AK
2605echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2606echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2607if test `eval echo '${'$as_ac_Header'}'` = yes; then
2608 cat >>confdefs.h <<_ACEOF
2609#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
2610_ACEOF
2611
2612ac_header_dirent=$ac_hdr; break
795ca3e5 2613fi
8106cdd5 2614
ad6254c5
AK
2615done
2616# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2617if test $ac_header_dirent = dirent.h; then
2618 echo "$as_me:$LINENO: checking for library containing opendir" >&5
2619echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2620if test "${ac_cv_search_opendir+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2622else
ad6254c5
AK
2623 ac_func_search_save_LIBS=$LIBS
2624ac_cv_search_opendir=no
2625cat >conftest.$ac_ext <<_ACEOF
c1c065a3 2626#line $LINENO "configure"
ad6254c5
AK
2627/* confdefs.h. */
2628_ACEOF
2629cat confdefs.h >>conftest.$ac_ext
2630cat >>conftest.$ac_ext <<_ACEOF
2631/* end confdefs.h. */
2632
2633/* Override any gcc2 internal prototype to avoid an error. */
2634#ifdef __cplusplus
2635extern "C"
2636#endif
2637/* We use char because int might match the return type of a gcc2
2638 builtin and then its argument prototype would still apply. */
2639char opendir ();
2640int
2641main ()
2642{
2643opendir ();
2644 ;
2645 return 0;
2646}
2647_ACEOF
2648rm -f conftest.$ac_objext conftest$ac_exeext
2649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c1c065a3 2650 (eval $ac_link) 2>&5
ad6254c5
AK
2651 ac_status=$?
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); } &&
c1c065a3 2654 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
2655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656 (eval $ac_try) 2>&5
2657 ac_status=$?
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; }; then
2660 ac_cv_search_opendir="none required"
795ca3e5 2661else
ad6254c5
AK
2662 echo "$as_me: failed program was:" >&5
2663sed 's/^/| /' conftest.$ac_ext >&5
2664
2665fi
c1c065a3 2666rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
2667if test "$ac_cv_search_opendir" = no; then
2668 for ac_lib in dir; do
2669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2670 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 2671#line $LINENO "configure"
ad6254c5
AK
2672/* confdefs.h. */
2673_ACEOF
2674cat confdefs.h >>conftest.$ac_ext
2675cat >>conftest.$ac_ext <<_ACEOF
2676/* end confdefs.h. */
795ca3e5 2677
ad6254c5
AK
2678/* Override any gcc2 internal prototype to avoid an error. */
2679#ifdef __cplusplus
2680extern "C"
2681#endif
2682/* We use char because int might match the return type of a gcc2
2683 builtin and then its argument prototype would still apply. */
2684char opendir ();
2685int
2686main ()
2687{
2688opendir ();
2689 ;
2690 return 0;
2691}
2692_ACEOF
2693rm -f conftest.$ac_objext conftest$ac_exeext
2694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c1c065a3 2695 (eval $ac_link) 2>&5
ad6254c5
AK
2696 ac_status=$?
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } &&
c1c065a3 2699 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701 (eval $ac_try) 2>&5
2702 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; }; then
2705 ac_cv_search_opendir="-l$ac_lib"
2706break
795ca3e5 2707else
ad6254c5
AK
2708 echo "$as_me: failed program was:" >&5
2709sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5
AK
2710
2711fi
c1c065a3 2712rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ad6254c5 2713 done
795ca3e5 2714fi
ad6254c5
AK
2715LIBS=$ac_func_search_save_LIBS
2716fi
2717echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
2718echo "${ECHO_T}$ac_cv_search_opendir" >&6
2719if test "$ac_cv_search_opendir" != no; then
2720 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
795ca3e5
AK
2721
2722fi
2723
795ca3e5 2724else
ad6254c5
AK
2725 echo "$as_me:$LINENO: checking for library containing opendir" >&5
2726echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2727if test "${ac_cv_search_opendir+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2729else
2730 ac_func_search_save_LIBS=$LIBS
2731ac_cv_search_opendir=no
2732cat >conftest.$ac_ext <<_ACEOF
c1c065a3 2733#line $LINENO "configure"
ad6254c5
AK
2734/* confdefs.h. */
2735_ACEOF
2736cat confdefs.h >>conftest.$ac_ext
2737cat >>conftest.$ac_ext <<_ACEOF
2738/* end confdefs.h. */
80992638 2739
ad6254c5
AK
2740/* Override any gcc2 internal prototype to avoid an error. */
2741#ifdef __cplusplus
2742extern "C"
2743#endif
2744/* We use char because int might match the return type of a gcc2
2745 builtin and then its argument prototype would still apply. */
2746char opendir ();
2747int
2748main ()
2749{
2750opendir ();
2751 ;
2752 return 0;
2753}
2754_ACEOF
2755rm -f conftest.$ac_objext conftest$ac_exeext
2756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c1c065a3 2757 (eval $ac_link) 2>&5
ad6254c5
AK
2758 ac_status=$?
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); } &&
c1c065a3 2761 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
2762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763 (eval $ac_try) 2>&5
2764 ac_status=$?
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }; }; then
2767 ac_cv_search_opendir="none required"
795ca3e5 2768else
ad6254c5
AK
2769 echo "$as_me: failed program was:" >&5
2770sed 's/^/| /' conftest.$ac_ext >&5
2771
2772fi
c1c065a3 2773rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
2774if test "$ac_cv_search_opendir" = no; then
2775 for ac_lib in x; do
2776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2777 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 2778#line $LINENO "configure"
ad6254c5
AK
2779/* confdefs.h. */
2780_ACEOF
2781cat confdefs.h >>conftest.$ac_ext
2782cat >>conftest.$ac_ext <<_ACEOF
2783/* end confdefs.h. */
2784
2785/* Override any gcc2 internal prototype to avoid an error. */
2786#ifdef __cplusplus
2787extern "C"
2788#endif
2789/* We use char because int might match the return type of a gcc2
2790 builtin and then its argument prototype would still apply. */
2791char opendir ();
2792int
2793main ()
2794{
2795opendir ();
2796 ;
2797 return 0;
2798}
2799_ACEOF
2800rm -f conftest.$ac_objext conftest$ac_exeext
2801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c1c065a3 2802 (eval $ac_link) 2>&5
ad6254c5
AK
2803 ac_status=$?
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } &&
c1c065a3 2806 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
2807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808 (eval $ac_try) 2>&5
2809 ac_status=$?
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }; }; then
2812 ac_cv_search_opendir="-l$ac_lib"
2813break
2814else
2815 echo "$as_me: failed program was:" >&5
2816sed 's/^/| /' conftest.$ac_ext >&5
80992638 2817
795ca3e5 2818fi
c1c065a3 2819rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
2820 done
2821fi
2822LIBS=$ac_func_search_save_LIBS
795ca3e5 2823fi
ad6254c5
AK
2824echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
2825echo "${ECHO_T}$ac_cv_search_opendir" >&6
2826if test "$ac_cv_search_opendir" != no; then
2827 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8106cdd5 2828
ad6254c5 2829fi
8106cdd5 2830
795ca3e5 2831fi
8106cdd5 2832
ad6254c5
AK
2833ac_ext=c
2834ac_cpp='$CPP $CPPFLAGS'
2835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2837ac_compiler_gnu=$ac_cv_c_compiler_gnu
2838echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2839echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2840# On Suns, sometimes $CPP names a directory.
2841if test -n "$CPP" && test -d "$CPP"; then
2842 CPP=
2843fi
2844if test -z "$CPP"; then
2845 if test "${ac_cv_prog_CPP+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2847else
2848 # Double quotes because CPP needs to be expanded
2849 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2850 do
2851 ac_preproc_ok=false
2852for ac_c_preproc_warn_flag in '' yes
8106cdd5 2853do
ad6254c5
AK
2854 # Use a header file that comes with gcc, so configuring glibc
2855 # with a fresh cross-compiler works.
2856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2857 # <limits.h> exists even on freestanding compilers.
2858 # On the NeXT, cc -E runs the code through the compiler's parser,
2859 # not just through cpp. "Syntax error" is here to catch this case.
2860 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 2861#line $LINENO "configure"
ad6254c5
AK
2862/* confdefs.h. */
2863_ACEOF
2864cat confdefs.h >>conftest.$ac_ext
2865cat >>conftest.$ac_ext <<_ACEOF
2866/* end confdefs.h. */
2867#ifdef __STDC__
2868# include <limits.h>
2869#else
2870# include <assert.h>
2871#endif
c1c065a3 2872 Syntax error
ad6254c5
AK
2873_ACEOF
2874if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2876 ac_status=$?
2877 grep -v '^ *+' conftest.er1 >conftest.err
2878 rm -f conftest.er1
2879 cat conftest.err >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } >/dev/null; then
2882 if test -s conftest.err; then
2883 ac_cpp_err=$ac_c_preproc_warn_flag
2884 else
2885 ac_cpp_err=
2886 fi
2887else
2888 ac_cpp_err=yes
8106cdd5 2889fi
ad6254c5
AK
2890if test -z "$ac_cpp_err"; then
2891 :
2892else
2893 echo "$as_me: failed program was:" >&5
2894sed 's/^/| /' conftest.$ac_ext >&5
2895
2896 # Broken: fails on valid input.
2897continue
2898fi
2899rm -f conftest.err conftest.$ac_ext
2900
2901 # OK, works on sane cases. Now check whether non-existent headers
2902 # can be detected and how.
2903 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 2904#line $LINENO "configure"
ad6254c5
AK
2905/* confdefs.h. */
2906_ACEOF
2907cat confdefs.h >>conftest.$ac_ext
2908cat >>conftest.$ac_ext <<_ACEOF
2909/* end confdefs.h. */
2910#include <ac_nonexistent.h>
2911_ACEOF
2912if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2914 ac_status=$?
2915 grep -v '^ *+' conftest.er1 >conftest.err
2916 rm -f conftest.er1
2917 cat conftest.err >&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); } >/dev/null; then
2920 if test -s conftest.err; then
2921 ac_cpp_err=$ac_c_preproc_warn_flag
2922 else
2923 ac_cpp_err=
2924 fi
2925else
2926 ac_cpp_err=yes
8106cdd5 2927fi
ad6254c5
AK
2928if test -z "$ac_cpp_err"; then
2929 # Broken: success on invalid input.
2930continue
80992638 2931else
ad6254c5
AK
2932 echo "$as_me: failed program was:" >&5
2933sed 's/^/| /' conftest.$ac_ext >&5
2934
2935 # Passes both tests.
2936ac_preproc_ok=:
2937break
795ca3e5 2938fi
ad6254c5
AK
2939rm -f conftest.err conftest.$ac_ext
2940
795ca3e5 2941done
ad6254c5
AK
2942# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2943rm -f conftest.err conftest.$ac_ext
2944if $ac_preproc_ok; then
2945 break
2946fi
795ca3e5 2947
ad6254c5
AK
2948 done
2949 ac_cv_prog_CPP=$CPP
795ca3e5 2950
ad6254c5
AK
2951fi
2952 CPP=$ac_cv_prog_CPP
795ca3e5 2953else
ad6254c5 2954 ac_cv_prog_CPP=$CPP
795ca3e5 2955fi
ad6254c5
AK
2956echo "$as_me:$LINENO: result: $CPP" >&5
2957echo "${ECHO_T}$CPP" >&6
2958ac_preproc_ok=false
2959for ac_c_preproc_warn_flag in '' yes
2960do
2961 # Use a header file that comes with gcc, so configuring glibc
2962 # with a fresh cross-compiler works.
2963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2964 # <limits.h> exists even on freestanding compilers.
2965 # On the NeXT, cc -E runs the code through the compiler's parser,
2966 # not just through cpp. "Syntax error" is here to catch this case.
2967 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 2968#line $LINENO "configure"
ad6254c5
AK
2969/* confdefs.h. */
2970_ACEOF
2971cat confdefs.h >>conftest.$ac_ext
2972cat >>conftest.$ac_ext <<_ACEOF
2973/* end confdefs.h. */
2974#ifdef __STDC__
2975# include <limits.h>
2976#else
2977# include <assert.h>
2978#endif
c1c065a3 2979 Syntax error
ad6254c5
AK
2980_ACEOF
2981if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2983 ac_status=$?
2984 grep -v '^ *+' conftest.er1 >conftest.err
2985 rm -f conftest.er1
2986 cat conftest.err >&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); } >/dev/null; then
2989 if test -s conftest.err; then
2990 ac_cpp_err=$ac_c_preproc_warn_flag
2991 else
2992 ac_cpp_err=
2993 fi
2994else
2995 ac_cpp_err=yes
795ca3e5 2996fi
ad6254c5
AK
2997if test -z "$ac_cpp_err"; then
2998 :
2999else
3000 echo "$as_me: failed program was:" >&5
3001sed 's/^/| /' conftest.$ac_ext >&5
3002
3003 # Broken: fails on valid input.
3004continue
3005fi
3006rm -f conftest.err conftest.$ac_ext
3007
3008 # OK, works on sane cases. Now check whether non-existent headers
3009 # can be detected and how.
3010 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 3011#line $LINENO "configure"
ad6254c5
AK
3012/* confdefs.h. */
3013_ACEOF
3014cat confdefs.h >>conftest.$ac_ext
3015cat >>conftest.$ac_ext <<_ACEOF
3016/* end confdefs.h. */
3017#include <ac_nonexistent.h>
3018_ACEOF
3019if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3021 ac_status=$?
3022 grep -v '^ *+' conftest.er1 >conftest.err
3023 rm -f conftest.er1
3024 cat conftest.err >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } >/dev/null; then
3027 if test -s conftest.err; then
3028 ac_cpp_err=$ac_c_preproc_warn_flag
3029 else
3030 ac_cpp_err=
3031 fi
3032else
3033 ac_cpp_err=yes
3034fi
3035if test -z "$ac_cpp_err"; then
3036 # Broken: success on invalid input.
3037continue
3038else
3039 echo "$as_me: failed program was:" >&5
3040sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 3041
ad6254c5
AK
3042 # Passes both tests.
3043ac_preproc_ok=:
3044break
795ca3e5 3045fi
ad6254c5 3046rm -f conftest.err conftest.$ac_ext
795ca3e5 3047
ad6254c5
AK
3048done
3049# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3050rm -f conftest.err conftest.$ac_ext
3051if $ac_preproc_ok; then
3052 :
795ca3e5 3053else
ad6254c5
AK
3054 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3055See \`config.log' for more details." >&5
3056echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3057See \`config.log' for more details." >&2;}
3058 { (exit 1); exit 1; }; }
795ca3e5 3059fi
795ca3e5 3060
ad6254c5
AK
3061ac_ext=c
3062ac_cpp='$CPP $CPPFLAGS'
3063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3065ac_compiler_gnu=$ac_cv_c_compiler_gnu
3066
3067
3068echo "$as_me:$LINENO: checking for egrep" >&5
3069echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3070if test "${ac_cv_prog_egrep+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072else
3073 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3074 then ac_cv_prog_egrep='grep -E'
3075 else ac_cv_prog_egrep='egrep'
3076 fi
795ca3e5 3077fi
ad6254c5
AK
3078echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3079echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3080 EGREP=$ac_cv_prog_egrep
80992638 3081
795ca3e5 3082
ad6254c5
AK
3083echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3084echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3085if test "${ac_cv_header_stdc+set}" = set; then
3086 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3087else
ad6254c5 3088 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 3089#line $LINENO "configure"
ad6254c5
AK
3090/* confdefs.h. */
3091_ACEOF
3092cat confdefs.h >>conftest.$ac_ext
3093cat >>conftest.$ac_ext <<_ACEOF
3094/* end confdefs.h. */
80992638 3095#include <stdlib.h>
ad6254c5
AK
3096#include <stdarg.h>
3097#include <string.h>
3098#include <float.h>
3099
3100int
3101main ()
3102{
3103
3104 ;
3105 return 0;
3106}
3107_ACEOF
3108rm -f conftest.$ac_objext
3109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 3110 (eval $ac_compile) 2>&5
ad6254c5
AK
3111 ac_status=$?
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); } &&
c1c065a3 3114 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116 (eval $ac_try) 2>&5
3117 ac_status=$?
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }; }; then
3120 ac_cv_header_stdc=yes
795ca3e5 3121else
ad6254c5
AK
3122 echo "$as_me: failed program was:" >&5
3123sed 's/^/| /' conftest.$ac_ext >&5
3124
3125ac_cv_header_stdc=no
795ca3e5 3126fi
c1c065a3 3127rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3128
3129if test $ac_cv_header_stdc = yes; then
3130 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3131 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 3132#line $LINENO "configure"
ad6254c5
AK
3133/* confdefs.h. */
3134_ACEOF
3135cat confdefs.h >>conftest.$ac_ext
3136cat >>conftest.$ac_ext <<_ACEOF
3137/* end confdefs.h. */
3138#include <string.h>
8106cdd5 3139
ad6254c5
AK
3140_ACEOF
3141if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3142 $EGREP "memchr" >/dev/null 2>&1; then
3143 :
3144else
3145 ac_cv_header_stdc=no
80992638 3146fi
ad6254c5 3147rm -f conftest*
795ca3e5
AK
3148
3149fi
3150
ad6254c5
AK
3151if test $ac_cv_header_stdc = yes; then
3152 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3153 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 3154#line $LINENO "configure"
ad6254c5
AK
3155/* confdefs.h. */
3156_ACEOF
3157cat confdefs.h >>conftest.$ac_ext
3158cat >>conftest.$ac_ext <<_ACEOF
3159/* end confdefs.h. */
80992638 3160#include <stdlib.h>
ad6254c5
AK
3161
3162_ACEOF
80992638 3163if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
3164 $EGREP "free" >/dev/null 2>&1; then
3165 :
795ca3e5 3166else
ad6254c5 3167 ac_cv_header_stdc=no
795ca3e5 3168fi
80992638 3169rm -f conftest*
8106cdd5 3170
795ca3e5
AK
3171fi
3172
ad6254c5
AK
3173if test $ac_cv_header_stdc = yes; then
3174 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3175 if test "$cross_compiling" = yes; then
3176 :
795ca3e5 3177else
ad6254c5 3178 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 3179#line $LINENO "configure"
ad6254c5
AK
3180/* confdefs.h. */
3181_ACEOF
3182cat confdefs.h >>conftest.$ac_ext
3183cat >>conftest.$ac_ext <<_ACEOF
3184/* end confdefs.h. */
3185#include <ctype.h>
3186#if ((' ' & 0x0FF) == 0x020)
3187# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3188# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3189#else
3190# define ISLOWER(c) \
c1c065a3
AK
3191 (('a' <= (c) && (c) <= 'i') \
3192 || ('j' <= (c) && (c) <= 'r') \
3193 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 3194# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 3195#endif
ad6254c5
AK
3196
3197#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3198int
3199main ()
3200{
3201 int i;
3202 for (i = 0; i < 256; i++)
3203 if (XOR (islower (i), ISLOWER (i))
c1c065a3 3204 || toupper (i) != TOUPPER (i))
ad6254c5
AK
3205 exit(2);
3206 exit (0);
3207}
3208_ACEOF
3209rm -f conftest$ac_exeext
3210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3211 (eval $ac_link) 2>&5
3212 ac_status=$?
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216 (eval $ac_try) 2>&5
3217 ac_status=$?
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3220 :
795ca3e5 3221else
ad6254c5
AK
3222 echo "$as_me: program exited with status $ac_status" >&5
3223echo "$as_me: failed program was:" >&5
3224sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 3225
ad6254c5
AK
3226( exit $ac_status )
3227ac_cv_header_stdc=no
80992638 3228fi
c1c065a3 3229rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3230fi
3231fi
3232fi
3233echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3234echo "${ECHO_T}$ac_cv_header_stdc" >&6
3235if test $ac_cv_header_stdc = yes; then
3236
3237cat >>confdefs.h <<\_ACEOF
3238#define STDC_HEADERS 1
3239_ACEOF
795ca3e5
AK
3240
3241fi
3242
ad6254c5
AK
3243echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3244echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3245if test "${ac_cv_header_sys_wait_h+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 3247else
ad6254c5 3248 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 3249#line $LINENO "configure"
ad6254c5
AK
3250/* confdefs.h. */
3251_ACEOF
3252cat confdefs.h >>conftest.$ac_ext
3253cat >>conftest.$ac_ext <<_ACEOF
3254/* end confdefs.h. */
80992638 3255#include <sys/types.h>
ad6254c5
AK
3256#include <sys/wait.h>
3257#ifndef WEXITSTATUS
3258# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3259#endif
3260#ifndef WIFEXITED
3261# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3262#endif
3263
3264int
3265main ()
3266{
3267 int s;
3268 wait (&s);
3269 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3270 ;
3271 return 0;
3272}
3273_ACEOF
3274rm -f conftest.$ac_objext
3275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 3276 (eval $ac_compile) 2>&5
ad6254c5
AK
3277 ac_status=$?
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); } &&
c1c065a3 3280 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3282 (eval $ac_try) 2>&5
3283 ac_status=$?
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }; }; then
3286 ac_cv_header_sys_wait_h=yes
3287else
3288 echo "$as_me: failed program was:" >&5
3289sed 's/^/| /' conftest.$ac_ext >&5
3290
3291ac_cv_header_sys_wait_h=no
8106cdd5 3292fi
c1c065a3 3293rm -f conftest.$ac_objext conftest.$ac_ext
795ca3e5 3294fi
ad6254c5
AK
3295echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3296echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3297if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 3298
ad6254c5
AK
3299cat >>confdefs.h <<\_ACEOF
3300#define HAVE_SYS_WAIT_H 1
3301_ACEOF
795ca3e5
AK
3302
3303fi
3304
ad6254c5
AK
3305echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3306echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3307if test "${ac_cv_header_time+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3309else
ad6254c5 3310 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 3311#line $LINENO "configure"
ad6254c5
AK
3312/* confdefs.h. */
3313_ACEOF
3314cat confdefs.h >>conftest.$ac_ext
3315cat >>conftest.$ac_ext <<_ACEOF
3316/* end confdefs.h. */
795ca3e5
AK
3317#include <sys/types.h>
3318#include <sys/time.h>
3319#include <time.h>
ad6254c5
AK
3320
3321int
3322main ()
3323{
3324if ((struct tm *) 0)
3325return 0;
3326 ;
3327 return 0;
3328}
3329_ACEOF
3330rm -f conftest.$ac_objext
3331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 3332 (eval $ac_compile) 2>&5
ad6254c5
AK
3333 ac_status=$?
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } &&
c1c065a3 3336 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3338 (eval $ac_try) 2>&5
3339 ac_status=$?
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; }; then
795ca3e5
AK
3342 ac_cv_header_time=yes
3343else
ad6254c5
AK
3344 echo "$as_me: failed program was:" >&5
3345sed 's/^/| /' conftest.$ac_ext >&5
3346
3347ac_cv_header_time=no
795ca3e5 3348fi
c1c065a3 3349rm -f conftest.$ac_objext conftest.$ac_ext
795ca3e5 3350fi
ad6254c5
AK
3351echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3352echo "${ECHO_T}$ac_cv_header_time" >&6
80992638 3353if test $ac_cv_header_time = yes; then
ad6254c5
AK
3354
3355cat >>confdefs.h <<\_ACEOF
795ca3e5 3356#define TIME_WITH_SYS_TIME 1
ad6254c5 3357_ACEOF
b896caa1 3358
8106cdd5 3359fi
b896caa1 3360
b896caa1 3361
ad6254c5 3362# On IRIX 5.3, sys/types and inttypes.h are conflicting.
b896caa1 3363
b896caa1
AK
3364
3365
795ca3e5 3366
8106cdd5 3367
80992638 3368
795ca3e5 3369
a38df97f 3370
80992638 3371
ad6254c5 3372for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
c1c065a3 3373 inttypes.h stdint.h unistd.h
ad6254c5
AK
3374do
3375as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3376echo "$as_me:$LINENO: checking for $ac_header" >&5
3377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3378if eval "test \"\${$as_ac_Header+set}\" = set"; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3380else
3381 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 3382#line $LINENO "configure"
ad6254c5
AK
3383/* confdefs.h. */
3384_ACEOF
3385cat confdefs.h >>conftest.$ac_ext
3386cat >>conftest.$ac_ext <<_ACEOF
3387/* end confdefs.h. */
3388$ac_includes_default
3389
3390#include <$ac_header>
3391_ACEOF
3392rm -f conftest.$ac_objext
3393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 3394 (eval $ac_compile) 2>&5
ad6254c5
AK
3395 ac_status=$?
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); } &&
c1c065a3 3398 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3400 (eval $ac_try) 2>&5
3401 ac_status=$?
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }; }; then
3404 eval "$as_ac_Header=yes"
3405else
3406 echo "$as_me: failed program was:" >&5
3407sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3408
ad6254c5
AK
3409eval "$as_ac_Header=no"
3410fi
c1c065a3 3411rm -f conftest.$ac_objext conftest.$ac_ext
a38df97f 3412fi
ad6254c5
AK
3413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3414echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3415if test `eval echo '${'$as_ac_Header'}'` = yes; then
3416 cat >>confdefs.h <<_ACEOF
3417#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3418_ACEOF
a38df97f 3419
80992638
AK
3420fi
3421
ad6254c5
AK
3422done
3423
7d1552c9 3424
7d1552c9 3425
80992638 3426
5a52dca9 3427
5a52dca9 3428
ad6254c5
AK
3429
3430
3431
3432
3433
3434for 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
3435do
3436as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3437if eval "test \"\${$as_ac_Header+set}\" = set"; then
3438 echo "$as_me:$LINENO: checking for $ac_header" >&5
3439echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3440if eval "test \"\${$as_ac_Header+set}\" = set"; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3442fi
3443echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3444echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3445else
3446 # Is the header compilable?
3447echo "$as_me:$LINENO: checking $ac_header usability" >&5
3448echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3449cat >conftest.$ac_ext <<_ACEOF
c1c065a3 3450#line $LINENO "configure"
ad6254c5
AK
3451/* confdefs.h. */
3452_ACEOF
3453cat confdefs.h >>conftest.$ac_ext
3454cat >>conftest.$ac_ext <<_ACEOF
3455/* end confdefs.h. */
3456$ac_includes_default
3457#include <$ac_header>
3458_ACEOF
3459rm -f conftest.$ac_objext
3460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 3461 (eval $ac_compile) 2>&5
ad6254c5
AK
3462 ac_status=$?
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); } &&
c1c065a3 3465 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467 (eval $ac_try) 2>&5
3468 ac_status=$?
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); }; }; then
3471 ac_header_compiler=yes
3472else
3473 echo "$as_me: failed program was:" >&5
3474sed 's/^/| /' conftest.$ac_ext >&5
3475
3476ac_header_compiler=no
3477fi
c1c065a3 3478rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3479echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3480echo "${ECHO_T}$ac_header_compiler" >&6
3481
3482# Is the header present?
3483echo "$as_me:$LINENO: checking $ac_header presence" >&5
3484echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3485cat >conftest.$ac_ext <<_ACEOF
c1c065a3 3486#line $LINENO "configure"
ad6254c5
AK
3487/* confdefs.h. */
3488_ACEOF
3489cat confdefs.h >>conftest.$ac_ext
3490cat >>conftest.$ac_ext <<_ACEOF
3491/* end confdefs.h. */
3492#include <$ac_header>
3493_ACEOF
3494if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3496 ac_status=$?
3497 grep -v '^ *+' conftest.er1 >conftest.err
3498 rm -f conftest.er1
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } >/dev/null; then
3502 if test -s conftest.err; then
3503 ac_cpp_err=$ac_c_preproc_warn_flag
3504 else
3505 ac_cpp_err=
3506 fi
3507else
3508 ac_cpp_err=yes
3509fi
3510if test -z "$ac_cpp_err"; then
3511 ac_header_preproc=yes
3512else
3513 echo "$as_me: failed program was:" >&5
3514sed 's/^/| /' conftest.$ac_ext >&5
3515
3516 ac_header_preproc=no
3517fi
3518rm -f conftest.err conftest.$ac_ext
3519echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3520echo "${ECHO_T}$ac_header_preproc" >&6
3521
3522# So? What about this header?
c1c065a3
AK
3523case $ac_header_compiler:$ac_header_preproc in
3524 yes:no )
ad6254c5
AK
3525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3526echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
c1c065a3
AK
3527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3528echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3529 (
3530 cat <<\_ASBOX
3531## ------------------------------------ ##
3532## Report this to bug-autoconf@gnu.org. ##
3533## ------------------------------------ ##
3534_ASBOX
3535 ) |
3536 sed "s/^/$as_me: WARNING: /" >&2
ad6254c5 3537 ;;
c1c065a3 3538 no:yes )
ad6254c5
AK
3539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3540echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
c1c065a3
AK
3541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3542echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
ad6254c5
AK
3543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3544echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3545 (
3546 cat <<\_ASBOX
c1c065a3
AK
3547## ------------------------------------ ##
3548## Report this to bug-autoconf@gnu.org. ##
3549## ------------------------------------ ##
ad6254c5
AK
3550_ASBOX
3551 ) |
3552 sed "s/^/$as_me: WARNING: /" >&2
3553 ;;
3554esac
3555echo "$as_me:$LINENO: checking for $ac_header" >&5
3556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3557if eval "test \"\${$as_ac_Header+set}\" = set"; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559else
c1c065a3 3560 eval "$as_ac_Header=$ac_header_preproc"
b896caa1 3561fi
ad6254c5
AK
3562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3563echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3564
3565fi
3566if test `eval echo '${'$as_ac_Header'}'` = yes; then
3567 cat >>confdefs.h <<_ACEOF
3568#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3569_ACEOF
b896caa1 3570
d8ac0fbc 3571else
ad6254c5
AK
3572 { { echo "$as_me:$LINENO: error: bailing out" >&5
3573echo "$as_me: error: bailing out" >&2;}
3574 { (exit 1); exit 1; }; }
80992638
AK
3575fi
3576
ad6254c5 3577done
d8ac0fbc 3578
d8ac0fbc 3579
d8ac0fbc 3580
80992638 3581
d3c8211f 3582
d3c8211f 3583
d3c8211f 3584
80992638 3585
4922197a 3586
4922197a 3587
ad6254c5
AK
3588
3589
3590
3591for 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
3592do
3593as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3594if eval "test \"\${$as_ac_Header+set}\" = set"; then
3595 echo "$as_me:$LINENO: checking for $ac_header" >&5
3596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3597if eval "test \"\${$as_ac_Header+set}\" = set"; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3599fi
3600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3601echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3602else
3603 # Is the header compilable?
3604echo "$as_me:$LINENO: checking $ac_header usability" >&5
3605echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3606cat >conftest.$ac_ext <<_ACEOF
c1c065a3 3607#line $LINENO "configure"
ad6254c5
AK
3608/* confdefs.h. */
3609_ACEOF
3610cat confdefs.h >>conftest.$ac_ext
3611cat >>conftest.$ac_ext <<_ACEOF
3612/* end confdefs.h. */
3613$ac_includes_default
3614#include <$ac_header>
3615_ACEOF
3616rm -f conftest.$ac_objext
3617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 3618 (eval $ac_compile) 2>&5
ad6254c5
AK
3619 ac_status=$?
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
c1c065a3 3622 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 (eval $ac_try) 2>&5
3625 ac_status=$?
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; }; then
3628 ac_header_compiler=yes
3629else
3630 echo "$as_me: failed program was:" >&5
3631sed 's/^/| /' conftest.$ac_ext >&5
3632
3633ac_header_compiler=no
3634fi
c1c065a3 3635rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3636echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3637echo "${ECHO_T}$ac_header_compiler" >&6
3638
3639# Is the header present?
3640echo "$as_me:$LINENO: checking $ac_header presence" >&5
3641echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3642cat >conftest.$ac_ext <<_ACEOF
c1c065a3 3643#line $LINENO "configure"
ad6254c5
AK
3644/* confdefs.h. */
3645_ACEOF
3646cat confdefs.h >>conftest.$ac_ext
3647cat >>conftest.$ac_ext <<_ACEOF
3648/* end confdefs.h. */
3649#include <$ac_header>
3650_ACEOF
3651if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3653 ac_status=$?
3654 grep -v '^ *+' conftest.er1 >conftest.err
3655 rm -f conftest.er1
3656 cat conftest.err >&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } >/dev/null; then
3659 if test -s conftest.err; then
3660 ac_cpp_err=$ac_c_preproc_warn_flag
3661 else
3662 ac_cpp_err=
3663 fi
3664else
3665 ac_cpp_err=yes
4922197a 3666fi
ad6254c5
AK
3667if test -z "$ac_cpp_err"; then
3668 ac_header_preproc=yes
3669else
3670 echo "$as_me: failed program was:" >&5
3671sed 's/^/| /' conftest.$ac_ext >&5
3672
3673 ac_header_preproc=no
3674fi
3675rm -f conftest.err conftest.$ac_ext
3676echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3677echo "${ECHO_T}$ac_header_preproc" >&6
3678
3679# So? What about this header?
c1c065a3
AK
3680case $ac_header_compiler:$ac_header_preproc in
3681 yes:no )
ad6254c5
AK
3682 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3683echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
c1c065a3
AK
3684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3685echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3686 (
3687 cat <<\_ASBOX
3688## ------------------------------------ ##
3689## Report this to bug-autoconf@gnu.org. ##
3690## ------------------------------------ ##
3691_ASBOX
3692 ) |
3693 sed "s/^/$as_me: WARNING: /" >&2
ad6254c5 3694 ;;
c1c065a3 3695 no:yes )
ad6254c5
AK
3696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3697echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
c1c065a3
AK
3698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3699echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
ad6254c5
AK
3700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3701echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3702 (
3703 cat <<\_ASBOX
c1c065a3
AK
3704## ------------------------------------ ##
3705## Report this to bug-autoconf@gnu.org. ##
3706## ------------------------------------ ##
ad6254c5
AK
3707_ASBOX
3708 ) |
3709 sed "s/^/$as_me: WARNING: /" >&2
3710 ;;
3711esac
3712echo "$as_me:$LINENO: checking for $ac_header" >&5
3713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3714if eval "test \"\${$as_ac_Header+set}\" = set"; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3716else
c1c065a3 3717 eval "$as_ac_Header=$ac_header_preproc"
ad6254c5
AK
3718fi
3719echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3720echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3721
3722fi
3723if test `eval echo '${'$as_ac_Header'}'` = yes; then
3724 cat >>confdefs.h <<_ACEOF
3725#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3726_ACEOF
4922197a 3727
4922197a 3728else
ad6254c5
AK
3729 { { echo "$as_me:$LINENO: error: bailing out" >&5
3730echo "$as_me: error: bailing out" >&2;}
3731 { (exit 1); exit 1; }; }
80992638
AK
3732fi
3733
ad6254c5 3734done
4922197a 3735
4922197a 3736
ad6254c5
AK
3737case "$host_os" in
3738 linux*)
4922197a 3739
ad6254c5
AK
3740
3741
3742for ac_header in asm/byteorder.h linux/fs.h malloc.h
3743do
3744as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3745if eval "test \"\${$as_ac_Header+set}\" = set"; then
3746 echo "$as_me:$LINENO: checking for $ac_header" >&5
3747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3748if eval "test \"\${$as_ac_Header+set}\" = set"; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750fi
3751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3752echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
795ca3e5 3753else
ad6254c5
AK
3754 # Is the header compilable?
3755echo "$as_me:$LINENO: checking $ac_header usability" >&5
3756echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3757cat >conftest.$ac_ext <<_ACEOF
c1c065a3 3758#line $LINENO "configure"
ad6254c5
AK
3759/* confdefs.h. */
3760_ACEOF
3761cat confdefs.h >>conftest.$ac_ext
3762cat >>conftest.$ac_ext <<_ACEOF
3763/* end confdefs.h. */
3764$ac_includes_default
3765#include <$ac_header>
3766_ACEOF
3767rm -f conftest.$ac_objext
3768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 3769 (eval $ac_compile) 2>&5
ad6254c5
AK
3770 ac_status=$?
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } &&
c1c065a3 3773 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775 (eval $ac_try) 2>&5
3776 ac_status=$?
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); }; }; then
3779 ac_header_compiler=yes
3780else
3781 echo "$as_me: failed program was:" >&5
3782sed 's/^/| /' conftest.$ac_ext >&5
3783
3784ac_header_compiler=no
3785fi
c1c065a3 3786rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3787echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3788echo "${ECHO_T}$ac_header_compiler" >&6
3789
3790# Is the header present?
3791echo "$as_me:$LINENO: checking $ac_header presence" >&5
3792echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3793cat >conftest.$ac_ext <<_ACEOF
c1c065a3 3794#line $LINENO "configure"
ad6254c5
AK
3795/* confdefs.h. */
3796_ACEOF
3797cat confdefs.h >>conftest.$ac_ext
3798cat >>conftest.$ac_ext <<_ACEOF
3799/* end confdefs.h. */
3800#include <$ac_header>
3801_ACEOF
3802if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3804 ac_status=$?
3805 grep -v '^ *+' conftest.er1 >conftest.err
3806 rm -f conftest.er1
3807 cat conftest.err >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } >/dev/null; then
3810 if test -s conftest.err; then
3811 ac_cpp_err=$ac_c_preproc_warn_flag
3812 else
3813 ac_cpp_err=
3814 fi
3815else
3816 ac_cpp_err=yes
3817fi
3818if test -z "$ac_cpp_err"; then
3819 ac_header_preproc=yes
3820else
3821 echo "$as_me: failed program was:" >&5
3822sed 's/^/| /' conftest.$ac_ext >&5
3823
3824 ac_header_preproc=no
3825fi
3826rm -f conftest.err conftest.$ac_ext
3827echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3828echo "${ECHO_T}$ac_header_preproc" >&6
3829
3830# So? What about this header?
c1c065a3
AK
3831case $ac_header_compiler:$ac_header_preproc in
3832 yes:no )
ad6254c5
AK
3833 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3834echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
c1c065a3
AK
3835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3836echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3837 (
3838 cat <<\_ASBOX
3839## ------------------------------------ ##
3840## Report this to bug-autoconf@gnu.org. ##
3841## ------------------------------------ ##
3842_ASBOX
3843 ) |
3844 sed "s/^/$as_me: WARNING: /" >&2
ad6254c5 3845 ;;
c1c065a3 3846 no:yes )
ad6254c5
AK
3847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3848echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
c1c065a3
AK
3849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3850echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
ad6254c5
AK
3851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3852echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3853 (
3854 cat <<\_ASBOX
c1c065a3
AK
3855## ------------------------------------ ##
3856## Report this to bug-autoconf@gnu.org. ##
3857## ------------------------------------ ##
ad6254c5
AK
3858_ASBOX
3859 ) |
3860 sed "s/^/$as_me: WARNING: /" >&2
3861 ;;
3862esac
3863echo "$as_me:$LINENO: checking for $ac_header" >&5
3864echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3865if eval "test \"\${$as_ac_Header+set}\" = set"; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867else
c1c065a3 3868 eval "$as_ac_Header=$ac_header_preproc"
80992638 3869fi
ad6254c5
AK
3870echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3871echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
80992638 3872
ad6254c5
AK
3873fi
3874if test `eval echo '${'$as_ac_Header'}'` = yes; then
3875 cat >>confdefs.h <<_ACEOF
3876#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3877_ACEOF
795ca3e5 3878
795ca3e5 3879else
ad6254c5
AK
3880 { { echo "$as_me:$LINENO: error: bailing out" >&5
3881echo "$as_me: error: bailing out" >&2;}
3882 { (exit 1); exit 1; }; }
80992638
AK
3883fi
3884
ad6254c5
AK
3885done
3886 ;;
3887 darwin*)
3888
795ca3e5 3889
ad6254c5
AK
3890for ac_header in machine/endian.h sys/disk.h
3891do
3892as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3893if eval "test \"\${$as_ac_Header+set}\" = set"; then
3894 echo "$as_me:$LINENO: checking for $ac_header" >&5
3895echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3896if eval "test \"\${$as_ac_Header+set}\" = set"; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898fi
3899echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3900echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3901else
3902 # Is the header compilable?
3903echo "$as_me:$LINENO: checking $ac_header usability" >&5
3904echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3905cat >conftest.$ac_ext <<_ACEOF
c1c065a3 3906#line $LINENO "configure"
ad6254c5
AK
3907/* confdefs.h. */
3908_ACEOF
3909cat confdefs.h >>conftest.$ac_ext
3910cat >>conftest.$ac_ext <<_ACEOF
3911/* end confdefs.h. */
3912$ac_includes_default
3913#include <$ac_header>
3914_ACEOF
3915rm -f conftest.$ac_objext
3916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 3917 (eval $ac_compile) 2>&5
ad6254c5
AK
3918 ac_status=$?
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } &&
c1c065a3 3921 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923 (eval $ac_try) 2>&5
3924 ac_status=$?
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); }; }; then
3927 ac_header_compiler=yes
3928else
3929 echo "$as_me: failed program was:" >&5
3930sed 's/^/| /' conftest.$ac_ext >&5
3931
3932ac_header_compiler=no
3933fi
c1c065a3 3934rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3935echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3936echo "${ECHO_T}$ac_header_compiler" >&6
3937
3938# Is the header present?
3939echo "$as_me:$LINENO: checking $ac_header presence" >&5
3940echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3941cat >conftest.$ac_ext <<_ACEOF
c1c065a3 3942#line $LINENO "configure"
ad6254c5
AK
3943/* confdefs.h. */
3944_ACEOF
3945cat confdefs.h >>conftest.$ac_ext
3946cat >>conftest.$ac_ext <<_ACEOF
3947/* end confdefs.h. */
3948#include <$ac_header>
3949_ACEOF
3950if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3952 ac_status=$?
3953 grep -v '^ *+' conftest.er1 >conftest.err
3954 rm -f conftest.er1
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } >/dev/null; then
3958 if test -s conftest.err; then
3959 ac_cpp_err=$ac_c_preproc_warn_flag
3960 else
3961 ac_cpp_err=
3962 fi
3963else
3964 ac_cpp_err=yes
3965fi
3966if test -z "$ac_cpp_err"; then
3967 ac_header_preproc=yes
3968else
3969 echo "$as_me: failed program was:" >&5
3970sed 's/^/| /' conftest.$ac_ext >&5
3971
3972 ac_header_preproc=no
3973fi
3974rm -f conftest.err conftest.$ac_ext
3975echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3976echo "${ECHO_T}$ac_header_preproc" >&6
3977
3978# So? What about this header?
c1c065a3
AK
3979case $ac_header_compiler:$ac_header_preproc in
3980 yes:no )
ad6254c5
AK
3981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3982echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
c1c065a3
AK
3983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3984echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3985 (
3986 cat <<\_ASBOX
3987## ------------------------------------ ##
3988## Report this to bug-autoconf@gnu.org. ##
3989## ------------------------------------ ##
3990_ASBOX
3991 ) |
3992 sed "s/^/$as_me: WARNING: /" >&2
ad6254c5 3993 ;;
c1c065a3 3994 no:yes )
ad6254c5
AK
3995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3996echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
c1c065a3
AK
3997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3998echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
ad6254c5
AK
3999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4000echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4001 (
4002 cat <<\_ASBOX
c1c065a3
AK
4003## ------------------------------------ ##
4004## Report this to bug-autoconf@gnu.org. ##
4005## ------------------------------------ ##
ad6254c5
AK
4006_ASBOX
4007 ) |
4008 sed "s/^/$as_me: WARNING: /" >&2
4009 ;;
4010esac
4011echo "$as_me:$LINENO: checking for $ac_header" >&5
4012echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4013if eval "test \"\${$as_ac_Header+set}\" = set"; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4015else
c1c065a3 4016 eval "$as_ac_Header=$ac_header_preproc"
b896caa1 4017fi
ad6254c5
AK
4018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4019echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
b896caa1 4020
ad6254c5
AK
4021fi
4022if test `eval echo '${'$as_ac_Header'}'` = yes; then
4023 cat >>confdefs.h <<_ACEOF
4024#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4025_ACEOF
4026
4027else
4028 { { echo "$as_me:$LINENO: error: bailing out" >&5
4029echo "$as_me: error: bailing out" >&2;}
4030 { (exit 1); exit 1; }; }
80992638
AK
4031fi
4032
ad6254c5
AK
4033done
4034 ;;
4035esac
d3c8211f 4036
80992638 4037################################################################################
ad6254c5
AK
4038echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4039echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4040if test "${ac_cv_c_const+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
d3c8211f 4042else
ad6254c5 4043 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 4044#line $LINENO "configure"
ad6254c5
AK
4045/* confdefs.h. */
4046_ACEOF
4047cat confdefs.h >>conftest.$ac_ext
4048cat >>conftest.$ac_ext <<_ACEOF
4049/* end confdefs.h. */
4050
4051int
4052main ()
4053{
4054/* FIXME: Include the comments suggested by Paul. */
4055#ifndef __cplusplus
4056 /* Ultrix mips cc rejects this. */
4057 typedef int charset[2];
4058 const charset x;
4059 /* SunOS 4.1.1 cc rejects this. */
4060 char const *const *ccp;
4061 char **p;
4062 /* NEC SVR4.0.2 mips cc rejects this. */
4063 struct point {int x, y;};
4064 static struct point const zero = {0,0};
4065 /* AIX XL C 1.02.0.0 rejects this.
4066 It does not let you subtract one const X* pointer from another in
4067 an arm of an if-expression whose if-part is not a constant
4068 expression */
4069 const char *g = "string";
4070 ccp = &g + (g ? g-g : 0);
4071 /* HPUX 7.0 cc rejects these. */
4072 ++ccp;
4073 p = (char**) ccp;
4074 ccp = (char const *const *) p;
4075 { /* SCO 3.2v4 cc rejects this. */
4076 char *t;
4077 char const *s = 0 ? (char *) 0 : (char const *) 0;
4078
4079 *t++ = 0;
4080 }
4081 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4082 int x[] = {25, 17};
4083 const int *foo = &x[0];
4084 ++foo;
4085 }
4086 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4087 typedef const int *iptr;
4088 iptr p = 0;
4089 ++p;
4090 }
4091 { /* AIX XL C 1.02.0.0 rejects this saying
4092 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4093 struct s { int j; const int *ap[3]; };
4094 struct s *b; b->j = 5;
4095 }
4096 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4097 const int foo = 10;
4098 }
4099#endif
4100
4101 ;
4102 return 0;
4103}
4104_ACEOF
4105rm -f conftest.$ac_objext
4106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 4107 (eval $ac_compile) 2>&5
ad6254c5
AK
4108 ac_status=$?
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } &&
c1c065a3 4111 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 (eval $ac_try) 2>&5
4114 ac_status=$?
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; }; then
4117 ac_cv_c_const=yes
4118else
4119 echo "$as_me: failed program was:" >&5
4120sed 's/^/| /' conftest.$ac_ext >&5
4121
4122ac_cv_c_const=no
4123fi
c1c065a3 4124rm -f conftest.$ac_objext conftest.$ac_ext
80992638 4125fi
ad6254c5
AK
4126echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4127echo "${ECHO_T}$ac_cv_c_const" >&6
4128if test $ac_cv_c_const = no; then
80992638 4129
ad6254c5
AK
4130cat >>confdefs.h <<\_ACEOF
4131#define const
4132_ACEOF
80992638 4133
d3c8211f 4134fi
d3c8211f 4135
ad6254c5
AK
4136echo "$as_me:$LINENO: checking for inline" >&5
4137echo $ECHO_N "checking for inline... $ECHO_C" >&6
4138if test "${ac_cv_c_inline+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
8ef2b021 4140else
ad6254c5
AK
4141 ac_cv_c_inline=no
4142for ac_kw in inline __inline__ __inline; do
4143 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 4144#line $LINENO "configure"
ad6254c5
AK
4145/* confdefs.h. */
4146_ACEOF
4147cat confdefs.h >>conftest.$ac_ext
4148cat >>conftest.$ac_ext <<_ACEOF
4149/* end confdefs.h. */
4150#ifndef __cplusplus
4151typedef int foo_t;
4152static $ac_kw foo_t static_foo () {return 0; }
4153$ac_kw foo_t foo () {return 0; }
4154#endif
80992638 4155
ad6254c5
AK
4156_ACEOF
4157rm -f conftest.$ac_objext
4158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 4159 (eval $ac_compile) 2>&5
ad6254c5
AK
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } &&
c1c065a3 4163 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 (eval $ac_try) 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
4169 ac_cv_c_inline=$ac_kw; break
4170else
4171 echo "$as_me: failed program was:" >&5
4172sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 4173
8ce0cbda 4174fi
c1c065a3 4175rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5 4176done
8ce0cbda 4177
8ce0cbda 4178fi
ad6254c5
AK
4179echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4180echo "${ECHO_T}$ac_cv_c_inline" >&6
4181case $ac_cv_c_inline in
4182 inline | yes) ;;
c1c065a3
AK
4183 no)
4184cat >>confdefs.h <<\_ACEOF
4185#define inline
a266258f 4186_ACEOF
c1c065a3
AK
4187 ;;
4188 *) cat >>confdefs.h <<_ACEOF
4189#define inline $ac_cv_c_inline
4190_ACEOF
4191 ;;
ad6254c5 4192esac
8ce0cbda 4193
ad6254c5
AK
4194echo "$as_me:$LINENO: checking for off_t" >&5
4195echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4196if test "${ac_cv_type_off_t+set}" = set; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4198else
4199 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 4200#line $LINENO "configure"
ad6254c5
AK
4201/* confdefs.h. */
4202_ACEOF
4203cat confdefs.h >>conftest.$ac_ext
4204cat >>conftest.$ac_ext <<_ACEOF
4205/* end confdefs.h. */
4206$ac_includes_default
4207int
4208main ()
4209{
4210if ((off_t *) 0)
4211 return 0;
4212if (sizeof (off_t))
4213 return 0;
4214 ;
4215 return 0;
4216}
4217_ACEOF
4218rm -f conftest.$ac_objext
4219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 4220 (eval $ac_compile) 2>&5
ad6254c5
AK
4221 ac_status=$?
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } &&
c1c065a3 4224 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226 (eval $ac_try) 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; }; then
4230 ac_cv_type_off_t=yes
4231else
4232 echo "$as_me: failed program was:" >&5
4233sed 's/^/| /' conftest.$ac_ext >&5
8ce0cbda 4234
ad6254c5 4235ac_cv_type_off_t=no
80992638 4236fi
c1c065a3 4237rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4238fi
4239echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4240echo "${ECHO_T}$ac_cv_type_off_t" >&6
4241if test $ac_cv_type_off_t = yes; then
4242 :
4243else
80992638 4244
ad6254c5
AK
4245cat >>confdefs.h <<_ACEOF
4246#define off_t long
4247_ACEOF
199e490e 4248
b896caa1
AK
4249fi
4250
ad6254c5
AK
4251echo "$as_me:$LINENO: checking for pid_t" >&5
4252echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4253if test "${ac_cv_type_pid_t+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4255else
4256 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 4257#line $LINENO "configure"
ad6254c5
AK
4258/* confdefs.h. */
4259_ACEOF
4260cat confdefs.h >>conftest.$ac_ext
4261cat >>conftest.$ac_ext <<_ACEOF
4262/* end confdefs.h. */
4263$ac_includes_default
4264int
4265main ()
4266{
4267if ((pid_t *) 0)
4268 return 0;
4269if (sizeof (pid_t))
4270 return 0;
4271 ;
4272 return 0;
4273}
4274_ACEOF
4275rm -f conftest.$ac_objext
4276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 4277 (eval $ac_compile) 2>&5
ad6254c5
AK
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } &&
c1c065a3 4281 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283 (eval $ac_try) 2>&5
4284 ac_status=$?
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; }; then
4287 ac_cv_type_pid_t=yes
4288else
4289 echo "$as_me: failed program was:" >&5
4290sed 's/^/| /' conftest.$ac_ext >&5
4291
4292ac_cv_type_pid_t=no
4293fi
c1c065a3 4294rm -f conftest.$ac_objext conftest.$ac_ext
80992638 4295fi
ad6254c5
AK
4296echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4297echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4298if test $ac_cv_type_pid_t = yes; then
4299 :
4300else
80992638 4301
ad6254c5
AK
4302cat >>confdefs.h <<_ACEOF
4303#define pid_t int
4304_ACEOF
2dc95e1c 4305
2dc95e1c
AK
4306fi
4307
ad6254c5
AK
4308echo "$as_me:$LINENO: checking for size_t" >&5
4309echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4310if test "${ac_cv_type_size_t+set}" = set; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 4312else
ad6254c5 4313 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 4314#line $LINENO "configure"
ad6254c5
AK
4315/* confdefs.h. */
4316_ACEOF
4317cat confdefs.h >>conftest.$ac_ext
4318cat >>conftest.$ac_ext <<_ACEOF
4319/* end confdefs.h. */
4320$ac_includes_default
4321int
4322main ()
4323{
4324if ((size_t *) 0)
4325 return 0;
4326if (sizeof (size_t))
4327 return 0;
4328 ;
4329 return 0;
4330}
4331_ACEOF
4332rm -f conftest.$ac_objext
4333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 4334 (eval $ac_compile) 2>&5
ad6254c5
AK
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } &&
c1c065a3 4338 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340 (eval $ac_try) 2>&5
4341 ac_status=$?
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
4344 ac_cv_type_size_t=yes
4345else
4346 echo "$as_me: failed program was:" >&5
4347sed 's/^/| /' conftest.$ac_ext >&5
4348
4349ac_cv_type_size_t=no
80992638 4350fi
c1c065a3 4351rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4352fi
4353echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4354echo "${ECHO_T}$ac_cv_type_size_t" >&6
4355if test $ac_cv_type_size_t = yes; then
4356 :
4357else
80992638 4358
ad6254c5
AK
4359cat >>confdefs.h <<_ACEOF
4360#define size_t unsigned
4361_ACEOF
8106cdd5 4362
8106cdd5
AK
4363fi
4364
ad6254c5
AK
4365echo "$as_me:$LINENO: checking for mode_t" >&5
4366echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4367if test "${ac_cv_type_mode_t+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4369else
4370 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 4371#line $LINENO "configure"
ad6254c5
AK
4372/* confdefs.h. */
4373_ACEOF
4374cat confdefs.h >>conftest.$ac_ext
4375cat >>conftest.$ac_ext <<_ACEOF
4376/* end confdefs.h. */
4377$ac_includes_default
4378int
4379main ()
4380{
4381if ((mode_t *) 0)
4382 return 0;
4383if (sizeof (mode_t))
4384 return 0;
4385 ;
4386 return 0;
4387}
4388_ACEOF
4389rm -f conftest.$ac_objext
4390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 4391 (eval $ac_compile) 2>&5
ad6254c5
AK
4392 ac_status=$?
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } &&
c1c065a3 4395 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 (eval $ac_try) 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; }; then
4401 ac_cv_type_mode_t=yes
4402else
4403 echo "$as_me: failed program was:" >&5
4404sed 's/^/| /' conftest.$ac_ext >&5
4405
4406ac_cv_type_mode_t=no
80992638 4407fi
c1c065a3 4408rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4409fi
4410echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4411echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4412if test $ac_cv_type_mode_t = yes; then
4413 :
4414else
80992638 4415
ad6254c5
AK
4416cat >>confdefs.h <<_ACEOF
4417#define mode_t int
4418_ACEOF
4419
4420fi
4421
4422
4423echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
4424echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
4425if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4427else
4428 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 4429#line $LINENO "configure"
ad6254c5
AK
4430/* confdefs.h. */
4431_ACEOF
4432cat confdefs.h >>conftest.$ac_ext
4433cat >>conftest.$ac_ext <<_ACEOF
4434/* end confdefs.h. */
4435$ac_includes_default
4436int
4437main ()
4438{
4439static struct stat ac_aggr;
4440if (ac_aggr.st_rdev)
4441return 0;
4442 ;
4443 return 0;
4444}
4445_ACEOF
4446rm -f conftest.$ac_objext
4447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 4448 (eval $ac_compile) 2>&5
ad6254c5
AK
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } &&
c1c065a3 4452 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454 (eval $ac_try) 2>&5
4455 ac_status=$?
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }; }; then
4458 ac_cv_member_struct_stat_st_rdev=yes
4459else
4460 echo "$as_me: failed program was:" >&5
4461sed 's/^/| /' conftest.$ac_ext >&5
4462
4463cat >conftest.$ac_ext <<_ACEOF
c1c065a3 4464#line $LINENO "configure"
ad6254c5
AK
4465/* confdefs.h. */
4466_ACEOF
4467cat confdefs.h >>conftest.$ac_ext
4468cat >>conftest.$ac_ext <<_ACEOF
4469/* end confdefs.h. */
4470$ac_includes_default
4471int
4472main ()
4473{
4474static struct stat ac_aggr;
4475if (sizeof ac_aggr.st_rdev)
4476return 0;
4477 ;
4478 return 0;
4479}
4480_ACEOF
4481rm -f conftest.$ac_objext
4482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 4483 (eval $ac_compile) 2>&5
ad6254c5
AK
4484 ac_status=$?
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } &&
c1c065a3 4487 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489 (eval $ac_try) 2>&5
4490 ac_status=$?
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; }; then
4493 ac_cv_member_struct_stat_st_rdev=yes
4494else
4495 echo "$as_me: failed program was:" >&5
4496sed 's/^/| /' conftest.$ac_ext >&5
4497
4498ac_cv_member_struct_stat_st_rdev=no
4499fi
c1c065a3 4500rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5 4501fi
c1c065a3 4502rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4503fi
4504echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
4505echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
4506if test $ac_cv_member_struct_stat_st_rdev = yes; then
4507
4508cat >>confdefs.h <<_ACEOF
4509#define HAVE_STRUCT_STAT_ST_RDEV 1
4510_ACEOF
4511
4512
4513cat >>confdefs.h <<\_ACEOF
4514#define HAVE_ST_RDEV 1
4515_ACEOF
4516
4517fi
4518
4519
4520echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4521echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4522if test "${ac_cv_struct_tm+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524else
4525 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 4526#line $LINENO "configure"
ad6254c5
AK
4527/* confdefs.h. */
4528_ACEOF
4529cat confdefs.h >>conftest.$ac_ext
4530cat >>conftest.$ac_ext <<_ACEOF
4531/* end confdefs.h. */
4532#include <sys/types.h>
4533#include <time.h>
4534
4535int
4536main ()
4537{
4538struct tm *tp; tp->tm_sec;
4539 ;
4540 return 0;
4541}
4542_ACEOF
4543rm -f conftest.$ac_objext
4544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 4545 (eval $ac_compile) 2>&5
ad6254c5
AK
4546 ac_status=$?
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); } &&
c1c065a3 4549 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 (eval $ac_try) 2>&5
4552 ac_status=$?
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; }; then
4555 ac_cv_struct_tm=time.h
4556else
4557 echo "$as_me: failed program was:" >&5
4558sed 's/^/| /' conftest.$ac_ext >&5
4559
4560ac_cv_struct_tm=sys/time.h
4561fi
c1c065a3 4562rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4563fi
4564echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4565echo "${ECHO_T}$ac_cv_struct_tm" >&6
4566if test $ac_cv_struct_tm = sys/time.h; then
4567
4568cat >>confdefs.h <<\_ACEOF
4569#define TM_IN_SYS_TIME 1
4570_ACEOF
4571
4572fi
809fae91 4573
795ca3e5 4574
80992638 4575################################################################################
ad6254c5
AK
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590for ac_func in gethostname getpagesize memset munmap setlocale strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul
4591do
4592as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4593echo "$as_me:$LINENO: checking for $ac_func" >&5
4594echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4595if eval "test \"\${$as_ac_var+set}\" = set"; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 4597else
ad6254c5 4598 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 4599#line $LINENO "configure"
ad6254c5
AK
4600/* confdefs.h. */
4601_ACEOF
4602cat confdefs.h >>conftest.$ac_ext
4603cat >>conftest.$ac_ext <<_ACEOF
4604/* end confdefs.h. */
4605/* System header to define __stub macros and hopefully few prototypes,
4606 which can conflict with char $ac_func (); below.
4607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4608 <limits.h> exists even on freestanding compilers. */
4609#ifdef __STDC__
4610# include <limits.h>
4611#else
4612# include <assert.h>
4613#endif
4614/* Override any gcc2 internal prototype to avoid an error. */
4615#ifdef __cplusplus
4616extern "C"
4617{
4618#endif
4619/* We use char because int might match the return type of a gcc2
4620 builtin and then its argument prototype would still apply. */
4621char $ac_func ();
4622/* The GNU C library defines this for functions which it implements
4623 to always fail with ENOSYS. Some functions are actually named
4624 something starting with __ and the normal name is an alias. */
4625#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4626choke me
4627#else
4628char (*f) () = $ac_func;
4629#endif
4630#ifdef __cplusplus
4631}
4632#endif
4633
4634int
4635main ()
4636{
4637return f != $ac_func;
4638 ;
4639 return 0;
4640}
4641_ACEOF
4642rm -f conftest.$ac_objext conftest$ac_exeext
4643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c1c065a3 4644 (eval $ac_link) 2>&5
ad6254c5
AK
4645 ac_status=$?
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } &&
c1c065a3 4648 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
4649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650 (eval $ac_try) 2>&5
4651 ac_status=$?
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }; }; then
4654 eval "$as_ac_var=yes"
795ca3e5 4655else
ad6254c5
AK
4656 echo "$as_me: failed program was:" >&5
4657sed 's/^/| /' conftest.$ac_ext >&5
4658
4659eval "$as_ac_var=no"
795ca3e5 4660fi
c1c065a3 4661rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
4662fi
4663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4664echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4665if test `eval echo '${'$as_ac_var'}'` = yes; then
4666 cat >>confdefs.h <<_ACEOF
4667#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4668_ACEOF
4669
4670else
4671 { { echo "$as_me:$LINENO: error: bailing out" >&5
4672echo "$as_me: error: bailing out" >&2;}
4673 { (exit 1); exit 1; }; }
4674fi
4675done
795ca3e5 4676
ad6254c5
AK
4677# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4678# for constant arguments. Useless!
4679echo "$as_me:$LINENO: checking for working alloca.h" >&5
4680echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4681if test "${ac_cv_working_alloca_h+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4683else
4684 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 4685#line $LINENO "configure"
ad6254c5
AK
4686/* confdefs.h. */
4687_ACEOF
4688cat confdefs.h >>conftest.$ac_ext
4689cat >>conftest.$ac_ext <<_ACEOF
4690/* end confdefs.h. */
4691#include <alloca.h>
4692int
4693main ()
4694{
4695char *p = (char *) alloca (2 * sizeof (int));
4696 ;
4697 return 0;
4698}
4699_ACEOF
4700rm -f conftest.$ac_objext conftest$ac_exeext
4701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c1c065a3 4702 (eval $ac_link) 2>&5
ad6254c5
AK
4703 ac_status=$?
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } &&
c1c065a3 4706 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708 (eval $ac_try) 2>&5
4709 ac_status=$?
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; }; then
4712 ac_cv_working_alloca_h=yes
4713else
4714 echo "$as_me: failed program was:" >&5
4715sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4716
ad6254c5
AK
4717ac_cv_working_alloca_h=no
4718fi
c1c065a3 4719rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
4720fi
4721echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4722echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4723if test $ac_cv_working_alloca_h = yes; then
4724
4725cat >>confdefs.h <<\_ACEOF
4726#define HAVE_ALLOCA_H 1
4727_ACEOF
4728
4729fi
4730
4731echo "$as_me:$LINENO: checking for alloca" >&5
4732echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4733if test "${ac_cv_func_alloca_works+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4735else
4736 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 4737#line $LINENO "configure"
ad6254c5
AK
4738/* confdefs.h. */
4739_ACEOF
4740cat confdefs.h >>conftest.$ac_ext
4741cat >>conftest.$ac_ext <<_ACEOF
4742/* end confdefs.h. */
4743#ifdef __GNUC__
4744# define alloca __builtin_alloca
4745#else
4746# ifdef _MSC_VER
4747# include <malloc.h>
4748# define alloca _alloca
4749# else
4750# if HAVE_ALLOCA_H
4751# include <alloca.h>
4752# else
4753# ifdef _AIX
4754 #pragma alloca
4755# else
4756# ifndef alloca /* predefined by HP cc +Olibcalls */
4757char *alloca ();
4758# endif
4759# endif
4760# endif
4761# endif
4762#endif
4763
4764int
4765main ()
4766{
4767char *p = (char *) alloca (1);
4768 ;
4769 return 0;
4770}
4771_ACEOF
4772rm -f conftest.$ac_objext conftest$ac_exeext
4773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c1c065a3 4774 (eval $ac_link) 2>&5
ad6254c5
AK
4775 ac_status=$?
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } &&
c1c065a3 4778 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780 (eval $ac_try) 2>&5
4781 ac_status=$?
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; }; then
4784 ac_cv_func_alloca_works=yes
4785else
4786 echo "$as_me: failed program was:" >&5
4787sed 's/^/| /' conftest.$ac_ext >&5
4788
4789ac_cv_func_alloca_works=no
4790fi
c1c065a3 4791rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
4792fi
4793echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4794echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4795
4796if test $ac_cv_func_alloca_works = yes; then
4797
4798cat >>confdefs.h <<\_ACEOF
4799#define HAVE_ALLOCA 1
4800_ACEOF
4801
4802else
4803 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4804# that cause trouble. Some versions do not even contain alloca or
4805# contain a buggy version. If you still want to use their alloca,
4806# use ar to extract alloca.o from them instead of compiling alloca.c.
4807
4808ALLOCA=alloca.$ac_objext
4809
4810cat >>confdefs.h <<\_ACEOF
4811#define C_ALLOCA 1
4812_ACEOF
4813
4814
4815echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4816echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4817if test "${ac_cv_os_cray+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4819else
4820 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 4821#line $LINENO "configure"
ad6254c5
AK
4822/* confdefs.h. */
4823_ACEOF
4824cat confdefs.h >>conftest.$ac_ext
4825cat >>conftest.$ac_ext <<_ACEOF
4826/* end confdefs.h. */
4827#if defined(CRAY) && ! defined(CRAY2)
4828webecray
4829#else
4830wenotbecray
4831#endif
4832
4833_ACEOF
795ca3e5 4834if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4835 $EGREP "webecray" >/dev/null 2>&1; then
4836 ac_cv_os_cray=yes
4837else
4838 ac_cv_os_cray=no
795ca3e5
AK
4839fi
4840rm -f conftest*
4841
795ca3e5 4842fi
ad6254c5
AK
4843echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4844echo "${ECHO_T}$ac_cv_os_cray" >&6
4845if test $ac_cv_os_cray = yes; then
4846 for ac_func in _getb67 GETB67 getb67; do
4847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4848echo "$as_me:$LINENO: checking for $ac_func" >&5
4849echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4850if eval "test \"\${$as_ac_var+set}\" = set"; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4852else
4853 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 4854#line $LINENO "configure"
ad6254c5
AK
4855/* confdefs.h. */
4856_ACEOF
4857cat confdefs.h >>conftest.$ac_ext
4858cat >>conftest.$ac_ext <<_ACEOF
4859/* end confdefs.h. */
4860/* System header to define __stub macros and hopefully few prototypes,
4861 which can conflict with char $ac_func (); below.
4862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4863 <limits.h> exists even on freestanding compilers. */
4864#ifdef __STDC__
4865# include <limits.h>
4866#else
4867# include <assert.h>
4868#endif
4869/* Override any gcc2 internal prototype to avoid an error. */
4870#ifdef __cplusplus
4871extern "C"
4872{
4873#endif
4874/* We use char because int might match the return type of a gcc2
4875 builtin and then its argument prototype would still apply. */
4876char $ac_func ();
4877/* The GNU C library defines this for functions which it implements
4878 to always fail with ENOSYS. Some functions are actually named
4879 something starting with __ and the normal name is an alias. */
4880#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4881choke me
4882#else
4883char (*f) () = $ac_func;
4884#endif
4885#ifdef __cplusplus
4886}
4887#endif
4888
4889int
4890main ()
4891{
4892return f != $ac_func;
4893 ;
4894 return 0;
4895}
4896_ACEOF
4897rm -f conftest.$ac_objext conftest$ac_exeext
4898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c1c065a3 4899 (eval $ac_link) 2>&5
ad6254c5
AK
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); } &&
c1c065a3 4903 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
4904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905 (eval $ac_try) 2>&5
4906 ac_status=$?
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }; }; then
4909 eval "$as_ac_var=yes"
4910else
4911 echo "$as_me: failed program was:" >&5
4912sed 's/^/| /' conftest.$ac_ext >&5
4913
4914eval "$as_ac_var=no"
4915fi
c1c065a3 4916rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
4917fi
4918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4919echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4920if test `eval echo '${'$as_ac_var'}'` = yes; then
80992638 4921
ad6254c5
AK
4922cat >>confdefs.h <<_ACEOF
4923#define CRAY_STACKSEG_END $ac_func
4924_ACEOF
4925
4926 break
4927fi
4928
4929 done
4930fi
4931
4932echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4933echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4934if test "${ac_cv_c_stack_direction+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4936else
4937 if test "$cross_compiling" = yes; then
4938 ac_cv_c_stack_direction=0
4939else
4940 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 4941#line $LINENO "configure"
ad6254c5
AK
4942/* confdefs.h. */
4943_ACEOF
4944cat confdefs.h >>conftest.$ac_ext
4945cat >>conftest.$ac_ext <<_ACEOF
4946/* end confdefs.h. */
4947int
4948find_stack_direction ()
4949{
4950 static char *addr = 0;
4951 auto char dummy;
4952 if (addr == 0)
4953 {
4954 addr = &dummy;
4955 return find_stack_direction ();
4956 }
4957 else
4958 return (&dummy > addr) ? 1 : -1;
4959}
4960
4961int
4962main ()
4963{
4964 exit (find_stack_direction () < 0);
4965}
4966_ACEOF
4967rm -f conftest$ac_exeext
4968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4969 (eval $ac_link) 2>&5
4970 ac_status=$?
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 (eval $ac_try) 2>&5
4975 ac_status=$?
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; }; then
4978 ac_cv_c_stack_direction=1
4979else
4980 echo "$as_me: program exited with status $ac_status" >&5
4981echo "$as_me: failed program was:" >&5
4982sed 's/^/| /' conftest.$ac_ext >&5
4983
4984( exit $ac_status )
4985ac_cv_c_stack_direction=-1
4986fi
c1c065a3 4987rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4988fi
4989fi
4990echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4991echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4992
4993cat >>confdefs.h <<_ACEOF
4994#define STACK_DIRECTION $ac_cv_c_stack_direction
4995_ACEOF
4996
4997
4998fi
4999
5000echo "$as_me:$LINENO: checking whether closedir returns void" >&5
5001echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
5002if test "${ac_cv_func_closedir_void+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5004else
5005 if test "$cross_compiling" = yes; then
5006 ac_cv_func_closedir_void=yes
5007else
5008 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 5009#line $LINENO "configure"
ad6254c5
AK
5010/* confdefs.h. */
5011_ACEOF
5012cat confdefs.h >>conftest.$ac_ext
5013cat >>conftest.$ac_ext <<_ACEOF
5014/* end confdefs.h. */
5015$ac_includes_default
5016#include <$ac_header_dirent>
5017#ifndef __cplusplus
5018int closedir ();
5019#endif
5020
5021int
5022main ()
5023{
5024exit (closedir (opendir (".")) != 0);
5025 ;
5026 return 0;
5027}
5028_ACEOF
5029rm -f conftest$ac_exeext
5030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5031 (eval $ac_link) 2>&5
5032 ac_status=$?
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036 (eval $ac_try) 2>&5
5037 ac_status=$?
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); }; }; then
5040 ac_cv_func_closedir_void=no
5041else
5042 echo "$as_me: program exited with status $ac_status" >&5
5043echo "$as_me: failed program was:" >&5
5044sed 's/^/| /' conftest.$ac_ext >&5
5045
5046( exit $ac_status )
5047ac_cv_func_closedir_void=yes
5048fi
c1c065a3 5049rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5050fi
5051fi
5052echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
5053echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
5054if test $ac_cv_func_closedir_void = yes; then
5055
5056cat >>confdefs.h <<\_ACEOF
5057#define CLOSEDIR_VOID 1
5058_ACEOF
5059
5060fi
5061
5062
5063
5064for ac_header in unistd.h vfork.h
5065do
5066as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5067if eval "test \"\${$as_ac_Header+set}\" = set"; then
5068 echo "$as_me:$LINENO: checking for $ac_header" >&5
5069echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5070if eval "test \"\${$as_ac_Header+set}\" = set"; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5072fi
5073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5074echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5075else
5076 # Is the header compilable?
5077echo "$as_me:$LINENO: checking $ac_header usability" >&5
5078echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5079cat >conftest.$ac_ext <<_ACEOF
c1c065a3 5080#line $LINENO "configure"
ad6254c5
AK
5081/* confdefs.h. */
5082_ACEOF
5083cat confdefs.h >>conftest.$ac_ext
5084cat >>conftest.$ac_ext <<_ACEOF
5085/* end confdefs.h. */
5086$ac_includes_default
5087#include <$ac_header>
5088_ACEOF
5089rm -f conftest.$ac_objext
5090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 5091 (eval $ac_compile) 2>&5
ad6254c5
AK
5092 ac_status=$?
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
c1c065a3 5095 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
5096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097 (eval $ac_try) 2>&5
5098 ac_status=$?
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }; }; then
5101 ac_header_compiler=yes
5102else
5103 echo "$as_me: failed program was:" >&5
5104sed 's/^/| /' conftest.$ac_ext >&5
5105
5106ac_header_compiler=no
5107fi
c1c065a3 5108rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5109echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5110echo "${ECHO_T}$ac_header_compiler" >&6
5111
5112# Is the header present?
5113echo "$as_me:$LINENO: checking $ac_header presence" >&5
5114echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5115cat >conftest.$ac_ext <<_ACEOF
c1c065a3 5116#line $LINENO "configure"
ad6254c5
AK
5117/* confdefs.h. */
5118_ACEOF
5119cat confdefs.h >>conftest.$ac_ext
5120cat >>conftest.$ac_ext <<_ACEOF
5121/* end confdefs.h. */
5122#include <$ac_header>
5123_ACEOF
5124if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5126 ac_status=$?
5127 grep -v '^ *+' conftest.er1 >conftest.err
5128 rm -f conftest.er1
5129 cat conftest.err >&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); } >/dev/null; then
5132 if test -s conftest.err; then
5133 ac_cpp_err=$ac_c_preproc_warn_flag
5134 else
5135 ac_cpp_err=
795ca3e5 5136 fi
ad6254c5
AK
5137else
5138 ac_cpp_err=yes
5139fi
5140if test -z "$ac_cpp_err"; then
5141 ac_header_preproc=yes
5142else
5143 echo "$as_me: failed program was:" >&5
5144sed 's/^/| /' conftest.$ac_ext >&5
5145
5146 ac_header_preproc=no
5147fi
5148rm -f conftest.err conftest.$ac_ext
5149echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5150echo "${ECHO_T}$ac_header_preproc" >&6
5151
5152# So? What about this header?
c1c065a3
AK
5153case $ac_header_compiler:$ac_header_preproc in
5154 yes:no )
ad6254c5
AK
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5156echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
c1c065a3
AK
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5158echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5159 (
5160 cat <<\_ASBOX
5161## ------------------------------------ ##
5162## Report this to bug-autoconf@gnu.org. ##
5163## ------------------------------------ ##
5164_ASBOX
5165 ) |
5166 sed "s/^/$as_me: WARNING: /" >&2
ad6254c5 5167 ;;
c1c065a3 5168 no:yes )
ad6254c5
AK
5169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5170echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
c1c065a3
AK
5171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5172echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
ad6254c5
AK
5173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5174echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5175 (
5176 cat <<\_ASBOX
c1c065a3
AK
5177## ------------------------------------ ##
5178## Report this to bug-autoconf@gnu.org. ##
5179## ------------------------------------ ##
ad6254c5
AK
5180_ASBOX
5181 ) |
5182 sed "s/^/$as_me: WARNING: /" >&2
5183 ;;
5184esac
5185echo "$as_me:$LINENO: checking for $ac_header" >&5
5186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5187if eval "test \"\${$as_ac_Header+set}\" = set"; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5189else
c1c065a3 5190 eval "$as_ac_Header=$ac_header_preproc"
ad6254c5
AK
5191fi
5192echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5193echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5194
795ca3e5 5195fi
ad6254c5
AK
5196if test `eval echo '${'$as_ac_Header'}'` = yes; then
5197 cat >>confdefs.h <<_ACEOF
5198#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5199_ACEOF
5200
5201fi
5202
5203done
795ca3e5 5204
ad6254c5
AK
5205
5206
5207for ac_func in fork vfork
5208do
5209as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5210echo "$as_me:$LINENO: checking for $ac_func" >&5
5211echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5212if eval "test \"\${$as_ac_var+set}\" = set"; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 5214else
ad6254c5 5215 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 5216#line $LINENO "configure"
ad6254c5
AK
5217/* confdefs.h. */
5218_ACEOF
5219cat confdefs.h >>conftest.$ac_ext
5220cat >>conftest.$ac_ext <<_ACEOF
5221/* end confdefs.h. */
5222/* System header to define __stub macros and hopefully few prototypes,
5223 which can conflict with char $ac_func (); below.
5224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5225 <limits.h> exists even on freestanding compilers. */
5226#ifdef __STDC__
5227# include <limits.h>
5228#else
5229# include <assert.h>
795ca3e5 5230#endif
ad6254c5 5231/* Override any gcc2 internal prototype to avoid an error. */
795ca3e5 5232#ifdef __cplusplus
ad6254c5
AK
5233extern "C"
5234{
5235#endif
5236/* We use char because int might match the return type of a gcc2
5237 builtin and then its argument prototype would still apply. */
5238char $ac_func ();
5239/* The GNU C library defines this for functions which it implements
5240 to always fail with ENOSYS. Some functions are actually named
5241 something starting with __ and the normal name is an alias. */
5242#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5243choke me
795ca3e5 5244#else
ad6254c5
AK
5245char (*f) () = $ac_func;
5246#endif
5247#ifdef __cplusplus
5248}
795ca3e5
AK
5249#endif
5250
ad6254c5
AK
5251int
5252main ()
5253{
5254return f != $ac_func;
5255 ;
5256 return 0;
5257}
5258_ACEOF
5259rm -f conftest.$ac_objext conftest$ac_exeext
5260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c1c065a3 5261 (eval $ac_link) 2>&5
ad6254c5
AK
5262 ac_status=$?
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); } &&
c1c065a3 5265 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267 (eval $ac_try) 2>&5
5268 ac_status=$?
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; }; then
5271 eval "$as_ac_var=yes"
795ca3e5 5272else
ad6254c5
AK
5273 echo "$as_me: failed program was:" >&5
5274sed 's/^/| /' conftest.$ac_ext >&5
5275
5276eval "$as_ac_var=no"
795ca3e5 5277fi
c1c065a3 5278rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5279fi
5280echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5281echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5282if test `eval echo '${'$as_ac_var'}'` = yes; then
5283 cat >>confdefs.h <<_ACEOF
5284#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5285_ACEOF
5286
5287fi
5288done
5289
5290if test "x$ac_cv_func_fork" = xyes; then
5291 echo "$as_me:$LINENO: checking for working fork" >&5
5292echo $ECHO_N "checking for working fork... $ECHO_C" >&6
5293if test "${ac_cv_func_fork_works+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5295else
5296 if test "$cross_compiling" = yes; then
5297 ac_cv_func_fork_works=cross
5298else
5299 cat >conftest.$ac_ext <<_ACEOF
5300/* By Ruediger Kuhlmann. */
5301 #include <sys/types.h>
5302 #if HAVE_UNISTD_H
5303 # include <unistd.h>
5304 #endif
5305 /* Some systems only have a dummy stub for fork() */
5306 int main ()
5307 {
c1c065a3
AK
5308 if (fork() < 0)
5309 exit (1);
5310 exit (0);
ad6254c5
AK
5311 }
5312_ACEOF
5313rm -f conftest$ac_exeext
5314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5315 (eval $ac_link) 2>&5
5316 ac_status=$?
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320 (eval $ac_try) 2>&5
5321 ac_status=$?
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; }; then
5324 ac_cv_func_fork_works=yes
5325else
5326 echo "$as_me: program exited with status $ac_status" >&5
5327echo "$as_me: failed program was:" >&5
5328sed 's/^/| /' conftest.$ac_ext >&5
5329
5330( exit $ac_status )
5331ac_cv_func_fork_works=no
5332fi
c1c065a3 5333rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5334fi
5335fi
5336echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
5337echo "${ECHO_T}$ac_cv_func_fork_works" >&6
5338
5339else
5340 ac_cv_func_fork_works=$ac_cv_func_fork
5341fi
5342if test "x$ac_cv_func_fork_works" = xcross; then
5343 case $host in
5344 *-*-amigaos* | *-*-msdosdjgpp*)
5345 # Override, as these systems have only a dummy fork() stub
5346 ac_cv_func_fork_works=no
5347 ;;
5348 *)
5349 ac_cv_func_fork_works=yes
5350 ;;
5351 esac
5352 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5353echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5354fi
5355ac_cv_func_vfork_works=$ac_cv_func_vfork
5356if test "x$ac_cv_func_vfork" = xyes; then
5357 echo "$as_me:$LINENO: checking for working vfork" >&5
5358echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
5359if test "${ac_cv_func_vfork_works+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5361else
5362 if test "$cross_compiling" = yes; then
5363 ac_cv_func_vfork_works=cross
5364else
5365 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 5366#line $LINENO "configure"
ad6254c5
AK
5367/* confdefs.h. */
5368_ACEOF
5369cat confdefs.h >>conftest.$ac_ext
5370cat >>conftest.$ac_ext <<_ACEOF
5371/* end confdefs.h. */
5372/* Thanks to Paul Eggert for this test. */
5373#include <stdio.h>
5374#include <stdlib.h>
5375#include <sys/types.h>
5376#include <sys/stat.h>
5377#include <sys/wait.h>
5378#if HAVE_UNISTD_H
5379# include <unistd.h>
5380#endif
5381#if HAVE_VFORK_H
5382# include <vfork.h>
5383#endif
5384/* On some sparc systems, changes by the child to local and incoming
5385 argument registers are propagated back to the parent. The compiler
5386 is told about this with #include <vfork.h>, but some compilers
5387 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5388 static variable whose address is put into a register that is
5389 clobbered by the vfork. */
5390static void
5391#ifdef __cplusplus
5392sparc_address_test (int arg)
5393# else
5394sparc_address_test (arg) int arg;
5395#endif
5396{
5397 static pid_t child;
5398 if (!child) {
5399 child = vfork ();
5400 if (child < 0) {
5401 perror ("vfork");
5402 _exit(2);
5403 }
5404 if (!child) {
5405 arg = getpid();
5406 write(-1, "", 0);
5407 _exit (arg);
5408 }
5409 }
5410}
5411
5412int
5413main ()
5414{
5415 pid_t parent = getpid ();
5416 pid_t child;
5417
5418 sparc_address_test (0);
5419
5420 child = vfork ();
5421
5422 if (child == 0) {
5423 /* Here is another test for sparc vfork register problems. This
5424 test uses lots of local variables, at least as many local
5425 variables as main has allocated so far including compiler
5426 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5427 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5428 reuse the register of parent for one of the local variables,
5429 since it will think that parent can't possibly be used any more
5430 in this routine. Assigning to the local variable will thus
5431 munge parent in the parent process. */
5432 pid_t
5433 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5434 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5435 /* Convince the compiler that p..p7 are live; otherwise, it might
5436 use the same hardware register for all 8 local variables. */
5437 if (p != p1 || p != p2 || p != p3 || p != p4
5438 || p != p5 || p != p6 || p != p7)
5439 _exit(1);
5440
5441 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5442 from child file descriptors. If the child closes a descriptor
5443 before it execs or exits, this munges the parent's descriptor
5444 as well. Test for this by closing stdout in the child. */
5445 _exit(close(fileno(stdout)) != 0);
5446 } else {
5447 int status;
5448 struct stat st;
5449
5450 while (wait(&status) != child)
5451 ;
5452 exit(
5453 /* Was there some problem with vforking? */
5454 child < 0
5455
5456 /* Did the child fail? (This shouldn't happen.) */
5457 || status
5458
5459 /* Did the vfork/compiler bug occur? */
5460 || parent != getpid()
5461
5462 /* Did the file descriptor bug occur? */
5463 || fstat(fileno(stdout), &st) != 0
5464 );
5465 }
5466}
5467_ACEOF
5468rm -f conftest$ac_exeext
5469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5470 (eval $ac_link) 2>&5
5471 ac_status=$?
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475 (eval $ac_try) 2>&5
5476 ac_status=$?
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); }; }; then
5479 ac_cv_func_vfork_works=yes
5480else
5481 echo "$as_me: program exited with status $ac_status" >&5
5482echo "$as_me: failed program was:" >&5
5483sed 's/^/| /' conftest.$ac_ext >&5
5484
5485( exit $ac_status )
5486ac_cv_func_vfork_works=no
5487fi
c1c065a3 5488rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5489fi
5490fi
5491echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
5492echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
5493
5494fi;
5495if test "x$ac_cv_func_fork_works" = xcross; then
c1c065a3 5496 ac_cv_func_vfork_works=ac_cv_func_vfork
ad6254c5
AK
5497 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5498echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5499fi
5500
5501if test "x$ac_cv_func_vfork_works" = xyes; then
5502
5503cat >>confdefs.h <<\_ACEOF
5504#define HAVE_WORKING_VFORK 1
5505_ACEOF
5506
5507else
5508
5509cat >>confdefs.h <<\_ACEOF
5510#define vfork fork
5511_ACEOF
5512
5513fi
5514if test "x$ac_cv_func_fork_works" = xyes; then
5515
5516cat >>confdefs.h <<\_ACEOF
5517#define HAVE_WORKING_FORK 1
5518_ACEOF
5519
5520fi
5521
5522echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
5523echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
5524if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5526else
5527 rm -f conftest.sym conftest.file
5528echo >conftest.file
5529if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5530 if test "$cross_compiling" = yes; then
5531 ac_cv_func_lstat_dereferences_slashed_symlink=no
5532else
5533 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 5534#line $LINENO "configure"
ad6254c5
AK
5535/* confdefs.h. */
5536_ACEOF
5537cat confdefs.h >>conftest.$ac_ext
5538cat >>conftest.$ac_ext <<_ACEOF
5539/* end confdefs.h. */
5540$ac_includes_default
5541int
5542main ()
5543{
5544struct stat sbuf;
5545 /* Linux will dereference the symlink and fail.
c1c065a3
AK
5546 That is better in the sense that it means we will not
5547 have to compile and use the lstat wrapper. */
ad6254c5
AK
5548 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
5549 ;
5550 return 0;
5551}
5552_ACEOF
5553rm -f conftest$ac_exeext
5554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5555 (eval $ac_link) 2>&5
5556 ac_status=$?
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5560 (eval $ac_try) 2>&5
5561 ac_status=$?
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); }; }; then
5564 ac_cv_func_lstat_dereferences_slashed_symlink=yes
5565else
5566 echo "$as_me: program exited with status $ac_status" >&5
5567echo "$as_me: failed program was:" >&5
5568sed 's/^/| /' conftest.$ac_ext >&5
5569
5570( exit $ac_status )
5571ac_cv_func_lstat_dereferences_slashed_symlink=no
5572fi
c1c065a3 5573rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5574fi
5575else
5576 # If the `ln -s' command failed, then we probably don't even
5577 # have an lstat function.
5578 ac_cv_func_lstat_dereferences_slashed_symlink=no
5579fi
5580rm -f conftest.sym conftest.file
5581
5582fi
5583echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5584echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
5585
5586test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5587
5588cat >>confdefs.h <<_ACEOF
5589#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5590_ACEOF
5591
5592
5593if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
c1c065a3 5594 LIBOBJS="$LIBOBJS lstat.$ac_objext"
ad6254c5
AK
5595fi
5596
5597echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
5598echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
5599if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5601else
5602 if test "$cross_compiling" = yes; then
5603 ac_cv_func_lstat_empty_string_bug=yes
5604else
5605 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 5606#line $LINENO "configure"
ad6254c5
AK
5607/* confdefs.h. */
5608_ACEOF
5609cat confdefs.h >>conftest.$ac_ext
5610cat >>conftest.$ac_ext <<_ACEOF
5611/* end confdefs.h. */
5612$ac_includes_default
5613int
5614main ()
5615{
5616struct stat sbuf;
5617 exit (lstat ("", &sbuf) ? 1 : 0);
5618 ;
5619 return 0;
5620}
5621_ACEOF
5622rm -f conftest$ac_exeext
5623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5624 (eval $ac_link) 2>&5
5625 ac_status=$?
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629 (eval $ac_try) 2>&5
5630 ac_status=$?
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; }; then
5633 ac_cv_func_lstat_empty_string_bug=yes
5634else
5635 echo "$as_me: program exited with status $ac_status" >&5
5636echo "$as_me: failed program was:" >&5
5637sed 's/^/| /' conftest.$ac_ext >&5
5638
5639( exit $ac_status )
5640ac_cv_func_lstat_empty_string_bug=no
5641fi
c1c065a3 5642rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5643fi
5644fi
5645echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
5646echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
5647if test $ac_cv_func_lstat_empty_string_bug = yes; then
c1c065a3 5648 LIBOBJS="$LIBOBJS lstat.$ac_objext"
ad6254c5
AK
5649
5650cat >>confdefs.h <<_ACEOF
5651#define HAVE_LSTAT_EMPTY_STRING_BUG 1
5652_ACEOF
5653
5654fi
5655
5656
5657for ac_header in stdlib.h
5658do
5659as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5660if eval "test \"\${$as_ac_Header+set}\" = set"; then
5661 echo "$as_me:$LINENO: checking for $ac_header" >&5
5662echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5663if eval "test \"\${$as_ac_Header+set}\" = set"; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5665fi
5666echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5667echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5668else
5669 # Is the header compilable?
5670echo "$as_me:$LINENO: checking $ac_header usability" >&5
5671echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5672cat >conftest.$ac_ext <<_ACEOF
c1c065a3 5673#line $LINENO "configure"
ad6254c5
AK
5674/* confdefs.h. */
5675_ACEOF
5676cat confdefs.h >>conftest.$ac_ext
5677cat >>conftest.$ac_ext <<_ACEOF
5678/* end confdefs.h. */
5679$ac_includes_default
5680#include <$ac_header>
5681_ACEOF
5682rm -f conftest.$ac_objext
5683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 5684 (eval $ac_compile) 2>&5
ad6254c5
AK
5685 ac_status=$?
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } &&
c1c065a3 5688 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
5689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 (eval $ac_try) 2>&5
5691 ac_status=$?
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); }; }; then
5694 ac_header_compiler=yes
5695else
5696 echo "$as_me: failed program was:" >&5
5697sed 's/^/| /' conftest.$ac_ext >&5
5698
5699ac_header_compiler=no
5700fi
c1c065a3 5701rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5702echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5703echo "${ECHO_T}$ac_header_compiler" >&6
5704
5705# Is the header present?
5706echo "$as_me:$LINENO: checking $ac_header presence" >&5
5707echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5708cat >conftest.$ac_ext <<_ACEOF
c1c065a3 5709#line $LINENO "configure"
ad6254c5
AK
5710/* confdefs.h. */
5711_ACEOF
5712cat confdefs.h >>conftest.$ac_ext
5713cat >>conftest.$ac_ext <<_ACEOF
5714/* end confdefs.h. */
5715#include <$ac_header>
5716_ACEOF
5717if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5719 ac_status=$?
5720 grep -v '^ *+' conftest.er1 >conftest.err
5721 rm -f conftest.er1
5722 cat conftest.err >&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); } >/dev/null; then
5725 if test -s conftest.err; then
5726 ac_cpp_err=$ac_c_preproc_warn_flag
5727 else
5728 ac_cpp_err=
5729 fi
5730else
5731 ac_cpp_err=yes
5732fi
5733if test -z "$ac_cpp_err"; then
5734 ac_header_preproc=yes
5735else
5736 echo "$as_me: failed program was:" >&5
5737sed 's/^/| /' conftest.$ac_ext >&5
5738
5739 ac_header_preproc=no
5740fi
5741rm -f conftest.err conftest.$ac_ext
5742echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5743echo "${ECHO_T}$ac_header_preproc" >&6
5744
5745# So? What about this header?
c1c065a3
AK
5746case $ac_header_compiler:$ac_header_preproc in
5747 yes:no )
ad6254c5
AK
5748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5749echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
c1c065a3
AK
5750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5751echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5752 (
5753 cat <<\_ASBOX
5754## ------------------------------------ ##
5755## Report this to bug-autoconf@gnu.org. ##
5756## ------------------------------------ ##
5757_ASBOX
5758 ) |
5759 sed "s/^/$as_me: WARNING: /" >&2
ad6254c5 5760 ;;
c1c065a3 5761 no:yes )
ad6254c5
AK
5762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5763echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
c1c065a3
AK
5764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5765echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
ad6254c5
AK
5766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5767echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5768 (
5769 cat <<\_ASBOX
c1c065a3
AK
5770## ------------------------------------ ##
5771## Report this to bug-autoconf@gnu.org. ##
5772## ------------------------------------ ##
ad6254c5
AK
5773_ASBOX
5774 ) |
5775 sed "s/^/$as_me: WARNING: /" >&2
5776 ;;
5777esac
5778echo "$as_me:$LINENO: checking for $ac_header" >&5
5779echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5780if eval "test \"\${$as_ac_Header+set}\" = set"; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5782else
c1c065a3 5783 eval "$as_ac_Header=$ac_header_preproc"
ad6254c5
AK
5784fi
5785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5786echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5787
5788fi
5789if test `eval echo '${'$as_ac_Header'}'` = yes; then
5790 cat >>confdefs.h <<_ACEOF
5791#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5792_ACEOF
5793
5794fi
5795
5796done
5797
5798echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
5799echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
5800if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5802else
5803 if test "$cross_compiling" = yes; then
5804 ac_cv_func_malloc_0_nonnull=no
5805else
5806 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 5807#line $LINENO "configure"
ad6254c5
AK
5808/* confdefs.h. */
5809_ACEOF
5810cat confdefs.h >>conftest.$ac_ext
5811cat >>conftest.$ac_ext <<_ACEOF
5812/* end confdefs.h. */
5813#if STDC_HEADERS || HAVE_STDLIB_H
5814# include <stdlib.h>
5815#else
5816char *malloc ();
5817#endif
5818
5819int
5820main ()
5821{
5822exit (malloc (0) ? 0 : 1);
5823 ;
5824 return 0;
5825}
5826_ACEOF
5827rm -f conftest$ac_exeext
5828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5829 (eval $ac_link) 2>&5
5830 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 (eval $ac_try) 2>&5
5835 ac_status=$?
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; }; then
5838 ac_cv_func_malloc_0_nonnull=yes
5839else
5840 echo "$as_me: program exited with status $ac_status" >&5
5841echo "$as_me: failed program was:" >&5
5842sed 's/^/| /' conftest.$ac_ext >&5
5843
5844( exit $ac_status )
5845ac_cv_func_malloc_0_nonnull=no
5846fi
c1c065a3 5847rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5848fi
5849fi
5850echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
5851echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
5852if test $ac_cv_func_malloc_0_nonnull = yes; then
5853
5854cat >>confdefs.h <<\_ACEOF
5855#define HAVE_MALLOC 1
5856_ACEOF
5857
5858else
5859 cat >>confdefs.h <<\_ACEOF
5860#define HAVE_MALLOC 0
5861_ACEOF
5862
c1c065a3 5863 LIBOBJS="$LIBOBJS malloc.$ac_objext"
ad6254c5
AK
5864
5865cat >>confdefs.h <<\_ACEOF
5866#define malloc rpl_malloc
5867_ACEOF
5868
5869fi
5870
5871
5872
5873echo "$as_me:$LINENO: checking for working memcmp" >&5
5874echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
5875if test "${ac_cv_func_memcmp_working+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5877else
5878 if test "$cross_compiling" = yes; then
5879 ac_cv_func_memcmp_working=no
5880else
5881 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 5882#line $LINENO "configure"
ad6254c5
AK
5883/* confdefs.h. */
5884_ACEOF
5885cat confdefs.h >>conftest.$ac_ext
5886cat >>conftest.$ac_ext <<_ACEOF
5887/* end confdefs.h. */
c1c065a3 5888
ad6254c5
AK
5889int
5890main ()
5891{
5892
5893 /* Some versions of memcmp are not 8-bit clean. */
5894 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5895 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5896 exit (1);
5897
5898 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5899 or more and with at least one buffer not starting on a 4-byte boundary.
5900 William Lewis provided this test program. */
5901 {
5902 char foo[21];
5903 char bar[21];
5904 int i;
5905 for (i = 0; i < 4; i++)
5906 {
c1c065a3
AK
5907 char *a = foo + i;
5908 char *b = bar + i;
5909 strcpy (a, "--------01111111");
5910 strcpy (b, "--------10000000");
5911 if (memcmp (a, b, 16) >= 0)
5912 exit (1);
ad6254c5
AK
5913 }
5914 exit (0);
5915 }
5916
5917 ;
5918 return 0;
5919}
5920_ACEOF
5921rm -f conftest$ac_exeext
5922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5923 (eval $ac_link) 2>&5
5924 ac_status=$?
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928 (eval $ac_try) 2>&5
5929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5932 ac_cv_func_memcmp_working=yes
5933else
5934 echo "$as_me: program exited with status $ac_status" >&5
5935echo "$as_me: failed program was:" >&5
5936sed 's/^/| /' conftest.$ac_ext >&5
5937
5938( exit $ac_status )
5939ac_cv_func_memcmp_working=no
5940fi
c1c065a3 5941rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5942fi
5943fi
5944echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5945echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
c1c065a3 5946test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
ad6254c5
AK
5947
5948
5949
5950for ac_header in stdlib.h unistd.h
5951do
5952as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5953if eval "test \"\${$as_ac_Header+set}\" = set"; then
5954 echo "$as_me:$LINENO: checking for $ac_header" >&5
5955echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5956if eval "test \"\${$as_ac_Header+set}\" = set"; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5958fi
5959echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5960echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5961else
5962 # Is the header compilable?
5963echo "$as_me:$LINENO: checking $ac_header usability" >&5
5964echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5965cat >conftest.$ac_ext <<_ACEOF
c1c065a3 5966#line $LINENO "configure"
ad6254c5
AK
5967/* confdefs.h. */
5968_ACEOF
5969cat confdefs.h >>conftest.$ac_ext
5970cat >>conftest.$ac_ext <<_ACEOF
5971/* end confdefs.h. */
5972$ac_includes_default
5973#include <$ac_header>
5974_ACEOF
5975rm -f conftest.$ac_objext
5976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 5977 (eval $ac_compile) 2>&5
ad6254c5
AK
5978 ac_status=$?
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); } &&
c1c065a3 5981 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
5982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983 (eval $ac_try) 2>&5
5984 ac_status=$?
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; }; then
5987 ac_header_compiler=yes
5988else
5989 echo "$as_me: failed program was:" >&5
5990sed 's/^/| /' conftest.$ac_ext >&5
5991
5992ac_header_compiler=no
5993fi
c1c065a3 5994rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5995echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5996echo "${ECHO_T}$ac_header_compiler" >&6
5997
5998# Is the header present?
5999echo "$as_me:$LINENO: checking $ac_header presence" >&5
6000echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6001cat >conftest.$ac_ext <<_ACEOF
c1c065a3 6002#line $LINENO "configure"
ad6254c5
AK
6003/* confdefs.h. */
6004_ACEOF
6005cat confdefs.h >>conftest.$ac_ext
6006cat >>conftest.$ac_ext <<_ACEOF
6007/* end confdefs.h. */
6008#include <$ac_header>
6009_ACEOF
6010if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6012 ac_status=$?
6013 grep -v '^ *+' conftest.er1 >conftest.err
6014 rm -f conftest.er1
6015 cat conftest.err >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } >/dev/null; then
6018 if test -s conftest.err; then
6019 ac_cpp_err=$ac_c_preproc_warn_flag
6020 else
6021 ac_cpp_err=
6022 fi
6023else
6024 ac_cpp_err=yes
6025fi
6026if test -z "$ac_cpp_err"; then
6027 ac_header_preproc=yes
6028else
6029 echo "$as_me: failed program was:" >&5
6030sed 's/^/| /' conftest.$ac_ext >&5
6031
6032 ac_header_preproc=no
6033fi
6034rm -f conftest.err conftest.$ac_ext
6035echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6036echo "${ECHO_T}$ac_header_preproc" >&6
6037
6038# So? What about this header?
c1c065a3
AK
6039case $ac_header_compiler:$ac_header_preproc in
6040 yes:no )
ad6254c5
AK
6041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6042echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
c1c065a3
AK
6043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6044echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6045 (
6046 cat <<\_ASBOX
6047## ------------------------------------ ##
6048## Report this to bug-autoconf@gnu.org. ##
6049## ------------------------------------ ##
6050_ASBOX
6051 ) |
6052 sed "s/^/$as_me: WARNING: /" >&2
ad6254c5 6053 ;;
c1c065a3 6054 no:yes )
ad6254c5
AK
6055 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6056echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
c1c065a3
AK
6057 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6058echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
ad6254c5
AK
6059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6060echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6061 (
6062 cat <<\_ASBOX
c1c065a3
AK
6063## ------------------------------------ ##
6064## Report this to bug-autoconf@gnu.org. ##
6065## ------------------------------------ ##
ad6254c5
AK
6066_ASBOX
6067 ) |
6068 sed "s/^/$as_me: WARNING: /" >&2
6069 ;;
6070esac
6071echo "$as_me:$LINENO: checking for $ac_header" >&5
6072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6073if eval "test \"\${$as_ac_Header+set}\" = set"; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6075else
c1c065a3 6076 eval "$as_ac_Header=$ac_header_preproc"
ad6254c5
AK
6077fi
6078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6079echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6080
6081fi
6082if test `eval echo '${'$as_ac_Header'}'` = yes; then
6083 cat >>confdefs.h <<_ACEOF
6084#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6085_ACEOF
6086
6087fi
6088
6089done
6090
6091
6092for ac_func in getpagesize
6093do
6094as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6095echo "$as_me:$LINENO: checking for $ac_func" >&5
6096echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6097if eval "test \"\${$as_ac_var+set}\" = set"; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6099else
6100 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 6101#line $LINENO "configure"
ad6254c5
AK
6102/* confdefs.h. */
6103_ACEOF
6104cat confdefs.h >>conftest.$ac_ext
6105cat >>conftest.$ac_ext <<_ACEOF
6106/* end confdefs.h. */
6107/* System header to define __stub macros and hopefully few prototypes,
6108 which can conflict with char $ac_func (); below.
6109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6110 <limits.h> exists even on freestanding compilers. */
6111#ifdef __STDC__
6112# include <limits.h>
6113#else
6114# include <assert.h>
6115#endif
6116/* Override any gcc2 internal prototype to avoid an error. */
6117#ifdef __cplusplus
6118extern "C"
6119{
6120#endif
6121/* We use char because int might match the return type of a gcc2
6122 builtin and then its argument prototype would still apply. */
6123char $ac_func ();
6124/* The GNU C library defines this for functions which it implements
6125 to always fail with ENOSYS. Some functions are actually named
6126 something starting with __ and the normal name is an alias. */
6127#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6128choke me
6129#else
6130char (*f) () = $ac_func;
6131#endif
6132#ifdef __cplusplus
6133}
6134#endif
6135
6136int
6137main ()
6138{
6139return f != $ac_func;
6140 ;
6141 return 0;
6142}
6143_ACEOF
6144rm -f conftest.$ac_objext conftest$ac_exeext
6145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c1c065a3 6146 (eval $ac_link) 2>&5
ad6254c5
AK
6147 ac_status=$?
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } &&
c1c065a3 6150 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
6151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152 (eval $ac_try) 2>&5
6153 ac_status=$?
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); }; }; then
6156 eval "$as_ac_var=yes"
6157else
6158 echo "$as_me: failed program was:" >&5
6159sed 's/^/| /' conftest.$ac_ext >&5
6160
6161eval "$as_ac_var=no"
6162fi
c1c065a3 6163rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
6164fi
6165echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6166echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6167if test `eval echo '${'$as_ac_var'}'` = yes; then
6168 cat >>confdefs.h <<_ACEOF
6169#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6170_ACEOF
6171
6172fi
6173done
6174
6175echo "$as_me:$LINENO: checking for working mmap" >&5
6176echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6177if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6179else
6180 if test "$cross_compiling" = yes; then
6181 ac_cv_func_mmap_fixed_mapped=no
6182else
6183 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 6184#line $LINENO "configure"
ad6254c5
AK
6185/* confdefs.h. */
6186_ACEOF
6187cat confdefs.h >>conftest.$ac_ext
6188cat >>conftest.$ac_ext <<_ACEOF
6189/* end confdefs.h. */
6190$ac_includes_default
6191/* malloc might have been renamed as rpl_malloc. */
6192#undef malloc
6193
6194/* Thanks to Mike Haertel and Jim Avera for this test.
6195 Here is a matrix of mmap possibilities:
6196 mmap private not fixed
6197 mmap private fixed at somewhere currently unmapped
6198 mmap private fixed at somewhere already mapped
6199 mmap shared not fixed
6200 mmap shared fixed at somewhere currently unmapped
6201 mmap shared fixed at somewhere already mapped
6202 For private mappings, we should verify that changes cannot be read()
6203 back from the file, nor mmap's back from the file at a different
6204 address. (There have been systems where private was not correctly
6205 implemented like the infamous i386 svr4.0, and systems where the
6206 VM page cache was not coherent with the file system buffer cache
6207 like early versions of FreeBSD and possibly contemporary NetBSD.)
6208 For shared mappings, we should conversely verify that changes get
6209 propagated back to all the places they're supposed to be.
6210
6211 Grep wants private fixed already mapped.
6212 The main things grep needs to know about mmap are:
6213 * does it exist and is it safe to write into the mmap'd area
6214 * how to use it (BSD variants) */
6215
6216#include <fcntl.h>
6217#include <sys/mman.h>
6218
6219#if !STDC_HEADERS && !HAVE_STDLIB_H
6220char *malloc ();
6221#endif
6222
6223/* This mess was copied from the GNU getpagesize.h. */
6224#if !HAVE_GETPAGESIZE
6225/* Assume that all systems that can run configure have sys/param.h. */
6226# if !HAVE_SYS_PARAM_H
6227# define HAVE_SYS_PARAM_H 1
6228# endif
6229
6230# ifdef _SC_PAGESIZE
6231# define getpagesize() sysconf(_SC_PAGESIZE)
6232# else /* no _SC_PAGESIZE */
6233# if HAVE_SYS_PARAM_H
6234# include <sys/param.h>
6235# ifdef EXEC_PAGESIZE
6236# define getpagesize() EXEC_PAGESIZE
6237# else /* no EXEC_PAGESIZE */
6238# ifdef NBPG
6239# define getpagesize() NBPG * CLSIZE
6240# ifndef CLSIZE
6241# define CLSIZE 1
6242# endif /* no CLSIZE */
6243# else /* no NBPG */
6244# ifdef NBPC
6245# define getpagesize() NBPC
6246# else /* no NBPC */
6247# ifdef PAGESIZE
6248# define getpagesize() PAGESIZE
6249# endif /* PAGESIZE */
6250# endif /* no NBPC */
6251# endif /* no NBPG */
6252# endif /* no EXEC_PAGESIZE */
6253# else /* no HAVE_SYS_PARAM_H */
6254# define getpagesize() 8192 /* punt totally */
6255# endif /* no HAVE_SYS_PARAM_H */
6256# endif /* no _SC_PAGESIZE */
6257
6258#endif /* no HAVE_GETPAGESIZE */
6259
6260int
6261main ()
6262{
6263 char *data, *data2, *data3;
6264 int i, pagesize;
6265 int fd;
6266
6267 pagesize = getpagesize ();
6268
6269 /* First, make a file with some known garbage in it. */
6270 data = (char *) malloc (pagesize);
6271 if (!data)
6272 exit (1);
6273 for (i = 0; i < pagesize; ++i)
6274 *(data + i) = rand ();
6275 umask (0);
6276 fd = creat ("conftest.mmap", 0600);
6277 if (fd < 0)
6278 exit (1);
6279 if (write (fd, data, pagesize) != pagesize)
6280 exit (1);
6281 close (fd);
6282
6283 /* Next, try to mmap the file at a fixed address which already has
6284 something else allocated at it. If we can, also make sure that
6285 we see the same garbage. */
6286 fd = open ("conftest.mmap", O_RDWR);
6287 if (fd < 0)
6288 exit (1);
6289 data2 = (char *) malloc (2 * pagesize);
6290 if (!data2)
6291 exit (1);
c1c065a3 6292 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 6293 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
c1c065a3 6294 MAP_PRIVATE | MAP_FIXED, fd, 0L))
ad6254c5
AK
6295 exit (1);
6296 for (i = 0; i < pagesize; ++i)
6297 if (*(data + i) != *(data2 + i))
6298 exit (1);
6299
6300 /* Finally, make sure that changes to the mapped area do not
6301 percolate back to the file as seen by read(). (This is a bug on
6302 some variants of i386 svr4.0.) */
6303 for (i = 0; i < pagesize; ++i)
6304 *(data2 + i) = *(data2 + i) + 1;
6305 data3 = (char *) malloc (pagesize);
6306 if (!data3)
6307 exit (1);
6308 if (read (fd, data3, pagesize) != pagesize)
6309 exit (1);
6310 for (i = 0; i < pagesize; ++i)
6311 if (*(data + i) != *(data3 + i))
6312 exit (1);
6313 close (fd);
6314 exit (0);
6315}
6316_ACEOF
6317rm -f conftest$ac_exeext
6318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6319 (eval $ac_link) 2>&5
6320 ac_status=$?
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324 (eval $ac_try) 2>&5
6325 ac_status=$?
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; }; then
6328 ac_cv_func_mmap_fixed_mapped=yes
6329else
6330 echo "$as_me: program exited with status $ac_status" >&5
6331echo "$as_me: failed program was:" >&5
6332sed 's/^/| /' conftest.$ac_ext >&5
6333
6334( exit $ac_status )
6335ac_cv_func_mmap_fixed_mapped=no
6336fi
c1c065a3 6337rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6338fi
6339fi
6340echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6341echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6342if test $ac_cv_func_mmap_fixed_mapped = yes; then
6343
6344cat >>confdefs.h <<\_ACEOF
6345#define HAVE_MMAP 1
6346_ACEOF
6347
6348fi
6349rm -f conftest.mmap
6350
6351echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
6352echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
6353if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6355else
6356 if test "$cross_compiling" = yes; then
6357 ac_cv_func_stat_empty_string_bug=yes
6358else
6359 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 6360#line $LINENO "configure"
ad6254c5
AK
6361/* confdefs.h. */
6362_ACEOF
6363cat confdefs.h >>conftest.$ac_ext
6364cat >>conftest.$ac_ext <<_ACEOF
6365/* end confdefs.h. */
6366$ac_includes_default
6367int
6368main ()
6369{
6370struct stat sbuf;
6371 exit (stat ("", &sbuf) ? 1 : 0);
6372 ;
6373 return 0;
6374}
6375_ACEOF
6376rm -f conftest$ac_exeext
6377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6378 (eval $ac_link) 2>&5
6379 ac_status=$?
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383 (eval $ac_try) 2>&5
6384 ac_status=$?
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; }; then
6387 ac_cv_func_stat_empty_string_bug=yes
6388else
6389 echo "$as_me: program exited with status $ac_status" >&5
6390echo "$as_me: failed program was:" >&5
6391sed 's/^/| /' conftest.$ac_ext >&5
6392
6393( exit $ac_status )
6394ac_cv_func_stat_empty_string_bug=no
6395fi
c1c065a3 6396rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6397fi
6398fi
6399echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
6400echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
6401if test $ac_cv_func_stat_empty_string_bug = yes; then
c1c065a3 6402 LIBOBJS="$LIBOBJS stat.$ac_objext"
ad6254c5
AK
6403
6404cat >>confdefs.h <<_ACEOF
6405#define HAVE_STAT_EMPTY_STRING_BUG 1
6406_ACEOF
6407
6408fi
6409
6410echo "$as_me:$LINENO: checking for working strtod" >&5
6411echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
6412if test "${ac_cv_func_strtod+set}" = set; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6414else
6415 if test "$cross_compiling" = yes; then
6416 ac_cv_func_strtod=no
6417else
6418 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 6419#line $LINENO "configure"
ad6254c5
AK
6420/* confdefs.h. */
6421_ACEOF
6422cat confdefs.h >>conftest.$ac_ext
6423cat >>conftest.$ac_ext <<_ACEOF
6424/* end confdefs.h. */
6425
6426double strtod ();
6427int
6428main()
6429{
6430 {
6431 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6432 char *string = " +69";
6433 char *term;
6434 double value;
6435 value = strtod (string, &term);
6436 if (value != 69 || term != (string + 4))
6437 exit (1);
6438 }
6439
6440 {
6441 /* Under Solaris 2.4, strtod returns the wrong value for the
6442 terminating character under some conditions. */
6443 char *string = "NaN";
6444 char *term;
6445 strtod (string, &term);
6446 if (term != string && *(term - 1) == 0)
6447 exit (1);
6448 }
6449 exit (0);
6450}
6451
6452_ACEOF
6453rm -f conftest$ac_exeext
6454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6455 (eval $ac_link) 2>&5
6456 ac_status=$?
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 (eval $ac_try) 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; }; then
6464 ac_cv_func_strtod=yes
6465else
6466 echo "$as_me: program exited with status $ac_status" >&5
6467echo "$as_me: failed program was:" >&5
6468sed 's/^/| /' conftest.$ac_ext >&5
6469
6470( exit $ac_status )
6471ac_cv_func_strtod=no
6472fi
c1c065a3 6473rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6474fi
6475fi
6476echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
6477echo "${ECHO_T}$ac_cv_func_strtod" >&6
6478if test $ac_cv_func_strtod = no; then
c1c065a3 6479 LIBOBJS="$LIBOBJS strtod.$ac_objext"
ad6254c5
AK
6480echo "$as_me:$LINENO: checking for pow" >&5
6481echo $ECHO_N "checking for pow... $ECHO_C" >&6
6482if test "${ac_cv_func_pow+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6484else
6485 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 6486#line $LINENO "configure"
ad6254c5
AK
6487/* confdefs.h. */
6488_ACEOF
6489cat confdefs.h >>conftest.$ac_ext
6490cat >>conftest.$ac_ext <<_ACEOF
6491/* end confdefs.h. */
6492/* System header to define __stub macros and hopefully few prototypes,
6493 which can conflict with char pow (); below.
6494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6495 <limits.h> exists even on freestanding compilers. */
6496#ifdef __STDC__
6497# include <limits.h>
6498#else
6499# include <assert.h>
6500#endif
6501/* Override any gcc2 internal prototype to avoid an error. */
6502#ifdef __cplusplus
6503extern "C"
6504{
6505#endif
6506/* We use char because int might match the return type of a gcc2
6507 builtin and then its argument prototype would still apply. */
6508char pow ();
6509/* The GNU C library defines this for functions which it implements
6510 to always fail with ENOSYS. Some functions are actually named
6511 something starting with __ and the normal name is an alias. */
6512#if defined (__stub_pow) || defined (__stub___pow)
6513choke me
6514#else
6515char (*f) () = pow;
6516#endif
6517#ifdef __cplusplus
6518}
6519#endif
6520
6521int
6522main ()
6523{
6524return f != pow;
6525 ;
6526 return 0;
6527}
6528_ACEOF
6529rm -f conftest.$ac_objext conftest$ac_exeext
6530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c1c065a3 6531 (eval $ac_link) 2>&5
ad6254c5
AK
6532 ac_status=$?
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); } &&
c1c065a3 6535 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537 (eval $ac_try) 2>&5
6538 ac_status=$?
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; }; then
6541 ac_cv_func_pow=yes
6542else
6543 echo "$as_me: failed program was:" >&5
6544sed 's/^/| /' conftest.$ac_ext >&5
6545
6546ac_cv_func_pow=no
6547fi
c1c065a3 6548rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
6549fi
6550echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
6551echo "${ECHO_T}$ac_cv_func_pow" >&6
6552
6553if test $ac_cv_func_pow = no; then
6554 echo "$as_me:$LINENO: checking for pow in -lm" >&5
6555echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
6556if test "${ac_cv_lib_m_pow+set}" = set; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6558else
6559 ac_check_lib_save_LIBS=$LIBS
6560LIBS="-lm $LIBS"
6561cat >conftest.$ac_ext <<_ACEOF
c1c065a3 6562#line $LINENO "configure"
ad6254c5
AK
6563/* confdefs.h. */
6564_ACEOF
6565cat confdefs.h >>conftest.$ac_ext
6566cat >>conftest.$ac_ext <<_ACEOF
6567/* end confdefs.h. */
6568
6569/* Override any gcc2 internal prototype to avoid an error. */
6570#ifdef __cplusplus
6571extern "C"
6572#endif
6573/* We use char because int might match the return type of a gcc2
6574 builtin and then its argument prototype would still apply. */
6575char pow ();
6576int
6577main ()
6578{
6579pow ();
6580 ;
6581 return 0;
6582}
6583_ACEOF
6584rm -f conftest.$ac_objext conftest$ac_exeext
6585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c1c065a3 6586 (eval $ac_link) 2>&5
ad6254c5
AK
6587 ac_status=$?
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); } &&
c1c065a3 6590 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 (eval $ac_try) 2>&5
6593 ac_status=$?
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; }; then
6596 ac_cv_lib_m_pow=yes
6597else
6598 echo "$as_me: failed program was:" >&5
6599sed 's/^/| /' conftest.$ac_ext >&5
6600
6601ac_cv_lib_m_pow=no
6602fi
c1c065a3 6603rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
6604LIBS=$ac_check_lib_save_LIBS
6605fi
6606echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
6607echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
6608if test $ac_cv_lib_m_pow = yes; then
6609 POW_LIB=-lm
6610else
6611 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
6612echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
6613fi
6614
6615fi
6616
6617fi
6618
6619
6620################################################################################
6621
6622
6623################################################################################
6624# Check whether --enable-jobs or --disable-jobs was given.
6625if test "${enable_jobs+set}" = set; then
6626 enableval="$enable_jobs"
6627 JOBS=-j$enableval
6628else
6629 JOBS=-j2
6630fi;
6631
6632################################################################################
6633echo "$as_me:$LINENO: checking file owner" >&5
6634echo $ECHO_N "checking file owner... $ECHO_C" >&6
6635OWNER="root"
6636
6637
6638# Check whether --with-user or --without-user was given.
6639if test "${with_user+set}" = set; then
6640 withval="$with_user"
6641 OWNER="$withval"
6642fi;
6643echo "$as_me:$LINENO: result: $OWNER" >&5
6644echo "${ECHO_T}$OWNER" >&6
6645
6646if test x$OWNER != x; then
6647 OWNER="-o $OWNER"
6648fi
6649
6650################################################################################
6651echo "$as_me:$LINENO: checking group owner" >&5
6652echo $ECHO_N "checking group owner... $ECHO_C" >&6
6653GROUP="root"
6654
6655# Check whether --with-group or --without-group was given.
6656if test "${with_group+set}" = set; then
6657 withval="$with_group"
6658 GROUP="$withval"
6659fi;
6660echo "$as_me:$LINENO: result: $GROUP" >&5
6661echo "${ECHO_T}$GROUP" >&6
6662
6663if test x$GROUP != x; then
6664 GROUP="-g $GROUP"
6665fi
6666
6667################################################################################
6668echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
6669echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6
6670# Check whether --enable-lvm1_fallback or --disable-lvm1_fallback was given.
6671if test "${enable_lvm1_fallback+set}" = set; then
6672 enableval="$enable_lvm1_fallback"
6673 LVM1_FALLBACK=$enableval
6674else
6675 LVM1_FALLBACK=no
6676fi;
6677echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
6678echo "${ECHO_T}$LVM1_FALLBACK" >&6
6679
6680if test x$LVM1_FALLBACK = xyes; then
6681 CFLAGS="$CFLAGS -DLVM1_FALLBACK"
6682fi
6683
6684################################################################################
6685echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
6686echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6
6687
6688# Check whether --with-lvm1 or --without-lvm1 was given.
6689if test "${with_lvm1+set}" = set; then
6690 withval="$with_lvm1"
6691 LVM1="$withval"
6692else
6693 LVM1="internal"
6694fi;
6695echo "$as_me:$LINENO: result: $LVM1" >&5
6696echo "${ECHO_T}$LVM1" >&6
6697
6698if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
6699 then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
6700" >&5
6701echo "$as_me: error: --with-lvm1 parameter invalid
6702" >&2;}
6703 { (exit 1); exit 1; }; }
6704fi;
6705
6706if test x$LVM1 = xinternal; then
6707 CFLAGS="$CFLAGS -DLVM1_INTERNAL"
6708fi
6709
6710################################################################################
6711echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
6712echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6
6713
6714# Check whether --with-pool or --without-pool was given.
6715if test "${with_pool+set}" = set; then
6716 withval="$with_pool"
6717 POOL="$withval"
6718else
6719 POOL="internal"
6720fi;
6721echo "$as_me:$LINENO: result: $POOL" >&5
6722echo "${ECHO_T}$POOL" >&6
6723
6724if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
6725 then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid
6726" >&5
6727echo "$as_me: error: --with-pool parameter invalid
6728" >&2;}
6729 { (exit 1); exit 1; }; }
6730fi;
6731
6732if test x$POOL = xinternal; then
6733 CFLAGS="$CFLAGS -DPOOL_INTERNAL"
6734fi
6735
6736################################################################################
6737echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
6738echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6
6739
6740# Check whether --with-cluster or --without-cluster was given.
6741if test "${with_cluster+set}" = set; then
6742 withval="$with_cluster"
6743 CLUSTER="$withval"
6744fi;
6745echo "$as_me:$LINENO: result: $CLUSTER" >&5
6746echo "${ECHO_T}$CLUSTER" >&6
6747
6748if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
6749 then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid
6750" >&5
6751echo "$as_me: error: --with-cluster parameter invalid
6752" >&2;}
6753 { (exit 1); exit 1; }; }
6754fi;
6755
6756if test x$CLUSTER = xinternal; then
6757 CFLAGS="$CFLAGS -DCLUSTER_LOCKING_INTERNAL"
6758fi
6759
6760################################################################################
6761echo "$as_me:$LINENO: checking whether to include snapshots" >&5
6762echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6
6763
6764# Check whether --with-snapshots or --without-snapshots was given.
6765if test "${with_snapshots+set}" = set; then
6766 withval="$with_snapshots"
6767 SNAPSHOTS="$withval"
6768else
6769 SNAPSHOTS="internal"
6770fi;
6771echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
6772echo "${ECHO_T}$SNAPSHOTS" >&6
6773
6774if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
6775 then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
6776" >&5
6777echo "$as_me: error: --with-snapshots parameter invalid
6778" >&2;}
6779 { (exit 1); exit 1; }; }
6780fi;
6781
6782if test x$SNAPSHOTS = xinternal; then
6783 CFLAGS="$CFLAGS -DSNAPSHOT_INTERNAL"
6784fi
6785
6786################################################################################
6787echo "$as_me:$LINENO: checking whether to include mirrors" >&5
6788echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6
6789
6790# Check whether --with-mirrors or --without-mirrors was given.
6791if test "${with_mirrors+set}" = set; then
6792 withval="$with_mirrors"
6793 MIRRORS="$withval"
6794else
6795 MIRRORS="internal"
6796fi;
6797echo "$as_me:$LINENO: result: $MIRRORS" >&5
6798echo "${ECHO_T}$MIRRORS" >&6
6799
6800if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
6801 then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
6802" >&5
6803echo "$as_me: error: --with-mirrors parameter invalid
6804" >&2;}
6805 { (exit 1); exit 1; }; }
6806fi;
6807
6808if test x$MIRRORS = xinternal; then
6809 CFLAGS="$CFLAGS -DMIRRORED_INTERNAL"
6810fi
6811
6812################################################################################
6813echo "$as_me:$LINENO: checking whether to use static linking" >&5
6814echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6
6815# Check whether --enable-static_link or --disable-static_link was given.
6816if test "${enable_static_link+set}" = set; then
6817 enableval="$enable_static_link"
6818 STATIC_LINK=$enableval
6819else
6820 STATIC_LINK=no
6821fi;
6822echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
6823echo "${ECHO_T}$STATIC_LINK" >&6
6824
6825################################################################################
6826echo "$as_me:$LINENO: checking whether to enable readline" >&5
6827echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6
6828# Check whether --enable-readline or --disable-readline was given.
6829if test "${enable_readline+set}" = set; then
6830 enableval="$enable_readline"
6831 READLINE=$enableval
6832else
6833 READLINE=no
6834fi;
6835echo "$as_me:$LINENO: result: $READLINE" >&5
6836echo "${ECHO_T}$READLINE" >&6
6837
6838if test x$READLINE = xyes; then
6839 CFLAGS="$CFLAGS -DREADLINE_SUPPORT"
6840fi
6841
6842################################################################################
6843echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
6844echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6
6845# Check whether --enable-selinux or --disable-selinux was given.
6846if test "${enable_selinux+set}" = set; then
6847 enableval="$enable_selinux"
6848 SELINUX=$enableval
6849fi;
6850echo "$as_me:$LINENO: result: $SELINUX" >&5
6851echo "${ECHO_T}$SELINUX" >&6
6852
6853################################################################################
6854echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
6855echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6
6856
6857# Check whether --with-clvmd or --without-clvmd was given.
6858if test "${with_clvmd+set}" = set; then
6859 withval="$with_clvmd"
a266258f 6860 CLVMD="$withval"
ad6254c5 6861else
a266258f 6862 CLVMD="none"
ad6254c5 6863fi;
a266258f 6864if test x$CLVMD = xyes; then
5c7fc7c4 6865 CLVMD=all
b1098701 6866fi
ad6254c5
AK
6867echo "$as_me:$LINENO: result: $CLVMD" >&5
6868echo "${ECHO_T}$CLVMD" >&6
6869
a266258f 6870if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
ad6254c5
AK
6871 CLUSTER=internal
6872fi
6873
6874################################################################################
6875echo "$as_me:$LINENO: checking whether to enable debugging" >&5
6876echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6
6877# Check whether --enable-debug or --disable-debug was given.
6878if test "${enable_debug+set}" = set; then
6879 enableval="$enable_debug"
6880 DEBUG=$enableval
6881else
6882 DEBUG=no
6883fi;
6884echo "$as_me:$LINENO: result: $DEBUG" >&5
6885echo "${ECHO_T}$DEBUG" >&6
6886
6887if test x$DEBUG = xyes; then
6888 COPTIMISE_FLAG=
6889fi
6890
6891################################################################################
6892echo "$as_me:$LINENO: checking for C optimisation flag" >&5
6893echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6
6894
6895# Check whether --with-optimisation or --without-optimisation was given.
6896if test "${with_optimisation+set}" = set; then
6897 withval="$with_optimisation"
6898 COPTIMISE_FLAG="$withval"
6899fi;
6900echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
6901echo "${ECHO_T}$COPTIMISE_FLAG" >&6
6902
6903################################################################################
6904echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
6905echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6
6906# Check whether --enable-devmapper or --disable-devmapper was given.
6907if test "${enable_devmapper+set}" = set; then
6908 enableval="$enable_devmapper"
6909 DEVMAPPER=$enableval
6910fi;
6911echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
6912echo "${ECHO_T}$DEVMAPPER" >&6
6913
6914if test x$DEVMAPPER = xyes; then
6915 CFLAGS="$CFLAGS -DDEVMAPPER_SUPPORT"
6916fi
6917
6918################################################################################
6919echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
6920echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6
6921# Check whether --enable-o_direct or --disable-o_direct was given.
6922if test "${enable_o_direct+set}" = set; then
6923 enableval="$enable_o_direct"
6924 ODIRECT=$enableval
6925fi;
6926echo "$as_me:$LINENO: result: $ODIRECT" >&5
6927echo "${ECHO_T}$ODIRECT" >&6
6928
6929if test x$ODIRECT = xyes; then
6930 CFLAGS="$CFLAGS -DO_DIRECT_SUPPORT"
6931fi
6932
6933################################################################################
6934echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
6935echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6
6936# Check whether --enable-cmdlib or --disable-cmdlib was given.
6937if test "${enable_cmdlib+set}" = set; then
6938 enableval="$enable_cmdlib"
6939 CMDLIB=$enableval
6940else
6941 CMDLIB=no
6942fi;
6943echo "$as_me:$LINENO: result: $CMDLIB" >&5
6944echo "${ECHO_T}$CMDLIB" >&6
6945
59376640 6946if test x$CMDLIB = xyes; then
ad6254c5
AK
6947 CFLAGS="$CFLAGS -DCMDLIB"
6948fi
6949
6950################################################################################
6951echo "$as_me:$LINENO: checking whether to build fsadm" >&5
6952echo $ECHO_N "checking whether to build fsadm... $ECHO_C" >&6
6953# Check whether --enable-fsadm or --disable-fsadm was given.
6954if test "${enable_fsadm+set}" = set; then
6955 enableval="$enable_fsadm"
6956 FSADM=$enableval
6957fi;
6958echo "$as_me:$LINENO: result: $FSADM" >&5
6959echo "${ECHO_T}$FSADM" >&6
6960
06f62ad1
AK
6961################################################################################
6962echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
6963echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6
6964# Check whether --enable-dmeventd or --disable-dmeventd was given.
6965if test "${enable_dmeventd+set}" = set; then
6966 enableval="$enable_dmeventd"
6967 DMEVENTD=$enableval
6968fi;
6969echo "$as_me:$LINENO: result: $DMEVENTD" >&5
6970echo "${ECHO_T}$DMEVENTD" >&6
6971
6972if test x$DMEVENTD = xyes && test x$MIRRORS != xinternal; then
6973{ { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
6974" >&5
6975echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
6976" >&2;}
6977 { (exit 1); exit 1; }; }
6978fi
6979
15d91f5a
AK
6980if test x$DMEVENTD = xyes; then
6981 CFLAGS="$CFLAGS -DDMEVENTD"
6982fi
ad6254c5
AK
6983################################################################################
6984if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
6985 then exec_prefix="";
6986fi;
6987
6988################################################################################
6989if test $ac_cv_c_compiler_gnu = yes; then
6990 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
6991echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
6992if test "${ac_cv_prog_gcc_traditional+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6994else
6995 ac_pattern="Autoconf.*'x'"
6996 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 6997#line $LINENO "configure"
ad6254c5
AK
6998/* confdefs.h. */
6999_ACEOF
7000cat confdefs.h >>conftest.$ac_ext
7001cat >>conftest.$ac_ext <<_ACEOF
7002/* end confdefs.h. */
7003#include <sgtty.h>
7004Autoconf TIOCGETP
7005_ACEOF
7006if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7007 $EGREP "$ac_pattern" >/dev/null 2>&1; then
7008 ac_cv_prog_gcc_traditional=yes
7009else
7010 ac_cv_prog_gcc_traditional=no
7011fi
7012rm -f conftest*
7013
7014
7015 if test $ac_cv_prog_gcc_traditional = no; then
7016 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 7017#line $LINENO "configure"
ad6254c5
AK
7018/* confdefs.h. */
7019_ACEOF
7020cat confdefs.h >>conftest.$ac_ext
7021cat >>conftest.$ac_ext <<_ACEOF
7022/* end confdefs.h. */
7023#include <termio.h>
7024Autoconf TCGETA
7025_ACEOF
7026if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7027 $EGREP "$ac_pattern" >/dev/null 2>&1; then
7028 ac_cv_prog_gcc_traditional=yes
7029fi
7030rm -f conftest*
7031
7032 fi
7033fi
7034echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
7035echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
7036 if test $ac_cv_prog_gcc_traditional = yes; then
7037 CC="$CC -traditional"
7038 fi
7039fi
7040
7041echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7042echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7043if test "${ac_cv_type_signal+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7045else
7046 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 7047#line $LINENO "configure"
ad6254c5
AK
7048/* confdefs.h. */
7049_ACEOF
7050cat confdefs.h >>conftest.$ac_ext
7051cat >>conftest.$ac_ext <<_ACEOF
7052/* end confdefs.h. */
7053#include <sys/types.h>
7054#include <signal.h>
7055#ifdef signal
7056# undef signal
7057#endif
7058#ifdef __cplusplus
7059extern "C" void (*signal (int, void (*)(int)))(int);
7060#else
7061void (*signal ()) ();
7062#endif
7063
7064int
7065main ()
7066{
7067int i;
7068 ;
7069 return 0;
7070}
7071_ACEOF
7072rm -f conftest.$ac_objext
7073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 7074 (eval $ac_compile) 2>&5
ad6254c5
AK
7075 ac_status=$?
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } &&
c1c065a3 7078 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
7079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080 (eval $ac_try) 2>&5
7081 ac_status=$?
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); }; }; then
7084 ac_cv_type_signal=void
7085else
7086 echo "$as_me: failed program was:" >&5
7087sed 's/^/| /' conftest.$ac_ext >&5
7088
7089ac_cv_type_signal=int
7090fi
c1c065a3 7091rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
7092fi
7093echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7094echo "${ECHO_T}$ac_cv_type_signal" >&6
7095
7096cat >>confdefs.h <<_ACEOF
7097#define RETSIGTYPE $ac_cv_type_signal
7098_ACEOF
7099
7100
7101
7102for ac_func in vprintf
7103do
7104as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7105echo "$as_me:$LINENO: checking for $ac_func" >&5
7106echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7107if eval "test \"\${$as_ac_var+set}\" = set"; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109else
7110 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 7111#line $LINENO "configure"
ad6254c5
AK
7112/* confdefs.h. */
7113_ACEOF
7114cat confdefs.h >>conftest.$ac_ext
7115cat >>conftest.$ac_ext <<_ACEOF
7116/* end confdefs.h. */
7117/* System header to define __stub macros and hopefully few prototypes,
7118 which can conflict with char $ac_func (); below.
7119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7120 <limits.h> exists even on freestanding compilers. */
7121#ifdef __STDC__
7122# include <limits.h>
7123#else
7124# include <assert.h>
7125#endif
7126/* Override any gcc2 internal prototype to avoid an error. */
7127#ifdef __cplusplus
7128extern "C"
7129{
7130#endif
7131/* We use char because int might match the return type of a gcc2
7132 builtin and then its argument prototype would still apply. */
7133char $ac_func ();
7134/* The GNU C library defines this for functions which it implements
7135 to always fail with ENOSYS. Some functions are actually named
7136 something starting with __ and the normal name is an alias. */
7137#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7138choke me
7139#else
7140char (*f) () = $ac_func;
7141#endif
7142#ifdef __cplusplus
7143}
7144#endif
7145
7146int
7147main ()
7148{
7149return f != $ac_func;
7150 ;
7151 return 0;
7152}
7153_ACEOF
7154rm -f conftest.$ac_objext conftest$ac_exeext
7155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c1c065a3 7156 (eval $ac_link) 2>&5
ad6254c5
AK
7157 ac_status=$?
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); } &&
c1c065a3 7160 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162 (eval $ac_try) 2>&5
7163 ac_status=$?
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }; }; then
7166 eval "$as_ac_var=yes"
7167else
7168 echo "$as_me: failed program was:" >&5
7169sed 's/^/| /' conftest.$ac_ext >&5
7170
7171eval "$as_ac_var=no"
7172fi
c1c065a3 7173rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7174fi
7175echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7176echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7177if test `eval echo '${'$as_ac_var'}'` = yes; then
7178 cat >>confdefs.h <<_ACEOF
7179#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7180_ACEOF
7181
7182echo "$as_me:$LINENO: checking for _doprnt" >&5
7183echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7184if test "${ac_cv_func__doprnt+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7186else
7187 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 7188#line $LINENO "configure"
ad6254c5
AK
7189/* confdefs.h. */
7190_ACEOF
7191cat confdefs.h >>conftest.$ac_ext
7192cat >>conftest.$ac_ext <<_ACEOF
7193/* end confdefs.h. */
7194/* System header to define __stub macros and hopefully few prototypes,
7195 which can conflict with char _doprnt (); below.
7196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7197 <limits.h> exists even on freestanding compilers. */
7198#ifdef __STDC__
7199# include <limits.h>
7200#else
7201# include <assert.h>
7202#endif
7203/* Override any gcc2 internal prototype to avoid an error. */
7204#ifdef __cplusplus
7205extern "C"
7206{
7207#endif
7208/* We use char because int might match the return type of a gcc2
7209 builtin and then its argument prototype would still apply. */
7210char _doprnt ();
7211/* The GNU C library defines this for functions which it implements
7212 to always fail with ENOSYS. Some functions are actually named
7213 something starting with __ and the normal name is an alias. */
7214#if defined (__stub__doprnt) || defined (__stub____doprnt)
7215choke me
7216#else
7217char (*f) () = _doprnt;
7218#endif
7219#ifdef __cplusplus
7220}
7221#endif
7222
7223int
7224main ()
7225{
7226return f != _doprnt;
7227 ;
7228 return 0;
7229}
7230_ACEOF
7231rm -f conftest.$ac_objext conftest$ac_exeext
7232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c1c065a3 7233 (eval $ac_link) 2>&5
ad6254c5
AK
7234 ac_status=$?
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } &&
c1c065a3 7237 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239 (eval $ac_try) 2>&5
7240 ac_status=$?
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); }; }; then
7243 ac_cv_func__doprnt=yes
7244else
7245 echo "$as_me: failed program was:" >&5
7246sed 's/^/| /' conftest.$ac_ext >&5
7247
7248ac_cv_func__doprnt=no
7249fi
c1c065a3 7250rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7251fi
7252echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7253echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7254if test $ac_cv_func__doprnt = yes; then
7255
7256cat >>confdefs.h <<\_ACEOF
7257#define HAVE_DOPRNT 1
7258_ACEOF
7259
7260fi
7261
7262fi
7263done
7264
7265
7266
7267
7268
7269for ac_func in mkdir rmdir uname
7270do
7271as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7272echo "$as_me:$LINENO: checking for $ac_func" >&5
7273echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7274if eval "test \"\${$as_ac_var+set}\" = set"; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7276else
7277 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 7278#line $LINENO "configure"
ad6254c5
AK
7279/* confdefs.h. */
7280_ACEOF
7281cat confdefs.h >>conftest.$ac_ext
7282cat >>conftest.$ac_ext <<_ACEOF
7283/* end confdefs.h. */
7284/* System header to define __stub macros and hopefully few prototypes,
7285 which can conflict with char $ac_func (); below.
7286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7287 <limits.h> exists even on freestanding compilers. */
7288#ifdef __STDC__
7289# include <limits.h>
7290#else
7291# include <assert.h>
7292#endif
7293/* Override any gcc2 internal prototype to avoid an error. */
7294#ifdef __cplusplus
7295extern "C"
7296{
7297#endif
7298/* We use char because int might match the return type of a gcc2
7299 builtin and then its argument prototype would still apply. */
7300char $ac_func ();
7301/* The GNU C library defines this for functions which it implements
7302 to always fail with ENOSYS. Some functions are actually named
7303 something starting with __ and the normal name is an alias. */
7304#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7305choke me
7306#else
7307char (*f) () = $ac_func;
7308#endif
7309#ifdef __cplusplus
7310}
7311#endif
7312
7313int
7314main ()
7315{
7316return f != $ac_func;
7317 ;
7318 return 0;
7319}
7320_ACEOF
7321rm -f conftest.$ac_objext conftest$ac_exeext
7322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c1c065a3 7323 (eval $ac_link) 2>&5
ad6254c5
AK
7324 ac_status=$?
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); } &&
c1c065a3 7327 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329 (eval $ac_try) 2>&5
7330 ac_status=$?
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); }; }; then
7333 eval "$as_ac_var=yes"
7334else
7335 echo "$as_me: failed program was:" >&5
7336sed 's/^/| /' conftest.$ac_ext >&5
7337
7338eval "$as_ac_var=no"
7339fi
c1c065a3 7340rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7341fi
7342echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7343echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7344if test `eval echo '${'$as_ac_var'}'` = yes; then
7345 cat >>confdefs.h <<_ACEOF
7346#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7347_ACEOF
7348
7349else
7350 { { echo "$as_me:$LINENO: error: bailing out" >&5
7351echo "$as_me: error: bailing out" >&2;}
7352 { (exit 1); exit 1; }; }
7353fi
7354done
7355
7356
7357################################################################################
7358if test x$READLINE = xyes; then
7359 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
7360echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
7361if test "${ac_cv_search_tgetent+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7363else
7364 ac_func_search_save_LIBS=$LIBS
7365ac_cv_search_tgetent=no
7366cat >conftest.$ac_ext <<_ACEOF
c1c065a3 7367#line $LINENO "configure"
ad6254c5
AK
7368/* confdefs.h. */
7369_ACEOF
7370cat confdefs.h >>conftest.$ac_ext
7371cat >>conftest.$ac_ext <<_ACEOF
7372/* end confdefs.h. */
7373
7374/* Override any gcc2 internal prototype to avoid an error. */
7375#ifdef __cplusplus
7376extern "C"
7377#endif
7378/* We use char because int might match the return type of a gcc2
7379 builtin and then its argument prototype would still apply. */
7380char tgetent ();
7381int
7382main ()
7383{
7384tgetent ();
7385 ;
7386 return 0;
7387}
7388_ACEOF
7389rm -f conftest.$ac_objext conftest$ac_exeext
7390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c1c065a3 7391 (eval $ac_link) 2>&5
ad6254c5
AK
7392 ac_status=$?
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } &&
c1c065a3 7395 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7397 (eval $ac_try) 2>&5
7398 ac_status=$?
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); }; }; then
7401 ac_cv_search_tgetent="none required"
7402else
7403 echo "$as_me: failed program was:" >&5
7404sed 's/^/| /' conftest.$ac_ext >&5
7405
7406fi
c1c065a3 7407rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7408if test "$ac_cv_search_tgetent" = no; then
7409 for ac_lib in ncurses curses termcap termlib; do
7410 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7411 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 7412#line $LINENO "configure"
ad6254c5
AK
7413/* confdefs.h. */
7414_ACEOF
7415cat confdefs.h >>conftest.$ac_ext
7416cat >>conftest.$ac_ext <<_ACEOF
7417/* end confdefs.h. */
7418
7419/* Override any gcc2 internal prototype to avoid an error. */
7420#ifdef __cplusplus
7421extern "C"
7422#endif
7423/* We use char because int might match the return type of a gcc2
7424 builtin and then its argument prototype would still apply. */
7425char tgetent ();
7426int
7427main ()
7428{
7429tgetent ();
7430 ;
7431 return 0;
7432}
7433_ACEOF
7434rm -f conftest.$ac_objext conftest$ac_exeext
7435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c1c065a3 7436 (eval $ac_link) 2>&5
ad6254c5
AK
7437 ac_status=$?
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } &&
c1c065a3 7440 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442 (eval $ac_try) 2>&5
7443 ac_status=$?
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); }; }; then
7446 ac_cv_search_tgetent="-l$ac_lib"
7447break
7448else
7449 echo "$as_me: failed program was:" >&5
7450sed 's/^/| /' conftest.$ac_ext >&5
7451
7452fi
c1c065a3 7453rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7454 done
7455fi
7456LIBS=$ac_func_search_save_LIBS
7457fi
7458echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
7459echo "${ECHO_T}$ac_cv_search_tgetent" >&6
7460if test "$ac_cv_search_tgetent" != no; then
7461 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
7462
7463else
7464 { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the
7465--enable-readline option (which is enabled by default). Either disable readline
7466support with --disable-readline or download and install termcap from:
7467 ftp.gnu.org/gnu/termcap
7468Note: if you are using precompiled packages you will also need the development
7469 package as well (which may be called termcap-devel or something similar).
7470Note: (n)curses also seems to work as a substitute for termcap. This was
7471 not found either - but you could try installing that as well.
7472" >&5
7473echo "$as_me: error: termcap could not be found which is required for the
7474--enable-readline option (which is enabled by default). Either disable readline
7475support with --disable-readline or download and install termcap from:
7476 ftp.gnu.org/gnu/termcap
7477Note: if you are using precompiled packages you will also need the development
7478 package as well (which may be called termcap-devel or something similar).
7479Note: (n)curses also seems to work as a substitute for termcap. This was
7480 not found either - but you could try installing that as well.
7481" >&2;}
7482 { (exit 1); exit 1; }; }
7483
7484fi
7485
7486fi
7487
7488################################################################################
7489echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7490echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7491if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7492 echo $ECHO_N "(cached) $ECHO_C" >&6
7493else
7494 ac_check_lib_save_LIBS=$LIBS
7495LIBS="-ldl $LIBS"
7496cat >conftest.$ac_ext <<_ACEOF
c1c065a3 7497#line $LINENO "configure"
ad6254c5
AK
7498/* confdefs.h. */
7499_ACEOF
7500cat confdefs.h >>conftest.$ac_ext
7501cat >>conftest.$ac_ext <<_ACEOF
7502/* end confdefs.h. */
7503
7504/* Override any gcc2 internal prototype to avoid an error. */
7505#ifdef __cplusplus
7506extern "C"
7507#endif
7508/* We use char because int might match the return type of a gcc2
7509 builtin and then its argument prototype would still apply. */
7510char dlopen ();
7511int
7512main ()
7513{
7514dlopen ();
7515 ;
7516 return 0;
7517}
7518_ACEOF
7519rm -f conftest.$ac_objext conftest$ac_exeext
7520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c1c065a3 7521 (eval $ac_link) 2>&5
ad6254c5
AK
7522 ac_status=$?
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); } &&
c1c065a3 7525 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527 (eval $ac_try) 2>&5
7528 ac_status=$?
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); }; }; then
7531 ac_cv_lib_dl_dlopen=yes
7532else
7533 echo "$as_me: failed program was:" >&5
7534sed 's/^/| /' conftest.$ac_ext >&5
7535
7536ac_cv_lib_dl_dlopen=no
7537fi
c1c065a3 7538rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7539LIBS=$ac_check_lib_save_LIBS
7540fi
7541echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7542echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7543if test $ac_cv_lib_dl_dlopen = yes; then
7544 HAVE_LIBDL=yes
7545else
7546 HAVE_LIBDL=no
7547fi
7548
7549
7e9e9502 7550if [ "x$HAVE_LIBDL" = xyes ]; then
ad6254c5
AK
7551 CFLAGS="$CFLAGS -DHAVE_LIBDL"
7552 LIBS="-ldl $LIBS"
7553else
7554 HAVE_LIBDL=no
7555fi
7556
7557################################################################################
7558if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
7559 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
7560 \) -a "x$STATIC_LINK" = xyes ];
7561 then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
7562" >&5
7563echo "$as_me: error: Features cannot be 'shared' when building statically
7564" >&2;}
7565 { (exit 1); exit 1; }; }
7566fi
7567
7568################################################################################
7569if test x$SELINUX = xyes; then
7570 echo "$as_me:$LINENO: checking for is_selinux_enabled function" >&5
7571echo $ECHO_N "checking for is_selinux_enabled function... $ECHO_C" >&6
7572 echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
7573echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6
7574if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
7576else
7577 ac_check_lib_save_LIBS=$LIBS
7578LIBS="-lselinux $LIBS"
7579cat >conftest.$ac_ext <<_ACEOF
c1c065a3 7580#line $LINENO "configure"
ad6254c5
AK
7581/* confdefs.h. */
7582_ACEOF
7583cat confdefs.h >>conftest.$ac_ext
7584cat >>conftest.$ac_ext <<_ACEOF
7585/* end confdefs.h. */
7586
7587/* Override any gcc2 internal prototype to avoid an error. */
7588#ifdef __cplusplus
7589extern "C"
7590#endif
7591/* We use char because int might match the return type of a gcc2
7592 builtin and then its argument prototype would still apply. */
7593char is_selinux_enabled ();
7594int
7595main ()
7596{
7597is_selinux_enabled ();
7598 ;
7599 return 0;
7600}
7601_ACEOF
7602rm -f conftest.$ac_objext conftest$ac_exeext
7603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c1c065a3 7604 (eval $ac_link) 2>&5
ad6254c5
AK
7605 ac_status=$?
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); } &&
c1c065a3 7608 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610 (eval $ac_try) 2>&5
7611 ac_status=$?
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); }; }; then
7614 ac_cv_lib_selinux_is_selinux_enabled=yes
7615else
7616 echo "$as_me: failed program was:" >&5
7617sed 's/^/| /' conftest.$ac_ext >&5
7618
7619ac_cv_lib_selinux_is_selinux_enabled=no
7620fi
c1c065a3 7621rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7622LIBS=$ac_check_lib_save_LIBS
7623fi
7624echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7625echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6
7626if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
7627 HAVE_SELINUX=yes
7628else
7629 HAVE_SELINUX=no
7630fi
7631
7632 echo "$as_me:$LINENO: result: $HAVE_SELINUX" >&5
7633echo "${ECHO_T}$HAVE_SELINUX" >&6
7634
7635 if test x$HAVE_SELINUX = xyes; then
7636 CFLAGS="$CFLAGS -DHAVE_SELINUX"
7637 LIBS="-lselinux $LIBS"
7638 else
7639 { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
7640echo "$as_me: WARNING: Disabling selinux" >&2;}
7641 fi
7642fi
7643
7644################################################################################
7645
7646for ac_header in getopt.h
7647do
7648as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7649if eval "test \"\${$as_ac_Header+set}\" = set"; then
7650 echo "$as_me:$LINENO: checking for $ac_header" >&5
7651echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7652if eval "test \"\${$as_ac_Header+set}\" = set"; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7654fi
7655echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7656echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7657else
7658 # Is the header compilable?
7659echo "$as_me:$LINENO: checking $ac_header usability" >&5
7660echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7661cat >conftest.$ac_ext <<_ACEOF
c1c065a3 7662#line $LINENO "configure"
ad6254c5
AK
7663/* confdefs.h. */
7664_ACEOF
7665cat confdefs.h >>conftest.$ac_ext
7666cat >>conftest.$ac_ext <<_ACEOF
7667/* end confdefs.h. */
7668$ac_includes_default
7669#include <$ac_header>
7670_ACEOF
7671rm -f conftest.$ac_objext
7672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 7673 (eval $ac_compile) 2>&5
ad6254c5
AK
7674 ac_status=$?
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } &&
c1c065a3 7677 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
7678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7679 (eval $ac_try) 2>&5
7680 ac_status=$?
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); }; }; then
7683 ac_header_compiler=yes
7684else
7685 echo "$as_me: failed program was:" >&5
7686sed 's/^/| /' conftest.$ac_ext >&5
7687
7688ac_header_compiler=no
7689fi
c1c065a3 7690rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
7691echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7692echo "${ECHO_T}$ac_header_compiler" >&6
7693
7694# Is the header present?
7695echo "$as_me:$LINENO: checking $ac_header presence" >&5
7696echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7697cat >conftest.$ac_ext <<_ACEOF
c1c065a3 7698#line $LINENO "configure"
ad6254c5
AK
7699/* confdefs.h. */
7700_ACEOF
7701cat confdefs.h >>conftest.$ac_ext
7702cat >>conftest.$ac_ext <<_ACEOF
7703/* end confdefs.h. */
7704#include <$ac_header>
7705_ACEOF
7706if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7708 ac_status=$?
7709 grep -v '^ *+' conftest.er1 >conftest.err
7710 rm -f conftest.er1
7711 cat conftest.err >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } >/dev/null; then
7714 if test -s conftest.err; then
7715 ac_cpp_err=$ac_c_preproc_warn_flag
7716 else
7717 ac_cpp_err=
7718 fi
7719else
7720 ac_cpp_err=yes
7721fi
7722if test -z "$ac_cpp_err"; then
7723 ac_header_preproc=yes
7724else
7725 echo "$as_me: failed program was:" >&5
7726sed 's/^/| /' conftest.$ac_ext >&5
7727
7728 ac_header_preproc=no
7729fi
7730rm -f conftest.err conftest.$ac_ext
7731echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7732echo "${ECHO_T}$ac_header_preproc" >&6
7733
7734# So? What about this header?
c1c065a3
AK
7735case $ac_header_compiler:$ac_header_preproc in
7736 yes:no )
ad6254c5
AK
7737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7738echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
c1c065a3
AK
7739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7740echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7741 (
7742 cat <<\_ASBOX
7743## ------------------------------------ ##
7744## Report this to bug-autoconf@gnu.org. ##
7745## ------------------------------------ ##
7746_ASBOX
7747 ) |
7748 sed "s/^/$as_me: WARNING: /" >&2
ad6254c5 7749 ;;
c1c065a3 7750 no:yes )
ad6254c5
AK
7751 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7752echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
c1c065a3
AK
7753 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7754echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
ad6254c5
AK
7755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7756echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7757 (
7758 cat <<\_ASBOX
c1c065a3
AK
7759## ------------------------------------ ##
7760## Report this to bug-autoconf@gnu.org. ##
7761## ------------------------------------ ##
ad6254c5
AK
7762_ASBOX
7763 ) |
7764 sed "s/^/$as_me: WARNING: /" >&2
7765 ;;
7766esac
7767echo "$as_me:$LINENO: checking for $ac_header" >&5
7768echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7769if eval "test \"\${$as_ac_Header+set}\" = set"; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7771else
c1c065a3 7772 eval "$as_ac_Header=$ac_header_preproc"
ad6254c5
AK
7773fi
7774echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7775echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7776
7777fi
7778if test `eval echo '${'$as_ac_Header'}'` = yes; then
7779 cat >>confdefs.h <<_ACEOF
7780#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7781_ACEOF
7782 CFLAGS="$CFLAGS -DHAVE_GETOPTLONG"
7783fi
7784
7785done
7786
7787
7788################################################################################
7789if test x$READLINE = xyes; then
7790
7791echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
7792echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
7793if test "${ac_cv_lib_readline_readline+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7795else
7796 ac_check_lib_save_LIBS=$LIBS
7797LIBS="-lreadline $LIBS"
7798cat >conftest.$ac_ext <<_ACEOF
c1c065a3 7799#line $LINENO "configure"
ad6254c5
AK
7800/* confdefs.h. */
7801_ACEOF
7802cat confdefs.h >>conftest.$ac_ext
7803cat >>conftest.$ac_ext <<_ACEOF
7804/* end confdefs.h. */
7805
7806/* Override any gcc2 internal prototype to avoid an error. */
7807#ifdef __cplusplus
7808extern "C"
7809#endif
7810/* We use char because int might match the return type of a gcc2
7811 builtin and then its argument prototype would still apply. */
7812char readline ();
7813int
7814main ()
7815{
7816readline ();
7817 ;
7818 return 0;
7819}
7820_ACEOF
7821rm -f conftest.$ac_objext conftest$ac_exeext
7822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c1c065a3 7823 (eval $ac_link) 2>&5
ad6254c5
AK
7824 ac_status=$?
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); } &&
c1c065a3 7827 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829 (eval $ac_try) 2>&5
7830 ac_status=$?
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; }; then
7833 ac_cv_lib_readline_readline=yes
7834else
7835 echo "$as_me: failed program was:" >&5
7836sed 's/^/| /' conftest.$ac_ext >&5
7837
7838ac_cv_lib_readline_readline=no
7839fi
c1c065a3 7840rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7841LIBS=$ac_check_lib_save_LIBS
7842fi
7843echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
7844echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
7845if test $ac_cv_lib_readline_readline = yes; then
7846 cat >>confdefs.h <<_ACEOF
7847#define HAVE_LIBREADLINE 1
7848_ACEOF
7849
7850 LIBS="-lreadline $LIBS"
7851
7852else
7853 { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
7854--enable-readline option (which is enabled by default). Either disable readline
7855support with --disable-readline or download and install readline from:
7856 ftp.gnu.org/gnu/readline
7857Note: if you are using precompiled packages you will also need the development
7858package as well (which may be called readline-devel or something similar).
7859" >&5
7860echo "$as_me: error: GNU Readline could not be found which is required for the
7861--enable-readline option (which is enabled by default). Either disable readline
7862support with --disable-readline or download and install readline from:
7863 ftp.gnu.org/gnu/readline
7864Note: if you are using precompiled packages you will also need the development
7865package as well (which may be called readline-devel or something similar).
7866" >&2;}
7867 { (exit 1); exit 1; }; }
7868
7869fi
7870
7871 echo "$as_me:$LINENO: checking for rl_completion_matches" >&5
7872echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6
7873if test "${ac_cv_func_rl_completion_matches+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7875else
7876 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 7877#line $LINENO "configure"
ad6254c5
AK
7878/* confdefs.h. */
7879_ACEOF
7880cat confdefs.h >>conftest.$ac_ext
7881cat >>conftest.$ac_ext <<_ACEOF
7882/* end confdefs.h. */
7883/* System header to define __stub macros and hopefully few prototypes,
7884 which can conflict with char rl_completion_matches (); below.
7885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7886 <limits.h> exists even on freestanding compilers. */
7887#ifdef __STDC__
7888# include <limits.h>
7889#else
7890# include <assert.h>
7891#endif
7892/* Override any gcc2 internal prototype to avoid an error. */
7893#ifdef __cplusplus
7894extern "C"
7895{
7896#endif
7897/* We use char because int might match the return type of a gcc2
7898 builtin and then its argument prototype would still apply. */
7899char rl_completion_matches ();
7900/* The GNU C library defines this for functions which it implements
7901 to always fail with ENOSYS. Some functions are actually named
7902 something starting with __ and the normal name is an alias. */
7903#if defined (__stub_rl_completion_matches) || defined (__stub___rl_completion_matches)
7904choke me
7905#else
7906char (*f) () = rl_completion_matches;
7907#endif
7908#ifdef __cplusplus
7909}
7910#endif
7911
7912int
7913main ()
7914{
7915return f != rl_completion_matches;
7916 ;
7917 return 0;
7918}
7919_ACEOF
7920rm -f conftest.$ac_objext conftest$ac_exeext
7921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c1c065a3 7922 (eval $ac_link) 2>&5
ad6254c5
AK
7923 ac_status=$?
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); } &&
c1c065a3 7926 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928 (eval $ac_try) 2>&5
7929 ac_status=$?
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); }; }; then
7932 ac_cv_func_rl_completion_matches=yes
7933else
7934 echo "$as_me: failed program was:" >&5
7935sed 's/^/| /' conftest.$ac_ext >&5
7936
7937ac_cv_func_rl_completion_matches=no
7938fi
c1c065a3 7939rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7940fi
7941echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5
7942echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6
7943if test $ac_cv_func_rl_completion_matches = yes; then
7944 CFLAGS="$CFLAGS -DHAVE_RL_COMPLETION_MATCHES"
7945fi
7946
7947
7948fi
7949
7950################################################################################
7951echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
7952echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6
7953# Check whether --enable-nls or --disable-nls was given.
7954if test "${enable_nls+set}" = set; then
7955 enableval="$enable_nls"
7956 INTL=$enableval
7957else
7958 INTL=no
7959fi;
7960echo "$as_me:$LINENO: result: $INTL" >&5
7961echo "${ECHO_T}$INTL" >&6
7962
7963if test x$INTL = xyes; then
7964 INTL_PACKAGE="lvm2"
7965 # Extract the first word of "msgfmt", so it can be a program name with args.
7966set dummy msgfmt; ac_word=$2
7967echo "$as_me:$LINENO: checking for $ac_word" >&5
7968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7969if test "${ac_cv_path_MSGFMT+set}" = set; then
7970 echo $ECHO_N "(cached) $ECHO_C" >&6
7971else
7972 case $MSGFMT in
7973 [\\/]* | ?:[\\/]*)
7974 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7975 ;;
7976 *)
7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978for as_dir in $PATH
7979do
7980 IFS=$as_save_IFS
7981 test -z "$as_dir" && as_dir=.
7982 for ac_exec_ext in '' $ac_executable_extensions; do
7983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7984 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7986 break 2
7987 fi
7988done
7989done
7990
7991 ;;
7992esac
7993fi
7994MSGFMT=$ac_cv_path_MSGFMT
7995
7996if test -n "$MSGFMT"; then
7997 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7998echo "${ECHO_T}$MSGFMT" >&6
7999else
8000 echo "$as_me:$LINENO: result: no" >&5
8001echo "${ECHO_T}no" >&6
8002fi
8003
8004 if [ "x$MSGFMT" == x ];
8005 then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
8006 " >&5
8007echo "$as_me: error: msgfmt not found in path $PATH
8008 " >&2;}
8009 { (exit 1); exit 1; }; }
8010 fi;
8011
8012
8013# Check whether --with-localedir or --without-localedir was given.
8014if test "${with_localedir+set}" = set; then
8015 withval="$with_localedir"
8016 LOCALEDIR="$withval"
8017else
8018 LOCALEDIR='${prefix}/share/locale'
8019fi;
8020fi
8021
8022################################################################################
8023
8024# Check whether --with-confdir or --without-confdir was given.
8025if test "${with_confdir+set}" = set; then
8026 withval="$with_confdir"
8027 CONFDIR="$withval"
8028else
8029 CONFDIR='/etc'
8030fi;
8031
8032
8033# Check whether --with-staticdir or --without-staticdir was given.
8034if test "${with_staticdir+set}" = set; then
8035 withval="$with_staticdir"
8036 STATICDIR="$withval"
8037else
8038 STATICDIR='${exec_prefix}/sbin'
8039fi;
8040
8041################################################################################
8042if test x$READLINE = xyes; then
8043
8044
8045for ac_header in readline/readline.h readline/history.h
8046do
8047as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8048if eval "test \"\${$as_ac_Header+set}\" = set"; then
8049 echo "$as_me:$LINENO: checking for $ac_header" >&5
8050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8051if eval "test \"\${$as_ac_Header+set}\" = set"; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8053fi
8054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8055echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8056else
8057 # Is the header compilable?
8058echo "$as_me:$LINENO: checking $ac_header usability" >&5
8059echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8060cat >conftest.$ac_ext <<_ACEOF
c1c065a3 8061#line $LINENO "configure"
ad6254c5
AK
8062/* confdefs.h. */
8063_ACEOF
8064cat confdefs.h >>conftest.$ac_ext
8065cat >>conftest.$ac_ext <<_ACEOF
8066/* end confdefs.h. */
8067$ac_includes_default
8068#include <$ac_header>
8069_ACEOF
8070rm -f conftest.$ac_objext
8071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 8072 (eval $ac_compile) 2>&5
ad6254c5
AK
8073 ac_status=$?
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } &&
c1c065a3 8076 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
8077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078 (eval $ac_try) 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; }; then
8082 ac_header_compiler=yes
8083else
8084 echo "$as_me: failed program was:" >&5
8085sed 's/^/| /' conftest.$ac_ext >&5
8086
8087ac_header_compiler=no
8088fi
c1c065a3 8089rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
8090echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8091echo "${ECHO_T}$ac_header_compiler" >&6
8092
8093# Is the header present?
8094echo "$as_me:$LINENO: checking $ac_header presence" >&5
8095echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8096cat >conftest.$ac_ext <<_ACEOF
c1c065a3 8097#line $LINENO "configure"
ad6254c5
AK
8098/* confdefs.h. */
8099_ACEOF
8100cat confdefs.h >>conftest.$ac_ext
8101cat >>conftest.$ac_ext <<_ACEOF
8102/* end confdefs.h. */
8103#include <$ac_header>
8104_ACEOF
8105if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8107 ac_status=$?
8108 grep -v '^ *+' conftest.er1 >conftest.err
8109 rm -f conftest.er1
8110 cat conftest.err >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); } >/dev/null; then
8113 if test -s conftest.err; then
8114 ac_cpp_err=$ac_c_preproc_warn_flag
8115 else
8116 ac_cpp_err=
8117 fi
8118else
8119 ac_cpp_err=yes
8120fi
8121if test -z "$ac_cpp_err"; then
8122 ac_header_preproc=yes
8123else
8124 echo "$as_me: failed program was:" >&5
8125sed 's/^/| /' conftest.$ac_ext >&5
8126
8127 ac_header_preproc=no
8128fi
8129rm -f conftest.err conftest.$ac_ext
8130echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8131echo "${ECHO_T}$ac_header_preproc" >&6
8132
8133# So? What about this header?
c1c065a3
AK
8134case $ac_header_compiler:$ac_header_preproc in
8135 yes:no )
ad6254c5
AK
8136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8137echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
c1c065a3
AK
8138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8139echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8140 (
8141 cat <<\_ASBOX
8142## ------------------------------------ ##
8143## Report this to bug-autoconf@gnu.org. ##
8144## ------------------------------------ ##
8145_ASBOX
8146 ) |
8147 sed "s/^/$as_me: WARNING: /" >&2
ad6254c5 8148 ;;
c1c065a3 8149 no:yes )
ad6254c5
AK
8150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8151echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
c1c065a3
AK
8152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8153echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
ad6254c5
AK
8154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8155echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8156 (
8157 cat <<\_ASBOX
c1c065a3
AK
8158## ------------------------------------ ##
8159## Report this to bug-autoconf@gnu.org. ##
8160## ------------------------------------ ##
ad6254c5
AK
8161_ASBOX
8162 ) |
8163 sed "s/^/$as_me: WARNING: /" >&2
8164 ;;
8165esac
8166echo "$as_me:$LINENO: checking for $ac_header" >&5
8167echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8168if eval "test \"\${$as_ac_Header+set}\" = set"; then
8169 echo $ECHO_N "(cached) $ECHO_C" >&6
8170else
c1c065a3 8171 eval "$as_ac_Header=$ac_header_preproc"
ad6254c5
AK
8172fi
8173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8174echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8175
8176fi
8177if test `eval echo '${'$as_ac_Header'}'` = yes; then
8178 cat >>confdefs.h <<_ACEOF
8179#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8180_ACEOF
8181
8182else
8183 { { echo "$as_me:$LINENO: error: bailing out" >&5
8184echo "$as_me: error: bailing out" >&2;}
8185 { (exit 1); exit 1; }; }
8186fi
8187
8188done
8189
8190fi
8191
5c7fc7c4 8192if test x$CLVMD != xnone; then
ad6254c5
AK
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203for 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
8204do
8205as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8206if eval "test \"\${$as_ac_Header+set}\" = set"; then
8207 echo "$as_me:$LINENO: checking for $ac_header" >&5
8208echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8209if eval "test \"\${$as_ac_Header+set}\" = set"; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8211fi
8212echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8213echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8214else
8215 # Is the header compilable?
8216echo "$as_me:$LINENO: checking $ac_header usability" >&5
8217echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8218cat >conftest.$ac_ext <<_ACEOF
c1c065a3 8219#line $LINENO "configure"
ad6254c5
AK
8220/* confdefs.h. */
8221_ACEOF
8222cat confdefs.h >>conftest.$ac_ext
8223cat >>conftest.$ac_ext <<_ACEOF
8224/* end confdefs.h. */
8225$ac_includes_default
8226#include <$ac_header>
8227_ACEOF
8228rm -f conftest.$ac_objext
8229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 8230 (eval $ac_compile) 2>&5
ad6254c5
AK
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } &&
c1c065a3 8234 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
8235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236 (eval $ac_try) 2>&5
8237 ac_status=$?
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; }; then
8240 ac_header_compiler=yes
8241else
8242 echo "$as_me: failed program was:" >&5
8243sed 's/^/| /' conftest.$ac_ext >&5
8244
8245ac_header_compiler=no
8246fi
c1c065a3 8247rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
8248echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8249echo "${ECHO_T}$ac_header_compiler" >&6
8250
8251# Is the header present?
8252echo "$as_me:$LINENO: checking $ac_header presence" >&5
8253echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8254cat >conftest.$ac_ext <<_ACEOF
c1c065a3 8255#line $LINENO "configure"
ad6254c5
AK
8256/* confdefs.h. */
8257_ACEOF
8258cat confdefs.h >>conftest.$ac_ext
8259cat >>conftest.$ac_ext <<_ACEOF
8260/* end confdefs.h. */
8261#include <$ac_header>
8262_ACEOF
8263if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8265 ac_status=$?
8266 grep -v '^ *+' conftest.er1 >conftest.err
8267 rm -f conftest.er1
8268 cat conftest.err >&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); } >/dev/null; then
8271 if test -s conftest.err; then
8272 ac_cpp_err=$ac_c_preproc_warn_flag
8273 else
8274 ac_cpp_err=
8275 fi
8276else
8277 ac_cpp_err=yes
8278fi
8279if test -z "$ac_cpp_err"; then
8280 ac_header_preproc=yes
8281else
8282 echo "$as_me: failed program was:" >&5
8283sed 's/^/| /' conftest.$ac_ext >&5
8284
8285 ac_header_preproc=no
8286fi
8287rm -f conftest.err conftest.$ac_ext
8288echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8289echo "${ECHO_T}$ac_header_preproc" >&6
8290
8291# So? What about this header?
c1c065a3
AK
8292case $ac_header_compiler:$ac_header_preproc in
8293 yes:no )
ad6254c5
AK
8294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8295echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
c1c065a3
AK
8296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8297echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8298 (
8299 cat <<\_ASBOX
8300## ------------------------------------ ##
8301## Report this to bug-autoconf@gnu.org. ##
8302## ------------------------------------ ##
8303_ASBOX
8304 ) |
8305 sed "s/^/$as_me: WARNING: /" >&2
ad6254c5 8306 ;;
c1c065a3 8307 no:yes )
ad6254c5
AK
8308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8309echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
c1c065a3
AK
8310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8311echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
ad6254c5
AK
8312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8313echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8314 (
8315 cat <<\_ASBOX
c1c065a3
AK
8316## ------------------------------------ ##
8317## Report this to bug-autoconf@gnu.org. ##
8318## ------------------------------------ ##
ad6254c5
AK
8319_ASBOX
8320 ) |
8321 sed "s/^/$as_me: WARNING: /" >&2
8322 ;;
8323esac
8324echo "$as_me:$LINENO: checking for $ac_header" >&5
8325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8326if eval "test \"\${$as_ac_Header+set}\" = set"; then
8327 echo $ECHO_N "(cached) $ECHO_C" >&6
8328else
c1c065a3 8329 eval "$as_ac_Header=$ac_header_preproc"
ad6254c5
AK
8330fi
8331echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8332echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8333
8334fi
8335if test `eval echo '${'$as_ac_Header'}'` = yes; then
8336 cat >>confdefs.h <<_ACEOF
8337#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8338_ACEOF
8339
8340else
8341 { { echo "$as_me:$LINENO: error: bailing out" >&5
8342echo "$as_me: error: bailing out" >&2;}
8343 { (exit 1); exit 1; }; }
795ca3e5
AK
8344fi
8345
ad6254c5
AK
8346done
8347
8348
795ca3e5 8349
8106cdd5 8350
ad6254c5
AK
8351
8352
8353for ac_func in dup2 getmntent memmove select socket
8354do
8355as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8356echo "$as_me:$LINENO: checking for $ac_func" >&5
8357echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8358if eval "test \"\${$as_ac_var+set}\" = set"; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 8360else
ad6254c5 8361 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 8362#line $LINENO "configure"
ad6254c5
AK
8363/* confdefs.h. */
8364_ACEOF
8365cat confdefs.h >>conftest.$ac_ext
8366cat >>conftest.$ac_ext <<_ACEOF
8367/* end confdefs.h. */
795ca3e5 8368/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
8369 which can conflict with char $ac_func (); below.
8370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8371 <limits.h> exists even on freestanding compilers. */
8372#ifdef __STDC__
8373# include <limits.h>
8374#else
8375# include <assert.h>
8376#endif
795ca3e5 8377/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
8378#ifdef __cplusplus
8379extern "C"
8380{
8381#endif
795ca3e5 8382/* We use char because int might match the return type of a gcc2
ad6254c5
AK
8383 builtin and then its argument prototype would still apply. */
8384char $ac_func ();
795ca3e5
AK
8385/* The GNU C library defines this for functions which it implements
8386 to always fail with ENOSYS. Some functions are actually named
8387 something starting with __ and the normal name is an alias. */
ad6254c5 8388#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
795ca3e5
AK
8389choke me
8390#else
ad6254c5
AK
8391char (*f) () = $ac_func;
8392#endif
8393#ifdef __cplusplus
8394}
795ca3e5
AK
8395#endif
8396
ad6254c5
AK
8397int
8398main ()
8399{
8400return f != $ac_func;
8401 ;
8402 return 0;
8403}
8404_ACEOF
8405rm -f conftest.$ac_objext conftest$ac_exeext
8406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c1c065a3 8407 (eval $ac_link) 2>&5
ad6254c5
AK
8408 ac_status=$?
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } &&
c1c065a3 8411 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413 (eval $ac_try) 2>&5
8414 ac_status=$?
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; }; then
8417 eval "$as_ac_var=yes"
795ca3e5 8418else
ad6254c5
AK
8419 echo "$as_me: failed program was:" >&5
8420sed 's/^/| /' conftest.$ac_ext >&5
8421
8422eval "$as_ac_var=no"
80992638 8423fi
c1c065a3 8424rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
795ca3e5 8425fi
ad6254c5
AK
8426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8427echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8428if test `eval echo '${'$as_ac_var'}'` = yes; then
8429 cat >>confdefs.h <<_ACEOF
8430#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8431_ACEOF
80992638
AK
8432
8433else
ad6254c5
AK
8434 { { echo "$as_me:$LINENO: error: bailing out" >&5
8435echo "$as_me: error: bailing out" >&2;}
8436 { (exit 1); exit 1; }; }
8106cdd5 8437fi
ad6254c5 8438done
795ca3e5 8439
ad6254c5
AK
8440 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
8441echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
8442echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
8443if test "${ac_cv_lib_sun_getmntent+set}" = set; then
8444 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 8445else
ad6254c5
AK
8446 ac_check_lib_save_LIBS=$LIBS
8447LIBS="-lsun $LIBS"
8448cat >conftest.$ac_ext <<_ACEOF
c1c065a3 8449#line $LINENO "configure"
ad6254c5
AK
8450/* confdefs.h. */
8451_ACEOF
8452cat confdefs.h >>conftest.$ac_ext
8453cat >>conftest.$ac_ext <<_ACEOF
8454/* end confdefs.h. */
8455
795ca3e5 8456/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
8457#ifdef __cplusplus
8458extern "C"
8459#endif
795ca3e5 8460/* We use char because int might match the return type of a gcc2
ad6254c5
AK
8461 builtin and then its argument prototype would still apply. */
8462char getmntent ();
8463int
8464main ()
8465{
8466getmntent ();
8467 ;
8468 return 0;
8469}
8470_ACEOF
8471rm -f conftest.$ac_objext conftest$ac_exeext
8472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c1c065a3 8473 (eval $ac_link) 2>&5
ad6254c5
AK
8474 ac_status=$?
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } &&
c1c065a3 8477 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
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_sun_getmntent=yes
8484else
8485 echo "$as_me: failed program was:" >&5
8486sed 's/^/| /' conftest.$ac_ext >&5
80992638 8487
ad6254c5
AK
8488ac_cv_lib_sun_getmntent=no
8489fi
c1c065a3 8490rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8491LIBS=$ac_check_lib_save_LIBS
8492fi
8493echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
8494echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
8495if test $ac_cv_lib_sun_getmntent = yes; then
8496 LIBS="-lsun $LIBS"
8497else
8498 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
8499echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
8500if test "${ac_cv_lib_seq_getmntent+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8502else
8503 ac_check_lib_save_LIBS=$LIBS
8504LIBS="-lseq $LIBS"
8505cat >conftest.$ac_ext <<_ACEOF
c1c065a3 8506#line $LINENO "configure"
ad6254c5
AK
8507/* confdefs.h. */
8508_ACEOF
8509cat confdefs.h >>conftest.$ac_ext
8510cat >>conftest.$ac_ext <<_ACEOF
8511/* end confdefs.h. */
80992638 8512
ad6254c5
AK
8513/* Override any gcc2 internal prototype to avoid an error. */
8514#ifdef __cplusplus
8515extern "C"
795ca3e5 8516#endif
ad6254c5
AK
8517/* We use char because int might match the return type of a gcc2
8518 builtin and then its argument prototype would still apply. */
8519char getmntent ();
8520int
8521main ()
8522{
8523getmntent ();
8524 ;
8525 return 0;
8526}
8527_ACEOF
8528rm -f conftest.$ac_objext conftest$ac_exeext
8529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c1c065a3 8530 (eval $ac_link) 2>&5
ad6254c5
AK
8531 ac_status=$?
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } &&
c1c065a3 8534 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536 (eval $ac_try) 2>&5
8537 ac_status=$?
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); }; }; then
8540 ac_cv_lib_seq_getmntent=yes
795ca3e5 8541else
ad6254c5
AK
8542 echo "$as_me: failed program was:" >&5
8543sed 's/^/| /' conftest.$ac_ext >&5
8544
8545ac_cv_lib_seq_getmntent=no
795ca3e5 8546fi
c1c065a3 8547rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ad6254c5 8548LIBS=$ac_check_lib_save_LIBS
795ca3e5 8549fi
ad6254c5
AK
8550echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
8551echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
8552if test $ac_cv_lib_seq_getmntent = yes; then
8553 LIBS="-lseq $LIBS"
8554else
8555 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
8556echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
8557if test "${ac_cv_lib_gen_getmntent+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8559else
8560 ac_check_lib_save_LIBS=$LIBS
8561LIBS="-lgen $LIBS"
8562cat >conftest.$ac_ext <<_ACEOF
c1c065a3 8563#line $LINENO "configure"
ad6254c5
AK
8564/* confdefs.h. */
8565_ACEOF
8566cat confdefs.h >>conftest.$ac_ext
8567cat >>conftest.$ac_ext <<_ACEOF
8568/* end confdefs.h. */
795ca3e5 8569
ad6254c5
AK
8570/* Override any gcc2 internal prototype to avoid an error. */
8571#ifdef __cplusplus
8572extern "C"
8573#endif
8574/* We use char because int might match the return type of a gcc2
8575 builtin and then its argument prototype would still apply. */
8576char getmntent ();
8577int
8578main ()
8579{
8580getmntent ();
8581 ;
8582 return 0;
8583}
8584_ACEOF
8585rm -f conftest.$ac_objext conftest$ac_exeext
8586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c1c065a3 8587 (eval $ac_link) 2>&5
ad6254c5
AK
8588 ac_status=$?
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } &&
c1c065a3 8591 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593 (eval $ac_try) 2>&5
8594 ac_status=$?
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; }; then
8597 ac_cv_lib_gen_getmntent=yes
80992638 8598else
ad6254c5
AK
8599 echo "$as_me: failed program was:" >&5
8600sed 's/^/| /' conftest.$ac_ext >&5
8601
8602ac_cv_lib_gen_getmntent=no
8603fi
c1c065a3 8604rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8605LIBS=$ac_check_lib_save_LIBS
8606fi
8607echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
8608echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
8609if test $ac_cv_lib_gen_getmntent = yes; then
8610 LIBS="-lgen $LIBS"
795ca3e5
AK
8611fi
8612
8613fi
8614
ad6254c5
AK
8615fi
8616
8617
8618for ac_func in getmntent
795ca3e5 8619do
ad6254c5
AK
8620as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8621echo "$as_me:$LINENO: checking for $ac_func" >&5
8622echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8623if eval "test \"\${$as_ac_var+set}\" = set"; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
8625else
8626 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 8627#line $LINENO "configure"
ad6254c5
AK
8628/* confdefs.h. */
8629_ACEOF
8630cat confdefs.h >>conftest.$ac_ext
8631cat >>conftest.$ac_ext <<_ACEOF
8632/* end confdefs.h. */
795ca3e5 8633/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
8634 which can conflict with char $ac_func (); below.
8635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8636 <limits.h> exists even on freestanding compilers. */
8637#ifdef __STDC__
8638# include <limits.h>
8639#else
8640# include <assert.h>
8641#endif
795ca3e5 8642/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
8643#ifdef __cplusplus
8644extern "C"
8645{
8646#endif
795ca3e5 8647/* We use char because int might match the return type of a gcc2
ad6254c5
AK
8648 builtin and then its argument prototype would still apply. */
8649char $ac_func ();
795ca3e5
AK
8650/* The GNU C library defines this for functions which it implements
8651 to always fail with ENOSYS. Some functions are actually named
8652 something starting with __ and the normal name is an alias. */
8653#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8654choke me
8655#else
ad6254c5
AK
8656char (*f) () = $ac_func;
8657#endif
8658#ifdef __cplusplus
8659}
795ca3e5
AK
8660#endif
8661
ad6254c5
AK
8662int
8663main ()
8664{
8665return f != $ac_func;
8666 ;
8667 return 0;
8668}
8669_ACEOF
8670rm -f conftest.$ac_objext conftest$ac_exeext
8671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c1c065a3 8672 (eval $ac_link) 2>&5
ad6254c5
AK
8673 ac_status=$?
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); } &&
c1c065a3 8676 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678 (eval $ac_try) 2>&5
8679 ac_status=$?
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); }; }; then
8682 eval "$as_ac_var=yes"
795ca3e5 8683else
ad6254c5
AK
8684 echo "$as_me: failed program was:" >&5
8685sed 's/^/| /' conftest.$ac_ext >&5
8686
8687eval "$as_ac_var=no"
795ca3e5 8688fi
c1c065a3 8689rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
795ca3e5 8690fi
ad6254c5
AK
8691echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8692echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8693if test `eval echo '${'$as_ac_var'}'` = yes; then
8694 cat >>confdefs.h <<_ACEOF
8695#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8696_ACEOF
795ca3e5 8697
795ca3e5
AK
8698fi
8699done
8700
8701
ad6254c5
AK
8702# AC_FUNC_REALLOC
8703
8704
8705for ac_header in sys/select.h sys/socket.h
8706do
8707as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8708if eval "test \"\${$as_ac_Header+set}\" = set"; then
8709 echo "$as_me:$LINENO: checking for $ac_header" >&5
8710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8711if eval "test \"\${$as_ac_Header+set}\" = set"; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8713fi
8714echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8715echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
795ca3e5 8716else
ad6254c5
AK
8717 # Is the header compilable?
8718echo "$as_me:$LINENO: checking $ac_header usability" >&5
8719echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8720cat >conftest.$ac_ext <<_ACEOF
c1c065a3 8721#line $LINENO "configure"
ad6254c5
AK
8722/* confdefs.h. */
8723_ACEOF
8724cat confdefs.h >>conftest.$ac_ext
8725cat >>conftest.$ac_ext <<_ACEOF
8726/* end confdefs.h. */
8727$ac_includes_default
8728#include <$ac_header>
8729_ACEOF
8730rm -f conftest.$ac_objext
8731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 8732 (eval $ac_compile) 2>&5
ad6254c5
AK
8733 ac_status=$?
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } &&
c1c065a3 8736 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
8737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738 (eval $ac_try) 2>&5
8739 ac_status=$?
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); }; }; then
8742 ac_header_compiler=yes
80992638 8743else
ad6254c5
AK
8744 echo "$as_me: failed program was:" >&5
8745sed 's/^/| /' conftest.$ac_ext >&5
8746
8747ac_header_compiler=no
8748fi
c1c065a3 8749rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
8750echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8751echo "${ECHO_T}$ac_header_compiler" >&6
8752
8753# Is the header present?
8754echo "$as_me:$LINENO: checking $ac_header presence" >&5
8755echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8756cat >conftest.$ac_ext <<_ACEOF
c1c065a3 8757#line $LINENO "configure"
ad6254c5
AK
8758/* confdefs.h. */
8759_ACEOF
8760cat confdefs.h >>conftest.$ac_ext
8761cat >>conftest.$ac_ext <<_ACEOF
8762/* end confdefs.h. */
8763#include <$ac_header>
8764_ACEOF
8765if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8767 ac_status=$?
8768 grep -v '^ *+' conftest.er1 >conftest.err
8769 rm -f conftest.er1
8770 cat conftest.err >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } >/dev/null; then
8773 if test -s conftest.err; then
8774 ac_cpp_err=$ac_c_preproc_warn_flag
8775 else
8776 ac_cpp_err=
8777 fi
8778else
8779 ac_cpp_err=yes
795ca3e5 8780fi
ad6254c5
AK
8781if test -z "$ac_cpp_err"; then
8782 ac_header_preproc=yes
8783else
8784 echo "$as_me: failed program was:" >&5
8785sed 's/^/| /' conftest.$ac_ext >&5
8786
8787 ac_header_preproc=no
8788fi
8789rm -f conftest.err conftest.$ac_ext
8790echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8791echo "${ECHO_T}$ac_header_preproc" >&6
8792
8793# So? What about this header?
c1c065a3
AK
8794case $ac_header_compiler:$ac_header_preproc in
8795 yes:no )
ad6254c5
AK
8796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8797echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
c1c065a3
AK
8798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8799echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8800 (
8801 cat <<\_ASBOX
8802## ------------------------------------ ##
8803## Report this to bug-autoconf@gnu.org. ##
8804## ------------------------------------ ##
8805_ASBOX
8806 ) |
8807 sed "s/^/$as_me: WARNING: /" >&2
ad6254c5 8808 ;;
c1c065a3 8809 no:yes )
ad6254c5
AK
8810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8811echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
c1c065a3
AK
8812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8813echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
ad6254c5
AK
8814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8815echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8816 (
8817 cat <<\_ASBOX
c1c065a3
AK
8818## ------------------------------------ ##
8819## Report this to bug-autoconf@gnu.org. ##
8820## ------------------------------------ ##
ad6254c5
AK
8821_ASBOX
8822 ) |
8823 sed "s/^/$as_me: WARNING: /" >&2
8824 ;;
8825esac
8826echo "$as_me:$LINENO: checking for $ac_header" >&5
8827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8828if eval "test \"\${$as_ac_Header+set}\" = set"; then
8829 echo $ECHO_N "(cached) $ECHO_C" >&6
8830else
c1c065a3 8831 eval "$as_ac_Header=$ac_header_preproc"
8106cdd5 8832fi
ad6254c5
AK
8833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8834echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8106cdd5 8835
795ca3e5 8836fi
ad6254c5
AK
8837if test `eval echo '${'$as_ac_Header'}'` = yes; then
8838 cat >>confdefs.h <<_ACEOF
8839#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8840_ACEOF
8841
795ca3e5
AK
8842fi
8843
ad6254c5
AK
8844done
8845
8846echo "$as_me:$LINENO: checking types of arguments for select" >&5
8847echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
8848if test "${ac_cv_func_select_args+set}" = set; then
8849 echo $ECHO_N "(cached) $ECHO_C" >&6
26e7f2e0 8850else
ad6254c5
AK
8851 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
8852 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
8853 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
8854 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 8855#line $LINENO "configure"
ad6254c5
AK
8856/* confdefs.h. */
8857_ACEOF
8858cat confdefs.h >>conftest.$ac_ext
8859cat >>conftest.$ac_ext <<_ACEOF
8860/* end confdefs.h. */
8861$ac_includes_default
8862#if HAVE_SYS_SELECT_H
8863# include <sys/select.h>
8864#endif
8865#if HAVE_SYS_SOCKET_H
8866# include <sys/socket.h>
8867#endif
8868
8869int
8870main ()
8871{
8872extern int select ($ac_arg1,
c1c065a3
AK
8873 $ac_arg234, $ac_arg234, $ac_arg234,
8874 $ac_arg5);
ad6254c5
AK
8875 ;
8876 return 0;
8877}
8878_ACEOF
8879rm -f conftest.$ac_objext
8880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 8881 (eval $ac_compile) 2>&5
ad6254c5
AK
8882 ac_status=$?
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); } &&
c1c065a3 8885 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
8886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887 (eval $ac_try) 2>&5
8888 ac_status=$?
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); }; }; then
8891 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
8892else
8893 echo "$as_me: failed program was:" >&5
8894sed 's/^/| /' conftest.$ac_ext >&5
8895
8896fi
c1c065a3 8897rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
8898 done
8899 done
8900done
8901# Provide a safe default value.
8902: ${ac_cv_func_select_args='int,int *,struct timeval *'}
8903
26e7f2e0 8904fi
ad6254c5
AK
8905echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
8906echo "${ECHO_T}$ac_cv_func_select_args" >&6
8907ac_save_IFS=$IFS; IFS=','
8908set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
8909IFS=$ac_save_IFS
8910shift
8911
8912cat >>confdefs.h <<_ACEOF
8913#define SELECT_TYPE_ARG1 $1
8914_ACEOF
8915
8916
8917cat >>confdefs.h <<_ACEOF
8918#define SELECT_TYPE_ARG234 ($2)
8919_ACEOF
8920
8921
8922cat >>confdefs.h <<_ACEOF
8923#define SELECT_TYPE_ARG5 ($3)
8924_ACEOF
8925
80992638 8926rm -f conftest*
80992638 8927
8106cdd5 8928fi
ad6254c5
AK
8929
8930if test x$FSADM = xyes; then
8931
8932
8933
8934for ac_header in fstab.h sys/mount.h sys/vfs.h
8935do
8936as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8937if eval "test \"\${$as_ac_Header+set}\" = set"; then
8938 echo "$as_me:$LINENO: checking for $ac_header" >&5
8939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8940if eval "test \"\${$as_ac_Header+set}\" = set"; then
8941 echo $ECHO_N "(cached) $ECHO_C" >&6
8942fi
8943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8944echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8945else
8946 # Is the header compilable?
8947echo "$as_me:$LINENO: checking $ac_header usability" >&5
8948echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8949cat >conftest.$ac_ext <<_ACEOF
c1c065a3 8950#line $LINENO "configure"
ad6254c5
AK
8951/* confdefs.h. */
8952_ACEOF
8953cat confdefs.h >>conftest.$ac_ext
8954cat >>conftest.$ac_ext <<_ACEOF
8955/* end confdefs.h. */
8956$ac_includes_default
8957#include <$ac_header>
8958_ACEOF
8959rm -f conftest.$ac_objext
8960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 8961 (eval $ac_compile) 2>&5
ad6254c5
AK
8962 ac_status=$?
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); } &&
c1c065a3 8965 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
8966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8967 (eval $ac_try) 2>&5
8968 ac_status=$?
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); }; }; then
8971 ac_header_compiler=yes
8972else
8973 echo "$as_me: failed program was:" >&5
8974sed 's/^/| /' conftest.$ac_ext >&5
8975
8976ac_header_compiler=no
8977fi
c1c065a3 8978rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
8979echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8980echo "${ECHO_T}$ac_header_compiler" >&6
8981
8982# Is the header present?
8983echo "$as_me:$LINENO: checking $ac_header presence" >&5
8984echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8985cat >conftest.$ac_ext <<_ACEOF
c1c065a3 8986#line $LINENO "configure"
ad6254c5
AK
8987/* confdefs.h. */
8988_ACEOF
8989cat confdefs.h >>conftest.$ac_ext
8990cat >>conftest.$ac_ext <<_ACEOF
8991/* end confdefs.h. */
8992#include <$ac_header>
8993_ACEOF
8994if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8996 ac_status=$?
8997 grep -v '^ *+' conftest.er1 >conftest.err
8998 rm -f conftest.er1
8999 cat conftest.err >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } >/dev/null; then
9002 if test -s conftest.err; then
9003 ac_cpp_err=$ac_c_preproc_warn_flag
9004 else
9005 ac_cpp_err=
9006 fi
9007else
9008 ac_cpp_err=yes
9009fi
9010if test -z "$ac_cpp_err"; then
9011 ac_header_preproc=yes
9012else
9013 echo "$as_me: failed program was:" >&5
9014sed 's/^/| /' conftest.$ac_ext >&5
9015
9016 ac_header_preproc=no
9017fi
9018rm -f conftest.err conftest.$ac_ext
9019echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9020echo "${ECHO_T}$ac_header_preproc" >&6
9021
9022# So? What about this header?
c1c065a3
AK
9023case $ac_header_compiler:$ac_header_preproc in
9024 yes:no )
ad6254c5
AK
9025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9026echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
c1c065a3
AK
9027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9028echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9029 (
9030 cat <<\_ASBOX
9031## ------------------------------------ ##
9032## Report this to bug-autoconf@gnu.org. ##
9033## ------------------------------------ ##
9034_ASBOX
9035 ) |
9036 sed "s/^/$as_me: WARNING: /" >&2
ad6254c5 9037 ;;
c1c065a3 9038 no:yes )
ad6254c5
AK
9039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9040echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
c1c065a3
AK
9041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9042echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
ad6254c5
AK
9043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9044echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9045 (
9046 cat <<\_ASBOX
c1c065a3
AK
9047## ------------------------------------ ##
9048## Report this to bug-autoconf@gnu.org. ##
9049## ------------------------------------ ##
ad6254c5
AK
9050_ASBOX
9051 ) |
9052 sed "s/^/$as_me: WARNING: /" >&2
9053 ;;
9054esac
9055echo "$as_me:$LINENO: checking for $ac_header" >&5
9056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9057if eval "test \"\${$as_ac_Header+set}\" = set"; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
26e7f2e0 9059else
c1c065a3 9060 eval "$as_ac_Header=$ac_header_preproc"
26e7f2e0 9061fi
ad6254c5
AK
9062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9063echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26e7f2e0 9064
ad6254c5
AK
9065fi
9066if test `eval echo '${'$as_ac_Header'}'` = yes; then
9067 cat >>confdefs.h <<_ACEOF
9068#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9069_ACEOF
26e7f2e0 9070
d68a82ec 9071else
ad6254c5
AK
9072 { { echo "$as_me:$LINENO: error: bailing out" >&5
9073echo "$as_me: error: bailing out" >&2;}
9074 { (exit 1); exit 1; }; }
26e7f2e0
AK
9075fi
9076
ad6254c5 9077done
036f273a 9078
ad6254c5
AK
9079
9080for ac_func in memmove
9081do
9082as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9083echo "$as_me:$LINENO: checking for $ac_func" >&5
9084echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9085if eval "test \"\${$as_ac_var+set}\" = set"; then
9086 echo $ECHO_N "(cached) $ECHO_C" >&6
036f273a 9087else
ad6254c5 9088 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 9089#line $LINENO "configure"
ad6254c5
AK
9090/* confdefs.h. */
9091_ACEOF
9092cat confdefs.h >>conftest.$ac_ext
9093cat >>conftest.$ac_ext <<_ACEOF
9094/* end confdefs.h. */
9095/* System header to define __stub macros and hopefully few prototypes,
9096 which can conflict with char $ac_func (); below.
9097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9098 <limits.h> exists even on freestanding compilers. */
9099#ifdef __STDC__
9100# include <limits.h>
9101#else
9102# include <assert.h>
9103#endif
036f273a 9104/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
9105#ifdef __cplusplus
9106extern "C"
9107{
9108#endif
036f273a 9109/* We use char because int might match the return type of a gcc2
ad6254c5
AK
9110 builtin and then its argument prototype would still apply. */
9111char $ac_func ();
9112/* The GNU C library defines this for functions which it implements
9113 to always fail with ENOSYS. Some functions are actually named
9114 something starting with __ and the normal name is an alias. */
9115#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9116choke me
9117#else
9118char (*f) () = $ac_func;
9119#endif
9120#ifdef __cplusplus
9121}
9122#endif
80992638 9123
ad6254c5
AK
9124int
9125main ()
9126{
9127return f != $ac_func;
9128 ;
9129 return 0;
9130}
9131_ACEOF
9132rm -f conftest.$ac_objext conftest$ac_exeext
9133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c1c065a3 9134 (eval $ac_link) 2>&5
ad6254c5
AK
9135 ac_status=$?
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); } &&
c1c065a3 9138 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9140 (eval $ac_try) 2>&5
9141 ac_status=$?
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); }; }; then
9144 eval "$as_ac_var=yes"
036f273a 9145else
ad6254c5
AK
9146 echo "$as_me: failed program was:" >&5
9147sed 's/^/| /' conftest.$ac_ext >&5
9148
9149eval "$as_ac_var=no"
036f273a 9150fi
c1c065a3 9151rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9152fi
9153echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9154echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9155if test `eval echo '${'$as_ac_var'}'` = yes; then
9156 cat >>confdefs.h <<_ACEOF
9157#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9158_ACEOF
036f273a 9159
ad6254c5
AK
9160else
9161 { { echo "$as_me:$LINENO: error: bailing out" >&5
9162echo "$as_me: error: bailing out" >&2;}
9163 { (exit 1); exit 1; }; }
9164fi
9165done
036f273a 9166
036f273a 9167fi
d68a82ec 9168
ad6254c5
AK
9169if test x$CLUSTER != xnone; then
9170
9171
9172for ac_header in sys/socket.h sys/un.h
b896caa1 9173do
ad6254c5
AK
9174as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9175if eval "test \"\${$as_ac_Header+set}\" = set"; then
9176 echo "$as_me:$LINENO: checking for $ac_header" >&5
9177echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9178if eval "test \"\${$as_ac_Header+set}\" = set"; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9180fi
9181echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9182echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9183else
9184 # Is the header compilable?
9185echo "$as_me:$LINENO: checking $ac_header usability" >&5
9186echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9187cat >conftest.$ac_ext <<_ACEOF
c1c065a3 9188#line $LINENO "configure"
ad6254c5
AK
9189/* confdefs.h. */
9190_ACEOF
9191cat confdefs.h >>conftest.$ac_ext
9192cat >>conftest.$ac_ext <<_ACEOF
9193/* end confdefs.h. */
9194$ac_includes_default
9195#include <$ac_header>
9196_ACEOF
9197rm -f conftest.$ac_objext
9198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 9199 (eval $ac_compile) 2>&5
ad6254c5
AK
9200 ac_status=$?
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } &&
c1c065a3 9203 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 (eval $ac_try) 2>&5
9206 ac_status=$?
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; }; then
9209 ac_header_compiler=yes
9210else
9211 echo "$as_me: failed program was:" >&5
9212sed 's/^/| /' conftest.$ac_ext >&5
9213
9214ac_header_compiler=no
9215fi
c1c065a3 9216rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9217echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9218echo "${ECHO_T}$ac_header_compiler" >&6
9219
9220# Is the header present?
9221echo "$as_me:$LINENO: checking $ac_header presence" >&5
9222echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9223cat >conftest.$ac_ext <<_ACEOF
c1c065a3 9224#line $LINENO "configure"
ad6254c5
AK
9225/* confdefs.h. */
9226_ACEOF
9227cat confdefs.h >>conftest.$ac_ext
9228cat >>conftest.$ac_ext <<_ACEOF
9229/* end confdefs.h. */
9230#include <$ac_header>
9231_ACEOF
9232if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9234 ac_status=$?
9235 grep -v '^ *+' conftest.er1 >conftest.err
9236 rm -f conftest.er1
9237 cat conftest.err >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } >/dev/null; then
9240 if test -s conftest.err; then
9241 ac_cpp_err=$ac_c_preproc_warn_flag
9242 else
9243 ac_cpp_err=
9244 fi
9245else
9246 ac_cpp_err=yes
8106cdd5 9247fi
ad6254c5
AK
9248if test -z "$ac_cpp_err"; then
9249 ac_header_preproc=yes
9250else
9251 echo "$as_me: failed program was:" >&5
9252sed 's/^/| /' conftest.$ac_ext >&5
9253
9254 ac_header_preproc=no
9255fi
9256rm -f conftest.err conftest.$ac_ext
9257echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9258echo "${ECHO_T}$ac_header_preproc" >&6
9259
9260# So? What about this header?
c1c065a3
AK
9261case $ac_header_compiler:$ac_header_preproc in
9262 yes:no )
ad6254c5
AK
9263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9264echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
c1c065a3
AK
9265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9266echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9267 (
9268 cat <<\_ASBOX
9269## ------------------------------------ ##
9270## Report this to bug-autoconf@gnu.org. ##
9271## ------------------------------------ ##
9272_ASBOX
9273 ) |
9274 sed "s/^/$as_me: WARNING: /" >&2
ad6254c5 9275 ;;
c1c065a3 9276 no:yes )
ad6254c5
AK
9277 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9278echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
c1c065a3
AK
9279 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9280echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
ad6254c5
AK
9281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9282echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9283 (
9284 cat <<\_ASBOX
c1c065a3
AK
9285## ------------------------------------ ##
9286## Report this to bug-autoconf@gnu.org. ##
9287## ------------------------------------ ##
ad6254c5
AK
9288_ASBOX
9289 ) |
9290 sed "s/^/$as_me: WARNING: /" >&2
9291 ;;
9292esac
9293echo "$as_me:$LINENO: checking for $ac_header" >&5
9294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9295if eval "test \"\${$as_ac_Header+set}\" = set"; then
9296 echo $ECHO_N "(cached) $ECHO_C" >&6
9297else
c1c065a3 9298 eval "$as_ac_Header=$ac_header_preproc"
b896caa1 9299fi
ad6254c5
AK
9300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9301echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9302
9303fi
9304if test `eval echo '${'$as_ac_Header'}'` = yes; then
9305 cat >>confdefs.h <<_ACEOF
9306#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9307_ACEOF
9308
80992638 9309else
ad6254c5
AK
9310 { { echo "$as_me:$LINENO: error: bailing out" >&5
9311echo "$as_me: error: bailing out" >&2;}
9312 { (exit 1); exit 1; }; }
b896caa1 9313fi
ad6254c5 9314
b896caa1
AK
9315done
9316
9317
ad6254c5
AK
9318for ac_func in socket
9319do
9320as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9321echo "$as_me:$LINENO: checking for $ac_func" >&5
9322echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9323if eval "test \"\${$as_ac_var+set}\" = set"; then
9324 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 9325else
ad6254c5 9326 cat >conftest.$ac_ext <<_ACEOF
c1c065a3 9327#line $LINENO "configure"
ad6254c5
AK
9328/* confdefs.h. */
9329_ACEOF
9330cat confdefs.h >>conftest.$ac_ext
9331cat >>conftest.$ac_ext <<_ACEOF
9332/* end confdefs.h. */
9333/* System header to define __stub macros and hopefully few prototypes,
9334 which can conflict with char $ac_func (); below.
9335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9336 <limits.h> exists even on freestanding compilers. */
9337#ifdef __STDC__
9338# include <limits.h>
9339#else
9340# include <assert.h>
9341#endif
795ca3e5 9342/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
9343#ifdef __cplusplus
9344extern "C"
9345{
9346#endif
795ca3e5 9347/* We use char because int might match the return type of a gcc2
ad6254c5
AK
9348 builtin and then its argument prototype would still apply. */
9349char $ac_func ();
9350/* The GNU C library defines this for functions which it implements
9351 to always fail with ENOSYS. Some functions are actually named
9352 something starting with __ and the normal name is an alias. */
9353#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9354choke me
9355#else
9356char (*f) () = $ac_func;
9357#endif
9358#ifdef __cplusplus
9359}
9360#endif
9361
9362int
9363main ()
9364{
9365return f != $ac_func;
9366 ;
9367 return 0;
9368}
9369_ACEOF
9370rm -f conftest.$ac_objext conftest$ac_exeext
9371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c1c065a3 9372 (eval $ac_link) 2>&5
ad6254c5
AK
9373 ac_status=$?
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); } &&
c1c065a3 9376 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378 (eval $ac_try) 2>&5
9379 ac_status=$?
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; }; then
9382 eval "$as_ac_var=yes"
9383else
9384 echo "$as_me: failed program was:" >&5
9385sed 's/^/| /' conftest.$ac_ext >&5
9386
9387eval "$as_ac_var=no"
9388fi
c1c065a3 9389rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9390fi
9391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9392echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9393if test `eval echo '${'$as_ac_var'}'` = yes; then
9394 cat >>confdefs.h <<_ACEOF
9395#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9396_ACEOF
9397
9398else
9399 { { echo "$as_me:$LINENO: error: bailing out" >&5
9400echo "$as_me: error: bailing out" >&2;}
9401 { (exit 1); exit 1; }; }
9402fi
9403done
9404
9405fi
9406
9407if test x$HAVE_LIBDL = xyes; then
9408
9409for ac_header in dlfcn.h
9410do
9411as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9412if eval "test \"\${$as_ac_Header+set}\" = set"; then
9413 echo "$as_me:$LINENO: checking for $ac_header" >&5
9414echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9415if eval "test \"\${$as_ac_Header+set}\" = set"; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9417fi
9418echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9419echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9420else
9421 # Is the header compilable?
9422echo "$as_me:$LINENO: checking $ac_header usability" >&5
9423echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9424cat >conftest.$ac_ext <<_ACEOF
c1c065a3 9425#line $LINENO "configure"
ad6254c5
AK
9426/* confdefs.h. */
9427_ACEOF
9428cat confdefs.h >>conftest.$ac_ext
9429cat >>conftest.$ac_ext <<_ACEOF
9430/* end confdefs.h. */
9431$ac_includes_default
9432#include <$ac_header>
9433_ACEOF
9434rm -f conftest.$ac_objext
9435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 9436 (eval $ac_compile) 2>&5
ad6254c5
AK
9437 ac_status=$?
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } &&
c1c065a3 9440 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442 (eval $ac_try) 2>&5
9443 ac_status=$?
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; }; then
9446 ac_header_compiler=yes
9447else
9448 echo "$as_me: failed program was:" >&5
9449sed 's/^/| /' conftest.$ac_ext >&5
9450
9451ac_header_compiler=no
9452fi
c1c065a3 9453rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9454echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9455echo "${ECHO_T}$ac_header_compiler" >&6
9456
9457# Is the header present?
9458echo "$as_me:$LINENO: checking $ac_header presence" >&5
9459echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9460cat >conftest.$ac_ext <<_ACEOF
c1c065a3 9461#line $LINENO "configure"
ad6254c5
AK
9462/* confdefs.h. */
9463_ACEOF
9464cat confdefs.h >>conftest.$ac_ext
9465cat >>conftest.$ac_ext <<_ACEOF
9466/* end confdefs.h. */
9467#include <$ac_header>
9468_ACEOF
9469if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9471 ac_status=$?
9472 grep -v '^ *+' conftest.er1 >conftest.err
9473 rm -f conftest.er1
9474 cat conftest.err >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); } >/dev/null; then
9477 if test -s conftest.err; then
9478 ac_cpp_err=$ac_c_preproc_warn_flag
9479 else
9480 ac_cpp_err=
9481 fi
9482else
9483 ac_cpp_err=yes
9484fi
9485if test -z "$ac_cpp_err"; then
9486 ac_header_preproc=yes
9487else
9488 echo "$as_me: failed program was:" >&5
9489sed 's/^/| /' conftest.$ac_ext >&5
9490
9491 ac_header_preproc=no
9492fi
9493rm -f conftest.err conftest.$ac_ext
9494echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9495echo "${ECHO_T}$ac_header_preproc" >&6
9496
9497# So? What about this header?
c1c065a3
AK
9498case $ac_header_compiler:$ac_header_preproc in
9499 yes:no )
ad6254c5
AK
9500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9501echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
c1c065a3
AK
9502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9503echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9504 (
9505 cat <<\_ASBOX
9506## ------------------------------------ ##
9507## Report this to bug-autoconf@gnu.org. ##
9508## ------------------------------------ ##
9509_ASBOX
9510 ) |
9511 sed "s/^/$as_me: WARNING: /" >&2
ad6254c5 9512 ;;
c1c065a3 9513 no:yes )
ad6254c5
AK
9514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9515echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
c1c065a3
AK
9516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9517echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
ad6254c5
AK
9518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9519echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9520 (
9521 cat <<\_ASBOX
c1c065a3
AK
9522## ------------------------------------ ##
9523## Report this to bug-autoconf@gnu.org. ##
9524## ------------------------------------ ##
ad6254c5
AK
9525_ASBOX
9526 ) |
9527 sed "s/^/$as_me: WARNING: /" >&2
9528 ;;
9529esac
9530echo "$as_me:$LINENO: checking for $ac_header" >&5
9531echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9532if eval "test \"\${$as_ac_Header+set}\" = set"; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
9534else
c1c065a3 9535 eval "$as_ac_Header=$ac_header_preproc"
795ca3e5 9536fi
ad6254c5
AK
9537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9538echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
80992638 9539
8106cdd5 9540fi
ad6254c5
AK
9541if test `eval echo '${'$as_ac_Header'}'` = yes; then
9542 cat >>confdefs.h <<_ACEOF
9543#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9544_ACEOF
795ca3e5
AK
9545
9546else
ad6254c5
AK
9547 { { echo "$as_me:$LINENO: error: bailing out" >&5
9548echo "$as_me: error: bailing out" >&2;}
9549 { (exit 1); exit 1; }; }
795ca3e5
AK
9550fi
9551
ad6254c5 9552done
80992638 9553
ad6254c5 9554fi
80992638 9555
ad6254c5 9556if test x$INTL = xyes; then
83912faa 9557
ad6254c5
AK
9558for ac_header in libintl.h
9559do
9560as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9561if eval "test \"\${$as_ac_Header+set}\" = set"; then
9562 echo "$as_me:$LINENO: checking for $ac_header" >&5
9563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9564if eval "test \"\${$as_ac_Header+set}\" = set"; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
9566fi
9567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9568echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
83912faa 9569else
ad6254c5
AK
9570 # Is the header compilable?
9571echo "$as_me:$LINENO: checking $ac_header usability" >&5
9572echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9573cat >conftest.$ac_ext <<_ACEOF
c1c065a3 9574#line $LINENO "configure"
ad6254c5
AK
9575/* confdefs.h. */
9576_ACEOF
9577cat confdefs.h >>conftest.$ac_ext
9578cat >>conftest.$ac_ext <<_ACEOF
9579/* end confdefs.h. */
9580$ac_includes_default
9581#include <$ac_header>
9582_ACEOF
9583rm -f conftest.$ac_objext
9584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 9585 (eval $ac_compile) 2>&5
ad6254c5
AK
9586 ac_status=$?
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); } &&
c1c065a3 9589 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591 (eval $ac_try) 2>&5
9592 ac_status=$?
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; }; then
9595 ac_header_compiler=yes
9596else
9597 echo "$as_me: failed program was:" >&5
9598sed 's/^/| /' conftest.$ac_ext >&5
9599
9600ac_header_compiler=no
9601fi
c1c065a3 9602rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9603echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9604echo "${ECHO_T}$ac_header_compiler" >&6
9605
9606# Is the header present?
9607echo "$as_me:$LINENO: checking $ac_header presence" >&5
9608echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9609cat >conftest.$ac_ext <<_ACEOF
c1c065a3 9610#line $LINENO "configure"
ad6254c5
AK
9611/* confdefs.h. */
9612_ACEOF
9613cat confdefs.h >>conftest.$ac_ext
9614cat >>conftest.$ac_ext <<_ACEOF
9615/* end confdefs.h. */
9616#include <$ac_header>
9617_ACEOF
9618if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9620 ac_status=$?
9621 grep -v '^ *+' conftest.er1 >conftest.err
9622 rm -f conftest.er1
9623 cat conftest.err >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); } >/dev/null; then
9626 if test -s conftest.err; then
9627 ac_cpp_err=$ac_c_preproc_warn_flag
9628 else
9629 ac_cpp_err=
9630 fi
9631else
9632 ac_cpp_err=yes
795ca3e5 9633fi
ad6254c5
AK
9634if test -z "$ac_cpp_err"; then
9635 ac_header_preproc=yes
9636else
9637 echo "$as_me: failed program was:" >&5
9638sed 's/^/| /' conftest.$ac_ext >&5
9639
9640 ac_header_preproc=no
9641fi
9642rm -f conftest.err conftest.$ac_ext
9643echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9644echo "${ECHO_T}$ac_header_preproc" >&6
9645
9646# So? What about this header?
c1c065a3
AK
9647case $ac_header_compiler:$ac_header_preproc in
9648 yes:no )
ad6254c5
AK
9649 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9650echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
c1c065a3
AK
9651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9652echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9653 (
9654 cat <<\_ASBOX
9655## ------------------------------------ ##
9656## Report this to bug-autoconf@gnu.org. ##
9657## ------------------------------------ ##
9658_ASBOX
9659 ) |
9660 sed "s/^/$as_me: WARNING: /" >&2
ad6254c5 9661 ;;
c1c065a3 9662 no:yes )
ad6254c5
AK
9663 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9664echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
c1c065a3
AK
9665 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9666echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
ad6254c5
AK
9667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9668echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9669 (
9670 cat <<\_ASBOX
c1c065a3
AK
9671## ------------------------------------ ##
9672## Report this to bug-autoconf@gnu.org. ##
9673## ------------------------------------ ##
ad6254c5
AK
9674_ASBOX
9675 ) |
9676 sed "s/^/$as_me: WARNING: /" >&2
9677 ;;
9678esac
9679echo "$as_me:$LINENO: checking for $ac_header" >&5
9680echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9681if eval "test \"\${$as_ac_Header+set}\" = set"; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 9683else
c1c065a3 9684 eval "$as_ac_Header=$ac_header_preproc"
83912faa 9685fi
ad6254c5
AK
9686echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9687echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
83912faa 9688
69792976 9689fi
ad6254c5
AK
9690if test `eval echo '${'$as_ac_Header'}'` = yes; then
9691 cat >>confdefs.h <<_ACEOF
9692#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9693_ACEOF
69792976 9694
69792976 9695else
ad6254c5
AK
9696 { { echo "$as_me:$LINENO: error: bailing out" >&5
9697echo "$as_me: error: bailing out" >&2;}
9698 { (exit 1); exit 1; }; }
80992638
AK
9699fi
9700
ad6254c5 9701done
69792976 9702
ad6254c5
AK
9703fi
9704
9705if test x$DEVMAPPER = xyes; then
9706
9707for ac_header in libdevmapper.h
9708do
9709as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9710if eval "test \"\${$as_ac_Header+set}\" = set"; then
9711 echo "$as_me:$LINENO: checking for $ac_header" >&5
9712echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9713if eval "test \"\${$as_ac_Header+set}\" = set"; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9715fi
9716echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9717echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
69792976 9718else
ad6254c5
AK
9719 # Is the header compilable?
9720echo "$as_me:$LINENO: checking $ac_header usability" >&5
9721echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9722cat >conftest.$ac_ext <<_ACEOF
c1c065a3 9723#line $LINENO "configure"
ad6254c5
AK
9724/* confdefs.h. */
9725_ACEOF
9726cat confdefs.h >>conftest.$ac_ext
9727cat >>conftest.$ac_ext <<_ACEOF
9728/* end confdefs.h. */
9729$ac_includes_default
9730#include <$ac_header>
9731_ACEOF
9732rm -f conftest.$ac_objext
9733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 9734 (eval $ac_compile) 2>&5
ad6254c5
AK
9735 ac_status=$?
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } &&
c1c065a3 9738 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9740 (eval $ac_try) 2>&5
9741 ac_status=$?
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; }; then
9744 ac_header_compiler=yes
9745else
9746 echo "$as_me: failed program was:" >&5
9747sed 's/^/| /' conftest.$ac_ext >&5
9748
9749ac_header_compiler=no
9750fi
c1c065a3 9751rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9752echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9753echo "${ECHO_T}$ac_header_compiler" >&6
9754
9755# Is the header present?
9756echo "$as_me:$LINENO: checking $ac_header presence" >&5
9757echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9758cat >conftest.$ac_ext <<_ACEOF
c1c065a3 9759#line $LINENO "configure"
ad6254c5
AK
9760/* confdefs.h. */
9761_ACEOF
9762cat confdefs.h >>conftest.$ac_ext
9763cat >>conftest.$ac_ext <<_ACEOF
9764/* end confdefs.h. */
9765#include <$ac_header>
9766_ACEOF
9767if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9769 ac_status=$?
9770 grep -v '^ *+' conftest.er1 >conftest.err
9771 rm -f conftest.er1
9772 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } >/dev/null; then
9775 if test -s conftest.err; then
9776 ac_cpp_err=$ac_c_preproc_warn_flag
9777 else
9778 ac_cpp_err=
9779 fi
9780else
9781 ac_cpp_err=yes
69792976 9782fi
ad6254c5
AK
9783if test -z "$ac_cpp_err"; then
9784 ac_header_preproc=yes
9785else
9786 echo "$as_me: failed program was:" >&5
9787sed 's/^/| /' conftest.$ac_ext >&5
9788
9789 ac_header_preproc=no
9790fi
9791rm -f conftest.err conftest.$ac_ext
9792echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9793echo "${ECHO_T}$ac_header_preproc" >&6
9794
9795# So? What about this header?
c1c065a3
AK
9796case $ac_header_compiler:$ac_header_preproc in
9797 yes:no )
ad6254c5
AK
9798 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9799echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
c1c065a3
AK
9800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9801echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9802 (
9803 cat <<\_ASBOX
9804## ------------------------------------ ##
9805## Report this to bug-autoconf@gnu.org. ##
9806## ------------------------------------ ##
9807_ASBOX
9808 ) |
9809 sed "s/^/$as_me: WARNING: /" >&2
ad6254c5 9810 ;;
c1c065a3 9811 no:yes )
ad6254c5
AK
9812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9813echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
c1c065a3
AK
9814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9815echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
ad6254c5
AK
9816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9817echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9818 (
9819 cat <<\_ASBOX
c1c065a3
AK
9820## ------------------------------------ ##
9821## Report this to bug-autoconf@gnu.org. ##
9822## ------------------------------------ ##
ad6254c5
AK
9823_ASBOX
9824 ) |
9825 sed "s/^/$as_me: WARNING: /" >&2
9826 ;;
9827esac
9828echo "$as_me:$LINENO: checking for $ac_header" >&5
9829echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9830if eval "test \"\${$as_ac_Header+set}\" = set"; then
9831 echo $ECHO_N "(cached) $ECHO_C" >&6
69792976 9832else
c1c065a3 9833 eval "$as_ac_Header=$ac_header_preproc"
69792976 9834fi
ad6254c5
AK
9835echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9836echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
69792976 9837
ad6254c5
AK
9838fi
9839if test `eval echo '${'$as_ac_Header'}'` = yes; then
9840 cat >>confdefs.h <<_ACEOF
9841#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9842_ACEOF
69792976 9843
69792976 9844else
ad6254c5
AK
9845 { { echo "$as_me:$LINENO: error: bailing out" >&5
9846echo "$as_me: error: bailing out" >&2;}
9847 { (exit 1); exit 1; }; }
83912faa
AK
9848fi
9849
ad6254c5
AK
9850done
9851
80992638 9852fi
4a7f3eb2 9853
ad6254c5
AK
9854if test x$HAVE_SELINUX = xyes; then
9855
9856for ac_header in selinux/selinux.h
9857do
9858as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9859if eval "test \"\${$as_ac_Header+set}\" = set"; then
9860 echo "$as_me:$LINENO: checking for $ac_header" >&5
9861echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9862if eval "test \"\${$as_ac_Header+set}\" = set"; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9864fi
9865echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9866echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4a7f3eb2 9867else
ad6254c5
AK
9868 # Is the header compilable?
9869echo "$as_me:$LINENO: checking $ac_header usability" >&5
9870echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9871cat >conftest.$ac_ext <<_ACEOF
c1c065a3 9872#line $LINENO "configure"
ad6254c5
AK
9873/* confdefs.h. */
9874_ACEOF
9875cat confdefs.h >>conftest.$ac_ext
9876cat >>conftest.$ac_ext <<_ACEOF
9877/* end confdefs.h. */
9878$ac_includes_default
9879#include <$ac_header>
9880_ACEOF
9881rm -f conftest.$ac_objext
9882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
c1c065a3 9883 (eval $ac_compile) 2>&5
ad6254c5
AK
9884 ac_status=$?
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); } &&
c1c065a3 9887 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9889 (eval $ac_try) 2>&5
9890 ac_status=$?
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); }; }; then
9893 ac_header_compiler=yes
9894else
9895 echo "$as_me: failed program was:" >&5
9896sed 's/^/| /' conftest.$ac_ext >&5
9897
9898ac_header_compiler=no
9899fi
c1c065a3 9900rm -f conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9901echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9902echo "${ECHO_T}$ac_header_compiler" >&6
9903
9904# Is the header present?
9905echo "$as_me:$LINENO: checking $ac_header presence" >&5
9906echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9907cat >conftest.$ac_ext <<_ACEOF
c1c065a3 9908#line $LINENO "configure"
ad6254c5
AK
9909/* confdefs.h. */
9910_ACEOF
9911cat confdefs.h >>conftest.$ac_ext
9912cat >>conftest.$ac_ext <<_ACEOF
9913/* end confdefs.h. */
9914#include <$ac_header>
9915_ACEOF
9916if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9918 ac_status=$?
9919 grep -v '^ *+' conftest.er1 >conftest.err
9920 rm -f conftest.er1
9921 cat conftest.err >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } >/dev/null; then
9924 if test -s conftest.err; then
9925 ac_cpp_err=$ac_c_preproc_warn_flag
9926 else
9927 ac_cpp_err=
9928 fi
9929else
9930 ac_cpp_err=yes
9931fi
9932if test -z "$ac_cpp_err"; then
9933 ac_header_preproc=yes
9934else
9935 echo "$as_me: failed program was:" >&5
9936sed 's/^/| /' conftest.$ac_ext >&5
9937
9938 ac_header_preproc=no
9939fi
9940rm -f conftest.err conftest.$ac_ext
9941echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9942echo "${ECHO_T}$ac_header_preproc" >&6
9943
9944# So? What about this header?
c1c065a3
AK
9945case $ac_header_compiler:$ac_header_preproc in
9946 yes:no )
ad6254c5
AK
9947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9948echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
c1c065a3
AK
9949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9950echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9951 (
9952 cat <<\_ASBOX
9953## ------------------------------------ ##
9954## Report this to bug-autoconf@gnu.org. ##
9955## ------------------------------------ ##
9956_ASBOX
9957 ) |
9958 sed "s/^/$as_me: WARNING: /" >&2
ad6254c5 9959 ;;
c1c065a3 9960 no:yes )
ad6254c5
AK
9961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9962echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
c1c065a3
AK
9963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9964echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
ad6254c5
AK
9965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9966echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9967 (
9968 cat <<\_ASBOX
c1c065a3
AK
9969## ------------------------------------ ##
9970## Report this to bug-autoconf@gnu.org. ##
9971## ------------------------------------ ##
ad6254c5
AK
9972_ASBOX
9973 ) |
9974 sed "s/^/$as_me: WARNING: /" >&2
9975 ;;
9976esac
9977echo "$as_me:$LINENO: checking for $ac_header" >&5
9978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9979if eval "test \"\${$as_ac_Header+set}\" = set"; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9981else
c1c065a3 9982 eval "$as_ac_Header=$ac_header_preproc"
80992638 9983fi
ad6254c5
AK
9984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9985echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4a7f3eb2 9986
ad6254c5
AK
9987fi
9988if test `eval echo '${'$as_ac_Header'}'` = yes; then
9989 cat >>confdefs.h <<_ACEOF
9990#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9991_ACEOF
0a62c911 9992
0a62c911 9993else
ad6254c5
AK
9994 { { echo "$as_me:$LINENO: error: bailing out" >&5
9995echo "$as_me: error: bailing out" >&2;}
9996 { (exit 1); exit 1; }; }
80992638
AK
9997fi
9998
ad6254c5 9999done
0a62c911 10000
ad6254c5 10001fi
0a62c911 10002
a653923f
AK
10003################################################################################
10004# Extract the first word of "modprobe", so it can be a program name with args.
10005set dummy modprobe; ac_word=$2
10006echo "$as_me:$LINENO: checking for $ac_word" >&5
10007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10008if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
10009 echo $ECHO_N "(cached) $ECHO_C" >&6
10010else
10011 case $MODPROBE_CMD in
10012 [\\/]* | ?:[\\/]*)
10013 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
10014 ;;
10015 *)
10016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10017for as_dir in $PATH
10018do
10019 IFS=$as_save_IFS
10020 test -z "$as_dir" && as_dir=.
10021 for ac_exec_ext in '' $ac_executable_extensions; do
10022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10023 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
10024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10025 break 2
10026 fi
10027done
10028done
10029
10030 ;;
10031esac
10032fi
10033MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
10034
10035if test -n "$MODPROBE_CMD"; then
10036 echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
10037echo "${ECHO_T}$MODPROBE_CMD" >&6
10038else
10039 echo "$as_me:$LINENO: result: no" >&5
10040echo "${ECHO_T}no" >&6
10041fi
10042
10043
10044if test x$MODPROBE_CMD != x; then
10045 CFLAGS="$CFLAGS -DMODPROBE_CMD=\\\"$MODPROBE_CMD\\\""
10046fi
10047
80992638 10048################################################################################
fae0c576
AK
10049if test "-f VERSION"; then
10050 LVM_VERSION="\"`cat VERSION`\""
10051else
10052 LVM_VERSION="Unknown"
10053fi
10054
80992638 10055################################################################################
fae0c576 10056
83912faa 10057
795ca3e5
AK
10058
10059
10060
10061
10062
10063
5a52dca9 10064
8ef2b021 10065
199e490e 10066
69792976
AK
10067
10068
10069
10070
8106cdd5
AK
10071
10072
10073
10074
10075
d68a82ec 10076
036f273a 10077
7d1552c9 10078
8106cdd5 10079
0a62c911 10080
8106cdd5 10081
4a7f3eb2 10082
4922197a
AK
10083
10084
d8ac0fbc 10085
1a9ea74d 10086
8ce0cbda 10087
06f62ad1 10088
d3c8211f
AK
10089
10090
80992638 10091################################################################################
06f62ad1 10092 ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile dmeventd/Makefile dmeventd/mirror/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile man/Makefile po/Makefile tools/Makefile tools/version.h tools/fsadm/Makefile test/mm/Makefile test/device/Makefile test/format1/Makefile test/regex/Makefile test/filters/Makefile"
ad6254c5 10093cat >confcache <<\_ACEOF
795ca3e5
AK
10094# This file is a shell script that caches the results of configure
10095# tests run on this system so they can be shared between configure
ad6254c5
AK
10096# scripts and configure runs, see configure's option --config-cache.
10097# It is not useful on other systems. If it contains results you don't
10098# want to keep, you may remove or edit it.
795ca3e5 10099#
ad6254c5
AK
10100# config.status only pays attention to the cache file if you give it
10101# the --recheck option to rerun configure.
795ca3e5 10102#
ad6254c5
AK
10103# `ac_cv_env_foo' variables (set or unset) will be overridden when
10104# loading this file, other *unset* `ac_cv_foo' will be assigned the
10105# following values.
10106
10107_ACEOF
10108
795ca3e5
AK
10109# The following way of writing the cache mishandles newlines in values,
10110# but we know of no workaround that is simple, portable, and efficient.
10111# So, don't put newlines in cache variables' values.
10112# Ultrix sh set writes to stderr and can't be redirected directly,
10113# and sets the high bit in the cache file unless we assign to the vars.
ad6254c5
AK
10114{
10115 (set) 2>&1 |
10116 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10117 *ac_space=\ *)
10118 # `set' does not quote correctly, so add quotes (double-quote
10119 # substitution turns \\\\ into \\, and sed turns \\ into \).
10120 sed -n \
c1c065a3
AK
10121 "s/'/'\\\\''/g;
10122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
ad6254c5
AK
10123 ;;
10124 *)
10125 # `set' quotes correctly as required by POSIX, so do not add quotes.
10126 sed -n \
c1c065a3 10127 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
ad6254c5
AK
10128 ;;
10129 esac;
10130} |
10131 sed '
10132 t clear
10133 : clear
10134 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10135 t end
10136 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10137 : end' >>confcache
10138if diff $cache_file confcache >/dev/null 2>&1; then :; else
795ca3e5 10139 if test -w $cache_file; then
ad6254c5
AK
10140 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10141 cat confcache >$cache_file
795ca3e5
AK
10142 else
10143 echo "not updating unwritable cache $cache_file"
10144 fi
10145fi
10146rm -f confcache
10147
795ca3e5
AK
10148test "x$prefix" = xNONE && prefix=$ac_default_prefix
10149# Let make expand exec_prefix.
10150test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10151
ad6254c5
AK
10152# VPATH may cause trouble with some makes, so we remove $(srcdir),
10153# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10154# trailing colons and then remove the whole line if VPATH becomes empty
10155# (actually we leave an empty line to preserve line numbers).
795ca3e5 10156if test "x$srcdir" = x.; then
c1c065a3 10157 ac_vpsub='/^[ ]*VPATH[ ]*=/{
ad6254c5
AK
10158s/:*\$(srcdir):*/:/;
10159s/:*\${srcdir}:*/:/;
10160s/:*@srcdir@:*/:/;
c1c065a3 10161s/^\([^=]*=[ ]*\):*/\1/;
ad6254c5 10162s/:*$//;
c1c065a3 10163s/^[^=]*=[ ]*$//;
ad6254c5 10164}'
795ca3e5
AK
10165fi
10166
795ca3e5
AK
10167# Transform confdefs.h into DEFS.
10168# Protect against shell expansion while executing Makefile rules.
10169# Protect against Makefile macro expansion.
ad6254c5
AK
10170#
10171# If the first sed substitution is executed (which looks for macros that
10172# take arguments), then we branch to the quote section. Otherwise,
10173# look for a macro that doesn't take arguments.
10174cat >confdef2opt.sed <<\_ACEOF
10175t clear
10176: clear
c1c065a3 10177s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
ad6254c5 10178t quote
c1c065a3 10179s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
ad6254c5
AK
10180t quote
10181d
10182: quote
c1c065a3 10183s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
ad6254c5
AK
10184s,\[,\\&,g
10185s,\],\\&,g
10186s,\$,$$,g
10187p
10188_ACEOF
10189# We use echo to avoid assuming a particular line-breaking character.
10190# The extra dot is to prevent the shell from consuming trailing
10191# line-breaks from the sub-command output. A line-break within
10192# single-quotes doesn't work because, if this script is created in a
10193# platform that uses two characters for line-breaks (e.g., DOS), tr
10194# would break.
10195ac_LF_and_DOT=`echo; echo .`
10196DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
10197rm -f confdef2opt.sed
10198
10199
10200ac_libobjs=
10201ac_ltlibobjs=
10202for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10203 # 1. Remove the extension, and $U if already installed.
10204 ac_i=`echo "$ac_i" |
c1c065a3 10205 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
ad6254c5
AK
10206 # 2. Add them.
10207 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10208 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10209done
10210LIBOBJS=$ac_libobjs
80992638 10211
ad6254c5
AK
10212LTLIBOBJS=$ac_ltlibobjs
10213
10214
10215
10216: ${CONFIG_STATUS=./config.status}
10217ac_clean_files_save=$ac_clean_files
10218ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10219{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10220echo "$as_me: creating $CONFIG_STATUS" >&6;}
10221cat >$CONFIG_STATUS <<_ACEOF
10222#! $SHELL
10223# Generated by $as_me.
795ca3e5 10224# Run this file to recreate the current configuration.
795ca3e5 10225# Compiler output produced by configure, useful for debugging
ad6254c5
AK
10226# configure, is in config.log if it exists.
10227
10228debug=false
10229ac_cs_recheck=false
10230ac_cs_silent=false
10231SHELL=\${CONFIG_SHELL-$SHELL}
10232_ACEOF
10233
10234cat >>$CONFIG_STATUS <<\_ACEOF
10235## --------------------- ##
10236## M4sh Initialization. ##
10237## --------------------- ##
10238
10239# Be Bourne compatible
10240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10241 emulate sh
10242 NULLCMD=:
10243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10244 # is contrary to our usage. Disable this feature.
10245 alias -g '${1+"$@"}'='"$@"'
10246elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10247 set -o posix
10248fi
10249
10250# Support unset when possible.
c1c065a3 10251if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
ad6254c5
AK
10252 as_unset=unset
10253else
10254 as_unset=false
10255fi
8106cdd5 10256
ad6254c5
AK
10257
10258# Work around bugs in pre-3.0 UWIN ksh.
10259$as_unset ENV MAIL MAILPATH
10260PS1='$ '
10261PS2='> '
10262PS4='+ '
10263
10264# NLS nuisances.
10265for as_var in \
10266 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10267 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10268 LC_TELEPHONE LC_TIME
8106cdd5 10269do
c1c065a3 10270 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
ad6254c5
AK
10271 eval $as_var=C; export $as_var
10272 else
10273 $as_unset $as_var
10274 fi
8106cdd5
AK
10275done
10276
ad6254c5
AK
10277# Required to use basename.
10278if expr a : '\(a\)' >/dev/null 2>&1; then
10279 as_expr=expr
10280else
10281 as_expr=false
10282fi
8106cdd5 10283
ad6254c5
AK
10284if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10285 as_basename=basename
10286else
10287 as_basename=false
10288fi
10289
10290
10291# Name of the executable.
10292as_me=`$as_basename "$0" ||
10293$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10294 X"$0" : 'X\(//\)$' \| \
10295 X"$0" : 'X\(/\)$' \| \
10296 . : '\(.\)' 2>/dev/null ||
10297echo X/"$0" |
10298 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10299 /^X\/\(\/\/\)$/{ s//\1/; q; }
10300 /^X\/\(\/\).*/{ s//\1/; q; }
10301 s/.*/./; q'`
10302
10303
10304# PATH needs CR, and LINENO needs CR and PATH.
10305# Avoid depending upon Character Ranges.
10306as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10307as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10308as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10309as_cr_digits='0123456789'
10310as_cr_alnum=$as_cr_Letters$as_cr_digits
10311
10312# The user is always right.
10313if test "${PATH_SEPARATOR+set}" != set; then
10314 echo "#! /bin/sh" >conf$$.sh
10315 echo "exit 0" >>conf$$.sh
10316 chmod +x conf$$.sh
10317 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10318 PATH_SEPARATOR=';'
80992638 10319 else
ad6254c5 10320 PATH_SEPARATOR=:
80992638 10321 fi
ad6254c5
AK
10322 rm -f conf$$.sh
10323fi
10324
10325
10326 as_lineno_1=$LINENO
10327 as_lineno_2=$LINENO
10328 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10329 test "x$as_lineno_1" != "x$as_lineno_2" &&
10330 test "x$as_lineno_3" = "x$as_lineno_2" || {
10331 # Find who we are. Look in the path if we contain no path at all
10332 # relative or not.
10333 case $0 in
10334 *[\\/]* ) as_myself=$0 ;;
10335 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336for as_dir in $PATH
10337do
10338 IFS=$as_save_IFS
10339 test -z "$as_dir" && as_dir=.
10340 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10341done
10342
10343 ;;
10344 esac
10345 # We did not find ourselves, most probably we were run as `sh COMMAND'
10346 # in which case we are not to be found in the path.
10347 if test "x$as_myself" = x; then
10348 as_myself=$0
10349 fi
10350 if test ! -f "$as_myself"; then
10351 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10352echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10353 { (exit 1); exit 1; }; }
8106cdd5 10354 fi
ad6254c5
AK
10355 case $CONFIG_SHELL in
10356 '')
10357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10358for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10359do
10360 IFS=$as_save_IFS
10361 test -z "$as_dir" && as_dir=.
10362 for as_base in sh bash ksh sh5; do
10363 case $as_dir in
10364 /*)
10365 if ("$as_dir/$as_base" -c '
10366 as_lineno_1=$LINENO
10367 as_lineno_2=$LINENO
10368 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10369 test "x$as_lineno_1" != "x$as_lineno_2" &&
10370 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10371 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10372 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10373 CONFIG_SHELL=$as_dir/$as_base
10374 export CONFIG_SHELL
10375 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10376 fi;;
10377 esac
10378 done
80992638 10379done
ad6254c5 10380;;
795ca3e5
AK
10381 esac
10382
ad6254c5
AK
10383 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10384 # uniformly replaced by the line number. The first 'sed' inserts a
10385 # line-number line before each line; the second 'sed' does the real
10386 # work. The second script uses 'N' to pair each line-number line
10387 # with the numbered line, and appends trailing '-' during
10388 # substitution so that $LINENO is not a special case at line end.
10389 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10390 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10391 sed '=' <$as_myself |
10392 sed '
10393 N
10394 s,$,-,
10395 : loop
10396 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10397 t loop
10398 s,-$,,
10399 s,^['$as_cr_digits']*\n,,
10400 ' >$as_me.lineno &&
10401 chmod +x $as_me.lineno ||
10402 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10403echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10404 { (exit 1); exit 1; }; }
10405
10406 # Don't try to exec as it changes $[0], causing all sort of problems
10407 # (the dirname of $[0] is not the place where we might find the
10408 # original and so on. Autoconf is especially sensible to this).
10409 . ./$as_me.lineno
10410 # Exit status is that of the last command.
10411 exit
10412}
10413
10414
10415case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10416 *c*,-n*) ECHO_N= ECHO_C='
10417' ECHO_T=' ' ;;
10418 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10419 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10420esac
10421
10422if expr a : '\(a\)' >/dev/null 2>&1; then
10423 as_expr=expr
10424else
10425 as_expr=false
10426fi
80992638 10427
ad6254c5
AK
10428rm -f conf$$ conf$$.exe conf$$.file
10429echo >conf$$.file
10430if ln -s conf$$.file conf$$ 2>/dev/null; then
10431 # We could just check for DJGPP; but this test a) works b) is more generic
10432 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10433 if test -f conf$$.exe; then
10434 # Don't use ln at all; we don't have any links
10435 as_ln_s='cp -p'
8106cdd5 10436 else
ad6254c5 10437 as_ln_s='ln -s'
80992638 10438 fi
ad6254c5
AK
10439elif ln conf$$.file conf$$ 2>/dev/null; then
10440 as_ln_s=ln
10441else
10442 as_ln_s='cp -p'
10443fi
10444rm -f conf$$ conf$$.exe conf$$.file
8106cdd5 10445
ad6254c5
AK
10446if mkdir -p . 2>/dev/null; then
10447 as_mkdir_p=:
10448else
10449 as_mkdir_p=false
10450fi
10451
10452as_executable_p="test -f"
10453
10454# Sed expression to map a string onto a valid CPP name.
c1c065a3 10455as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
ad6254c5
AK
10456
10457# Sed expression to map a string onto a valid variable name.
c1c065a3 10458as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
ad6254c5
AK
10459
10460
10461# IFS
10462# We need space, tab and new line, in precisely that order.
10463as_nl='
10464'
10465IFS=" $as_nl"
10466
10467# CDPATH.
10468$as_unset CDPATH
10469
10470exec 6>&1
10471
10472# Open the log real soon, to keep \$[0] and so on meaningful, and to
10473# report actual input values of CONFIG_FILES etc. instead of their
10474# values after options handling. Logging --version etc. is OK.
10475exec 5>>config.log
10476{
10477 echo
10478 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10479## Running $as_me. ##
10480_ASBOX
10481} >&5
10482cat >&5 <<_CSEOF
10483
10484This file was extended by $as_me, which was
c1c065a3 10485generated by GNU Autoconf 2.57. Invocation command line was
ad6254c5
AK
10486
10487 CONFIG_FILES = $CONFIG_FILES
10488 CONFIG_HEADERS = $CONFIG_HEADERS
10489 CONFIG_LINKS = $CONFIG_LINKS
10490 CONFIG_COMMANDS = $CONFIG_COMMANDS
10491 $ $0 $@
10492
10493_CSEOF
10494echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10495echo >&5
10496_ACEOF
10497
10498# Files that config.status was made for.
10499if test -n "$ac_config_files"; then
10500 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10501fi
10502
10503if test -n "$ac_config_headers"; then
10504 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10505fi
10506
10507if test -n "$ac_config_links"; then
10508 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10509fi
10510
10511if test -n "$ac_config_commands"; then
10512 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10513fi
10514
10515cat >>$CONFIG_STATUS <<\_ACEOF
10516
10517ac_cs_usage="\
10518\`$as_me' instantiates files from templates according to the
10519current configuration.
10520
10521Usage: $0 [OPTIONS] [FILE]...
10522
10523 -h, --help print this help, then exit
10524 -V, --version print version number, then exit
10525 -q, --quiet do not print progress messages
10526 -d, --debug don't remove temporary files
10527 --recheck update $as_me by reconfiguring in the same conditions
10528 --file=FILE[:TEMPLATE]
c1c065a3 10529 instantiate the configuration file FILE
ad6254c5
AK
10530
10531Configuration files:
10532$config_files
10533
10534Report bugs to <bug-autoconf@gnu.org>."
10535_ACEOF
10536
10537cat >>$CONFIG_STATUS <<_ACEOF
10538ac_cs_version="\\
10539config.status
c1c065a3 10540configured by $0, generated by GNU Autoconf 2.57,
ad6254c5
AK
10541 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10542
c1c065a3
AK
10543Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10544Free Software Foundation, Inc.
ad6254c5
AK
10545This config.status script is free software; the Free Software Foundation
10546gives unlimited permission to copy, distribute and modify it."
10547srcdir=$srcdir
10548INSTALL="$INSTALL"
10549_ACEOF
10550
10551cat >>$CONFIG_STATUS <<\_ACEOF
10552# If no file are specified by the user, then we need to provide default
10553# value. By we need to know if files were specified by the user.
10554ac_need_defaults=:
10555while test $# != 0
10556do
10557 case $1 in
10558 --*=*)
10559 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10560 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10561 ac_shift=:
10562 ;;
10563 -*)
10564 ac_option=$1
10565 ac_optarg=$2
10566 ac_shift=shift
10567 ;;
10568 *) # This is not an option, so the user has probably given explicit
10569 # arguments.
10570 ac_option=$1
10571 ac_need_defaults=false;;
10572 esac
10573
10574 case $ac_option in
10575 # Handling of the options.
10576_ACEOF
10577cat >>$CONFIG_STATUS <<\_ACEOF
10578 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10579 ac_cs_recheck=: ;;
10580 --version | --vers* | -V )
10581 echo "$ac_cs_version"; exit 0 ;;
10582 --he | --h)
10583 # Conflict between --help and --header
10584 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10585Try \`$0 --help' for more information." >&5
10586echo "$as_me: error: ambiguous option: $1
10587Try \`$0 --help' for more information." >&2;}
10588 { (exit 1); exit 1; }; };;
10589 --help | --hel | -h )
10590 echo "$ac_cs_usage"; exit 0 ;;
10591 --debug | --d* | -d )
10592 debug=: ;;
10593 --file | --fil | --fi | --f )
10594 $ac_shift
10595 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10596 ac_need_defaults=false;;
10597 --header | --heade | --head | --hea )
10598 $ac_shift
10599 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10600 ac_need_defaults=false;;
10601 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10602 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10603 ac_cs_silent=: ;;
10604
10605 # This is an error.
10606 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10607Try \`$0 --help' for more information." >&5
10608echo "$as_me: error: unrecognized option: $1
10609Try \`$0 --help' for more information." >&2;}
10610 { (exit 1); exit 1; }; } ;;
10611
10612 *) ac_config_targets="$ac_config_targets $1" ;;
10613
10614 esac
10615 shift
10616done
10617
10618ac_configure_extra_args=
10619
10620if $ac_cs_silent; then
10621 exec 6>/dev/null
10622 ac_configure_extra_args="$ac_configure_extra_args --silent"
10623fi
10624
10625_ACEOF
10626cat >>$CONFIG_STATUS <<_ACEOF
10627if \$ac_cs_recheck; then
10628 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10629 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10630fi
10631
10632_ACEOF
10633
10634
10635
10636
10637
10638cat >>$CONFIG_STATUS <<\_ACEOF
10639for ac_config_target in $ac_config_targets
10640do
10641 case "$ac_config_target" in
10642 # Handling of arguments.
10643 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10644 "make.tmpl" ) CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
10645 "daemons/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
10646 "daemons/clvmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
06f62ad1
AK
10647 "dmeventd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;;
10648 "dmeventd/mirror/Makefile" ) CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;;
ad6254c5
AK
10649 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10650 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10651 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
10652 "lib/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
10653 "lib/format_pool/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
10654 "lib/locking/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
10655 "lib/mirror/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
10656 "lib/snapshot/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
10657 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10658 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
10659 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10660 "tools/version.h" ) CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
10661 "tools/fsadm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/fsadm/Makefile" ;;
10662 "test/mm/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/mm/Makefile" ;;
10663 "test/device/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/device/Makefile" ;;
10664 "test/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/format1/Makefile" ;;
10665 "test/regex/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/regex/Makefile" ;;
10666 "test/filters/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/filters/Makefile" ;;
10667 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10668echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10669 { (exit 1); exit 1; }; };;
80992638 10670 esac
ad6254c5
AK
10671done
10672
10673# If the user did not use the arguments to specify the items to instantiate,
10674# then the envvar interface is used. Set only those that are not.
10675# We use the long form for the default assignment because of an extremely
10676# bizarre bug on SunOS 4.1.3.
10677if $ac_need_defaults; then
10678 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10679fi
10680
10681# Have a temporary directory for convenience. Make it in the build tree
10682# simply because there is no reason to put it here, and in addition,
10683# creating and moving files from /tmp can sometimes cause problems.
10684# Create a temporary directory, and hook for its removal unless debugging.
10685$debug ||
10686{
10687 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10688 trap '{ (exit 1); exit 1; }' 1 2 13 15
10689}
10690
10691# Create a (secure) tmp directory for tmp files.
10692
10693{
10694 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10695 test -n "$tmp" && test -d "$tmp"
10696} ||
10697{
10698 tmp=./confstat$$-$RANDOM
10699 (umask 077 && mkdir $tmp)
10700} ||
10701{
10702 echo "$me: cannot create a temporary directory in ." >&2
10703 { (exit 1); exit 1; }
10704}
10705
10706_ACEOF
10707
10708cat >>$CONFIG_STATUS <<_ACEOF
10709
10710#
10711# CONFIG_FILES section.
10712#
10713
10714# No need to generate the scripts if there are no CONFIG_FILES.
10715# This happens for instance when ./config.status config.h
10716if test -n "\$CONFIG_FILES"; then
10717 # Protect against being on the right side of a sed subst in config.status.
10718 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10719 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10720s,@SHELL@,$SHELL,;t t
10721s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10722s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10723s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10724s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10725s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10726s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10727s,@exec_prefix@,$exec_prefix,;t t
10728s,@prefix@,$prefix,;t t
10729s,@program_transform_name@,$program_transform_name,;t t
10730s,@bindir@,$bindir,;t t
10731s,@sbindir@,$sbindir,;t t
10732s,@libexecdir@,$libexecdir,;t t
10733s,@datadir@,$datadir,;t t
10734s,@sysconfdir@,$sysconfdir,;t t
10735s,@sharedstatedir@,$sharedstatedir,;t t
10736s,@localstatedir@,$localstatedir,;t t
10737s,@libdir@,$libdir,;t t
10738s,@includedir@,$includedir,;t t
10739s,@oldincludedir@,$oldincludedir,;t t
10740s,@infodir@,$infodir,;t t
10741s,@mandir@,$mandir,;t t
10742s,@build_alias@,$build_alias,;t t
10743s,@host_alias@,$host_alias,;t t
10744s,@target_alias@,$target_alias,;t t
10745s,@DEFS@,$DEFS,;t t
10746s,@ECHO_C@,$ECHO_C,;t t
10747s,@ECHO_N@,$ECHO_N,;t t
10748s,@ECHO_T@,$ECHO_T,;t t
10749s,@LIBS@,$LIBS,;t t
10750s,@build@,$build,;t t
10751s,@build_cpu@,$build_cpu,;t t
10752s,@build_vendor@,$build_vendor,;t t
10753s,@build_os@,$build_os,;t t
10754s,@host@,$host,;t t
10755s,@host_cpu@,$host_cpu,;t t
10756s,@host_vendor@,$host_vendor,;t t
10757s,@host_os@,$host_os,;t t
10758s,@target@,$target,;t t
10759s,@target_cpu@,$target_cpu,;t t
10760s,@target_vendor@,$target_vendor,;t t
10761s,@target_os@,$target_os,;t t
10762s,@AWK@,$AWK,;t t
10763s,@CC@,$CC,;t t
10764s,@CFLAGS@,$CFLAGS,;t t
10765s,@LDFLAGS@,$LDFLAGS,;t t
10766s,@CPPFLAGS@,$CPPFLAGS,;t t
10767s,@ac_ct_CC@,$ac_ct_CC,;t t
10768s,@EXEEXT@,$EXEEXT,;t t
10769s,@OBJEXT@,$OBJEXT,;t t
10770s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10771s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10772s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10773s,@LN_S@,$LN_S,;t t
10774s,@SET_MAKE@,$SET_MAKE,;t t
10775s,@RANLIB@,$RANLIB,;t t
10776s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10777s,@CPP@,$CPP,;t t
10778s,@EGREP@,$EGREP,;t t
10779s,@ALLOCA@,$ALLOCA,;t t
10780s,@LIBOBJS@,$LIBOBJS,;t t
10781s,@POW_LIB@,$POW_LIB,;t t
10782s,@MSGFMT@,$MSGFMT,;t t
a653923f 10783s,@MODPROBE_CMD@,$MODPROBE_CMD,;t t
ad6254c5
AK
10784s,@JOBS@,$JOBS,;t t
10785s,@STATIC_LINK@,$STATIC_LINK,;t t
10786s,@LVM1@,$LVM1,;t t
10787s,@POOL@,$POOL,;t t
10788s,@SNAPSHOTS@,$SNAPSHOTS,;t t
10789s,@MIRRORS@,$MIRRORS,;t t
10790s,@OWNER@,$OWNER,;t t
10791s,@GROUP@,$GROUP,;t t
10792s,@COPTIMISE_FLAG@,$COPTIMISE_FLAG,;t t
10793s,@CLDFLAGS@,$CLDFLAGS,;t t
10794s,@CLDWHOLEARCHIVE@,$CLDWHOLEARCHIVE,;t t
10795s,@CLDNOWHOLEARCHIVE@,$CLDNOWHOLEARCHIVE,;t t
10796s,@LDDEPS@,$LDDEPS,;t t
c1c065a3 10797s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
ad6254c5
AK
10798s,@LVM_VERSION@,$LVM_VERSION,;t t
10799s,@LVM1_FALLBACK@,$LVM1_FALLBACK,;t t
10800s,@DEBUG@,$DEBUG,;t t
10801s,@DEVMAPPER@,$DEVMAPPER,;t t
10802s,@HAVE_LIBDL@,$HAVE_LIBDL,;t t
10803s,@HAVE_SELINUX@,$HAVE_SELINUX,;t t
10804s,@CMDLIB@,$CMDLIB,;t t
10805s,@LOCALEDIR@,$LOCALEDIR,;t t
10806s,@CONFDIR@,$CONFDIR,;t t
10807s,@STATICDIR@,$STATICDIR,;t t
10808s,@INTL_PACKAGE@,$INTL_PACKAGE,;t t
10809s,@INTL@,$INTL,;t t
10810s,@CLVMD@,$CLVMD,;t t
10811s,@CLUSTER@,$CLUSTER,;t t
10812s,@FSADM@,$FSADM,;t t
06f62ad1 10813s,@DMEVENTD@,$DMEVENTD,;t t
ad6254c5
AK
10814s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10815CEOF
10816
10817_ACEOF
10818
10819 cat >>$CONFIG_STATUS <<\_ACEOF
10820 # Split the substitutions into bite-sized pieces for seds with
10821 # small command number limits, like on Digital OSF/1 and HP-UX.
10822 ac_max_sed_lines=48
10823 ac_sed_frag=1 # Number of current file.
10824 ac_beg=1 # First line for current file.
10825 ac_end=$ac_max_sed_lines # Line after last line for current file.
10826 ac_more_lines=:
10827 ac_sed_cmds=
10828 while $ac_more_lines; do
10829 if test $ac_beg -gt 1; then
10830 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10831 else
10832 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10833 fi
10834 if test ! -s $tmp/subs.frag; then
10835 ac_more_lines=false
10836 else
10837 # The purpose of the label and of the branching condition is to
10838 # speed up the sed processing (if there are no `@' at all, there
10839 # is no need to browse any of the substitutions).
10840 # These are the two extra sed commands mentioned above.
10841 (echo ':t
10842 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10843 if test -z "$ac_sed_cmds"; then
c1c065a3 10844 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
ad6254c5 10845 else
c1c065a3 10846 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
ad6254c5
AK
10847 fi
10848 ac_sed_frag=`expr $ac_sed_frag + 1`
10849 ac_beg=$ac_end
10850 ac_end=`expr $ac_end + $ac_max_sed_lines`
10851 fi
10852 done
10853 if test -z "$ac_sed_cmds"; then
10854 ac_sed_cmds=cat
10855 fi
10856fi # test -n "$CONFIG_FILES"
8106cdd5 10857
ad6254c5
AK
10858_ACEOF
10859cat >>$CONFIG_STATUS <<\_ACEOF
10860for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10861 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10862 case $ac_file in
10863 - | *:- | *:-:* ) # input from stdin
c1c065a3
AK
10864 cat >$tmp/stdin
10865 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10866 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
ad6254c5 10867 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
c1c065a3 10868 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
ad6254c5 10869 * ) ac_file_in=$ac_file.in ;;
80992638 10870 esac
8106cdd5 10871
ad6254c5
AK
10872 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10873 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10874$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
c1c065a3
AK
10875 X"$ac_file" : 'X\(//\)[^/]' \| \
10876 X"$ac_file" : 'X\(//\)$' \| \
10877 X"$ac_file" : 'X\(/\)' \| \
10878 . : '\(.\)' 2>/dev/null ||
ad6254c5
AK
10879echo X"$ac_file" |
10880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10881 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10882 /^X\(\/\/\)$/{ s//\1/; q; }
10883 /^X\(\/\).*/{ s//\1/; q; }
10884 s/.*/./; q'`
10885 { if $as_mkdir_p; then
10886 mkdir -p "$ac_dir"
10887 else
10888 as_dir="$ac_dir"
10889 as_dirs=
10890 while test ! -d "$as_dir"; do
10891 as_dirs="$as_dir $as_dirs"
10892 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10893$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
c1c065a3
AK
10894 X"$as_dir" : 'X\(//\)[^/]' \| \
10895 X"$as_dir" : 'X\(//\)$' \| \
10896 X"$as_dir" : 'X\(/\)' \| \
10897 . : '\(.\)' 2>/dev/null ||
ad6254c5
AK
10898echo X"$as_dir" |
10899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10900 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10901 /^X\(\/\/\)$/{ s//\1/; q; }
10902 /^X\(\/\).*/{ s//\1/; q; }
10903 s/.*/./; q'`
10904 done
10905 test ! -n "$as_dirs" || mkdir $as_dirs
10906 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10907echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10908 { (exit 1); exit 1; }; }; }
10909
10910 ac_builddir=.
10911
10912if test "$ac_dir" != .; then
10913 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10914 # A "../" for each directory in $ac_dir_suffix.
10915 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10916else
10917 ac_dir_suffix= ac_top_builddir=
10918fi
10919
10920case $srcdir in
10921 .) # No --srcdir option. We are building in place.
10922 ac_srcdir=.
10923 if test -z "$ac_top_builddir"; then
10924 ac_top_srcdir=.
10925 else
10926 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10927 fi ;;
10928 [\\/]* | ?:[\\/]* ) # Absolute path.
10929 ac_srcdir=$srcdir$ac_dir_suffix;
10930 ac_top_srcdir=$srcdir ;;
10931 *) # Relative path.
10932 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10933 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10934esac
c1c065a3
AK
10935# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10936# absolute.
10937ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10938ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10939ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10940ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
ad6254c5
AK
10941
10942
10943 case $INSTALL in
10944 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10945 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
795ca3e5
AK
10946 esac
10947
ad6254c5
AK
10948 if test x"$ac_file" != x-; then
10949 { echo "$as_me:$LINENO: creating $ac_file" >&5
10950echo "$as_me: creating $ac_file" >&6;}
10951 rm -f "$ac_file"
10952 fi
10953 # Let's still pretend it is `configure' which instantiates (i.e., don't
10954 # use $as_me), people would be surprised to read:
10955 # /* config.h. Generated by config.status. */
10956 if test x"$ac_file" = x-; then
10957 configure_input=
10958 else
10959 configure_input="$ac_file. "
10960 fi
10961 configure_input=$configure_input"Generated from `echo $ac_file_in |
c1c065a3 10962 sed 's,.*/,,'` by configure."
ad6254c5
AK
10963
10964 # First look for the input files in the build tree, otherwise in the
10965 # src tree.
10966 ac_file_inputs=`IFS=:
10967 for f in $ac_file_in; do
10968 case $f in
10969 -) echo $tmp/stdin ;;
10970 [\\/$]*)
c1c065a3
AK
10971 # Absolute (can't be DOS-style, as IFS=:)
10972 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
ad6254c5
AK
10973echo "$as_me: error: cannot find input file: $f" >&2;}
10974 { (exit 1); exit 1; }; }
c1c065a3 10975 echo $f;;
ad6254c5 10976 *) # Relative
c1c065a3
AK
10977 if test -f "$f"; then
10978 # Build tree
10979 echo $f
10980 elif test -f "$srcdir/$f"; then
10981 # Source tree
10982 echo $srcdir/$f
10983 else
10984 # /dev/null tree
10985 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
ad6254c5
AK
10986echo "$as_me: error: cannot find input file: $f" >&2;}
10987 { (exit 1); exit 1; }; }
c1c065a3 10988 fi;;
ad6254c5
AK
10989 esac
10990 done` || { (exit 1); exit 1; }
10991_ACEOF
10992cat >>$CONFIG_STATUS <<_ACEOF
10993 sed "$ac_vpsub
10994$extrasub
10995_ACEOF
10996cat >>$CONFIG_STATUS <<\_ACEOF
10997:t
10998/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10999s,@configure_input@,$configure_input,;t t
11000s,@srcdir@,$ac_srcdir,;t t
11001s,@abs_srcdir@,$ac_abs_srcdir,;t t
11002s,@top_srcdir@,$ac_top_srcdir,;t t
11003s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11004s,@builddir@,$ac_builddir,;t t
11005s,@abs_builddir@,$ac_abs_builddir,;t t
11006s,@top_builddir@,$ac_top_builddir,;t t
11007s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11008s,@INSTALL@,$ac_INSTALL,;t t
11009" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11010 rm -f $tmp/stdin
11011 if test x"$ac_file" != x-; then
11012 mv $tmp/out $ac_file
11013 else
11014 cat $tmp/out
11015 rm -f $tmp/out
11016 fi
795ca3e5 11017
ad6254c5
AK
11018done
11019_ACEOF
795ca3e5 11020
ad6254c5 11021cat >>$CONFIG_STATUS <<\_ACEOF
795ca3e5 11022
ad6254c5
AK
11023{ (exit 0); exit 0; }
11024_ACEOF
795ca3e5 11025chmod +x $CONFIG_STATUS
ad6254c5
AK
11026ac_clean_files=$ac_clean_files_save
11027
11028
11029# configure is writing to config.log, and then calls config.status.
11030# config.status does its own redirection, appending to config.log.
11031# Unfortunately, on DOS this fails, as config.log is still kept open
11032# by configure, so config.status won't be able to write to it; its
11033# output is simply discarded. So we exec the FD to /dev/null,
11034# effectively closing config.log, so it can be properly (re)opened and
11035# appended to by config.status. When coming back to configure, we
11036# need to make the FD available again.
11037if test "$no_create" != yes; then
11038 ac_cs_success=:
11039 ac_config_status_args=
11040 test "$silent" = yes &&
11041 ac_config_status_args="$ac_config_status_args --quiet"
11042 exec 5>/dev/null
11043 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11044 exec 5>>config.log
11045 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11046 # would make configure fail if this is the last instruction.
11047 $ac_cs_success || { (exit 1); exit 1; }
11048fi
795ca3e5 11049
2dc95e1c
AK
11050
11051if test x$ODIRECT != xyes; then
ad6254c5
AK
11052 { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
11053echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 11054fi
809fae91
AK
11055
11056if test x$FSADM == xyes; then
ad6254c5
AK
11057 { echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5
11058echo "$as_me: WARNING: fsadm support is untested" >&2;}
809fae91 11059fi
06f62ad1
AK
11060
11061if test x$DMEVENTD == xyes; then
11062 { echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5
11063echo "$as_me: WARNING: dmeventd support is untested" >&2;}
11064fi
This page took 1.257504 seconds and 5 git commands to generate.