]> sourceware.org Git - lvm2.git/blame - configure
Diagnose invalid PE values given on the pvmove command line (64-bit systems).
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
7a197a62 3# Generated by GNU Autoconf 2.61.
795ca3e5 4#
7a197a62
AK
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
795ca3e5
AK
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
ad6254c5
AK
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
7a197a62
AK
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
21 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
ad6254c5
AK
51fi
52
53# Support unset when possible.
8a2fc586 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
55 as_unset=unset
56else
57 as_unset=false
58fi
59
60
7a197a62
AK
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
ad6254c5 94# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
ad6254c5
AK
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
8a2fc586 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
ad6254c5
AK
109 eval $as_var=C; export $as_var
110 else
7a197a62 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
ad6254c5
AK
112 fi
113done
114
115# Required to use basename.
7a197a62
AK
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
118 as_expr=expr
119else
120 as_expr=false
121fi
122
7a197a62 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
7a197a62 131as_me=`$as_basename -- "$0" ||
ad6254c5
AK
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
7a197a62 134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ad6254c5 135echo X/"$0" |
7a197a62
AK
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
ad6254c5 149
7a197a62
AK
150# CDPATH.
151$as_unset CDPATH
ad6254c5 152
ad6254c5 153
7a197a62
AK
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
ad6254c5
AK
159fi
160
7a197a62
AK
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
ad6254c5 177
7a197a62
AK
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
ad6254c5 185
7a197a62
AK
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
ad6254c5
AK
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
7a197a62 226 case $as_dir in
ad6254c5 227 /*)
7a197a62
AK
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
ad6254c5
AK
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
ad6254c5 330 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62
AK
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
ad6254c5
AK
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
ad6254c5 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
ad6254c5 442 sed '
7a197a62
AK
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
ad6254c5 447 N
7a197a62
AK
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 450 t loop
7a197a62 451 s/-\n.*//
ad6254c5 452 ' >$as_me.lineno &&
7a197a62 453 chmod +x "$as_me.lineno" ||
ad6254c5
AK
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
ad6254c5
AK
461 # Exit status is that of the last command.
462 exit
463}
795ca3e5 464
ad6254c5 465
7a197a62
AK
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
ad6254c5
AK
481esac
482
7a197a62
AK
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
ad6254c5
AK
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
7a197a62
AK
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
ad6254c5 505 as_ln_s='cp -p'
ad6254c5
AK
506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
7a197a62
AK
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
ad6254c5
AK
513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
8a2fc586 517 test -d ./-p && rmdir ./-p
ad6254c5
AK
518 as_mkdir_p=false
519fi
520
7a197a62
AK
521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541fi
542as_executable_p=$as_test_x
ad6254c5
AK
543
544# Sed expression to map a string onto a valid CPP name.
8a2fc586 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
546
547# Sed expression to map a string onto a valid variable name.
8a2fc586 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
549
550
ad6254c5 551
7a197a62 552exec 7<&0 </dev/null 6>&1
ad6254c5
AK
553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
ad6254c5
AK
559#
560# Initializations.
561#
795ca3e5 562ac_default_prefix=/usr/local
7a197a62 563ac_clean_files=
ad6254c5 564ac_config_libobj_dir=.
7a197a62 565LIBOBJS=
ad6254c5
AK
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
ad6254c5
AK
572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="lib/device/dev-cache.h"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
7a197a62 583#ifdef HAVE_SYS_TYPES_H
ad6254c5
AK
584# include <sys/types.h>
585#endif
7a197a62 586#ifdef HAVE_SYS_STAT_H
ad6254c5
AK
587# include <sys/stat.h>
588#endif
7a197a62 589#ifdef STDC_HEADERS
ad6254c5
AK
590# include <stdlib.h>
591# include <stddef.h>
592#else
7a197a62 593# ifdef HAVE_STDLIB_H
ad6254c5
AK
594# include <stdlib.h>
595# endif
596#endif
7a197a62
AK
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ad6254c5
AK
599# include <memory.h>
600# endif
601# include <string.h>
602#endif
7a197a62 603#ifdef HAVE_STRINGS_H
ad6254c5
AK
604# include <strings.h>
605#endif
7a197a62 606#ifdef HAVE_INTTYPES_H
ad6254c5 607# include <inttypes.h>
ad6254c5 608#endif
7a197a62
AK
609#ifdef HAVE_STDINT_H
610# include <stdint.h>
611#endif
612#ifdef HAVE_UNISTD_H
ad6254c5
AK
613# include <unistd.h>
614#endif"
615
795ca3e5 616ac_default_prefix=/usr
7a197a62
AK
617ac_subst_vars='SHELL
618PATH_SEPARATOR
619PACKAGE_NAME
620PACKAGE_TARNAME
621PACKAGE_VERSION
622PACKAGE_STRING
623PACKAGE_BUGREPORT
624exec_prefix
625prefix
626program_transform_name
627bindir
628sbindir
629libexecdir
630datarootdir
631datadir
632sysconfdir
633sharedstatedir
634localstatedir
635includedir
636oldincludedir
637docdir
638infodir
639htmldir
640dvidir
641pdfdir
642psdir
643libdir
644localedir
645mandir
646DEFS
647ECHO_C
648ECHO_N
649ECHO_T
650LIBS
651build_alias
652host_alias
653target_alias
654build
655build_cpu
656build_vendor
657build_os
658host
659host_cpu
660host_vendor
661host_os
662target
663target_cpu
664target_vendor
665target_os
666AWK
667CC
668CFLAGS
669LDFLAGS
670CPPFLAGS
671ac_ct_CC
672EXEEXT
673OBJEXT
674INSTALL_PROGRAM
675INSTALL_SCRIPT
676INSTALL_DATA
677LN_S
678SET_MAKE
679RANLIB
680CFLOW_CMD
681CSCOPE_CMD
682CPP
683GREP
684EGREP
685ALLOCA
686LIBOBJS
687POW_LIB
688MSGFMT
689MODPROBE_CMD
690JOBS
691STATIC_LINK
692LVM1
693POOL
694SNAPSHOTS
695MIRRORS
696OWNER
697GROUP
698COPTIMISE_FLAG
699CLDFLAGS
700CLDWHOLEARCHIVE
701CLDNOWHOLEARCHIVE
702LDDEPS
703LIB_SUFFIX
704LVM_VERSION
705LVM1_FALLBACK
706DEBUG
707DEVMAPPER
708HAVE_LIBDL
709HAVE_SELINUX
710HAVE_REALTIME
711CMDLIB
712LOCALEDIR
713CONFDIR
714STATICDIR
715DMDIR
716INTL_PACKAGE
717INTL
718CLVMD
719CLUSTER
720FSADM
721DMEVENTD
722LTLIBOBJS'
ad6254c5 723ac_subst_files=''
7a197a62
AK
724 ac_precious_vars='build_alias
725host_alias
726target_alias
727CC
728CFLAGS
729LDFLAGS
730LIBS
731CPPFLAGS
732CPP'
733
795ca3e5
AK
734
735# Initialize some variables set by options.
ad6254c5
AK
736ac_init_help=
737ac_init_version=false
795ca3e5
AK
738# The variables have the same names as the options, with
739# dashes changed to underlines.
ad6254c5 740cache_file=/dev/null
795ca3e5 741exec_prefix=NONE
795ca3e5 742no_create=
795ca3e5
AK
743no_recursion=
744prefix=NONE
745program_prefix=NONE
746program_suffix=NONE
747program_transform_name=s,x,x,
748silent=
749site=
750srcdir=
795ca3e5
AK
751verbose=
752x_includes=NONE
753x_libraries=NONE
ad6254c5
AK
754
755# Installation directory options.
756# These are left unexpanded so users can "make install exec_prefix=/foo"
757# and all the variables that are supposed to be based on exec_prefix
758# by default will actually change.
759# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 760# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
761bindir='${exec_prefix}/bin'
762sbindir='${exec_prefix}/sbin'
763libexecdir='${exec_prefix}/libexec'
7a197a62
AK
764datarootdir='${prefix}/share'
765datadir='${datarootdir}'
795ca3e5
AK
766sysconfdir='${prefix}/etc'
767sharedstatedir='${prefix}/com'
768localstatedir='${prefix}/var'
795ca3e5
AK
769includedir='${prefix}/include'
770oldincludedir='/usr/include'
7a197a62
AK
771docdir='${datarootdir}/doc/${PACKAGE}'
772infodir='${datarootdir}/info'
773htmldir='${docdir}'
774dvidir='${docdir}'
775pdfdir='${docdir}'
776psdir='${docdir}'
777libdir='${exec_prefix}/lib'
778localedir='${datarootdir}/locale'
779mandir='${datarootdir}/man'
795ca3e5 780
795ca3e5 781ac_prev=
7a197a62 782ac_dashdash=
795ca3e5
AK
783for ac_option
784do
795ca3e5
AK
785 # If the previous option needs an argument, assign it.
786 if test -n "$ac_prev"; then
7a197a62 787 eval $ac_prev=\$ac_option
795ca3e5
AK
788 ac_prev=
789 continue
790 fi
791
7a197a62
AK
792 case $ac_option in
793 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
794 *) ac_optarg=yes ;;
795 esac
795ca3e5
AK
796
797 # Accept the important Cygnus configure options, so we can diagnose typos.
798
7a197a62
AK
799 case $ac_dashdash$ac_option in
800 --)
801 ac_dashdash=yes ;;
795ca3e5
AK
802
803 -bindir | --bindir | --bindi | --bind | --bin | --bi)
804 ac_prev=bindir ;;
805 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 806 bindir=$ac_optarg ;;
795ca3e5
AK
807
808 -build | --build | --buil | --bui | --bu)
ad6254c5 809 ac_prev=build_alias ;;
795ca3e5 810 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 811 build_alias=$ac_optarg ;;
795ca3e5
AK
812
813 -cache-file | --cache-file | --cache-fil | --cache-fi \
814 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
815 ac_prev=cache_file ;;
816 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
817 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
818 cache_file=$ac_optarg ;;
819
820 --config-cache | -C)
821 cache_file=config.cache ;;
795ca3e5 822
7a197a62 823 -datadir | --datadir | --datadi | --datad)
795ca3e5 824 ac_prev=datadir ;;
7a197a62 825 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 826 datadir=$ac_optarg ;;
795ca3e5 827
7a197a62
AK
828 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
829 | --dataroo | --dataro | --datar)
830 ac_prev=datarootdir ;;
831 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
832 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
833 datarootdir=$ac_optarg ;;
834
795ca3e5 835 -disable-* | --disable-*)
ad6254c5 836 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 837 # Reject names that are not valid shell variable names.
7a197a62 838 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ad6254c5
AK
839 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
840 { (exit 1); exit 1; }; }
7a197a62
AK
841 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
842 eval enable_$ac_feature=no ;;
843
844 -docdir | --docdir | --docdi | --doc | --do)
845 ac_prev=docdir ;;
846 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
847 docdir=$ac_optarg ;;
848
849 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
850 ac_prev=dvidir ;;
851 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
852 dvidir=$ac_optarg ;;
795ca3e5
AK
853
854 -enable-* | --enable-*)
ad6254c5 855 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 856 # Reject names that are not valid shell variable names.
7a197a62 857 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ad6254c5
AK
858 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
859 { (exit 1); exit 1; }; }
7a197a62
AK
860 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
861 eval enable_$ac_feature=\$ac_optarg ;;
795ca3e5
AK
862
863 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
864 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
865 | --exec | --exe | --ex)
866 ac_prev=exec_prefix ;;
867 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
868 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
869 | --exec=* | --exe=* | --ex=*)
ad6254c5 870 exec_prefix=$ac_optarg ;;
795ca3e5
AK
871
872 -gas | --gas | --ga | --g)
873 # Obsolete; use --with-gas.
874 with_gas=yes ;;
875
ad6254c5
AK
876 -help | --help | --hel | --he | -h)
877 ac_init_help=long ;;
878 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
879 ac_init_help=recursive ;;
880 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
881 ac_init_help=short ;;
795ca3e5
AK
882
883 -host | --host | --hos | --ho)
ad6254c5 884 ac_prev=host_alias ;;
795ca3e5 885 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 886 host_alias=$ac_optarg ;;
795ca3e5 887
7a197a62
AK
888 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
889 ac_prev=htmldir ;;
890 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
891 | --ht=*)
892 htmldir=$ac_optarg ;;
893
795ca3e5
AK
894 -includedir | --includedir | --includedi | --included | --include \
895 | --includ | --inclu | --incl | --inc)
896 ac_prev=includedir ;;
897 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
898 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 899 includedir=$ac_optarg ;;
795ca3e5
AK
900
901 -infodir | --infodir | --infodi | --infod | --info | --inf)
902 ac_prev=infodir ;;
903 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 904 infodir=$ac_optarg ;;
795ca3e5
AK
905
906 -libdir | --libdir | --libdi | --libd)
907 ac_prev=libdir ;;
908 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 909 libdir=$ac_optarg ;;
795ca3e5
AK
910
911 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
912 | --libexe | --libex | --libe)
913 ac_prev=libexecdir ;;
914 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
915 | --libexe=* | --libex=* | --libe=*)
ad6254c5 916 libexecdir=$ac_optarg ;;
795ca3e5 917
7a197a62
AK
918 -localedir | --localedir | --localedi | --localed | --locale)
919 ac_prev=localedir ;;
920 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
921 localedir=$ac_optarg ;;
922
795ca3e5 923 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 924 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
925 ac_prev=localstatedir ;;
926 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 927 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 928 localstatedir=$ac_optarg ;;
795ca3e5
AK
929
930 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
931 ac_prev=mandir ;;
932 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 933 mandir=$ac_optarg ;;
795ca3e5
AK
934
935 -nfp | --nfp | --nf)
936 # Obsolete; use --without-fp.
937 with_fp=no ;;
938
939 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 940 | --no-cr | --no-c | -n)
795ca3e5
AK
941 no_create=yes ;;
942
943 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
944 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
945 no_recursion=yes ;;
946
947 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
948 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
949 | --oldin | --oldi | --old | --ol | --o)
950 ac_prev=oldincludedir ;;
951 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
952 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
953 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 954 oldincludedir=$ac_optarg ;;
795ca3e5
AK
955
956 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
957 ac_prev=prefix ;;
958 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 959 prefix=$ac_optarg ;;
795ca3e5
AK
960
961 -program-prefix | --program-prefix | --program-prefi | --program-pref \
962 | --program-pre | --program-pr | --program-p)
963 ac_prev=program_prefix ;;
964 -program-prefix=* | --program-prefix=* | --program-prefi=* \
965 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 966 program_prefix=$ac_optarg ;;
795ca3e5
AK
967
968 -program-suffix | --program-suffix | --program-suffi | --program-suff \
969 | --program-suf | --program-su | --program-s)
970 ac_prev=program_suffix ;;
971 -program-suffix=* | --program-suffix=* | --program-suffi=* \
972 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 973 program_suffix=$ac_optarg ;;
795ca3e5
AK
974
975 -program-transform-name | --program-transform-name \
976 | --program-transform-nam | --program-transform-na \
977 | --program-transform-n | --program-transform- \
978 | --program-transform | --program-transfor \
979 | --program-transfo | --program-transf \
980 | --program-trans | --program-tran \
981 | --progr-tra | --program-tr | --program-t)
982 ac_prev=program_transform_name ;;
983 -program-transform-name=* | --program-transform-name=* \
984 | --program-transform-nam=* | --program-transform-na=* \
985 | --program-transform-n=* | --program-transform-=* \
986 | --program-transform=* | --program-transfor=* \
987 | --program-transfo=* | --program-transf=* \
988 | --program-trans=* | --program-tran=* \
989 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 990 program_transform_name=$ac_optarg ;;
795ca3e5 991
7a197a62
AK
992 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
993 ac_prev=pdfdir ;;
994 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
995 pdfdir=$ac_optarg ;;
996
997 -psdir | --psdir | --psdi | --psd | --ps)
998 ac_prev=psdir ;;
999 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1000 psdir=$ac_optarg ;;
1001
795ca3e5
AK
1002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1003 | -silent | --silent | --silen | --sile | --sil)
1004 silent=yes ;;
1005
1006 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1007 ac_prev=sbindir ;;
1008 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1009 | --sbi=* | --sb=*)
ad6254c5 1010 sbindir=$ac_optarg ;;
795ca3e5
AK
1011
1012 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1013 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1014 | --sharedst | --shareds | --shared | --share | --shar \
1015 | --sha | --sh)
1016 ac_prev=sharedstatedir ;;
1017 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1018 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1019 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1020 | --sha=* | --sh=*)
ad6254c5 1021 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1022
1023 -site | --site | --sit)
1024 ac_prev=site ;;
1025 -site=* | --site=* | --sit=*)
ad6254c5 1026 site=$ac_optarg ;;
795ca3e5
AK
1027
1028 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1029 ac_prev=srcdir ;;
1030 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1031 srcdir=$ac_optarg ;;
795ca3e5
AK
1032
1033 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1034 | --syscon | --sysco | --sysc | --sys | --sy)
1035 ac_prev=sysconfdir ;;
1036 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1037 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1038 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1039
1040 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1041 ac_prev=target_alias ;;
795ca3e5 1042 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1043 target_alias=$ac_optarg ;;
795ca3e5
AK
1044
1045 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1046 verbose=yes ;;
1047
ad6254c5
AK
1048 -version | --version | --versio | --versi | --vers | -V)
1049 ac_init_version=: ;;
795ca3e5
AK
1050
1051 -with-* | --with-*)
ad6254c5 1052 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1053 # Reject names that are not valid shell variable names.
7a197a62 1054 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ad6254c5
AK
1055 { echo "$as_me: error: invalid package name: $ac_package" >&2
1056 { (exit 1); exit 1; }; }
7a197a62
AK
1057 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1058 eval with_$ac_package=\$ac_optarg ;;
795ca3e5
AK
1059
1060 -without-* | --without-*)
ad6254c5 1061 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1062 # Reject names that are not valid shell variable names.
7a197a62 1063 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ad6254c5
AK
1064 { echo "$as_me: error: invalid package name: $ac_package" >&2
1065 { (exit 1); exit 1; }; }
7a197a62
AK
1066 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1067 eval with_$ac_package=no ;;
795ca3e5
AK
1068
1069 --x)
1070 # Obsolete; use --with-x.
1071 with_x=yes ;;
1072
1073 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1074 | --x-incl | --x-inc | --x-in | --x-i)
1075 ac_prev=x_includes ;;
1076 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1077 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1078 x_includes=$ac_optarg ;;
795ca3e5
AK
1079
1080 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1081 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1082 ac_prev=x_libraries ;;
1083 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1084 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1085 x_libraries=$ac_optarg ;;
795ca3e5 1086
ad6254c5
AK
1087 -*) { echo "$as_me: error: unrecognized option: $ac_option
1088Try \`$0 --help' for more information." >&2
1089 { (exit 1); exit 1; }; }
795ca3e5
AK
1090 ;;
1091
ad6254c5
AK
1092 *=*)
1093 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1096 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1097 { (exit 1); exit 1; }; }
7a197a62 1098 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1099 export $ac_envvar ;;
1100
795ca3e5 1101 *)
ad6254c5
AK
1102 # FIXME: should be removed in autoconf 3.0.
1103 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1104 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1105 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1106 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1107 ;;
1108
1109 esac
1110done
1111
1112if test -n "$ac_prev"; then
ad6254c5
AK
1113 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1114 { echo "$as_me: error: missing argument to $ac_option" >&2
1115 { (exit 1); exit 1; }; }
795ca3e5 1116fi
795ca3e5 1117
7a197a62
AK
1118# Be sure to have absolute directory names.
1119for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1120 datadir sysconfdir sharedstatedir localstatedir includedir \
1121 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1122 libdir localedir mandir
795ca3e5 1123do
7a197a62 1124 eval ac_val=\$$ac_var
ad6254c5 1125 case $ac_val in
7a197a62
AK
1126 [\\/$]* | ?:[\\/]* ) continue;;
1127 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1128 esac
7a197a62
AK
1129 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1130 { (exit 1); exit 1; }; }
795ca3e5
AK
1131done
1132
ad6254c5
AK
1133# There might be people who depend on the old broken behavior: `$host'
1134# used to hold the argument of --host etc.
1135# FIXME: To remove some day.
1136build=$build_alias
1137host=$host_alias
1138target=$target_alias
1139
1140# FIXME: To remove some day.
1141if test "x$host_alias" != x; then
1142 if test "x$build_alias" = x; then
1143 cross_compiling=maybe
1144 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1145 If a cross compiler is detected then cross compile mode will be used." >&2
1146 elif test "x$build_alias" != "x$host_alias"; then
1147 cross_compiling=yes
1148 fi
1149fi
8106cdd5 1150
ad6254c5
AK
1151ac_tool_prefix=
1152test -n "$host_alias" && ac_tool_prefix=$host_alias-
1153
1154test "$silent" = yes && exec 6>/dev/null
795ca3e5 1155
795ca3e5 1156
7a197a62
AK
1157ac_pwd=`pwd` && test -n "$ac_pwd" &&
1158ac_ls_di=`ls -di .` &&
1159ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1160 { echo "$as_me: error: Working directory cannot be determined" >&2
1161 { (exit 1); exit 1; }; }
1162test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1163 { echo "$as_me: error: pwd does not report name of working directory" >&2
1164 { (exit 1); exit 1; }; }
1165
1166
795ca3e5
AK
1167# Find the source files, if location was not specified.
1168if test -z "$srcdir"; then
1169 ac_srcdir_defaulted=yes
7a197a62
AK
1170 # Try the directory containing this script, then the parent directory.
1171 ac_confdir=`$as_dirname -- "$0" ||
ad6254c5 1172$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
1173 X"$0" : 'X\(//\)[^/]' \| \
1174 X"$0" : 'X\(//\)$' \| \
7a197a62 1175 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ad6254c5 1176echo X"$0" |
7a197a62
AK
1177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1178 s//\1/
1179 q
1180 }
1181 /^X\(\/\/\)[^/].*/{
1182 s//\1/
1183 q
1184 }
1185 /^X\(\/\/\)$/{
1186 s//\1/
1187 q
1188 }
1189 /^X\(\/\).*/{
1190 s//\1/
1191 q
1192 }
1193 s/.*/./; q'`
795ca3e5 1194 srcdir=$ac_confdir
7a197a62 1195 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1196 srcdir=..
1197 fi
1198else
1199 ac_srcdir_defaulted=no
1200fi
7a197a62
AK
1201if test ! -r "$srcdir/$ac_unique_file"; then
1202 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1203 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1204 { (exit 1); exit 1; }; }
795ca3e5 1205fi
7a197a62
AK
1206ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1207ac_abs_confdir=`(
1208 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
ad6254c5 1209 { (exit 1); exit 1; }; }
7a197a62
AK
1210 pwd)`
1211# When building in place, set srcdir=.
1212if test "$ac_abs_confdir" = "$ac_pwd"; then
1213 srcdir=.
1214fi
1215# Remove unnecessary trailing slashes from srcdir.
1216# Double slashes in file names in object file debugging info
1217# mess up M-x gdb in Emacs.
1218case $srcdir in
1219*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1220esac
1221for ac_var in $ac_precious_vars; do
1222 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1223 eval ac_env_${ac_var}_value=\$${ac_var}
1224 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1225 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1226done
ad6254c5
AK
1227
1228#
1229# Report the --help message.
1230#
1231if test "$ac_init_help" = "long"; then
1232 # Omit some internal or obsolete options to make the list less imposing.
1233 # This message is too long to be a string in the A/UX 3.1 sh.
1234 cat <<_ACEOF
1235\`configure' configures this package to adapt to many kinds of systems.
1236
1237Usage: $0 [OPTION]... [VAR=VALUE]...
1238
1239To assign environment variables (e.g., CC, CFLAGS...), specify them as
1240VAR=VALUE. See below for descriptions of some of the useful variables.
1241
1242Defaults for the options are specified in brackets.
1243
1244Configuration:
1245 -h, --help display this help and exit
1246 --help=short display options specific to this package
1247 --help=recursive display the short help of all the included packages
1248 -V, --version display version information and exit
1249 -q, --quiet, --silent do not print \`checking...' messages
1250 --cache-file=FILE cache test results in FILE [disabled]
1251 -C, --config-cache alias for \`--cache-file=config.cache'
1252 -n, --no-create do not create output files
1253 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1254
ad6254c5
AK
1255Installation directories:
1256 --prefix=PREFIX install architecture-independent files in PREFIX
8a2fc586 1257 [$ac_default_prefix]
ad6254c5 1258 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8a2fc586 1259 [PREFIX]
ad6254c5
AK
1260
1261By default, \`make install' will install all the files in
1262\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1263an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1264for instance \`--prefix=\$HOME'.
1265
1266For better control, use the options below.
1267
1268Fine tuning of the installation directories:
1269 --bindir=DIR user executables [EPREFIX/bin]
1270 --sbindir=DIR system admin executables [EPREFIX/sbin]
1271 --libexecdir=DIR program executables [EPREFIX/libexec]
ad6254c5
AK
1272 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1273 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1274 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1275 --libdir=DIR object code libraries [EPREFIX/lib]
1276 --includedir=DIR C header files [PREFIX/include]
1277 --oldincludedir=DIR C header files for non-gcc [/usr/include]
7a197a62
AK
1278 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1279 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1280 --infodir=DIR info documentation [DATAROOTDIR/info]
1281 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1282 --mandir=DIR man documentation [DATAROOTDIR/man]
1283 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1284 --htmldir=DIR html documentation [DOCDIR]
1285 --dvidir=DIR dvi documentation [DOCDIR]
1286 --pdfdir=DIR pdf documentation [DOCDIR]
1287 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1288_ACEOF
1289
1290 cat <<\_ACEOF
1291
1292System types:
1293 --build=BUILD configure for building on BUILD [guessed]
1294 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1295 --target=TARGET configure for building compilers for TARGET [HOST]
1296_ACEOF
1297fi
1298
1299if test -n "$ac_init_help"; then
1300
1301 cat <<\_ACEOF
1302
1303Optional Features:
1304 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1305 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1306 --enable-jobs=NUM Number of jobs to run simultaneously
1307 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1308 device-mapper is missing from the kernel
1309 --enable-static_link Use this to link the tools to their libraries
1310 statically. Default is dynamic linking
1311 --enable-readline Enable readline support
1312 --disable-selinux Disable selinux support
3d978351 1313 --disable-realtime Disable realtime clock support
ad6254c5
AK
1314 --enable-debug Enable debugging
1315 --disable-devmapper Disable device-mapper interaction
1316 --disable-o_direct Disable O_DIRECT
1317 --enable-cmdlib Build shared command library
1318 --enable-fsadm Enable fsadm
15d91f5a 1319 --enable-dmeventd Enable the device-mapper event daemon
ad6254c5
AK
1320 --enable-nls Enable Native Language Support
1321
1322Optional Packages:
1323 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1324 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1325 --with-user=USER Set the owner of installed files
1326 --with-group=GROUP Set the group owner of installed files
1327 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1328 TYPE=internal
1329 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1330 TYPE=internal
1331 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1332 TYPE=internal
1333 --with-snapshots=TYPE Snapshot support: internal/shared/none
1334 TYPE=internal
1335 --with-mirrors=TYPE Mirror support: internal/shared/none
1336 TYPE=internal
5c7fc7c4 1337 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all
a266258f 1338 TYPE=none
ad6254c5
AK
1339 --with-optimisation=OPT C optimisation flag OPT=-O2
1340 --with-localedir=DIR Translation files in DIR PREFIX/share/locale
1341 --with-confdir=DIR Configuration files in DIR /etc
1342 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
33f732c5 1343 --with-dmdir=DIR Build against device-mapper source tree in DIR
ad6254c5
AK
1344
1345Some influential environment variables:
1346 CC C compiler command
1347 CFLAGS C compiler flags
1348 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1349 nonstandard directory <lib dir>
7a197a62
AK
1350 LIBS libraries to pass to the linker, e.g. -l<library>
1351 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1352 you have headers in a nonstandard directory <include dir>
ad6254c5
AK
1353 CPP C preprocessor
1354
1355Use these variables to override the choices made by `configure' or to help
1356it to find libraries and programs with nonstandard names/locations.
1357
1358_ACEOF
7a197a62 1359ac_status=$?
ad6254c5
AK
1360fi
1361
1362if test "$ac_init_help" = "recursive"; then
1363 # If there are subdirs, report their specific --help.
ad6254c5 1364 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
7a197a62 1365 test -d "$ac_dir" || continue
ad6254c5
AK
1366 ac_builddir=.
1367
7a197a62
AK
1368case "$ac_dir" in
1369.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1370*)
ad6254c5 1371 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7a197a62
AK
1372 # A ".." for each directory in $ac_dir_suffix.
1373 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1374 case $ac_top_builddir_sub in
1375 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1376 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1377 esac ;;
1378esac
1379ac_abs_top_builddir=$ac_pwd
1380ac_abs_builddir=$ac_pwd$ac_dir_suffix
1381# for backward compatibility:
1382ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1383
1384case $srcdir in
7a197a62 1385 .) # We are building in place.
ad6254c5 1386 ac_srcdir=.
7a197a62
AK
1387 ac_top_srcdir=$ac_top_builddir_sub
1388 ac_abs_top_srcdir=$ac_pwd ;;
1389 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1390 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1391 ac_top_srcdir=$srcdir
1392 ac_abs_top_srcdir=$srcdir ;;
1393 *) # Relative name.
1394 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1395 ac_top_srcdir=$ac_top_build_prefix$srcdir
1396 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1397esac
7a197a62
AK
1398ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1399
1400 cd "$ac_dir" || { ac_status=$?; continue; }
1401 # Check for guested configure.
1402 if test -f "$ac_srcdir/configure.gnu"; then
1403 echo &&
1404 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1405 elif test -f "$ac_srcdir/configure"; then
1406 echo &&
1407 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5
AK
1408 else
1409 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1410 fi || ac_status=$?
1411 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1412 done
1413fi
1414
7a197a62 1415test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1416if $ac_init_version; then
1417 cat <<\_ACEOF
7a197a62
AK
1418configure
1419generated by GNU Autoconf 2.61
ad6254c5 1420
7a197a62
AK
1421Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14222002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
ad6254c5
AK
1423This configure script is free software; the Free Software Foundation
1424gives unlimited permission to copy, distribute and modify it.
1425_ACEOF
7a197a62 1426 exit
ad6254c5 1427fi
7a197a62 1428cat >config.log <<_ACEOF
ad6254c5
AK
1429This file contains any messages produced by compilers while
1430running configure, to aid debugging if configure makes a mistake.
1431
1432It was created by $as_me, which was
7a197a62 1433generated by GNU Autoconf 2.61. Invocation command line was
ad6254c5
AK
1434
1435 $ $0 $@
1436
1437_ACEOF
7a197a62 1438exec 5>>config.log
ad6254c5
AK
1439{
1440cat <<_ASUNAME
1441## --------- ##
1442## Platform. ##
1443## --------- ##
1444
1445hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1446uname -m = `(uname -m) 2>/dev/null || echo unknown`
1447uname -r = `(uname -r) 2>/dev/null || echo unknown`
1448uname -s = `(uname -s) 2>/dev/null || echo unknown`
1449uname -v = `(uname -v) 2>/dev/null || echo unknown`
1450
1451/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1452/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1453
1454/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1455/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1456/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1457/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1458/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1459/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1460/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1461
1462_ASUNAME
1463
1464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1465for as_dir in $PATH
1466do
1467 IFS=$as_save_IFS
1468 test -z "$as_dir" && as_dir=.
1469 echo "PATH: $as_dir"
1470done
7a197a62 1471IFS=$as_save_IFS
ad6254c5
AK
1472
1473} >&5
1474
1475cat >&5 <<_ACEOF
1476
1477
1478## ----------- ##
1479## Core tests. ##
1480## ----------- ##
1481
1482_ACEOF
1483
1484
1485# Keep a trace of the command line.
1486# Strip out --no-create and --no-recursion so they do not pile up.
1487# Strip out --silent because we don't want to record it for future runs.
1488# Also quote any args containing shell meta-characters.
1489# Make two passes to allow for proper duplicate-argument suppression.
1490ac_configure_args=
1491ac_configure_args0=
1492ac_configure_args1=
ad6254c5
AK
1493ac_must_keep_next=false
1494for ac_pass in 1 2
1495do
1496 for ac_arg
1497 do
1498 case $ac_arg in
1499 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1501 | -silent | --silent | --silen | --sile | --sil)
1502 continue ;;
7a197a62 1503 *\'*)
ad6254c5
AK
1504 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1505 esac
1506 case $ac_pass in
1507 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1508 2)
1509 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1510 if test $ac_must_keep_next = true; then
8a2fc586 1511 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1512 else
8a2fc586
AK
1513 case $ac_arg in
1514 *=* | --config-cache | -C | -disable-* | --disable-* \
1515 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1516 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1517 | -with-* | --with-* | -without-* | --without-* | --x)
1518 case "$ac_configure_args0 " in
1519 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1520 esac
1521 ;;
1522 -* ) ac_must_keep_next=true ;;
1523 esac
ad6254c5 1524 fi
7a197a62 1525 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1526 ;;
1527 esac
1528 done
1529done
1530$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1531$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1532
1533# When interrupted or exit'd, cleanup temporary files, and complete
1534# config.log. We remove comments because anyway the quotes in there
1535# would cause problems or look ugly.
7a197a62
AK
1536# WARNING: Use '\'' to represent an apostrophe within the trap.
1537# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1538trap 'exit_status=$?
1539 # Save into config.log some information that might help in debugging.
1540 {
1541 echo
1542
1543 cat <<\_ASBOX
1544## ---------------- ##
1545## Cache variables. ##
1546## ---------------- ##
1547_ASBOX
1548 echo
1549 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1550(
1551 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1552 eval ac_val=\$$ac_var
1553 case $ac_val in #(
1554 *${as_nl}*)
1555 case $ac_var in #(
1556 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1557echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1558 esac
1559 case $ac_var in #(
1560 _ | IFS | as_nl) ;; #(
1561 *) $as_unset $ac_var ;;
1562 esac ;;
1563 esac
1564 done
ad6254c5 1565 (set) 2>&1 |
7a197a62
AK
1566 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1567 *${as_nl}ac_space=\ *)
ad6254c5 1568 sed -n \
7a197a62
AK
1569 "s/'\''/'\''\\\\'\'''\''/g;
1570 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1571 ;; #(
ad6254c5 1572 *)
7a197a62 1573 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1574 ;;
7a197a62
AK
1575 esac |
1576 sort
1577)
ad6254c5
AK
1578 echo
1579
1580 cat <<\_ASBOX
1581## ----------------- ##
1582## Output variables. ##
1583## ----------------- ##
1584_ASBOX
1585 echo
1586 for ac_var in $ac_subst_vars
1587 do
7a197a62
AK
1588 eval ac_val=\$$ac_var
1589 case $ac_val in
1590 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1591 esac
1592 echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1593 done | sort
1594 echo
1595
1596 if test -n "$ac_subst_files"; then
1597 cat <<\_ASBOX
7a197a62
AK
1598## ------------------- ##
1599## File substitutions. ##
1600## ------------------- ##
ad6254c5
AK
1601_ASBOX
1602 echo
1603 for ac_var in $ac_subst_files
1604 do
7a197a62
AK
1605 eval ac_val=\$$ac_var
1606 case $ac_val in
1607 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1608 esac
1609 echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1610 done | sort
1611 echo
1612 fi
1613
1614 if test -s confdefs.h; then
1615 cat <<\_ASBOX
1616## ----------- ##
1617## confdefs.h. ##
1618## ----------- ##
1619_ASBOX
1620 echo
7a197a62 1621 cat confdefs.h
ad6254c5
AK
1622 echo
1623 fi
1624 test "$ac_signal" != 0 &&
1625 echo "$as_me: caught signal $ac_signal"
1626 echo "$as_me: exit $exit_status"
1627 } >&5
7a197a62
AK
1628 rm -f core *.core core.conftest.* &&
1629 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1630 exit $exit_status
7a197a62 1631' 0
ad6254c5
AK
1632for ac_signal in 1 2 13 15; do
1633 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1634done
1635ac_signal=0
1636
1637# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1638rm -f -r conftest* confdefs.h
ad6254c5
AK
1639
1640# Predefined preprocessor variables.
1641
1642cat >>confdefs.h <<_ACEOF
1643#define PACKAGE_NAME "$PACKAGE_NAME"
1644_ACEOF
1645
1646
1647cat >>confdefs.h <<_ACEOF
1648#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1649_ACEOF
1650
1651
1652cat >>confdefs.h <<_ACEOF
1653#define PACKAGE_VERSION "$PACKAGE_VERSION"
1654_ACEOF
8106cdd5 1655
ad6254c5
AK
1656
1657cat >>confdefs.h <<_ACEOF
1658#define PACKAGE_STRING "$PACKAGE_STRING"
1659_ACEOF
1660
1661
1662cat >>confdefs.h <<_ACEOF
1663#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1664_ACEOF
1665
1666
1667# Let the site file select an alternate cache file if it wants to.
795ca3e5 1668# Prefer explicitly selected file to automatically selected ones.
7a197a62
AK
1669if test -n "$CONFIG_SITE"; then
1670 set x "$CONFIG_SITE"
1671elif test "x$prefix" != xNONE; then
1672 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1673else
1674 set x "$ac_default_prefix/share/config.site" \
1675 "$ac_default_prefix/etc/config.site"
795ca3e5 1676fi
7a197a62
AK
1677shift
1678for ac_site_file
1679do
795ca3e5 1680 if test -r "$ac_site_file"; then
ad6254c5
AK
1681 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1682echo "$as_me: loading site script $ac_site_file" >&6;}
1683 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1684 . "$ac_site_file"
1685 fi
1686done
1687
1688if test -r "$cache_file"; then
ad6254c5
AK
1689 # Some versions of bash will fail to source /dev/null (special
1690 # files actually), so we avoid doing that.
1691 if test -f "$cache_file"; then
1692 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1693echo "$as_me: loading cache $cache_file" >&6;}
1694 case $cache_file in
7a197a62
AK
1695 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1696 *) . "./$cache_file";;
ad6254c5
AK
1697 esac
1698 fi
795ca3e5 1699else
ad6254c5
AK
1700 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1701echo "$as_me: creating cache $cache_file" >&6;}
1702 >$cache_file
1703fi
1704
1705# Check that the precious variables saved in the cache have kept the same
1706# value.
1707ac_cache_corrupted=false
7a197a62 1708for ac_var in $ac_precious_vars; do
ad6254c5
AK
1709 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1710 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1711 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1712 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1713 case $ac_old_set,$ac_new_set in
1714 set,)
1715 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1716echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1717 ac_cache_corrupted=: ;;
1718 ,set)
1719 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1720echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1721 ac_cache_corrupted=: ;;
1722 ,);;
1723 *)
1724 if test "x$ac_old_val" != "x$ac_new_val"; then
8a2fc586 1725 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
ad6254c5 1726echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
8a2fc586 1727 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
ad6254c5 1728echo "$as_me: former value: $ac_old_val" >&2;}
8a2fc586 1729 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
ad6254c5 1730echo "$as_me: current value: $ac_new_val" >&2;}
8a2fc586 1731 ac_cache_corrupted=:
ad6254c5
AK
1732 fi;;
1733 esac
1734 # Pass precious variables to config.status.
1735 if test "$ac_new_set" = set; then
1736 case $ac_new_val in
7a197a62 1737 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1738 *) ac_arg=$ac_var=$ac_new_val ;;
1739 esac
1740 case " $ac_configure_args " in
1741 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1742 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1743 esac
1744 fi
1745done
1746if $ac_cache_corrupted; then
1747 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1748echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1749 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1750echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1751 { (exit 1); exit 1; }; }
795ca3e5
AK
1752fi
1753
ad6254c5
AK
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
7a197a62
AK
1770ac_ext=c
1771ac_cpp='$CPP $CPPFLAGS'
1772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1774ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 1775
795ca3e5
AK
1776
1777
1778
72b2cb61 1779################################################################################
7a197a62 1780ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
1781
1782
80992638 1783################################################################################
795ca3e5 1784ac_aux_dir=
7a197a62
AK
1785for ac_dir in autoconf "$srcdir"/autoconf; do
1786 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
1787 ac_aux_dir=$ac_dir
1788 ac_install_sh="$ac_aux_dir/install-sh -c"
1789 break
7a197a62 1790 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
1791 ac_aux_dir=$ac_dir
1792 ac_install_sh="$ac_aux_dir/install.sh -c"
1793 break
7a197a62 1794 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
1795 ac_aux_dir=$ac_dir
1796 ac_install_sh="$ac_aux_dir/shtool install -c"
1797 break
795ca3e5
AK
1798 fi
1799done
1800if test -z "$ac_aux_dir"; then
7a197a62
AK
1801 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1802echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 1803 { (exit 1); exit 1; }; }
795ca3e5 1804fi
7a197a62
AK
1805
1806# These three variables are undocumented and unsupported,
1807# and are intended to be withdrawn in a future Autoconf release.
1808# They can cause serious problems if a builder's source tree is in a directory
1809# whose full name contains unusual characters.
1810ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1811ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1812ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1813
8ce0cbda
AK
1814
1815
ad6254c5 1816################################################################################
8ce0cbda 1817# Make sure we can run config.sub.
7a197a62
AK
1818$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1819 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1820echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
1821 { (exit 1); exit 1; }; }
1822
7a197a62
AK
1823{ echo "$as_me:$LINENO: checking build system type" >&5
1824echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
ad6254c5
AK
1825if test "${ac_cv_build+set}" = set; then
1826 echo $ECHO_N "(cached) $ECHO_C" >&6
1827else
7a197a62
AK
1828 ac_build_alias=$build_alias
1829test "x$ac_build_alias" = x &&
1830 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1831test "x$ac_build_alias" = x &&
ad6254c5
AK
1832 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1833echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1834 { (exit 1); exit 1; }; }
7a197a62
AK
1835ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1836 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1837echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
1838 { (exit 1); exit 1; }; }
1839
1840fi
7a197a62
AK
1841{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1842echo "${ECHO_T}$ac_cv_build" >&6; }
1843case $ac_cv_build in
1844*-*-*) ;;
1845*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1846echo "$as_me: error: invalid value of canonical build" >&2;}
1847 { (exit 1); exit 1; }; };;
1848esac
ad6254c5 1849build=$ac_cv_build
7a197a62
AK
1850ac_save_IFS=$IFS; IFS='-'
1851set x $ac_cv_build
1852shift
1853build_cpu=$1
1854build_vendor=$2
1855shift; shift
1856# Remember, the first character of IFS is used to create $*,
1857# except with old shells:
1858build_os=$*
1859IFS=$ac_save_IFS
1860case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
1861
1862
7a197a62
AK
1863{ echo "$as_me:$LINENO: checking host system type" >&5
1864echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
ad6254c5
AK
1865if test "${ac_cv_host+set}" = set; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
1867else
7a197a62
AK
1868 if test "x$host_alias" = x; then
1869 ac_cv_host=$ac_cv_build
1870else
1871 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1872 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1873echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 1874 { (exit 1); exit 1; }; }
7a197a62 1875fi
ad6254c5
AK
1876
1877fi
7a197a62
AK
1878{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1879echo "${ECHO_T}$ac_cv_host" >&6; }
1880case $ac_cv_host in
1881*-*-*) ;;
1882*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1883echo "$as_me: error: invalid value of canonical host" >&2;}
1884 { (exit 1); exit 1; }; };;
1885esac
ad6254c5 1886host=$ac_cv_host
7a197a62
AK
1887ac_save_IFS=$IFS; IFS='-'
1888set x $ac_cv_host
1889shift
1890host_cpu=$1
1891host_vendor=$2
1892shift; shift
1893# Remember, the first character of IFS is used to create $*,
1894# except with old shells:
1895host_os=$*
1896IFS=$ac_save_IFS
1897case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
1898
1899
7a197a62
AK
1900{ echo "$as_me:$LINENO: checking target system type" >&5
1901echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
ad6254c5
AK
1902if test "${ac_cv_target+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1904else
7a197a62
AK
1905 if test "x$target_alias" = x; then
1906 ac_cv_target=$ac_cv_host
1907else
1908 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1909 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1910echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 1911 { (exit 1); exit 1; }; }
7a197a62 1912fi
8ce0cbda 1913
ad6254c5 1914fi
7a197a62
AK
1915{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1916echo "${ECHO_T}$ac_cv_target" >&6; }
1917case $ac_cv_target in
1918*-*-*) ;;
1919*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1920echo "$as_me: error: invalid value of canonical target" >&2;}
1921 { (exit 1); exit 1; }; };;
1922esac
ad6254c5 1923target=$ac_cv_target
7a197a62
AK
1924ac_save_IFS=$IFS; IFS='-'
1925set x $ac_cv_target
1926shift
1927target_cpu=$1
1928target_vendor=$2
1929shift; shift
1930# Remember, the first character of IFS is used to create $*,
1931# except with old shells:
1932target_os=$*
1933IFS=$ac_save_IFS
1934case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 1935
8ce0cbda 1936
ad6254c5
AK
1937# The aliases save the names the user supplied, while $host etc.
1938# will get canonicalized.
1939test -n "$target_alias" &&
8ce0cbda
AK
1940 test "$program_prefix$program_suffix$program_transform_name" = \
1941 NONENONEs,x,x, &&
1942 program_prefix=${target_alias}-
1943
8ce0cbda
AK
1944case "$host_os" in
1945 linux*)
1946 CFLAGS="$CFLAGS"
1947 COPTIMISE_FLAG="-O2"
1948 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
1949 CLDWHOLEARCHIVE="-Wl,-whole-archive"
1950 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
1951 LDDEPS="$LDDEPS .export.sym"
1952 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
e4c11ad1 1953 LIB_SUFFIX="so"
8ce0cbda
AK
1954 DEVMAPPER=yes
1955 ODIRECT=yes
1956 SELINUX=yes
8b1a3214 1957 REALTIME=yes
8ce0cbda
AK
1958 CLUSTER=internal
1959 FSADM=no ;;
1960 darwin*)
1961 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
1962 COPTIMISE_FLAG="-O2"
1963 CLDFLAGS="$CLDFLAGS"
1964 CLDWHOLEARCHIVE="-all_load"
1965 CLDNOWHOLEARCHIVE=
1966 LDDEPS="$LDDEPS"
1967 LDFLAGS="$LDFLAGS"
e4c11ad1 1968 LIB_SUFFIX="dylib"
a653923f 1969 DEVMAPPER=yes
8ce0cbda
AK
1970 ODIRECT=no
1971 SELINUX=no
8b1a3214 1972 REALTIME=no
8ce0cbda
AK
1973 CLUSTER=none
1974 FSADM=no ;;
1975esac
1976
80992638 1977################################################################################
ad6254c5 1978for ac_prog in gawk mawk nawk awk
795ca3e5 1979do
ad6254c5 1980 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 1981set dummy $ac_prog; ac_word=$2
7a197a62
AK
1982{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5
AK
1984if test "${ac_cv_prog_AWK+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1986else
1987 if test -n "$AWK"; then
1988 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1989else
ad6254c5
AK
1990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991for as_dir in $PATH
1992do
1993 IFS=$as_save_IFS
1994 test -z "$as_dir" && as_dir=.
1995 for ac_exec_ext in '' $ac_executable_extensions; do
7a197a62 1996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
1997 ac_cv_prog_AWK="$ac_prog"
1998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999 break 2
2000 fi
2001done
2002done
7a197a62 2003IFS=$as_save_IFS
ad6254c5 2004
795ca3e5
AK
2005fi
2006fi
ad6254c5 2007AWK=$ac_cv_prog_AWK
795ca3e5 2008if test -n "$AWK"; then
7a197a62
AK
2009 { echo "$as_me:$LINENO: result: $AWK" >&5
2010echo "${ECHO_T}$AWK" >&6; }
795ca3e5 2011else
7a197a62
AK
2012 { echo "$as_me:$LINENO: result: no" >&5
2013echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2014fi
2015
7a197a62 2016
ad6254c5
AK
2017 test -n "$AWK" && break
2018done
2019
2020ac_ext=c
2021ac_cpp='$CPP $CPPFLAGS'
2022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2024ac_compiler_gnu=$ac_cv_c_compiler_gnu
2025if test -n "$ac_tool_prefix"; then
2026 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2027set dummy ${ac_tool_prefix}gcc; ac_word=$2
7a197a62
AK
2028{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5
AK
2030if test "${ac_cv_prog_CC+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032else
2033 if test -n "$CC"; then
2034 ac_cv_prog_CC="$CC" # Let the user override the test.
2035else
2036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037for as_dir in $PATH
2038do
2039 IFS=$as_save_IFS
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
7a197a62 2042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2043 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045 break 2
2046 fi
2047done
8106cdd5 2048done
7a197a62 2049IFS=$as_save_IFS
8106cdd5 2050
ad6254c5
AK
2051fi
2052fi
2053CC=$ac_cv_prog_CC
2054if test -n "$CC"; then
7a197a62
AK
2055 { echo "$as_me:$LINENO: result: $CC" >&5
2056echo "${ECHO_T}$CC" >&6; }
ad6254c5 2057else
7a197a62
AK
2058 { echo "$as_me:$LINENO: result: no" >&5
2059echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2060fi
2061
7a197a62 2062
ad6254c5
AK
2063fi
2064if test -z "$ac_cv_prog_CC"; then
2065 ac_ct_CC=$CC
2066 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2067set dummy gcc; ac_word=$2
7a197a62
AK
2068{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5
AK
2070if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2072else
2073 if test -n "$ac_ct_CC"; then
2074 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2075else
2076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077for as_dir in $PATH
2078do
2079 IFS=$as_save_IFS
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
7a197a62 2082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2083 ac_cv_prog_ac_ct_CC="gcc"
2084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085 break 2
2086 fi
2087done
2088done
7a197a62 2089IFS=$as_save_IFS
ad6254c5
AK
2090
2091fi
2092fi
2093ac_ct_CC=$ac_cv_prog_ac_ct_CC
2094if test -n "$ac_ct_CC"; then
7a197a62
AK
2095 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2096echo "${ECHO_T}$ac_ct_CC" >&6; }
ad6254c5 2097else
7a197a62
AK
2098 { echo "$as_me:$LINENO: result: no" >&5
2099echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2100fi
2101
7a197a62
AK
2102 if test "x$ac_ct_CC" = x; then
2103 CC=""
2104 else
2105 case $cross_compiling:$ac_tool_warned in
2106yes:)
2107{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2108whose name does not start with the host triplet. If you think this
2109configuration is useful to you, please write to autoconf@gnu.org." >&5
2110echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2111whose name does not start with the host triplet. If you think this
2112configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2113ac_tool_warned=yes ;;
2114esac
2115 CC=$ac_ct_CC
2116 fi
ad6254c5
AK
2117else
2118 CC="$ac_cv_prog_CC"
2119fi
2120
2121if test -z "$CC"; then
7a197a62
AK
2122 if test -n "$ac_tool_prefix"; then
2123 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2124set dummy ${ac_tool_prefix}cc; ac_word=$2
7a197a62
AK
2125{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5
AK
2127if test "${ac_cv_prog_CC+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5
AK
2129else
2130 if test -n "$CC"; then
2131 ac_cv_prog_CC="$CC" # Let the user override the test.
2132else
ad6254c5
AK
2133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134for as_dir in $PATH
2135do
2136 IFS=$as_save_IFS
2137 test -z "$as_dir" && as_dir=.
2138 for ac_exec_ext in '' $ac_executable_extensions; do
7a197a62 2139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2140 ac_cv_prog_CC="${ac_tool_prefix}cc"
2141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142 break 2
2143 fi
2144done
2145done
7a197a62 2146IFS=$as_save_IFS
ad6254c5 2147
8106cdd5
AK
2148fi
2149fi
ad6254c5 2150CC=$ac_cv_prog_CC
8106cdd5 2151if test -n "$CC"; then
7a197a62
AK
2152 { echo "$as_me:$LINENO: result: $CC" >&5
2153echo "${ECHO_T}$CC" >&6; }
ad6254c5 2154else
7a197a62
AK
2155 { echo "$as_me:$LINENO: result: no" >&5
2156echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2157fi
2158
8106cdd5 2159
7a197a62 2160 fi
ad6254c5 2161fi
795ca3e5
AK
2162if test -z "$CC"; then
2163 # Extract the first word of "cc", so it can be a program name with args.
2164set dummy cc; ac_word=$2
7a197a62
AK
2165{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5
AK
2167if test "${ac_cv_prog_CC+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2169else
2170 if test -n "$CC"; then
2171 ac_cv_prog_CC="$CC" # Let the user override the test.
2172else
795ca3e5 2173 ac_prog_rejected=no
ad6254c5
AK
2174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175for as_dir in $PATH
2176do
2177 IFS=$as_save_IFS
2178 test -z "$as_dir" && as_dir=.
2179 for ac_exec_ext in '' $ac_executable_extensions; do
7a197a62 2180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2181 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2182 ac_prog_rejected=yes
2183 continue
2184 fi
2185 ac_cv_prog_CC="cc"
2186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187 break 2
2188 fi
2189done
2190done
7a197a62 2191IFS=$as_save_IFS
ad6254c5 2192
795ca3e5
AK
2193if test $ac_prog_rejected = yes; then
2194 # We found a bogon in the path, so make sure we never use it.
2195 set dummy $ac_cv_prog_CC
2196 shift
ad6254c5 2197 if test $# != 0; then
795ca3e5
AK
2198 # We chose a different compiler from the bogus one.
2199 # However, it has the same basename, so the bogon will be chosen
2200 # first if we set CC to just the basename; use the full file name.
2201 shift
ad6254c5 2202 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2203 fi
2204fi
2205fi
2206fi
ad6254c5 2207CC=$ac_cv_prog_CC
795ca3e5 2208if test -n "$CC"; then
7a197a62
AK
2209 { echo "$as_me:$LINENO: result: $CC" >&5
2210echo "${ECHO_T}$CC" >&6; }
795ca3e5 2211else
7a197a62
AK
2212 { echo "$as_me:$LINENO: result: no" >&5
2213echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2214fi
2215
7a197a62 2216
ad6254c5
AK
2217fi
2218if test -z "$CC"; then
2219 if test -n "$ac_tool_prefix"; then
7a197a62 2220 for ac_prog in cl.exe
ad6254c5
AK
2221 do
2222 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2223set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7a197a62
AK
2224{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5
AK
2226if test "${ac_cv_prog_CC+set}" = set; then
2227 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2228else
2229 if test -n "$CC"; then
2230 ac_cv_prog_CC="$CC" # Let the user override the test.
2231else
ad6254c5
AK
2232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233for as_dir in $PATH
2234do
2235 IFS=$as_save_IFS
2236 test -z "$as_dir" && as_dir=.
2237 for ac_exec_ext in '' $ac_executable_extensions; do
7a197a62 2238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2239 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2241 break 2
2242 fi
2243done
2244done
7a197a62 2245IFS=$as_save_IFS
ad6254c5 2246
795ca3e5
AK
2247fi
2248fi
ad6254c5 2249CC=$ac_cv_prog_CC
795ca3e5 2250if test -n "$CC"; then
7a197a62
AK
2251 { echo "$as_me:$LINENO: result: $CC" >&5
2252echo "${ECHO_T}$CC" >&6; }
795ca3e5 2253else
7a197a62
AK
2254 { echo "$as_me:$LINENO: result: no" >&5
2255echo "${ECHO_T}no" >&6; }
795ca3e5 2256fi
ad6254c5 2257
7a197a62 2258
ad6254c5
AK
2259 test -n "$CC" && break
2260 done
2261fi
2262if test -z "$CC"; then
2263 ac_ct_CC=$CC
7a197a62 2264 for ac_prog in cl.exe
ad6254c5
AK
2265do
2266 # Extract the first word of "$ac_prog", so it can be a program name with args.
2267set dummy $ac_prog; ac_word=$2
7a197a62
AK
2268{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5
AK
2270if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2272else
2273 if test -n "$ac_ct_CC"; then
2274 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2275else
2276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277for as_dir in $PATH
2278do
2279 IFS=$as_save_IFS
2280 test -z "$as_dir" && as_dir=.
2281 for ac_exec_ext in '' $ac_executable_extensions; do
7a197a62 2282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2283 ac_cv_prog_ac_ct_CC="$ac_prog"
2284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285 break 2
795ca3e5 2286 fi
ad6254c5
AK
2287done
2288done
7a197a62 2289IFS=$as_save_IFS
ad6254c5
AK
2290
2291fi
2292fi
2293ac_ct_CC=$ac_cv_prog_ac_ct_CC
2294if test -n "$ac_ct_CC"; then
7a197a62
AK
2295 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2296echo "${ECHO_T}$ac_ct_CC" >&6; }
ad6254c5 2297else
7a197a62
AK
2298 { echo "$as_me:$LINENO: result: no" >&5
2299echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2300fi
2301
7a197a62 2302
ad6254c5
AK
2303 test -n "$ac_ct_CC" && break
2304done
795ca3e5 2305
7a197a62
AK
2306 if test "x$ac_ct_CC" = x; then
2307 CC=""
2308 else
2309 case $cross_compiling:$ac_tool_warned in
2310yes:)
2311{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2312whose name does not start with the host triplet. If you think this
2313configuration is useful to you, please write to autoconf@gnu.org." >&5
2314echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2315whose name does not start with the host triplet. If you think this
2316configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2317ac_tool_warned=yes ;;
2318esac
2319 CC=$ac_ct_CC
2320 fi
ad6254c5
AK
2321fi
2322
2323fi
2324
2325
2326test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2327See \`config.log' for more details." >&5
2328echo "$as_me: error: no acceptable C compiler found in \$PATH
2329See \`config.log' for more details." >&2;}
2330 { (exit 1); exit 1; }; }
2331
2332# Provide some information about the compiler.
7a197a62 2333echo "$as_me:$LINENO: checking for C compiler version" >&5
ad6254c5 2334ac_compiler=`set X $ac_compile; echo $2`
7a197a62
AK
2335{ (ac_try="$ac_compiler --version >&5"
2336case "(($ac_try" in
2337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2338 *) ac_try_echo=$ac_try;;
2339esac
2340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2341 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5
AK
2342 ac_status=$?
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }
7a197a62
AK
2345{ (ac_try="$ac_compiler -v >&5"
2346case "(($ac_try" in
2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348 *) ac_try_echo=$ac_try;;
2349esac
2350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2351 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5
AK
2352 ac_status=$?
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }
7a197a62
AK
2355{ (ac_try="$ac_compiler -V >&5"
2356case "(($ac_try" in
2357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2358 *) ac_try_echo=$ac_try;;
2359esac
2360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2361 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5
AK
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }
2365
2366cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2367/* confdefs.h. */
2368_ACEOF
2369cat confdefs.h >>conftest.$ac_ext
2370cat >>conftest.$ac_ext <<_ACEOF
2371/* end confdefs.h. */
2372
2373int
2374main ()
2375{
2376
2377 ;
2378 return 0;
2379}
2380_ACEOF
2381ac_clean_files_save=$ac_clean_files
2382ac_clean_files="$ac_clean_files a.out a.exe b.out"
2383# Try to create an executable without -o first, disregard a.out.
2384# It will help us diagnose broken compilers, and finding out an intuition
2385# of exeext.
7a197a62
AK
2386{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2387echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
ad6254c5 2388ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
7a197a62
AK
2389#
2390# List of possible output files, starting from the most likely.
2391# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2392# only as a last resort. b.out is created by i960 compilers.
2393ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2394#
2395# The IRIX 6 linker writes into existing files which may not be
2396# executable, retaining their permissions. Remove them first so a
2397# subsequent execution test works.
2398ac_rmfiles=
2399for ac_file in $ac_files
2400do
2401 case $ac_file in
2402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2403 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2404 esac
2405done
2406rm -f $ac_rmfiles
2407
2408if { (ac_try="$ac_link_default"
2409case "(($ac_try" in
2410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411 *) ac_try_echo=$ac_try;;
2412esac
2413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2414 (eval "$ac_link_default") 2>&5
ad6254c5
AK
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; then
7a197a62
AK
2418 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2419# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2420# in a Makefile. We should not override ac_cv_exeext if it was cached,
2421# so that the user can short-circuit this test for compilers unknown to
2422# Autoconf.
2423for ac_file in $ac_files ''
ad6254c5
AK
2424do
2425 test -f "$ac_file" || continue
2426 case $ac_file in
7a197a62 2427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
8a2fc586 2428 ;;
ad6254c5 2429 [ab].out )
8a2fc586
AK
2430 # We found the default executable, but exeext='' is most
2431 # certainly right.
2432 break;;
ad6254c5 2433 *.* )
7a197a62
AK
2434 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2435 then :; else
2436 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2437 fi
2438 # We set ac_cv_exeext here because the later test for it is not
2439 # safe: cross compilers may not add the suffix if given an `-o'
2440 # argument, so we may need to know it at that point already.
2441 # Even if this section looks crufty: it has the advantage of
2442 # actually working.
8a2fc586 2443 break;;
ad6254c5 2444 * )
8a2fc586 2445 break;;
ad6254c5
AK
2446 esac
2447done
7a197a62
AK
2448test "$ac_cv_exeext" = no && ac_cv_exeext=
2449
ad6254c5 2450else
7a197a62
AK
2451 ac_file=''
2452fi
2453
2454{ echo "$as_me:$LINENO: result: $ac_file" >&5
2455echo "${ECHO_T}$ac_file" >&6; }
2456if test -z "$ac_file"; then
ad6254c5
AK
2457 echo "$as_me: failed program was:" >&5
2458sed 's/^/| /' conftest.$ac_ext >&5
2459
2460{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2461See \`config.log' for more details." >&5
2462echo "$as_me: error: C compiler cannot create executables
2463See \`config.log' for more details." >&2;}
2464 { (exit 77); exit 77; }; }
2465fi
2466
2467ac_exeext=$ac_cv_exeext
ad6254c5 2468
7a197a62 2469# Check that the compiler produces executables we can run. If not, either
ad6254c5 2470# the compiler is broken, or we cross compile.
7a197a62
AK
2471{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2472echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
ad6254c5
AK
2473# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2474# If not cross compiling, check that we can run a simple program.
2475if test "$cross_compiling" != yes; then
2476 if { ac_try='./$ac_file'
7a197a62
AK
2477 { (case "(($ac_try" in
2478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479 *) ac_try_echo=$ac_try;;
2480esac
2481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2482 (eval "$ac_try") 2>&5
ad6254c5
AK
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; }; then
2486 cross_compiling=no
795ca3e5 2487 else
ad6254c5
AK
2488 if test "$cross_compiling" = maybe; then
2489 cross_compiling=yes
2490 else
2491 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2492If you meant to cross compile, use \`--host'.
2493See \`config.log' for more details." >&5
2494echo "$as_me: error: cannot run C compiled programs.
2495If you meant to cross compile, use \`--host'.
2496See \`config.log' for more details." >&2;}
2497 { (exit 1); exit 1; }; }
2498 fi
795ca3e5 2499 fi
80992638 2500fi
7a197a62
AK
2501{ echo "$as_me:$LINENO: result: yes" >&5
2502echo "${ECHO_T}yes" >&6; }
ad6254c5
AK
2503
2504rm -f a.out a.exe conftest$ac_cv_exeext b.out
2505ac_clean_files=$ac_clean_files_save
7a197a62 2506# Check that the compiler produces executables we can run. If not, either
ad6254c5 2507# the compiler is broken, or we cross compile.
7a197a62
AK
2508{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2509echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2510{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2511echo "${ECHO_T}$cross_compiling" >&6; }
2512
2513{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2514echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2515if { (ac_try="$ac_link"
2516case "(($ac_try" in
2517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2518 *) ac_try_echo=$ac_try;;
2519esac
2520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2521 (eval "$ac_link") 2>&5
ad6254c5
AK
2522 ac_status=$?
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; then
2525 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2526# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2527# work properly (i.e., refer to `conftest.exe'), while it won't with
2528# `rm'.
2529for ac_file in conftest.exe conftest conftest.*; do
2530 test -f "$ac_file" || continue
2531 case $ac_file in
7a197a62 2532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
ad6254c5 2533 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2534 break;;
ad6254c5
AK
2535 * ) break;;
2536 esac
2537done
80992638 2538else
ad6254c5
AK
2539 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2540See \`config.log' for more details." >&5
2541echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2542See \`config.log' for more details." >&2;}
2543 { (exit 1); exit 1; }; }
2544fi
2545
2546rm -f conftest$ac_cv_exeext
7a197a62
AK
2547{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2548echo "${ECHO_T}$ac_cv_exeext" >&6; }
ad6254c5
AK
2549
2550rm -f conftest.$ac_ext
2551EXEEXT=$ac_cv_exeext
2552ac_exeext=$EXEEXT
7a197a62
AK
2553{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2554echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
ad6254c5
AK
2555if test "${ac_cv_objext+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2557else
ad6254c5 2558 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2559/* confdefs.h. */
2560_ACEOF
2561cat confdefs.h >>conftest.$ac_ext
2562cat >>conftest.$ac_ext <<_ACEOF
2563/* end confdefs.h. */
2564
2565int
2566main ()
2567{
2568
2569 ;
2570 return 0;
2571}
2572_ACEOF
2573rm -f conftest.o conftest.obj
7a197a62
AK
2574if { (ac_try="$ac_compile"
2575case "(($ac_try" in
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2578esac
2579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580 (eval "$ac_compile") 2>&5
ad6254c5
AK
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; then
7a197a62
AK
2584 for ac_file in conftest.o conftest.obj conftest.*; do
2585 test -f "$ac_file" || continue;
ad6254c5 2586 case $ac_file in
7a197a62 2587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
ad6254c5
AK
2588 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2589 break;;
2590 esac
2591done
2592else
2593 echo "$as_me: failed program was:" >&5
2594sed 's/^/| /' conftest.$ac_ext >&5
2595
2596{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2597See \`config.log' for more details." >&5
2598echo "$as_me: error: cannot compute suffix of object files: cannot compile
2599See \`config.log' for more details." >&2;}
2600 { (exit 1); exit 1; }; }
2601fi
2602
2603rm -f conftest.$ac_cv_objext conftest.$ac_ext
2604fi
7a197a62
AK
2605{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2606echo "${ECHO_T}$ac_cv_objext" >&6; }
ad6254c5
AK
2607OBJEXT=$ac_cv_objext
2608ac_objext=$OBJEXT
7a197a62
AK
2609{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2610echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
ad6254c5
AK
2611if test "${ac_cv_c_compiler_gnu+set}" = set; then
2612 echo $ECHO_N "(cached) $ECHO_C" >&6
2613else
2614 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2615/* confdefs.h. */
2616_ACEOF
2617cat confdefs.h >>conftest.$ac_ext
2618cat >>conftest.$ac_ext <<_ACEOF
2619/* end confdefs.h. */
2620
2621int
2622main ()
2623{
2624#ifndef __GNUC__
2625 choke me
2626#endif
80992638 2627
ad6254c5
AK
2628 ;
2629 return 0;
2630}
2631_ACEOF
2632rm -f conftest.$ac_objext
7a197a62
AK
2633if { (ac_try="$ac_compile"
2634case "(($ac_try" in
2635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636 *) ac_try_echo=$ac_try;;
2637esac
2638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2639 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2640 ac_status=$?
8a2fc586
AK
2641 grep -v '^ *+' conftest.er1 >conftest.err
2642 rm -f conftest.er1
2643 cat conftest.err >&5
ad6254c5 2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
2645 (exit $ac_status); } && {
2646 test -z "$ac_c_werror_flag" ||
2647 test ! -s conftest.err
2648 } && test -s conftest.$ac_objext; then
ad6254c5 2649 ac_compiler_gnu=yes
80992638 2650else
ad6254c5
AK
2651 echo "$as_me: failed program was:" >&5
2652sed 's/^/| /' conftest.$ac_ext >&5
2653
7a197a62 2654 ac_compiler_gnu=no
8106cdd5 2655fi
7a197a62
AK
2656
2657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2658ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 2659
ad6254c5 2660fi
7a197a62
AK
2661{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2662echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
ad6254c5
AK
2663GCC=`test $ac_compiler_gnu = yes && echo yes`
2664ac_test_CFLAGS=${CFLAGS+set}
2665ac_save_CFLAGS=$CFLAGS
7a197a62
AK
2666{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2667echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
ad6254c5
AK
2668if test "${ac_cv_prog_cc_g+set}" = set; then
2669 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2670else
7a197a62
AK
2671 ac_save_c_werror_flag=$ac_c_werror_flag
2672 ac_c_werror_flag=yes
2673 ac_cv_prog_cc_g=no
2674 CFLAGS="-g"
2675 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2676/* confdefs.h. */
2677_ACEOF
2678cat confdefs.h >>conftest.$ac_ext
2679cat >>conftest.$ac_ext <<_ACEOF
2680/* end confdefs.h. */
2681
2682int
2683main ()
2684{
2685
2686 ;
2687 return 0;
2688}
2689_ACEOF
2690rm -f conftest.$ac_objext
7a197a62
AK
2691if { (ac_try="$ac_compile"
2692case "(($ac_try" in
2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694 *) ac_try_echo=$ac_try;;
2695esac
2696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2697 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2698 ac_status=$?
8a2fc586
AK
2699 grep -v '^ *+' conftest.er1 >conftest.err
2700 rm -f conftest.er1
2701 cat conftest.err >&5
ad6254c5 2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
2703 (exit $ac_status); } && {
2704 test -z "$ac_c_werror_flag" ||
2705 test ! -s conftest.err
2706 } && test -s conftest.$ac_objext; then
2707 ac_cv_prog_cc_g=yes
2708else
2709 echo "$as_me: failed program was:" >&5
2710sed 's/^/| /' conftest.$ac_ext >&5
2711
2712 CFLAGS=""
2713 cat >conftest.$ac_ext <<_ACEOF
2714/* confdefs.h. */
2715_ACEOF
2716cat confdefs.h >>conftest.$ac_ext
2717cat >>conftest.$ac_ext <<_ACEOF
2718/* end confdefs.h. */
2719
2720int
2721main ()
2722{
2723
2724 ;
2725 return 0;
2726}
2727_ACEOF
2728rm -f conftest.$ac_objext
2729if { (ac_try="$ac_compile"
2730case "(($ac_try" in
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2733esac
2734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_compile") 2>conftest.er1
8a2fc586 2736 ac_status=$?
7a197a62
AK
2737 grep -v '^ *+' conftest.er1 >conftest.err
2738 rm -f conftest.er1
2739 cat conftest.err >&5
8a2fc586 2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
2741 (exit $ac_status); } && {
2742 test -z "$ac_c_werror_flag" ||
2743 test ! -s conftest.err
2744 } && test -s conftest.$ac_objext; then
2745 :
2746else
2747 echo "$as_me: failed program was:" >&5
2748sed 's/^/| /' conftest.$ac_ext >&5
2749
2750 ac_c_werror_flag=$ac_save_c_werror_flag
2751 CFLAGS="-g"
2752 cat >conftest.$ac_ext <<_ACEOF
2753/* confdefs.h. */
2754_ACEOF
2755cat confdefs.h >>conftest.$ac_ext
2756cat >>conftest.$ac_ext <<_ACEOF
2757/* end confdefs.h. */
2758
2759int
2760main ()
2761{
2762
2763 ;
2764 return 0;
2765}
2766_ACEOF
2767rm -f conftest.$ac_objext
2768if { (ac_try="$ac_compile"
2769case "(($ac_try" in
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2772esac
2773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2774 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2775 ac_status=$?
7a197a62
AK
2776 grep -v '^ *+' conftest.er1 >conftest.err
2777 rm -f conftest.er1
2778 cat conftest.err >&5
ad6254c5 2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
2780 (exit $ac_status); } && {
2781 test -z "$ac_c_werror_flag" ||
2782 test ! -s conftest.err
2783 } && test -s conftest.$ac_objext; then
795ca3e5
AK
2784 ac_cv_prog_cc_g=yes
2785else
ad6254c5
AK
2786 echo "$as_me: failed program was:" >&5
2787sed 's/^/| /' conftest.$ac_ext >&5
80992638 2788
7a197a62
AK
2789
2790fi
2791
2792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2793fi
2794
2795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 2796fi
7a197a62
AK
2797
2798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2799 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 2800fi
7a197a62
AK
2801{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2802echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
795ca3e5 2803if test "$ac_test_CFLAGS" = set; then
ad6254c5 2804 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
2805elif test $ac_cv_prog_cc_g = yes; then
2806 if test "$GCC" = yes; then
2807 CFLAGS="-g -O2"
2808 else
2809 CFLAGS="-g"
2810 fi
2811else
2812 if test "$GCC" = yes; then
2813 CFLAGS="-O2"
2814 else
2815 CFLAGS=
2816 fi
2817fi
7a197a62
AK
2818{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2819echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2820if test "${ac_cv_prog_cc_c89+set}" = set; then
ad6254c5
AK
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2822else
7a197a62 2823 ac_cv_prog_cc_c89=no
ad6254c5
AK
2824ac_save_CC=$CC
2825cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2826/* confdefs.h. */
2827_ACEOF
2828cat confdefs.h >>conftest.$ac_ext
2829cat >>conftest.$ac_ext <<_ACEOF
2830/* end confdefs.h. */
2831#include <stdarg.h>
2832#include <stdio.h>
2833#include <sys/types.h>
2834#include <sys/stat.h>
2835/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2836struct buf { int x; };
2837FILE * (*rcsopen) (struct buf *, struct stat *, int);
2838static char *e (p, i)
2839 char **p;
2840 int i;
2841{
2842 return p[i];
2843}
2844static char *f (char * (*g) (char **, int), char **p, ...)
2845{
2846 char *s;
2847 va_list v;
2848 va_start (v,p);
2849 s = g (p, va_arg (v,int));
2850 va_end (v);
2851 return s;
2852}
8a2fc586
AK
2853
2854/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2855 function prototypes and stuff, but not '\xHH' hex character constants.
2856 These don't provoke an error unfortunately, instead are silently treated
7a197a62 2857 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
2858 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2859 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 2860 that's true only with -std. */
8a2fc586
AK
2861int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2862
7a197a62
AK
2863/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2864 inside strings and character constants. */
2865#define FOO(x) 'x'
2866int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2867
ad6254c5
AK
2868int test (int i, double x);
2869struct s1 {int (*f) (int a);};
2870struct s2 {int (*f) (double a);};
2871int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2872int argc;
2873char **argv;
2874int
2875main ()
2876{
2877return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2878 ;
2879 return 0;
2880}
2881_ACEOF
7a197a62
AK
2882for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2883 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
2884do
2885 CC="$ac_save_CC $ac_arg"
2886 rm -f conftest.$ac_objext
7a197a62
AK
2887if { (ac_try="$ac_compile"
2888case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891esac
2892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2894 ac_status=$?
8a2fc586
AK
2895 grep -v '^ *+' conftest.er1 >conftest.err
2896 rm -f conftest.er1
2897 cat conftest.err >&5
ad6254c5 2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
2899 (exit $ac_status); } && {
2900 test -z "$ac_c_werror_flag" ||
2901 test ! -s conftest.err
2902 } && test -s conftest.$ac_objext; then
2903 ac_cv_prog_cc_c89=$ac_arg
ad6254c5
AK
2904else
2905 echo "$as_me: failed program was:" >&5
2906sed 's/^/| /' conftest.$ac_ext >&5
2907
7a197a62 2908
ad6254c5 2909fi
7a197a62
AK
2910
2911rm -f core conftest.err conftest.$ac_objext
2912 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 2913done
7a197a62 2914rm -f conftest.$ac_ext
ad6254c5
AK
2915CC=$ac_save_CC
2916
2917fi
7a197a62
AK
2918# AC_CACHE_VAL
2919case "x$ac_cv_prog_cc_c89" in
2920 x)
2921 { echo "$as_me:$LINENO: result: none needed" >&5
2922echo "${ECHO_T}none needed" >&6; } ;;
2923 xno)
2924 { echo "$as_me:$LINENO: result: unsupported" >&5
2925echo "${ECHO_T}unsupported" >&6; } ;;
ad6254c5 2926 *)
7a197a62
AK
2927 CC="$CC $ac_cv_prog_cc_c89"
2928 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2929echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
2930esac
2931
ad6254c5 2932
ad6254c5
AK
2933ac_ext=c
2934ac_cpp='$CPP $CPPFLAGS'
2935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5
AK
2938
2939# Find a good install program. We prefer a C program (faster),
2940# so one script is as good as another. But avoid the broken or
2941# incompatible versions:
2942# SysV /etc/install, /usr/sbin/install
2943# SunOS /usr/etc/install
2944# IRIX /sbin/install
2945# AIX /bin/install
ad6254c5 2946# AmigaOS /C/install, which installs bootblocks on floppy discs
795ca3e5
AK
2947# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2948# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2949# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8a2fc586 2950# OS/2's system install, which has a completely different semantic
795ca3e5 2951# ./install, which can be erroneously created by make from ./install.sh.
7a197a62
AK
2952{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2953echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
795ca3e5 2954if test -z "$INSTALL"; then
ad6254c5
AK
2955if test "${ac_cv_path_install+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2957else
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959for as_dir in $PATH
2960do
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
2963 # Account for people who put trailing slashes in PATH elements.
2964case $as_dir/ in
2965 ./ | .// | /cC/* | \
2966 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8a2fc586 2967 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
ad6254c5
AK
2968 /usr/ucb/* ) ;;
2969 *)
2970 # OSF1 and SCO ODT 3.0 have their own names for install.
2971 # Don't use installbsd from OSF since it installs stuff as root
2972 # by default.
2973 for ac_prog in ginstall scoinst install; do
2974 for ac_exec_ext in '' $ac_executable_extensions; do
7a197a62 2975 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
8a2fc586
AK
2976 if test $ac_prog = install &&
2977 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2978 # AIX install. It has an incompatible calling convention.
2979 :
2980 elif test $ac_prog = install &&
2981 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2982 # program-specific install script used by HP pwplus--don't use.
2983 :
2984 else
2985 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2986 break 3
2987 fi
2988 fi
795ca3e5 2989 done
ad6254c5
AK
2990 done
2991 ;;
2992esac
2993done
7a197a62 2994IFS=$as_save_IFS
ad6254c5 2995
795ca3e5
AK
2996
2997fi
2998 if test "${ac_cv_path_install+set}" = set; then
ad6254c5 2999 INSTALL=$ac_cv_path_install
795ca3e5 3000 else
7a197a62
AK
3001 # As a last resort, use the slow shell script. Don't cache a
3002 # value for INSTALL within a source directory, because that will
795ca3e5 3003 # break other packages using the cache if that directory is
7a197a62 3004 # removed, or if the value is a relative name.
ad6254c5 3005 INSTALL=$ac_install_sh
795ca3e5
AK
3006 fi
3007fi
7a197a62
AK
3008{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3009echo "${ECHO_T}$INSTALL" >&6; }
795ca3e5
AK
3010
3011# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3012# It thinks the first close brace ends the variable substitution.
3013test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3014
ad6254c5 3015test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
795ca3e5
AK
3016
3017test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3018
7a197a62
AK
3019{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3020echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
ad6254c5
AK
3021LN_S=$as_ln_s
3022if test "$LN_S" = "ln -s"; then
7a197a62
AK
3023 { echo "$as_me:$LINENO: result: yes" >&5
3024echo "${ECHO_T}yes" >&6; }
80992638 3025else
7a197a62
AK
3026 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3027echo "${ECHO_T}no, using $LN_S" >&6; }
795ca3e5
AK
3028fi
3029
7a197a62
AK
3030{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3031echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3032set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3033if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5 3034 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3035else
ad6254c5 3036 cat >conftest.make <<\_ACEOF
7a197a62 3037SHELL = /bin/sh
795ca3e5 3038all:
7a197a62 3039 @echo '@@@%%%=$(MAKE)=@@@%%%'
ad6254c5 3040_ACEOF
795ca3e5 3041# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7a197a62
AK
3042case `${MAKE-make} -f conftest.make 2>/dev/null` in
3043 *@@@%%%=?*=@@@%%%*)
3044 eval ac_cv_prog_make_${ac_make}_set=yes;;
3045 *)
3046 eval ac_cv_prog_make_${ac_make}_set=no;;
3047esac
ad6254c5 3048rm -f conftest.make
795ca3e5 3049fi
7a197a62
AK
3050if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3051 { echo "$as_me:$LINENO: result: yes" >&5
3052echo "${ECHO_T}yes" >&6; }
795ca3e5
AK
3053 SET_MAKE=
3054else
7a197a62
AK
3055 { echo "$as_me:$LINENO: result: no" >&5
3056echo "${ECHO_T}no" >&6; }
795ca3e5
AK
3057 SET_MAKE="MAKE=${MAKE-make}"
3058fi
3059
ad6254c5
AK
3060if test -n "$ac_tool_prefix"; then
3061 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3062set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7a197a62
AK
3063{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5
AK
3065if test "${ac_cv_prog_RANLIB+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
3067else
3068 if test -n "$RANLIB"; then
3069 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3070else
ad6254c5
AK
3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072for as_dir in $PATH
3073do
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
7a197a62 3077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
3078 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 break 2
3081 fi
3082done
3083done
7a197a62 3084IFS=$as_save_IFS
ad6254c5 3085
795ca3e5
AK
3086fi
3087fi
ad6254c5 3088RANLIB=$ac_cv_prog_RANLIB
795ca3e5 3089if test -n "$RANLIB"; then
7a197a62
AK
3090 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3091echo "${ECHO_T}$RANLIB" >&6; }
8106cdd5 3092else
7a197a62
AK
3093 { echo "$as_me:$LINENO: result: no" >&5
3094echo "${ECHO_T}no" >&6; }
8106cdd5
AK
3095fi
3096
7a197a62 3097
795ca3e5 3098fi
ad6254c5
AK
3099if test -z "$ac_cv_prog_RANLIB"; then
3100 ac_ct_RANLIB=$RANLIB
3101 # Extract the first word of "ranlib", so it can be a program name with args.
3102set dummy ranlib; ac_word=$2
7a197a62
AK
3103{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5
AK
3105if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 3107else
ad6254c5
AK
3108 if test -n "$ac_ct_RANLIB"; then
3109 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3110else
3111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112for as_dir in $PATH
3113do
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
7a197a62 3117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
3118 ac_cv_prog_ac_ct_RANLIB="ranlib"
3119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 break 2
3121 fi
3122done
795ca3e5 3123done
7a197a62 3124IFS=$as_save_IFS
8106cdd5 3125
795ca3e5 3126fi
80992638 3127fi
ad6254c5
AK
3128ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3129if test -n "$ac_ct_RANLIB"; then
7a197a62
AK
3130 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3131echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
80992638 3132else
7a197a62
AK
3133 { echo "$as_me:$LINENO: result: no" >&5
3134echo "${ECHO_T}no" >&6; }
8106cdd5 3135fi
8106cdd5 3136
7a197a62
AK
3137 if test "x$ac_ct_RANLIB" = x; then
3138 RANLIB=":"
3139 else
3140 case $cross_compiling:$ac_tool_warned in
3141yes:)
3142{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3143whose name does not start with the host triplet. If you think this
3144configuration is useful to you, please write to autoconf@gnu.org." >&5
3145echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3146whose name does not start with the host triplet. If you think this
3147configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3148ac_tool_warned=yes ;;
3149esac
3150 RANLIB=$ac_ct_RANLIB
3151 fi
80992638 3152else
ad6254c5 3153 RANLIB="$ac_cv_prog_RANLIB"
80992638 3154fi
795ca3e5 3155
8a2fc586
AK
3156# Extract the first word of "cflow", so it can be a program name with args.
3157set dummy cflow; ac_word=$2
7a197a62
AK
3158{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8a2fc586
AK
3160if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3162else
3163 case $CFLOW_CMD in
3164 [\\/]* | ?:[\\/]*)
3165 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3166 ;;
3167 *)
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169for as_dir in $PATH
3170do
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
7a197a62 3174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8a2fc586
AK
3175 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
3176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 break 2
3178 fi
3179done
3180done
7a197a62 3181IFS=$as_save_IFS
8a2fc586
AK
3182
3183 ;;
3184esac
3185fi
3186CFLOW_CMD=$ac_cv_path_CFLOW_CMD
8a2fc586 3187if test -n "$CFLOW_CMD"; then
7a197a62
AK
3188 { echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3189echo "${ECHO_T}$CFLOW_CMD" >&6; }
8a2fc586 3190else
7a197a62
AK
3191 { echo "$as_me:$LINENO: result: no" >&5
3192echo "${ECHO_T}no" >&6; }
8a2fc586
AK
3193fi
3194
7a197a62 3195
8a2fc586
AK
3196# Extract the first word of "cscope", so it can be a program name with args.
3197set dummy cscope; ac_word=$2
7a197a62
AK
3198{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8a2fc586
AK
3200if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3202else
3203 case $CSCOPE_CMD in
3204 [\\/]* | ?:[\\/]*)
3205 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
3206 ;;
3207 *)
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209for as_dir in $PATH
3210do
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
7a197a62 3214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8a2fc586
AK
3215 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
3216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 break 2
3218 fi
3219done
3220done
7a197a62 3221IFS=$as_save_IFS
8a2fc586
AK
3222
3223 ;;
3224esac
3225fi
3226CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
8a2fc586 3227if test -n "$CSCOPE_CMD"; then
7a197a62
AK
3228 { echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3229echo "${ECHO_T}$CSCOPE_CMD" >&6; }
8a2fc586 3230else
7a197a62
AK
3231 { echo "$as_me:$LINENO: result: no" >&5
3232echo "${ECHO_T}no" >&6; }
8a2fc586
AK
3233fi
3234
795ca3e5 3235
7a197a62 3236
ad6254c5
AK
3237################################################################################
3238
3239
3240
3241
3242
3243
3244ac_header_dirent=no
3245for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3246 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7a197a62
AK
3247{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3248echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
3249if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5 3250 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 3251else
ad6254c5 3252 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3253/* confdefs.h. */
3254_ACEOF
3255cat confdefs.h >>conftest.$ac_ext
3256cat >>conftest.$ac_ext <<_ACEOF
3257/* end confdefs.h. */
3258#include <sys/types.h>
3259#include <$ac_hdr>
3260
3261int
3262main ()
3263{
3264if ((DIR *) 0)
3265return 0;
3266 ;
3267 return 0;
3268}
3269_ACEOF
3270rm -f conftest.$ac_objext
7a197a62
AK
3271if { (ac_try="$ac_compile"
3272case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275esac
3276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3278 ac_status=$?
8a2fc586
AK
3279 grep -v '^ *+' conftest.er1 >conftest.err
3280 rm -f conftest.er1
3281 cat conftest.err >&5
ad6254c5 3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
3283 (exit $ac_status); } && {
3284 test -z "$ac_c_werror_flag" ||
3285 test ! -s conftest.err
3286 } && test -s conftest.$ac_objext; then
ad6254c5 3287 eval "$as_ac_Header=yes"
8106cdd5 3288else
ad6254c5
AK
3289 echo "$as_me: failed program was:" >&5
3290sed 's/^/| /' conftest.$ac_ext >&5
3291
7a197a62 3292 eval "$as_ac_Header=no"
795ca3e5 3293fi
7a197a62
AK
3294
3295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 3296fi
7a197a62
AK
3297ac_res=`eval echo '${'$as_ac_Header'}'`
3298 { echo "$as_me:$LINENO: result: $ac_res" >&5
3299echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
3300if test `eval echo '${'$as_ac_Header'}'` = yes; then
3301 cat >>confdefs.h <<_ACEOF
3302#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3303_ACEOF
3304
3305ac_header_dirent=$ac_hdr; break
795ca3e5 3306fi
8106cdd5 3307
ad6254c5
AK
3308done
3309# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3310if test $ac_header_dirent = dirent.h; then
7a197a62
AK
3311 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3312echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
ad6254c5
AK
3313if test "${ac_cv_search_opendir+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3315else
ad6254c5 3316 ac_func_search_save_LIBS=$LIBS
ad6254c5 3317cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3318/* confdefs.h. */
3319_ACEOF
3320cat confdefs.h >>conftest.$ac_ext
3321cat >>conftest.$ac_ext <<_ACEOF
3322/* end confdefs.h. */
3323
7a197a62
AK
3324/* Override any GCC internal prototype to avoid an error.
3325 Use char because int might match the return type of a GCC
3326 builtin and then its argument prototype would still apply. */
ad6254c5
AK
3327#ifdef __cplusplus
3328extern "C"
3329#endif
ad6254c5
AK
3330char opendir ();
3331int
3332main ()
3333{
7a197a62 3334return opendir ();
ad6254c5
AK
3335 ;
3336 return 0;
3337}
3338_ACEOF
7a197a62
AK
3339for ac_lib in '' dir; do
3340 if test -z "$ac_lib"; then
3341 ac_res="none required"
3342 else
3343 ac_res=-l$ac_lib
3344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3345 fi
3346 rm -f conftest.$ac_objext conftest$ac_exeext
3347if { (ac_try="$ac_link"
3348case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3351esac
3352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353 (eval "$ac_link") 2>conftest.er1
ad6254c5 3354 ac_status=$?
8a2fc586
AK
3355 grep -v '^ *+' conftest.er1 >conftest.err
3356 rm -f conftest.er1
3357 cat conftest.err >&5
ad6254c5 3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
3359 (exit $ac_status); } && {
3360 test -z "$ac_c_werror_flag" ||
3361 test ! -s conftest.err
3362 } && test -s conftest$ac_exeext &&
3363 $as_test_x conftest$ac_exeext; then
3364 ac_cv_search_opendir=$ac_res
795ca3e5 3365else
ad6254c5
AK
3366 echo "$as_me: failed program was:" >&5
3367sed 's/^/| /' conftest.$ac_ext >&5
3368
795ca3e5 3369
7a197a62 3370fi
795ca3e5 3371
7a197a62
AK
3372rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3373 conftest$ac_exeext
3374 if test "${ac_cv_search_opendir+set}" = set; then
3375 break
795ca3e5 3376fi
7a197a62
AK
3377done
3378if test "${ac_cv_search_opendir+set}" = set; then
3379 :
3380else
3381 ac_cv_search_opendir=no
795ca3e5 3382fi
7a197a62 3383rm conftest.$ac_ext
ad6254c5
AK
3384LIBS=$ac_func_search_save_LIBS
3385fi
7a197a62
AK
3386{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3387echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
3388ac_res=$ac_cv_search_opendir
3389if test "$ac_res" != no; then
3390 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
795ca3e5
AK
3391
3392fi
3393
795ca3e5 3394else
7a197a62
AK
3395 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3396echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
ad6254c5
AK
3397if test "${ac_cv_search_opendir+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399else
3400 ac_func_search_save_LIBS=$LIBS
ad6254c5 3401cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3402/* confdefs.h. */
3403_ACEOF
3404cat confdefs.h >>conftest.$ac_ext
3405cat >>conftest.$ac_ext <<_ACEOF
3406/* end confdefs.h. */
80992638 3407
7a197a62
AK
3408/* Override any GCC internal prototype to avoid an error.
3409 Use char because int might match the return type of a GCC
3410 builtin and then its argument prototype would still apply. */
ad6254c5
AK
3411#ifdef __cplusplus
3412extern "C"
3413#endif
ad6254c5
AK
3414char opendir ();
3415int
3416main ()
3417{
7a197a62 3418return opendir ();
ad6254c5
AK
3419 ;
3420 return 0;
3421}
3422_ACEOF
7a197a62
AK
3423for ac_lib in '' x; do
3424 if test -z "$ac_lib"; then
3425 ac_res="none required"
3426 else
3427 ac_res=-l$ac_lib
3428 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3429 fi
3430 rm -f conftest.$ac_objext conftest$ac_exeext
3431if { (ac_try="$ac_link"
3432case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3435esac
3436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437 (eval "$ac_link") 2>conftest.er1
ad6254c5 3438 ac_status=$?
8a2fc586
AK
3439 grep -v '^ *+' conftest.er1 >conftest.err
3440 rm -f conftest.er1
3441 cat conftest.err >&5
ad6254c5 3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
3443 (exit $ac_status); } && {
3444 test -z "$ac_c_werror_flag" ||
3445 test ! -s conftest.err
3446 } && test -s conftest$ac_exeext &&
3447 $as_test_x conftest$ac_exeext; then
3448 ac_cv_search_opendir=$ac_res
795ca3e5 3449else
ad6254c5
AK
3450 echo "$as_me: failed program was:" >&5
3451sed 's/^/| /' conftest.$ac_ext >&5
3452
ad6254c5 3453
7a197a62 3454fi
80992638 3455
7a197a62
AK
3456rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3457 conftest$ac_exeext
3458 if test "${ac_cv_search_opendir+set}" = set; then
3459 break
795ca3e5 3460fi
7a197a62
AK
3461done
3462if test "${ac_cv_search_opendir+set}" = set; then
3463 :
3464else
3465 ac_cv_search_opendir=no
ad6254c5 3466fi
7a197a62 3467rm conftest.$ac_ext
ad6254c5 3468LIBS=$ac_func_search_save_LIBS
795ca3e5 3469fi
7a197a62
AK
3470{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3471echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
3472ac_res=$ac_cv_search_opendir
3473if test "$ac_res" != no; then
3474 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8106cdd5 3475
ad6254c5 3476fi
8106cdd5 3477
795ca3e5 3478fi
8106cdd5 3479
ad6254c5
AK
3480ac_ext=c
3481ac_cpp='$CPP $CPPFLAGS'
3482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3484ac_compiler_gnu=$ac_cv_c_compiler_gnu
7a197a62
AK
3485{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3486echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
ad6254c5
AK
3487# On Suns, sometimes $CPP names a directory.
3488if test -n "$CPP" && test -d "$CPP"; then
3489 CPP=
3490fi
3491if test -z "$CPP"; then
3492 if test "${ac_cv_prog_CPP+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3494else
3495 # Double quotes because CPP needs to be expanded
3496 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3497 do
3498 ac_preproc_ok=false
3499for ac_c_preproc_warn_flag in '' yes
8106cdd5 3500do
ad6254c5
AK
3501 # Use a header file that comes with gcc, so configuring glibc
3502 # with a fresh cross-compiler works.
3503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3504 # <limits.h> exists even on freestanding compilers.
3505 # On the NeXT, cc -E runs the code through the compiler's parser,
3506 # not just through cpp. "Syntax error" is here to catch this case.
3507 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3508/* confdefs.h. */
3509_ACEOF
3510cat confdefs.h >>conftest.$ac_ext
3511cat >>conftest.$ac_ext <<_ACEOF
3512/* end confdefs.h. */
3513#ifdef __STDC__
3514# include <limits.h>
3515#else
3516# include <assert.h>
3517#endif
8a2fc586 3518 Syntax error
ad6254c5 3519_ACEOF
7a197a62
AK
3520if { (ac_try="$ac_cpp conftest.$ac_ext"
3521case "(($ac_try" in
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3524esac
3525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
3527 ac_status=$?
3528 grep -v '^ *+' conftest.er1 >conftest.err
3529 rm -f conftest.er1
3530 cat conftest.err >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
3532 (exit $ac_status); } >/dev/null && {
3533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3534 test ! -s conftest.err
3535 }; then
ad6254c5
AK
3536 :
3537else
3538 echo "$as_me: failed program was:" >&5
3539sed 's/^/| /' conftest.$ac_ext >&5
3540
3541 # Broken: fails on valid input.
3542continue
3543fi
7a197a62 3544
ad6254c5
AK
3545rm -f conftest.err conftest.$ac_ext
3546
7a197a62 3547 # OK, works on sane cases. Now check whether nonexistent headers
ad6254c5
AK
3548 # can be detected and how.
3549 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3550/* confdefs.h. */
3551_ACEOF
3552cat confdefs.h >>conftest.$ac_ext
3553cat >>conftest.$ac_ext <<_ACEOF
3554/* end confdefs.h. */
3555#include <ac_nonexistent.h>
3556_ACEOF
7a197a62
AK
3557if { (ac_try="$ac_cpp conftest.$ac_ext"
3558case "(($ac_try" in
3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3561esac
3562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
3564 ac_status=$?
3565 grep -v '^ *+' conftest.er1 >conftest.err
3566 rm -f conftest.er1
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
3569 (exit $ac_status); } >/dev/null && {
3570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3571 test ! -s conftest.err
3572 }; then
ad6254c5
AK
3573 # Broken: success on invalid input.
3574continue
80992638 3575else
ad6254c5
AK
3576 echo "$as_me: failed program was:" >&5
3577sed 's/^/| /' conftest.$ac_ext >&5
3578
3579 # Passes both tests.
3580ac_preproc_ok=:
3581break
795ca3e5 3582fi
7a197a62 3583
ad6254c5
AK
3584rm -f conftest.err conftest.$ac_ext
3585
795ca3e5 3586done
ad6254c5
AK
3587# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3588rm -f conftest.err conftest.$ac_ext
3589if $ac_preproc_ok; then
3590 break
3591fi
795ca3e5 3592
ad6254c5
AK
3593 done
3594 ac_cv_prog_CPP=$CPP
795ca3e5 3595
ad6254c5
AK
3596fi
3597 CPP=$ac_cv_prog_CPP
795ca3e5 3598else
ad6254c5 3599 ac_cv_prog_CPP=$CPP
795ca3e5 3600fi
7a197a62
AK
3601{ echo "$as_me:$LINENO: result: $CPP" >&5
3602echo "${ECHO_T}$CPP" >&6; }
ad6254c5
AK
3603ac_preproc_ok=false
3604for ac_c_preproc_warn_flag in '' yes
3605do
3606 # Use a header file that comes with gcc, so configuring glibc
3607 # with a fresh cross-compiler works.
3608 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3609 # <limits.h> exists even on freestanding compilers.
3610 # On the NeXT, cc -E runs the code through the compiler's parser,
3611 # not just through cpp. "Syntax error" is here to catch this case.
3612 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3613/* confdefs.h. */
3614_ACEOF
3615cat confdefs.h >>conftest.$ac_ext
3616cat >>conftest.$ac_ext <<_ACEOF
3617/* end confdefs.h. */
3618#ifdef __STDC__
3619# include <limits.h>
3620#else
3621# include <assert.h>
3622#endif
8a2fc586 3623 Syntax error
ad6254c5 3624_ACEOF
7a197a62
AK
3625if { (ac_try="$ac_cpp conftest.$ac_ext"
3626case "(($ac_try" in
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3629esac
3630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
3632 ac_status=$?
3633 grep -v '^ *+' conftest.er1 >conftest.err
3634 rm -f conftest.er1
3635 cat conftest.err >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
3637 (exit $ac_status); } >/dev/null && {
3638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3639 test ! -s conftest.err
3640 }; then
ad6254c5
AK
3641 :
3642else
3643 echo "$as_me: failed program was:" >&5
3644sed 's/^/| /' conftest.$ac_ext >&5
3645
3646 # Broken: fails on valid input.
3647continue
3648fi
7a197a62 3649
ad6254c5
AK
3650rm -f conftest.err conftest.$ac_ext
3651
7a197a62 3652 # OK, works on sane cases. Now check whether nonexistent headers
ad6254c5
AK
3653 # can be detected and how.
3654 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3655/* confdefs.h. */
3656_ACEOF
3657cat confdefs.h >>conftest.$ac_ext
3658cat >>conftest.$ac_ext <<_ACEOF
3659/* end confdefs.h. */
3660#include <ac_nonexistent.h>
3661_ACEOF
7a197a62
AK
3662if { (ac_try="$ac_cpp conftest.$ac_ext"
3663case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3666esac
3667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
3669 ac_status=$?
3670 grep -v '^ *+' conftest.er1 >conftest.err
3671 rm -f conftest.er1
3672 cat conftest.err >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
3674 (exit $ac_status); } >/dev/null && {
3675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3676 test ! -s conftest.err
3677 }; then
ad6254c5
AK
3678 # Broken: success on invalid input.
3679continue
3680else
3681 echo "$as_me: failed program was:" >&5
3682sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 3683
ad6254c5
AK
3684 # Passes both tests.
3685ac_preproc_ok=:
3686break
795ca3e5 3687fi
7a197a62 3688
ad6254c5 3689rm -f conftest.err conftest.$ac_ext
795ca3e5 3690
ad6254c5
AK
3691done
3692# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3693rm -f conftest.err conftest.$ac_ext
3694if $ac_preproc_ok; then
3695 :
795ca3e5 3696else
ad6254c5
AK
3697 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3698See \`config.log' for more details." >&5
3699echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3700See \`config.log' for more details." >&2;}
3701 { (exit 1); exit 1; }; }
795ca3e5 3702fi
795ca3e5 3703
ad6254c5
AK
3704ac_ext=c
3705ac_cpp='$CPP $CPPFLAGS'
3706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709
3710
7a197a62
AK
3711{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3712echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3713if test "${ac_cv_path_GREP+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3715else
3716 # Extract the first word of "grep ggrep" to use in msg output
3717if test -z "$GREP"; then
3718set dummy grep ggrep; ac_prog_name=$2
3719if test "${ac_cv_path_GREP+set}" = set; then
ad6254c5
AK
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721else
7a197a62
AK
3722 ac_path_GREP_found=false
3723# Loop through the user's path and test for each of PROGNAME-LIST
3724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3726do
3727 IFS=$as_save_IFS
3728 test -z "$as_dir" && as_dir=.
3729 for ac_prog in grep ggrep; do
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3732 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3733 # Check for GNU ac_path_GREP and select it if it is found.
3734 # Check for GNU $ac_path_GREP
3735case `"$ac_path_GREP" --version 2>&1` in
3736*GNU*)
3737 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3738*)
3739 ac_count=0
3740 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3741 while :
3742 do
3743 cat "conftest.in" "conftest.in" >"conftest.tmp"
3744 mv "conftest.tmp" "conftest.in"
3745 cp "conftest.in" "conftest.nl"
3746 echo 'GREP' >> "conftest.nl"
3747 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3748 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3749 ac_count=`expr $ac_count + 1`
3750 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3751 # Best one so far, save it but keep looking for a better one
3752 ac_cv_path_GREP="$ac_path_GREP"
3753 ac_path_GREP_max=$ac_count
ad6254c5 3754 fi
7a197a62
AK
3755 # 10*(2^10) chars as input seems more than enough
3756 test $ac_count -gt 10 && break
3757 done
3758 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3759esac
80992638 3760
795ca3e5 3761
7a197a62
AK
3762 $ac_path_GREP_found && break 3
3763 done
3764done
ad6254c5 3765
7a197a62
AK
3766done
3767IFS=$as_save_IFS
ad6254c5 3768
ad6254c5 3769
795ca3e5 3770fi
ad6254c5 3771
7a197a62
AK
3772GREP="$ac_cv_path_GREP"
3773if test -z "$GREP"; then
3774 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3775echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3776 { (exit 1); exit 1; }; }
3777fi
3778
3779else
3780 ac_cv_path_GREP=$GREP
3781fi
3782
3783
3784fi
3785{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3786echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3787 GREP="$ac_cv_path_GREP"
3788
3789
3790{ echo "$as_me:$LINENO: checking for egrep" >&5
3791echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3792if test "${ac_cv_path_EGREP+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794else
3795 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3796 then ac_cv_path_EGREP="$GREP -E"
3797 else
3798 # Extract the first word of "egrep" to use in msg output
3799if test -z "$EGREP"; then
3800set dummy egrep; ac_prog_name=$2
3801if test "${ac_cv_path_EGREP+set}" = set; then
3802 echo $ECHO_N "(cached) $ECHO_C" >&6
3803else
3804 ac_path_EGREP_found=false
3805# Loop through the user's path and test for each of PROGNAME-LIST
3806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3808do
3809 IFS=$as_save_IFS
3810 test -z "$as_dir" && as_dir=.
3811 for ac_prog in egrep; do
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3814 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3815 # Check for GNU ac_path_EGREP and select it if it is found.
3816 # Check for GNU $ac_path_EGREP
3817case `"$ac_path_EGREP" --version 2>&1` in
3818*GNU*)
3819 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3820*)
3821 ac_count=0
3822 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3823 while :
3824 do
3825 cat "conftest.in" "conftest.in" >"conftest.tmp"
3826 mv "conftest.tmp" "conftest.in"
3827 cp "conftest.in" "conftest.nl"
3828 echo 'EGREP' >> "conftest.nl"
3829 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3830 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3831 ac_count=`expr $ac_count + 1`
3832 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3833 # Best one so far, save it but keep looking for a better one
3834 ac_cv_path_EGREP="$ac_path_EGREP"
3835 ac_path_EGREP_max=$ac_count
3836 fi
3837 # 10*(2^10) chars as input seems more than enough
3838 test $ac_count -gt 10 && break
3839 done
3840 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3841esac
3842
3843
3844 $ac_path_EGREP_found && break 3
3845 done
3846done
3847
3848done
3849IFS=$as_save_IFS
3850
3851
3852fi
3853
3854EGREP="$ac_cv_path_EGREP"
3855if test -z "$EGREP"; then
3856 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3857echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3858 { (exit 1); exit 1; }; }
3859fi
3860
3861else
3862 ac_cv_path_EGREP=$EGREP
3863fi
3864
3865
3866 fi
3867fi
3868{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3869echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3870 EGREP="$ac_cv_path_EGREP"
3871
3872
3873{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3874echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3875if test "${ac_cv_header_stdc+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3877else
3878 cat >conftest.$ac_ext <<_ACEOF
3879/* confdefs.h. */
3880_ACEOF
3881cat confdefs.h >>conftest.$ac_ext
3882cat >>conftest.$ac_ext <<_ACEOF
3883/* end confdefs.h. */
3884#include <stdlib.h>
3885#include <stdarg.h>
3886#include <string.h>
3887#include <float.h>
3888
3889int
3890main ()
3891{
3892
3893 ;
3894 return 0;
3895}
3896_ACEOF
3897rm -f conftest.$ac_objext
3898if { (ac_try="$ac_compile"
3899case "(($ac_try" in
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3902esac
3903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3904 (eval "$ac_compile") 2>conftest.er1
3905 ac_status=$?
3906 grep -v '^ *+' conftest.er1 >conftest.err
3907 rm -f conftest.er1
3908 cat conftest.err >&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } && {
3911 test -z "$ac_c_werror_flag" ||
3912 test ! -s conftest.err
3913 } && test -s conftest.$ac_objext; then
3914 ac_cv_header_stdc=yes
3915else
3916 echo "$as_me: failed program was:" >&5
3917sed 's/^/| /' conftest.$ac_ext >&5
3918
3919 ac_cv_header_stdc=no
3920fi
3921
3922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923
3924if test $ac_cv_header_stdc = yes; then
3925 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 3926 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3927/* confdefs.h. */
3928_ACEOF
3929cat confdefs.h >>conftest.$ac_ext
3930cat >>conftest.$ac_ext <<_ACEOF
3931/* end confdefs.h. */
3932#include <string.h>
8106cdd5 3933
ad6254c5
AK
3934_ACEOF
3935if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3936 $EGREP "memchr" >/dev/null 2>&1; then
3937 :
3938else
3939 ac_cv_header_stdc=no
80992638 3940fi
ad6254c5 3941rm -f conftest*
795ca3e5
AK
3942
3943fi
3944
ad6254c5
AK
3945if test $ac_cv_header_stdc = yes; then
3946 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3947 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3948/* confdefs.h. */
3949_ACEOF
3950cat confdefs.h >>conftest.$ac_ext
3951cat >>conftest.$ac_ext <<_ACEOF
3952/* end confdefs.h. */
80992638 3953#include <stdlib.h>
ad6254c5
AK
3954
3955_ACEOF
80992638 3956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
3957 $EGREP "free" >/dev/null 2>&1; then
3958 :
795ca3e5 3959else
ad6254c5 3960 ac_cv_header_stdc=no
795ca3e5 3961fi
80992638 3962rm -f conftest*
8106cdd5 3963
795ca3e5
AK
3964fi
3965
ad6254c5
AK
3966if test $ac_cv_header_stdc = yes; then
3967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3968 if test "$cross_compiling" = yes; then
3969 :
795ca3e5 3970else
ad6254c5 3971 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3972/* confdefs.h. */
3973_ACEOF
3974cat confdefs.h >>conftest.$ac_ext
3975cat >>conftest.$ac_ext <<_ACEOF
3976/* end confdefs.h. */
3977#include <ctype.h>
7a197a62 3978#include <stdlib.h>
ad6254c5
AK
3979#if ((' ' & 0x0FF) == 0x020)
3980# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3981# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3982#else
3983# define ISLOWER(c) \
8a2fc586
AK
3984 (('a' <= (c) && (c) <= 'i') \
3985 || ('j' <= (c) && (c) <= 'r') \
3986 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 3987# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 3988#endif
ad6254c5
AK
3989
3990#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3991int
3992main ()
3993{
3994 int i;
3995 for (i = 0; i < 256; i++)
3996 if (XOR (islower (i), ISLOWER (i))
8a2fc586 3997 || toupper (i) != TOUPPER (i))
7a197a62
AK
3998 return 2;
3999 return 0;
ad6254c5
AK
4000}
4001_ACEOF
4002rm -f conftest$ac_exeext
7a197a62
AK
4003if { (ac_try="$ac_link"
4004case "(($ac_try" in
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4007esac
4008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4009 (eval "$ac_link") 2>&5
ad6254c5
AK
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4013 { (case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016esac
4017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_try") 2>&5
ad6254c5
AK
4019 ac_status=$?
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; }; then
4022 :
795ca3e5 4023else
ad6254c5
AK
4024 echo "$as_me: program exited with status $ac_status" >&5
4025echo "$as_me: failed program was:" >&5
4026sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4027
ad6254c5
AK
4028( exit $ac_status )
4029ac_cv_header_stdc=no
80992638 4030fi
7a197a62 4031rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4032fi
7a197a62
AK
4033
4034
ad6254c5
AK
4035fi
4036fi
7a197a62
AK
4037{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4038echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4039if test $ac_cv_header_stdc = yes; then
4040
4041cat >>confdefs.h <<\_ACEOF
4042#define STDC_HEADERS 1
4043_ACEOF
795ca3e5
AK
4044
4045fi
4046
7a197a62
AK
4047{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4048echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
ad6254c5
AK
4049if test "${ac_cv_header_sys_wait_h+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 4051else
ad6254c5 4052 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4053/* confdefs.h. */
4054_ACEOF
4055cat confdefs.h >>conftest.$ac_ext
4056cat >>conftest.$ac_ext <<_ACEOF
4057/* end confdefs.h. */
80992638 4058#include <sys/types.h>
ad6254c5
AK
4059#include <sys/wait.h>
4060#ifndef WEXITSTATUS
7a197a62 4061# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4062#endif
4063#ifndef WIFEXITED
4064# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4065#endif
4066
4067int
4068main ()
4069{
4070 int s;
4071 wait (&s);
4072 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4073 ;
4074 return 0;
4075}
4076_ACEOF
4077rm -f conftest.$ac_objext
7a197a62
AK
4078if { (ac_try="$ac_compile"
4079case "(($ac_try" in
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4082esac
4083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4085 ac_status=$?
8a2fc586
AK
4086 grep -v '^ *+' conftest.er1 >conftest.err
4087 rm -f conftest.er1
4088 cat conftest.err >&5
ad6254c5 4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
4090 (exit $ac_status); } && {
4091 test -z "$ac_c_werror_flag" ||
4092 test ! -s conftest.err
4093 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4094 ac_cv_header_sys_wait_h=yes
4095else
4096 echo "$as_me: failed program was:" >&5
4097sed 's/^/| /' conftest.$ac_ext >&5
4098
7a197a62 4099 ac_cv_header_sys_wait_h=no
8106cdd5 4100fi
7a197a62
AK
4101
4102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4103fi
7a197a62
AK
4104{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4105echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4106if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4107
ad6254c5
AK
4108cat >>confdefs.h <<\_ACEOF
4109#define HAVE_SYS_WAIT_H 1
4110_ACEOF
795ca3e5
AK
4111
4112fi
4113
7a197a62
AK
4114{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4115echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
ad6254c5
AK
4116if test "${ac_cv_header_time+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 4118else
ad6254c5 4119 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4120/* confdefs.h. */
4121_ACEOF
4122cat confdefs.h >>conftest.$ac_ext
4123cat >>conftest.$ac_ext <<_ACEOF
4124/* end confdefs.h. */
795ca3e5
AK
4125#include <sys/types.h>
4126#include <sys/time.h>
4127#include <time.h>
ad6254c5
AK
4128
4129int
4130main ()
4131{
4132if ((struct tm *) 0)
4133return 0;
4134 ;
4135 return 0;
4136}
4137_ACEOF
4138rm -f conftest.$ac_objext
7a197a62
AK
4139if { (ac_try="$ac_compile"
4140case "(($ac_try" in
4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4143esac
4144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4146 ac_status=$?
8a2fc586
AK
4147 grep -v '^ *+' conftest.er1 >conftest.err
4148 rm -f conftest.er1
4149 cat conftest.err >&5
ad6254c5 4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
4151 (exit $ac_status); } && {
4152 test -z "$ac_c_werror_flag" ||
4153 test ! -s conftest.err
4154 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4155 ac_cv_header_time=yes
4156else
ad6254c5
AK
4157 echo "$as_me: failed program was:" >&5
4158sed 's/^/| /' conftest.$ac_ext >&5
4159
7a197a62 4160 ac_cv_header_time=no
795ca3e5 4161fi
7a197a62
AK
4162
4163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4164fi
7a197a62
AK
4165{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4166echo "${ECHO_T}$ac_cv_header_time" >&6; }
80992638 4167if test $ac_cv_header_time = yes; then
ad6254c5
AK
4168
4169cat >>confdefs.h <<\_ACEOF
795ca3e5 4170#define TIME_WITH_SYS_TIME 1
ad6254c5 4171_ACEOF
b896caa1 4172
8106cdd5 4173fi
b896caa1 4174
b896caa1 4175
ad6254c5 4176# On IRIX 5.3, sys/types and inttypes.h are conflicting.
b896caa1 4177
b896caa1
AK
4178
4179
795ca3e5 4180
8106cdd5 4181
80992638 4182
795ca3e5 4183
a38df97f 4184
80992638 4185
ad6254c5 4186for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8a2fc586 4187 inttypes.h stdint.h unistd.h
ad6254c5
AK
4188do
4189as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62
AK
4190{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4192if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4194else
4195 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4196/* confdefs.h. */
4197_ACEOF
4198cat confdefs.h >>conftest.$ac_ext
4199cat >>conftest.$ac_ext <<_ACEOF
4200/* end confdefs.h. */
4201$ac_includes_default
4202
4203#include <$ac_header>
4204_ACEOF
4205rm -f conftest.$ac_objext
7a197a62
AK
4206if { (ac_try="$ac_compile"
4207case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210esac
4211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4213 ac_status=$?
8a2fc586
AK
4214 grep -v '^ *+' conftest.er1 >conftest.err
4215 rm -f conftest.er1
4216 cat conftest.err >&5
ad6254c5 4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
4218 (exit $ac_status); } && {
4219 test -z "$ac_c_werror_flag" ||
4220 test ! -s conftest.err
4221 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4222 eval "$as_ac_Header=yes"
4223else
4224 echo "$as_me: failed program was:" >&5
4225sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4226
7a197a62 4227 eval "$as_ac_Header=no"
ad6254c5 4228fi
7a197a62
AK
4229
4230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a38df97f 4231fi
7a197a62
AK
4232ac_res=`eval echo '${'$as_ac_Header'}'`
4233 { echo "$as_me:$LINENO: result: $ac_res" >&5
4234echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4235if test `eval echo '${'$as_ac_Header'}'` = yes; then
4236 cat >>confdefs.h <<_ACEOF
4237#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4238_ACEOF
a38df97f 4239
80992638
AK
4240fi
4241
ad6254c5
AK
4242done
4243
7d1552c9 4244
7d1552c9 4245
80992638 4246
5a52dca9 4247
5a52dca9 4248
ad6254c5
AK
4249
4250
4251
4252
4253
4254for 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
4255do
4256as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62
AK
4257if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4260if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4262fi
7a197a62
AK
4263ac_res=`eval echo '${'$as_ac_Header'}'`
4264 { echo "$as_me:$LINENO: result: $ac_res" >&5
4265echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4266else
4267 # Is the header compilable?
7a197a62
AK
4268{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4269echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4270cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4271/* confdefs.h. */
4272_ACEOF
4273cat confdefs.h >>conftest.$ac_ext
4274cat >>conftest.$ac_ext <<_ACEOF
4275/* end confdefs.h. */
4276$ac_includes_default
4277#include <$ac_header>
4278_ACEOF
4279rm -f conftest.$ac_objext
7a197a62
AK
4280if { (ac_try="$ac_compile"
4281case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4284esac
4285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4287 ac_status=$?
8a2fc586
AK
4288 grep -v '^ *+' conftest.er1 >conftest.err
4289 rm -f conftest.er1
4290 cat conftest.err >&5
ad6254c5 4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
4292 (exit $ac_status); } && {
4293 test -z "$ac_c_werror_flag" ||
4294 test ! -s conftest.err
4295 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4296 ac_header_compiler=yes
4297else
4298 echo "$as_me: failed program was:" >&5
4299sed 's/^/| /' conftest.$ac_ext >&5
4300
7a197a62 4301 ac_header_compiler=no
ad6254c5 4302fi
7a197a62
AK
4303
4304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4306echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4307
4308# Is the header present?
7a197a62
AK
4309{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4310echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4311cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4312/* confdefs.h. */
4313_ACEOF
4314cat confdefs.h >>conftest.$ac_ext
4315cat >>conftest.$ac_ext <<_ACEOF
4316/* end confdefs.h. */
4317#include <$ac_header>
4318_ACEOF
7a197a62
AK
4319if { (ac_try="$ac_cpp conftest.$ac_ext"
4320case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4323esac
4324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4326 ac_status=$?
4327 grep -v '^ *+' conftest.er1 >conftest.err
4328 rm -f conftest.er1
4329 cat conftest.err >&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
4331 (exit $ac_status); } >/dev/null && {
4332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4333 test ! -s conftest.err
4334 }; then
ad6254c5
AK
4335 ac_header_preproc=yes
4336else
4337 echo "$as_me: failed program was:" >&5
4338sed 's/^/| /' conftest.$ac_ext >&5
4339
4340 ac_header_preproc=no
4341fi
7a197a62 4342
ad6254c5 4343rm -f conftest.err conftest.$ac_ext
7a197a62
AK
4344{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4345echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
4346
4347# So? What about this header?
8a2fc586
AK
4348case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4349 yes:no: )
ad6254c5
AK
4350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4351echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
4352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4353echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4354 ac_header_preproc=yes
ad6254c5 4355 ;;
8a2fc586 4356 no:yes:* )
ad6254c5
AK
4357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4358echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
4359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4360echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4362echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4364echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
4365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4366echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
4367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4368echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4369
ad6254c5
AK
4370 ;;
4371esac
7a197a62
AK
4372{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4374if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4376else
8a2fc586 4377 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4378fi
7a197a62
AK
4379ac_res=`eval echo '${'$as_ac_Header'}'`
4380 { echo "$as_me:$LINENO: result: $ac_res" >&5
4381echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4382
4383fi
4384if test `eval echo '${'$as_ac_Header'}'` = yes; then
4385 cat >>confdefs.h <<_ACEOF
4386#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4387_ACEOF
b896caa1 4388
d8ac0fbc 4389else
ad6254c5
AK
4390 { { echo "$as_me:$LINENO: error: bailing out" >&5
4391echo "$as_me: error: bailing out" >&2;}
4392 { (exit 1); exit 1; }; }
80992638
AK
4393fi
4394
ad6254c5 4395done
d8ac0fbc 4396
d8ac0fbc 4397
d8ac0fbc 4398
80992638 4399
d3c8211f 4400
d3c8211f 4401
d3c8211f 4402
80992638 4403
4922197a 4404
4922197a 4405
ad6254c5
AK
4406
4407
4408
4409for 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
4410do
4411as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62
AK
4412if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4414echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4415if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4417fi
7a197a62
AK
4418ac_res=`eval echo '${'$as_ac_Header'}'`
4419 { echo "$as_me:$LINENO: result: $ac_res" >&5
4420echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4421else
4422 # Is the header compilable?
7a197a62
AK
4423{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4424echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4425cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4426/* confdefs.h. */
4427_ACEOF
4428cat confdefs.h >>conftest.$ac_ext
4429cat >>conftest.$ac_ext <<_ACEOF
4430/* end confdefs.h. */
4431$ac_includes_default
4432#include <$ac_header>
4433_ACEOF
4434rm -f conftest.$ac_objext
7a197a62
AK
4435if { (ac_try="$ac_compile"
4436case "(($ac_try" in
4437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4438 *) ac_try_echo=$ac_try;;
4439esac
4440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4441 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4442 ac_status=$?
8a2fc586
AK
4443 grep -v '^ *+' conftest.er1 >conftest.err
4444 rm -f conftest.er1
4445 cat conftest.err >&5
ad6254c5 4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
4447 (exit $ac_status); } && {
4448 test -z "$ac_c_werror_flag" ||
4449 test ! -s conftest.err
4450 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4451 ac_header_compiler=yes
4452else
4453 echo "$as_me: failed program was:" >&5
4454sed 's/^/| /' conftest.$ac_ext >&5
4455
7a197a62 4456 ac_header_compiler=no
ad6254c5 4457fi
7a197a62
AK
4458
4459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4460{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4461echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4462
4463# Is the header present?
7a197a62
AK
4464{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4465echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4466cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4467/* confdefs.h. */
4468_ACEOF
4469cat confdefs.h >>conftest.$ac_ext
4470cat >>conftest.$ac_ext <<_ACEOF
4471/* end confdefs.h. */
4472#include <$ac_header>
4473_ACEOF
7a197a62
AK
4474if { (ac_try="$ac_cpp conftest.$ac_ext"
4475case "(($ac_try" in
4476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477 *) ac_try_echo=$ac_try;;
4478esac
4479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4481 ac_status=$?
4482 grep -v '^ *+' conftest.er1 >conftest.err
4483 rm -f conftest.er1
4484 cat conftest.err >&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
4486 (exit $ac_status); } >/dev/null && {
4487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4488 test ! -s conftest.err
4489 }; then
ad6254c5
AK
4490 ac_header_preproc=yes
4491else
4492 echo "$as_me: failed program was:" >&5
4493sed 's/^/| /' conftest.$ac_ext >&5
4494
4495 ac_header_preproc=no
4496fi
7a197a62 4497
ad6254c5 4498rm -f conftest.err conftest.$ac_ext
7a197a62
AK
4499{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4500echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
4501
4502# So? What about this header?
8a2fc586
AK
4503case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4504 yes:no: )
ad6254c5
AK
4505 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4506echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
4507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4508echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4509 ac_header_preproc=yes
ad6254c5 4510 ;;
8a2fc586 4511 no:yes:* )
ad6254c5
AK
4512 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4513echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
4514 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4515echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4516 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4517echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4518 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4519echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
4520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4521echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
4522 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4523echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4524
ad6254c5
AK
4525 ;;
4526esac
7a197a62
AK
4527{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4529if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4531else
8a2fc586 4532 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 4533fi
7a197a62
AK
4534ac_res=`eval echo '${'$as_ac_Header'}'`
4535 { echo "$as_me:$LINENO: result: $ac_res" >&5
4536echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4537
4538fi
4539if test `eval echo '${'$as_ac_Header'}'` = yes; then
4540 cat >>confdefs.h <<_ACEOF
4541#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4542_ACEOF
4922197a 4543
4922197a 4544else
ad6254c5
AK
4545 { { echo "$as_me:$LINENO: error: bailing out" >&5
4546echo "$as_me: error: bailing out" >&2;}
4547 { (exit 1); exit 1; }; }
80992638
AK
4548fi
4549
ad6254c5 4550done
4922197a 4551
4922197a 4552
ad6254c5
AK
4553case "$host_os" in
4554 linux*)
4922197a 4555
ad6254c5
AK
4556
4557
4558for ac_header in asm/byteorder.h linux/fs.h malloc.h
4559do
4560as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62
AK
4561if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4564if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4566fi
7a197a62
AK
4567ac_res=`eval echo '${'$as_ac_Header'}'`
4568 { echo "$as_me:$LINENO: result: $ac_res" >&5
4569echo "${ECHO_T}$ac_res" >&6; }
795ca3e5 4570else
ad6254c5 4571 # Is the header compilable?
7a197a62
AK
4572{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4573echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4574cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4575/* confdefs.h. */
4576_ACEOF
4577cat confdefs.h >>conftest.$ac_ext
4578cat >>conftest.$ac_ext <<_ACEOF
4579/* end confdefs.h. */
4580$ac_includes_default
4581#include <$ac_header>
4582_ACEOF
4583rm -f conftest.$ac_objext
7a197a62
AK
4584if { (ac_try="$ac_compile"
4585case "(($ac_try" in
4586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587 *) ac_try_echo=$ac_try;;
4588esac
4589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4590 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4591 ac_status=$?
8a2fc586
AK
4592 grep -v '^ *+' conftest.er1 >conftest.err
4593 rm -f conftest.er1
4594 cat conftest.err >&5
ad6254c5 4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
4596 (exit $ac_status); } && {
4597 test -z "$ac_c_werror_flag" ||
4598 test ! -s conftest.err
4599 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4600 ac_header_compiler=yes
4601else
4602 echo "$as_me: failed program was:" >&5
4603sed 's/^/| /' conftest.$ac_ext >&5
4604
7a197a62 4605 ac_header_compiler=no
ad6254c5 4606fi
7a197a62
AK
4607
4608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4609{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4610echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4611
4612# Is the header present?
7a197a62
AK
4613{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4614echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4615cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4616/* confdefs.h. */
4617_ACEOF
4618cat confdefs.h >>conftest.$ac_ext
4619cat >>conftest.$ac_ext <<_ACEOF
4620/* end confdefs.h. */
4621#include <$ac_header>
4622_ACEOF
7a197a62
AK
4623if { (ac_try="$ac_cpp conftest.$ac_ext"
4624case "(($ac_try" in
4625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4626 *) ac_try_echo=$ac_try;;
4627esac
4628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4630 ac_status=$?
4631 grep -v '^ *+' conftest.er1 >conftest.err
4632 rm -f conftest.er1
4633 cat conftest.err >&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
4635 (exit $ac_status); } >/dev/null && {
4636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4637 test ! -s conftest.err
4638 }; then
ad6254c5
AK
4639 ac_header_preproc=yes
4640else
4641 echo "$as_me: failed program was:" >&5
4642sed 's/^/| /' conftest.$ac_ext >&5
4643
4644 ac_header_preproc=no
4645fi
7a197a62 4646
ad6254c5 4647rm -f conftest.err conftest.$ac_ext
7a197a62
AK
4648{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4649echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
4650
4651# So? What about this header?
8a2fc586
AK
4652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4653 yes:no: )
ad6254c5
AK
4654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4655echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
4656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4657echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4658 ac_header_preproc=yes
ad6254c5 4659 ;;
8a2fc586 4660 no:yes:* )
ad6254c5
AK
4661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4662echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
4663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4664echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4666echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4668echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
4669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4670echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
4671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4672echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4673
ad6254c5
AK
4674 ;;
4675esac
7a197a62
AK
4676{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4677echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4678if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4680else
8a2fc586 4681 eval "$as_ac_Header=\$ac_header_preproc"
80992638 4682fi
7a197a62
AK
4683ac_res=`eval echo '${'$as_ac_Header'}'`
4684 { echo "$as_me:$LINENO: result: $ac_res" >&5
4685echo "${ECHO_T}$ac_res" >&6; }
80992638 4686
ad6254c5
AK
4687fi
4688if test `eval echo '${'$as_ac_Header'}'` = yes; then
4689 cat >>confdefs.h <<_ACEOF
4690#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4691_ACEOF
795ca3e5 4692
795ca3e5 4693else
ad6254c5
AK
4694 { { echo "$as_me:$LINENO: error: bailing out" >&5
4695echo "$as_me: error: bailing out" >&2;}
4696 { (exit 1); exit 1; }; }
80992638
AK
4697fi
4698
ad6254c5
AK
4699done
4700 ;;
4701 darwin*)
4702
795ca3e5 4703
ad6254c5
AK
4704for ac_header in machine/endian.h sys/disk.h
4705do
4706as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62
AK
4707if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4710if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4712fi
7a197a62
AK
4713ac_res=`eval echo '${'$as_ac_Header'}'`
4714 { echo "$as_me:$LINENO: result: $ac_res" >&5
4715echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4716else
4717 # Is the header compilable?
7a197a62
AK
4718{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4719echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4720cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4721/* confdefs.h. */
4722_ACEOF
4723cat confdefs.h >>conftest.$ac_ext
4724cat >>conftest.$ac_ext <<_ACEOF
4725/* end confdefs.h. */
4726$ac_includes_default
4727#include <$ac_header>
4728_ACEOF
4729rm -f conftest.$ac_objext
7a197a62
AK
4730if { (ac_try="$ac_compile"
4731case "(($ac_try" in
4732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4733 *) ac_try_echo=$ac_try;;
4734esac
4735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4736 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4737 ac_status=$?
8a2fc586
AK
4738 grep -v '^ *+' conftest.er1 >conftest.err
4739 rm -f conftest.er1
4740 cat conftest.err >&5
ad6254c5 4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
4742 (exit $ac_status); } && {
4743 test -z "$ac_c_werror_flag" ||
4744 test ! -s conftest.err
4745 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4746 ac_header_compiler=yes
4747else
4748 echo "$as_me: failed program was:" >&5
4749sed 's/^/| /' conftest.$ac_ext >&5
4750
7a197a62 4751 ac_header_compiler=no
ad6254c5 4752fi
7a197a62
AK
4753
4754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4756echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4757
4758# Is the header present?
7a197a62
AK
4759{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4760echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4761cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4762/* confdefs.h. */
4763_ACEOF
4764cat confdefs.h >>conftest.$ac_ext
4765cat >>conftest.$ac_ext <<_ACEOF
4766/* end confdefs.h. */
4767#include <$ac_header>
4768_ACEOF
7a197a62
AK
4769if { (ac_try="$ac_cpp conftest.$ac_ext"
4770case "(($ac_try" in
4771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4772 *) ac_try_echo=$ac_try;;
4773esac
4774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4776 ac_status=$?
4777 grep -v '^ *+' conftest.er1 >conftest.err
4778 rm -f conftest.er1
4779 cat conftest.err >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
4781 (exit $ac_status); } >/dev/null && {
4782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4783 test ! -s conftest.err
4784 }; then
ad6254c5
AK
4785 ac_header_preproc=yes
4786else
4787 echo "$as_me: failed program was:" >&5
4788sed 's/^/| /' conftest.$ac_ext >&5
4789
4790 ac_header_preproc=no
4791fi
7a197a62 4792
ad6254c5 4793rm -f conftest.err conftest.$ac_ext
7a197a62
AK
4794{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4795echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
4796
4797# So? What about this header?
8a2fc586
AK
4798case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4799 yes:no: )
ad6254c5
AK
4800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4801echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
4802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4803echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4804 ac_header_preproc=yes
ad6254c5 4805 ;;
8a2fc586 4806 no:yes:* )
ad6254c5
AK
4807 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4808echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
4809 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4810echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4811 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4812echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4813 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4814echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
4815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4816echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
4817 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4818echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4819
ad6254c5
AK
4820 ;;
4821esac
7a197a62
AK
4822{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4824if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826else
8a2fc586 4827 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4828fi
7a197a62
AK
4829ac_res=`eval echo '${'$as_ac_Header'}'`
4830 { echo "$as_me:$LINENO: result: $ac_res" >&5
4831echo "${ECHO_T}$ac_res" >&6; }
b896caa1 4832
ad6254c5
AK
4833fi
4834if test `eval echo '${'$as_ac_Header'}'` = yes; then
4835 cat >>confdefs.h <<_ACEOF
4836#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4837_ACEOF
4838
4839else
4840 { { echo "$as_me:$LINENO: error: bailing out" >&5
4841echo "$as_me: error: bailing out" >&2;}
4842 { (exit 1); exit 1; }; }
80992638
AK
4843fi
4844
ad6254c5
AK
4845done
4846 ;;
4847esac
d3c8211f 4848
80992638 4849################################################################################
7a197a62
AK
4850{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4851echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
ad6254c5
AK
4852if test "${ac_cv_c_const+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
d3c8211f 4854else
ad6254c5 4855 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4856/* confdefs.h. */
4857_ACEOF
4858cat confdefs.h >>conftest.$ac_ext
4859cat >>conftest.$ac_ext <<_ACEOF
4860/* end confdefs.h. */
4861
4862int
4863main ()
4864{
4865/* FIXME: Include the comments suggested by Paul. */
4866#ifndef __cplusplus
4867 /* Ultrix mips cc rejects this. */
4868 typedef int charset[2];
7a197a62 4869 const charset cs;
ad6254c5 4870 /* SunOS 4.1.1 cc rejects this. */
7a197a62
AK
4871 char const *const *pcpcc;
4872 char **ppc;
ad6254c5
AK
4873 /* NEC SVR4.0.2 mips cc rejects this. */
4874 struct point {int x, y;};
4875 static struct point const zero = {0,0};
4876 /* AIX XL C 1.02.0.0 rejects this.
4877 It does not let you subtract one const X* pointer from another in
4878 an arm of an if-expression whose if-part is not a constant
4879 expression */
4880 const char *g = "string";
7a197a62 4881 pcpcc = &g + (g ? g-g : 0);
ad6254c5 4882 /* HPUX 7.0 cc rejects these. */
7a197a62
AK
4883 ++pcpcc;
4884 ppc = (char**) pcpcc;
4885 pcpcc = (char const *const *) ppc;
ad6254c5
AK
4886 { /* SCO 3.2v4 cc rejects this. */
4887 char *t;
4888 char const *s = 0 ? (char *) 0 : (char const *) 0;
4889
4890 *t++ = 0;
7a197a62 4891 if (s) return 0;
ad6254c5
AK
4892 }
4893 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4894 int x[] = {25, 17};
4895 const int *foo = &x[0];
4896 ++foo;
4897 }
4898 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4899 typedef const int *iptr;
4900 iptr p = 0;
4901 ++p;
4902 }
4903 { /* AIX XL C 1.02.0.0 rejects this saying
4904 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4905 struct s { int j; const int *ap[3]; };
4906 struct s *b; b->j = 5;
4907 }
4908 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4909 const int foo = 10;
7a197a62 4910 if (!foo) return 0;
ad6254c5 4911 }
7a197a62 4912 return !cs[0] && !zero.x;
ad6254c5
AK
4913#endif
4914
4915 ;
4916 return 0;
4917}
4918_ACEOF
4919rm -f conftest.$ac_objext
7a197a62
AK
4920if { (ac_try="$ac_compile"
4921case "(($ac_try" in
4922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4924esac
4925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4926 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4927 ac_status=$?
8a2fc586
AK
4928 grep -v '^ *+' conftest.er1 >conftest.err
4929 rm -f conftest.er1
4930 cat conftest.err >&5
ad6254c5 4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
4932 (exit $ac_status); } && {
4933 test -z "$ac_c_werror_flag" ||
4934 test ! -s conftest.err
4935 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4936 ac_cv_c_const=yes
4937else
4938 echo "$as_me: failed program was:" >&5
4939sed 's/^/| /' conftest.$ac_ext >&5
4940
7a197a62 4941 ac_cv_c_const=no
ad6254c5 4942fi
7a197a62
AK
4943
4944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 4945fi
7a197a62
AK
4946{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4947echo "${ECHO_T}$ac_cv_c_const" >&6; }
ad6254c5 4948if test $ac_cv_c_const = no; then
80992638 4949
ad6254c5
AK
4950cat >>confdefs.h <<\_ACEOF
4951#define const
4952_ACEOF
80992638 4953
d3c8211f 4954fi
d3c8211f 4955
7a197a62
AK
4956{ echo "$as_me:$LINENO: checking for inline" >&5
4957echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
ad6254c5
AK
4958if test "${ac_cv_c_inline+set}" = set; then
4959 echo $ECHO_N "(cached) $ECHO_C" >&6
8ef2b021 4960else
ad6254c5
AK
4961 ac_cv_c_inline=no
4962for ac_kw in inline __inline__ __inline; do
4963 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4964/* confdefs.h. */
4965_ACEOF
4966cat confdefs.h >>conftest.$ac_ext
4967cat >>conftest.$ac_ext <<_ACEOF
4968/* end confdefs.h. */
4969#ifndef __cplusplus
4970typedef int foo_t;
4971static $ac_kw foo_t static_foo () {return 0; }
4972$ac_kw foo_t foo () {return 0; }
4973#endif
80992638 4974
ad6254c5
AK
4975_ACEOF
4976rm -f conftest.$ac_objext
7a197a62
AK
4977if { (ac_try="$ac_compile"
4978case "(($ac_try" in
4979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980 *) ac_try_echo=$ac_try;;
4981esac
4982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4983 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4984 ac_status=$?
8a2fc586
AK
4985 grep -v '^ *+' conftest.er1 >conftest.err
4986 rm -f conftest.er1
4987 cat conftest.err >&5
ad6254c5 4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
4989 (exit $ac_status); } && {
4990 test -z "$ac_c_werror_flag" ||
4991 test ! -s conftest.err
4992 } && test -s conftest.$ac_objext; then
4993 ac_cv_c_inline=$ac_kw
ad6254c5
AK
4994else
4995 echo "$as_me: failed program was:" >&5
4996sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 4997
7a197a62 4998
8ce0cbda 4999fi
7a197a62
AK
5000
5001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5002 test "$ac_cv_c_inline" != no && break
ad6254c5 5003done
8ce0cbda 5004
8ce0cbda 5005fi
7a197a62
AK
5006{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5007echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8a2fc586
AK
5008
5009
ad6254c5
AK
5010case $ac_cv_c_inline in
5011 inline | yes) ;;
8a2fc586
AK
5012 *)
5013 case $ac_cv_c_inline in
5014 no) ac_val=;;
5015 *) ac_val=$ac_cv_c_inline;;
5016 esac
5017 cat >>confdefs.h <<_ACEOF
5018#ifndef __cplusplus
5019#define inline $ac_val
5020#endif
c1c065a3 5021_ACEOF
8a2fc586 5022 ;;
ad6254c5 5023esac
8ce0cbda 5024
7a197a62
AK
5025{ echo "$as_me:$LINENO: checking for off_t" >&5
5026echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
ad6254c5
AK
5027if test "${ac_cv_type_off_t+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5029else
5030 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5031/* confdefs.h. */
5032_ACEOF
5033cat confdefs.h >>conftest.$ac_ext
5034cat >>conftest.$ac_ext <<_ACEOF
5035/* end confdefs.h. */
5036$ac_includes_default
7a197a62 5037typedef off_t ac__type_new_;
ad6254c5
AK
5038int
5039main ()
5040{
7a197a62 5041if ((ac__type_new_ *) 0)
ad6254c5 5042 return 0;
7a197a62 5043if (sizeof (ac__type_new_))
ad6254c5
AK
5044 return 0;
5045 ;
5046 return 0;
5047}
5048_ACEOF
5049rm -f conftest.$ac_objext
7a197a62
AK
5050if { (ac_try="$ac_compile"
5051case "(($ac_try" in
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5054esac
5055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5057 ac_status=$?
8a2fc586
AK
5058 grep -v '^ *+' conftest.er1 >conftest.err
5059 rm -f conftest.er1
5060 cat conftest.err >&5
ad6254c5 5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
5062 (exit $ac_status); } && {
5063 test -z "$ac_c_werror_flag" ||
5064 test ! -s conftest.err
5065 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5066 ac_cv_type_off_t=yes
5067else
5068 echo "$as_me: failed program was:" >&5
5069sed 's/^/| /' conftest.$ac_ext >&5
8ce0cbda 5070
7a197a62 5071 ac_cv_type_off_t=no
80992638 5072fi
7a197a62
AK
5073
5074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5075fi
7a197a62
AK
5076{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5077echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
ad6254c5
AK
5078if test $ac_cv_type_off_t = yes; then
5079 :
5080else
80992638 5081
ad6254c5 5082cat >>confdefs.h <<_ACEOF
7a197a62 5083#define off_t long int
ad6254c5 5084_ACEOF
199e490e 5085
b896caa1
AK
5086fi
5087
7a197a62
AK
5088{ echo "$as_me:$LINENO: checking for pid_t" >&5
5089echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
ad6254c5
AK
5090if test "${ac_cv_type_pid_t+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5092else
5093 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5094/* confdefs.h. */
5095_ACEOF
5096cat confdefs.h >>conftest.$ac_ext
5097cat >>conftest.$ac_ext <<_ACEOF
5098/* end confdefs.h. */
5099$ac_includes_default
7a197a62 5100typedef pid_t ac__type_new_;
ad6254c5
AK
5101int
5102main ()
5103{
7a197a62 5104if ((ac__type_new_ *) 0)
ad6254c5 5105 return 0;
7a197a62 5106if (sizeof (ac__type_new_))
ad6254c5
AK
5107 return 0;
5108 ;
5109 return 0;
5110}
5111_ACEOF
5112rm -f conftest.$ac_objext
7a197a62
AK
5113if { (ac_try="$ac_compile"
5114case "(($ac_try" in
5115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5116 *) ac_try_echo=$ac_try;;
5117esac
5118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5119 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5120 ac_status=$?
8a2fc586
AK
5121 grep -v '^ *+' conftest.er1 >conftest.err
5122 rm -f conftest.er1
5123 cat conftest.err >&5
ad6254c5 5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
5125 (exit $ac_status); } && {
5126 test -z "$ac_c_werror_flag" ||
5127 test ! -s conftest.err
5128 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5129 ac_cv_type_pid_t=yes
5130else
5131 echo "$as_me: failed program was:" >&5
5132sed 's/^/| /' conftest.$ac_ext >&5
5133
7a197a62 5134 ac_cv_type_pid_t=no
ad6254c5 5135fi
7a197a62
AK
5136
5137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5138fi
7a197a62
AK
5139{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5140echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
ad6254c5
AK
5141if test $ac_cv_type_pid_t = yes; then
5142 :
5143else
80992638 5144
ad6254c5
AK
5145cat >>confdefs.h <<_ACEOF
5146#define pid_t int
5147_ACEOF
2dc95e1c 5148
2dc95e1c
AK
5149fi
5150
7a197a62
AK
5151{ echo "$as_me:$LINENO: checking for size_t" >&5
5152echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
ad6254c5
AK
5153if test "${ac_cv_type_size_t+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 5155else
ad6254c5 5156 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5157/* confdefs.h. */
5158_ACEOF
5159cat confdefs.h >>conftest.$ac_ext
5160cat >>conftest.$ac_ext <<_ACEOF
5161/* end confdefs.h. */
5162$ac_includes_default
7a197a62 5163typedef size_t ac__type_new_;
ad6254c5
AK
5164int
5165main ()
5166{
7a197a62 5167if ((ac__type_new_ *) 0)
ad6254c5 5168 return 0;
7a197a62 5169if (sizeof (ac__type_new_))
ad6254c5
AK
5170 return 0;
5171 ;
5172 return 0;
5173}
5174_ACEOF
5175rm -f conftest.$ac_objext
7a197a62
AK
5176if { (ac_try="$ac_compile"
5177case "(($ac_try" in
5178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5179 *) ac_try_echo=$ac_try;;
5180esac
5181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5182 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5183 ac_status=$?
8a2fc586
AK
5184 grep -v '^ *+' conftest.er1 >conftest.err
5185 rm -f conftest.er1
5186 cat conftest.err >&5
ad6254c5 5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
5188 (exit $ac_status); } && {
5189 test -z "$ac_c_werror_flag" ||
5190 test ! -s conftest.err
5191 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5192 ac_cv_type_size_t=yes
5193else
5194 echo "$as_me: failed program was:" >&5
5195sed 's/^/| /' conftest.$ac_ext >&5
5196
7a197a62 5197 ac_cv_type_size_t=no
80992638 5198fi
7a197a62
AK
5199
5200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5201fi
7a197a62
AK
5202{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5203echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
ad6254c5
AK
5204if test $ac_cv_type_size_t = yes; then
5205 :
5206else
80992638 5207
ad6254c5 5208cat >>confdefs.h <<_ACEOF
7a197a62 5209#define size_t unsigned int
ad6254c5 5210_ACEOF
8106cdd5 5211
8106cdd5
AK
5212fi
5213
7a197a62
AK
5214{ echo "$as_me:$LINENO: checking for mode_t" >&5
5215echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
ad6254c5
AK
5216if test "${ac_cv_type_mode_t+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5218else
5219 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5220/* confdefs.h. */
5221_ACEOF
5222cat confdefs.h >>conftest.$ac_ext
5223cat >>conftest.$ac_ext <<_ACEOF
5224/* end confdefs.h. */
5225$ac_includes_default
7a197a62 5226typedef mode_t ac__type_new_;
ad6254c5
AK
5227int
5228main ()
5229{
7a197a62 5230if ((ac__type_new_ *) 0)
ad6254c5 5231 return 0;
7a197a62 5232if (sizeof (ac__type_new_))
ad6254c5
AK
5233 return 0;
5234 ;
5235 return 0;
5236}
5237_ACEOF
5238rm -f conftest.$ac_objext
7a197a62
AK
5239if { (ac_try="$ac_compile"
5240case "(($ac_try" in
5241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242 *) ac_try_echo=$ac_try;;
5243esac
5244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5245 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5246 ac_status=$?
8a2fc586
AK
5247 grep -v '^ *+' conftest.er1 >conftest.err
5248 rm -f conftest.er1
5249 cat conftest.err >&5
ad6254c5 5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
5251 (exit $ac_status); } && {
5252 test -z "$ac_c_werror_flag" ||
5253 test ! -s conftest.err
5254 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5255 ac_cv_type_mode_t=yes
5256else
5257 echo "$as_me: failed program was:" >&5
5258sed 's/^/| /' conftest.$ac_ext >&5
5259
7a197a62 5260 ac_cv_type_mode_t=no
80992638 5261fi
7a197a62
AK
5262
5263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5264fi
7a197a62
AK
5265{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5266echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
ad6254c5
AK
5267if test $ac_cv_type_mode_t = yes; then
5268 :
5269else
80992638 5270
ad6254c5
AK
5271cat >>confdefs.h <<_ACEOF
5272#define mode_t int
5273_ACEOF
5274
5275fi
5276
7a197a62
AK
5277{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5278echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
ad6254c5
AK
5279if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5281else
5282 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5283/* confdefs.h. */
5284_ACEOF
5285cat confdefs.h >>conftest.$ac_ext
5286cat >>conftest.$ac_ext <<_ACEOF
5287/* end confdefs.h. */
5288$ac_includes_default
5289int
5290main ()
5291{
5292static struct stat ac_aggr;
5293if (ac_aggr.st_rdev)
5294return 0;
5295 ;
5296 return 0;
5297}
5298_ACEOF
5299rm -f conftest.$ac_objext
7a197a62
AK
5300if { (ac_try="$ac_compile"
5301case "(($ac_try" in
5302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303 *) ac_try_echo=$ac_try;;
5304esac
5305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5306 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5307 ac_status=$?
8a2fc586
AK
5308 grep -v '^ *+' conftest.er1 >conftest.err
5309 rm -f conftest.er1
5310 cat conftest.err >&5
ad6254c5 5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
5312 (exit $ac_status); } && {
5313 test -z "$ac_c_werror_flag" ||
5314 test ! -s conftest.err
5315 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5316 ac_cv_member_struct_stat_st_rdev=yes
5317else
5318 echo "$as_me: failed program was:" >&5
5319sed 's/^/| /' conftest.$ac_ext >&5
5320
7a197a62 5321 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5322/* confdefs.h. */
5323_ACEOF
5324cat confdefs.h >>conftest.$ac_ext
5325cat >>conftest.$ac_ext <<_ACEOF
5326/* end confdefs.h. */
5327$ac_includes_default
5328int
5329main ()
5330{
5331static struct stat ac_aggr;
5332if (sizeof ac_aggr.st_rdev)
5333return 0;
5334 ;
5335 return 0;
5336}
5337_ACEOF
5338rm -f conftest.$ac_objext
7a197a62
AK
5339if { (ac_try="$ac_compile"
5340case "(($ac_try" in
5341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342 *) ac_try_echo=$ac_try;;
5343esac
5344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5345 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5346 ac_status=$?
8a2fc586
AK
5347 grep -v '^ *+' conftest.er1 >conftest.err
5348 rm -f conftest.er1
5349 cat conftest.err >&5
ad6254c5 5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
5351 (exit $ac_status); } && {
5352 test -z "$ac_c_werror_flag" ||
5353 test ! -s conftest.err
5354 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5355 ac_cv_member_struct_stat_st_rdev=yes
5356else
5357 echo "$as_me: failed program was:" >&5
5358sed 's/^/| /' conftest.$ac_ext >&5
5359
7a197a62 5360 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 5361fi
7a197a62
AK
5362
5363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5364fi
7a197a62
AK
5365
5366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5367fi
7a197a62
AK
5368{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5369echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
ad6254c5
AK
5370if test $ac_cv_member_struct_stat_st_rdev = yes; then
5371
5372cat >>confdefs.h <<_ACEOF
5373#define HAVE_STRUCT_STAT_ST_RDEV 1
5374_ACEOF
5375
5376
ad6254c5
AK
5377fi
5378
7a197a62
AK
5379{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5380echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
ad6254c5
AK
5381if test "${ac_cv_struct_tm+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5383else
5384 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5385/* confdefs.h. */
5386_ACEOF
5387cat confdefs.h >>conftest.$ac_ext
5388cat >>conftest.$ac_ext <<_ACEOF
5389/* end confdefs.h. */
5390#include <sys/types.h>
5391#include <time.h>
5392
5393int
5394main ()
5395{
7a197a62
AK
5396struct tm tm;
5397 int *p = &tm.tm_sec;
5398 return !p;
ad6254c5
AK
5399 ;
5400 return 0;
5401}
5402_ACEOF
5403rm -f conftest.$ac_objext
7a197a62
AK
5404if { (ac_try="$ac_compile"
5405case "(($ac_try" in
5406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5407 *) ac_try_echo=$ac_try;;
5408esac
5409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5410 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5411 ac_status=$?
8a2fc586
AK
5412 grep -v '^ *+' conftest.er1 >conftest.err
5413 rm -f conftest.er1
5414 cat conftest.err >&5
ad6254c5 5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
5416 (exit $ac_status); } && {
5417 test -z "$ac_c_werror_flag" ||
5418 test ! -s conftest.err
5419 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5420 ac_cv_struct_tm=time.h
5421else
5422 echo "$as_me: failed program was:" >&5
5423sed 's/^/| /' conftest.$ac_ext >&5
5424
7a197a62 5425 ac_cv_struct_tm=sys/time.h
ad6254c5 5426fi
7a197a62
AK
5427
5428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5429fi
7a197a62
AK
5430{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5431echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
ad6254c5
AK
5432if test $ac_cv_struct_tm = sys/time.h; then
5433
5434cat >>confdefs.h <<\_ACEOF
5435#define TM_IN_SYS_TIME 1
5436_ACEOF
5437
5438fi
809fae91 5439
795ca3e5 5440
80992638 5441################################################################################
ad6254c5
AK
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456for ac_func in gethostname getpagesize memset munmap setlocale strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul
5457do
5458as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7a197a62
AK
5459{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5460echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5461if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5 5462 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 5463else
ad6254c5 5464 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5465/* confdefs.h. */
5466_ACEOF
5467cat confdefs.h >>conftest.$ac_ext
5468cat >>conftest.$ac_ext <<_ACEOF
5469/* end confdefs.h. */
8a2fc586
AK
5470/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5472#define $ac_func innocuous_$ac_func
5473
ad6254c5
AK
5474/* System header to define __stub macros and hopefully few prototypes,
5475 which can conflict with char $ac_func (); below.
5476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5477 <limits.h> exists even on freestanding compilers. */
8a2fc586 5478
ad6254c5
AK
5479#ifdef __STDC__
5480# include <limits.h>
5481#else
5482# include <assert.h>
5483#endif
8a2fc586
AK
5484
5485#undef $ac_func
5486
7a197a62
AK
5487/* Override any GCC internal prototype to avoid an error.
5488 Use char because int might match the return type of a GCC
5489 builtin and then its argument prototype would still apply. */
ad6254c5
AK
5490#ifdef __cplusplus
5491extern "C"
ad6254c5 5492#endif
ad6254c5
AK
5493char $ac_func ();
5494/* The GNU C library defines this for functions which it implements
5495 to always fail with ENOSYS. Some functions are actually named
5496 something starting with __ and the normal name is an alias. */
7a197a62 5497#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 5498choke me
ad6254c5
AK
5499#endif
5500
5501int
5502main ()
5503{
7a197a62 5504return $ac_func ();
ad6254c5
AK
5505 ;
5506 return 0;
5507}
5508_ACEOF
5509rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
5510if { (ac_try="$ac_link"
5511case "(($ac_try" in
5512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5513 *) ac_try_echo=$ac_try;;
5514esac
5515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5516 (eval "$ac_link") 2>conftest.er1
ad6254c5 5517 ac_status=$?
8a2fc586
AK
5518 grep -v '^ *+' conftest.er1 >conftest.err
5519 rm -f conftest.er1
5520 cat conftest.err >&5
ad6254c5 5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
5522 (exit $ac_status); } && {
5523 test -z "$ac_c_werror_flag" ||
5524 test ! -s conftest.err
5525 } && test -s conftest$ac_exeext &&
5526 $as_test_x conftest$ac_exeext; then
ad6254c5 5527 eval "$as_ac_var=yes"
795ca3e5 5528else
ad6254c5
AK
5529 echo "$as_me: failed program was:" >&5
5530sed 's/^/| /' conftest.$ac_ext >&5
5531
7a197a62 5532 eval "$as_ac_var=no"
795ca3e5 5533fi
7a197a62
AK
5534
5535rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 5536 conftest$ac_exeext conftest.$ac_ext
ad6254c5 5537fi
7a197a62
AK
5538ac_res=`eval echo '${'$as_ac_var'}'`
5539 { echo "$as_me:$LINENO: result: $ac_res" >&5
5540echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
5541if test `eval echo '${'$as_ac_var'}'` = yes; then
5542 cat >>confdefs.h <<_ACEOF
5543#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5544_ACEOF
5545
5546else
5547 { { echo "$as_me:$LINENO: error: bailing out" >&5
5548echo "$as_me: error: bailing out" >&2;}
5549 { (exit 1); exit 1; }; }
5550fi
5551done
795ca3e5 5552
ad6254c5
AK
5553# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5554# for constant arguments. Useless!
7a197a62
AK
5555{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
5556echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
ad6254c5
AK
5557if test "${ac_cv_working_alloca_h+set}" = set; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
5559else
5560 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5561/* confdefs.h. */
5562_ACEOF
5563cat confdefs.h >>conftest.$ac_ext
5564cat >>conftest.$ac_ext <<_ACEOF
5565/* end confdefs.h. */
5566#include <alloca.h>
5567int
5568main ()
5569{
5570char *p = (char *) alloca (2 * sizeof (int));
7a197a62 5571 if (p) return 0;
ad6254c5
AK
5572 ;
5573 return 0;
5574}
5575_ACEOF
5576rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
5577if { (ac_try="$ac_link"
5578case "(($ac_try" in
5579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5580 *) ac_try_echo=$ac_try;;
5581esac
5582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5583 (eval "$ac_link") 2>conftest.er1
ad6254c5 5584 ac_status=$?
8a2fc586
AK
5585 grep -v '^ *+' conftest.er1 >conftest.err
5586 rm -f conftest.er1
5587 cat conftest.err >&5
ad6254c5 5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
5589 (exit $ac_status); } && {
5590 test -z "$ac_c_werror_flag" ||
5591 test ! -s conftest.err
5592 } && test -s conftest$ac_exeext &&
5593 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
5594 ac_cv_working_alloca_h=yes
5595else
5596 echo "$as_me: failed program was:" >&5
5597sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 5598
7a197a62 5599 ac_cv_working_alloca_h=no
ad6254c5 5600fi
7a197a62
AK
5601
5602rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 5603 conftest$ac_exeext conftest.$ac_ext
ad6254c5 5604fi
7a197a62
AK
5605{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5606echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
5607if test $ac_cv_working_alloca_h = yes; then
5608
5609cat >>confdefs.h <<\_ACEOF
5610#define HAVE_ALLOCA_H 1
5611_ACEOF
5612
5613fi
5614
7a197a62
AK
5615{ echo "$as_me:$LINENO: checking for alloca" >&5
5616echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
ad6254c5
AK
5617if test "${ac_cv_func_alloca_works+set}" = set; then
5618 echo $ECHO_N "(cached) $ECHO_C" >&6
5619else
5620 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5621/* confdefs.h. */
5622_ACEOF
5623cat confdefs.h >>conftest.$ac_ext
5624cat >>conftest.$ac_ext <<_ACEOF
5625/* end confdefs.h. */
5626#ifdef __GNUC__
5627# define alloca __builtin_alloca
5628#else
5629# ifdef _MSC_VER
5630# include <malloc.h>
5631# define alloca _alloca
5632# else
7a197a62 5633# ifdef HAVE_ALLOCA_H
ad6254c5
AK
5634# include <alloca.h>
5635# else
5636# ifdef _AIX
5637 #pragma alloca
5638# else
5639# ifndef alloca /* predefined by HP cc +Olibcalls */
5640char *alloca ();
5641# endif
5642# endif
5643# endif
5644# endif
5645#endif
5646
5647int
5648main ()
5649{
5650char *p = (char *) alloca (1);
7a197a62 5651 if (p) return 0;
ad6254c5
AK
5652 ;
5653 return 0;
5654}
5655_ACEOF
5656rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
5657if { (ac_try="$ac_link"
5658case "(($ac_try" in
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5661esac
5662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663 (eval "$ac_link") 2>conftest.er1
ad6254c5 5664 ac_status=$?
8a2fc586
AK
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
ad6254c5 5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
5669 (exit $ac_status); } && {
5670 test -z "$ac_c_werror_flag" ||
5671 test ! -s conftest.err
5672 } && test -s conftest$ac_exeext &&
5673 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
5674 ac_cv_func_alloca_works=yes
5675else
5676 echo "$as_me: failed program was:" >&5
5677sed 's/^/| /' conftest.$ac_ext >&5
5678
7a197a62 5679 ac_cv_func_alloca_works=no
ad6254c5 5680fi
7a197a62
AK
5681
5682rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 5683 conftest$ac_exeext conftest.$ac_ext
ad6254c5 5684fi
7a197a62
AK
5685{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5686echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
5687
5688if test $ac_cv_func_alloca_works = yes; then
5689
5690cat >>confdefs.h <<\_ACEOF
5691#define HAVE_ALLOCA 1
5692_ACEOF
5693
5694else
5695 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5696# that cause trouble. Some versions do not even contain alloca or
5697# contain a buggy version. If you still want to use their alloca,
5698# use ar to extract alloca.o from them instead of compiling alloca.c.
5699
7a197a62 5700ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
5701
5702cat >>confdefs.h <<\_ACEOF
5703#define C_ALLOCA 1
5704_ACEOF
5705
5706
7a197a62
AK
5707{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5708echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
ad6254c5
AK
5709if test "${ac_cv_os_cray+set}" = set; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5711else
5712 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5713/* confdefs.h. */
5714_ACEOF
5715cat confdefs.h >>conftest.$ac_ext
5716cat >>conftest.$ac_ext <<_ACEOF
5717/* end confdefs.h. */
7a197a62 5718#if defined CRAY && ! defined CRAY2
ad6254c5
AK
5719webecray
5720#else
5721wenotbecray
5722#endif
5723
5724_ACEOF
795ca3e5 5725if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
5726 $EGREP "webecray" >/dev/null 2>&1; then
5727 ac_cv_os_cray=yes
5728else
5729 ac_cv_os_cray=no
795ca3e5
AK
5730fi
5731rm -f conftest*
5732
795ca3e5 5733fi
7a197a62
AK
5734{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5735echo "${ECHO_T}$ac_cv_os_cray" >&6; }
ad6254c5
AK
5736if test $ac_cv_os_cray = yes; then
5737 for ac_func in _getb67 GETB67 getb67; do
5738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7a197a62
AK
5739{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5740echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5741if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
5743else
5744 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5745/* confdefs.h. */
5746_ACEOF
5747cat confdefs.h >>conftest.$ac_ext
5748cat >>conftest.$ac_ext <<_ACEOF
5749/* end confdefs.h. */
8a2fc586
AK
5750/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5752#define $ac_func innocuous_$ac_func
5753
ad6254c5
AK
5754/* System header to define __stub macros and hopefully few prototypes,
5755 which can conflict with char $ac_func (); below.
5756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5757 <limits.h> exists even on freestanding compilers. */
8a2fc586 5758
ad6254c5
AK
5759#ifdef __STDC__
5760# include <limits.h>
5761#else
5762# include <assert.h>
5763#endif
8a2fc586
AK
5764
5765#undef $ac_func
5766
7a197a62
AK
5767/* Override any GCC internal prototype to avoid an error.
5768 Use char because int might match the return type of a GCC
5769 builtin and then its argument prototype would still apply. */
ad6254c5
AK
5770#ifdef __cplusplus
5771extern "C"
ad6254c5 5772#endif
ad6254c5
AK
5773char $ac_func ();
5774/* The GNU C library defines this for functions which it implements
5775 to always fail with ENOSYS. Some functions are actually named
5776 something starting with __ and the normal name is an alias. */
7a197a62 5777#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 5778choke me
ad6254c5
AK
5779#endif
5780
5781int
5782main ()
5783{
7a197a62 5784return $ac_func ();
ad6254c5
AK
5785 ;
5786 return 0;
5787}
5788_ACEOF
5789rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
5790if { (ac_try="$ac_link"
5791case "(($ac_try" in
5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793 *) ac_try_echo=$ac_try;;
5794esac
5795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796 (eval "$ac_link") 2>conftest.er1
ad6254c5 5797 ac_status=$?
8a2fc586
AK
5798 grep -v '^ *+' conftest.er1 >conftest.err
5799 rm -f conftest.er1
5800 cat conftest.err >&5
ad6254c5 5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
5802 (exit $ac_status); } && {
5803 test -z "$ac_c_werror_flag" ||
5804 test ! -s conftest.err
5805 } && test -s conftest$ac_exeext &&
5806 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
5807 eval "$as_ac_var=yes"
5808else
5809 echo "$as_me: failed program was:" >&5
5810sed 's/^/| /' conftest.$ac_ext >&5
5811
7a197a62 5812 eval "$as_ac_var=no"
ad6254c5 5813fi
7a197a62
AK
5814
5815rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 5816 conftest$ac_exeext conftest.$ac_ext
ad6254c5 5817fi
7a197a62
AK
5818ac_res=`eval echo '${'$as_ac_var'}'`
5819 { echo "$as_me:$LINENO: result: $ac_res" >&5
5820echo "${ECHO_T}$ac_res" >&6; }
ad6254c5 5821if test `eval echo '${'$as_ac_var'}'` = yes; then
80992638 5822
ad6254c5
AK
5823cat >>confdefs.h <<_ACEOF
5824#define CRAY_STACKSEG_END $ac_func
5825_ACEOF
5826
5827 break
5828fi
5829
5830 done
5831fi
5832
7a197a62
AK
5833{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5834echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
ad6254c5
AK
5835if test "${ac_cv_c_stack_direction+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5837else
5838 if test "$cross_compiling" = yes; then
5839 ac_cv_c_stack_direction=0
5840else
5841 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5842/* confdefs.h. */
5843_ACEOF
5844cat confdefs.h >>conftest.$ac_ext
5845cat >>conftest.$ac_ext <<_ACEOF
5846/* end confdefs.h. */
7a197a62 5847$ac_includes_default
ad6254c5
AK
5848int
5849find_stack_direction ()
5850{
5851 static char *addr = 0;
5852 auto char dummy;
5853 if (addr == 0)
5854 {
5855 addr = &dummy;
5856 return find_stack_direction ();
5857 }
5858 else
5859 return (&dummy > addr) ? 1 : -1;
5860}
5861
5862int
5863main ()
5864{
7a197a62 5865 return find_stack_direction () < 0;
ad6254c5
AK
5866}
5867_ACEOF
5868rm -f conftest$ac_exeext
7a197a62
AK
5869if { (ac_try="$ac_link"
5870case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5873esac
5874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_link") 2>&5
ad6254c5
AK
5876 ac_status=$?
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
5879 { (case "(($ac_try" in
5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5882esac
5883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884 (eval "$ac_try") 2>&5
ad6254c5
AK
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
5888 ac_cv_c_stack_direction=1
5889else
5890 echo "$as_me: program exited with status $ac_status" >&5
5891echo "$as_me: failed program was:" >&5
5892sed 's/^/| /' conftest.$ac_ext >&5
5893
5894( exit $ac_status )
5895ac_cv_c_stack_direction=-1
5896fi
7a197a62 5897rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 5898fi
7a197a62
AK
5899
5900
ad6254c5 5901fi
7a197a62
AK
5902{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5903echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
5904
5905cat >>confdefs.h <<_ACEOF
5906#define STACK_DIRECTION $ac_cv_c_stack_direction
5907_ACEOF
5908
5909
5910fi
5911
7a197a62
AK
5912{ echo "$as_me:$LINENO: checking whether closedir returns void" >&5
5913echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
ad6254c5
AK
5914if test "${ac_cv_func_closedir_void+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5916else
5917 if test "$cross_compiling" = yes; then
5918 ac_cv_func_closedir_void=yes
5919else
5920 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5921/* confdefs.h. */
5922_ACEOF
5923cat confdefs.h >>conftest.$ac_ext
5924cat >>conftest.$ac_ext <<_ACEOF
5925/* end confdefs.h. */
5926$ac_includes_default
5927#include <$ac_header_dirent>
5928#ifndef __cplusplus
5929int closedir ();
5930#endif
5931
5932int
5933main ()
5934{
7a197a62 5935return closedir (opendir (".")) != 0;
ad6254c5
AK
5936 ;
5937 return 0;
5938}
5939_ACEOF
5940rm -f conftest$ac_exeext
7a197a62
AK
5941if { (ac_try="$ac_link"
5942case "(($ac_try" in
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5945esac
5946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_link") 2>&5
ad6254c5
AK
5948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
5951 { (case "(($ac_try" in
5952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953 *) ac_try_echo=$ac_try;;
5954esac
5955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956 (eval "$ac_try") 2>&5
ad6254c5
AK
5957 ac_status=$?
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); }; }; then
5960 ac_cv_func_closedir_void=no
5961else
5962 echo "$as_me: program exited with status $ac_status" >&5
5963echo "$as_me: failed program was:" >&5
5964sed 's/^/| /' conftest.$ac_ext >&5
5965
5966( exit $ac_status )
5967ac_cv_func_closedir_void=yes
5968fi
7a197a62 5969rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 5970fi
7a197a62
AK
5971
5972
ad6254c5 5973fi
7a197a62
AK
5974{ echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
5975echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
5976if test $ac_cv_func_closedir_void = yes; then
5977
5978cat >>confdefs.h <<\_ACEOF
5979#define CLOSEDIR_VOID 1
5980_ACEOF
5981
5982fi
5983
5984
7a197a62 5985for ac_header in vfork.h
ad6254c5
AK
5986do
5987as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62
AK
5988if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5990echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5991if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5993fi
7a197a62
AK
5994ac_res=`eval echo '${'$as_ac_Header'}'`
5995 { echo "$as_me:$LINENO: result: $ac_res" >&5
5996echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
5997else
5998 # Is the header compilable?
7a197a62
AK
5999{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6000echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 6001cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6002/* confdefs.h. */
6003_ACEOF
6004cat confdefs.h >>conftest.$ac_ext
6005cat >>conftest.$ac_ext <<_ACEOF
6006/* end confdefs.h. */
6007$ac_includes_default
6008#include <$ac_header>
6009_ACEOF
6010rm -f conftest.$ac_objext
7a197a62
AK
6011if { (ac_try="$ac_compile"
6012case "(($ac_try" in
6013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014 *) ac_try_echo=$ac_try;;
6015esac
6016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6018 ac_status=$?
8a2fc586
AK
6019 grep -v '^ *+' conftest.er1 >conftest.err
6020 rm -f conftest.er1
6021 cat conftest.err >&5
ad6254c5 6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
6023 (exit $ac_status); } && {
6024 test -z "$ac_c_werror_flag" ||
6025 test ! -s conftest.err
6026 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6027 ac_header_compiler=yes
6028else
6029 echo "$as_me: failed program was:" >&5
6030sed 's/^/| /' conftest.$ac_ext >&5
6031
7a197a62 6032 ac_header_compiler=no
ad6254c5 6033fi
7a197a62
AK
6034
6035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6036{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6037echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
6038
6039# Is the header present?
7a197a62
AK
6040{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6041echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 6042cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6043/* confdefs.h. */
6044_ACEOF
6045cat confdefs.h >>conftest.$ac_ext
6046cat >>conftest.$ac_ext <<_ACEOF
6047/* end confdefs.h. */
6048#include <$ac_header>
6049_ACEOF
7a197a62
AK
6050if { (ac_try="$ac_cpp conftest.$ac_ext"
6051case "(($ac_try" in
6052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053 *) ac_try_echo=$ac_try;;
6054esac
6055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
6057 ac_status=$?
6058 grep -v '^ *+' conftest.er1 >conftest.err
6059 rm -f conftest.er1
6060 cat conftest.err >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
6062 (exit $ac_status); } >/dev/null && {
6063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6064 test ! -s conftest.err
6065 }; then
ad6254c5
AK
6066 ac_header_preproc=yes
6067else
6068 echo "$as_me: failed program was:" >&5
6069sed 's/^/| /' conftest.$ac_ext >&5
6070
6071 ac_header_preproc=no
6072fi
7a197a62 6073
ad6254c5 6074rm -f conftest.err conftest.$ac_ext
7a197a62
AK
6075{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6076echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
6077
6078# So? What about this header?
8a2fc586
AK
6079case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6080 yes:no: )
ad6254c5
AK
6081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6082echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
6083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6084echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6085 ac_header_preproc=yes
ad6254c5 6086 ;;
8a2fc586 6087 no:yes:* )
ad6254c5
AK
6088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6089echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
6090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6091echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6093echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6095echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
6096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6097echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
6098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6099echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 6100
ad6254c5
AK
6101 ;;
6102esac
7a197a62
AK
6103{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6105if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6107else
8a2fc586 6108 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 6109fi
7a197a62
AK
6110ac_res=`eval echo '${'$as_ac_Header'}'`
6111 { echo "$as_me:$LINENO: result: $ac_res" >&5
6112echo "${ECHO_T}$ac_res" >&6; }
ad6254c5 6113
795ca3e5 6114fi
ad6254c5
AK
6115if test `eval echo '${'$as_ac_Header'}'` = yes; then
6116 cat >>confdefs.h <<_ACEOF
6117#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6118_ACEOF
6119
6120fi
6121
6122done
795ca3e5 6123
ad6254c5
AK
6124
6125
6126for ac_func in fork vfork
6127do
6128as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7a197a62
AK
6129{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6130echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6131if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5 6132 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 6133else
ad6254c5 6134 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6135/* confdefs.h. */
6136_ACEOF
6137cat confdefs.h >>conftest.$ac_ext
6138cat >>conftest.$ac_ext <<_ACEOF
6139/* end confdefs.h. */
8a2fc586
AK
6140/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6142#define $ac_func innocuous_$ac_func
6143
ad6254c5
AK
6144/* System header to define __stub macros and hopefully few prototypes,
6145 which can conflict with char $ac_func (); below.
6146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6147 <limits.h> exists even on freestanding compilers. */
8a2fc586 6148
ad6254c5
AK
6149#ifdef __STDC__
6150# include <limits.h>
6151#else
6152# include <assert.h>
795ca3e5 6153#endif
8a2fc586
AK
6154
6155#undef $ac_func
6156
7a197a62
AK
6157/* Override any GCC internal prototype to avoid an error.
6158 Use char because int might match the return type of a GCC
6159 builtin and then its argument prototype would still apply. */
795ca3e5 6160#ifdef __cplusplus
ad6254c5 6161extern "C"
ad6254c5 6162#endif
ad6254c5
AK
6163char $ac_func ();
6164/* The GNU C library defines this for functions which it implements
6165 to always fail with ENOSYS. Some functions are actually named
6166 something starting with __ and the normal name is an alias. */
7a197a62 6167#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6168choke me
795ca3e5
AK
6169#endif
6170
ad6254c5
AK
6171int
6172main ()
6173{
7a197a62 6174return $ac_func ();
ad6254c5
AK
6175 ;
6176 return 0;
6177}
6178_ACEOF
6179rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6180if { (ac_try="$ac_link"
6181case "(($ac_try" in
6182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6183 *) ac_try_echo=$ac_try;;
6184esac
6185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6186 (eval "$ac_link") 2>conftest.er1
ad6254c5 6187 ac_status=$?
8a2fc586
AK
6188 grep -v '^ *+' conftest.er1 >conftest.err
6189 rm -f conftest.er1
6190 cat conftest.err >&5
ad6254c5 6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
6192 (exit $ac_status); } && {
6193 test -z "$ac_c_werror_flag" ||
6194 test ! -s conftest.err
6195 } && test -s conftest$ac_exeext &&
6196 $as_test_x conftest$ac_exeext; then
ad6254c5 6197 eval "$as_ac_var=yes"
795ca3e5 6198else
ad6254c5
AK
6199 echo "$as_me: failed program was:" >&5
6200sed 's/^/| /' conftest.$ac_ext >&5
6201
7a197a62 6202 eval "$as_ac_var=no"
795ca3e5 6203fi
7a197a62
AK
6204
6205rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6206 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6207fi
7a197a62
AK
6208ac_res=`eval echo '${'$as_ac_var'}'`
6209 { echo "$as_me:$LINENO: result: $ac_res" >&5
6210echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
6211if test `eval echo '${'$as_ac_var'}'` = yes; then
6212 cat >>confdefs.h <<_ACEOF
6213#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6214_ACEOF
6215
6216fi
6217done
6218
6219if test "x$ac_cv_func_fork" = xyes; then
7a197a62
AK
6220 { echo "$as_me:$LINENO: checking for working fork" >&5
6221echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
ad6254c5
AK
6222if test "${ac_cv_func_fork_works+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6224else
6225 if test "$cross_compiling" = yes; then
6226 ac_cv_func_fork_works=cross
6227else
6228 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
6229/* confdefs.h. */
6230_ACEOF
6231cat confdefs.h >>conftest.$ac_ext
6232cat >>conftest.$ac_ext <<_ACEOF
6233/* end confdefs.h. */
6234$ac_includes_default
6235int
6236main ()
6237{
6238
6239 /* By Ruediger Kuhlmann. */
6240 return fork () < 0;
6241
6242 ;
6243 return 0;
6244}
ad6254c5
AK
6245_ACEOF
6246rm -f conftest$ac_exeext
7a197a62
AK
6247if { (ac_try="$ac_link"
6248case "(($ac_try" in
6249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6250 *) ac_try_echo=$ac_try;;
6251esac
6252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6253 (eval "$ac_link") 2>&5
ad6254c5
AK
6254 ac_status=$?
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6257 { (case "(($ac_try" in
6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6260esac
6261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262 (eval "$ac_try") 2>&5
ad6254c5
AK
6263 ac_status=$?
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; }; then
6266 ac_cv_func_fork_works=yes
6267else
6268 echo "$as_me: program exited with status $ac_status" >&5
6269echo "$as_me: failed program was:" >&5
6270sed 's/^/| /' conftest.$ac_ext >&5
6271
6272( exit $ac_status )
6273ac_cv_func_fork_works=no
6274fi
7a197a62 6275rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6276fi
7a197a62
AK
6277
6278
ad6254c5 6279fi
7a197a62
AK
6280{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6281echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
6282
6283else
6284 ac_cv_func_fork_works=$ac_cv_func_fork
6285fi
6286if test "x$ac_cv_func_fork_works" = xcross; then
6287 case $host in
6288 *-*-amigaos* | *-*-msdosdjgpp*)
6289 # Override, as these systems have only a dummy fork() stub
6290 ac_cv_func_fork_works=no
6291 ;;
6292 *)
6293 ac_cv_func_fork_works=yes
6294 ;;
6295 esac
6296 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6297echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6298fi
6299ac_cv_func_vfork_works=$ac_cv_func_vfork
6300if test "x$ac_cv_func_vfork" = xyes; then
7a197a62
AK
6301 { echo "$as_me:$LINENO: checking for working vfork" >&5
6302echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
ad6254c5
AK
6303if test "${ac_cv_func_vfork_works+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6305else
6306 if test "$cross_compiling" = yes; then
6307 ac_cv_func_vfork_works=cross
6308else
6309 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6310/* confdefs.h. */
6311_ACEOF
6312cat confdefs.h >>conftest.$ac_ext
6313cat >>conftest.$ac_ext <<_ACEOF
6314/* end confdefs.h. */
6315/* Thanks to Paul Eggert for this test. */
7a197a62 6316$ac_includes_default
ad6254c5 6317#include <sys/wait.h>
7a197a62 6318#ifdef HAVE_VFORK_H
ad6254c5
AK
6319# include <vfork.h>
6320#endif
6321/* On some sparc systems, changes by the child to local and incoming
6322 argument registers are propagated back to the parent. The compiler
6323 is told about this with #include <vfork.h>, but some compilers
6324 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6325 static variable whose address is put into a register that is
6326 clobbered by the vfork. */
6327static void
6328#ifdef __cplusplus
6329sparc_address_test (int arg)
6330# else
6331sparc_address_test (arg) int arg;
6332#endif
6333{
6334 static pid_t child;
6335 if (!child) {
6336 child = vfork ();
6337 if (child < 0) {
6338 perror ("vfork");
6339 _exit(2);
6340 }
6341 if (!child) {
6342 arg = getpid();
6343 write(-1, "", 0);
6344 _exit (arg);
6345 }
6346 }
6347}
6348
6349int
6350main ()
6351{
6352 pid_t parent = getpid ();
6353 pid_t child;
6354
6355 sparc_address_test (0);
6356
6357 child = vfork ();
6358
6359 if (child == 0) {
6360 /* Here is another test for sparc vfork register problems. This
6361 test uses lots of local variables, at least as many local
6362 variables as main has allocated so far including compiler
6363 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6364 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6365 reuse the register of parent for one of the local variables,
6366 since it will think that parent can't possibly be used any more
6367 in this routine. Assigning to the local variable will thus
6368 munge parent in the parent process. */
6369 pid_t
6370 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6371 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6372 /* Convince the compiler that p..p7 are live; otherwise, it might
6373 use the same hardware register for all 8 local variables. */
6374 if (p != p1 || p != p2 || p != p3 || p != p4
6375 || p != p5 || p != p6 || p != p7)
6376 _exit(1);
6377
6378 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6379 from child file descriptors. If the child closes a descriptor
6380 before it execs or exits, this munges the parent's descriptor
6381 as well. Test for this by closing stdout in the child. */
6382 _exit(close(fileno(stdout)) != 0);
6383 } else {
6384 int status;
6385 struct stat st;
6386
6387 while (wait(&status) != child)
6388 ;
7a197a62 6389 return (
ad6254c5
AK
6390 /* Was there some problem with vforking? */
6391 child < 0
6392
6393 /* Did the child fail? (This shouldn't happen.) */
6394 || status
6395
6396 /* Did the vfork/compiler bug occur? */
6397 || parent != getpid()
6398
6399 /* Did the file descriptor bug occur? */
6400 || fstat(fileno(stdout), &st) != 0
6401 );
6402 }
6403}
6404_ACEOF
6405rm -f conftest$ac_exeext
7a197a62
AK
6406if { (ac_try="$ac_link"
6407case "(($ac_try" in
6408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409 *) ac_try_echo=$ac_try;;
6410esac
6411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412 (eval "$ac_link") 2>&5
ad6254c5
AK
6413 ac_status=$?
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6416 { (case "(($ac_try" in
6417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6418 *) ac_try_echo=$ac_try;;
6419esac
6420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6421 (eval "$ac_try") 2>&5
ad6254c5
AK
6422 ac_status=$?
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; }; then
6425 ac_cv_func_vfork_works=yes
6426else
6427 echo "$as_me: program exited with status $ac_status" >&5
6428echo "$as_me: failed program was:" >&5
6429sed 's/^/| /' conftest.$ac_ext >&5
6430
6431( exit $ac_status )
6432ac_cv_func_vfork_works=no
6433fi
7a197a62 6434rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6435fi
7a197a62
AK
6436
6437
ad6254c5 6438fi
7a197a62
AK
6439{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
6440echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
6441
6442fi;
6443if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 6444 ac_cv_func_vfork_works=$ac_cv_func_vfork
ad6254c5
AK
6445 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6446echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6447fi
6448
6449if test "x$ac_cv_func_vfork_works" = xyes; then
6450
6451cat >>confdefs.h <<\_ACEOF
6452#define HAVE_WORKING_VFORK 1
6453_ACEOF
6454
6455else
6456
6457cat >>confdefs.h <<\_ACEOF
6458#define vfork fork
6459_ACEOF
6460
6461fi
6462if test "x$ac_cv_func_fork_works" = xyes; then
6463
6464cat >>confdefs.h <<\_ACEOF
6465#define HAVE_WORKING_FORK 1
6466_ACEOF
6467
6468fi
6469
7a197a62
AK
6470{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
6471echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
ad6254c5
AK
6472if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6474else
6475 rm -f conftest.sym conftest.file
6476echo >conftest.file
6477if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6478 if test "$cross_compiling" = yes; then
6479 ac_cv_func_lstat_dereferences_slashed_symlink=no
6480else
6481 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6482/* confdefs.h. */
6483_ACEOF
6484cat confdefs.h >>conftest.$ac_ext
6485cat >>conftest.$ac_ext <<_ACEOF
6486/* end confdefs.h. */
6487$ac_includes_default
6488int
6489main ()
6490{
6491struct stat sbuf;
6492 /* Linux will dereference the symlink and fail.
8a2fc586
AK
6493 That is better in the sense that it means we will not
6494 have to compile and use the lstat wrapper. */
7a197a62 6495 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
6496 ;
6497 return 0;
6498}
6499_ACEOF
6500rm -f conftest$ac_exeext
7a197a62
AK
6501if { (ac_try="$ac_link"
6502case "(($ac_try" in
6503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504 *) ac_try_echo=$ac_try;;
6505esac
6506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_link") 2>&5
ad6254c5
AK
6508 ac_status=$?
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6511 { (case "(($ac_try" in
6512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6513 *) ac_try_echo=$ac_try;;
6514esac
6515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6516 (eval "$ac_try") 2>&5
ad6254c5
AK
6517 ac_status=$?
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; }; then
6520 ac_cv_func_lstat_dereferences_slashed_symlink=yes
6521else
6522 echo "$as_me: program exited with status $ac_status" >&5
6523echo "$as_me: failed program was:" >&5
6524sed 's/^/| /' conftest.$ac_ext >&5
6525
6526( exit $ac_status )
6527ac_cv_func_lstat_dereferences_slashed_symlink=no
6528fi
7a197a62 6529rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6530fi
7a197a62
AK
6531
6532
ad6254c5
AK
6533else
6534 # If the `ln -s' command failed, then we probably don't even
6535 # have an lstat function.
6536 ac_cv_func_lstat_dereferences_slashed_symlink=no
6537fi
6538rm -f conftest.sym conftest.file
6539
6540fi
7a197a62
AK
6541{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6542echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
6543
6544test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6545
6546cat >>confdefs.h <<_ACEOF
6547#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6548_ACEOF
6549
6550
6551if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 6552 case " $LIBOBJS " in
8a2fc586 6553 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
6554 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6555 ;;
8a2fc586
AK
6556esac
6557
ad6254c5
AK
6558fi
6559
7a197a62
AK
6560{ echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
6561echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
ad6254c5
AK
6562if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6564else
6565 if test "$cross_compiling" = yes; then
6566 ac_cv_func_lstat_empty_string_bug=yes
6567else
6568 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6569/* confdefs.h. */
6570_ACEOF
6571cat confdefs.h >>conftest.$ac_ext
6572cat >>conftest.$ac_ext <<_ACEOF
6573/* end confdefs.h. */
6574$ac_includes_default
6575int
6576main ()
6577{
6578struct stat sbuf;
7a197a62 6579 return lstat ("", &sbuf) == 0;
ad6254c5
AK
6580 ;
6581 return 0;
6582}
6583_ACEOF
6584rm -f conftest$ac_exeext
7a197a62
AK
6585if { (ac_try="$ac_link"
6586case "(($ac_try" in
6587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6589esac
6590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591 (eval "$ac_link") 2>&5
ad6254c5
AK
6592 ac_status=$?
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6595 { (case "(($ac_try" in
6596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6597 *) ac_try_echo=$ac_try;;
6598esac
6599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6600 (eval "$ac_try") 2>&5
ad6254c5
AK
6601 ac_status=$?
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; }; then
7a197a62 6604 ac_cv_func_lstat_empty_string_bug=no
ad6254c5
AK
6605else
6606 echo "$as_me: program exited with status $ac_status" >&5
6607echo "$as_me: failed program was:" >&5
6608sed 's/^/| /' conftest.$ac_ext >&5
6609
6610( exit $ac_status )
7a197a62 6611ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 6612fi
7a197a62 6613rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6614fi
7a197a62
AK
6615
6616
ad6254c5 6617fi
7a197a62
AK
6618{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
6619echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 6620if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 6621 case " $LIBOBJS " in
8a2fc586 6622 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
6623 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6624 ;;
8a2fc586
AK
6625esac
6626
ad6254c5
AK
6627
6628cat >>confdefs.h <<_ACEOF
6629#define HAVE_LSTAT_EMPTY_STRING_BUG 1
6630_ACEOF
6631
6632fi
6633
6634
6635for ac_header in stdlib.h
6636do
6637as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62
AK
6638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6641if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6643fi
7a197a62
AK
6644ac_res=`eval echo '${'$as_ac_Header'}'`
6645 { echo "$as_me:$LINENO: result: $ac_res" >&5
6646echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
6647else
6648 # Is the header compilable?
7a197a62
AK
6649{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6650echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 6651cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6652/* confdefs.h. */
6653_ACEOF
6654cat confdefs.h >>conftest.$ac_ext
6655cat >>conftest.$ac_ext <<_ACEOF
6656/* end confdefs.h. */
6657$ac_includes_default
6658#include <$ac_header>
6659_ACEOF
6660rm -f conftest.$ac_objext
7a197a62
AK
6661if { (ac_try="$ac_compile"
6662case "(($ac_try" in
6663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6664 *) ac_try_echo=$ac_try;;
6665esac
6666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6667 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6668 ac_status=$?
8a2fc586
AK
6669 grep -v '^ *+' conftest.er1 >conftest.err
6670 rm -f conftest.er1
6671 cat conftest.err >&5
ad6254c5 6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
6673 (exit $ac_status); } && {
6674 test -z "$ac_c_werror_flag" ||
6675 test ! -s conftest.err
6676 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6677 ac_header_compiler=yes
6678else
6679 echo "$as_me: failed program was:" >&5
6680sed 's/^/| /' conftest.$ac_ext >&5
6681
7a197a62 6682 ac_header_compiler=no
ad6254c5 6683fi
7a197a62
AK
6684
6685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6686{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6687echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
6688
6689# Is the header present?
7a197a62
AK
6690{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6691echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 6692cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6693/* confdefs.h. */
6694_ACEOF
6695cat confdefs.h >>conftest.$ac_ext
6696cat >>conftest.$ac_ext <<_ACEOF
6697/* end confdefs.h. */
6698#include <$ac_header>
6699_ACEOF
7a197a62
AK
6700if { (ac_try="$ac_cpp conftest.$ac_ext"
6701case "(($ac_try" in
6702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6703 *) ac_try_echo=$ac_try;;
6704esac
6705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
6707 ac_status=$?
6708 grep -v '^ *+' conftest.er1 >conftest.err
6709 rm -f conftest.er1
6710 cat conftest.err >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
6712 (exit $ac_status); } >/dev/null && {
6713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6714 test ! -s conftest.err
6715 }; then
ad6254c5
AK
6716 ac_header_preproc=yes
6717else
6718 echo "$as_me: failed program was:" >&5
6719sed 's/^/| /' conftest.$ac_ext >&5
6720
6721 ac_header_preproc=no
6722fi
7a197a62 6723
ad6254c5 6724rm -f conftest.err conftest.$ac_ext
7a197a62
AK
6725{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6726echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
6727
6728# So? What about this header?
8a2fc586
AK
6729case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6730 yes:no: )
ad6254c5
AK
6731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6732echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
6733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6734echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6735 ac_header_preproc=yes
ad6254c5 6736 ;;
8a2fc586 6737 no:yes:* )
ad6254c5
AK
6738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6739echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
6740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6741echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6743echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6745echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
6746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6747echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
6748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6749echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 6750
ad6254c5
AK
6751 ;;
6752esac
7a197a62
AK
6753{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6754echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6755if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757else
8a2fc586 6758 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 6759fi
7a197a62
AK
6760ac_res=`eval echo '${'$as_ac_Header'}'`
6761 { echo "$as_me:$LINENO: result: $ac_res" >&5
6762echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
6763
6764fi
6765if test `eval echo '${'$as_ac_Header'}'` = yes; then
6766 cat >>confdefs.h <<_ACEOF
6767#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6768_ACEOF
6769
6770fi
6771
6772done
6773
7a197a62
AK
6774{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
6775echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
ad6254c5
AK
6776if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6778else
6779 if test "$cross_compiling" = yes; then
6780 ac_cv_func_malloc_0_nonnull=no
6781else
6782 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6783/* confdefs.h. */
6784_ACEOF
6785cat confdefs.h >>conftest.$ac_ext
6786cat >>conftest.$ac_ext <<_ACEOF
6787/* end confdefs.h. */
7a197a62 6788#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
6789# include <stdlib.h>
6790#else
6791char *malloc ();
6792#endif
6793
6794int
6795main ()
6796{
7a197a62 6797return ! malloc (0);
ad6254c5
AK
6798 ;
6799 return 0;
6800}
6801_ACEOF
6802rm -f conftest$ac_exeext
7a197a62
AK
6803if { (ac_try="$ac_link"
6804case "(($ac_try" in
6805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6806 *) ac_try_echo=$ac_try;;
6807esac
6808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6809 (eval "$ac_link") 2>&5
ad6254c5
AK
6810 ac_status=$?
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6813 { (case "(($ac_try" in
6814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6815 *) ac_try_echo=$ac_try;;
6816esac
6817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6818 (eval "$ac_try") 2>&5
ad6254c5
AK
6819 ac_status=$?
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; }; then
6822 ac_cv_func_malloc_0_nonnull=yes
6823else
6824 echo "$as_me: program exited with status $ac_status" >&5
6825echo "$as_me: failed program was:" >&5
6826sed 's/^/| /' conftest.$ac_ext >&5
6827
6828( exit $ac_status )
6829ac_cv_func_malloc_0_nonnull=no
6830fi
7a197a62 6831rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6832fi
7a197a62
AK
6833
6834
ad6254c5 6835fi
7a197a62
AK
6836{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
6837echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
6838if test $ac_cv_func_malloc_0_nonnull = yes; then
6839
6840cat >>confdefs.h <<\_ACEOF
6841#define HAVE_MALLOC 1
6842_ACEOF
6843
6844else
6845 cat >>confdefs.h <<\_ACEOF
6846#define HAVE_MALLOC 0
6847_ACEOF
6848
7a197a62 6849 case " $LIBOBJS " in
8a2fc586 6850 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
6851 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6852 ;;
8a2fc586
AK
6853esac
6854
ad6254c5
AK
6855
6856cat >>confdefs.h <<\_ACEOF
6857#define malloc rpl_malloc
6858_ACEOF
6859
6860fi
6861
6862
6863
7a197a62
AK
6864{ echo "$as_me:$LINENO: checking for working memcmp" >&5
6865echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
ad6254c5
AK
6866if test "${ac_cv_func_memcmp_working+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6868else
6869 if test "$cross_compiling" = yes; then
6870 ac_cv_func_memcmp_working=no
6871else
6872 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6873/* confdefs.h. */
6874_ACEOF
6875cat confdefs.h >>conftest.$ac_ext
6876cat >>conftest.$ac_ext <<_ACEOF
6877/* end confdefs.h. */
8a2fc586 6878$ac_includes_default
ad6254c5
AK
6879int
6880main ()
6881{
6882
6883 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 6884 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 6885 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 6886 return 1;
ad6254c5
AK
6887
6888 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6889 or more and with at least one buffer not starting on a 4-byte boundary.
6890 William Lewis provided this test program. */
6891 {
6892 char foo[21];
6893 char bar[21];
6894 int i;
6895 for (i = 0; i < 4; i++)
6896 {
8a2fc586
AK
6897 char *a = foo + i;
6898 char *b = bar + i;
6899 strcpy (a, "--------01111111");
6900 strcpy (b, "--------10000000");
6901 if (memcmp (a, b, 16) >= 0)
7a197a62 6902 return 1;
ad6254c5 6903 }
7a197a62 6904 return 0;
ad6254c5
AK
6905 }
6906
6907 ;
6908 return 0;
6909}
6910_ACEOF
6911rm -f conftest$ac_exeext
7a197a62
AK
6912if { (ac_try="$ac_link"
6913case "(($ac_try" in
6914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6915 *) ac_try_echo=$ac_try;;
6916esac
6917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6918 (eval "$ac_link") 2>&5
ad6254c5
AK
6919 ac_status=$?
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6922 { (case "(($ac_try" in
6923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6924 *) ac_try_echo=$ac_try;;
6925esac
6926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6927 (eval "$ac_try") 2>&5
ad6254c5
AK
6928 ac_status=$?
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); }; }; then
6931 ac_cv_func_memcmp_working=yes
6932else
6933 echo "$as_me: program exited with status $ac_status" >&5
6934echo "$as_me: failed program was:" >&5
6935sed 's/^/| /' conftest.$ac_ext >&5
6936
6937( exit $ac_status )
6938ac_cv_func_memcmp_working=no
6939fi
7a197a62 6940rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6941fi
7a197a62
AK
6942
6943
ad6254c5 6944fi
7a197a62
AK
6945{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
6946echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
6947test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 6948 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
6949 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6950 ;;
8a2fc586
AK
6951esac
6952
ad6254c5
AK
6953
6954
6955
6956for ac_header in stdlib.h unistd.h
6957do
6958as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62
AK
6959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6964fi
7a197a62
AK
6965ac_res=`eval echo '${'$as_ac_Header'}'`
6966 { echo "$as_me:$LINENO: result: $ac_res" >&5
6967echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
6968else
6969 # Is the header compilable?
7a197a62
AK
6970{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6971echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 6972cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6973/* confdefs.h. */
6974_ACEOF
6975cat confdefs.h >>conftest.$ac_ext
6976cat >>conftest.$ac_ext <<_ACEOF
6977/* end confdefs.h. */
6978$ac_includes_default
6979#include <$ac_header>
6980_ACEOF
6981rm -f conftest.$ac_objext
7a197a62
AK
6982if { (ac_try="$ac_compile"
6983case "(($ac_try" in
6984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6985 *) ac_try_echo=$ac_try;;
6986esac
6987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6988 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6989 ac_status=$?
8a2fc586
AK
6990 grep -v '^ *+' conftest.er1 >conftest.err
6991 rm -f conftest.er1
6992 cat conftest.err >&5
ad6254c5 6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
6994 (exit $ac_status); } && {
6995 test -z "$ac_c_werror_flag" ||
6996 test ! -s conftest.err
6997 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6998 ac_header_compiler=yes
6999else
7000 echo "$as_me: failed program was:" >&5
7001sed 's/^/| /' conftest.$ac_ext >&5
7002
7a197a62 7003 ac_header_compiler=no
ad6254c5 7004fi
7a197a62
AK
7005
7006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7007{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7008echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
7009
7010# Is the header present?
7a197a62
AK
7011{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7012echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 7013cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7014/* confdefs.h. */
7015_ACEOF
7016cat confdefs.h >>conftest.$ac_ext
7017cat >>conftest.$ac_ext <<_ACEOF
7018/* end confdefs.h. */
7019#include <$ac_header>
7020_ACEOF
7a197a62
AK
7021if { (ac_try="$ac_cpp conftest.$ac_ext"
7022case "(($ac_try" in
7023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7024 *) ac_try_echo=$ac_try;;
7025esac
7026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7028 ac_status=$?
7029 grep -v '^ *+' conftest.er1 >conftest.err
7030 rm -f conftest.er1
7031 cat conftest.err >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
7033 (exit $ac_status); } >/dev/null && {
7034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7035 test ! -s conftest.err
7036 }; then
ad6254c5
AK
7037 ac_header_preproc=yes
7038else
7039 echo "$as_me: failed program was:" >&5
7040sed 's/^/| /' conftest.$ac_ext >&5
7041
7042 ac_header_preproc=no
7043fi
7a197a62 7044
ad6254c5 7045rm -f conftest.err conftest.$ac_ext
7a197a62
AK
7046{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7047echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
7048
7049# So? What about this header?
8a2fc586
AK
7050case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7051 yes:no: )
ad6254c5
AK
7052 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7053echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
7054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7055echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7056 ac_header_preproc=yes
ad6254c5 7057 ;;
8a2fc586 7058 no:yes:* )
ad6254c5
AK
7059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7060echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
7061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7062echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7063 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7064echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7065 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7066echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
7067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7068echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
7069 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7070echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7071
ad6254c5
AK
7072 ;;
7073esac
7a197a62
AK
7074{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7076if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7078else
8a2fc586 7079 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7080fi
7a197a62
AK
7081ac_res=`eval echo '${'$as_ac_Header'}'`
7082 { echo "$as_me:$LINENO: result: $ac_res" >&5
7083echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7084
7085fi
7086if test `eval echo '${'$as_ac_Header'}'` = yes; then
7087 cat >>confdefs.h <<_ACEOF
7088#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7089_ACEOF
7090
7091fi
7092
7093done
7094
7095
7096for ac_func in getpagesize
7097do
7098as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7a197a62
AK
7099{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7100echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7101if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7103else
7104 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7105/* confdefs.h. */
7106_ACEOF
7107cat confdefs.h >>conftest.$ac_ext
7108cat >>conftest.$ac_ext <<_ACEOF
7109/* end confdefs.h. */
8a2fc586
AK
7110/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7112#define $ac_func innocuous_$ac_func
7113
ad6254c5
AK
7114/* System header to define __stub macros and hopefully few prototypes,
7115 which can conflict with char $ac_func (); below.
7116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7117 <limits.h> exists even on freestanding compilers. */
8a2fc586 7118
ad6254c5
AK
7119#ifdef __STDC__
7120# include <limits.h>
7121#else
7122# include <assert.h>
7123#endif
8a2fc586
AK
7124
7125#undef $ac_func
7126
7a197a62
AK
7127/* Override any GCC internal prototype to avoid an error.
7128 Use char because int might match the return type of a GCC
7129 builtin and then its argument prototype would still apply. */
ad6254c5
AK
7130#ifdef __cplusplus
7131extern "C"
ad6254c5 7132#endif
ad6254c5
AK
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. */
7a197a62 7137#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7138choke me
ad6254c5
AK
7139#endif
7140
7141int
7142main ()
7143{
7a197a62 7144return $ac_func ();
ad6254c5
AK
7145 ;
7146 return 0;
7147}
7148_ACEOF
7149rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7150if { (ac_try="$ac_link"
7151case "(($ac_try" in
7152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7153 *) ac_try_echo=$ac_try;;
7154esac
7155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7156 (eval "$ac_link") 2>conftest.er1
ad6254c5 7157 ac_status=$?
8a2fc586
AK
7158 grep -v '^ *+' conftest.er1 >conftest.err
7159 rm -f conftest.er1
7160 cat conftest.err >&5
ad6254c5 7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
7162 (exit $ac_status); } && {
7163 test -z "$ac_c_werror_flag" ||
7164 test ! -s conftest.err
7165 } && test -s conftest$ac_exeext &&
7166 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
7167 eval "$as_ac_var=yes"
7168else
7169 echo "$as_me: failed program was:" >&5
7170sed 's/^/| /' conftest.$ac_ext >&5
7171
7a197a62 7172 eval "$as_ac_var=no"
ad6254c5 7173fi
7a197a62
AK
7174
7175rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7176 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7177fi
7a197a62
AK
7178ac_res=`eval echo '${'$as_ac_var'}'`
7179 { echo "$as_me:$LINENO: result: $ac_res" >&5
7180echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7181if test `eval echo '${'$as_ac_var'}'` = yes; then
7182 cat >>confdefs.h <<_ACEOF
7183#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7184_ACEOF
7185
7186fi
7187done
7188
7a197a62
AK
7189{ echo "$as_me:$LINENO: checking for working mmap" >&5
7190echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
ad6254c5
AK
7191if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7193else
7194 if test "$cross_compiling" = yes; then
7195 ac_cv_func_mmap_fixed_mapped=no
7196else
7197 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7198/* confdefs.h. */
7199_ACEOF
7200cat confdefs.h >>conftest.$ac_ext
7201cat >>conftest.$ac_ext <<_ACEOF
7202/* end confdefs.h. */
7203$ac_includes_default
7204/* malloc might have been renamed as rpl_malloc. */
7205#undef malloc
7206
7207/* Thanks to Mike Haertel and Jim Avera for this test.
7208 Here is a matrix of mmap possibilities:
7209 mmap private not fixed
7210 mmap private fixed at somewhere currently unmapped
7211 mmap private fixed at somewhere already mapped
7212 mmap shared not fixed
7213 mmap shared fixed at somewhere currently unmapped
7214 mmap shared fixed at somewhere already mapped
7215 For private mappings, we should verify that changes cannot be read()
7216 back from the file, nor mmap's back from the file at a different
7217 address. (There have been systems where private was not correctly
7218 implemented like the infamous i386 svr4.0, and systems where the
7219 VM page cache was not coherent with the file system buffer cache
7220 like early versions of FreeBSD and possibly contemporary NetBSD.)
7221 For shared mappings, we should conversely verify that changes get
7222 propagated back to all the places they're supposed to be.
7223
7224 Grep wants private fixed already mapped.
7225 The main things grep needs to know about mmap are:
7226 * does it exist and is it safe to write into the mmap'd area
7227 * how to use it (BSD variants) */
7228
7229#include <fcntl.h>
7230#include <sys/mman.h>
7231
7a197a62 7232#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
7233char *malloc ();
7234#endif
7235
7236/* This mess was copied from the GNU getpagesize.h. */
7a197a62 7237#ifndef HAVE_GETPAGESIZE
ad6254c5 7238/* Assume that all systems that can run configure have sys/param.h. */
7a197a62 7239# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
7240# define HAVE_SYS_PARAM_H 1
7241# endif
7242
7243# ifdef _SC_PAGESIZE
7244# define getpagesize() sysconf(_SC_PAGESIZE)
7245# else /* no _SC_PAGESIZE */
7a197a62 7246# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
7247# include <sys/param.h>
7248# ifdef EXEC_PAGESIZE
7249# define getpagesize() EXEC_PAGESIZE
7250# else /* no EXEC_PAGESIZE */
7251# ifdef NBPG
7252# define getpagesize() NBPG * CLSIZE
7253# ifndef CLSIZE
7254# define CLSIZE 1
7255# endif /* no CLSIZE */
7256# else /* no NBPG */
7257# ifdef NBPC
7258# define getpagesize() NBPC
7259# else /* no NBPC */
7260# ifdef PAGESIZE
7261# define getpagesize() PAGESIZE
7262# endif /* PAGESIZE */
7263# endif /* no NBPC */
7264# endif /* no NBPG */
7265# endif /* no EXEC_PAGESIZE */
7266# else /* no HAVE_SYS_PARAM_H */
7267# define getpagesize() 8192 /* punt totally */
7268# endif /* no HAVE_SYS_PARAM_H */
7269# endif /* no _SC_PAGESIZE */
7270
7271#endif /* no HAVE_GETPAGESIZE */
7272
7273int
7274main ()
7275{
7276 char *data, *data2, *data3;
7277 int i, pagesize;
7278 int fd;
7279
7280 pagesize = getpagesize ();
7281
7282 /* First, make a file with some known garbage in it. */
7283 data = (char *) malloc (pagesize);
7284 if (!data)
7a197a62 7285 return 1;
ad6254c5
AK
7286 for (i = 0; i < pagesize; ++i)
7287 *(data + i) = rand ();
7288 umask (0);
7289 fd = creat ("conftest.mmap", 0600);
7290 if (fd < 0)
7a197a62 7291 return 1;
ad6254c5 7292 if (write (fd, data, pagesize) != pagesize)
7a197a62 7293 return 1;
ad6254c5
AK
7294 close (fd);
7295
7296 /* Next, try to mmap the file at a fixed address which already has
7297 something else allocated at it. If we can, also make sure that
7298 we see the same garbage. */
7299 fd = open ("conftest.mmap", O_RDWR);
7300 if (fd < 0)
7a197a62 7301 return 1;
ad6254c5
AK
7302 data2 = (char *) malloc (2 * pagesize);
7303 if (!data2)
7a197a62
AK
7304 return 1;
7305 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 7306 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 7307 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 7308 return 1;
ad6254c5
AK
7309 for (i = 0; i < pagesize; ++i)
7310 if (*(data + i) != *(data2 + i))
7a197a62 7311 return 1;
ad6254c5
AK
7312
7313 /* Finally, make sure that changes to the mapped area do not
7314 percolate back to the file as seen by read(). (This is a bug on
7315 some variants of i386 svr4.0.) */
7316 for (i = 0; i < pagesize; ++i)
7317 *(data2 + i) = *(data2 + i) + 1;
7318 data3 = (char *) malloc (pagesize);
7319 if (!data3)
7a197a62 7320 return 1;
ad6254c5 7321 if (read (fd, data3, pagesize) != pagesize)
7a197a62 7322 return 1;
ad6254c5
AK
7323 for (i = 0; i < pagesize; ++i)
7324 if (*(data + i) != *(data3 + i))
7a197a62 7325 return 1;
ad6254c5 7326 close (fd);
7a197a62 7327 return 0;
ad6254c5
AK
7328}
7329_ACEOF
7330rm -f conftest$ac_exeext
7a197a62
AK
7331if { (ac_try="$ac_link"
7332case "(($ac_try" in
7333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7334 *) ac_try_echo=$ac_try;;
7335esac
7336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7337 (eval "$ac_link") 2>&5
ad6254c5
AK
7338 ac_status=$?
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7341 { (case "(($ac_try" in
7342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7344esac
7345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346 (eval "$ac_try") 2>&5
ad6254c5
AK
7347 ac_status=$?
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; }; then
7350 ac_cv_func_mmap_fixed_mapped=yes
7351else
7352 echo "$as_me: program exited with status $ac_status" >&5
7353echo "$as_me: failed program was:" >&5
7354sed 's/^/| /' conftest.$ac_ext >&5
7355
7356( exit $ac_status )
7357ac_cv_func_mmap_fixed_mapped=no
7358fi
7a197a62 7359rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7360fi
7a197a62
AK
7361
7362
ad6254c5 7363fi
7a197a62
AK
7364{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7365echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
7366if test $ac_cv_func_mmap_fixed_mapped = yes; then
7367
7368cat >>confdefs.h <<\_ACEOF
7369#define HAVE_MMAP 1
7370_ACEOF
7371
7372fi
7373rm -f conftest.mmap
7374
7a197a62
AK
7375{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
7376echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
ad6254c5
AK
7377if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7379else
7380 if test "$cross_compiling" = yes; then
7381 ac_cv_func_stat_empty_string_bug=yes
7382else
7383 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7384/* confdefs.h. */
7385_ACEOF
7386cat confdefs.h >>conftest.$ac_ext
7387cat >>conftest.$ac_ext <<_ACEOF
7388/* end confdefs.h. */
7389$ac_includes_default
7390int
7391main ()
7392{
7393struct stat sbuf;
7a197a62 7394 return stat ("", &sbuf) == 0;
ad6254c5
AK
7395 ;
7396 return 0;
7397}
7398_ACEOF
7399rm -f conftest$ac_exeext
7a197a62
AK
7400if { (ac_try="$ac_link"
7401case "(($ac_try" in
7402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7403 *) ac_try_echo=$ac_try;;
7404esac
7405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7406 (eval "$ac_link") 2>&5
ad6254c5
AK
7407 ac_status=$?
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7410 { (case "(($ac_try" in
7411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7412 *) ac_try_echo=$ac_try;;
7413esac
7414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7415 (eval "$ac_try") 2>&5
ad6254c5
AK
7416 ac_status=$?
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); }; }; then
7a197a62 7419 ac_cv_func_stat_empty_string_bug=no
ad6254c5
AK
7420else
7421 echo "$as_me: program exited with status $ac_status" >&5
7422echo "$as_me: failed program was:" >&5
7423sed 's/^/| /' conftest.$ac_ext >&5
7424
7425( exit $ac_status )
7a197a62 7426ac_cv_func_stat_empty_string_bug=yes
ad6254c5 7427fi
7a197a62 7428rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7429fi
7a197a62
AK
7430
7431
ad6254c5 7432fi
7a197a62
AK
7433{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
7434echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 7435if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 7436 case " $LIBOBJS " in
8a2fc586 7437 *" stat.$ac_objext "* ) ;;
7a197a62
AK
7438 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
7439 ;;
8a2fc586
AK
7440esac
7441
ad6254c5
AK
7442
7443cat >>confdefs.h <<_ACEOF
7444#define HAVE_STAT_EMPTY_STRING_BUG 1
7445_ACEOF
7446
7447fi
7448
7a197a62
AK
7449{ echo "$as_me:$LINENO: checking for working strtod" >&5
7450echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
ad6254c5
AK
7451if test "${ac_cv_func_strtod+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7453else
7454 if test "$cross_compiling" = yes; then
7455 ac_cv_func_strtod=no
7456else
7457 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7458/* confdefs.h. */
7459_ACEOF
7460cat confdefs.h >>conftest.$ac_ext
7461cat >>conftest.$ac_ext <<_ACEOF
7462/* end confdefs.h. */
7463
7a197a62
AK
7464$ac_includes_default
7465#ifndef strtod
ad6254c5 7466double strtod ();
7a197a62 7467#endif
ad6254c5
AK
7468int
7469main()
7470{
7471 {
7472 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
7473 char *string = " +69";
7474 char *term;
7475 double value;
7476 value = strtod (string, &term);
7477 if (value != 69 || term != (string + 4))
7a197a62 7478 return 1;
ad6254c5
AK
7479 }
7480
7481 {
7482 /* Under Solaris 2.4, strtod returns the wrong value for the
7483 terminating character under some conditions. */
7484 char *string = "NaN";
7485 char *term;
7486 strtod (string, &term);
7487 if (term != string && *(term - 1) == 0)
7a197a62 7488 return 1;
ad6254c5 7489 }
7a197a62 7490 return 0;
ad6254c5
AK
7491}
7492
7493_ACEOF
7494rm -f conftest$ac_exeext
7a197a62
AK
7495if { (ac_try="$ac_link"
7496case "(($ac_try" in
7497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7498 *) ac_try_echo=$ac_try;;
7499esac
7500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7501 (eval "$ac_link") 2>&5
ad6254c5
AK
7502 ac_status=$?
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7505 { (case "(($ac_try" in
7506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7507 *) ac_try_echo=$ac_try;;
7508esac
7509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7510 (eval "$ac_try") 2>&5
ad6254c5
AK
7511 ac_status=$?
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; }; then
7514 ac_cv_func_strtod=yes
7515else
7516 echo "$as_me: program exited with status $ac_status" >&5
7517echo "$as_me: failed program was:" >&5
7518sed 's/^/| /' conftest.$ac_ext >&5
7519
7520( exit $ac_status )
7521ac_cv_func_strtod=no
7522fi
7a197a62 7523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7524fi
7a197a62
AK
7525
7526
ad6254c5 7527fi
7a197a62
AK
7528{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
7529echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
ad6254c5 7530if test $ac_cv_func_strtod = no; then
7a197a62 7531 case " $LIBOBJS " in
8a2fc586 7532 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
7533 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
7534 ;;
8a2fc586
AK
7535esac
7536
7a197a62
AK
7537{ echo "$as_me:$LINENO: checking for pow" >&5
7538echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
ad6254c5
AK
7539if test "${ac_cv_func_pow+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7541else
7542 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7543/* confdefs.h. */
7544_ACEOF
7545cat confdefs.h >>conftest.$ac_ext
7546cat >>conftest.$ac_ext <<_ACEOF
7547/* end confdefs.h. */
8a2fc586
AK
7548/* Define pow to an innocuous variant, in case <limits.h> declares pow.
7549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7550#define pow innocuous_pow
7551
ad6254c5
AK
7552/* System header to define __stub macros and hopefully few prototypes,
7553 which can conflict with char pow (); below.
7554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7555 <limits.h> exists even on freestanding compilers. */
8a2fc586 7556
ad6254c5
AK
7557#ifdef __STDC__
7558# include <limits.h>
7559#else
7560# include <assert.h>
7561#endif
8a2fc586
AK
7562
7563#undef pow
7564
7a197a62
AK
7565/* Override any GCC internal prototype to avoid an error.
7566 Use char because int might match the return type of a GCC
7567 builtin and then its argument prototype would still apply. */
ad6254c5
AK
7568#ifdef __cplusplus
7569extern "C"
ad6254c5 7570#endif
ad6254c5
AK
7571char pow ();
7572/* The GNU C library defines this for functions which it implements
7573 to always fail with ENOSYS. Some functions are actually named
7574 something starting with __ and the normal name is an alias. */
7a197a62 7575#if defined __stub_pow || defined __stub___pow
ad6254c5 7576choke me
ad6254c5
AK
7577#endif
7578
7579int
7580main ()
7581{
7a197a62 7582return pow ();
ad6254c5
AK
7583 ;
7584 return 0;
7585}
7586_ACEOF
7587rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7588if { (ac_try="$ac_link"
7589case "(($ac_try" in
7590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7591 *) ac_try_echo=$ac_try;;
7592esac
7593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7594 (eval "$ac_link") 2>conftest.er1
ad6254c5 7595 ac_status=$?
8a2fc586
AK
7596 grep -v '^ *+' conftest.er1 >conftest.err
7597 rm -f conftest.er1
7598 cat conftest.err >&5
ad6254c5 7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
7600 (exit $ac_status); } && {
7601 test -z "$ac_c_werror_flag" ||
7602 test ! -s conftest.err
7603 } && test -s conftest$ac_exeext &&
7604 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
7605 ac_cv_func_pow=yes
7606else
7607 echo "$as_me: failed program was:" >&5
7608sed 's/^/| /' conftest.$ac_ext >&5
7609
7a197a62 7610 ac_cv_func_pow=no
ad6254c5 7611fi
7a197a62
AK
7612
7613rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7614 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7615fi
7a197a62
AK
7616{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
7617echo "${ECHO_T}$ac_cv_func_pow" >&6; }
ad6254c5
AK
7618
7619if test $ac_cv_func_pow = no; then
7a197a62
AK
7620 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
7621echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
ad6254c5
AK
7622if test "${ac_cv_lib_m_pow+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7624else
7625 ac_check_lib_save_LIBS=$LIBS
7626LIBS="-lm $LIBS"
7627cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7628/* confdefs.h. */
7629_ACEOF
7630cat confdefs.h >>conftest.$ac_ext
7631cat >>conftest.$ac_ext <<_ACEOF
7632/* end confdefs.h. */
7633
7a197a62
AK
7634/* Override any GCC internal prototype to avoid an error.
7635 Use char because int might match the return type of a GCC
7636 builtin and then its argument prototype would still apply. */
ad6254c5
AK
7637#ifdef __cplusplus
7638extern "C"
7639#endif
ad6254c5
AK
7640char pow ();
7641int
7642main ()
7643{
7a197a62 7644return pow ();
ad6254c5
AK
7645 ;
7646 return 0;
7647}
7648_ACEOF
7649rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7650if { (ac_try="$ac_link"
7651case "(($ac_try" in
7652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653 *) ac_try_echo=$ac_try;;
7654esac
7655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7656 (eval "$ac_link") 2>conftest.er1
ad6254c5 7657 ac_status=$?
8a2fc586
AK
7658 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -f conftest.er1
7660 cat conftest.err >&5
ad6254c5 7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
7662 (exit $ac_status); } && {
7663 test -z "$ac_c_werror_flag" ||
7664 test ! -s conftest.err
7665 } && test -s conftest$ac_exeext &&
7666 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
7667 ac_cv_lib_m_pow=yes
7668else
7669 echo "$as_me: failed program was:" >&5
7670sed 's/^/| /' conftest.$ac_ext >&5
7671
7a197a62 7672 ac_cv_lib_m_pow=no
ad6254c5 7673fi
7a197a62
AK
7674
7675rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7676 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7677LIBS=$ac_check_lib_save_LIBS
7678fi
7a197a62
AK
7679{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
7680echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
ad6254c5
AK
7681if test $ac_cv_lib_m_pow = yes; then
7682 POW_LIB=-lm
7683else
7684 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
7685echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
7686fi
7687
7688fi
7689
7690fi
7691
7692
7693################################################################################
7694
7695
7696################################################################################
7a197a62 7697# Check whether --enable-jobs was given.
ad6254c5 7698if test "${enable_jobs+set}" = set; then
7a197a62 7699 enableval=$enable_jobs; JOBS=-j$enableval
ad6254c5
AK
7700else
7701 JOBS=-j2
7a197a62
AK
7702fi
7703
ad6254c5
AK
7704
7705################################################################################
7a197a62
AK
7706{ echo "$as_me:$LINENO: checking file owner" >&5
7707echo $ECHO_N "checking file owner... $ECHO_C" >&6; }
ad6254c5
AK
7708OWNER="root"
7709
7710
7a197a62 7711# Check whether --with-user was given.
ad6254c5 7712if test "${with_user+set}" = set; then
7a197a62
AK
7713 withval=$with_user; OWNER="$withval"
7714fi
7715
7716{ echo "$as_me:$LINENO: result: $OWNER" >&5
7717echo "${ECHO_T}$OWNER" >&6; }
ad6254c5
AK
7718
7719if test x$OWNER != x; then
7720 OWNER="-o $OWNER"
7721fi
7722
7723################################################################################
7a197a62
AK
7724{ echo "$as_me:$LINENO: checking group owner" >&5
7725echo $ECHO_N "checking group owner... $ECHO_C" >&6; }
ad6254c5
AK
7726GROUP="root"
7727
7a197a62 7728# Check whether --with-group was given.
ad6254c5 7729if test "${with_group+set}" = set; then
7a197a62
AK
7730 withval=$with_group; GROUP="$withval"
7731fi
7732
7733{ echo "$as_me:$LINENO: result: $GROUP" >&5
7734echo "${ECHO_T}$GROUP" >&6; }
ad6254c5
AK
7735
7736if test x$GROUP != x; then
7737 GROUP="-g $GROUP"
7738fi
7739
7740################################################################################
7a197a62
AK
7741{ echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
7742echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6; }
7743# Check whether --enable-lvm1_fallback was given.
ad6254c5 7744if test "${enable_lvm1_fallback+set}" = set; then
7a197a62 7745 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
ad6254c5
AK
7746else
7747 LVM1_FALLBACK=no
7a197a62
AK
7748fi
7749
7750{ echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
7751echo "${ECHO_T}$LVM1_FALLBACK" >&6; }
ad6254c5
AK
7752
7753if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
7754
7755cat >>confdefs.h <<\_ACEOF
7756#define LVM1_FALLBACK 1
7757_ACEOF
7758
ad6254c5
AK
7759fi
7760
7761################################################################################
7a197a62
AK
7762{ echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
7763echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6; }
ad6254c5 7764
7a197a62 7765# Check whether --with-lvm1 was given.
ad6254c5 7766if test "${with_lvm1+set}" = set; then
7a197a62 7767 withval=$with_lvm1; LVM1="$withval"
ad6254c5
AK
7768else
7769 LVM1="internal"
7a197a62
AK
7770fi
7771
7772{ echo "$as_me:$LINENO: result: $LVM1" >&5
7773echo "${ECHO_T}$LVM1" >&6; }
ad6254c5
AK
7774
7775if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
7776 then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
7777" >&5
7778echo "$as_me: error: --with-lvm1 parameter invalid
7779" >&2;}
7780 { (exit 1); exit 1; }; }
7781fi;
7782
7783if test x$LVM1 = xinternal; then
72b2cb61
AK
7784
7785cat >>confdefs.h <<\_ACEOF
7786#define LVM1_INTERNAL 1
7787_ACEOF
7788
ad6254c5
AK
7789fi
7790
7791################################################################################
7a197a62
AK
7792{ echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
7793echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6; }
ad6254c5 7794
7a197a62 7795# Check whether --with-pool was given.
ad6254c5 7796if test "${with_pool+set}" = set; then
7a197a62 7797 withval=$with_pool; POOL="$withval"
ad6254c5
AK
7798else
7799 POOL="internal"
7a197a62
AK
7800fi
7801
7802{ echo "$as_me:$LINENO: result: $POOL" >&5
7803echo "${ECHO_T}$POOL" >&6; }
ad6254c5
AK
7804
7805if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
7806 then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid
7807" >&5
7808echo "$as_me: error: --with-pool parameter invalid
7809" >&2;}
7810 { (exit 1); exit 1; }; }
7811fi;
7812
7813if test x$POOL = xinternal; then
72b2cb61
AK
7814
7815cat >>confdefs.h <<\_ACEOF
7816#define POOL_INTERNAL 1
7817_ACEOF
7818
ad6254c5
AK
7819fi
7820
7821################################################################################
7a197a62
AK
7822{ echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
7823echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6; }
ad6254c5 7824
7a197a62 7825# Check whether --with-cluster was given.
ad6254c5 7826if test "${with_cluster+set}" = set; then
7a197a62
AK
7827 withval=$with_cluster; CLUSTER="$withval"
7828fi
7829
7830{ echo "$as_me:$LINENO: result: $CLUSTER" >&5
7831echo "${ECHO_T}$CLUSTER" >&6; }
ad6254c5
AK
7832
7833if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
7834 then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid
7835" >&5
7836echo "$as_me: error: --with-cluster parameter invalid
7837" >&2;}
7838 { (exit 1); exit 1; }; }
7839fi;
7840
7841if test x$CLUSTER = xinternal; then
72b2cb61
AK
7842
7843cat >>confdefs.h <<\_ACEOF
7844#define CLUSTER_LOCKING_INTERNAL 1
7845_ACEOF
7846
ad6254c5
AK
7847fi
7848
7849################################################################################
7a197a62
AK
7850{ echo "$as_me:$LINENO: checking whether to include snapshots" >&5
7851echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6; }
ad6254c5 7852
7a197a62 7853# Check whether --with-snapshots was given.
ad6254c5 7854if test "${with_snapshots+set}" = set; then
7a197a62 7855 withval=$with_snapshots; SNAPSHOTS="$withval"
ad6254c5
AK
7856else
7857 SNAPSHOTS="internal"
7a197a62
AK
7858fi
7859
7860{ echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
7861echo "${ECHO_T}$SNAPSHOTS" >&6; }
ad6254c5
AK
7862
7863if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
7864 then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
7865" >&5
7866echo "$as_me: error: --with-snapshots parameter invalid
7867" >&2;}
7868 { (exit 1); exit 1; }; }
7869fi;
7870
7871if test x$SNAPSHOTS = xinternal; then
72b2cb61
AK
7872
7873cat >>confdefs.h <<\_ACEOF
7874#define SNAPSHOT_INTERNAL 1
7875_ACEOF
7876
ad6254c5
AK
7877fi
7878
7879################################################################################
7a197a62
AK
7880{ echo "$as_me:$LINENO: checking whether to include mirrors" >&5
7881echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6; }
ad6254c5 7882
7a197a62 7883# Check whether --with-mirrors was given.
ad6254c5 7884if test "${with_mirrors+set}" = set; then
7a197a62 7885 withval=$with_mirrors; MIRRORS="$withval"
ad6254c5
AK
7886else
7887 MIRRORS="internal"
7a197a62
AK
7888fi
7889
7890{ echo "$as_me:$LINENO: result: $MIRRORS" >&5
7891echo "${ECHO_T}$MIRRORS" >&6; }
ad6254c5
AK
7892
7893if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
7894 then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
7895" >&5
7896echo "$as_me: error: --with-mirrors parameter invalid
7897" >&2;}
7898 { (exit 1); exit 1; }; }
7899fi;
7900
7901if test x$MIRRORS = xinternal; then
72b2cb61
AK
7902
7903cat >>confdefs.h <<\_ACEOF
7904#define MIRRORED_INTERNAL 1
7905_ACEOF
7906
ad6254c5
AK
7907fi
7908
7909################################################################################
7a197a62
AK
7910{ echo "$as_me:$LINENO: checking whether to use static linking" >&5
7911echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6; }
7912# Check whether --enable-static_link was given.
ad6254c5 7913if test "${enable_static_link+set}" = set; then
7a197a62 7914 enableval=$enable_static_link; STATIC_LINK=$enableval
ad6254c5
AK
7915else
7916 STATIC_LINK=no
7a197a62
AK
7917fi
7918
7919{ echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
7920echo "${ECHO_T}$STATIC_LINK" >&6; }
ad6254c5
AK
7921
7922################################################################################
7a197a62
AK
7923{ echo "$as_me:$LINENO: checking whether to enable readline" >&5
7924echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6; }
7925# Check whether --enable-readline was given.
ad6254c5 7926if test "${enable_readline+set}" = set; then
7a197a62 7927 enableval=$enable_readline; READLINE=$enableval
ad6254c5
AK
7928else
7929 READLINE=no
7a197a62
AK
7930fi
7931
7932{ echo "$as_me:$LINENO: result: $READLINE" >&5
7933echo "${ECHO_T}$READLINE" >&6; }
ad6254c5
AK
7934
7935if test x$READLINE = xyes; then
72b2cb61
AK
7936
7937cat >>confdefs.h <<\_ACEOF
7938#define READLINE_SUPPORT 1
7939_ACEOF
7940
ad6254c5
AK
7941fi
7942
7943################################################################################
7a197a62
AK
7944{ echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
7945echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6; }
7946# Check whether --enable-selinux was given.
ad6254c5 7947if test "${enable_selinux+set}" = set; then
7a197a62
AK
7948 enableval=$enable_selinux; SELINUX=$enableval
7949fi
7950
7951{ echo "$as_me:$LINENO: result: $SELINUX" >&5
7952echo "${ECHO_T}$SELINUX" >&6; }
ad6254c5 7953
8b1a3214 7954################################################################################
7a197a62
AK
7955{ echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
7956echo $ECHO_N "checking whether to enable realtime support... $ECHO_C" >&6; }
7957# Check whether --enable-realtime was given.
8b1a3214 7958if test "${enable_realtime+set}" = set; then
7a197a62
AK
7959 enableval=$enable_realtime; REALTIME=$enableval
7960fi
7961
7962{ echo "$as_me:$LINENO: result: $REALTIME" >&5
7963echo "${ECHO_T}$REALTIME" >&6; }
8b1a3214 7964
ad6254c5 7965################################################################################
7a197a62
AK
7966{ echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
7967echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6; }
ad6254c5 7968
7a197a62 7969# Check whether --with-clvmd was given.
ad6254c5 7970if test "${with_clvmd+set}" = set; then
7a197a62 7971 withval=$with_clvmd; CLVMD="$withval"
ad6254c5 7972else
a266258f 7973 CLVMD="none"
7a197a62
AK
7974fi
7975
a266258f 7976if test x$CLVMD = xyes; then
5c7fc7c4 7977 CLVMD=all
b1098701 7978fi
7a197a62
AK
7979{ echo "$as_me:$LINENO: result: $CLVMD" >&5
7980echo "${ECHO_T}$CLVMD" >&6; }
ad6254c5 7981
a266258f 7982if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
ad6254c5
AK
7983 CLUSTER=internal
7984fi
7985
7986################################################################################
7a197a62
AK
7987{ echo "$as_me:$LINENO: checking whether to enable debugging" >&5
7988echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; }
7989# Check whether --enable-debug was given.
ad6254c5 7990if test "${enable_debug+set}" = set; then
7a197a62 7991 enableval=$enable_debug; DEBUG=$enableval
ad6254c5
AK
7992else
7993 DEBUG=no
7a197a62
AK
7994fi
7995
7996{ echo "$as_me:$LINENO: result: $DEBUG" >&5
7997echo "${ECHO_T}$DEBUG" >&6; }
ad6254c5
AK
7998
7999if test x$DEBUG = xyes; then
8000 COPTIMISE_FLAG=
8a2fc586
AK
8001else
8002 CSCOPE_CMD=
ad6254c5
AK
8003fi
8004
8005################################################################################
7a197a62
AK
8006{ echo "$as_me:$LINENO: checking for C optimisation flag" >&5
8007echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6; }
ad6254c5 8008
7a197a62 8009# Check whether --with-optimisation was given.
ad6254c5 8010if test "${with_optimisation+set}" = set; then
7a197a62
AK
8011 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
8012fi
8013
8014{ echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
8015echo "${ECHO_T}$COPTIMISE_FLAG" >&6; }
ad6254c5
AK
8016
8017################################################################################
7a197a62
AK
8018{ echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
8019echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6; }
8020# Check whether --enable-devmapper was given.
ad6254c5 8021if test "${enable_devmapper+set}" = set; then
7a197a62
AK
8022 enableval=$enable_devmapper; DEVMAPPER=$enableval
8023fi
8024
8025{ echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
8026echo "${ECHO_T}$DEVMAPPER" >&6; }
ad6254c5
AK
8027
8028if test x$DEVMAPPER = xyes; then
72b2cb61
AK
8029
8030cat >>confdefs.h <<\_ACEOF
8031#define DEVMAPPER_SUPPORT 1
8032_ACEOF
8033
ad6254c5
AK
8034fi
8035
8036################################################################################
7a197a62
AK
8037{ echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
8038echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6; }
8039# Check whether --enable-o_direct was given.
ad6254c5 8040if test "${enable_o_direct+set}" = set; then
7a197a62
AK
8041 enableval=$enable_o_direct; ODIRECT=$enableval
8042fi
8043
8044{ echo "$as_me:$LINENO: result: $ODIRECT" >&5
8045echo "${ECHO_T}$ODIRECT" >&6; }
ad6254c5
AK
8046
8047if test x$ODIRECT = xyes; then
72b2cb61
AK
8048
8049cat >>confdefs.h <<\_ACEOF
8050#define O_DIRECT_SUPPORT 1
8051_ACEOF
8052
ad6254c5
AK
8053fi
8054
8055################################################################################
7a197a62
AK
8056{ echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
8057echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6; }
8058# Check whether --enable-cmdlib was given.
ad6254c5 8059if test "${enable_cmdlib+set}" = set; then
7a197a62 8060 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5
AK
8061else
8062 CMDLIB=no
7a197a62
AK
8063fi
8064
8065{ echo "$as_me:$LINENO: result: $CMDLIB" >&5
8066echo "${ECHO_T}$CMDLIB" >&6; }
ad6254c5 8067
ad6254c5 8068################################################################################
7a197a62
AK
8069{ echo "$as_me:$LINENO: checking whether to build fsadm" >&5
8070echo $ECHO_N "checking whether to build fsadm... $ECHO_C" >&6; }
8071# Check whether --enable-fsadm was given.
ad6254c5 8072if test "${enable_fsadm+set}" = set; then
7a197a62
AK
8073 enableval=$enable_fsadm; FSADM=$enableval
8074fi
8075
8076{ echo "$as_me:$LINENO: result: $FSADM" >&5
8077echo "${ECHO_T}$FSADM" >&6; }
ad6254c5 8078
06f62ad1 8079################################################################################
7a197a62
AK
8080{ echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
8081echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6; }
8082# Check whether --enable-dmeventd was given.
06f62ad1 8083if test "${enable_dmeventd+set}" = set; then
7a197a62
AK
8084 enableval=$enable_dmeventd; DMEVENTD=$enableval
8085fi
8086
8087{ echo "$as_me:$LINENO: result: $DMEVENTD" >&5
8088echo "${ECHO_T}$DMEVENTD" >&6; }
06f62ad1
AK
8089
8090if test x$DMEVENTD = xyes && test x$MIRRORS != xinternal; then
8091{ { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
8092" >&5
8093echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
8094" >&2;}
8095 { (exit 1); exit 1; }; }
8096fi
8097
15d91f5a 8098if test x$DMEVENTD = xyes; then
72b2cb61
AK
8099
8100cat >>confdefs.h <<\_ACEOF
8101#define DMEVENTD 1
8102_ACEOF
8103
15d91f5a 8104fi
ad6254c5
AK
8105################################################################################
8106if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
8107 then exec_prefix="";
8108fi;
8109
8110################################################################################
8111if test $ac_cv_c_compiler_gnu = yes; then
7a197a62
AK
8112 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
8113echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
ad6254c5
AK
8114if test "${ac_cv_prog_gcc_traditional+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8116else
8117 ac_pattern="Autoconf.*'x'"
8118 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8119/* confdefs.h. */
8120_ACEOF
8121cat confdefs.h >>conftest.$ac_ext
8122cat >>conftest.$ac_ext <<_ACEOF
8123/* end confdefs.h. */
8124#include <sgtty.h>
8125Autoconf TIOCGETP
8126_ACEOF
8127if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8128 $EGREP "$ac_pattern" >/dev/null 2>&1; then
8129 ac_cv_prog_gcc_traditional=yes
8130else
8131 ac_cv_prog_gcc_traditional=no
8132fi
8133rm -f conftest*
8134
8135
8136 if test $ac_cv_prog_gcc_traditional = no; then
8137 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8138/* confdefs.h. */
8139_ACEOF
8140cat confdefs.h >>conftest.$ac_ext
8141cat >>conftest.$ac_ext <<_ACEOF
8142/* end confdefs.h. */
8143#include <termio.h>
8144Autoconf TCGETA
8145_ACEOF
8146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8147 $EGREP "$ac_pattern" >/dev/null 2>&1; then
8148 ac_cv_prog_gcc_traditional=yes
8149fi
8150rm -f conftest*
8151
8152 fi
8153fi
7a197a62
AK
8154{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
8155echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
ad6254c5
AK
8156 if test $ac_cv_prog_gcc_traditional = yes; then
8157 CC="$CC -traditional"
8158 fi
8159fi
8160
7a197a62
AK
8161{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8162echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
ad6254c5
AK
8163if test "${ac_cv_type_signal+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8165else
8166 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8167/* confdefs.h. */
8168_ACEOF
8169cat confdefs.h >>conftest.$ac_ext
8170cat >>conftest.$ac_ext <<_ACEOF
8171/* end confdefs.h. */
8172#include <sys/types.h>
8173#include <signal.h>
ad6254c5
AK
8174
8175int
8176main ()
8177{
7a197a62 8178return *(signal (0, 0)) (0) == 1;
ad6254c5
AK
8179 ;
8180 return 0;
8181}
8182_ACEOF
8183rm -f conftest.$ac_objext
7a197a62
AK
8184if { (ac_try="$ac_compile"
8185case "(($ac_try" in
8186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187 *) ac_try_echo=$ac_try;;
8188esac
8189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190 (eval "$ac_compile") 2>conftest.er1
ad6254c5 8191 ac_status=$?
8a2fc586
AK
8192 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -f conftest.er1
8194 cat conftest.err >&5
ad6254c5 8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
8196 (exit $ac_status); } && {
8197 test -z "$ac_c_werror_flag" ||
8198 test ! -s conftest.err
8199 } && test -s conftest.$ac_objext; then
8200 ac_cv_type_signal=int
ad6254c5
AK
8201else
8202 echo "$as_me: failed program was:" >&5
8203sed 's/^/| /' conftest.$ac_ext >&5
8204
7a197a62 8205 ac_cv_type_signal=void
ad6254c5 8206fi
7a197a62
AK
8207
8208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 8209fi
7a197a62
AK
8210{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8211echo "${ECHO_T}$ac_cv_type_signal" >&6; }
ad6254c5
AK
8212
8213cat >>confdefs.h <<_ACEOF
8214#define RETSIGTYPE $ac_cv_type_signal
8215_ACEOF
8216
8217
8218
8219for ac_func in vprintf
8220do
8221as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7a197a62
AK
8222{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8223echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8224if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8226else
8227 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8228/* confdefs.h. */
8229_ACEOF
8230cat confdefs.h >>conftest.$ac_ext
8231cat >>conftest.$ac_ext <<_ACEOF
8232/* end confdefs.h. */
8a2fc586
AK
8233/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8235#define $ac_func innocuous_$ac_func
8236
ad6254c5
AK
8237/* System header to define __stub macros and hopefully few prototypes,
8238 which can conflict with char $ac_func (); below.
8239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8240 <limits.h> exists even on freestanding compilers. */
8a2fc586 8241
ad6254c5
AK
8242#ifdef __STDC__
8243# include <limits.h>
8244#else
8245# include <assert.h>
8246#endif
8a2fc586
AK
8247
8248#undef $ac_func
8249
7a197a62
AK
8250/* Override any GCC internal prototype to avoid an error.
8251 Use char because int might match the return type of a GCC
8252 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8253#ifdef __cplusplus
8254extern "C"
ad6254c5 8255#endif
ad6254c5
AK
8256char $ac_func ();
8257/* The GNU C library defines this for functions which it implements
8258 to always fail with ENOSYS. Some functions are actually named
8259 something starting with __ and the normal name is an alias. */
7a197a62 8260#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8261choke me
ad6254c5
AK
8262#endif
8263
8264int
8265main ()
8266{
7a197a62 8267return $ac_func ();
ad6254c5
AK
8268 ;
8269 return 0;
8270}
8271_ACEOF
8272rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8273if { (ac_try="$ac_link"
8274case "(($ac_try" in
8275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276 *) ac_try_echo=$ac_try;;
8277esac
8278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8279 (eval "$ac_link") 2>conftest.er1
ad6254c5 8280 ac_status=$?
8a2fc586
AK
8281 grep -v '^ *+' conftest.er1 >conftest.err
8282 rm -f conftest.er1
8283 cat conftest.err >&5
ad6254c5 8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
8285 (exit $ac_status); } && {
8286 test -z "$ac_c_werror_flag" ||
8287 test ! -s conftest.err
8288 } && test -s conftest$ac_exeext &&
8289 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8290 eval "$as_ac_var=yes"
8291else
8292 echo "$as_me: failed program was:" >&5
8293sed 's/^/| /' conftest.$ac_ext >&5
8294
7a197a62 8295 eval "$as_ac_var=no"
ad6254c5 8296fi
7a197a62
AK
8297
8298rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8299 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8300fi
7a197a62
AK
8301ac_res=`eval echo '${'$as_ac_var'}'`
8302 { echo "$as_me:$LINENO: result: $ac_res" >&5
8303echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
8304if test `eval echo '${'$as_ac_var'}'` = yes; then
8305 cat >>confdefs.h <<_ACEOF
8306#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8307_ACEOF
8308
7a197a62
AK
8309{ echo "$as_me:$LINENO: checking for _doprnt" >&5
8310echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
ad6254c5
AK
8311if test "${ac_cv_func__doprnt+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8313else
8314 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8315/* confdefs.h. */
8316_ACEOF
8317cat confdefs.h >>conftest.$ac_ext
8318cat >>conftest.$ac_ext <<_ACEOF
8319/* end confdefs.h. */
8a2fc586
AK
8320/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8322#define _doprnt innocuous__doprnt
8323
ad6254c5
AK
8324/* System header to define __stub macros and hopefully few prototypes,
8325 which can conflict with char _doprnt (); below.
8326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8327 <limits.h> exists even on freestanding compilers. */
8a2fc586 8328
ad6254c5
AK
8329#ifdef __STDC__
8330# include <limits.h>
8331#else
8332# include <assert.h>
8333#endif
8a2fc586
AK
8334
8335#undef _doprnt
8336
7a197a62
AK
8337/* Override any GCC internal prototype to avoid an error.
8338 Use char because int might match the return type of a GCC
8339 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8340#ifdef __cplusplus
8341extern "C"
ad6254c5 8342#endif
ad6254c5
AK
8343char _doprnt ();
8344/* The GNU C library defines this for functions which it implements
8345 to always fail with ENOSYS. Some functions are actually named
8346 something starting with __ and the normal name is an alias. */
7a197a62 8347#if defined __stub__doprnt || defined __stub____doprnt
ad6254c5 8348choke me
ad6254c5
AK
8349#endif
8350
8351int
8352main ()
8353{
7a197a62 8354return _doprnt ();
ad6254c5
AK
8355 ;
8356 return 0;
8357}
8358_ACEOF
8359rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8360if { (ac_try="$ac_link"
8361case "(($ac_try" in
8362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363 *) ac_try_echo=$ac_try;;
8364esac
8365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366 (eval "$ac_link") 2>conftest.er1
ad6254c5 8367 ac_status=$?
8a2fc586
AK
8368 grep -v '^ *+' conftest.er1 >conftest.err
8369 rm -f conftest.er1
8370 cat conftest.err >&5
ad6254c5 8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
8372 (exit $ac_status); } && {
8373 test -z "$ac_c_werror_flag" ||
8374 test ! -s conftest.err
8375 } && test -s conftest$ac_exeext &&
8376 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8377 ac_cv_func__doprnt=yes
8378else
8379 echo "$as_me: failed program was:" >&5
8380sed 's/^/| /' conftest.$ac_ext >&5
8381
7a197a62 8382 ac_cv_func__doprnt=no
ad6254c5 8383fi
7a197a62
AK
8384
8385rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8386 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8387fi
7a197a62
AK
8388{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8389echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
ad6254c5
AK
8390if test $ac_cv_func__doprnt = yes; then
8391
8392cat >>confdefs.h <<\_ACEOF
8393#define HAVE_DOPRNT 1
8394_ACEOF
8395
8396fi
8397
8398fi
8399done
8400
8401
8402
8403
8404
8405for ac_func in mkdir rmdir uname
8406do
8407as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7a197a62
AK
8408{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8409echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8410if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8412else
8413 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8414/* confdefs.h. */
8415_ACEOF
8416cat confdefs.h >>conftest.$ac_ext
8417cat >>conftest.$ac_ext <<_ACEOF
8418/* end confdefs.h. */
8a2fc586
AK
8419/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8421#define $ac_func innocuous_$ac_func
8422
ad6254c5
AK
8423/* System header to define __stub macros and hopefully few prototypes,
8424 which can conflict with char $ac_func (); below.
8425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8426 <limits.h> exists even on freestanding compilers. */
8a2fc586 8427
ad6254c5
AK
8428#ifdef __STDC__
8429# include <limits.h>
8430#else
8431# include <assert.h>
8432#endif
8a2fc586
AK
8433
8434#undef $ac_func
8435
7a197a62
AK
8436/* Override any GCC internal prototype to avoid an error.
8437 Use char because int might match the return type of a GCC
8438 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8439#ifdef __cplusplus
8440extern "C"
ad6254c5 8441#endif
ad6254c5
AK
8442char $ac_func ();
8443/* The GNU C library defines this for functions which it implements
8444 to always fail with ENOSYS. Some functions are actually named
8445 something starting with __ and the normal name is an alias. */
7a197a62 8446#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8447choke me
ad6254c5
AK
8448#endif
8449
8450int
8451main ()
8452{
7a197a62 8453return $ac_func ();
ad6254c5
AK
8454 ;
8455 return 0;
8456}
8457_ACEOF
8458rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8459if { (ac_try="$ac_link"
8460case "(($ac_try" in
8461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8463esac
8464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval "$ac_link") 2>conftest.er1
ad6254c5 8466 ac_status=$?
8a2fc586
AK
8467 grep -v '^ *+' conftest.er1 >conftest.err
8468 rm -f conftest.er1
8469 cat conftest.err >&5
ad6254c5 8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
8471 (exit $ac_status); } && {
8472 test -z "$ac_c_werror_flag" ||
8473 test ! -s conftest.err
8474 } && test -s conftest$ac_exeext &&
8475 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8476 eval "$as_ac_var=yes"
8477else
8478 echo "$as_me: failed program was:" >&5
8479sed 's/^/| /' conftest.$ac_ext >&5
8480
7a197a62 8481 eval "$as_ac_var=no"
ad6254c5 8482fi
7a197a62
AK
8483
8484rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8485 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8486fi
7a197a62
AK
8487ac_res=`eval echo '${'$as_ac_var'}'`
8488 { echo "$as_me:$LINENO: result: $ac_res" >&5
8489echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
8490if test `eval echo '${'$as_ac_var'}'` = yes; then
8491 cat >>confdefs.h <<_ACEOF
8492#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8493_ACEOF
8494
8495else
8496 { { echo "$as_me:$LINENO: error: bailing out" >&5
8497echo "$as_me: error: bailing out" >&2;}
8498 { (exit 1); exit 1; }; }
8499fi
8500done
8501
8502
8503################################################################################
8504if test x$READLINE = xyes; then
7a197a62
AK
8505 { echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8506echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
ad6254c5
AK
8507if test "${ac_cv_search_tgetent+set}" = set; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
8509else
8510 ac_func_search_save_LIBS=$LIBS
ad6254c5 8511cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8512/* confdefs.h. */
8513_ACEOF
8514cat confdefs.h >>conftest.$ac_ext
8515cat >>conftest.$ac_ext <<_ACEOF
8516/* end confdefs.h. */
8517
7a197a62
AK
8518/* Override any GCC internal prototype to avoid an error.
8519 Use char because int might match the return type of a GCC
8520 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8521#ifdef __cplusplus
8522extern "C"
8523#endif
ad6254c5
AK
8524char tgetent ();
8525int
8526main ()
8527{
7a197a62 8528return tgetent ();
ad6254c5
AK
8529 ;
8530 return 0;
8531}
8532_ACEOF
7a197a62
AK
8533for ac_lib in '' ncurses curses termcap termlib; do
8534 if test -z "$ac_lib"; then
8535 ac_res="none required"
8536 else
8537 ac_res=-l$ac_lib
8538 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8539 fi
8540 rm -f conftest.$ac_objext conftest$ac_exeext
8541if { (ac_try="$ac_link"
8542case "(($ac_try" in
8543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544 *) ac_try_echo=$ac_try;;
8545esac
8546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8547 (eval "$ac_link") 2>conftest.er1
ad6254c5 8548 ac_status=$?
8a2fc586
AK
8549 grep -v '^ *+' conftest.er1 >conftest.err
8550 rm -f conftest.er1
8551 cat conftest.err >&5
ad6254c5 8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
8553 (exit $ac_status); } && {
8554 test -z "$ac_c_werror_flag" ||
8555 test ! -s conftest.err
8556 } && test -s conftest$ac_exeext &&
8557 $as_test_x conftest$ac_exeext; then
8558 ac_cv_search_tgetent=$ac_res
ad6254c5
AK
8559else
8560 echo "$as_me: failed program was:" >&5
8561sed 's/^/| /' conftest.$ac_ext >&5
8562
ad6254c5 8563
7a197a62 8564fi
ad6254c5 8565
7a197a62
AK
8566rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8567 conftest$ac_exeext
8568 if test "${ac_cv_search_tgetent+set}" = set; then
8569 break
ad6254c5 8570fi
7a197a62
AK
8571done
8572if test "${ac_cv_search_tgetent+set}" = set; then
8573 :
8574else
8575 ac_cv_search_tgetent=no
ad6254c5 8576fi
7a197a62 8577rm conftest.$ac_ext
ad6254c5
AK
8578LIBS=$ac_func_search_save_LIBS
8579fi
7a197a62
AK
8580{ echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8581echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
8582ac_res=$ac_cv_search_tgetent
8583if test "$ac_res" != no; then
8584 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
ad6254c5
AK
8585
8586else
8587 { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the
8588--enable-readline option (which is enabled by default). Either disable readline
8589support with --disable-readline or download and install termcap from:
8590 ftp.gnu.org/gnu/termcap
8591Note: if you are using precompiled packages you will also need the development
8592 package as well (which may be called termcap-devel or something similar).
8593Note: (n)curses also seems to work as a substitute for termcap. This was
8594 not found either - but you could try installing that as well.
8595" >&5
8596echo "$as_me: error: termcap could not be found which is required for the
8597--enable-readline option (which is enabled by default). Either disable readline
8598support with --disable-readline or download and install termcap from:
8599 ftp.gnu.org/gnu/termcap
8600Note: if you are using precompiled packages you will also need the development
8601 package as well (which may be called termcap-devel or something similar).
8602Note: (n)curses also seems to work as a substitute for termcap. This was
8603 not found either - but you could try installing that as well.
8604" >&2;}
8605 { (exit 1); exit 1; }; }
8606
8607fi
8608
8609fi
8610
8611################################################################################
7a197a62
AK
8612{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8613echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
ad6254c5
AK
8614if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8615 echo $ECHO_N "(cached) $ECHO_C" >&6
8616else
8617 ac_check_lib_save_LIBS=$LIBS
8618LIBS="-ldl $LIBS"
8619cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8620/* confdefs.h. */
8621_ACEOF
8622cat confdefs.h >>conftest.$ac_ext
8623cat >>conftest.$ac_ext <<_ACEOF
8624/* end confdefs.h. */
8625
7a197a62
AK
8626/* Override any GCC internal prototype to avoid an error.
8627 Use char because int might match the return type of a GCC
8628 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8629#ifdef __cplusplus
8630extern "C"
8631#endif
ad6254c5
AK
8632char dlopen ();
8633int
8634main ()
8635{
7a197a62 8636return dlopen ();
ad6254c5
AK
8637 ;
8638 return 0;
8639}
8640_ACEOF
8641rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8642if { (ac_try="$ac_link"
8643case "(($ac_try" in
8644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8645 *) ac_try_echo=$ac_try;;
8646esac
8647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8648 (eval "$ac_link") 2>conftest.er1
ad6254c5 8649 ac_status=$?
8a2fc586
AK
8650 grep -v '^ *+' conftest.er1 >conftest.err
8651 rm -f conftest.er1
8652 cat conftest.err >&5
ad6254c5 8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
8654 (exit $ac_status); } && {
8655 test -z "$ac_c_werror_flag" ||
8656 test ! -s conftest.err
8657 } && test -s conftest$ac_exeext &&
8658 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8659 ac_cv_lib_dl_dlopen=yes
8660else
8661 echo "$as_me: failed program was:" >&5
8662sed 's/^/| /' conftest.$ac_ext >&5
8663
7a197a62 8664 ac_cv_lib_dl_dlopen=no
ad6254c5 8665fi
7a197a62
AK
8666
8667rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8668 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8669LIBS=$ac_check_lib_save_LIBS
8670fi
7a197a62
AK
8671{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8672echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
ad6254c5
AK
8673if test $ac_cv_lib_dl_dlopen = yes; then
8674 HAVE_LIBDL=yes
8675else
8676 HAVE_LIBDL=no
8677fi
8678
8679
7e9e9502 8680if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
8681
8682cat >>confdefs.h <<\_ACEOF
8683#define HAVE_LIBDL 1
8684_ACEOF
8685
ad6254c5
AK
8686 LIBS="-ldl $LIBS"
8687else
8688 HAVE_LIBDL=no
8689fi
8690
8691################################################################################
8692if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
8693 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
8694 \) -a "x$STATIC_LINK" = xyes ];
8695 then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
8696" >&5
8697echo "$as_me: error: Features cannot be 'shared' when building statically
8698" >&2;}
8699 { (exit 1); exit 1; }; }
8700fi
8701
8702################################################################################
8703if test x$SELINUX = xyes; then
7a197a62
AK
8704 { echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
8705echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6; }
8a2fc586
AK
8706if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
8707 echo $ECHO_N "(cached) $ECHO_C" >&6
8708else
8709 ac_check_lib_save_LIBS=$LIBS
8710LIBS="-lsepol $LIBS"
8711cat >conftest.$ac_ext <<_ACEOF
8712/* confdefs.h. */
8713_ACEOF
8714cat confdefs.h >>conftest.$ac_ext
8715cat >>conftest.$ac_ext <<_ACEOF
8716/* end confdefs.h. */
8717
7a197a62
AK
8718/* Override any GCC internal prototype to avoid an error.
8719 Use char because int might match the return type of a GCC
8720 builtin and then its argument prototype would still apply. */
8a2fc586
AK
8721#ifdef __cplusplus
8722extern "C"
8723#endif
8a2fc586
AK
8724char sepol_check_context ();
8725int
8726main ()
8727{
7a197a62 8728return sepol_check_context ();
8a2fc586
AK
8729 ;
8730 return 0;
8731}
8732_ACEOF
8733rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8734if { (ac_try="$ac_link"
8735case "(($ac_try" in
8736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8737 *) ac_try_echo=$ac_try;;
8738esac
8739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8740 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
8741 ac_status=$?
8742 grep -v '^ *+' conftest.er1 >conftest.err
8743 rm -f conftest.er1
8744 cat conftest.err >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
8746 (exit $ac_status); } && {
8747 test -z "$ac_c_werror_flag" ||
8748 test ! -s conftest.err
8749 } && test -s conftest$ac_exeext &&
8750 $as_test_x conftest$ac_exeext; then
8a2fc586
AK
8751 ac_cv_lib_sepol_sepol_check_context=yes
8752else
8753 echo "$as_me: failed program was:" >&5
8754sed 's/^/| /' conftest.$ac_ext >&5
8755
7a197a62 8756 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 8757fi
7a197a62
AK
8758
8759rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
8760 conftest$ac_exeext conftest.$ac_ext
8761LIBS=$ac_check_lib_save_LIBS
8762fi
7a197a62
AK
8763{ echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
8764echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6; }
8a2fc586
AK
8765if test $ac_cv_lib_sepol_sepol_check_context = yes; then
8766 HAVE_SEPOL=yes
8767else
8768 HAVE_SEPOL=no
8769fi
8770
8a2fc586
AK
8771
8772 if test x$HAVE_SEPOL = xyes; then
8773 LIBS="-lsepol $LIBS"
8774 fi
8775
7a197a62
AK
8776 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
8777echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
ad6254c5
AK
8778if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
8779 echo $ECHO_N "(cached) $ECHO_C" >&6
8780else
8781 ac_check_lib_save_LIBS=$LIBS
8782LIBS="-lselinux $LIBS"
8783cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8784/* confdefs.h. */
8785_ACEOF
8786cat confdefs.h >>conftest.$ac_ext
8787cat >>conftest.$ac_ext <<_ACEOF
8788/* end confdefs.h. */
8789
7a197a62
AK
8790/* Override any GCC internal prototype to avoid an error.
8791 Use char because int might match the return type of a GCC
8792 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8793#ifdef __cplusplus
8794extern "C"
8795#endif
ad6254c5
AK
8796char is_selinux_enabled ();
8797int
8798main ()
8799{
7a197a62 8800return is_selinux_enabled ();
ad6254c5
AK
8801 ;
8802 return 0;
8803}
8804_ACEOF
8805rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8806if { (ac_try="$ac_link"
8807case "(($ac_try" in
8808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8809 *) ac_try_echo=$ac_try;;
8810esac
8811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8812 (eval "$ac_link") 2>conftest.er1
ad6254c5 8813 ac_status=$?
8a2fc586
AK
8814 grep -v '^ *+' conftest.er1 >conftest.err
8815 rm -f conftest.er1
8816 cat conftest.err >&5
ad6254c5 8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
8818 (exit $ac_status); } && {
8819 test -z "$ac_c_werror_flag" ||
8820 test ! -s conftest.err
8821 } && test -s conftest$ac_exeext &&
8822 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8823 ac_cv_lib_selinux_is_selinux_enabled=yes
8824else
8825 echo "$as_me: failed program was:" >&5
8826sed 's/^/| /' conftest.$ac_ext >&5
8827
7a197a62 8828 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 8829fi
7a197a62
AK
8830
8831rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8832 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8833LIBS=$ac_check_lib_save_LIBS
8834fi
7a197a62
AK
8835{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
8836echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
ad6254c5
AK
8837if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
8838 HAVE_SELINUX=yes
8839else
8840 HAVE_SELINUX=no
8841fi
8842
ad6254c5
AK
8843
8844 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
8845
8846cat >>confdefs.h <<\_ACEOF
8847#define HAVE_SELINUX 1
8848_ACEOF
8849
ad6254c5
AK
8850 LIBS="-lselinux $LIBS"
8851 else
8852 { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
8853echo "$as_me: WARNING: Disabling selinux" >&2;}
8854 fi
8855fi
8856
8b1a3214
AK
8857################################################################################
8858if test x$REALTIME = xyes; then
7a197a62
AK
8859 { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
8860echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
8b1a3214
AK
8861if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
8863else
8864 ac_check_lib_save_LIBS=$LIBS
8865LIBS="-lrt $LIBS"
8866cat >conftest.$ac_ext <<_ACEOF
8867/* confdefs.h. */
8868_ACEOF
8869cat confdefs.h >>conftest.$ac_ext
8870cat >>conftest.$ac_ext <<_ACEOF
8871/* end confdefs.h. */
8872
7a197a62
AK
8873/* Override any GCC internal prototype to avoid an error.
8874 Use char because int might match the return type of a GCC
8875 builtin and then its argument prototype would still apply. */
8b1a3214
AK
8876#ifdef __cplusplus
8877extern "C"
8878#endif
8b1a3214
AK
8879char clock_gettime ();
8880int
8881main ()
8882{
7a197a62 8883return clock_gettime ();
8b1a3214
AK
8884 ;
8885 return 0;
8886}
8887_ACEOF
8888rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8889if { (ac_try="$ac_link"
8890case "(($ac_try" in
8891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8892 *) ac_try_echo=$ac_try;;
8893esac
8894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8895 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
8896 ac_status=$?
8897 grep -v '^ *+' conftest.er1 >conftest.err
8898 rm -f conftest.er1
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
8901 (exit $ac_status); } && {
8902 test -z "$ac_c_werror_flag" ||
8903 test ! -s conftest.err
8904 } && test -s conftest$ac_exeext &&
8905 $as_test_x conftest$ac_exeext; then
8b1a3214
AK
8906 ac_cv_lib_rt_clock_gettime=yes
8907else
8908 echo "$as_me: failed program was:" >&5
8909sed 's/^/| /' conftest.$ac_ext >&5
8910
7a197a62 8911 ac_cv_lib_rt_clock_gettime=no
8b1a3214 8912fi
7a197a62
AK
8913
8914rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
8915 conftest$ac_exeext conftest.$ac_ext
8916LIBS=$ac_check_lib_save_LIBS
8917fi
7a197a62
AK
8918{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
8919echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
8b1a3214
AK
8920if test $ac_cv_lib_rt_clock_gettime = yes; then
8921 HAVE_REALTIME=yes
8922else
8923 HAVE_REALTIME=no
8924fi
8925
8b1a3214
AK
8926
8927 if test x$HAVE_REALTIME = xyes; then
8928
8929cat >>confdefs.h <<\_ACEOF
8930#define HAVE_REALTIME 1
8931_ACEOF
8932
8933 LIBS="-lrt $LIBS"
8934 else
8935 { echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
8936echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8937 fi
8938fi
8939
ad6254c5
AK
8940################################################################################
8941
8942for ac_header in getopt.h
8943do
8944as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62
AK
8945if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8946 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8947echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8948if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
8949 echo $ECHO_N "(cached) $ECHO_C" >&6
8950fi
7a197a62
AK
8951ac_res=`eval echo '${'$as_ac_Header'}'`
8952 { echo "$as_me:$LINENO: result: $ac_res" >&5
8953echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
8954else
8955 # Is the header compilable?
7a197a62
AK
8956{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8957echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 8958cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8959/* confdefs.h. */
8960_ACEOF
8961cat confdefs.h >>conftest.$ac_ext
8962cat >>conftest.$ac_ext <<_ACEOF
8963/* end confdefs.h. */
8964$ac_includes_default
8965#include <$ac_header>
8966_ACEOF
8967rm -f conftest.$ac_objext
7a197a62
AK
8968if { (ac_try="$ac_compile"
8969case "(($ac_try" in
8970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8971 *) ac_try_echo=$ac_try;;
8972esac
8973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8974 (eval "$ac_compile") 2>conftest.er1
ad6254c5 8975 ac_status=$?
8a2fc586
AK
8976 grep -v '^ *+' conftest.er1 >conftest.err
8977 rm -f conftest.er1
8978 cat conftest.err >&5
ad6254c5 8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
8980 (exit $ac_status); } && {
8981 test -z "$ac_c_werror_flag" ||
8982 test ! -s conftest.err
8983 } && test -s conftest.$ac_objext; then
ad6254c5
AK
8984 ac_header_compiler=yes
8985else
8986 echo "$as_me: failed program was:" >&5
8987sed 's/^/| /' conftest.$ac_ext >&5
8988
7a197a62 8989 ac_header_compiler=no
ad6254c5 8990fi
7a197a62
AK
8991
8992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8993{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8994echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
8995
8996# Is the header present?
7a197a62
AK
8997{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8998echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 8999cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9000/* confdefs.h. */
9001_ACEOF
9002cat confdefs.h >>conftest.$ac_ext
9003cat >>conftest.$ac_ext <<_ACEOF
9004/* end confdefs.h. */
9005#include <$ac_header>
9006_ACEOF
7a197a62
AK
9007if { (ac_try="$ac_cpp conftest.$ac_ext"
9008case "(($ac_try" in
9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010 *) ac_try_echo=$ac_try;;
9011esac
9012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9014 ac_status=$?
9015 grep -v '^ *+' conftest.er1 >conftest.err
9016 rm -f conftest.er1
9017 cat conftest.err >&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
9019 (exit $ac_status); } >/dev/null && {
9020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9021 test ! -s conftest.err
9022 }; then
ad6254c5
AK
9023 ac_header_preproc=yes
9024else
9025 echo "$as_me: failed program was:" >&5
9026sed 's/^/| /' conftest.$ac_ext >&5
9027
9028 ac_header_preproc=no
9029fi
7a197a62 9030
ad6254c5 9031rm -f conftest.err conftest.$ac_ext
7a197a62
AK
9032{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9033echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
9034
9035# So? What about this header?
8a2fc586
AK
9036case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9037 yes:no: )
ad6254c5
AK
9038 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9039echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
9040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9041echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9042 ac_header_preproc=yes
ad6254c5 9043 ;;
8a2fc586 9044 no:yes:* )
ad6254c5
AK
9045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9046echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
9047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9048echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9049 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9050echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9051 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9052echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
9053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9054echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
9055 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9056echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9057
ad6254c5
AK
9058 ;;
9059esac
7a197a62
AK
9060{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9061echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9062if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
9063 echo $ECHO_N "(cached) $ECHO_C" >&6
9064else
8a2fc586 9065 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9066fi
7a197a62
AK
9067ac_res=`eval echo '${'$as_ac_Header'}'`
9068 { echo "$as_me:$LINENO: result: $ac_res" >&5
9069echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9070
9071fi
9072if test `eval echo '${'$as_ac_Header'}'` = yes; then
9073 cat >>confdefs.h <<_ACEOF
9074#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9075_ACEOF
72b2cb61
AK
9076
9077cat >>confdefs.h <<\_ACEOF
9078#define HAVE_GETOPTLONG 1
9079_ACEOF
9080
ad6254c5
AK
9081fi
9082
9083done
9084
9085
9086################################################################################
9087if test x$READLINE = xyes; then
9088
7a197a62
AK
9089{ echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
9090echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
ad6254c5
AK
9091if test "${ac_cv_lib_readline_readline+set}" = set; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9093else
9094 ac_check_lib_save_LIBS=$LIBS
9095LIBS="-lreadline $LIBS"
9096cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9097/* confdefs.h. */
9098_ACEOF
9099cat confdefs.h >>conftest.$ac_ext
9100cat >>conftest.$ac_ext <<_ACEOF
9101/* end confdefs.h. */
9102
7a197a62
AK
9103/* Override any GCC internal prototype to avoid an error.
9104 Use char because int might match the return type of a GCC
9105 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9106#ifdef __cplusplus
9107extern "C"
9108#endif
ad6254c5
AK
9109char readline ();
9110int
9111main ()
9112{
7a197a62 9113return readline ();
ad6254c5
AK
9114 ;
9115 return 0;
9116}
9117_ACEOF
9118rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9119if { (ac_try="$ac_link"
9120case "(($ac_try" in
9121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9122 *) ac_try_echo=$ac_try;;
9123esac
9124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9125 (eval "$ac_link") 2>conftest.er1
ad6254c5 9126 ac_status=$?
8a2fc586
AK
9127 grep -v '^ *+' conftest.er1 >conftest.err
9128 rm -f conftest.er1
9129 cat conftest.err >&5
ad6254c5 9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
9131 (exit $ac_status); } && {
9132 test -z "$ac_c_werror_flag" ||
9133 test ! -s conftest.err
9134 } && test -s conftest$ac_exeext &&
9135 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
9136 ac_cv_lib_readline_readline=yes
9137else
9138 echo "$as_me: failed program was:" >&5
9139sed 's/^/| /' conftest.$ac_ext >&5
9140
7a197a62 9141 ac_cv_lib_readline_readline=no
ad6254c5 9142fi
7a197a62
AK
9143
9144rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9145 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9146LIBS=$ac_check_lib_save_LIBS
9147fi
7a197a62
AK
9148{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
9149echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
ad6254c5
AK
9150if test $ac_cv_lib_readline_readline = yes; then
9151 cat >>confdefs.h <<_ACEOF
9152#define HAVE_LIBREADLINE 1
9153_ACEOF
9154
9155 LIBS="-lreadline $LIBS"
9156
9157else
9158 { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
9159--enable-readline option (which is enabled by default). Either disable readline
9160support with --disable-readline or download and install readline from:
9161 ftp.gnu.org/gnu/readline
9162Note: if you are using precompiled packages you will also need the development
9163package as well (which may be called readline-devel or something similar).
9164" >&5
9165echo "$as_me: error: GNU Readline could not be found which is required for the
9166--enable-readline option (which is enabled by default). Either disable readline
9167support with --disable-readline or download and install readline from:
9168 ftp.gnu.org/gnu/readline
9169Note: if you are using precompiled packages you will also need the development
9170package as well (which may be called readline-devel or something similar).
9171" >&2;}
9172 { (exit 1); exit 1; }; }
9173
9174fi
9175
7a197a62
AK
9176 { echo "$as_me:$LINENO: checking for rl_completion_matches" >&5
9177echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6; }
ad6254c5
AK
9178if test "${ac_cv_func_rl_completion_matches+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9180else
9181 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9182/* confdefs.h. */
9183_ACEOF
9184cat confdefs.h >>conftest.$ac_ext
9185cat >>conftest.$ac_ext <<_ACEOF
9186/* end confdefs.h. */
8a2fc586
AK
9187/* Define rl_completion_matches to an innocuous variant, in case <limits.h> declares rl_completion_matches.
9188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9189#define rl_completion_matches innocuous_rl_completion_matches
9190
ad6254c5
AK
9191/* System header to define __stub macros and hopefully few prototypes,
9192 which can conflict with char rl_completion_matches (); below.
9193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9194 <limits.h> exists even on freestanding compilers. */
8a2fc586 9195
ad6254c5
AK
9196#ifdef __STDC__
9197# include <limits.h>
9198#else
9199# include <assert.h>
9200#endif
8a2fc586
AK
9201
9202#undef rl_completion_matches
9203
7a197a62
AK
9204/* Override any GCC internal prototype to avoid an error.
9205 Use char because int might match the return type of a GCC
9206 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9207#ifdef __cplusplus
9208extern "C"
ad6254c5 9209#endif
ad6254c5
AK
9210char rl_completion_matches ();
9211/* The GNU C library defines this for functions which it implements
9212 to always fail with ENOSYS. Some functions are actually named
9213 something starting with __ and the normal name is an alias. */
7a197a62 9214#if defined __stub_rl_completion_matches || defined __stub___rl_completion_matches
ad6254c5 9215choke me
ad6254c5
AK
9216#endif
9217
9218int
9219main ()
9220{
7a197a62 9221return rl_completion_matches ();
ad6254c5
AK
9222 ;
9223 return 0;
9224}
9225_ACEOF
9226rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9227if { (ac_try="$ac_link"
9228case "(($ac_try" in
9229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9230 *) ac_try_echo=$ac_try;;
9231esac
9232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233 (eval "$ac_link") 2>conftest.er1
ad6254c5 9234 ac_status=$?
8a2fc586
AK
9235 grep -v '^ *+' conftest.er1 >conftest.err
9236 rm -f conftest.er1
9237 cat conftest.err >&5
ad6254c5 9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
9239 (exit $ac_status); } && {
9240 test -z "$ac_c_werror_flag" ||
9241 test ! -s conftest.err
9242 } && test -s conftest$ac_exeext &&
9243 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
9244 ac_cv_func_rl_completion_matches=yes
9245else
9246 echo "$as_me: failed program was:" >&5
9247sed 's/^/| /' conftest.$ac_ext >&5
9248
7a197a62 9249 ac_cv_func_rl_completion_matches=no
ad6254c5 9250fi
7a197a62
AK
9251
9252rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9253 conftest$ac_exeext conftest.$ac_ext
ad6254c5 9254fi
7a197a62
AK
9255{ echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5
9256echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6; }
ad6254c5 9257if test $ac_cv_func_rl_completion_matches = yes; then
ad6254c5 9258
72b2cb61
AK
9259cat >>confdefs.h <<\_ACEOF
9260#define HAVE_RL_COMPLETION_MATCHES 1
9261_ACEOF
9262
9263fi
ad6254c5
AK
9264
9265fi
9266
9267################################################################################
7a197a62
AK
9268{ echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
9269echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6; }
9270# Check whether --enable-nls was given.
ad6254c5 9271if test "${enable_nls+set}" = set; then
7a197a62 9272 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
9273else
9274 INTL=no
7a197a62
AK
9275fi
9276
9277{ echo "$as_me:$LINENO: result: $INTL" >&5
9278echo "${ECHO_T}$INTL" >&6; }
ad6254c5
AK
9279
9280if test x$INTL = xyes; then
9281 INTL_PACKAGE="lvm2"
9282 # Extract the first word of "msgfmt", so it can be a program name with args.
9283set dummy msgfmt; ac_word=$2
7a197a62
AK
9284{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5
AK
9286if test "${ac_cv_path_MSGFMT+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9288else
9289 case $MSGFMT in
9290 [\\/]* | ?:[\\/]*)
9291 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9292 ;;
9293 *)
9294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9295for as_dir in $PATH
9296do
9297 IFS=$as_save_IFS
9298 test -z "$as_dir" && as_dir=.
9299 for ac_exec_ext in '' $ac_executable_extensions; do
7a197a62 9300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
9301 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
9302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9303 break 2
9304 fi
9305done
9306done
7a197a62 9307IFS=$as_save_IFS
ad6254c5
AK
9308
9309 ;;
9310esac
9311fi
9312MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 9313if test -n "$MSGFMT"; then
7a197a62
AK
9314 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
9315echo "${ECHO_T}$MSGFMT" >&6; }
ad6254c5 9316else
7a197a62
AK
9317 { echo "$as_me:$LINENO: result: no" >&5
9318echo "${ECHO_T}no" >&6; }
ad6254c5
AK
9319fi
9320
7a197a62 9321
ad6254c5
AK
9322 if [ "x$MSGFMT" == x ];
9323 then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
9324 " >&5
9325echo "$as_me: error: msgfmt not found in path $PATH
9326 " >&2;}
9327 { (exit 1); exit 1; }; }
9328 fi;
9329
9330
7a197a62 9331# Check whether --with-localedir was given.
ad6254c5 9332if test "${with_localedir+set}" = set; then
7a197a62 9333 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
9334else
9335 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
9336fi
9337
ad6254c5
AK
9338fi
9339
9340################################################################################
9341
7a197a62 9342# Check whether --with-confdir was given.
ad6254c5 9343if test "${with_confdir+set}" = set; then
7a197a62 9344 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
9345else
9346 CONFDIR='/etc'
7a197a62
AK
9347fi
9348
ad6254c5
AK
9349
9350
7a197a62 9351# Check whether --with-staticdir was given.
ad6254c5 9352if test "${with_staticdir+set}" = set; then
7a197a62 9353 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
9354else
9355 STATICDIR='${exec_prefix}/sbin'
7a197a62 9356fi
ad6254c5 9357
33f732c5 9358
7a197a62
AK
9359
9360# Check whether --with-dmdir was given.
33f732c5 9361if test "${with_dmdir+set}" = set; then
7a197a62 9362 withval=$with_dmdir; DMDIR="$withval" CPPFLAGS="$CPPFLAGS -I$DMDIR/include"
33f732c5
AK
9363else
9364 DMDIR=
7a197a62
AK
9365fi
9366
33f732c5 9367
ad6254c5
AK
9368################################################################################
9369if test x$READLINE = xyes; then
9370
9371
9372for ac_header in readline/readline.h readline/history.h
9373do
9374as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62
AK
9375if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9378if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9380fi
7a197a62
AK
9381ac_res=`eval echo '${'$as_ac_Header'}'`
9382 { echo "$as_me:$LINENO: result: $ac_res" >&5
9383echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9384else
9385 # Is the header compilable?
7a197a62
AK
9386{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9387echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 9388cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9389/* confdefs.h. */
9390_ACEOF
9391cat confdefs.h >>conftest.$ac_ext
9392cat >>conftest.$ac_ext <<_ACEOF
9393/* end confdefs.h. */
9394$ac_includes_default
9395#include <$ac_header>
9396_ACEOF
9397rm -f conftest.$ac_objext
7a197a62
AK
9398if { (ac_try="$ac_compile"
9399case "(($ac_try" in
9400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9401 *) ac_try_echo=$ac_try;;
9402esac
9403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9404 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9405 ac_status=$?
8a2fc586
AK
9406 grep -v '^ *+' conftest.er1 >conftest.err
9407 rm -f conftest.er1
9408 cat conftest.err >&5
ad6254c5 9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
9410 (exit $ac_status); } && {
9411 test -z "$ac_c_werror_flag" ||
9412 test ! -s conftest.err
9413 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9414 ac_header_compiler=yes
9415else
9416 echo "$as_me: failed program was:" >&5
9417sed 's/^/| /' conftest.$ac_ext >&5
9418
7a197a62 9419 ac_header_compiler=no
ad6254c5 9420fi
7a197a62
AK
9421
9422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9423{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9424echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
9425
9426# Is the header present?
7a197a62
AK
9427{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9428echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 9429cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9430/* confdefs.h. */
9431_ACEOF
9432cat confdefs.h >>conftest.$ac_ext
9433cat >>conftest.$ac_ext <<_ACEOF
9434/* end confdefs.h. */
9435#include <$ac_header>
9436_ACEOF
7a197a62
AK
9437if { (ac_try="$ac_cpp conftest.$ac_ext"
9438case "(($ac_try" in
9439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9440 *) ac_try_echo=$ac_try;;
9441esac
9442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9444 ac_status=$?
9445 grep -v '^ *+' conftest.er1 >conftest.err
9446 rm -f conftest.er1
9447 cat conftest.err >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
9449 (exit $ac_status); } >/dev/null && {
9450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9451 test ! -s conftest.err
9452 }; then
ad6254c5
AK
9453 ac_header_preproc=yes
9454else
9455 echo "$as_me: failed program was:" >&5
9456sed 's/^/| /' conftest.$ac_ext >&5
9457
9458 ac_header_preproc=no
9459fi
7a197a62 9460
ad6254c5 9461rm -f conftest.err conftest.$ac_ext
7a197a62
AK
9462{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9463echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
9464
9465# So? What about this header?
8a2fc586
AK
9466case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9467 yes:no: )
ad6254c5
AK
9468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9469echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
9470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9471echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9472 ac_header_preproc=yes
ad6254c5 9473 ;;
8a2fc586 9474 no:yes:* )
ad6254c5
AK
9475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9476echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
9477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9478echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9480echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9482echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
9483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9484echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
9485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9486echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9487
ad6254c5
AK
9488 ;;
9489esac
7a197a62
AK
9490{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9492if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
9493 echo $ECHO_N "(cached) $ECHO_C" >&6
9494else
8a2fc586 9495 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9496fi
7a197a62
AK
9497ac_res=`eval echo '${'$as_ac_Header'}'`
9498 { echo "$as_me:$LINENO: result: $ac_res" >&5
9499echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9500
9501fi
9502if test `eval echo '${'$as_ac_Header'}'` = yes; then
9503 cat >>confdefs.h <<_ACEOF
9504#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9505_ACEOF
9506
9507else
9508 { { echo "$as_me:$LINENO: error: bailing out" >&5
9509echo "$as_me: error: bailing out" >&2;}
9510 { (exit 1); exit 1; }; }
9511fi
9512
9513done
9514
9515fi
9516
5c7fc7c4 9517if test x$CLVMD != xnone; then
ad6254c5
AK
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528for 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
9529do
9530as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62
AK
9531if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9534if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
9535 echo $ECHO_N "(cached) $ECHO_C" >&6
9536fi
7a197a62
AK
9537ac_res=`eval echo '${'$as_ac_Header'}'`
9538 { echo "$as_me:$LINENO: result: $ac_res" >&5
9539echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9540else
9541 # Is the header compilable?
7a197a62
AK
9542{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9543echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 9544cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9545/* confdefs.h. */
9546_ACEOF
9547cat confdefs.h >>conftest.$ac_ext
9548cat >>conftest.$ac_ext <<_ACEOF
9549/* end confdefs.h. */
9550$ac_includes_default
9551#include <$ac_header>
9552_ACEOF
9553rm -f conftest.$ac_objext
7a197a62
AK
9554if { (ac_try="$ac_compile"
9555case "(($ac_try" in
9556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9557 *) ac_try_echo=$ac_try;;
9558esac
9559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9560 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9561 ac_status=$?
8a2fc586
AK
9562 grep -v '^ *+' conftest.er1 >conftest.err
9563 rm -f conftest.er1
9564 cat conftest.err >&5
ad6254c5 9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
9566 (exit $ac_status); } && {
9567 test -z "$ac_c_werror_flag" ||
9568 test ! -s conftest.err
9569 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9570 ac_header_compiler=yes
9571else
9572 echo "$as_me: failed program was:" >&5
9573sed 's/^/| /' conftest.$ac_ext >&5
9574
7a197a62 9575 ac_header_compiler=no
ad6254c5 9576fi
7a197a62
AK
9577
9578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9579{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9580echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
9581
9582# Is the header present?
7a197a62
AK
9583{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9584echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 9585cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9586/* confdefs.h. */
9587_ACEOF
9588cat confdefs.h >>conftest.$ac_ext
9589cat >>conftest.$ac_ext <<_ACEOF
9590/* end confdefs.h. */
9591#include <$ac_header>
9592_ACEOF
7a197a62
AK
9593if { (ac_try="$ac_cpp conftest.$ac_ext"
9594case "(($ac_try" in
9595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9596 *) ac_try_echo=$ac_try;;
9597esac
9598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9600 ac_status=$?
9601 grep -v '^ *+' conftest.er1 >conftest.err
9602 rm -f conftest.er1
9603 cat conftest.err >&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
9605 (exit $ac_status); } >/dev/null && {
9606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9607 test ! -s conftest.err
9608 }; then
ad6254c5
AK
9609 ac_header_preproc=yes
9610else
9611 echo "$as_me: failed program was:" >&5
9612sed 's/^/| /' conftest.$ac_ext >&5
9613
9614 ac_header_preproc=no
9615fi
7a197a62 9616
ad6254c5 9617rm -f conftest.err conftest.$ac_ext
7a197a62
AK
9618{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9619echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
9620
9621# So? What about this header?
8a2fc586
AK
9622case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9623 yes:no: )
ad6254c5
AK
9624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9625echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
9626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9627echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9628 ac_header_preproc=yes
ad6254c5 9629 ;;
8a2fc586 9630 no:yes:* )
ad6254c5
AK
9631 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9632echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
9633 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9634echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9635 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9636echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9637 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9638echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
9639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9640echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
9641 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9642echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9643
ad6254c5
AK
9644 ;;
9645esac
7a197a62
AK
9646{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9650else
8a2fc586 9651 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9652fi
7a197a62
AK
9653ac_res=`eval echo '${'$as_ac_Header'}'`
9654 { echo "$as_me:$LINENO: result: $ac_res" >&5
9655echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9656
9657fi
9658if test `eval echo '${'$as_ac_Header'}'` = yes; then
9659 cat >>confdefs.h <<_ACEOF
9660#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9661_ACEOF
9662
9663else
9664 { { echo "$as_me:$LINENO: error: bailing out" >&5
9665echo "$as_me: error: bailing out" >&2;}
9666 { (exit 1); exit 1; }; }
795ca3e5
AK
9667fi
9668
ad6254c5
AK
9669done
9670
9671
795ca3e5 9672
8106cdd5 9673
ad6254c5
AK
9674
9675
9676for ac_func in dup2 getmntent memmove select socket
9677do
9678as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7a197a62
AK
9679{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9680echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9681if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5 9682 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 9683else
ad6254c5 9684 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9685/* confdefs.h. */
9686_ACEOF
9687cat confdefs.h >>conftest.$ac_ext
9688cat >>conftest.$ac_ext <<_ACEOF
9689/* end confdefs.h. */
8a2fc586
AK
9690/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9692#define $ac_func innocuous_$ac_func
9693
795ca3e5 9694/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
9695 which can conflict with char $ac_func (); below.
9696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9697 <limits.h> exists even on freestanding compilers. */
8a2fc586 9698
ad6254c5
AK
9699#ifdef __STDC__
9700# include <limits.h>
9701#else
9702# include <assert.h>
9703#endif
8a2fc586
AK
9704
9705#undef $ac_func
9706
7a197a62
AK
9707/* Override any GCC internal prototype to avoid an error.
9708 Use char because int might match the return type of a GCC
9709 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9710#ifdef __cplusplus
9711extern "C"
ad6254c5 9712#endif
ad6254c5 9713char $ac_func ();
795ca3e5
AK
9714/* The GNU C library defines this for functions which it implements
9715 to always fail with ENOSYS. Some functions are actually named
9716 something starting with __ and the normal name is an alias. */
7a197a62 9717#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 9718choke me
795ca3e5
AK
9719#endif
9720
ad6254c5
AK
9721int
9722main ()
9723{
7a197a62 9724return $ac_func ();
ad6254c5
AK
9725 ;
9726 return 0;
9727}
9728_ACEOF
9729rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9730if { (ac_try="$ac_link"
9731case "(($ac_try" in
9732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9733 *) ac_try_echo=$ac_try;;
9734esac
9735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9736 (eval "$ac_link") 2>conftest.er1
ad6254c5 9737 ac_status=$?
8a2fc586
AK
9738 grep -v '^ *+' conftest.er1 >conftest.err
9739 rm -f conftest.er1
9740 cat conftest.err >&5
ad6254c5 9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
9742 (exit $ac_status); } && {
9743 test -z "$ac_c_werror_flag" ||
9744 test ! -s conftest.err
9745 } && test -s conftest$ac_exeext &&
9746 $as_test_x conftest$ac_exeext; then
ad6254c5 9747 eval "$as_ac_var=yes"
795ca3e5 9748else
ad6254c5
AK
9749 echo "$as_me: failed program was:" >&5
9750sed 's/^/| /' conftest.$ac_ext >&5
9751
7a197a62 9752 eval "$as_ac_var=no"
80992638 9753fi
7a197a62
AK
9754
9755rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9756 conftest$ac_exeext conftest.$ac_ext
795ca3e5 9757fi
7a197a62
AK
9758ac_res=`eval echo '${'$as_ac_var'}'`
9759 { echo "$as_me:$LINENO: result: $ac_res" >&5
9760echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9761if test `eval echo '${'$as_ac_var'}'` = yes; then
9762 cat >>confdefs.h <<_ACEOF
9763#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9764_ACEOF
80992638
AK
9765
9766else
ad6254c5
AK
9767 { { echo "$as_me:$LINENO: error: bailing out" >&5
9768echo "$as_me: error: bailing out" >&2;}
9769 { (exit 1); exit 1; }; }
8106cdd5 9770fi
ad6254c5 9771done
795ca3e5 9772
7a197a62
AK
9773 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9774# -lseq on Dynix/PTX, -lgen on Unixware.
9775{ echo "$as_me:$LINENO: checking for library containing getmntent" >&5
9776echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
9777if test "${ac_cv_search_getmntent+set}" = set; then
ad6254c5
AK
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9779else
7a197a62 9780 ac_func_search_save_LIBS=$LIBS
ad6254c5 9781cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9782/* confdefs.h. */
9783_ACEOF
9784cat confdefs.h >>conftest.$ac_ext
9785cat >>conftest.$ac_ext <<_ACEOF
9786/* end confdefs.h. */
80992638 9787
7a197a62
AK
9788/* Override any GCC internal prototype to avoid an error.
9789 Use char because int might match the return type of a GCC
ad6254c5 9790 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9791#ifdef __cplusplus
9792extern "C"
9793#endif
ad6254c5
AK
9794char getmntent ();
9795int
9796main ()
9797{
7a197a62 9798return getmntent ();
ad6254c5
AK
9799 ;
9800 return 0;
9801}
9802_ACEOF
7a197a62
AK
9803for ac_lib in '' sun seq gen; do
9804 if test -z "$ac_lib"; then
9805 ac_res="none required"
9806 else
9807 ac_res=-l$ac_lib
9808 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9809 fi
9810 rm -f conftest.$ac_objext conftest$ac_exeext
9811if { (ac_try="$ac_link"
9812case "(($ac_try" in
9813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9814 *) ac_try_echo=$ac_try;;
9815esac
9816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817 (eval "$ac_link") 2>conftest.er1
ad6254c5 9818 ac_status=$?
8a2fc586
AK
9819 grep -v '^ *+' conftest.er1 >conftest.err
9820 rm -f conftest.er1
9821 cat conftest.err >&5
ad6254c5 9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
9823 (exit $ac_status); } && {
9824 test -z "$ac_c_werror_flag" ||
9825 test ! -s conftest.err
9826 } && test -s conftest$ac_exeext &&
9827 $as_test_x conftest$ac_exeext; then
9828 ac_cv_search_getmntent=$ac_res
80992638 9829else
ad6254c5
AK
9830 echo "$as_me: failed program was:" >&5
9831sed 's/^/| /' conftest.$ac_ext >&5
9832
795ca3e5
AK
9833
9834fi
9835
7a197a62
AK
9836rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9837 conftest$ac_exeext
9838 if test "${ac_cv_search_getmntent+set}" = set; then
9839 break
ad6254c5 9840fi
7a197a62
AK
9841done
9842if test "${ac_cv_search_getmntent+set}" = set; then
9843 :
795ca3e5 9844else
7a197a62 9845 ac_cv_search_getmntent=no
795ca3e5 9846fi
7a197a62
AK
9847rm conftest.$ac_ext
9848LIBS=$ac_func_search_save_LIBS
795ca3e5 9849fi
7a197a62
AK
9850{ echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
9851echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
9852ac_res=$ac_cv_search_getmntent
9853if test "$ac_res" != no; then
9854 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9855 ac_cv_func_getmntent=yes
9856
9857cat >>confdefs.h <<\_ACEOF
9858#define HAVE_GETMNTENT
ad6254c5 9859_ACEOF
795ca3e5 9860
7a197a62
AK
9861else
9862 ac_cv_func_getmntent=no
795ca3e5 9863fi
795ca3e5
AK
9864
9865
ad6254c5
AK
9866# AC_FUNC_REALLOC
9867
9868
9869for ac_header in sys/select.h sys/socket.h
9870do
9871as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62
AK
9872if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9875if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9877fi
7a197a62
AK
9878ac_res=`eval echo '${'$as_ac_Header'}'`
9879 { echo "$as_me:$LINENO: result: $ac_res" >&5
9880echo "${ECHO_T}$ac_res" >&6; }
795ca3e5 9881else
ad6254c5 9882 # Is the header compilable?
7a197a62
AK
9883{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9884echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 9885cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9886/* confdefs.h. */
9887_ACEOF
9888cat confdefs.h >>conftest.$ac_ext
9889cat >>conftest.$ac_ext <<_ACEOF
9890/* end confdefs.h. */
9891$ac_includes_default
9892#include <$ac_header>
9893_ACEOF
9894rm -f conftest.$ac_objext
7a197a62
AK
9895if { (ac_try="$ac_compile"
9896case "(($ac_try" in
9897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9898 *) ac_try_echo=$ac_try;;
9899esac
9900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9901 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9902 ac_status=$?
8a2fc586
AK
9903 grep -v '^ *+' conftest.er1 >conftest.err
9904 rm -f conftest.er1
9905 cat conftest.err >&5
ad6254c5 9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
9907 (exit $ac_status); } && {
9908 test -z "$ac_c_werror_flag" ||
9909 test ! -s conftest.err
9910 } && test -s conftest.$ac_objext; then
ad6254c5 9911 ac_header_compiler=yes
80992638 9912else
ad6254c5
AK
9913 echo "$as_me: failed program was:" >&5
9914sed 's/^/| /' conftest.$ac_ext >&5
9915
7a197a62 9916 ac_header_compiler=no
ad6254c5 9917fi
7a197a62
AK
9918
9919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9920{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9921echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
9922
9923# Is the header present?
7a197a62
AK
9924{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9925echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 9926cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9927/* confdefs.h. */
9928_ACEOF
9929cat confdefs.h >>conftest.$ac_ext
9930cat >>conftest.$ac_ext <<_ACEOF
9931/* end confdefs.h. */
9932#include <$ac_header>
9933_ACEOF
7a197a62
AK
9934if { (ac_try="$ac_cpp conftest.$ac_ext"
9935case "(($ac_try" in
9936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9937 *) ac_try_echo=$ac_try;;
9938esac
9939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9941 ac_status=$?
9942 grep -v '^ *+' conftest.er1 >conftest.err
9943 rm -f conftest.er1
9944 cat conftest.err >&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
9946 (exit $ac_status); } >/dev/null && {
9947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9948 test ! -s conftest.err
9949 }; then
ad6254c5
AK
9950 ac_header_preproc=yes
9951else
9952 echo "$as_me: failed program was:" >&5
9953sed 's/^/| /' conftest.$ac_ext >&5
9954
9955 ac_header_preproc=no
9956fi
7a197a62 9957
ad6254c5 9958rm -f conftest.err conftest.$ac_ext
7a197a62
AK
9959{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9960echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
9961
9962# So? What about this header?
8a2fc586
AK
9963case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9964 yes:no: )
ad6254c5
AK
9965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9966echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
9967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9968echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9969 ac_header_preproc=yes
ad6254c5 9970 ;;
8a2fc586 9971 no:yes:* )
ad6254c5
AK
9972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9973echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
9974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9975echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9977echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9979echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
9980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9981echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
9982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9983echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9984
ad6254c5
AK
9985 ;;
9986esac
7a197a62
AK
9987{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
9990 echo $ECHO_N "(cached) $ECHO_C" >&6
9991else
8a2fc586 9992 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 9993fi
7a197a62
AK
9994ac_res=`eval echo '${'$as_ac_Header'}'`
9995 { echo "$as_me:$LINENO: result: $ac_res" >&5
9996echo "${ECHO_T}$ac_res" >&6; }
8106cdd5 9997
795ca3e5 9998fi
ad6254c5
AK
9999if test `eval echo '${'$as_ac_Header'}'` = yes; then
10000 cat >>confdefs.h <<_ACEOF
10001#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10002_ACEOF
10003
795ca3e5
AK
10004fi
10005
ad6254c5
AK
10006done
10007
7a197a62
AK
10008{ echo "$as_me:$LINENO: checking types of arguments for select" >&5
10009echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
ad6254c5
AK
10010if test "${ac_cv_func_select_args+set}" = set; then
10011 echo $ECHO_N "(cached) $ECHO_C" >&6
26e7f2e0 10012else
ad6254c5 10013 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 10014 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
10015 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10016 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10017/* confdefs.h. */
10018_ACEOF
10019cat confdefs.h >>conftest.$ac_ext
10020cat >>conftest.$ac_ext <<_ACEOF
10021/* end confdefs.h. */
10022$ac_includes_default
7a197a62 10023#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
10024# include <sys/select.h>
10025#endif
7a197a62 10026#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
10027# include <sys/socket.h>
10028#endif
10029
10030int
10031main ()
10032{
10033extern int select ($ac_arg1,
8a2fc586
AK
10034 $ac_arg234, $ac_arg234, $ac_arg234,
10035 $ac_arg5);
ad6254c5
AK
10036 ;
10037 return 0;
10038}
10039_ACEOF
10040rm -f conftest.$ac_objext
7a197a62
AK
10041if { (ac_try="$ac_compile"
10042case "(($ac_try" in
10043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044 *) ac_try_echo=$ac_try;;
10045esac
10046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10048 ac_status=$?
8a2fc586
AK
10049 grep -v '^ *+' conftest.er1 >conftest.err
10050 rm -f conftest.er1
10051 cat conftest.err >&5
ad6254c5 10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
10053 (exit $ac_status); } && {
10054 test -z "$ac_c_werror_flag" ||
10055 test ! -s conftest.err
10056 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10057 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10058else
10059 echo "$as_me: failed program was:" >&5
10060sed 's/^/| /' conftest.$ac_ext >&5
10061
7a197a62 10062
ad6254c5 10063fi
7a197a62
AK
10064
10065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10066 done
10067 done
10068done
10069# Provide a safe default value.
10070: ${ac_cv_func_select_args='int,int *,struct timeval *'}
10071
26e7f2e0 10072fi
7a197a62
AK
10073{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
10074echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
ad6254c5
AK
10075ac_save_IFS=$IFS; IFS=','
10076set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10077IFS=$ac_save_IFS
10078shift
10079
10080cat >>confdefs.h <<_ACEOF
10081#define SELECT_TYPE_ARG1 $1
10082_ACEOF
10083
10084
10085cat >>confdefs.h <<_ACEOF
10086#define SELECT_TYPE_ARG234 ($2)
10087_ACEOF
10088
10089
10090cat >>confdefs.h <<_ACEOF
10091#define SELECT_TYPE_ARG5 ($3)
10092_ACEOF
10093
80992638 10094rm -f conftest*
80992638 10095
8106cdd5 10096fi
ad6254c5
AK
10097
10098if test x$FSADM = xyes; then
10099
10100
10101
10102for ac_header in fstab.h sys/mount.h sys/vfs.h
10103do
10104as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62
AK
10105if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10107echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10108if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
10109 echo $ECHO_N "(cached) $ECHO_C" >&6
10110fi
7a197a62
AK
10111ac_res=`eval echo '${'$as_ac_Header'}'`
10112 { echo "$as_me:$LINENO: result: $ac_res" >&5
10113echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10114else
10115 # Is the header compilable?
7a197a62
AK
10116{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10117echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10118cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10119/* confdefs.h. */
10120_ACEOF
10121cat confdefs.h >>conftest.$ac_ext
10122cat >>conftest.$ac_ext <<_ACEOF
10123/* end confdefs.h. */
10124$ac_includes_default
10125#include <$ac_header>
10126_ACEOF
10127rm -f conftest.$ac_objext
7a197a62
AK
10128if { (ac_try="$ac_compile"
10129case "(($ac_try" in
10130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10131 *) ac_try_echo=$ac_try;;
10132esac
10133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10134 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10135 ac_status=$?
8a2fc586
AK
10136 grep -v '^ *+' conftest.er1 >conftest.err
10137 rm -f conftest.er1
10138 cat conftest.err >&5
ad6254c5 10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
10140 (exit $ac_status); } && {
10141 test -z "$ac_c_werror_flag" ||
10142 test ! -s conftest.err
10143 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10144 ac_header_compiler=yes
10145else
10146 echo "$as_me: failed program was:" >&5
10147sed 's/^/| /' conftest.$ac_ext >&5
10148
7a197a62 10149 ac_header_compiler=no
ad6254c5 10150fi
7a197a62
AK
10151
10152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10153{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10154echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10155
10156# Is the header present?
7a197a62
AK
10157{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10158echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10159cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10160/* confdefs.h. */
10161_ACEOF
10162cat confdefs.h >>conftest.$ac_ext
10163cat >>conftest.$ac_ext <<_ACEOF
10164/* end confdefs.h. */
10165#include <$ac_header>
10166_ACEOF
7a197a62
AK
10167if { (ac_try="$ac_cpp conftest.$ac_ext"
10168case "(($ac_try" in
10169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10170 *) ac_try_echo=$ac_try;;
10171esac
10172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10174 ac_status=$?
10175 grep -v '^ *+' conftest.er1 >conftest.err
10176 rm -f conftest.er1
10177 cat conftest.err >&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
10179 (exit $ac_status); } >/dev/null && {
10180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10181 test ! -s conftest.err
10182 }; then
ad6254c5
AK
10183 ac_header_preproc=yes
10184else
10185 echo "$as_me: failed program was:" >&5
10186sed 's/^/| /' conftest.$ac_ext >&5
10187
10188 ac_header_preproc=no
10189fi
7a197a62 10190
ad6254c5 10191rm -f conftest.err conftest.$ac_ext
7a197a62
AK
10192{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10193echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10194
10195# So? What about this header?
8a2fc586
AK
10196case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10197 yes:no: )
ad6254c5
AK
10198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10199echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
10200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10201echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10202 ac_header_preproc=yes
ad6254c5 10203 ;;
8a2fc586 10204 no:yes:* )
ad6254c5
AK
10205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10206echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
10207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10208echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10210echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10212echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10214echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
10215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10216echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10217
ad6254c5
AK
10218 ;;
10219esac
7a197a62
AK
10220{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10221echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10222if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5 10223 echo $ECHO_N "(cached) $ECHO_C" >&6
26e7f2e0 10224else
8a2fc586 10225 eval "$as_ac_Header=\$ac_header_preproc"
26e7f2e0 10226fi
7a197a62
AK
10227ac_res=`eval echo '${'$as_ac_Header'}'`
10228 { echo "$as_me:$LINENO: result: $ac_res" >&5
10229echo "${ECHO_T}$ac_res" >&6; }
26e7f2e0 10230
ad6254c5
AK
10231fi
10232if test `eval echo '${'$as_ac_Header'}'` = yes; then
10233 cat >>confdefs.h <<_ACEOF
10234#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10235_ACEOF
26e7f2e0 10236
d68a82ec 10237else
ad6254c5
AK
10238 { { echo "$as_me:$LINENO: error: bailing out" >&5
10239echo "$as_me: error: bailing out" >&2;}
10240 { (exit 1); exit 1; }; }
26e7f2e0
AK
10241fi
10242
ad6254c5 10243done
036f273a 10244
ad6254c5
AK
10245
10246for ac_func in memmove
10247do
10248as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7a197a62
AK
10249{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10250echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10251if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5 10252 echo $ECHO_N "(cached) $ECHO_C" >&6
036f273a 10253else
ad6254c5 10254 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10255/* confdefs.h. */
10256_ACEOF
10257cat confdefs.h >>conftest.$ac_ext
10258cat >>conftest.$ac_ext <<_ACEOF
10259/* end confdefs.h. */
8a2fc586
AK
10260/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10262#define $ac_func innocuous_$ac_func
10263
ad6254c5
AK
10264/* System header to define __stub macros and hopefully few prototypes,
10265 which can conflict with char $ac_func (); below.
10266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10267 <limits.h> exists even on freestanding compilers. */
8a2fc586 10268
ad6254c5
AK
10269#ifdef __STDC__
10270# include <limits.h>
10271#else
10272# include <assert.h>
10273#endif
8a2fc586
AK
10274
10275#undef $ac_func
10276
7a197a62
AK
10277/* Override any GCC internal prototype to avoid an error.
10278 Use char because int might match the return type of a GCC
10279 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10280#ifdef __cplusplus
10281extern "C"
ad6254c5 10282#endif
ad6254c5
AK
10283char $ac_func ();
10284/* The GNU C library defines this for functions which it implements
10285 to always fail with ENOSYS. Some functions are actually named
10286 something starting with __ and the normal name is an alias. */
7a197a62 10287#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 10288choke me
ad6254c5 10289#endif
80992638 10290
ad6254c5
AK
10291int
10292main ()
10293{
7a197a62 10294return $ac_func ();
ad6254c5
AK
10295 ;
10296 return 0;
10297}
10298_ACEOF
10299rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10300if { (ac_try="$ac_link"
10301case "(($ac_try" in
10302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10303 *) ac_try_echo=$ac_try;;
10304esac
10305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10306 (eval "$ac_link") 2>conftest.er1
ad6254c5 10307 ac_status=$?
8a2fc586
AK
10308 grep -v '^ *+' conftest.er1 >conftest.err
10309 rm -f conftest.er1
10310 cat conftest.err >&5
ad6254c5 10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
10312 (exit $ac_status); } && {
10313 test -z "$ac_c_werror_flag" ||
10314 test ! -s conftest.err
10315 } && test -s conftest$ac_exeext &&
10316 $as_test_x conftest$ac_exeext; then
ad6254c5 10317 eval "$as_ac_var=yes"
036f273a 10318else
ad6254c5
AK
10319 echo "$as_me: failed program was:" >&5
10320sed 's/^/| /' conftest.$ac_ext >&5
10321
7a197a62 10322 eval "$as_ac_var=no"
036f273a 10323fi
7a197a62
AK
10324
10325rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10326 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10327fi
7a197a62
AK
10328ac_res=`eval echo '${'$as_ac_var'}'`
10329 { echo "$as_me:$LINENO: result: $ac_res" >&5
10330echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10331if test `eval echo '${'$as_ac_var'}'` = yes; then
10332 cat >>confdefs.h <<_ACEOF
10333#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10334_ACEOF
036f273a 10335
ad6254c5
AK
10336else
10337 { { echo "$as_me:$LINENO: error: bailing out" >&5
10338echo "$as_me: error: bailing out" >&2;}
10339 { (exit 1); exit 1; }; }
10340fi
10341done
036f273a 10342
036f273a 10343fi
d68a82ec 10344
ad6254c5
AK
10345if test x$CLUSTER != xnone; then
10346
10347
10348for ac_header in sys/socket.h sys/un.h
b896caa1 10349do
ad6254c5 10350as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62
AK
10351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
10355 echo $ECHO_N "(cached) $ECHO_C" >&6
10356fi
7a197a62
AK
10357ac_res=`eval echo '${'$as_ac_Header'}'`
10358 { echo "$as_me:$LINENO: result: $ac_res" >&5
10359echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10360else
10361 # Is the header compilable?
7a197a62
AK
10362{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10363echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10364cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10365/* confdefs.h. */
10366_ACEOF
10367cat confdefs.h >>conftest.$ac_ext
10368cat >>conftest.$ac_ext <<_ACEOF
10369/* end confdefs.h. */
10370$ac_includes_default
10371#include <$ac_header>
10372_ACEOF
10373rm -f conftest.$ac_objext
7a197a62
AK
10374if { (ac_try="$ac_compile"
10375case "(($ac_try" in
10376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377 *) ac_try_echo=$ac_try;;
10378esac
10379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10381 ac_status=$?
8a2fc586
AK
10382 grep -v '^ *+' conftest.er1 >conftest.err
10383 rm -f conftest.er1
10384 cat conftest.err >&5
ad6254c5 10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
10386 (exit $ac_status); } && {
10387 test -z "$ac_c_werror_flag" ||
10388 test ! -s conftest.err
10389 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10390 ac_header_compiler=yes
10391else
10392 echo "$as_me: failed program was:" >&5
10393sed 's/^/| /' conftest.$ac_ext >&5
10394
7a197a62 10395 ac_header_compiler=no
ad6254c5 10396fi
7a197a62
AK
10397
10398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10399{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10400echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10401
10402# Is the header present?
7a197a62
AK
10403{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10404echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10405cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10406/* confdefs.h. */
10407_ACEOF
10408cat confdefs.h >>conftest.$ac_ext
10409cat >>conftest.$ac_ext <<_ACEOF
10410/* end confdefs.h. */
10411#include <$ac_header>
10412_ACEOF
7a197a62
AK
10413if { (ac_try="$ac_cpp conftest.$ac_ext"
10414case "(($ac_try" in
10415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10416 *) ac_try_echo=$ac_try;;
10417esac
10418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10420 ac_status=$?
10421 grep -v '^ *+' conftest.er1 >conftest.err
10422 rm -f conftest.er1
10423 cat conftest.err >&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
10425 (exit $ac_status); } >/dev/null && {
10426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10427 test ! -s conftest.err
10428 }; then
ad6254c5
AK
10429 ac_header_preproc=yes
10430else
10431 echo "$as_me: failed program was:" >&5
10432sed 's/^/| /' conftest.$ac_ext >&5
10433
10434 ac_header_preproc=no
10435fi
7a197a62 10436
ad6254c5 10437rm -f conftest.err conftest.$ac_ext
7a197a62
AK
10438{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10439echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10440
10441# So? What about this header?
8a2fc586
AK
10442case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10443 yes:no: )
ad6254c5
AK
10444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10445echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
10446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10447echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10448 ac_header_preproc=yes
ad6254c5 10449 ;;
8a2fc586 10450 no:yes:* )
ad6254c5
AK
10451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10452echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
10453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10454echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10456echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10458echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10460echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
10461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10462echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10463
ad6254c5
AK
10464 ;;
10465esac
7a197a62
AK
10466{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10470else
8a2fc586 10471 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 10472fi
7a197a62
AK
10473ac_res=`eval echo '${'$as_ac_Header'}'`
10474 { echo "$as_me:$LINENO: result: $ac_res" >&5
10475echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10476
10477fi
10478if test `eval echo '${'$as_ac_Header'}'` = yes; then
10479 cat >>confdefs.h <<_ACEOF
10480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10481_ACEOF
10482
80992638 10483else
ad6254c5
AK
10484 { { echo "$as_me:$LINENO: error: bailing out" >&5
10485echo "$as_me: error: bailing out" >&2;}
10486 { (exit 1); exit 1; }; }
b896caa1 10487fi
ad6254c5 10488
b896caa1
AK
10489done
10490
10491
ad6254c5
AK
10492for ac_func in socket
10493do
10494as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7a197a62
AK
10495{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10496echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10497if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5 10498 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 10499else
ad6254c5 10500 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10501/* confdefs.h. */
10502_ACEOF
10503cat confdefs.h >>conftest.$ac_ext
10504cat >>conftest.$ac_ext <<_ACEOF
10505/* end confdefs.h. */
8a2fc586
AK
10506/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10508#define $ac_func innocuous_$ac_func
10509
ad6254c5
AK
10510/* System header to define __stub macros and hopefully few prototypes,
10511 which can conflict with char $ac_func (); below.
10512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10513 <limits.h> exists even on freestanding compilers. */
8a2fc586 10514
ad6254c5
AK
10515#ifdef __STDC__
10516# include <limits.h>
10517#else
10518# include <assert.h>
10519#endif
8a2fc586
AK
10520
10521#undef $ac_func
10522
7a197a62
AK
10523/* Override any GCC internal prototype to avoid an error.
10524 Use char because int might match the return type of a GCC
10525 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10526#ifdef __cplusplus
10527extern "C"
ad6254c5 10528#endif
ad6254c5
AK
10529char $ac_func ();
10530/* The GNU C library defines this for functions which it implements
10531 to always fail with ENOSYS. Some functions are actually named
10532 something starting with __ and the normal name is an alias. */
7a197a62 10533#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 10534choke me
ad6254c5
AK
10535#endif
10536
10537int
10538main ()
10539{
7a197a62 10540return $ac_func ();
ad6254c5
AK
10541 ;
10542 return 0;
10543}
10544_ACEOF
10545rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10546if { (ac_try="$ac_link"
10547case "(($ac_try" in
10548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10550esac
10551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_link") 2>conftest.er1
ad6254c5 10553 ac_status=$?
8a2fc586
AK
10554 grep -v '^ *+' conftest.er1 >conftest.err
10555 rm -f conftest.er1
10556 cat conftest.err >&5
ad6254c5 10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
10558 (exit $ac_status); } && {
10559 test -z "$ac_c_werror_flag" ||
10560 test ! -s conftest.err
10561 } && test -s conftest$ac_exeext &&
10562 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
10563 eval "$as_ac_var=yes"
10564else
10565 echo "$as_me: failed program was:" >&5
10566sed 's/^/| /' conftest.$ac_ext >&5
10567
7a197a62 10568 eval "$as_ac_var=no"
ad6254c5 10569fi
7a197a62
AK
10570
10571rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10572 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10573fi
7a197a62
AK
10574ac_res=`eval echo '${'$as_ac_var'}'`
10575 { echo "$as_me:$LINENO: result: $ac_res" >&5
10576echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10577if test `eval echo '${'$as_ac_var'}'` = yes; then
10578 cat >>confdefs.h <<_ACEOF
10579#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10580_ACEOF
10581
10582else
10583 { { echo "$as_me:$LINENO: error: bailing out" >&5
10584echo "$as_me: error: bailing out" >&2;}
10585 { (exit 1); exit 1; }; }
10586fi
10587done
10588
10589fi
10590
10591if test x$HAVE_LIBDL = xyes; then
10592
10593for ac_header in dlfcn.h
10594do
10595as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62
AK
10596if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10599if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
10600 echo $ECHO_N "(cached) $ECHO_C" >&6
10601fi
7a197a62
AK
10602ac_res=`eval echo '${'$as_ac_Header'}'`
10603 { echo "$as_me:$LINENO: result: $ac_res" >&5
10604echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10605else
10606 # Is the header compilable?
7a197a62
AK
10607{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10608echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10609cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10610/* confdefs.h. */
10611_ACEOF
10612cat confdefs.h >>conftest.$ac_ext
10613cat >>conftest.$ac_ext <<_ACEOF
10614/* end confdefs.h. */
10615$ac_includes_default
10616#include <$ac_header>
10617_ACEOF
10618rm -f conftest.$ac_objext
7a197a62
AK
10619if { (ac_try="$ac_compile"
10620case "(($ac_try" in
10621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10622 *) ac_try_echo=$ac_try;;
10623esac
10624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10626 ac_status=$?
8a2fc586
AK
10627 grep -v '^ *+' conftest.er1 >conftest.err
10628 rm -f conftest.er1
10629 cat conftest.err >&5
ad6254c5 10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
10631 (exit $ac_status); } && {
10632 test -z "$ac_c_werror_flag" ||
10633 test ! -s conftest.err
10634 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10635 ac_header_compiler=yes
10636else
10637 echo "$as_me: failed program was:" >&5
10638sed 's/^/| /' conftest.$ac_ext >&5
10639
7a197a62 10640 ac_header_compiler=no
ad6254c5 10641fi
7a197a62
AK
10642
10643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10644{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10645echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10646
10647# Is the header present?
7a197a62
AK
10648{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10649echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10650cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10651/* confdefs.h. */
10652_ACEOF
10653cat confdefs.h >>conftest.$ac_ext
10654cat >>conftest.$ac_ext <<_ACEOF
10655/* end confdefs.h. */
10656#include <$ac_header>
10657_ACEOF
7a197a62
AK
10658if { (ac_try="$ac_cpp conftest.$ac_ext"
10659case "(($ac_try" in
10660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10661 *) ac_try_echo=$ac_try;;
10662esac
10663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10665 ac_status=$?
10666 grep -v '^ *+' conftest.er1 >conftest.err
10667 rm -f conftest.er1
10668 cat conftest.err >&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
10670 (exit $ac_status); } >/dev/null && {
10671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10672 test ! -s conftest.err
10673 }; then
ad6254c5
AK
10674 ac_header_preproc=yes
10675else
10676 echo "$as_me: failed program was:" >&5
10677sed 's/^/| /' conftest.$ac_ext >&5
10678
10679 ac_header_preproc=no
10680fi
7a197a62 10681
ad6254c5 10682rm -f conftest.err conftest.$ac_ext
7a197a62
AK
10683{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10684echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10685
10686# So? What about this header?
8a2fc586
AK
10687case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10688 yes:no: )
ad6254c5
AK
10689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10690echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
10691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10692echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10693 ac_header_preproc=yes
ad6254c5 10694 ;;
8a2fc586 10695 no:yes:* )
ad6254c5
AK
10696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10697echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
10698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10699echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10701echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10703echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10705echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
10706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10707echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10708
ad6254c5
AK
10709 ;;
10710esac
7a197a62
AK
10711{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10712echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10713if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
10714 echo $ECHO_N "(cached) $ECHO_C" >&6
10715else
8a2fc586 10716 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 10717fi
7a197a62
AK
10718ac_res=`eval echo '${'$as_ac_Header'}'`
10719 { echo "$as_me:$LINENO: result: $ac_res" >&5
10720echo "${ECHO_T}$ac_res" >&6; }
80992638 10721
8106cdd5 10722fi
ad6254c5
AK
10723if test `eval echo '${'$as_ac_Header'}'` = yes; then
10724 cat >>confdefs.h <<_ACEOF
10725#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10726_ACEOF
795ca3e5
AK
10727
10728else
ad6254c5
AK
10729 { { echo "$as_me:$LINENO: error: bailing out" >&5
10730echo "$as_me: error: bailing out" >&2;}
10731 { (exit 1); exit 1; }; }
795ca3e5
AK
10732fi
10733
ad6254c5 10734done
80992638 10735
ad6254c5 10736fi
80992638 10737
ad6254c5 10738if test x$INTL = xyes; then
83912faa 10739
ad6254c5
AK
10740for ac_header in libintl.h
10741do
10742as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62
AK
10743if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10744 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10745echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10746if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10748fi
7a197a62
AK
10749ac_res=`eval echo '${'$as_ac_Header'}'`
10750 { echo "$as_me:$LINENO: result: $ac_res" >&5
10751echo "${ECHO_T}$ac_res" >&6; }
83912faa 10752else
ad6254c5 10753 # Is the header compilable?
7a197a62
AK
10754{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10755echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10756cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10757/* confdefs.h. */
10758_ACEOF
10759cat confdefs.h >>conftest.$ac_ext
10760cat >>conftest.$ac_ext <<_ACEOF
10761/* end confdefs.h. */
10762$ac_includes_default
10763#include <$ac_header>
10764_ACEOF
10765rm -f conftest.$ac_objext
7a197a62
AK
10766if { (ac_try="$ac_compile"
10767case "(($ac_try" in
10768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10769 *) ac_try_echo=$ac_try;;
10770esac
10771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10772 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10773 ac_status=$?
8a2fc586
AK
10774 grep -v '^ *+' conftest.er1 >conftest.err
10775 rm -f conftest.er1
10776 cat conftest.err >&5
ad6254c5 10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
10778 (exit $ac_status); } && {
10779 test -z "$ac_c_werror_flag" ||
10780 test ! -s conftest.err
10781 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10782 ac_header_compiler=yes
10783else
10784 echo "$as_me: failed program was:" >&5
10785sed 's/^/| /' conftest.$ac_ext >&5
10786
7a197a62 10787 ac_header_compiler=no
ad6254c5 10788fi
7a197a62
AK
10789
10790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10791{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10792echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10793
10794# Is the header present?
7a197a62
AK
10795{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10796echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10797cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10798/* confdefs.h. */
10799_ACEOF
10800cat confdefs.h >>conftest.$ac_ext
10801cat >>conftest.$ac_ext <<_ACEOF
10802/* end confdefs.h. */
10803#include <$ac_header>
10804_ACEOF
7a197a62
AK
10805if { (ac_try="$ac_cpp conftest.$ac_ext"
10806case "(($ac_try" in
10807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10808 *) ac_try_echo=$ac_try;;
10809esac
10810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10812 ac_status=$?
10813 grep -v '^ *+' conftest.er1 >conftest.err
10814 rm -f conftest.er1
10815 cat conftest.err >&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
10817 (exit $ac_status); } >/dev/null && {
10818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10819 test ! -s conftest.err
10820 }; then
ad6254c5
AK
10821 ac_header_preproc=yes
10822else
10823 echo "$as_me: failed program was:" >&5
10824sed 's/^/| /' conftest.$ac_ext >&5
10825
10826 ac_header_preproc=no
10827fi
7a197a62 10828
ad6254c5 10829rm -f conftest.err conftest.$ac_ext
7a197a62
AK
10830{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10831echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10832
10833# So? What about this header?
8a2fc586
AK
10834case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10835 yes:no: )
ad6254c5
AK
10836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10837echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
10838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10839echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10840 ac_header_preproc=yes
ad6254c5 10841 ;;
8a2fc586 10842 no:yes:* )
ad6254c5
AK
10843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10844echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
10845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10846echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10847 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10848echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10849 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10850echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10852echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
10853 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10854echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10855
ad6254c5
AK
10856 ;;
10857esac
7a197a62
AK
10858{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10859echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10860if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5 10861 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 10862else
8a2fc586 10863 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 10864fi
7a197a62
AK
10865ac_res=`eval echo '${'$as_ac_Header'}'`
10866 { echo "$as_me:$LINENO: result: $ac_res" >&5
10867echo "${ECHO_T}$ac_res" >&6; }
83912faa 10868
69792976 10869fi
ad6254c5
AK
10870if test `eval echo '${'$as_ac_Header'}'` = yes; then
10871 cat >>confdefs.h <<_ACEOF
10872#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10873_ACEOF
69792976 10874
69792976 10875else
ad6254c5
AK
10876 { { echo "$as_me:$LINENO: error: bailing out" >&5
10877echo "$as_me: error: bailing out" >&2;}
10878 { (exit 1); exit 1; }; }
80992638
AK
10879fi
10880
ad6254c5 10881done
69792976 10882
ad6254c5
AK
10883fi
10884
ad6254c5
AK
10885
10886for ac_header in libdevmapper.h
10887do
10888as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62
AK
10889if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10891echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10892if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
10893 echo $ECHO_N "(cached) $ECHO_C" >&6
10894fi
7a197a62
AK
10895ac_res=`eval echo '${'$as_ac_Header'}'`
10896 { echo "$as_me:$LINENO: result: $ac_res" >&5
10897echo "${ECHO_T}$ac_res" >&6; }
69792976 10898else
ad6254c5 10899 # Is the header compilable?
7a197a62
AK
10900{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10901echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10902cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10903/* confdefs.h. */
10904_ACEOF
10905cat confdefs.h >>conftest.$ac_ext
10906cat >>conftest.$ac_ext <<_ACEOF
10907/* end confdefs.h. */
10908$ac_includes_default
10909#include <$ac_header>
10910_ACEOF
10911rm -f conftest.$ac_objext
7a197a62
AK
10912if { (ac_try="$ac_compile"
10913case "(($ac_try" in
10914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10915 *) ac_try_echo=$ac_try;;
10916esac
10917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10919 ac_status=$?
8a2fc586
AK
10920 grep -v '^ *+' conftest.er1 >conftest.err
10921 rm -f conftest.er1
10922 cat conftest.err >&5
ad6254c5 10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
10924 (exit $ac_status); } && {
10925 test -z "$ac_c_werror_flag" ||
10926 test ! -s conftest.err
10927 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10928 ac_header_compiler=yes
10929else
10930 echo "$as_me: failed program was:" >&5
10931sed 's/^/| /' conftest.$ac_ext >&5
10932
7a197a62 10933 ac_header_compiler=no
ad6254c5 10934fi
7a197a62
AK
10935
10936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10937{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10938echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10939
10940# Is the header present?
7a197a62
AK
10941{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10942echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10943cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10944/* confdefs.h. */
10945_ACEOF
10946cat confdefs.h >>conftest.$ac_ext
10947cat >>conftest.$ac_ext <<_ACEOF
10948/* end confdefs.h. */
10949#include <$ac_header>
10950_ACEOF
7a197a62
AK
10951if { (ac_try="$ac_cpp conftest.$ac_ext"
10952case "(($ac_try" in
10953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954 *) ac_try_echo=$ac_try;;
10955esac
10956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10958 ac_status=$?
10959 grep -v '^ *+' conftest.er1 >conftest.err
10960 rm -f conftest.er1
10961 cat conftest.err >&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
10963 (exit $ac_status); } >/dev/null && {
10964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10965 test ! -s conftest.err
10966 }; then
ad6254c5
AK
10967 ac_header_preproc=yes
10968else
10969 echo "$as_me: failed program was:" >&5
10970sed 's/^/| /' conftest.$ac_ext >&5
10971
10972 ac_header_preproc=no
10973fi
7a197a62 10974
ad6254c5 10975rm -f conftest.err conftest.$ac_ext
7a197a62
AK
10976{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10977echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10978
10979# So? What about this header?
8a2fc586
AK
10980case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10981 yes:no: )
ad6254c5
AK
10982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10983echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
10984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10985echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10986 ac_header_preproc=yes
ad6254c5 10987 ;;
8a2fc586 10988 no:yes:* )
ad6254c5
AK
10989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10990echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
10991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10992echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10994echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10996echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10998echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
10999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11000echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11001
ad6254c5
AK
11002 ;;
11003esac
7a197a62
AK
11004{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11005echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11006if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5 11007 echo $ECHO_N "(cached) $ECHO_C" >&6
69792976 11008else
8a2fc586 11009 eval "$as_ac_Header=\$ac_header_preproc"
69792976 11010fi
7a197a62
AK
11011ac_res=`eval echo '${'$as_ac_Header'}'`
11012 { echo "$as_me:$LINENO: result: $ac_res" >&5
11013echo "${ECHO_T}$ac_res" >&6; }
69792976 11014
ad6254c5
AK
11015fi
11016if test `eval echo '${'$as_ac_Header'}'` = yes; then
11017 cat >>confdefs.h <<_ACEOF
11018#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11019_ACEOF
69792976 11020
69792976 11021else
ad6254c5
AK
11022 { { echo "$as_me:$LINENO: error: bailing out" >&5
11023echo "$as_me: error: bailing out" >&2;}
11024 { (exit 1); exit 1; }; }
83912faa
AK
11025fi
11026
ad6254c5
AK
11027done
11028
4a7f3eb2 11029
ad6254c5
AK
11030if test x$HAVE_SELINUX = xyes; then
11031
11032for ac_header in selinux/selinux.h
11033do
11034as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62
AK
11035if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11037echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11038if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
11039 echo $ECHO_N "(cached) $ECHO_C" >&6
11040fi
7a197a62
AK
11041ac_res=`eval echo '${'$as_ac_Header'}'`
11042 { echo "$as_me:$LINENO: result: $ac_res" >&5
11043echo "${ECHO_T}$ac_res" >&6; }
4a7f3eb2 11044else
ad6254c5 11045 # Is the header compilable?
7a197a62
AK
11046{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11047echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11048cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11049/* confdefs.h. */
11050_ACEOF
11051cat confdefs.h >>conftest.$ac_ext
11052cat >>conftest.$ac_ext <<_ACEOF
11053/* end confdefs.h. */
11054$ac_includes_default
11055#include <$ac_header>
11056_ACEOF
11057rm -f conftest.$ac_objext
7a197a62
AK
11058if { (ac_try="$ac_compile"
11059case "(($ac_try" in
11060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11061 *) ac_try_echo=$ac_try;;
11062esac
11063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11064 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11065 ac_status=$?
8a2fc586
AK
11066 grep -v '^ *+' conftest.er1 >conftest.err
11067 rm -f conftest.er1
11068 cat conftest.err >&5
ad6254c5 11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
11070 (exit $ac_status); } && {
11071 test -z "$ac_c_werror_flag" ||
11072 test ! -s conftest.err
11073 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11074 ac_header_compiler=yes
11075else
11076 echo "$as_me: failed program was:" >&5
11077sed 's/^/| /' conftest.$ac_ext >&5
11078
7a197a62 11079 ac_header_compiler=no
ad6254c5 11080fi
7a197a62
AK
11081
11082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11083{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11084echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11085
11086# Is the header present?
7a197a62
AK
11087{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11088echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11089cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11090/* confdefs.h. */
11091_ACEOF
11092cat confdefs.h >>conftest.$ac_ext
11093cat >>conftest.$ac_ext <<_ACEOF
11094/* end confdefs.h. */
11095#include <$ac_header>
11096_ACEOF
7a197a62
AK
11097if { (ac_try="$ac_cpp conftest.$ac_ext"
11098case "(($ac_try" in
11099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100 *) ac_try_echo=$ac_try;;
11101esac
11102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11104 ac_status=$?
11105 grep -v '^ *+' conftest.er1 >conftest.err
11106 rm -f conftest.er1
11107 cat conftest.err >&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
11109 (exit $ac_status); } >/dev/null && {
11110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11111 test ! -s conftest.err
11112 }; then
ad6254c5
AK
11113 ac_header_preproc=yes
11114else
11115 echo "$as_me: failed program was:" >&5
11116sed 's/^/| /' conftest.$ac_ext >&5
11117
11118 ac_header_preproc=no
11119fi
7a197a62 11120
ad6254c5 11121rm -f conftest.err conftest.$ac_ext
7a197a62
AK
11122{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11123echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11124
11125# So? What about this header?
8a2fc586
AK
11126case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11127 yes:no: )
ad6254c5
AK
11128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11129echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
11130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11131echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11132 ac_header_preproc=yes
ad6254c5 11133 ;;
8a2fc586 11134 no:yes:* )
ad6254c5
AK
11135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11136echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
11137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11138echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11140echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11142echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
11143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11144echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
11145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11146echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11147
ad6254c5
AK
11148 ;;
11149esac
7a197a62
AK
11150{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ad6254c5
AK
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11154else
8a2fc586 11155 eval "$as_ac_Header=\$ac_header_preproc"
80992638 11156fi
7a197a62
AK
11157ac_res=`eval echo '${'$as_ac_Header'}'`
11158 { echo "$as_me:$LINENO: result: $ac_res" >&5
11159echo "${ECHO_T}$ac_res" >&6; }
4a7f3eb2 11160
ad6254c5
AK
11161fi
11162if test `eval echo '${'$as_ac_Header'}'` = yes; then
11163 cat >>confdefs.h <<_ACEOF
11164#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11165_ACEOF
0a62c911 11166
0a62c911 11167else
ad6254c5
AK
11168 { { echo "$as_me:$LINENO: error: bailing out" >&5
11169echo "$as_me: error: bailing out" >&2;}
11170 { (exit 1); exit 1; }; }
80992638
AK
11171fi
11172
ad6254c5 11173done
0a62c911 11174
ad6254c5 11175fi
0a62c911 11176
a653923f
AK
11177################################################################################
11178# Extract the first word of "modprobe", so it can be a program name with args.
11179set dummy modprobe; ac_word=$2
7a197a62
AK
11180{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
72b2cb61
AK
11182if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
11183 echo $ECHO_N "(cached) $ECHO_C" >&6
11184else
11185 case $MODPROBE_CMD in
11186 [\\/]* | ?:[\\/]*)
11187 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
11188 ;;
11189 *)
11190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11191for as_dir in $PATH
11192do
11193 IFS=$as_save_IFS
11194 test -z "$as_dir" && as_dir=.
11195 for ac_exec_ext in '' $ac_executable_extensions; do
7a197a62 11196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61
AK
11197 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
11198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11199 break 2
11200 fi
11201done
11202done
7a197a62 11203IFS=$as_save_IFS
72b2cb61
AK
11204
11205 ;;
11206esac
11207fi
11208MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 11209if test -n "$MODPROBE_CMD"; then
7a197a62
AK
11210 { echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
11211echo "${ECHO_T}$MODPROBE_CMD" >&6; }
72b2cb61 11212else
7a197a62
AK
11213 { echo "$as_me:$LINENO: result: no" >&5
11214echo "${ECHO_T}no" >&6; }
72b2cb61
AK
11215fi
11216
a653923f 11217
7a197a62 11218
a653923f 11219if test x$MODPROBE_CMD != x; then
72b2cb61
AK
11220
11221cat >>confdefs.h <<_ACEOF
11222#define MODPROBE_CMD "$MODPROBE_CMD"
11223_ACEOF
11224
a653923f
AK
11225fi
11226
80992638 11227################################################################################
fae0c576
AK
11228if test "-f VERSION"; then
11229 LVM_VERSION="\"`cat VERSION`\""
11230else
11231 LVM_VERSION="Unknown"
11232fi
11233
80992638 11234################################################################################
fae0c576 11235
83912faa 11236
795ca3e5
AK
11237
11238
11239
11240
11241
11242
5a52dca9 11243
8ef2b021 11244
199e490e 11245
69792976
AK
11246
11247
11248
11249
8106cdd5
AK
11250
11251
11252
11253
11254
d68a82ec 11255
036f273a 11256
7d1552c9 11257
8106cdd5 11258
0a62c911 11259
8106cdd5 11260
4a7f3eb2 11261
4922197a
AK
11262
11263
d8ac0fbc 11264
1a9ea74d 11265
8a2fc586
AK
11266
11267
11268
8ce0cbda 11269
8b1a3214 11270
33f732c5 11271
d3c8211f
AK
11272
11273
80992638 11274################################################################################
7a197a62
AK
11275ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile dmeventd/Makefile dmeventd/mirror/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile man/Makefile po/Makefile scripts/Makefile tools/Makefile tools/version.h tools/fsadm/Makefile test/mm/Makefile test/device/Makefile test/format1/Makefile test/regex/Makefile test/filters/Makefile"
11276
ad6254c5 11277cat >confcache <<\_ACEOF
795ca3e5
AK
11278# This file is a shell script that caches the results of configure
11279# tests run on this system so they can be shared between configure
ad6254c5
AK
11280# scripts and configure runs, see configure's option --config-cache.
11281# It is not useful on other systems. If it contains results you don't
11282# want to keep, you may remove or edit it.
795ca3e5 11283#
ad6254c5
AK
11284# config.status only pays attention to the cache file if you give it
11285# the --recheck option to rerun configure.
795ca3e5 11286#
ad6254c5
AK
11287# `ac_cv_env_foo' variables (set or unset) will be overridden when
11288# loading this file, other *unset* `ac_cv_foo' will be assigned the
11289# following values.
11290
11291_ACEOF
11292
795ca3e5
AK
11293# The following way of writing the cache mishandles newlines in values,
11294# but we know of no workaround that is simple, portable, and efficient.
7a197a62 11295# So, we kill variables containing newlines.
795ca3e5
AK
11296# Ultrix sh set writes to stderr and can't be redirected directly,
11297# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
11298(
11299 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11300 eval ac_val=\$$ac_var
11301 case $ac_val in #(
11302 *${as_nl}*)
11303 case $ac_var in #(
11304 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11305echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11306 esac
11307 case $ac_var in #(
11308 _ | IFS | as_nl) ;; #(
11309 *) $as_unset $ac_var ;;
11310 esac ;;
11311 esac
11312 done
11313
ad6254c5 11314 (set) 2>&1 |
7a197a62
AK
11315 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11316 *${as_nl}ac_space=\ *)
ad6254c5
AK
11317 # `set' does not quote correctly, so add quotes (double-quote
11318 # substitution turns \\\\ into \\, and sed turns \\ into \).
11319 sed -n \
8a2fc586
AK
11320 "s/'/'\\\\''/g;
11321 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 11322 ;; #(
ad6254c5
AK
11323 *)
11324 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 11325 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 11326 ;;
7a197a62
AK
11327 esac |
11328 sort
11329) |
ad6254c5 11330 sed '
7a197a62 11331 /^ac_cv_env_/b end
ad6254c5 11332 t clear
7a197a62 11333 :clear
ad6254c5
AK
11334 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11335 t end
7a197a62
AK
11336 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11337 :end' >>confcache
11338if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11339 if test -w "$cache_file"; then
11340 test "x$cache_file" != "x/dev/null" &&
11341 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11342echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 11343 cat confcache >$cache_file
795ca3e5 11344 else
7a197a62
AK
11345 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11346echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
11347 fi
11348fi
11349rm -f confcache
11350
795ca3e5
AK
11351test "x$prefix" = xNONE && prefix=$ac_default_prefix
11352# Let make expand exec_prefix.
11353test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11354
72b2cb61 11355DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
11356
11357ac_libobjs=
11358ac_ltlibobjs=
11359for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11360 # 1. Remove the extension, and $U if already installed.
7a197a62
AK
11361 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11362 ac_i=`echo "$ac_i" | sed "$ac_script"`
11363 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11364 # will be set to the directory where LIBOBJS objects are built.
11365 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11366 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
11367done
11368LIBOBJS=$ac_libobjs
80992638 11369
ad6254c5
AK
11370LTLIBOBJS=$ac_ltlibobjs
11371
11372
11373
11374: ${CONFIG_STATUS=./config.status}
11375ac_clean_files_save=$ac_clean_files
11376ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11377{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11378echo "$as_me: creating $CONFIG_STATUS" >&6;}
11379cat >$CONFIG_STATUS <<_ACEOF
11380#! $SHELL
11381# Generated by $as_me.
795ca3e5 11382# Run this file to recreate the current configuration.
795ca3e5 11383# Compiler output produced by configure, useful for debugging
ad6254c5
AK
11384# configure, is in config.log if it exists.
11385
11386debug=false
11387ac_cs_recheck=false
11388ac_cs_silent=false
11389SHELL=\${CONFIG_SHELL-$SHELL}
11390_ACEOF
11391
11392cat >>$CONFIG_STATUS <<\_ACEOF
11393## --------------------- ##
11394## M4sh Initialization. ##
11395## --------------------- ##
11396
7a197a62
AK
11397# Be more Bourne compatible
11398DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
11399if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11400 emulate sh
11401 NULLCMD=:
11402 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11403 # is contrary to our usage. Disable this feature.
11404 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
11405 setopt NO_GLOB_SUBST
11406else
11407 case `(set -o) 2>/dev/null` in
11408 *posix*) set -o posix ;;
11409esac
11410
11411fi
11412
11413
11414
11415
11416# PATH needs CR
11417# Avoid depending upon Character Ranges.
11418as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11420as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11421as_cr_digits='0123456789'
11422as_cr_alnum=$as_cr_Letters$as_cr_digits
11423
11424# The user is always right.
11425if test "${PATH_SEPARATOR+set}" != set; then
11426 echo "#! /bin/sh" >conf$$.sh
11427 echo "exit 0" >>conf$$.sh
11428 chmod +x conf$$.sh
11429 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11430 PATH_SEPARATOR=';'
11431 else
11432 PATH_SEPARATOR=:
11433 fi
11434 rm -f conf$$.sh
ad6254c5
AK
11435fi
11436
11437# Support unset when possible.
8a2fc586 11438if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
11439 as_unset=unset
11440else
11441 as_unset=false
11442fi
8106cdd5 11443
ad6254c5 11444
7a197a62
AK
11445# IFS
11446# We need space, tab and new line, in precisely that order. Quoting is
11447# there to prevent editors from complaining about space-tab.
11448# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11449# splitting by setting IFS to empty value.)
11450as_nl='
11451'
11452IFS=" "" $as_nl"
11453
11454# Find who we are. Look in the path if we contain no directory separator.
11455case $0 in
11456 *[\\/]* ) as_myself=$0 ;;
11457 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11458for as_dir in $PATH
11459do
11460 IFS=$as_save_IFS
11461 test -z "$as_dir" && as_dir=.
11462 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11463done
11464IFS=$as_save_IFS
11465
11466 ;;
11467esac
11468# We did not find ourselves, most probably we were run as `sh COMMAND'
11469# in which case we are not to be found in the path.
11470if test "x$as_myself" = x; then
11471 as_myself=$0
11472fi
11473if test ! -f "$as_myself"; then
11474 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11475 { (exit 1); exit 1; }
11476fi
11477
ad6254c5 11478# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
11479for as_var in ENV MAIL MAILPATH
11480do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11481done
ad6254c5
AK
11482PS1='$ '
11483PS2='> '
11484PS4='+ '
11485
11486# NLS nuisances.
11487for as_var in \
11488 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11489 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11490 LC_TELEPHONE LC_TIME
8106cdd5 11491do
8a2fc586 11492 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
ad6254c5
AK
11493 eval $as_var=C; export $as_var
11494 else
7a197a62 11495 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
ad6254c5 11496 fi
8106cdd5
AK
11497done
11498
ad6254c5 11499# Required to use basename.
7a197a62
AK
11500if expr a : '\(a\)' >/dev/null 2>&1 &&
11501 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
11502 as_expr=expr
11503else
11504 as_expr=false
11505fi
8106cdd5 11506
7a197a62 11507if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
11508 as_basename=basename
11509else
11510 as_basename=false
11511fi
11512
11513
11514# Name of the executable.
7a197a62 11515as_me=`$as_basename -- "$0" ||
ad6254c5
AK
11516$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11517 X"$0" : 'X\(//\)$' \| \
7a197a62 11518 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ad6254c5 11519echo X/"$0" |
7a197a62
AK
11520 sed '/^.*\/\([^/][^/]*\)\/*$/{
11521 s//\1/
11522 q
11523 }
11524 /^X\/\(\/\/\)$/{
11525 s//\1/
11526 q
11527 }
11528 /^X\/\(\/\).*/{
11529 s//\1/
11530 q
11531 }
11532 s/.*/./; q'`
ad6254c5 11533
7a197a62
AK
11534# CDPATH.
11535$as_unset CDPATH
ad6254c5
AK
11536
11537
ad6254c5 11538
ad6254c5
AK
11539 as_lineno_1=$LINENO
11540 as_lineno_2=$LINENO
ad6254c5 11541 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 11542 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 11543
ad6254c5
AK
11544 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11545 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
11546 # line-number line after each line using $LINENO; the second 'sed'
11547 # does the real work. The second script uses 'N' to pair each
11548 # line-number line with the line containing $LINENO, and appends
11549 # trailing '-' during substitution so that $LINENO is not a special
11550 # case at line end.
ad6254c5 11551 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
11552 # scripts with optimization help from Paolo Bonzini. Blame Lee
11553 # E. McMahon (1931-1989) for sed's syntax. :-)
11554 sed -n '
11555 p
11556 /[$]LINENO/=
11557 ' <$as_myself |
ad6254c5 11558 sed '
7a197a62
AK
11559 s/[$]LINENO.*/&-/
11560 t lineno
11561 b
11562 :lineno
ad6254c5 11563 N
7a197a62
AK
11564 :loop
11565 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 11566 t loop
7a197a62 11567 s/-\n.*//
ad6254c5 11568 ' >$as_me.lineno &&
7a197a62
AK
11569 chmod +x "$as_me.lineno" ||
11570 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
11571 { (exit 1); exit 1; }; }
11572
11573 # Don't try to exec as it changes $[0], causing all sort of problems
11574 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
11575 # original and so on. Autoconf is especially sensitive to this).
11576 . "./$as_me.lineno"
ad6254c5
AK
11577 # Exit status is that of the last command.
11578 exit
11579}
11580
11581
7a197a62
AK
11582if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11583 as_dirname=dirname
11584else
11585 as_dirname=false
11586fi
11587
11588ECHO_C= ECHO_N= ECHO_T=
11589case `echo -n x` in
11590-n*)
11591 case `echo 'x\c'` in
11592 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11593 *) ECHO_C='\c';;
11594 esac;;
11595*)
11596 ECHO_N='-n';;
ad6254c5
AK
11597esac
11598
7a197a62
AK
11599if expr a : '\(a\)' >/dev/null 2>&1 &&
11600 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
11601 as_expr=expr
11602else
11603 as_expr=false
11604fi
80992638 11605
ad6254c5 11606rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
11607if test -d conf$$.dir; then
11608 rm -f conf$$.dir/conf$$.file
11609else
11610 rm -f conf$$.dir
11611 mkdir conf$$.dir
11612fi
ad6254c5
AK
11613echo >conf$$.file
11614if ln -s conf$$.file conf$$ 2>/dev/null; then
7a197a62
AK
11615 as_ln_s='ln -s'
11616 # ... but there are two gotchas:
11617 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11618 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11619 # In both cases, we have to default to `cp -p'.
11620 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
ad6254c5 11621 as_ln_s='cp -p'
ad6254c5
AK
11622elif ln conf$$.file conf$$ 2>/dev/null; then
11623 as_ln_s=ln
11624else
11625 as_ln_s='cp -p'
11626fi
7a197a62
AK
11627rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11628rmdir conf$$.dir 2>/dev/null
8106cdd5 11629
ad6254c5
AK
11630if mkdir -p . 2>/dev/null; then
11631 as_mkdir_p=:
11632else
8a2fc586 11633 test -d ./-p && rmdir ./-p
ad6254c5
AK
11634 as_mkdir_p=false
11635fi
11636
7a197a62
AK
11637if test -x / >/dev/null 2>&1; then
11638 as_test_x='test -x'
11639else
11640 if ls -dL / >/dev/null 2>&1; then
11641 as_ls_L_option=L
11642 else
11643 as_ls_L_option=
11644 fi
11645 as_test_x='
11646 eval sh -c '\''
11647 if test -d "$1"; then
11648 test -d "$1/.";
11649 else
11650 case $1 in
11651 -*)set "./$1";;
11652 esac;
11653 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11654 ???[sx]*):;;*)false;;esac;fi
11655 '\'' sh
11656 '
11657fi
11658as_executable_p=$as_test_x
ad6254c5
AK
11659
11660# Sed expression to map a string onto a valid CPP name.
8a2fc586 11661as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
11662
11663# Sed expression to map a string onto a valid variable name.
8a2fc586 11664as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
11665
11666
ad6254c5
AK
11667exec 6>&1
11668
7a197a62 11669# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 11670# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
11671# values after options handling.
11672ac_log="
ad6254c5 11673This file was extended by $as_me, which was
7a197a62 11674generated by GNU Autoconf 2.61. Invocation command line was
ad6254c5
AK
11675
11676 CONFIG_FILES = $CONFIG_FILES
11677 CONFIG_HEADERS = $CONFIG_HEADERS
11678 CONFIG_LINKS = $CONFIG_LINKS
11679 CONFIG_COMMANDS = $CONFIG_COMMANDS
11680 $ $0 $@
11681
7a197a62
AK
11682on `(hostname || uname -n) 2>/dev/null | sed 1q`
11683"
11684
ad6254c5
AK
11685_ACEOF
11686
7a197a62 11687cat >>$CONFIG_STATUS <<_ACEOF
ad6254c5 11688# Files that config.status was made for.
7a197a62
AK
11689config_files="$ac_config_files"
11690config_headers="$ac_config_headers"
ad6254c5 11691
7a197a62 11692_ACEOF
ad6254c5
AK
11693
11694cat >>$CONFIG_STATUS <<\_ACEOF
ad6254c5
AK
11695ac_cs_usage="\
11696\`$as_me' instantiates files from templates according to the
11697current configuration.
11698
11699Usage: $0 [OPTIONS] [FILE]...
11700
11701 -h, --help print this help, then exit
7a197a62 11702 -V, --version print version number and configuration settings, then exit
ad6254c5
AK
11703 -q, --quiet do not print progress messages
11704 -d, --debug don't remove temporary files
11705 --recheck update $as_me by reconfiguring in the same conditions
11706 --file=FILE[:TEMPLATE]
8a2fc586 11707 instantiate the configuration file FILE
72b2cb61
AK
11708 --header=FILE[:TEMPLATE]
11709 instantiate the configuration header FILE
ad6254c5
AK
11710
11711Configuration files:
11712$config_files
11713
72b2cb61
AK
11714Configuration headers:
11715$config_headers
11716
ad6254c5 11717Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 11718
7a197a62 11719_ACEOF
ad6254c5
AK
11720cat >>$CONFIG_STATUS <<_ACEOF
11721ac_cs_version="\\
11722config.status
7a197a62
AK
11723configured by $0, generated by GNU Autoconf 2.61,
11724 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 11725
7a197a62 11726Copyright (C) 2006 Free Software Foundation, Inc.
ad6254c5
AK
11727This config.status script is free software; the Free Software Foundation
11728gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
11729
11730ac_pwd='$ac_pwd'
11731srcdir='$srcdir'
11732INSTALL='$INSTALL'
ad6254c5
AK
11733_ACEOF
11734
11735cat >>$CONFIG_STATUS <<\_ACEOF
11736# If no file are specified by the user, then we need to provide default
11737# value. By we need to know if files were specified by the user.
11738ac_need_defaults=:
11739while test $# != 0
11740do
11741 case $1 in
11742 --*=*)
7a197a62
AK
11743 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11744 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
11745 ac_shift=:
11746 ;;
7a197a62 11747 *)
ad6254c5
AK
11748 ac_option=$1
11749 ac_optarg=$2
11750 ac_shift=shift
11751 ;;
ad6254c5
AK
11752 esac
11753
11754 case $ac_option in
11755 # Handling of the options.
ad6254c5
AK
11756 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11757 ac_cs_recheck=: ;;
7a197a62
AK
11758 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11759 echo "$ac_cs_version"; exit ;;
11760 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
11761 debug=: ;;
11762 --file | --fil | --fi | --f )
11763 $ac_shift
11764 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11765 ac_need_defaults=false;;
11766 --header | --heade | --head | --hea )
11767 $ac_shift
11768 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11769 ac_need_defaults=false;;
7a197a62
AK
11770 --he | --h)
11771 # Conflict between --help and --header
11772 { echo "$as_me: error: ambiguous option: $1
11773Try \`$0 --help' for more information." >&2
11774 { (exit 1); exit 1; }; };;
11775 --help | --hel | -h )
11776 echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
11777 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11778 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11779 ac_cs_silent=: ;;
11780
11781 # This is an error.
7a197a62
AK
11782 -*) { echo "$as_me: error: unrecognized option: $1
11783Try \`$0 --help' for more information." >&2
ad6254c5
AK
11784 { (exit 1); exit 1; }; } ;;
11785
7a197a62
AK
11786 *) ac_config_targets="$ac_config_targets $1"
11787 ac_need_defaults=false ;;
ad6254c5
AK
11788
11789 esac
11790 shift
11791done
11792
11793ac_configure_extra_args=
11794
11795if $ac_cs_silent; then
11796 exec 6>/dev/null
11797 ac_configure_extra_args="$ac_configure_extra_args --silent"
11798fi
11799
11800_ACEOF
11801cat >>$CONFIG_STATUS <<_ACEOF
11802if \$ac_cs_recheck; then
7a197a62
AK
11803 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11804 CONFIG_SHELL=$SHELL
11805 export CONFIG_SHELL
11806 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
ad6254c5
AK
11807fi
11808
11809_ACEOF
7a197a62
AK
11810cat >>$CONFIG_STATUS <<\_ACEOF
11811exec 5>>config.log
11812{
11813 echo
11814 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11815## Running $as_me. ##
11816_ASBOX
11817 echo "$ac_log"
11818} >&5
ad6254c5 11819
7a197a62
AK
11820_ACEOF
11821cat >>$CONFIG_STATUS <<_ACEOF
11822_ACEOF
ad6254c5
AK
11823
11824cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
11825
11826# Handling of arguments.
ad6254c5
AK
11827for ac_config_target in $ac_config_targets
11828do
7a197a62
AK
11829 case $ac_config_target in
11830 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
11831 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11832 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
11833 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
11834 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
11835 "dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;;
11836 "dmeventd/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;;
11837 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11838 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11839 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11840 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
11841 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
11842 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
11843 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
11844 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
11845 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11846 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
11847 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
11848 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
11849 "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
11850 "tools/fsadm/Makefile") CONFIG_FILES="$CONFIG_FILES tools/fsadm/Makefile" ;;
11851 "test/mm/Makefile") CONFIG_FILES="$CONFIG_FILES test/mm/Makefile" ;;
11852 "test/device/Makefile") CONFIG_FILES="$CONFIG_FILES test/device/Makefile" ;;
11853 "test/format1/Makefile") CONFIG_FILES="$CONFIG_FILES test/format1/Makefile" ;;
11854 "test/regex/Makefile") CONFIG_FILES="$CONFIG_FILES test/regex/Makefile" ;;
11855 "test/filters/Makefile") CONFIG_FILES="$CONFIG_FILES test/filters/Makefile" ;;
11856
ad6254c5
AK
11857 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11858echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11859 { (exit 1); exit 1; }; };;
80992638 11860 esac
ad6254c5
AK
11861done
11862
7a197a62 11863
ad6254c5
AK
11864# If the user did not use the arguments to specify the items to instantiate,
11865# then the envvar interface is used. Set only those that are not.
11866# We use the long form for the default assignment because of an extremely
11867# bizarre bug on SunOS 4.1.3.
11868if $ac_need_defaults; then
11869 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 11870 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
11871fi
11872
11873# Have a temporary directory for convenience. Make it in the build tree
7a197a62 11874# simply because there is no reason against having it here, and in addition,
ad6254c5 11875# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
11876# Hook for its removal unless debugging.
11877# Note that there is a small window in which the directory will not be cleaned:
11878# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
11879$debug ||
11880{
7a197a62
AK
11881 tmp=
11882 trap 'exit_status=$?
11883 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11884' 0
ad6254c5
AK
11885 trap '{ (exit 1); exit 1; }' 1 2 13 15
11886}
ad6254c5
AK
11887# Create a (secure) tmp directory for tmp files.
11888
11889{
7a197a62 11890 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
11891 test -n "$tmp" && test -d "$tmp"
11892} ||
11893{
7a197a62
AK
11894 tmp=./conf$$-$RANDOM
11895 (umask 077 && mkdir "$tmp")
ad6254c5
AK
11896} ||
11897{
11898 echo "$me: cannot create a temporary directory in ." >&2
11899 { (exit 1); exit 1; }
11900}
11901
ad6254c5 11902#
7a197a62 11903# Set up the sed scripts for CONFIG_FILES section.
ad6254c5
AK
11904#
11905
11906# No need to generate the scripts if there are no CONFIG_FILES.
11907# This happens for instance when ./config.status config.h
7a197a62
AK
11908if test -n "$CONFIG_FILES"; then
11909
11910_ACEOF
11911
11912
11913
11914ac_delim='%!_!# '
11915for ac_last_try in false false false false false :; do
11916 cat >conf$$subs.sed <<_ACEOF
11917SHELL!$SHELL$ac_delim
11918PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11919PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11920PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11921PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11922PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11923PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11924exec_prefix!$exec_prefix$ac_delim
11925prefix!$prefix$ac_delim
11926program_transform_name!$program_transform_name$ac_delim
11927bindir!$bindir$ac_delim
11928sbindir!$sbindir$ac_delim
11929libexecdir!$libexecdir$ac_delim
11930datarootdir!$datarootdir$ac_delim
11931datadir!$datadir$ac_delim
11932sysconfdir!$sysconfdir$ac_delim
11933sharedstatedir!$sharedstatedir$ac_delim
11934localstatedir!$localstatedir$ac_delim
11935includedir!$includedir$ac_delim
11936oldincludedir!$oldincludedir$ac_delim
11937docdir!$docdir$ac_delim
11938infodir!$infodir$ac_delim
11939htmldir!$htmldir$ac_delim
11940dvidir!$dvidir$ac_delim
11941pdfdir!$pdfdir$ac_delim
11942psdir!$psdir$ac_delim
11943libdir!$libdir$ac_delim
11944localedir!$localedir$ac_delim
11945mandir!$mandir$ac_delim
11946DEFS!$DEFS$ac_delim
11947ECHO_C!$ECHO_C$ac_delim
11948ECHO_N!$ECHO_N$ac_delim
11949ECHO_T!$ECHO_T$ac_delim
11950LIBS!$LIBS$ac_delim
11951build_alias!$build_alias$ac_delim
11952host_alias!$host_alias$ac_delim
11953target_alias!$target_alias$ac_delim
11954build!$build$ac_delim
11955build_cpu!$build_cpu$ac_delim
11956build_vendor!$build_vendor$ac_delim
11957build_os!$build_os$ac_delim
11958host!$host$ac_delim
11959host_cpu!$host_cpu$ac_delim
11960host_vendor!$host_vendor$ac_delim
11961host_os!$host_os$ac_delim
11962target!$target$ac_delim
11963target_cpu!$target_cpu$ac_delim
11964target_vendor!$target_vendor$ac_delim
11965target_os!$target_os$ac_delim
11966AWK!$AWK$ac_delim
11967CC!$CC$ac_delim
11968CFLAGS!$CFLAGS$ac_delim
11969LDFLAGS!$LDFLAGS$ac_delim
11970CPPFLAGS!$CPPFLAGS$ac_delim
11971ac_ct_CC!$ac_ct_CC$ac_delim
11972EXEEXT!$EXEEXT$ac_delim
11973OBJEXT!$OBJEXT$ac_delim
11974INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11975INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11976INSTALL_DATA!$INSTALL_DATA$ac_delim
11977LN_S!$LN_S$ac_delim
11978SET_MAKE!$SET_MAKE$ac_delim
11979RANLIB!$RANLIB$ac_delim
11980CFLOW_CMD!$CFLOW_CMD$ac_delim
11981CSCOPE_CMD!$CSCOPE_CMD$ac_delim
11982CPP!$CPP$ac_delim
11983GREP!$GREP$ac_delim
11984EGREP!$EGREP$ac_delim
11985ALLOCA!$ALLOCA$ac_delim
11986LIBOBJS!$LIBOBJS$ac_delim
11987POW_LIB!$POW_LIB$ac_delim
11988MSGFMT!$MSGFMT$ac_delim
11989MODPROBE_CMD!$MODPROBE_CMD$ac_delim
11990JOBS!$JOBS$ac_delim
11991STATIC_LINK!$STATIC_LINK$ac_delim
11992LVM1!$LVM1$ac_delim
11993POOL!$POOL$ac_delim
11994SNAPSHOTS!$SNAPSHOTS$ac_delim
11995MIRRORS!$MIRRORS$ac_delim
11996OWNER!$OWNER$ac_delim
11997GROUP!$GROUP$ac_delim
11998COPTIMISE_FLAG!$COPTIMISE_FLAG$ac_delim
11999CLDFLAGS!$CLDFLAGS$ac_delim
12000CLDWHOLEARCHIVE!$CLDWHOLEARCHIVE$ac_delim
12001CLDNOWHOLEARCHIVE!$CLDNOWHOLEARCHIVE$ac_delim
12002LDDEPS!$LDDEPS$ac_delim
12003LIB_SUFFIX!$LIB_SUFFIX$ac_delim
12004LVM_VERSION!$LVM_VERSION$ac_delim
12005LVM1_FALLBACK!$LVM1_FALLBACK$ac_delim
12006DEBUG!$DEBUG$ac_delim
12007DEVMAPPER!$DEVMAPPER$ac_delim
12008HAVE_LIBDL!$HAVE_LIBDL$ac_delim
12009HAVE_SELINUX!$HAVE_SELINUX$ac_delim
12010HAVE_REALTIME!$HAVE_REALTIME$ac_delim
12011CMDLIB!$CMDLIB$ac_delim
12012LOCALEDIR!$LOCALEDIR$ac_delim
12013CONFDIR!$CONFDIR$ac_delim
12014_ACEOF
12015
12016 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12017 break
12018 elif $ac_last_try; then
12019 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12020echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12021 { (exit 1); exit 1; }; }
12022 else
12023 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
ad6254c5 12024 fi
7a197a62
AK
12025done
12026
12027ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12028if test -n "$ac_eof"; then
12029 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12030 ac_eof=`expr $ac_eof + 1`
12031fi
12032
12033cat >>$CONFIG_STATUS <<_ACEOF
12034cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12035/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12036_ACEOF
12037sed '
12038s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12039s/^/s,@/; s/!/@,|#_!!_#|/
12040:n
12041t n
12042s/'"$ac_delim"'$/,g/; t
12043s/$/\\/; p
12044N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12045' >>$CONFIG_STATUS <conf$$subs.sed
12046rm -f conf$$subs.sed
12047cat >>$CONFIG_STATUS <<_ACEOF
12048CEOF$ac_eof
12049_ACEOF
12050
8106cdd5 12051
7a197a62
AK
12052ac_delim='%!_!# '
12053for ac_last_try in false false false false false :; do
12054 cat >conf$$subs.sed <<_ACEOF
12055STATICDIR!$STATICDIR$ac_delim
12056DMDIR!$DMDIR$ac_delim
12057INTL_PACKAGE!$INTL_PACKAGE$ac_delim
12058INTL!$INTL$ac_delim
12059CLVMD!$CLVMD$ac_delim
12060CLUSTER!$CLUSTER$ac_delim
12061FSADM!$FSADM$ac_delim
12062DMEVENTD!$DMEVENTD$ac_delim
12063LTLIBOBJS!$LTLIBOBJS$ac_delim
ad6254c5 12064_ACEOF
7a197a62
AK
12065
12066 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
12067 break
12068 elif $ac_last_try; then
12069 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12070echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12071 { (exit 1); exit 1; }; }
12072 else
12073 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12074 fi
12075done
12076
12077ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12078if test -n "$ac_eof"; then
12079 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12080 ac_eof=`expr $ac_eof + 1`
12081fi
12082
12083cat >>$CONFIG_STATUS <<_ACEOF
12084cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12085/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12086_ACEOF
12087sed '
12088s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12089s/^/s,@/; s/!/@,|#_!!_#|/
12090:n
12091t n
12092s/'"$ac_delim"'$/,g/; t
12093s/$/\\/; p
12094N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12095' >>$CONFIG_STATUS <conf$$subs.sed
12096rm -f conf$$subs.sed
12097cat >>$CONFIG_STATUS <<_ACEOF
12098:end
12099s/|#_!!_#|//g
12100CEOF$ac_eof
12101_ACEOF
12102
12103
12104# VPATH may cause trouble with some makes, so we remove $(srcdir),
12105# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12106# trailing colons and then remove the whole line if VPATH becomes empty
12107# (actually we leave an empty line to preserve line numbers).
12108if test "x$srcdir" = x.; then
12109 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12110s/:*\$(srcdir):*/:/
12111s/:*\${srcdir}:*/:/
12112s/:*@srcdir@:*/:/
12113s/^\([^=]*=[ ]*\):*/\1/
12114s/:*$//
12115s/^[^=]*=[ ]*$//
12116}'
12117fi
12118
ad6254c5 12119cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12120fi # test -n "$CONFIG_FILES"
12121
12122
12123for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
12124do
12125 case $ac_tag in
12126 :[FHLC]) ac_mode=$ac_tag; continue;;
12127 esac
12128 case $ac_mode$ac_tag in
12129 :[FHL]*:*);;
12130 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12131echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12132 { (exit 1); exit 1; }; };;
12133 :[FH]-) ac_tag=-:-;;
12134 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12135 esac
12136 ac_save_IFS=$IFS
12137 IFS=:
12138 set x $ac_tag
12139 IFS=$ac_save_IFS
12140 shift
12141 ac_file=$1
12142 shift
12143
12144 case $ac_mode in
12145 :L) ac_source=$1;;
12146 :[FH])
12147 ac_file_inputs=
12148 for ac_f
12149 do
12150 case $ac_f in
12151 -) ac_f="$tmp/stdin";;
12152 *) # Look for the file first in the build tree, then in the source tree
12153 # (if the path is not absolute). The absolute path cannot be DOS-style,
12154 # because $ac_f cannot contain `:'.
12155 test -f "$ac_f" ||
12156 case $ac_f in
12157 [\\/$]*) false;;
12158 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12159 esac ||
12160 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12161echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12162 { (exit 1); exit 1; }; };;
12163 esac
12164 ac_file_inputs="$ac_file_inputs $ac_f"
12165 done
12166
12167 # Let's still pretend it is `configure' which instantiates (i.e., don't
12168 # use $as_me), people would be surprised to read:
12169 # /* config.h. Generated by config.status. */
12170 configure_input="Generated from "`IFS=:
12171 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12172 if test x"$ac_file" != x-; then
12173 configure_input="$ac_file. $configure_input"
12174 { echo "$as_me:$LINENO: creating $ac_file" >&5
12175echo "$as_me: creating $ac_file" >&6;}
12176 fi
12177
12178 case $ac_tag in
12179 *:-:* | *:-) cat >"$tmp/stdin";;
12180 esac
12181 ;;
80992638 12182 esac
8106cdd5 12183
7a197a62 12184 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 12185$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
12186 X"$ac_file" : 'X\(//\)[^/]' \| \
12187 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 12188 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ad6254c5 12189echo X"$ac_file" |
7a197a62
AK
12190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12191 s//\1/
12192 q
12193 }
12194 /^X\(\/\/\)[^/].*/{
12195 s//\1/
12196 q
12197 }
12198 /^X\(\/\/\)$/{
12199 s//\1/
12200 q
12201 }
12202 /^X\(\/\).*/{
12203 s//\1/
12204 q
12205 }
12206 s/.*/./; q'`
12207 { as_dir="$ac_dir"
12208 case $as_dir in #(
12209 -*) as_dir=./$as_dir;;
12210 esac
12211 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 12212 as_dirs=
7a197a62
AK
12213 while :; do
12214 case $as_dir in #(
12215 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12216 *) as_qdir=$as_dir;;
12217 esac
12218 as_dirs="'$as_qdir' $as_dirs"
12219 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 12220$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
12221 X"$as_dir" : 'X\(//\)[^/]' \| \
12222 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 12223 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ad6254c5 12224echo X"$as_dir" |
7a197a62
AK
12225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12226 s//\1/
12227 q
12228 }
12229 /^X\(\/\/\)[^/].*/{
12230 s//\1/
12231 q
12232 }
12233 /^X\(\/\/\)$/{
12234 s//\1/
12235 q
12236 }
12237 /^X\(\/\).*/{
12238 s//\1/
12239 q
12240 }
12241 s/.*/./; q'`
12242 test -d "$as_dir" && break
ad6254c5 12243 done
7a197a62
AK
12244 test -z "$as_dirs" || eval "mkdir $as_dirs"
12245 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12246echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 12247 { (exit 1); exit 1; }; }; }
ad6254c5
AK
12248 ac_builddir=.
12249
7a197a62
AK
12250case "$ac_dir" in
12251.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12252*)
ad6254c5 12253 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7a197a62
AK
12254 # A ".." for each directory in $ac_dir_suffix.
12255 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12256 case $ac_top_builddir_sub in
12257 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12258 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12259 esac ;;
12260esac
12261ac_abs_top_builddir=$ac_pwd
12262ac_abs_builddir=$ac_pwd$ac_dir_suffix
12263# for backward compatibility:
12264ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
12265
12266case $srcdir in
7a197a62 12267 .) # We are building in place.
ad6254c5 12268 ac_srcdir=.
7a197a62
AK
12269 ac_top_srcdir=$ac_top_builddir_sub
12270 ac_abs_top_srcdir=$ac_pwd ;;
12271 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 12272 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
12273 ac_top_srcdir=$srcdir
12274 ac_abs_top_srcdir=$srcdir ;;
12275 *) # Relative name.
12276 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12277 ac_top_srcdir=$ac_top_build_prefix$srcdir
12278 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 12279esac
7a197a62 12280ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 12281
ad6254c5 12282
7a197a62
AK
12283 case $ac_mode in
12284 :F)
12285 #
12286 # CONFIG_FILE
12287 #
ad6254c5
AK
12288
12289 case $INSTALL in
12290 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 12291 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 12292 esac
7a197a62 12293_ACEOF
795ca3e5 12294
7a197a62
AK
12295cat >>$CONFIG_STATUS <<\_ACEOF
12296# If the template does not know about datarootdir, expand it.
12297# FIXME: This hack should be removed a few years after 2.60.
12298ac_datarootdir_hack=; ac_datarootdir_seen=
12299
12300case `sed -n '/datarootdir/ {
12301 p
12302 q
12303}
12304/@datadir@/p
12305/@docdir@/p
12306/@infodir@/p
12307/@localedir@/p
12308/@mandir@/p
12309' $ac_file_inputs` in
12310*datarootdir*) ac_datarootdir_seen=yes;;
12311*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12312 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12313echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 12314_ACEOF
7a197a62
AK
12315cat >>$CONFIG_STATUS <<_ACEOF
12316 ac_datarootdir_hack='
12317 s&@datadir@&$datadir&g
12318 s&@docdir@&$docdir&g
12319 s&@infodir@&$infodir&g
12320 s&@localedir@&$localedir&g
12321 s&@mandir@&$mandir&g
12322 s&\\\${datarootdir}&$datarootdir&g' ;;
12323esac
12324_ACEOF
12325
12326# Neutralize VPATH when `$srcdir' = `.'.
12327# Shell code in configure.ac might set extrasub.
12328# FIXME: do we really want to maintain this feature?
ad6254c5
AK
12329cat >>$CONFIG_STATUS <<_ACEOF
12330 sed "$ac_vpsub
12331$extrasub
12332_ACEOF
12333cat >>$CONFIG_STATUS <<\_ACEOF
12334:t
12335/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7a197a62
AK
12336s&@configure_input@&$configure_input&;t t
12337s&@top_builddir@&$ac_top_builddir_sub&;t t
12338s&@srcdir@&$ac_srcdir&;t t
12339s&@abs_srcdir@&$ac_abs_srcdir&;t t
12340s&@top_srcdir@&$ac_top_srcdir&;t t
12341s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12342s&@builddir@&$ac_builddir&;t t
12343s&@abs_builddir@&$ac_abs_builddir&;t t
12344s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12345s&@INSTALL@&$ac_INSTALL&;t t
12346$ac_datarootdir_hack
12347" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
12348
12349test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12350 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12351 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12352 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12353which seems to be undefined. Please make sure it is defined." >&5
12354echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12355which seems to be undefined. Please make sure it is defined." >&2;}
12356
12357 rm -f "$tmp/stdin"
72b2cb61 12358 case $ac_file in
7a197a62
AK
12359 -) cat "$tmp/out"; rm -f "$tmp/out";;
12360 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
72b2cb61 12361 esac
7a197a62
AK
12362 ;;
12363 :H)
12364 #
12365 # CONFIG_HEADER
12366 #
12367_ACEOF
12368
12369# Transform confdefs.h into a sed script `conftest.defines', that
12370# substitutes the proper values into config.h.in to produce config.h.
12371rm -f conftest.defines conftest.tail
12372# First, append a space to every undef/define line, to ease matching.
12373echo 's/$/ /' >conftest.defines
12374# Then, protect against being on the right side of a sed subst, or in
12375# an unquoted here document, in config.status. If some macros were
12376# called several times there might be several #defines for the same
12377# symbol, which is useless. But do not sort them, since the last
12378# AC_DEFINE must be honored.
12379ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12380# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12381# NAME is the cpp macro being defined, VALUE is the value it is being given.
12382# PARAMS is the parameter list in the macro definition--in most cases, it's
12383# just an empty string.
12384ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12385ac_dB='\\)[ (].*,\\1define\\2'
12386ac_dC=' '
12387ac_dD=' ,'
12388
12389uniq confdefs.h |
12390 sed -n '
12391 t rset
12392 :rset
12393 s/^[ ]*#[ ]*define[ ][ ]*//
12394 t ok
12395 d
12396 :ok
12397 s/[\\&,]/\\&/g
12398 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12399 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12400 ' >>conftest.defines
12401
12402# Remove the space that was appended to ease matching.
12403# Then replace #undef with comments. This is necessary, for
72b2cb61
AK
12404# example, in the case of _POSIX_SOURCE, which is predefined and required
12405# on some systems where configure will not decide to define it.
7a197a62
AK
12406# (The regexp can be short, since the line contains either #define or #undef.)
12407echo 's/ $//
12408s,^[ #]*u.*,/* & */,' >>conftest.defines
12409
12410# Break up conftest.defines:
12411ac_max_sed_lines=50
12412
12413# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12414# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12415# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12416# et cetera.
12417ac_in='$ac_file_inputs'
12418ac_out='"$tmp/out1"'
12419ac_nxt='"$tmp/out2"'
12420
12421while :
72b2cb61 12422do
7a197a62
AK
12423 # Write a here document:
12424 cat >>$CONFIG_STATUS <<_ACEOF
12425 # First, check the format of the line:
12426 cat >"\$tmp/defines.sed" <<\\CEOF
12427/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12428/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12429b
12430:def
12431_ACEOF
12432 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
72b2cb61 12433 echo 'CEOF
7a197a62
AK
12434 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12435 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12436 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12437 grep . conftest.tail >/dev/null || break
72b2cb61
AK
12438 rm -f conftest.defines
12439 mv conftest.tail conftest.defines
12440done
7a197a62 12441rm -f conftest.defines conftest.tail
72b2cb61 12442
7a197a62 12443echo "ac_result=$ac_in" >>$CONFIG_STATUS
72b2cb61 12444cat >>$CONFIG_STATUS <<\_ACEOF
72b2cb61 12445 if test x"$ac_file" != x-; then
7a197a62
AK
12446 echo "/* $configure_input */" >"$tmp/config.h"
12447 cat "$ac_result" >>"$tmp/config.h"
12448 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
72b2cb61
AK
12449 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12450echo "$as_me: $ac_file is unchanged" >&6;}
12451 else
72b2cb61 12452 rm -f $ac_file
7a197a62 12453 mv "$tmp/config.h" $ac_file
72b2cb61
AK
12454 fi
12455 else
7a197a62
AK
12456 echo "/* $configure_input */"
12457 cat "$ac_result"
72b2cb61 12458 fi
7a197a62
AK
12459 rm -f "$tmp/out12"
12460 ;;
12461
12462
12463 esac
12464
12465done # for ac_tag
795ca3e5 12466
795ca3e5 12467
ad6254c5
AK
12468{ (exit 0); exit 0; }
12469_ACEOF
795ca3e5 12470chmod +x $CONFIG_STATUS
ad6254c5
AK
12471ac_clean_files=$ac_clean_files_save
12472
12473
12474# configure is writing to config.log, and then calls config.status.
12475# config.status does its own redirection, appending to config.log.
12476# Unfortunately, on DOS this fails, as config.log is still kept open
12477# by configure, so config.status won't be able to write to it; its
12478# output is simply discarded. So we exec the FD to /dev/null,
12479# effectively closing config.log, so it can be properly (re)opened and
12480# appended to by config.status. When coming back to configure, we
12481# need to make the FD available again.
12482if test "$no_create" != yes; then
12483 ac_cs_success=:
12484 ac_config_status_args=
12485 test "$silent" = yes &&
12486 ac_config_status_args="$ac_config_status_args --quiet"
12487 exec 5>/dev/null
12488 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12489 exec 5>>config.log
12490 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12491 # would make configure fail if this is the last instruction.
12492 $ac_cs_success || { (exit 1); exit 1; }
12493fi
795ca3e5 12494
2dc95e1c
AK
12495
12496if test x$ODIRECT != xyes; then
ad6254c5
AK
12497 { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
12498echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 12499fi
809fae91
AK
12500
12501if test x$FSADM == xyes; then
ad6254c5
AK
12502 { echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5
12503echo "$as_me: WARNING: fsadm support is untested" >&2;}
809fae91 12504fi
06f62ad1
AK
12505
12506if test x$DMEVENTD == xyes; then
12507 { echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5
12508echo "$as_me: WARNING: dmeventd support is untested" >&2;}
12509fi
This page took 1.493745 seconds and 5 git commands to generate.